News for hackers. Stuff that matters.

tixzdk

Re:Adding BigInts to V8 on Wednesday May 02, 2018 @04:16PM (#16980774)
This is also available in Node 10 behind the `--harmony-bigint` flag. I've already made two modules with https://github.com/emilbayes/secure-random-uniform#bigint-su... and https://github.com/emilbayes/biguintle. Lots of fun!
Re:Europe mostly ends mobile roaming fees from today on Thursday June 15, 2017 @03:57PM (#14563861)
I pay 15€ for unlimited everything in Denmark (but with reasonable caps imposed on European roaming)
My hair and my beard
Re:Randomness in GNU/Linux on Sunday January 08, 2017 @12:14PM (#13350724)
Important excerpt from random.c:

   * When random bytes are desired, they are obtained by taking the SHA
   * hash of the contents of the "entropy pool".  The SHA hash avoids
   * exposing the internal state of the entropy pool.  It is believed to
   * be computationally infeasible to derive any useful information
   * about the input of SHA from its output.  Even if it is possible to
   * analyze SHA in some clever way, as long as the amount of data
   * returned from the generator is less than the inherent entropy in
   * the pool, the output data is totally unpredictable.  For this
   * reason, the routine decreases its internal estimate of how many
   * bits of "true randomness" are contained in the entropy pool as it
   * outputs random numbers.
   *
   * If this estimate goes to zero, the routine can still generate
   * random numbers; however, an attacker may (at least in theory) be
   * able to infer the future output of the generator from prior
   * outputs.  This requires successful cryptanalysis of SHA, which is
   * not believed to be feasible, but there is a remote possibility.
   * Nonetheless, these numbers should be useful for the vast majority
   * of purposes.
This is the same old story. /dev/urandom is what you should use, unless you believe that the hash function is broken
Re:Ask HN: What do you want to learn in 2017? on Sunday December 25, 2016 @05:38PM (#13255768)
Pony! Seems like a very interesting language that doesn't get much exposure. Predictable GC, fine grained capabilities, actor model (concurrent by default), no deadlocks etc.

http://ponylang.org

Re:The Signal protocol for Node and browsers on Wednesday December 14, 2016 @10:13PM (#13182086)
I think the article gets this wrong. `window.crypto` should be read-only
"A woman wearing a red hat" from the samples cracked me up
And the letter, which was sent as priority mail, had been opened when they went to retrieve it...
Re:Passport Index 2016 on Sunday July 17, 2016 @08:55PM (#12112688)
Denmark does as well, to a high degree
Re:Image Dithering: Eleven Algorithms and Source Code on Sunday June 12, 2016 @03:09PM (#11889728)
K-medians or k-medoids yield more pleasing results in my experience
Re:Faster DOM on Thursday May 26, 2016 @01:02PM (#11779564)
I'll leave this module here for those of you how haven't heard of it. https://github.com/patrick-steele-idem/morphdom

It diff's the DOM instead of a VDOM

If possible, send it off to a web worker? That free's up the UI thread

Edit: So it's the rendering that's hard on the CPU. Canvas would probably improve performance. Also, the graphic is so simple and there doesn't seem to be any event listeners on the edges themselves, that converting should be trivial :)

Re:Stream PirateBay movies directly from CLI on Monday April 04, 2016 @06:02AM (#11420589)
Or maybe they could use [Node.js core DNS](https://nodejs.org/api/dns.html#dns_dns_setservers_servers) module to resolve the domain, setting something like [censurfridns](http://www.censurfridns.dk/) as a temporary server.

I think this module is very immoral, however, so I'm not going to contribute...

Re:A band you can book via GitHub pull request on Monday February 22, 2016 @06:49AM (#11150173)
Substack (creator of browserify among others) is also available through github, but not sure if through PRs: https://github.com/substack/music-for-hire
Seems like another kitchen sink library to me... Demos are impressive, but when is someone going to write a JS viz library in a more declarative fashion like outlined in Grammar of Graphics? They all seem overly imperative (draw this pixel, then that pixel) or rigid, non-composable functions taking huge configuration JSON blobs.
Re:Ask HN: Your favorite YouTube channels? on Friday April 18, 2014 @04:33PM (#7611163)
For tougher treatment of complex math subjects I really enjoy matematicalmonk's Khan Academy style videos:

https://www.youtube.com/user/matematicalmonk

Re:Responsive typography with Modular Scale on Wednesday March 26, 2014 @06:04PM (#7476973)
Do you have xcode installed?
Re:Shuttle - A simple SSH shortcut menu for OS X on Thursday July 11, 2013 @08:28AM (#6025599)
I second this!
Great job! Seen tons of similar services, but this is really polished. I already signed up, but was looking for a way to create my own playlists. I'd use this all the time if it had custom playlists
Re:Selfspy - Tool for Personal Data Analytics on Sunday September 30, 2012 @04:53PM (#4594120)
I keep getting stuck at:

Traceback (most recent call last): File "/usr/bin/selfspy", line 19, in <module> from activity_store import ActivityStore File "/private/var/lib/selfspy/activity_store.py", line 9, in <module> import sniff_cocoa File "/private/var/lib/selfspy/sniff_cocoa.py", line 1, in <module> from Foundation import NSObject, NSLog ImportError: No module named Foundation

I've kept my favorite shortcuts open in a panel for about a week, so I could learn them by heart: http://pastebin.com/hQtYKzhN Favorites include: Expand selection (to various levels), close tag, block commenting and splitting lines!