Thursday, June 2, 2011

linux: convert pictures (jpg) to avi movie

If you have pic files like:
drilldata00001.jpg
drilldata00002.jpg
drilldata00003.jpg

then you can use:

mencoder -speed 0.1 "mf://drilldata%05d.jpg" -o movie_drilldata.avi -ovc lavc -lavcopts vcodec=mjpeg

to generate an avi movie. The speed '0.1' is slower, '1' used the default frame rate. '1o' goes faster...

Tuesday, January 4, 2011

linux: merge pdf

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf

Sunday, January 2, 2011

Thinkpad 410 brighness adjustment in ubuntu!

http://ubuntuforums.org/showthread.php?t=1515079#post9494941

Have to add

Code:

Option "RegistryDwords" "EnableBrightnessControl=1"

to your /etc/X11/xorg.conf under devices section. Make sure the quotation marks are the same as if you type them.

Wednesday, December 8, 2010

Linux: how to remove ^M at each line end

I got an acsii file from a Window's user. If it is a regular windows text file, then I can use a command 'dos2unix' to convert it in unix format. However, it doesn't work. I use 'less' to have a look at it, it looks like:

line1^M line2^M

. If I use emacs to view it, it looks okay like a regular file. In order to convert it to unix format, I use 'gedit' to do the conversion. A user will be reminded that you save as which format...

Saturday, October 30, 2010

linux: screen

screen is a useful command when you do not have other better choice like vnc, specially for background job running. One thing that bothered me is I cannot page up and down simply even specified by

screen -h 2000

So I have to enter copy/paste mode by: ctrl+a, esc, page down/up

Wednesday, August 25, 2010

linux: renice

from : http://linux.about.com/library/cmd/blcmdl8_renice.htm

Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their ``nice value'' within the range 0 to PRIO_MAX (20). (This prevents overriding administrative fiats.) The super-user may alter the priority of any process and set the priority to any value in the range PRIO_MIN (-20) to PRIO_MAX Useful priorities are: 20 (the affected processes will run only when nothing else in the system wants to), 0 (the ``base'' scheduling priority), anything negative (to make things go very fast).


Friday, May 28, 2010

linux: data transfter

This summary is not available. Please click here to view the post.

Locations of visitors to this page