News for hackers. Stuff that matters.

no-espam

Re:Mark Zuckerberg married on Sunday May 20, 2012 @12:39AM (#3997958)
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.
Never was a real fan of Twitter, BUT since they've opened up all their cool open source projects, I'm their biggest fan!
Re:Why we moved from NodeJS to Ruby on Rails on Monday May 14, 2012 @01:35PM (#3972120)
#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?

Re:HTML9 Responsive Boilerstrap JS on Friday May 11, 2012 @11:14PM (#3962587)
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.
Re:Goodbye, CouchDB on Thursday May 10, 2012 @10:41PM (#3957287)
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.

Re:Dell Announces A Linux Laptop Designed For Developers on Wednesday May 09, 2012 @12:05AM (#3947063)
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.

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.

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.
That seems to be pretty good odds. What percentage of startups actually succeed? I'm in the wrong app business.
Re:Node.js - Convincing the boss guide on Thursday May 03, 2012 @01:29AM (#3922488)
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.

Re:Secure Shell chrome (killer) app on Monday April 30, 2012 @05:20PM (#3911559)
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.
Re:Secure Shell chrome (killer) app on Monday April 30, 2012 @04:49PM (#3911419)
FYI, seems to work me. I was able to connect to my server in VMware.
Re:Secure Shell chrome (killer) app on Monday April 30, 2012 @04:34PM (#3911318)
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.
Re:Google Drive on Tuesday April 24, 2012 @01:02PM (#3884957)
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.
Re:Google Drive on Tuesday April 24, 2012 @12:55PM (#3884892)
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.
Re:Apple to discontinue 17'' Macbook Pro? on Monday April 23, 2012 @11:53AM (#3879383)
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.
Re:Apple to discontinue 17'' Macbook Pro? on Monday April 23, 2012 @11:51AM (#3879368)
There are ~$20 drive bay kits. Search Amazon.
They have a powerhouse college football team. That will keep America relevant in the future.
Re:Reform Revolution, a Pinterest clone? on Saturday March 10, 2012 @09:31AM (#3687820)
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 ...
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

Professor Trachtenberg (early 1900) comes to mind for doing speed math.
Re:Interesting Windows Desktop UI Concept on Saturday February 25, 2012 @04:59PM (#3633951)
Two things that transcend trends. White space + good typography. Colors are an accent.
Re:Interesting Windows Desktop UI Concept on Saturday February 25, 2012 @04:54PM (#3633942)
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.
Re:Sublime Text 2 Build 2181 on Wednesday February 22, 2012 @12:10PM (#3621594)
The new icon is worse. It doen't look like a key. I only figured that out after reading the article. It's not square made worse by the perspective. The other alternatives look much better.
Re:Riak 1.1 Released on Tuesday February 21, 2012 @11:24PM (#3619435)
how much does riak pay you?
Re:Convore Shutting Down on Tuesday February 21, 2012 @12:36AM (#3615346)
I still dont get who would use grove? IRC users aren't exactly looking for a client replacement. Existing IRC clients just work, like Craiglist. Colloquy on the Mac, etc.
Re:CoffeeScript Under Pressure on Tuesday February 07, 2012 @11:09AM (#3562298)
I was bummed `await` and `defer` was not merged in. However, after thinking about it, the same result can be had using a good async library. The code is self-documenting if you choose good property names.

.

follow = (from, to, cb) ->

  # Invokes four async operations in a series, which requires 4 `await`, `defer` 
  # using iced. Note how error handling is handled 
  # in one place rather than each step.
  # That's a big drawback for me with await/defer.

  async.series
    user: (cb) -> User.find name:from, cb

    addFollowing: (cb, results) ->
      results.user.following.push to
      User.save results.user, cb

    followee: (cb) ->
      User.find name:to, cb

    addFollower: (cb, results) ->
      results.followee.followers.push from
      User.update results.followee, cb
    
  , (err, results)
    cb err, results
Re:CoffeeScript Under Pressure on Tuesday February 07, 2012 @10:39AM (#3562161)
It shouldn't matter what the generated code is. Use gitattributes to ignore diffs on generated folders.
Re:Why, oh why, do those nutheads use vi? on Thursday February 02, 2012 @10:26PM (#3545580)
Vim is great but learning requires a good investment of time. If somebody tells you, you can be as productive as with your current editor in a few weeks, don't believe it. If all you need is notepad or gEdit, Vim is not worth the debt. Spend your time learning another language or create an open source project.

I live in a terminal so Vim is my weapon of choice. I tried and bought a license for Sublime 2, which is awesome n vintage mode, but Sublime is not Vim.

Re:Ryan Dahl steps down on Tuesday January 31, 2012 @02:28AM (#3532262)
This is very surprising. Node is not mature yet and the guy with "the vision" is stepping down. Makes you wonder if node is heading in a direction different than Ryan envisioned and it's no longer a labor of love.

Older »