Convert Video (avi) or Audio (mp3) to .3g2 for the Samsung Exclaim

The Samsung Exclaim™ requires the 3g2 format for its ringtones or even videos. This is a format that is optimized for 3G phones. Fortunately on Linux, FFmpeg is a very complete tool to work with audio and video formats and convert between them, and it can, of course, generate 3g2 files.

If you have compiled and installed the right packages (Medibuntu repository with the libaac support, for example), you can easily do one of these commands with ffmpeg:

Read the rest of this entry »

――

diff and ignoring spaces and end of lines (unix, dos EOL)

Possibly you will need to either do a diff between files where they don't use the same new line character.

Because the new line character is OS-dependant, there are issues when doing a diff on these files when you are not using that same OS.
And there are also times where you just want diff to ignore all spaces and new lines...

The --ignore-all-space option for diff is really useful in these two cases. It will check for differences between the given files ignoring spaces or new lines whether there is none, one or more

Read the rest of this entry »

――

Colored Man Pages

You certainly know that manpages tend to be very long and boring to read , especially without any colors at all.

You can easily get colored manpages with just one copy&paste into your .bashrc!

Follow this link to Linuxtidbits' post about "Less Colors For Manpages" and you'll know how to make it happen!

Colored Manpage

――

Script to capture a screenshot (with Chromium) (Command-line)

Introduction

I wanted to take screenshots of about 15 Websites, but didn't want to install any plugins as I wouldn't use them often. I saw a lot of how-to's using import from Imagemagick but they capture the whole screen, not clearly what I was looking for.

Using chromium, xwininfo (from X) and import, I made this bash script which captures only the webpage. See below for the Source code.

Read the rest of this entry »

――