Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I recently saw a marketing video that cited the "Perabyte" as a unit of disk storage measure. I emailed a representative responsible for the video and got a response that "1 Perabyte (PB) = 1024 Terabytes (TB)."
A quick google search seems to indicate that a Petabyte is defined as 1000 TB.
Is a Perabyte a real thing, and is it 1024 (vs 1000) TB?
Edit: This thread has answered my question, despite the votes to close. No one has heard of a "Perabyte" except as a misspelling of "Petabyte." Thanks.
Edit (2): Petabytes have been tagged real by "BRIGHT SIDE"
A perabyte doesn't exist, but a petabyte is a real thing. It is
2^50 bytes; 1024 terabytes, or a million gigabytes.
It seems likely that your perabyte was the result of a typo, seeing as 'r' and 't' are close on the keyboard.
The 1024 versus 1000 question most likely arises from which base you are using.
1024 is base 2, 1000 is base 10.
See https://en.wikipedia.org/wiki/Petabyte
A petabyte is 10005, or 1000 terabytes.
A pebibyte is 250, or 1024 tebibytes.
A perabyte is not a thing.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
ROM is implemented by case statement to store fixed values in it and read them whenever we need.
But how can I read two values at the same clock cycle ??
It is always useful to show at least part of your code. I assume you have something like this:
case (adrs)
8'h00 : dout <= 8h01;
8'h01 : dout <= 8h03;
8'h02 : dout <= 8h07;
The only solution is to make two identical case statements but it is easier to instance the same ROM twice.
Alternative is to make a memory and initialise it.
reg [7:0] mem [0:255];
... // initialise memory e.g
... // using initial with for loop and case statement
always #(posedge clk)
begin
dout1< = mem[adrs1];
dout2< = mem[adrs2];
end
I assume this is for an FPGA so look at the vendor manual how to make a pre-loaded RAM. (Which is on fact a ROM as long as you don't write to it)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am using TFDTable component in Delphi Seattle. I have kept this table component at design time.
While executing
TFDTable(Compo).Open
I get error while debugging (Ctrl +F7) "Floating point inexact result at 0042F353"
I googled, but got the reason but didn't get exactly what it is.
Any suggestions?
Reference URL:
http://www.delphigroups.info/2/e8/524771.html
Floating Point inexact result
This exception suggests that you have
the "loss of precision" mask bit in the FPU turned OFF. It is
normally ON. Look for the $0020 bit in the system variable
Default8087CW and try ORing in $0020 into the control word with a
Set8087CW(Default8087CW or $0020) statement.
http://www.umiacs.umd.edu/~resnik/ling645_sp2002/cmu_manual/node19.html
There is a well known issue that Default8087CW as a global variable can be misused by libraries or even your own code and be changed at any time in ways that cause unexpected results of FP calculations or unexpected exceptions to occur. The six lowest bits of the 8087 FPU Control word are the exception mask bits, meaning that if a bit is set, corresponding exception is masked, that is prevented from being raised.
The "loss of precision" mask bit that John Herbster is talking about is one of those bits, in Delphis TArithmeticException enum called exPrecision. Further he suggests to assure this bit is set by calling the Set8087CW(Default8087CW or $0020). Since you are using Delphi 10 Seattle, it is recommended to use the SetExceptionMask() function (from the System.Math unit) instead, since it handles equally also the corresponding SSE mask on 64 bit hw:
var
OldExceptionMask: TArithmeticExceptionMask;
...
OldExceptionMask := SetExceptionMask(GetExceptionMask + [exPrecision]);
Calling the above before TFDTable(Compo).Open should solve your problem.
The function takes and returns a TArithmeticExceptionMask (set of TArithmeticException). All other exception enums and FPU/SSE related functions are in the documentation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a problem:
My app allow user choose 2 options : Metric or Imperial.
If user select "Metric", height(cm), weight(kg).
If Select "Imperial: height(inch) and weight (lbs).
I need to change value of height from inch to centimeter and weight from lbs to kg.
Example :
user input : 70 (inch) and 120 (lbs) ==> convert to 177.8 (cm) and 54.5 (kg)
Thanks in advance.
The best example of unit convert is below link..
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
server side:
List item:
...: x% matches found, y% false positives (opencv +10 lines of code)
...: x% matches found, y% false positives (large custom code since 1995)
another:
Minimal OpenCV C++ code:
....
....
hash lists:
..: (financed by public money, restricted access as of ...)
...: (open access)
...: , y million entries, y % new last years (commercial $y / month)
...: , x million entries, x % new last years (commercial $x / month)
(serverside &) crowdsourced / crowd-verified:
Google images' filter: ... (restricted access, yet not even in webmastertools for owned websites)
client-side:
another: ... (will scan x megapixels per 50ms on a i5 2540 mobile)
nude.js (patrick-wied): ...
I completely rewrote this question, which was always closed and apparently appeared to be to wide rather than specific and "promote a link" rather than alternatives?
Task here now is to:
"Take inventory of all the worlds existing approaches for this development specific but widely unknown task."
(= to fill the gaps in the table above and maybe sample code/implementations)
While some windows software is marketed to parents whose kids surf the net,
this assumable wont anytime soon appear in a wikipedia article
"Comparision Of Nudity detection software" and from a development perspective. (nor on alternative.to/... )
also this is specific, yet widely underserved nor practiced.
Thus no single answer/link would be anything much of self-promotion/spam, this question on the contrary is prone to such less than the average question. Yet there dont need to be any links at all and there wont be answers with personal opinions and if there could be it would help more than nothing.
To run nude.js, check out the examples on this site.
Essentially, you need to include the JS files, and then run the checking algorithm on the images you want to run it on. There are 3 functions: nude.init() nude.load(param) and nude.scan(function optional).
From the linked example site:
nude.load(node);
// Scan it
nude.scan(function(result){
alert(result ? "Nudity found in " + node.id + "!" : "Not nude");
});
It's also worth noting that an article from the developer recommends not using it in production mode.
I wouldn’t recommend using the library in production mode right now
because the detection rate is about 60%
You may want to check out the links on this question and answers on SO for alternatives.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a question about the inference result of lda-c-dist package. How many words should be displayed when viewing results of inference? For example, if I set number of words to a very large number N(assume number of all terms are N), it seems to exist some groups of words. In each group, the index of words are ranging from 1 to N.
What I got is like,
Assume number of terms is 10, and I assign the number of words displayed to 10.
Topic 0xx:
001
008
009
002
003
007
000
004
005
006
It seems that, may be I should set words displayed 3, not 10.
So, as to one topic, when viewing topics by calling topics.py, how many words should be specified?
Besides, I'm going to use this output to calculate the similarity of two topics. So ...
Actually, there can be as many items as the vocabularies are. What is displayed here, is just a probability descending order for a limited number indicated.