Scope 'this', and scope 'that'

As a guy that tries to live his professional life in the middle of the dichotomy “C/C++ - JavaScript”, I often find myself discussing the discrepancies, differences and implementation details of the latter (an half-assed prototypal language) using the former. The other day I was chatting with Luca (@lucabox) about scope in JS, and we were describing the different situations you can end up with… and how we work our way out of those culprits. ...

February 12, 2012 · 8 min · 1541 words

Rename Subdirectories in a Tree: the Bash way

My granma always used to say every time she was recompiling the Linux Kernel of her wash machine: Bash Scripting is GREAT! Be sure you learn it. One day will understand why it can make your life much easier. And she was right! I’m not an Bash expert, but when I spend that 10 minutes putting together that scripts that _makes that tedious task piece of cake, the satisfaction is as tick as a Mug of Coffee. ...

September 30, 2010 · 2 min · 277 words

gredirector - 'HTTP 301' through App Engine

When I decided to migrate to this new blog I was confronted by a very important issue: how do I make sure that the (already modest) traffic going to http://www.detronizator.org/* would be redirected to this new URL? 301 Redirection I started searching and I found this article by Danny Tuppeny on how to use a Google App Engine application to do the trick. So, what I did was to take his code and started putting it in place for me at http://redirector.ivandemarino.me. But because I’m a Software Developer that likes to make elegant stuff, I noticed that quite few things were missing: ...

September 29, 2010 · 5 min · 966 words

Git-over-SSH through Socks 5 Proxy on Windows

Because of my work, I use crappy M$ Windows in my office. And we are behind a bidirectional firewall. So, how do you do if you need to pull/push code with Git-over-SSH in this scenario? You need a Socks 5 that passes the firewall, and some scripting. First, you need to install: Git on Windows - http://code.google.com/p/msysgit/ Connect.c - http://bent.latency.net/bent/darcs/goto-san-connect-1.85/src/connect.html Then, you need a script that connects to the Socks 5 server. Like: [sourcecode lang=‘bash’] #!/bin/sh ...

August 13, 2009 · 1 min · 200 words