Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aphyr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
541.
▲
by
aphyr
15y ago
Absolutely have to send a message to your network administrator, but can't find her? Target several local hosts (this works quicker with an IDS in the mix) with xmas packets, and place your message in the body. Send 'em once every five seco
542.
▲
by
aphyr
15y ago
Parse transforms are an Erlang way of making puns at a higher level of abstraction. https://github.com/basho/lager/blob/master/src/lager_transfo... transform_statement({call, Line, {remote, Line1, {atom, Line2, boston_lager},
543.
▲
by
aphyr
15y ago
Yes, sorry, the wording was somewhat ambiguous. We use post-commit-hooks in riak to update external datastores, as well as callbacks within our ORM for many indexes stored in Riak itself.
544.
▲
by
aphyr
15y ago
"They don't use wireless energy." Please tell me more about your magical energy-free signal propagation! In all seriousness, Shannon's entropy limit only applies to a single variable, modulated at a certain frequency. The only reason we app
545.
▲
by
aphyr
15y ago
We use Riak as our primary datastore at Showyou, with Redis, Solr, and Memcached helping out. The big advantage of Riak is high availability and easy management, but for sorting/listing keys, range queries, and low latency we need other dat
546.
▲
by
aphyr
15y ago
Yes.
547.
▲
by
aphyr
15y ago
Oh... oh my. I never realized that higher arity blocks worked with that syntax. Thanks for that one.
548.
▲
by
aphyr
15y ago
Quick little transliteration to ruby: 1. (1 to 10) map { _ * 2 } 1.upto(10).map { |x| x * 2 } 2. (1 to 1000).reduceLeft( _ + _ ) 1.upto(1000).inject { |a, x| a + x } 3. val wordlist = List("scala", "akka", "play framewor
549.
▲
by
aphyr
15y ago
Every few weeks I become so distracted by thinking about a problem in the shower that I'll rinse, lather, and repeat three, four, or far more times without realizing. Only seems to happen in the morning, which makes me think it has somethi
550.
▲
by
aphyr
15y ago
A little more background on the attack: http://www.bitcoin.org/smf/index.php?topic=6931.0
551.
▲
by
aphyr
15y ago
Upvoting for sheer perversity.
552.
▲
by
aphyr
16y ago
it is nicer than javascript where associative arrays (ie objects) and real arrays are entirely different types. Actually, while we're on the topic: these should be separate types, for exactly the reasons I outlined in that code snippet.
553.
▲
by
aphyr
16y ago
My examples are meant to illustrate the broken behavior, not be real-world code. I structured it this way to make the broken-ness more apparent, but I guarantee you "good code" runs into these problems. But no other language I've used would
554.
▲
by
aphyr
16y ago
PHP has its own beauty, such as arrays which can support numeric and string indexes at the same time. Rarely do I actually spit on my keyboard. Not only do most other languages do associative arrays properly, so, you know, numeric and str
555.
▲
by
aphyr
16y ago
I agree; comment karma was valuable for me. It also allowed for polls.
556.
▲
by
aphyr
16y ago
If you want to solve the oblate sphereoid packing problem in an interview... I will hire you to do anything you find amusing and patent the results. :)
557.
▲
by
aphyr
16y ago
Ah, yes, that is much nicer! Yeah, I did make an off-by-one error as well. Eh, constants. ;-)
558.
▲
by
aphyr
16y ago
I considered this, but rejected it. If you interpret the problem in this way the answer is dependent on an undefined parameter. The clearest interpretation of the problem, the most useful interpretation of the problem, and also a nontriv
559.
▲
by
aphyr
16y ago
Given the numbers 1 to 1,000, what is the minimum number of guesses needed to find a specific number, if you are given the hint 'higher' or 'lower' for each guess you make? Log_2 1000. "How many balloons would fit in this room?" .64 * l
560.
▲
by
aphyr
16y ago
I think lasers are the advanced cooling system of the future! They're the advanced cooling system of the present! http://en.wikipedia.org/wiki/Magneto-optical_trap
561.
▲
by
aphyr
16y ago
It might not be. Assuming you could find a black hole which is not actively engaged in swallowing something (and hence spewing out huge amounts of heat and relativistic particle jets), you could surround it with mirrors to create an interna
562.
▲
by
aphyr
16y ago
The black hole is colder than the average temperature of space. Computation costs less at low temperatures, because temperature is defined as the ratio between the change in the energy and the change in the entropy of a system.
563.
▲
by
aphyr
16y ago
Non-relativistically speaking (danger will robinson!), the photons emitted by the radiator have a huge gravitational potential associated with them. You're free, I believe, to extract that energy through a heat engine if you like, but I'm n
564.
▲
by
aphyr
16y ago
Photons in general relativity actually do have gravitational fields--the stress-energy tensor, which determines spacetime curvature, is a function in part of the local four-momentum which photons do possess. Assuming four-momentum is cons
565.
▲
by
aphyr
16y ago
I've always wondered about the difference in lifecycle between /var/lock, /var/run, and other /vars. Happy that we've decided to make things simpler and easier to understand.
566.
▲
by
aphyr
16y ago
The mind is a process loosely defined by functional behaviors such as communicating, reasoning, and feeling. It arises from and is nothing more than the state of a sufficiently complex physical system and as such can be said to be physical.
567.
▲
by
aphyr
16y ago
Gruber: It is not an oversight or a bug, or the result of a single person at Apple wishing to hinder the performance of web apps. Ars: Apple is aware of the issues, which are currently filed as bugs... are marked "not to be fixed by exec
568.
▲
by
aphyr
16y ago
Insulation would make the fuel in a reactor hotter and, if we are referring to the design used in fukushima, could cause it to melt down. It would also fail to transfer heat efficiently through the exchanger, which makes it harder to genera
569.
▲
by
aphyr
16y ago
Silverlight, for me, has been buggy, slow, and required frequent obtrusive updates. Yes, I do have an aversion to using them.
570.
▲
by
aphyr
16y ago
Each night she wipes every one of her web accounts and deletes every email in her inbox. She has no physical hard drive and boots her computer from a microSD card. “I could hide this card anywhere or chew into a million pieces in a few se
More ›