Archive for 'tip'
Using Git with Subversion: Tips that will make your life easier

Using Git with Subversion: Tips that will make your life easier

Posted 06 July 2011 | By | Categories: featured, git, linux, programming and tip | 10 Comments

  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 [...]

vim mind share soaring: roundup of 10 vim articles, recent and older gems

Posted 26 November 2008 | By | Categories: editors, featured, programming, tip and vim | 16 Comments

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 [...]

a webapp in 1 week (part 2): the source of data

Posted 18 November 2008 | By | Categories: programming, python and tip | 1 Comment

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 [...]

linux one liner to extract email addresses from a django log file

Posted 12 November 2008 | By | Categories: linux and tip | 1 Comment

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 [...]

One-liner to list Ubuntu packages you installed recently

Posted 09 November 2008 | By | Categories: programming and tip | Comments Off

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

Using gmail for outbound smtp on Mac OS X Leopard

Posted 08 October 2008 | By | Categories: mac and tip | Comments Off

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.

one line search and replace in a folder [OSX]

Posted 01 October 2008 | By | Categories: programming and tip | Comments Off

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’ {} \;