Better HN
topnewbestaskshowjobs
Log inSign up

adam-f

106 karma · joined Jul 4, 2011 (15y ago) · 62 submissions

Submissions

comment 8y ago · link · parent

https://www.youtube.com/watch?v=F2Q_4rm8SVI

2.

GitHub.com/Microsoft/ChakraCore(github.com ↗)

1 points · by adam-f · 10y ago · discuss

comment 11y ago · link · parent

"Leudesdorf has proved that for a positive integer n coprime to 6"

https://en.wikipedia.org/wiki/Wolstenholme%27s_theorem#Gener...

comment 11y ago · link · parent

Perhaps google should open up additional channels of communication for "top contributors" to escalate problems?

comment 11y ago · link · parent

You've got a change under "// should not be touched"

http://imgur.com/CSHnOuP

6.

Threading and Marshaling link – redirect loop(msdn.microsoft.com ↗)

1 points · by adam-f · 11y ago · discuss

comment 11y ago · link · parent

I did the same thing a few years ago (scroll down past the tutorial/examples for the annotated code) http://sparecycles.github.io/litijs?template

(but litijs itself is an undocumented hack) http://sparecycles.github.io/litijs?litijs

comment 11y ago · link · parent

Is anyone else having cognitive dissonance with the % of ingredients in so-many-grams of water?

Does 1% baking soda and 0.5% salt in 2000 grams of water mean 20 grams of baking soda and 10 grams of salt?

comment 11y ago · link · parent

Beginner's mistake. "Beginners mistake" can only be used as the start of a sentence as in "Beginners mistake azure for blue."

comment 12y ago · link · parent

FYI: I'm running a 1920x1200 screen rotated, so with my browser (FF32) as full screen I'm just at the point that the annoying #dd_ajax_float element is shown, but it covers the left edge of the first paragraph.

comment 12y ago · link · parent

Being a bit pedantic here, but shouldn't it be specified as a URI, "tel:0000" not a URL-ish "tel://0000" with 0000 as the authority?

comment 12y ago · link · parent

Obligatory http://xkcd.com/1373/

comment 12y ago · link · parent

I find it ironic that the country harboring Edward Snowden is implementing this policy.

( To be fair, Snowden's complaint was not that America has a surveillance state, but that the NSA was implementing it covertly. )

comment 12y ago · link · parent

is it

    $ms-ratio: $golden;
or

    $ms-ratio: golden;

?

comment 12y ago · link · parent

Check the URL.

comment 12y ago · link · parent

This could only be a very rough first-pass on detection. Bathing suits can be very skimpy without being fully nude.

And social context plays a large role, for instance distinguishing between a fat male's nipples and a small-chested female's nipples would be impossible without analyzing a lot more than skin color.

http://i.imgur.com/sb6Iw.jpg

comment 12y ago · link · parent

IANAS but it never made sense to me that global warming would be linear with amount of CO_2, at some point, I figured 95% of the available IR would be absorbed by the atmosphere and doubling the CO_2 would only get us to, like, 97.5%. Then again, we are experiencing some crazy weather patterns recently.

Other effects of CO_2, like ocean acidification can be seen through both direct chemical measurement and by the observed environmental effects on coral reefs.

comment 12y ago · link · parent

It seems to me that the anti-SLAPP laws apply in spirit here (of restricting overbearing litigation.)

http://en.wikipedia.org/wiki/Strategic_lawsuit_against_publi...

comment 12y ago · link · parent

Image of Warren Buffet courtesy of (i.e., served from) blackmbawomen.com.

http://www.blackmbawomen.com/wp-content/uploads/2013/05/warr...

Very classy tBB.

comment 12y ago · link · parent

Sadly, the blog isn't available over https.

comment 12y ago · link · parent

I'm not sure if they can deliver on the custom grind promise. I know that supermarkets have to grind in a specific order: roughly cow, pig, chicken: lower required cooking temperature to higher.

Is every burger going to be well-done?

comment 12y ago · link · parent

I'm confused by their claim of hashing and THEN salting authentication codes.

    On the server-side, we don't store the authentication
    code in plaintext. We hash it with PBKDF2 / SHA-256,
    salt it, then store it.

comment 13y ago · link · parent

In answer to the question:

"Suppose Bitcoin mining software always explored nonces starting with x = 0, then x = 1, x = 2,\ldots. If this is done by all (or even just a substantial fraction) of Bitcoin miners then it creates a vulnerability."

The reward for mining the block includes the miner's account, so each miner is hashing a unique block.

comment 13y ago · link · parent

A neat trick (tm) for allocating a linked list: recursively call a function which allocates a node on the stack, hooking them up in the function... call something else and pass the list to it.

at the exit condition (whatever that is), exit the recursion and call something else with your new linked list.

(I used something similar to keep track of scope while recursively evaluating in this toy language I made once.)

comment 13y ago · link · parent

Searching for millionshort on millionshort gives you... millionshort.com

comment 13y ago · link · parent

This reminds me of a problem I learned in UCSC (and was accused of cheating by the teacher when I figured it out in five minutes).

100 Prisoners are told they will be given white or black hats, but they don't get to see the hat they're wearing, they will be lined up facing the same direction, and they gun-to-the-head, say "black" or "white" and if they guess the color of their hat, they get to live.

They get to speak back to front, i.e., the rearmost prisoner sees all the hats ahead.

One strategy for optimizing the number left is to speak the color of the hat directly in front of you, in which case the prisoner ahead gets to live by repeating that color. This saves 50%, but of course there's a better solution.

comment 13y ago · link · parent

I once solved a bug where i=5 didn't execute (single stepping through the assembly also failed to assign the variable), the fix?

    i=5;
    i=5;
    i=5;
    i=5;
and, I believe we it shipped like that.

comment 13y ago · link · parent

Figure 5: String, seems to allow actual newlines strings, that's not a subset of javascript.

comment 13y ago · link · parent

I don't understand why an accidental detonation of a warhead would produce "lethal" fallout. Yet there's comparatively little concern (and rightfully so) over the 2000+ intentional test detonations done around the world so far?

http://www.youtube.com/watch?v=LLCF7vPanrY

123