Futurama theme song

Couldn’t find the Futurama theme song anywhere (a proper one, without the sound of the spaceship and the crash-noise etc.), so I extracted it from the ending from a random episode.

Get it here!

Convert media files for use with minidlna

I use minidlna as a media server for my PS3. It’s quite useful in its current state, except that it doesn’t do transcoding on the fly. Therefore I need to convert my video files to some format the PS3 can read. Finally found the proper command line for ffmpeg to convert any video file to mp4 with aac encoding. But first, make sure you got the proper codecs installed. For Ubuntu, I did this:

 sudo apt-get purge ffmpeg
sudo apt-get update
sudo apt-get install libavcodec-unstripped-51 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0 ffmpeg
#sudo apt-get autoremove # this one is not really necessary though.

then I use this small script to find all files in the current directory, and encode them in a new directory encoded.

#!/bin/bash
mkdir ./encoded/

for file in *
do
    if [ -f "$file" ]; then
        filenoext="${file%.*}"
        echo "File name: $filenoext"
        ffmpeg -y -i "${file}" -acodec libfaac -ac 2 -ab 128k -vcodec mpeg4 -r 24 -b 800k -mbd 2 -aic 2 "./encoded/$filenoext.mp4"
    fi
done

Memorable Digg comments

I usually wander around on Digg to find some funny stories or pictures and other newsworthy things. Occasionally, I come by some very funny comments which I never seem to remember. Therefore, I decided to make a list of all my favorite comments (Digg should have a favorite comments section or something…). For starters:

  • keganflemming (link): “My favorite drink is a ‘Lindsay Lohan’. Just mix a red headed slut with a little bit of coke.”
  • doobiebrother (link): “This area usually lacks vegetation, so they added the face plant.”, in regard to this image.
  • salinungatha (link): “Reminds me of BP’s efforts to stop the Gulf spill”, in regard to this image.
  • badqat (link): “There are only 8 planets in our solar system now. Poor Pluto.”; caramba421: “Well, whatever…if every cold lifeless ball of rock and ice gets to be a planet, my ex’s heart also qualifies.”

More to come :)

Default constants in any gcc compiler

I’ve always wondered what default constants (#ifdefs) are used in the gcc compiler, without having to look on the internet for it. A quick command to show this is:

echo "" | gcc -E -dM -c - | less -S

This will output a listing as follows:

#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define _WIN32 1
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 65535U
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 2
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
#define __GNUC_PATCHLEVEL__ 0
#define _stdcall __attribute__((__stdcall__))

… and lots more. This command was executed under MinGW/MSYS. I had to look for the correct #ifdef to check whether I am compiling some C++ source code under Windows, or Linux.

Welcome

So, I started reading an old Linux Format magazine some time ago. This particular edition mentioned something about CMS Awards, where WordPress came out as winner. This got me interested in testing out this CMS, so there you have it; you’re watching its implementation at this point. Anyway, welcome. Don’t expect much from this blog, it’s more of a sort of personal log, picture page, and (in the future) filled with howto’s or other personal, technical notes regarding information technology.

Based on a theme from Blogchemistry