Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
mjs
16y ago
If you have a function foo() that takes a callback as an argument i.e. something like: foo(..., function (n) { // closure over q, r, s }); Then what you can do is create a separate function, bar() that takes q, r, s as an argu
272.
▲
by
mjs
16y ago
This solves two problems: (1) the only visible/bookmarkable URLs are those without a #!; and (2) initial page loads can be fulfilled by a single request to the server. It doesn't solve the problem of URL discovery, but two out of three ain
273.
▲
by
mjs
16y ago
Heh, I got the impression that he tried harder to get Lua working, partly because he felt is was a more pragmatic choice, but I take your point.
274.
▲
by
mjs
16y ago
The two most interesting points for me: * JavaScript wasn't the original language choice: he originally tried C, Lua and Haskell. He especially liked Lua but "it already had a lot of libraries written with blocking code." * He regrets usin
275.
▲
by
mjs
16y ago
The reason they're coloured like that is that you can get to the pale red (0%-3%) by putting you money is much safer vehicles like term deposits or bonds. If you're getting less than 3% out, stocks aren't worth it.
276.
▲
by
mjs
16y ago
The two green squares are 7% annual return or greater, so you can be in the beige somewhere and still be getting decent returns. It does seem somewhat difficult to end up on a green square though--there aren't that many of them and there ar
277.
▲
by
mjs
16y ago
Thanks for breaking that down, it's all, uh, a little terse. The ..^ operator (including the right endpoint?) doesn't do what I was expecting: > 1, 2, * + * ..^ * >= 100; 1 2 _block298 Also, this seems a little unfortunate:
278.
▲
by
mjs
16y ago
If you do have an account but your password is not a dictionary word and it's been hashed and salted, do you care?
279.
▲
by
mjs
16y ago
What's the point of these tools that let you know whether Gawker's database held my email address? It's no secret that I have a Gawker account, and a Twitter account, and a Facebook account... What I would like to know is how likely it is t
280.
▲
by
mjs
16y ago
Really? If my original Palm Pre has a curved screen, it's basically imperceptible. (And if anything, looks to be convex, not concave.)
281.
▲
by
mjs
16y ago
Excellent! Yes it seems a bunch of people like to visualise how the repo changes via these sorts of diagrams. http://marklodato.github.com/visual-git-guide/index-en.html has similar stuff.
282.
▲
Git-reset: three simple rules that capture most of its (complicated) behaviour
(blog.plover.com)
49 points
by
mjs
16y ago
|
4 comments
283.
▲
by
mjs
16y ago
How does the privacy features (i.e. restricting access to certain information to certain people) work if the information is embedded in DNS? (Also, how can you use "dig" or similar to extract the information from a *.tel address? Everythi
284.
▲
by
mjs
16y ago
There's a decent Microsoft blog post explaining which aspects of browser performance the different benchmarks test: http://blogs.msdn.com/b/ie/archive/2010/09/14/performance-wh... On SunSpider: "The WebKit SunSpider tests exercise less th
285.
▲
by
mjs
16y ago
My comment was more of an observation rather than a telling point for or against git, but I don't think it's a huge advantage of git that everyone has a backup copy of the repo that can be used for failover. github is essentially a central
286.
▲
by
mjs
16y ago
It occurs to me just now that it's kinda weird that subversion repositories are pretty much distributed everywhere; git repositories generally end up on github.
287.
▲
by
mjs
16y ago
This should be at the top of the post, rather than right at the bottom... (Another case of malice or stupidity--stupidity wins a lot of the time.)
288.
▲
by
mjs
16y ago
The reason for refunds in the hosting business is not to compensate the buyer for any loss of business they might suffer if their site goes down (this will probably be many times what the service provider would make from the account); it's
289.
▲
by
mjs
16y ago
This is also pertinent: http://www.mongodb.org/display/DOCS/How+does+concurrency+wor... Note that whilst a write blocks all other writes, the time you need to wait is the time it takes for the in-memory data structure to be modified; you
290.
▲
by
mjs
16y ago
There's a blog post where the MongoDB people explain why they haven't prioritised single server durability: http://blog.mongodb.org/post/381927266/what-about-durability Basically: (a) for real single server durability you need to turn off
291.
▲
by
mjs
16y ago
TC is trolling for pageviews perhaps, but I did like copy-and-paste of an entire AP story at the end.
292.
▲
by
mjs
16y ago
Does the preprocessor generate raw (i.e. conventional) CSS, which it then convinces the browser to evaluate or re-evaluate as necessary, or does it actually apply the styles itself with JS? i.e. something equivalent to jQuery('.heading').c
293.
▲
by
mjs
16y ago
Nice tip! One small problem: if I set .ssh/config to do the RemoteForward, if I open up two shells to the same host, the second shell complains that it can't set up the remote forward (because the first shell has already set it up). Of co
294.
▲
by
mjs
16y ago
True, but I don't think Math Overflow and SO are really equivalent: most of the Math Overflow participants are academics; if you asked the same question on a SO for academic computer scientists I think you'd get similar results, especially
295.
▲
by
mjs
16y ago
I might have missed it, but does Conway concede at any point that there's anything he (or the Perl 6 development process) should've done differently, or better? From the interview, it seems that the last 10 years turned out as entirely as
296.
▲
by
mjs
17y ago
--post-* is pretty sensible for POST. Unfortunately wget doesn't do PUT or DELETE.
297.
▲
by
mjs
17y ago
wget has a better-designed command line API and documentation, although its inability to PUT or POST is rather unhelpful. For example, curl uses --include to output full headers (wget uses --save-headers) and, more inexplicably, --request
298.
▲
by
mjs
17y ago
The do say that it does fuzzy matching, so it can still work with minor changes. I don't think any program guarantees that the GUI is a stable API! I do wonder about its ability to handle unexpected conditions, or for the scripter to know
299.
▲
Comparison: drawing straight lines on mobile touchscreens
(labs.moto.com)
3 points
by
mjs
17y ago
|
0 comments
300.
▲
by
mjs
17y ago
Hey, that's some quality XML they're pumping out there. From their population data: <ROWSET> <ROW> <Area_Code>00AA</Area_Code> <Area_Name>City of London</Area_Name>
More ›