Friday, March 1, 2013

Why I hate node-gyp

Today I had to install a node module of mine in a sandboxed environment (i.e. isolated from the system directories) and due to node-gyp what usually is just a matter of time turned into a nightmare.

One liner http server

Since the day a friend of mine introduced me to nodejs, I now use it for all kind of daily stuff.
Today I had to troubleshoot connections behind a firewall. This easy node one-liner helped me do that:

$ node -e 'require("http").createServer(function(req, res){ console.log("Got request"); res.end((new Date) + ""); }).listen(3001);'


Thursday, January 31, 2013

expressjs async middlewares

Dealing with async Middlewares in connect/expressjs can lead to unexpected behaviors if you don't take extra precautions.

Saturday, January 12, 2013

Snippets in JS

Mainly useful to me, but can also be found useful by others, I'll put here some of the JS snippets I don't want to loose. Some are written by me, some may be found on the internet in which case I'll try my best to give credit to the author(s). This document should be a living document. Feel free to comment and submit new snippets in your comments. Cheers.

Thursday, January 10, 2013

Nodejs in admin land

Today I needed to install a node app on a remote server which uses monit as monitoring facility.

Sending the app over to the remote host was done using the 'git clone' command.
But now that the app is in place I need to monitor it.

Wednesday, January 9, 2013

iOS Provisioning Profile demystified

Ever had to create a new provisioning profile for an iOS app? Or had to deal with not working certificates? In this post - a living document - I will try to explain some of the concepts of Apple's code signing workflow which despite the amount of resources and tech-notes has caused me so many headaches.

Saturday, January 5, 2013

Brewing Nodejs

Lately I ran into an issue while doing a 'brew upgrade' on my mac. Homebrew upgraded nodejs from 0.8.4 to 0.8.16. It was a very bad time for me to do this update since I was pretty much in the middle of a very important nodejs development and all the setup was working well enough... In fact I was willing to do a 'update' of brew and ended up typing 'upgrade' ... !#?@