Dec 21, 2012

SVN create user

As simple as:

htpasswd /etc/subversion/passwd username

Jun 24, 2012

Enabling notification icons on Unity

All you need to do is install gconf-tools, launch dconf-editor an then set desktop > unity > panel > systray-whitelist to ['all'].

 Now restart unity and all the good old notification icons should be where they always were :)


Apr 18, 2012

SVN recursive add all

svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk '{print $2}' | xargs svn add

Apr 12, 2012

Create a video from an image and mp3 using ffmpeg

If you want to create a video with a static image and a background music (face it, you want to upload a song to youtube!), here's a very easy way using ffmpeg.

ffmpeg -loop 1 -t 242 -i the_image.jpg -i the_song.mp3 target_video.mpg

-t: duration in seconds
-loop 1: puts the image on all frames
-i: input files - the image and the mp3

PS: this is possibly not the best way because for a 242 seconds video I got video:6351kB audio:3782kB wich is.. stupid! I need to find a way to use key-frames so I can drastically reduce the video size! I tried using the -g <int> argument but got the same filesize :\