Gordan Grasarevic

Howdy, I'm a developer from London, UK. My languages of choice are Ruby, Javascript, and I am currently learning Go and Haskell. I write code on GitHub, infrequently blog, and share my musical tastes on Feel free to drop me a line at

Convert .mov to .avi using ffmpeg

October 2013

When I was using a Macbook as my primary machine, I had obsessive need to organise all my media (music, TV Shows, and movies) into iTunes. This was tricky mostly with video files as iTunes requires you to have mp4/mov files, so I went through the long processes of converting all of my videos to that format using iFlicks. But when I switched to Ubuntu the vast majority of my videos had no audio, so it was ffmpeg to the rescue.

The following command will do the trick for most videos:

1 ffmpeg -i -acodec copy -vcodec copy movie.avi

I recommend compiling ffmpeg from source as I ran into various issues while using the version available through apt, possibly due to the fact that Ubuntu no longer uses the official ffmpeg, but rather a fork.

Deleting LinkedIn

May 2013

It’s been around a week since I deleted my LinkedIn account, and the only difference I have noticed is that my inbox is cleaner.

LinkedIn is a strange place. I don’t think I’ve ever used it the way it meant to be used, and I’ve still not figured out what its value is. I guess networking, but that has never been a strong point of mine. I don’t think it’s for me, or developers in general, who are according to stereotypes are probably not very good at getting ‘connections’ or ‘endorsements’. So instead of sitting idly by as a steady stream of emails from LinkedIn fills my inbox (filtered, but annoying nonetheless), I decided to delete it. And I’m quite happy with the results. One less useless social media account that I need to check up on from time to time.

Ubuntu 12.10 and nvidia drivers

April 2013

After a seemingly innocent kernel update to 3.5.0-27 my nvidia drivers went crazy and stopped working. Should have been simple enough to fix, but somehow after a reinstall and reboot I was stuck at a black screen with a blinking cursor and my keyboard not working so I was unable to enter a tty. In case you find yourself in a problem like this, try the following which worked for me.

Reboot your machine and when grub pops up (hold shift) to boot into recovery mode. Select to open a root terminal when the recovery mode loads and do the following

Remove lightdm window manager and the current nvidia drivers

1 apt-get remove --purge lightdm nvidia-current

Keep in mind, that if you installed the nvidia drivers directly from their website, you need to download the same run file again and run it with —uninstall

After that, simply install lightdm and nvidia-current again

1 apt-get install lightdm nvidia-current

And then run

1 service lightdm start

This method worked for me, but countless others didn’t, so hopefully it works for you.

A love hate relationship posted on March 2013

Quite a nice change posted on October 2012

CSS issue with Firefox and Opera posted on October 2012

The biggest lie on the internet posted on August 2012

Blogging on GitHub posted on August 2012


A Ruby gem to communiate with the MapQuest web services. It currently support geocoding, and directions.



workspacer is an app written in node.js that helps you manage your local workflow.


On GitHub

You can see more examples of my work by visiting my GitHub profile.