Posted on 06 July 2011. Tags: dvcs, git, linux, programming, subversion, svn, vcs
In the last couple of years I’ve been working on various projects that – unfortunately – still use Subversion as their version control system. I moved to git already a few years ago and I wanted to keep using it as much as possible. Luckily git-svn is an incredibly complete tool to interact with [...]
Read the full story
Posted in featured, git, linux, programming and tip
Posted on 26 November 2008. Tags: configuration, editor, emacs, guides, howto, programming, roundup, textmate, tips, vi, vim
Am I the only one to notice that there is a lot of vim love in the airwaves recently? I saw the trend very clearly, spanning from reddit to news.yc and let me say that the material that came up recently is very good; those neat posts prompted me to improve my vimrc dramatically and [...]
Read the full story
Posted in editors, featured, programming, tip and vim
Posted on 18 November 2008. Tags: data, freebase, semanticweb, webapp
In the first installment of this series I’ve spoken about a set of technologies that can speed up the time to market quite a bit. Read about it here if you missed it. This time I want to talk about where to get the content for your niche web app – if you need a [...]
Read the full story
Posted in programming, python and tip
Posted on 12 November 2008. Tags: awk xargs linux uniq
Say something bad happened and your application sent emails that it shouldn’t have (ahem who? not me…) and you want to collect the emails to apologise. So you just copied the output of a log file in a text file (wrong.txt) like the following: sending message ‘Confirm email address for example.com’ to email1@test1.com sending message [...]
Read the full story
Posted in linux and tip
Posted on 09 November 2008. Tags: ubuntu xargs dpkg awk
Quick one liner to list the ubuntu packages you recently installed on a machine. I needed this to copy the configuration of one of my production boxes onto a dev environment: sudo cat /var/log/dpkg.log | grep \ installed | awk {‘print $5′} | xargs mysql-client-5.0 mysql-server-5.0 … apache2
Read the full story
Posted in programming and tip
Posted on 08 October 2008. Tags: gmail, leopart, mac, mail, osx, postfix, smtp
I had problems setting up postfix to run properly on my macbook pro. Then I found this very clear, step by step how to. And now everything works like a charm. The only drawback is that I can now basically only send email from my gmail account. Well that will do it for now.
Read the full story
Posted in mac and tip
Posted on 01 October 2008. Tags: find, osx, replace, search, sed, unix
Beautiful tip to search and replace all occurrences of a string in a given folder. I had to change it slightly to make it work under OSX so here it is for future reference: find . -type f -exec sed -i -e ‘s/Old/New/g’ {} \;
Read the full story
Posted in programming and tip