Urban graffiti

I love going around a city looking for street art.  It feels like a treasure hunt.  You never know what you are going to get: a wonderful piece of art that you love, art that you don’t quite like, or maybe an empty wall; you never know in advance.  The compositions might be thought-provoking, colourful, or simply some elaborately caligraphed phrase or name; maybe all of them!  Often the story does not stop at just going and looking at the art, almost always there are associated stories behind each piece.  I find trying to seek out these stories an incredible experience.  I think it speaks about a city’s character, history, culture and maybe even its “personality”.

Since I have been living in Amsterdam for quite sometime now – inspired by a talk I attended at the Van Gogh Museum by Nicole Blommers – I have been trying to spot graffiti around Amsterdam.  I have managed to put them on a Google map.  You can check it out; I’ll keep it updated as I explore more and find new artworks.

Simple git blame function to follow C/C++ functions

function git_blame_fn() {
    if [[ $# -lt 2 ]]; then
	echo "Insufficient arguments."
	echo -e "\e[1mUsage:\e[0m $FUNCNAME <fn_to_blame> [options] <src_file>"
    else
	local fn=$1
	git blame -L "/[a-zA-Z0-9_*]\+ \+${fn}/,/^}$/" ${@:2}
    fi
}

Some mplayer -slave foo

I am an extremely lazy person. That means I am always looking for ways
to do things quicker, easier and with the least bit of effort. This
incessant obsessive search for alternate solutions often leads to some
quite cool discoveries.

This particular post is to share with others as lazy as myself who
hate to get off their bed to change the movie or volume of the mplayer
instance playing on the desktop when you have your laptop lying next
to you. Of course this is easily solved with some money if you buy an
LIRC remote (mplayer supports it). But the challenge there is to
actually find a decent remote that works with PCs (damn you
consoles!). Hope this keeps you on your bed longer, so here it goes:

Continue reading

color-theme-dark-emacs

How it started

I recently made an emacs theme with dark looks, thought it would be good to share with others. I love the look and feel of emacs when run inside the terminal. So I was looking for a way to get a dark look for my emacs when I was using the gui. A helpful emacswiki user (ZWZ) pointed me to a theme he had worked on, so I started off from there.

Mostly I wanted a theme that would make the transition from the terminal to gui seem seamless.

How to use?

Just install color-theme from http://www.nongnu.org/color-theme/. And go ahead and grab dark-emacs from my github repo. Put it in, say ~/.emacs.d/, and call it from your init file (e.g. ~/.emacs) like this,

Continue reading

Using OpenOffice.org Impress templates

I recently gave a talk presenting my research progress at the University. Everyone in my lab uses beamer and LaTeX, I am however of the opinion LaTeX is very restrictive with its formatting when it comes to presentations. For documents the structured approach of LaTeX is awesome. But for presentations I would rather have the flexibility of a point-and-click interface. Gives you a lot of room to present things the way you like.

So now to the object of this post, I chose OpenOffice.org with the ooolatex plugin as my office suite of choice. I ended up creating a template to suit my needs, and this post is just to document my thoughts/reasons behind the design.

Anyone can download and use the template from here here as long as they agree and adhere to this Creative Commons license.

Continue reading