HNHacker News
TopNewBestAskShowJobs

nickzoic

140 karma · joined June 13, 2010

http://nick.zoic.org/
submissionscomments
nickzoic··on Why Nobody Should Use Rails
> But it is expressly not a benchmark of database servers.

Oh, okay, cool. I'd misinterpreted it as being a kind of a "full stack" test. I didn't look at any of the "fortunes" examples, either, as it happens.

I can see where you're coming from, but I'd still be concerned that the concurrency and connection pooling behaviour could be quite different depending on the DB query behaviour.

What I should have said is "... predictive of how well your website will actually work under load". But nothing much is predictive of that except for trying it with synthetic data ...

nickzoic··on Why Nobody Should Use Rails
There's another Tornado using MySQL, at 17.8%.

According to their README.md, the tests:

    * Access a database table or collection named "World" that is known to contain 10,000 rows/entries.
    * Query for a single row from the table or collection using a randomly generated id (the ids range from 1 to  10,000).
    * Set the response Content-Type to application/json.
    * Serialize the row to JSON and send the resulting string as the response.
10,000 is a couple of orders of magnitude too small to be interesting for a primary key lookup. And encoding two integers as JSON is not exactly a test of JSON encoder performance either.

I'm not saying that this kind of multi-way-shootout benchmark is a bad idea, I'm just saying that the current rounds of results are unlikely to have much predictive power ...

nickzoic··on A fast and static web server for serving web apps
Lots of people have asked "Why not Nginx? Why not thttpd?" ... but if all you want to host is static files, why not AWS S3 or similar CDN?
nickzoic··on When a fire alarm rings, people do not act. They stand around.
This is odd, because every time I've been in a building when a fire alarm went off, people by and large got up and got out. Okay, so they generally brought their coffee with them, and sometimes their laptops. Maybe it was because there were unannounced fire drills and occasional false alarms, so it wasn't really a novel situation.
nickzoic··on How much information can you convey with a 1 bit interface?
Also "Tiny Wings" (for iOS) and there was one called "fishy fishy" or something like that for PC.
nickzoic··on Two dozen mathematicians wrote a 600 page book in 6 months on GitHub
Sure, but in practice, starting each sentence on a new line isn't difficult and works great with standard 'diff'. I actually quite like it for proofreading, since fragments and run-on sentences jump out at you.
nickzoic··on Erato - simple and beautiful markdown editor
You see, on the one hand I think this is kind of admirable. Yay, I type my markdown over here and I can instantly see the bits I got wrong over there.

But I also can't help thinking, if you're going to all that effort why not go full WYSIWYG, with Markdown as the file format? (You'd need some kind of support for merge markers I suppose, I guess that'd be kind of tricky.)

You know what it reminds me of? Wordperfect 5.1's Reveal Codes :-)

nickzoic··on The Elves Leave Middle Earth – Sodas Are No Longer Free (2009)
Get your CV ready ...
nickzoic··on Choosing Minecraft over Disney
Yep, brilliant for 5 year olds and the "Pocket Edition" tablet interface is a lot easier for young kids to handle than the mouse-keyboard version on the PC. Plus the world is smaller, which makes it a lot harder to get hopelessly lost.

PS: People who live in brightly-coloured woolen houses shouldn't play with buckets of lava.

nickzoic··on My one talk with Marissa Mayer
Dark chocolate perhaps?

FWIW I think the best thing about the existence of blogs is learning from others' successes and mistakes. The stories of the successes sometimes come off as self-indulgent, the stories of the mistakes sometimes come across as bitter. Such is life.

And you know what? Some day I might be fortunate enough to be in the position to negotiate myself the title of "Grand Poo-Bah of Integrating All The Things" at the acquiring company, and I'll remember your article and negotiate for a nicer parking spot instead. Cheers!

EDIT: s/come/sometimes come/g

nickzoic··on Choosing Minecraft over Disney
Thanks! I just cut-and-pasted it, didn't think to check whether the quote had made it through unmolested.
nickzoic··on Choosing Minecraft over Disney
Agreed re: minecraft, which is fantastic, but Plants vs. Zombies is actually a really good game too. I like to think of the planting sunflowers mechanic as the kids' first introduction to compound interest.

If the kids are really excited about logic gates, hunt down "Rocky's Boots"[1] or one of its descendants.

[1] http://en.wikipedia.org/wiki/Rockys_Boots

nickzoic··on Half-Life 2 released for Steam on Linux
Portal worked great on Wine / Linux for me right up to (what I think is) the last level, when the frame rate suddenly plummeted to barely playable. Now it's out for native Linux I'll have to see if the same thing happens.
nickzoic··on Honeywords: Making password-cracking detectable
Personally, I suspect the Right Way to do this is for W3C to standardize a special input field something like:

    <input type="passhash"/>
which looks like a normal password entry field but automatically does some clever hashing on the client to create a per-site password.

Of course, you can still get keylogged if you use a public computer or whatever.

nickzoic··on Do not use RJS-like techniques
Do you mean doing things (in jQuery) like:

    $('<div id="' + identifier + '">' + some_text + '</div>');
If so, consider doing:

    $('<div>').attr('id', identifier).text(some_text);
which handles escaping correctly for you.

Or equivalent in your preferred JS framework or lack of framework.

nickzoic··on Show HN: Find the cheapest Amazon for your books
Wow. Thanks for saving me umpteen bucks over the last few years.
nickzoic··on Show HN: Weekend project - HTML5 Game Engines: which is right for you?
Nifty. Since you're here, can I suggest that you work out a way to differentiate between "0 stars" and "unreviewed"?
nickzoic··on What It’s Like to Get Online After 25 Years in Prison
Using a GET for this is okay, because `kill` is idempotent.
nickzoic··on Knives in airport cabins? No thanks
Read the actual rules in the graphic in the article. The "knives" they are talking about are the tiniest little scrapers, first class cutlery would be more dangerous.

For example, the Leatherman Wave is too long (by 7mm) too broad (by 1mm) and locking in any case. That was in my toolkit in my cabin baggage all the time back in the 90s.

nickzoic··on Sex Machine: Get gender from first name in Ruby
first name, birthdate, country/region code to allow for regional variations.

Would make a nice exercise in fuzzy decision processes, but I suspect it isn't a great idea: you'd be better off leaving that field as "unknown" by default and writing "Dear Sir/Madam" if it is unknown.

nickzoic··on This Page Is Why The Internet Sucks
* Wordpress.com plus $30/year to remove ads?

* wordpress on a AWS microinstance (free for the first year, 'bout $100/yr after that)?

* Cheapie shared host like asmallorange.com (better than you'd expect for $35/year)

* Static blog tool (pelican etc) pushed into AWS S3 plus disqus for comments?

nickzoic··on This Page Is Why The Internet Sucks
Or you could just improve the text rendering engine of a normal HTML browser to do better typesetting. That'd make your HTML2.0 content look nice too!

It isn't like using TeX is any guarantee of niceness: http://www.ieee.org/documents/TRANS-JOUR.pdf

nickzoic··on Stolen From Apple
So, once the modified clone(s) start to get a foothold in the market, release a new version of the OS which checks for the existence of the copyrighted marker:

http://en.wikipedia.org/wiki/Apple_ProDOS#Unlicensed_Apple_I...

nickzoic··on Stolen From Apple
As well as a real "APPLE ][", we had a clone which displayed "GALAGA" on boot, bought from Singapore I think. It was otherwise identical to the real one, including the rest of the EPROM image. So there really were clones "Stolen from Apple".

To get it to run ProDOS we had to reburn the EPROM on that sucker :-): http://en.wikipedia.org/wiki/Apple_ProDOS#Unlicensed_Apple_I...

There's a similar mechanism in OSX to this day: http://www.projectosx.com/forum/index.php?showtopic=1320

nickzoic··on DRM Chair only works 8 times
I like it as a concept, but I was hoping for some kind of ratcheting mechanism ... a little pin in a zig-zag groove so that the eighth time you stand up it releases and the legs fall off.
nickzoic··on Why a one-room West Virginia library runs a $20,000 Cisco router
Two UPSes.

Although I've got a good war story on that one too, I had a machine with redundant PSUs emit a stream of smoke from one of the PSUs. It was happily up and serving while smoking out the machine room until the operator (rather sensibly) grabbed both power leads and pulled, at which point both fire and ssh went out ...

nickzoic··on Why a one-room West Virginia library runs a $20,000 Cisco router
shrug If you want it to actually work, all the time, go with dual hotpluggable PSUs on everything every time. And two separate UPSs.

If the cheapest router Cisco has with dual PSUs is a 39xx, well, I guess that's what you need.

Of course, there's an argument there that "99.999% uptime" is pretty pointless for a town library in the middle of nowhere, but that's a whole 'nother argument.

nickzoic··on Why Use Make
> You can approximate URL dependencies by checking the > Last-Modified header via curl -I.

... or better, use the '-z' option.

    counties.zip:
        curl -o counties.zip -z counties.zip 'http://whatever.zip'
nickzoic··on Why Use Make
I've used Make in a similar context: building documents.

Raw simulation results (.log) -> Processed for plotting (.plot) -> Ugly Fig files (.x.fig) -> Pretty Fig files (.fig) -> EPS files (.eps) -> The final document (.pdf).

By including the right dependencies in there, you can have individual figures update themselves when the raw data changes, and whole swathes of charts update themselves when the 'fixer' scripts get updated.

nickzoic··on Why Use Make
... or use an editor with syntax highlighting for Makefiles.
← PreviousPage 2 of 5Next →