Guilherme Rodrigues is a carioca software developer

Change your Mac OS X hostname for a better looking terminal prompt

The first command to run on your new Mac: sudo scutil --set HostName <new name> Finally! I can say goodbye to: guilherme@Guilhermes-MacBook-Pro ~> and hello to: guilherme@trinsic ~> :) PS: You should also check out using the awesome iTerm2 terminal emulator along with the excellent fish shell.…

Read this article

Quick Tip: one liner cookie read

For all the obtuse native functions JavaScript offers ("wat".blink()?), there isn't a simple way to parse cookies and get the value of a single key. The inter-webs, however, always provide. In my roamings, I have found what is now my favorite getCookie one liner. Here goes: ('; ' + document.…

Read this article

No need for globals - npm scripts add .bin to PATH

npm is the awesome package manager bundled with the Node.js environment. It is a very simple tool to get started with: you usually just npm install stuff and it ends up in ./node_modules/stuff. You can also globally install some packages by using the global -g flag. mocha…

Read this article

How I learned to stop worrying and love React

If you asked me what I thought of React two months ago, I would probably say... Where are my templates? What's that crazy HTML doing in my JavaScript? JSX looks weird! Hurry! Kill it with fire! That was because I didn't get it. But I swear: React is definitely on…

Read this article

Whenever you're frustrated with front end development...

... remember this: building interactive applications is not an easy task. Hey, it's not my opinion. People already thought it was hard 27 years ago: Traditionally, interactive applications have been difficult to build, modify and extend. – Lots of academics around the world Heck, we've been playing with it since the 70's…

Read this article

Quick Tip: fix Atom editor desktop entry missing icon

Last week I decided to try the Atom editor again. I was in for a glad surprise: unlike when I first tried it months ago, it's really fast and stable now. So, as usual, I created a simple atom install script to add to my dotfiles. Unfortunately, when installing it…

Read this article