Tips and Tricks

How to calculate equation with summation in Python

Most modern mathematics might have summation in some parts of equation. Implementing this kind of equations in Python is very easy and straightforward. Python already provides built-in functions to help us, e.g., sum() and map().

How to play RMVB using Mplayer

Even though Mplayer is able to play RMVB by binary codec, sometimes it may not work as expect due to something weird as follow.

mplayer: symbol lookup error: /share/apps/codecs/drvc.so: undefined symbol: pthread_mutexattr_init

Fortunately, it has a workaround for this issue.

How to install Subversion on CentOS 4.5

I was assigned to find out how to install Subversion on CentOS. It is a good version control system right now, especially for development teams in any enterprises. Installing Subversion on CentOS is quite easy as follows.

How to rip subtitle from DVD using Mencoder

I have a mission to rip a subtitle from a DVD. My laptop is Ubuntu Feisty Fawn and my favorite tool is mencoder. In fact, I have never done something relating to subtitles before. However, mencoder should be able to satisfy me as always.

How to drop all tables in MySQL

I would like to drop all tables in a database of MySQL but I don't want to drop the database itself. The reason are that the created tables seemed to be incorrect and I would like to recreate or import it again. However, I am so lazy to create the database and grant the user/pass again. Fortunately, I found a workaround trick.

How to reset mysql root password in RedHat

My friend posted about reseting mysql root password long time ago. It still works but you have to know how to change root password properly. Since I have to do it by myself, I will explain more detail in this post.