Archive for the ‘Linux’ Category

Gnome and Autospec Notifications

I wanted to share how I set up autospec notifications on Ubuntu (Jaunty 9.04). I’m using XCFE but should work perfectly on Gnome as well.

More »

How to embed .idx subtitles into an mp4 or avi file with mencoder

I usually watch movies with subtitles on my cellphone but before that I have to transcode the avi to an mp4 with the subtitles “burnt” on the movie, not as a separate file. Recently I came across a movie with subtitles in two files, one .idx and one .sub instead of the common .srt file. [...]

More »

How to fix audio synchronization of an AVI on Linux

I just downloaded an AVI file with audio out of sync. Everything sounded one second before it should during the whole movie so it was really annoying. Fixing this with mencoder is easy and fast. mencoder video.avi -oac copy -ovc copy -delay -1 -o video-fixed.avi That will delay sound for one second. Notice that “-1″ [...]

More »

Prevent apt-get from upgrading a package on Ubuntu

Jaunty Jackalope and it overwrote my custom version of rxvt-unicode that supports 256 colors. Every time I try to update my packages apt-get tries to “upgrade” rxvt-unicode too discarding my version. I found the solution here

More »

Converting Avi files to Mp4 for Nokia 5800

I’ve come to following Ruby script for converting an avi to mp4, Nokia 5800 ready. Subtitles included and 2 pass (which means high quality results).

More »

Adding all new files recursively to Subversion

Sometimes you want to add a lot of new files to a subversion repository. An smart solution can be found on this post: svn status | grep "^?" | awk ‘{print $2}’ | xargs svn add That will add the new files to the repository in just one command, not looping around for each file. [...]

More »

Piston and git

As many Rails developers I have some projects that I haven’t migrated to git yet. Those are still under Subversion and I manage its plugins with Piston. But what happen when you want to import a plugin hosted on a git repository? That the gem “piston” doesn’t work. The trick is that the last version [...]

More »

How to migrate a Subversion repository from one server to another

Now I got a new server I had to migrate my old Subversion repository from the old server to the new one. Thanks to Subversion it was a cake easy task.

More »

How I got Mephisto working on Dreamhost

Installing the Ruby on Rails blog engine Mephisto should be an easy task. However, I found this trickier than I expected.

More »