Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mattparlane
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
mattparlane
13y ago
Very cool. I'd recommend adding something about callbacks defined in loops, ie: for (var i = 0; i < 10; i++) { $('.thing').click(function() { alert(i); }); }
32.
▲
by
mattparlane
13y ago
Very nice. It looks to me like PHP.rb should be in Ruby -> PHP rather than PHP -> Ruby.
33.
▲
by
mattparlane
13y ago
Gah! Thanks for the tip... it's hard work being a novice. :)
34.
▲
by
mattparlane
13y ago
I'm from NZ, I've never heard about this stuff till now. I just bought myself a couple of bottles here[0], $4.88NZD each, which is currently $4.05USD. [0] http://www.mightymart.co.nz/product/Suree-Sriracha-Chi
35.
▲
by
mattparlane
13y ago
There are four "[citation needed]"s in the first paragraph. Surely there must be some substance out there? I did some quick Googling and couldn't find much beyond what the article already has.
36.
▲
by
mattparlane
13y ago
Thanks for pointing out that 100 minus 33 equals 67.
37.
▲
by
mattparlane
13y ago
Came here to say this. If you use var_dump you can see it's coercing the result to a bool. $ php -r 'var_dump(1 && 2);' bool(true)
38.
▲
by
mattparlane
13y ago
The .org site hasn't been delisted, so it's obviously not based on content: https://www.google.co.nz/search?q=site:news.ycombinator.org
39.
▲
by
mattparlane
13y ago
This is pretty exciting. A couple of questions: How are you (Tokutek) planning to keep up to date with the MongoDB tree? Are you planning on talking to the MongoDB folks about upstreaming this? Or will it be a pure fork with no sharing eith
40.
▲
by
mattparlane
13y ago
Can't believe that no one has mentioned the chart yet -- a non-zero baseline is highly misleading. http://tctechcrunch2011.files.wordpress.com/2013/06/browser_...
41.
▲
by
mattparlane
13y ago
This is not particularly new, it's from May 2012. There's an easier-reading writeup here: http://gigaom.com/2012/05/16/calvin-a-fast-cheap-database-th...
42.
▲
by
mattparlane
13y ago
I'd really love to see some stats on page load times before and after.
43.
▲
by
mattparlane
13y ago
I see you're running FPM -- I had the same problem, and it turned out to be FPM's worker auto-spawning system. I set it to pm = static and set the number of workers to 50, which is the most I ever need, plus some headroom. Give that a go.
44.
▲
by
mattparlane
13y ago
This page: http://nginx.org/en/docs/http/ngx_http_spdy_module.html says that the module is experimental. Is that accurate, or have they just not updated it once nginx stable was released?
45.
▲
by
mattparlane
13y ago
No, it wasn't around when we switched to MongoDB. Still doesn't have PHP drivers either. Pretty sure at least one of those answers was worth an upvote...
46.
▲
by
mattparlane
13y ago
It is true that it requires a shift to go from AND/OR SQL queries to doing the same thing programatically. I'm not sure anything there has changed in the last 12 months, at least not huge changes. I've found it to be not a huge problem thou
47.
▲
by
mattparlane
13y ago
It uses memory mapped files, which is different from malloc()ing a whole lot of memory. If you do a "top" or whatever, it won't show up as taking a lot of resident memory, but "free" will show it being taken up in the "cached" column. The e
48.
▲
by
mattparlane
13y ago
I'm not sure where your idea about MongoDB taking "an entire server". It will use as much memory as it has available to it, but of course you can run other things alongside it. I'm currently running PHP, Ruby, Memcache, Postfix, nginx, plus
49.
▲
by
mattparlane
14y ago
I like to think I just contributed to the internet in some small way. :)
50.
▲
by
mattparlane
14y ago
Gah! The writer needs to read this: http://www.its-not-its.info/
51.
▲
by
mattparlane
14y ago
I think you need more linebreaks between the questions and the answers -- the first four answers were above the fold when I loaded the page.
52.
▲
by
mattparlane
14y ago
Wow, they've even labelled gulags: http://goo.gl/maps/6IiCp
53.
▲
by
mattparlane
14y ago
I've been through the hassle of programatically piecing together complex SQL queries, and I'd far rather be able to just put together hashes that represent my query. SQL was originally designed so that people who were savvy but not necessar
54.
▲
by
mattparlane
14y ago
Ah, gotcha. If you have the console open at the time when the warning is triggered, you should be able to get a backtrace by clicking on the arrow beside the warning -- that will show you whereabouts in the code the problem is. At least tha
55.
▲
by
mattparlane
14y ago
Those are warnings to let you know that you are using deprecated functionality. Everything should still work, but you'll want to switch to the updated versions soon. Instead of $.browser, use $.support, and instead of .live(), use .on().
56.
▲
by
mattparlane
14y ago
See my comment about Hipache -- it pulls config from Redis on the fly.
57.
▲
by
mattparlane
14y ago
Another alternative is Hipache: https://github.com/dotcloud/hipache It's based on NodeJS, and it's really good. I've been using it in front of three web servers serving around 800 small-to-medium business websites for the last six months
58.
▲
by
mattparlane
14y ago
Thanks, makes sense.
59.
▲
by
mattparlane
14y ago
What is/was w3.gov? Google gives me nothing useful.
60.
▲
by
mattparlane
14y ago
1) A few things, notably server push. 2) curl and wget will probably eventually add support. telnet not so much, but then again you can't really debug HTTPS or even HTTP/1.1 (with chunked encoding) with telnet.
More ›