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:Optimizing Hash-Array Mapped Tries for Fast Immutable JVM Collectio...
on Saturday August 05, 2017 @08:24PM (#14938900)
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)
Re:Ask HN: What's the one thing that let you grow the most as a develo...
on Friday March 03, 2017 @02:10PM (#13785319)
My hair and my beard
Re:Did Pixar accidentally delete Toy Story 2 during production? (2012)
on Tuesday January 17, 2017 @09:46AM (#13417923)
The same question was asked on Quora: https://www.quora.com/Did-Pixar-accidentally-delete-Toy-Stor...
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.
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
Re:Altify – Uses Microsoft Computer Vision APIs to caption images in a...
on Sunday November 13, 2016 @10:34PM (#12947338)
"A woman wearing a red hat" from the samples cracked me up
Re:Five million Danish ID numbers sent to Chinese firm by mistake
on Wednesday July 20, 2016 @08:46AM (#12128560)
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:A Better Default Colormap for Matplotlib
on Tuesday May 31, 2016 @04:25AM (#11805390)
Javascript version: https://github.com/politiken-journalism/scale-color-perceptu...
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
Re:Show HN: Neural Network Visualizer Classifying Handwriting – D3/Redux
on Tuesday May 17, 2016 @02:36PM (#11716113)
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
More than you ever wanted to know about GeoJSON
Re:Moebio Framework – A JavaScript toolkit for data analysis and visua...
on Tuesday September 15, 2015 @06:00PM (#10223442)
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:
Re:Responsive typography with Modular Scale
on Wednesday March 26, 2014 @06:04PM (#7476973)
$ms-ratio: $golden
See: https://github.com/Team-Sass/modular-scale#usage
Re:Localtunnel: instantly show localhost to the rest of the world
on Sunday July 21, 2013 @04:42PM (#6080270)
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!
Re:Show HN: Blynde – A new way to listen music on Youtube (user:demo, ...
on Saturday June 22, 2013 @05:17PM (#5925182)
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
Quorum Sensing
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
Re:Some things beginners might not know about Sublime Text
on Sunday July 15, 2012 @10:56AM (#4247052)
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!