run >> cmd >> shutdown
then follow the instructions.
Wednesday, July 23, 2008
Sunday, June 29, 2008
Thursday, June 26, 2008
Saturday, June 14, 2008
Linux Directory name with a space
Example: The directory name is: "My Stupid Directory"
Access is as: "My\ Stupid\ Directory/"
Monday, May 26, 2008
Friday, May 23, 2008
Thursday, May 22, 2008
encoding xvid in linux from a sequence of images
xvid: you must specify one or a valid combination of 'bitrate', 'pass',
'quantizer' settings
'quantizer' settings
solution:
mencoder mf://*.png -ovc xvid -xvidencopts pass=1 -of avi -o
./tmp/filename.avi
or
mencoder mf://*.png -ovc xvid -xvidencopts bitrate=1600 -of avi -o
./tmp/deneme2.avi
convert multiple images from command line in linux (ubuntu)
sudo apt-get install imagemagick
convert '*.jpg' -resize 120x120 thumbnail%03d.png
more on the topic:
http://www.imagemagick.org/script/command-line-processing.php
Monday, May 19, 2008
Friday, May 16, 2008
Thursday, May 15, 2008
Open text file in python
file = open("sample.txt")
while 1:
line = file.readline()
if not line:
break
pass # do something
What this blog is
Sometimes we hit dead ends. We figure out the solution and move on. After a while we forget the fix but more often then not we find ourselves looking for the exact same solution. This blog is my notepad for these hacks. It is a blog instead of a text file because it is cool to share.
Subscribe to:
Posts (Atom)