Better HN
topnewbestaskshowjobs
Log inSign up

opcvx

102 karma · joined Jun 14, 2015 (11y ago) · 45 submissions

Submissions

comment 11y ago · link · parent

Where does the data come from?

comment 11y ago · link · parent

I have found the bug.

The else block in the last if statement is missing this: signif = signif - 1.0; before the lg2 = FN; line.

Then the relative error becomes similar to what the bits of accuracy table predicts, which is very low.

comment 11y ago · link · parent

I copy pasted the code and ran a unit test, which it failed to pass. Inputs are a positive floats and the outputs are compared to the results of log2f, then the average error is calculated, which was way off.

Did you try to compare results of input values between 0.5 and 1.5 to the library log2f function?

comment 11y ago · link · parent

I have tried the code posted at the end of the article and it gives wildly incorrect results for input values in range of [ 0.5 , 1.5 ). Also for output, starting with multiplies of 4, values suddenly diverge and then start to converge towards correct value until the next multiple.

Did I forget to do something with the result or is there a bug?

5.

Trial Starts for Diego Gomez, Facing Prison Time for Sharing a Paper Online(eff.org ↗)

2 points · by opcvx · 11y ago · discuss

comment 11y ago · link · parent

If you like audiobooks you can try LibriVox.

https://librivox.org/search

https://librivox.org/search?primary_key=30&search_category=g...

They are very transparent. In my experience, about 95% of the books were pleasing to listen to.

LibriVox recordings are Public Domain in the USA. If you are not in the USA, please verify the copyright status of these works in your own country before downloading, otherwise you may be violating copyright laws.

7.

Eradicate DRM within a decade(boingboing.net ↗)

10 points · by opcvx · 11y ago · 5 comments

comment 11y ago · link · parent

Sure this is marginally better if you have a static structure, in all other cases you lose.

comment 11y ago · link · parent

Let me remind everyone that downloading and running unknown executables is borderline insane.

@OP Where is the source?, if you want to share, distribute the source not the exe.

comment 11y ago · link · parent

The image is brightened. This makes the spots stand out.

The surface of Ceres is effectively black, but the image shows it as grey to light grey. Consequently the spots shine, but in reality they are just white.

comment 11y ago · link · parent

You don't know C.

Reinterpreting an object as an incompatible object is undefined. int and float are incompatible.

C Standard also specifically states that using an incorrect printf format specifier will result in undefined behavior.

comment 11y ago · link · parent

You missed the relevant text:

>or equivalent; 10)

>10) Thus, int can be replaced by a typedef name defined as int, or the type of argv can be written as char * * argv, and so on.

And Standard also says that:

>or in some other implementation-defined manner.

and:

>In a freestanding environment (in which C program execution may take place without any benefit of an operating system), the name and type of the function called at program startup are implementation-defined.

So main can be pretty much anything according to the Standard, depending on the system.

comment 11y ago · link · parent

If this was a intentional decision from Apple from the very start, then it isn't a win for the customers, since they were manipulated.

comment 11y ago · link · parent

I see this as a company that has decided not to pay their partners, reversed their position. Hardly flattering.

comment 11y ago · link · parent

We do teach cooking in schools. At least in Europe. See my parent post, that class was mandatory.

There are plenty of classes that teach non-academic subjects, finance should be one of them, since we life in an money centered society.

comment 11y ago · link · parent

But are you really ignored?

Quickly take a look around your office/home and take a look at the open tabs in your browser and count the ads and the brands.

comment 11y ago · link · parent

This isn't exclusive to US.

I remember having a class called "household" taking about an hour a week for a year or two in my primary education, where we learned mostly about cooking. Yes, I'm not joking. A class about finance could take the same amount of time, since apparently there is time available in the school schedule, and be very worthwhile.

comment 11y ago · link · parent

Can you elaborate on how does the educational system influences personal finances, and what do you mean by that?

comment 11y ago · link · parent

Taylor Swift can withhold her music from streaming services because she's a PHENOMENON who can still shift albums via iTunes (and even physically) because people want her music. Artists starting out don't have that luxury and, increasingly, their music won't get the listens if it's not on streaming services.

Did you read the post where she explains what is her goal for doing this? Here is the relevant part:

This is not about me. Thankfully I am on my fifth album and can support myself, my band, crew, and entire management team by playing live shows. This is about the new artist or band that has just released their first single and will not be paid for its success. This is about the young songwriter who just got his or her first cut and thought that the royalties from that would get them out of debt. This is about the producer who works tirelessly to innovate and create, just like the innovators and creators at Apple are pioneering in their field…but will not get paid for a quarter of a year’s worth of plays on his or her songs.

comment 11y ago · link · parent

The problem is that it is automatic, it spreads without confirming anything and without any deliberate action.

comment 11y ago · link · parent

Wouldn't it be easier to just dump the entire process after the database is loaded and decrypted in memory, and pick out the words?

comment 11y ago · link · parent

No, that wouldn't make sense because of the false positives.

You could instead store only the hashes of the words, using a sha256 or something similar.

comment 11y ago · link · parent

I got a partially rendered page before, but it is not working anymore.

comment 11y ago · link · parent

Say Yes to NoScript.

comment 11y ago · link · parent

Exactly. I wonder how would this go down if the writer of the article compared IMAX directly instead of quoting a source.

comment 11y ago · link · parent

IMAX sized. Interesting phrase. I wonder if I can now legally use it in marketing, publishing, reviews..., since I will be quoting the company itself.
12