Thursday, September 30, 2010

[QnA] Problems when using fbi/fbgs in virtual consoles of Ubuntu 10.04 (Lucid Lynx)

I upgraded all my computers (2 PCs and 1 laptop) from Ubuntu 8.04 to 10.04 these days. Most things are fine (and even great!), but there is one thing, the GRUB 2,t has brought me some troubles. I could not use fbi and fbgs in the consoles. Of course I ran into Google several times but got no lucks, until yesterday when I found the following thread and links:

The second link gives a complete guide.

FYI: To check the resolution given by framebuffer of your computer, use ``sudo hwinfo --framebuffer'' command in the console.

Sunday, September 19, 2010

[SW] Use GIMP to save layers of animated GIF

It is easy to use GIMP to create animation in GIF format (just use Google and you can find many examples). However, to extract individual layers of an animated GIF is another story, and I can't find a straightforward approach in GIMP.

Fortunately, the solution has been exist. There is a script by

Monday, September 06, 2010

[Py] Rubik's cube game

Although I am not good at solving Rubik's Cube, I am a fan of it. Of course, I am always wondering whether there are programs which can show a 3D Rubik's Cube in my computer so that I can play the cube interactively. And the answer is YES!

On Pygame site, there is a wonderful program called Rubik's Cube Game meets all my needs. Actually, I've downloaded and tested it several months ago, but until today I finally get clear steps to make the program run properly. My modifications are as follows.
  1. rename Images/*.PNG to Images/*.png
  2. apt-get install python-opengl
  3. download gameobjects and install it
  4. remove *.pyc
  5. rename *.pyw to *.py
  6. run ``python Rubik's''

Thursday, September 02, 2010

Converting filenames from UPPERCASE to lowercase

I searched and found the following thread:

Based on the post given by Jadu Saikia, I got the bash script of my own version as follows:
ls * | sed -e p -e 's/.*/\L&/g' |xargs -n 2 mv

One new thing I've learned in this example is the ``\L'' part, which can be found in sed's FAQ.