Better HN
topnewbestaskshowjobs
Log inSign up

no-espam

41 karma · joined Jan 31, 2011 (15y ago) · 41 submissions

Submissions

comment 14y ago · link · parent

He's not too smart is he? Married in CA right when the money starts rolling in. HALF! I hope he has a good prenup.

comment 14y ago · link · parent

Never was a real fan of Twitter, BUT since they've opened up all their cool open source projects, I'm their biggest fan!

comment 14y ago · link · parent

#3 I'm not undestanding. Are you doing async? I don't know the socket API but it should be something like this:

it("should wait for socket", function(done) { socket.write("asdfadf", function(err, response) { assert.ok(response.indexOf('token') >= ); done() ); });

#4 If you need a new event loop then write the tests in another module, then simply run your test utility. `mocha` will run all tests in test/*test.js.

RSpec is DOG SLOW! I can run 100s of test in a couple of seconds. Can RSpec even startup in that time?

comment 14y ago · link · parent

These are getting a little stale. Vapor.js was amusing when it came out. It's like they say, you're beating a dead horse.

comment 14y ago · link · parent

Being one of those idiots who went all in with MongoDB with our startup, I can relate. NoSQL should really be called NoDB. There will come a point where you ask, "Dude, where is my database?"

Riak looks interesting but its overkill. They recommend at least three nodes. We went back to PostgreSQL.

comment 14y ago · link · parent

Sorry, I have to disagree about chiclet keyboards and I consider myself a keyboard Connoisseur and a touch typist. I own a couple of vintage IBM Model M keyboards, a Northgate, a Filco ... I've grown fond of the Apple Keyboards and my better halves and those who work around me thank me for it. Vim + Apple keyboard is coding heaven.

I do agree the ThinkPad keyboards were the best in its class.

comment 14y ago · link · parent

And I have used it in a previous project. I'm not questioning the quality of the driver.

My point is the inconsistency of the driver API vs the syntax used in the `mongo` utility. I don't know how many times I've looked at the MongoDB docs and then have to figure how to do the same thing with this driver.

comment 14y ago · link · parent

Too bad they didn't provide a node.js API closer to the mongo command line utility. See https://github.com/marcello3d/node-mongolian.git. The official driver is modeled after Ruby API.

comment 14y ago · link · parent

That seems to be pretty good odds. What percentage of startups actually succeed? I'm in the wrong app business.

comment 14y ago · link · parent

I use my own migration utility using `psql < 01-up.sql`. Too obvious really.

Yes Rails does all that for you automagically but you can use a lightweight ORM like FastLegS. A model is as simple as this:

UserDao = FastLegs.Base.extend({ tableName: "users", primaryKey: "id" });

To expose it:

app.get("/user/:id", function(req, res) { UserDao.find(req.params.id, function(err, result) { res.json(result.rows[0]); }); });

Let's not forget about unit tests. I can run well over 100 test cases in just over ONE second! Rails is PAINFULLY slow at this.

I've done enough Rails to know how productive it is, and there are many things I miss. I'll argue though I'm more productive with node.js since we do most GUI with Backbone on the client. I can share code between client and server, for example validations.

comment 14y ago · link · parent

Setting unicode, changing backspace, setting xterm-256 as the TERM variable, etc ... PuTTy configuration is unintuitive when you first try to configure it. There's a well known page dedicated to configuring PuTTy properly on Windows.

comment 14y ago · link · parent

FYI, seems to work me. I was able to connect to my server in VMware.

comment 14y ago · link · parent

Windows! I spend most of my time coding in PuTTy + Vim when I'm on windows. In my limited testing this works as I expect with xterm-256, tmux, and Vim on my Ubuntu 12.04 Server without having to configure anything. PuTTy is a pain to configure on a new box.

comment 14y ago · link · parent

But why? I'm not loyal to Dropbox. Competition is good for the rest of us. I get 25GB free from SkyDrive. I hope the others follow suit.

comment 14y ago · link · parent

Confusing. It says upgrade to 25GB for less than $2.50/month then it says 20GB for $5.00/year. You would think with Google's budget they would have some person read the front page and the pricing page.

comment 14y ago · link · parent

I would be happy if they added high resolution/retina displays on the 13" MBP which I still prefer over the air for the simple reason I can replace the SSD and memory.

comment 14y ago · link · parent

There are ~$20 drive bay kits. Search Amazon.

comment 14y ago · link · parent

They have a powerhouse college football team. That will keep America relevant in the future.

comment 14y ago · link · parent

Interesting, I just did a grid layout in Twitter's Bootstrap framework and thumbnails look exactly like that. Looks like Bootstrap thumbnails is a Reform Revolution clone :) Oh wait, this reminds me of Polaroids ...

comment 14y ago · link · parent

Wow, downvoted for posting info related to a professor who was held in nazi concentration camp and kept his mind lucid with math?

http://en.wikipedia.org/wiki/Trachtenberg_system

comment 14y ago · link · parent

Professor Trachtenberg (early 1900) comes to mind for doing speed math.

comment 14y ago · link · parent

Two things that transcend trends. White space + good typography. Colors are an accent.

comment 14y ago · link · parent

Hmmm looks like Zune. I'll argue it's one the best pieces of software to come out of Microsoft. Too bad MS just killed.
12