Better HN
topnewbestaskshowjobs
Log inSign up

tixzdk

46 karma · joined Jul 15, 2012 (14y ago) · 31 submissions

Submissions

comment 8y ago · link · parent

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!

comment 9y ago · link · parent

Here's one: https://github.com/ponylang/ponyc/blob/master/packages/colle...

comment 9y ago · link · parent

I pay 15€ for unlimited everything in Denmark (but with reasonable caps imposed on European roaming)

comment 9y ago · link · parent

My hair and my beard

comment 9y ago · link · parent

The same question was asked on Quora: https://www.quora.com/Did-Pixar-accidentally-delete-Toy-Stor...

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

I think the article gets this wrong. `window.crypto` should be read-only

comment 10y ago · link · parent

"A woman wearing a red hat" from the samples cracked me up

comment 10y ago · link · parent

And the letter, which was sent as priority mail, had been opened when they went to retrieve it...

comment 10y ago · link · parent

Denmark does as well, to a high degree

comment 10y ago · link · parent

K-medians or k-medoids yield more pleasing results in my experience

comment 10y ago · link · parent

Javascript version: https://github.com/politiken-journalism/scale-color-perceptu...

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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 :)

comment 10y ago · link · parent

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...

comment 10y ago · link · parent

Substack (creator of browserify among others) is also available through github, but not sure if through PRs: https://github.com/substack/music-for-hire

18.

Visualizing the Similarity of Human and Chimp DNA (2007)(cs.ucr.edu ↗)

1 points · by tixzdk · 10y ago · discuss

19.

More than you ever wanted to know about GeoJSON(macwright.org ↗)

3 points · by tixzdk · 11y ago · discuss

comment 11y ago · link · parent

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.

comment 12y ago · link · parent

For tougher treatment of complex math subjects I really enjoy matematicalmonk's Khan Academy style videos:

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

comment 12y ago · link · parent

    $ms-ratio: $golden
See: https://github.com/Team-Sass/modular-scale#usage

comment 13y ago · link · parent

Do you have xcode installed?

comment 13y ago · link · parent

I second this!

comment 13y ago · link · parent

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

26.

Quorum Sensing(en.wikipedia.org ↗)

1 points · by tixzdk · 13y ago · 1 comment

comment 14y ago · link · parent

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

comment 14y ago · link · parent

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!
12