Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
361.
▲
by
ajanuary
13y ago
You wouldn't be able to compile it to asm.js because of the very different memory models, which means you wouldn't be able to take advantage of any alternative runtime paths the js runtime has for asm.js. You could, however, use t
362.
▲
by
ajanuary
13y ago
Using Aho-Corasick [1] the runtime would be about O(n+k+) [1] http://en.m.wikipedia.org/wiki/Aho–Corasick_string_matching_...
363.
▲
by
ajanuary
13y ago
I don't know about now, but historically I've found TfL uses a slower walking speed than Google Maps.
364.
▲
by
ajanuary
13y ago
An alternative could be that the impact of an upvote is inversly proportional to its position on the page. You'd probably have to combine it with other metrics like age.
365.
▲
by
ajanuary
13y ago
My take on tone policing is it is a mechanism (whether conscious or unconscious) to tell people they shouldn't be as passionate and concerned about something as they are. As such, it's relative to the tone of the forum (be it HN,
366.
▲
by
ajanuary
13y ago
It's often recommended to run ngen as a part of the user install process for larger applications.
367.
▲
by
ajanuary
13y ago
It's an artifact of budding a standard around what people are already doing.
368.
▲
by
ajanuary
13y ago
You're correct, I didn't specify it well enough. Pick the node with the highest unassigned degree, connect it to the other unconnected nodes with the highest unassigned degrees (where unassigned degree is the difference betw
369.
▲
by
ajanuary
13y ago
I just tried this and several times the highest degree was already connected with the lowest degree, so I either had to pick another highest degree node (if there was a tie), pick the next highest degree and connect it with the lowest degre
370.
▲
by
ajanuary
13y ago
A greedy algorithm seems to be successful with the graphs in this game. Pick the node with the highest degree, connect it to the other nodes with the highest degrees, repeat.
371.
▲
by
ajanuary
13y ago
I use http://hnnotify.com/ for this. I also occasionally check the Threads section (linked in the top bar)
372.
▲
by
ajanuary
13y ago
Another option is to prefix searches. If I type "google " then start offering search suggestions. Chrome even has this, and a nice UX for it. It just unfortunately also has unprefixed searching.
373.
▲
by
ajanuary
13y ago
OT if you're going to insist on double spacing HTML, use "&nbps; " and not " " otherwise you'll have a ragged left margin like the OP.
374.
▲
by
ajanuary
13y ago
Tangential observation: most implementations of quickselect to find the median I've seen use 6N comparisons in the average case; for an even length list they select the middle values using two independent quickselects. The code to do i
375.
▲
by
ajanuary
13y ago
> Optimizely for iOS is exactly what it sounds like: Fast and scalable A/B testing and optimization for native iOS apps, built on the same advanced platform trusted by more than 6,000 customers. That's not what it sounds like.
376.
▲
by
ajanuary
13y ago
Small error: the 'explain' text on the 'Find Racket files' example uses 'p' while the code uses 'path'.
377.
▲
by
ajanuary
13y ago
It's not a stretch to imagine the conversation went something along the lines of ""I would like to ask him about Bitcoin. This man is Satoshi Nakamoto, he created Bitcoin." and a little bit of creative license was taken
378.
▲
by
ajanuary
13y ago
While I'm sure you'll be proven correct, I think it's a little premature to add LightTable into that list.
379.
▲
by
ajanuary
13y ago
In the privacy FAQ you might want to link to Mailgun's privacy policy, or at least their website.
380.
▲
by
ajanuary
13y ago
We use a mix of the built-in java dates and joda, depending on how old the code is. We have our own time library for some domain specific time code, which internally uses joda to handle dates.
381.
▲
by
ajanuary
13y ago
The 'language is evolving' and 'language is defined by usage' arguments go both ways. When something was both not historically incorrect, and not considered incorrect by many current people, the arguments people make abo
382.
▲
by
ajanuary
13y ago
> what sort of crazy hack would that require? Exactly the same as are required for Coffeescript, which is to write a Tilt that uses ExecJS. https://github.com/magnetised/sweetjs is a ruby gem for interfacing with sw
383.
▲
by
ajanuary
13y ago
> If "View Source" shows <div><div><div>...</div></div></div>, do you really gain much if it shows <custom-element-you've-never-heard-of-with-unknown-semantics><a
384.
▲
by
ajanuary
13y ago
map (("The "++).(++" with Haskell is that it can be extremely compact")) ["nice thing", "problem"]
385.
▲
by
ajanuary
13y ago
Using a language that eschews state to try and process the state in a modal editor tickles me.
386.
▲
by
ajanuary
13y ago
Feature suggestion: An optional variable prefix/suffix to make them stand out, making it easier to replace variable names as you read through the code and see what you've chosen and what was auto-generated. Alternatively, an optio
387.
▲
by
ajanuary
13y ago
"Look at all these devices with curated lists of shortcuts, now look at this browser that has...the ability to create a curated list of shortcuts" The only way Google is killing bookmarks is by being useful.
388.
▲
by
ajanuary
13y ago
Isn't the probability of c and d half that of a and b? If BG is the case, there's 100% chance he's talking about the first child. If BB is the case, there's a 50% chance he's talking about the first one, and a 50% c
389.
▲
by
ajanuary
13y ago
Of course that's a much simpler way to simulate the problem, but then you get people trying to argue that HT and TH should be collapsed into a single state. By using a simulation with repetition it's easier to pose the states as &
390.
▲
by
ajanuary
13y ago
The reason age was introduced was simply was a way of differentiating the two children (giving them identity). You introduced names to differentiate the two children, which is another perfectly good way to do it. But then you _also_ introdu
More ›