Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mattparlane
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
mattparlane
14y ago
For those using homebrew: brew install https://raw.github.com/Homebrew/homebrew-dupes/master/grep.rb
62.
▲
Show git branches sorted by latest commit
(coderwall.com)
1 points
by
mattparlane
14y ago
|
0 comments
63.
▲
by
mattparlane
14y ago
Alternative Flash players seem to come along every year or two, but none of them have ever got beyond an experiment. Is this likely to be any different?
64.
▲
by
mattparlane
14y ago
There is nothing specific to MongoDB here. Also, using appropriate cache headers and putting a Varnish cache in front of the Rack server would be far easier and faster and would also reduce the load on the Rack server itself. Oh, but then I
65.
▲
by
mattparlane
14y ago
Sorting is easy, you just choose _id as the sort field. Selecting is also reasonably easy, the first 4 bytes of the id are the timestamp (seconds since the epoch). You just create a hex string in that format -- 4 bytes of timestamp and then
66.
▲
by
mattparlane
14y ago
If you need to store non-UTF8 data, MongoDB has a binary data type: http://php.net/manual/en/class.mongobindata.php You can't do things like regex searches on binary data, but since MongoDB supports different data types within the same "c
67.
▲
by
mattparlane
14y ago
I can't help but think that presenting this graph on a log scale isn't the best way to do it. I mean, if the number went up linearly year-over-year, wouldn't it look like that on a log scale anyway?
68.
▲
by
mattparlane
14y ago
The only reason he doesn't like copyright law is because it stands in the way of him living the life he wants. This guy absolutely disgusts me -- he doesn't give a shit about free speech, he just wants to live in his enormous mansion and ea
69.
▲
by
mattparlane
14y ago
That's my understanding too, but MongoDB hit the sweet-spot for us, Riak couldn't handle the raw queries-per-second we needed without requiring extra hardware ($$).
70.
▲
by
mattparlane
14y ago
My number one reason for choosing MongoDB is replication that just works out of the box and doesn't require either a read lock or shutting down the master to set up a new slave.
71.
▲
by
mattparlane
14y ago
explain actually runs the query. From http://www.mongodb.org/display/DOCS/Explain : Note that explain runs the actual query to determine the result. If the query is slow, the explain will be slow too.
72.
▲
by
mattparlane
14y ago
You may be interested in this: https://jira.mongodb.org/browse/SERVER-3071 It's index intersection, and it's scheduled for 2.3.1 which is the next next dev release. I'm hoping it makes it in for 2.4.
73.
▲
by
mattparlane
14y ago
Does anyone know what the status of the new Australis theme is? I think FF is really in need of an update and the mockups of Australis that I saw looked really nice to me.
74.
▲
by
mattparlane
14y ago
Agreed. Also -- ASP is not a language, unless they're talking about VBScript, which I would have thought would be lumped with VB.
75.
▲
by
mattparlane
14y ago
If you're wondering if there's a typo in the article, we say "tomahto", not "tomayto", much like the Brits.
76.
▲
by
mattparlane
14y ago
The worst thing about New Zealand is that our national sport makes no sense. I've had to explain rugby to a few foreigners and it's a challenge. Still, it's nice to be the best in the world at something.
77.
▲
by
mattparlane
14y ago
But if I need an abstraction to talk to my database, why not choose a database that requires no abstraction? I've used ORMs and I've had to write my own once or twice, I really don't like them.
78.
▲
by
mattparlane
14y ago
You're getting downvoted, but I'll reply anyway -- I agree completely. If you're typing raw SQL for getting reports out of a database then you're probably fine, but for web apps you're not typing queries, you're constructing them as strings
79.
▲
by
mattparlane
14y ago
I ran it a few times as well and most of the benchmarks seemed to be within statistically insignificant margins, except for three which were much faster -- including $('#id'), which has got to be the most common selector (at least it is in
80.
▲
by
mattparlane
14y ago
http://jsperf.com/sizzle-1-7-2-vs-1-8
81.
▲
by
mattparlane
14y ago
I'm a bit late on the discussion, but one advantage that I can see is that Hipache adds the HTTP_X_FORWARDED_FOR header, something that the Haproxy author refuses to do (perhaps for good reason, I'm not sure).
82.
▲
by
mattparlane
14y ago
Fairy nuff, I thought transistors might have been used in 1957 but I guess not.
83.
▲
by
mattparlane
14y ago
What I'd like to know is why the recording equipment kept functioning -- isn't an EMP supposed to wipe out sensitive electronics? At least that's what the movies tell me...
84.
▲
by
mattparlane
14y ago
It's not really measuring "pressed keys", it's measuring a final product -- I'd be interested to see which languages highlight the backspace/delete keys more.
85.
▲
by
mattparlane
14y ago
Up next... Ruby! How much I wonder? I can't decide whether it would be more complex than Python or less...
86.
▲
by
mattparlane
14y ago
Same here, on Chrome stable (18.whatever).
87.
▲
by
mattparlane
14y ago
That looks like a really useful resource, but seriously -- EXE or CHM files? I would have thought that a huge chunk of the people likely to be deploying nginx would be on either OSX or Linux machines...
88.
▲
by
mattparlane
14y ago
They use the (fairly common) scheme where odd-numbered point releases are development and even-numbered point releases are (declared) stable, so there is actually a lot in this. Check all the "Feature:" lines in the 1.1.x versions.
89.
▲
by
mattparlane
15y ago
The only problem with this method is that it requires that IDs are integers, start at 1 and increment by 1. I'm using MongoDB and IDs are 12-byte values of which the first four are a timestamp. Does anyone know of a way to make this method
90.
▲
by
mattparlane
15y ago
Ah sorry, teach me to try to be clever... :) It appears that the Changelog was modified thusly: https://github.com/mirrors/gcc/commit/63f5ad449bbe0a4d478ae9... I guess you could just download the source and see if it's in there. EDIT: It
More ›