April 2008

Today, when i was trying to install some packages i got this error:

dpkg: parse error, in file `/var/lib/dpkg/status’ near line 14938 package `human-theme’:
`Replaces’ field, invalid package name `
E: Sub-process /usr/bin/dpkg returned an error code (2)

i googled it to search for a know solution but got nothing useful this time. so i decieded to think a little bit and try to solve it my self. and here is the solution i got.

i open the file which through the parse error:

# gedit /var/lib/dpkg/status

then i visited the line which given to has the problem and found the name of package has some encoded characters so i removed the non understandable characters and saved the file.


#apt-get -f update

every thing after that went ok. and i enjoyed my ubuntu again.

Salam all,

this about how to convert a flac audio file to a mp3 format to gain the size reduce

you need to have the following packages installed: flac , lame

for ubuntu you can install them by:

$ sudo apt-get install flac lame

for defora

# yum install flac lame

then to convert a flac file to mp3

$ flac -cd filename.flac | lame -h – filename.mp3

– first you need to get the jdbc driver and put it in your lib folder or in any place your build path.

– second use the next code:


String url = “jdbc:mysql://hostname:3306/dbname”;

Connection con = DriverManager.getConnection(url,username,password);

Statement st = con.createStatement();

ResultSet rs = st.executeQuery(“your query here”);






this post is bout how to use the screen command to connect multiusers to the same screen:

first you need to create a new screen and give it a name:

# screen -S screenName

if you want to have multi users able to connect to it, so you need to enable the multiuser mode:

press Ctrl+a

you will find screen command line appears at the bottom of the screen, then type

:multiuser on

and press enter

now you screen is running in multiuser mode and ready to accept other connection

to attach to this screen:

# screen -x screenName