Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
russellsprouts
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
russellsprouts
10y ago
I think the point the gp was making is that 14% is over-representation given the demographics of the country at large. That doesn't discount that they are relatively under-represented given the demographics of the company.
32.
▲
by
russellsprouts
10y ago
It can be used to subvert the same origin policy and content security policy. If you see a script tag with the URL bank.com/evil.js, the browser shouldn't assume that the bank is actually hosting evil.js. Even if the hash matches,
33.
▲
by
russellsprouts
10y ago
I agree. I make 3 boxes at once. The box calls for 1.5 sticks of butter in that case, but I only use 1, and it comes out great.
34.
▲
by
russellsprouts
10y ago
> Age shouldn't be the only criteria to allow someone in voting process. https://en.wikipedia.org/wiki/Literacy_test
35.
▲
by
russellsprouts
10y ago
It is possible to run X programs with Bash on Windows. You need to run a Windows port of an X server, like Xming[1]. Even programs like Firefox work, though it's a bit laggy. It's good enough to run gvim, though. [1]: https:/
36.
▲
by
russellsprouts
10y ago
Coincidentally, I was just reading this the other day. I've been programming for the Nintendo NES. The most common high level language that people use for NES Homebrew development is C with cc65[1]. The output of the compiler is passab
37.
▲
by
russellsprouts
10y ago
The shift-xor "random" number generator described actually has an interesting property. The algorithm looks like this: 1. If the value is 0, output the magic number. 2. If the value has only its high bit set, output 0. 3. Otherwis
38.
▲
by
russellsprouts
10y ago
I think the criteria is that it has cleared its orbit of similar sized bodies. Smaller bodies are OK. Pluto has several bodies of similar size in its neighborhood.
39.
▲
by
russellsprouts
11y ago
Yeah. I have used it with love. Moonscript is compiled beforehand to Lua, so it works the same. Lua's syntax is very nice, but the conciseness of Moonscript is nice for a lot of things.
40.
▲
by
russellsprouts
11y ago
That's true in general, but note that the runs should show up in 2 dimensions in the image. The second one appears clumpy, which exactly what it should look like. People tend to avoid runs, which would make it look more uniform. The fi
41.
▲
by
russellsprouts
11y ago
I'm a CS student, and I do attend hack-a-thons several times a year. My policy is to ignore the competitive aspect. I should feel successful no matter what the judges decide. My mindset from the beginning is that I won't work on t
42.
▲
by
russellsprouts
11y ago
I made a bot that would fetch Twitter posts and re-tweet any it detected were 5-7-5 haiku. The syllable counter was just a series of regex replacements, loosely inspired by Metaphone, but it was about 95% accurate on my dictionary of 300,00
43.
▲
by
russellsprouts
12y ago
I've made some of the recipes from this blog. The macaroni and cheese is particularly easy and tastes delicious.
44.
▲
by
russellsprouts
12y ago
This. Constraining the demon to two responses can't work. The demon needs to be able to give an answer with at least as much information as the entire universe's state -- not yes or no answers. The issue with the person only exist
45.
▲
by
russellsprouts
12y ago
I work on this project. One crucial thing to make the GUI simpler than code is direct manipulation. Working with a graphics program, like Inkscape, for example, is much easier for most graphics tasks than writing raw SVGs. For most tasks in
46.
▲
by
russellsprouts
12y ago
However, these programs all happen within the same school. The trouble in the article is due to a single school with a wide range of options being split into several smaller schools, and the predominantly black school getting worse funding.
47.
▲
by
russellsprouts
12y ago
Yeah, those features are very new. IIRC, they were introduced in the snapshots for 1.8, so they haven't even reached the stable version yet. (Minecraft 1.8 is nearing completion, after ~8 months of development). Once 1.8 is officially
48.
▲
by
russellsprouts
12y ago
It's important to note that this is not intended to be realistic. It's a parody of hacking sequences in TV and movies.
49.
▲
by
russellsprouts
12y ago
I know there are mods that incorporate turtle graphics-controlled agents for automation. Of course, there is also redstone automation, which is useful, but also much more complicated. For slightly older kids, there's the Minecraft Pi e
50.
▲
by
russellsprouts
12y ago
When I was a kid, I was quite active in the soda race forums and the community there. In fact, my first open source project was a library for generating soda constructor models programmatically. For example, it let you write text: http:&#x
51.
▲
by
russellsprouts
12y ago
Yes, that's true. It does have drawbacks, but overall I think it is better than say, JavaScript. In JavaScript, a key can be not present in an object, be undefined, be null, be set to some other value, or be present in the prototype. T
52.
▲
by
russellsprouts
12y ago
While a module system in JavaScript will be useful, this seems overly complicated. I like Lua's approach to modules. In Lua, a file is basically equivalent to a function body. It accepts arguments and can return values. In JavaScript,
53.
▲
by
russellsprouts
12y ago
They have been delaying, but they have also hired several of the developers from CraftBukkit, which did create a plugin API for Minecraft. Their experience with CraftBukkit showed that they had created the API too soon. The code is messy an
54.
▲
by
russellsprouts
12y ago
Browsers lie in the computed CSS values. Regardless of whether you have visited the link or not, the computed style that JavaScript sees is always unvested.
55.
▲
by
russellsprouts
12y ago
If you really want to re-enable blink tags, drop this in. It's terrible code, but it is also tweetable. Besides, if you are using blink tags, who cares about a few global variables? Example: http://ryanrussell.me/404
56.
▲
by
russellsprouts
12y ago
Promises are really Monads for asynchronous results. A Monad kind of wraps a certain value. For example, we might have a Promise JSON from an API call. The bind method of a Monad (>>= in Haskell) takes a JSON Promise, and a function (
57.
▲
by
russellsprouts
12y ago
CSS3 has support for footnotes in the page module. http://www.w3.org/TR/2011/WD-css3-gcpm-20111129/#footnotes It adds a float: footnote; property. From reading that page, I believe this might work, once brows
58.
▲
by
russellsprouts
13y ago
Something like this could work, to some degree: a = {} a.valueOf = function() { var caller = arguments.callee.caller.toString(); //parse the caller function, and return /&#x
59.
▲
by
russellsprouts
13y ago
But if you are checking if a person if qualified to be CEO, wouldn't their domain knowledge and ability to lead be better qualities to prioritize than their stance on gay marriage -- especially if their personal views have not been sho
60.
▲
by
russellsprouts
13y ago
This essay really drove that point home for me: http://www.maa.org/sites/default/files/pdf/devlin/LockhartsL...
More ›