Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
valtron
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
valtron
13y ago
A first approximation for a strategy would be to follow a boustrophedon, and keep 2, 4 and 8 near the top, e.g. something like this: . . . . . 4 2 . 8 16 32 . 512 256 128 64
2.
▲
by
valtron
13y ago
If you're really determined, you can use `.` as an operator via __getattr__ and inspect :p
3.
▲
by
valtron
13y ago
Tried 3 games, and the scores were 2700, 1200, 5000. So maybe. But then I wrote a function to play it for me: var manager = new GameManager(4, KeyboardInputManager, HTMLActuator); function play() { manager.restart();
4.
▲
by
valtron
13y ago
I started working on a similar thing last year [0]. In my version, your pieces can see any spot on the board they are allowed to move to. [0] https://github.com/valtron/fog
5.
▲
by
valtron
13y ago
I would be inclined to agree; that value is _not_ entirely caused by scarcity. (Though I will point out that if a resource is scarce, people might put more value on it and try to acquire more now because they're afraid they might not b
6.
▲
by
valtron
13y ago
The creation of a new coin has no bearing on the scarcity of another. Scarcity is just one requirement for something to act as a currency; another would be that it can be exchanged for goods and services (read: other things that people valu
7.
▲
by
valtron
13y ago
No, but I just checked a few of the sites we made and none break from ctrl+ (regarding this: I've never seen a non-tech person, i.e. 99% of traffic for the sites, use shortcuts in the first place); they also look consistent between _mo
8.
▲
by
valtron
13y ago
When I used to work with my designer friend, he would tell me to do things like that: increase this padding by 5px, lighten the color by a little, slightly decrease the border-radius, etc. One by one like that, I find it hard to follow and
9.
▲
by
valtron
13y ago
Are you supposed to get it to go through the space between the "stars"? Is it even possible? Edit: Got my first point (50 - 100 tries?). You need to make it go a full orbit without touching the outer circle. This seems obvious in
10.
▲
by
valtron
13y ago
You only need to worry about this if you're doing 100k+ LIST requests. For me, turning off validate would save 0.2%.
11.
▲
by
valtron
13y ago
I can't tell if you're being sarcastic... but if not, this is the first legitimate use of uncyclopedia as a source I've seen.
12.
▲
by
valtron
13y ago
It depends on the rules of the game. Maybe the rules of life are competitive: you can only increase your score at someone else's expense. The score is either 0-1 or 1-0. (Maybe you're both starving but only have enough food to sus
13.
▲
by
valtron
13y ago
Cool!
14.
▲
by
valtron
13y ago
I can see this being much better than Yelp. How are you doing the recommendations? Something along the lines of PageRank?
15.
▲
by
valtron
13y ago
Rejoice! No more event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
16.
▲
by
valtron
13y ago
There's only one way to add a finite list of numbers, but several ways to "add" infinite lists. Ramanujan summation is just one way. There are also other ways to define "addition" on infinite lists: Abel, Borel, Ces
17.
▲
by
valtron
13y ago
Achilles runs at 1 unit/s and Tortoise at x < 1 unit/s. Tortoise gets a head start of 1 unit. How long until Achilles catches up? Well first, Achilles has to travel 1 unit because Tortoise got a head start. That takes 1s. By th
18.
▲
by
valtron
13y ago
If cryptocurrencies take off, banks are simply going to store keys for people instead of physical money. For the layperson, nothing will change. However, with cryptocurrency, the gap between how securely a single person vs. a dedicated enti
19.
▲
by
valtron
13y ago
He makes a good point about infinite MAD vs. STD.
20.
▲
by
valtron
13y ago
Don't points 2 & 3 together imply that anything that uses built-ins, which I assume are implemented with C FFI, is `unsafe`?
21.
▲
by
valtron
13y ago
A former coworker did his master's thesis on playing Atari games using RL. Here's a video of it learning to play Freeway: http://www.youtube.com/watch?v=44CilPmlimQ
22.
▲
by
valtron
13y ago
It's composed of two images with transparent backgrounds. The foreground on one of the images consists only of white, and on the other only of black. Depending on what color's behind the picture, it obscures one or the other. Edit
23.
▲
by
valtron
13y ago
Also worth reading: http://llvm.lyngvig.org/Articles/Mapping-High-Level-Construc...
24.
▲
by
valtron
13y ago
"I have a two children, one of which is a boy. What's the probability the other is a boy?" Intuition wrongly treats the possibilities as sets and assigns probabilities 1/2 BB, 1/2 GB, rather than 1/3 BB, 1/
25.
▲
by
valtron
13y ago
Also works for sorting strings in alphabetical order.
26.
▲
by
valtron
13y ago
You can also write colors with the more intuitive hsl() and it'll convert them to hex notation. (Only relevant if you need to support IE < 9, but still cool.)
27.
▲
by
valtron
13y ago
Probably algorithmic trading.
28.
▲
by
valtron
13y ago
Interesting point, and you're right: I was only considering printed money!
29.
▲
by
valtron
13y ago
Let T be the total amount of money in circulation in a given currency C. When you see a value X in units of C, convert it to C' by X in C' = X / T. There you have it, every currency is already trivially equivalent to Bitcoin
30.
▲
by
valtron
13y ago
1393 generations using the shotgun approach.
More ›