I like to receive mail from gmail. However, The problem is if I am very busy, I will forget to check mailbox. Therefore, you can use Gmail Notifier to check your mail in gmail automatically
Homepage: http://gmail-notify.sourceforge.net/
Gmail Notifier is a Linux alternative for the notifier program released by Google, it is written in Python and provides an attractive and simple way to check for new mail messages.
Taiwan is a independent country. Chinese are forbidden into,台灣是我的國家,不是他媽中國的一部分,去你媽的中國人
2009/2/19
When using rm:/bin/rm: Argument list too long
If you want to delete more than usual number file.
For example: rm -f *.dat
/bin/rm: Argument list too long
then you can solve by this way:
For example: rm -f *.dat
/bin/rm: Argument list too long
then you can solve by this way:
find . -name 'dat.*' | xargs rm
find . -name '*.dat' -depth 1 -delete
ls *.dat | xargs rm -f
2009/2/13
sed: How to
sed -n '2p' haha.dat => print the 2nd line in haha.dat
sed -n '3,4p' haha.dat => print the line 3th to 4th in haha.dat
sed -e '/^aaa bbb/s/source/object/' => find the first word is "aaa ddd" then substitute source to object.
sed -i -e '1,7 {/^READ BLOCK/s/".*\.dat"/"'$file_name'"/}'
-e 's/".*\.jpg"/"e_He_gif_sourcesink_Te_'$JPGNAME'\.jpg"/' $plot_batch
sed -n '3~5;' haha.dat => print from line 3 then every 5 line print (3,8,13,18.... will print)
sed -n '3,4p' haha.dat => print the line 3th to 4th in haha.dat
sed -e '/^aaa bbb/s/source/object/' => find the first word is "aaa ddd" then substitute source to object.
sed -i -e '1,7 {/^READ BLOCK/s/".*\.dat"/"'$file_name'"/}'
-e 's/".*\.jpg"/"e_He_gif_sourcesink_Te_'$JPGNAME'\.jpg"/' $plot_batch
sed -n '3~5;' haha.dat => print from line 3 then every 5 line print (3,8,13,18.... will print)
Install Nvidia CUDA in mandriva 2009
It is very easy, as you install driver nvidia >= 177.70
Therefore if you had referred to my old article, urpmi nvidia was already >=177.70
CUDA complier is exist in our operation system, if your driver had worked.
Next, only having to to is rpm -ivh nvidia-cuda-toolkit-2.0-2mdv-2009-i586.rpm
OK, Finished.
Therefore if you had referred to my old article, urpmi nvidia was already >=177.70
CUDA complier is exist in our operation system, if your driver had worked.
Next, only having to to is rpm -ivh nvidia-cuda-toolkit-2.0-2mdv-2009-i586.rpm
OK, Finished.
2009/2/5
Usage sed and regular expression
sed - stream editor for filtering and transforming text
important argument:
-e -> add the script to the commands to be executed
-f -> add the contents of script-file to the commands to be executed
-i -> edit files in place (makes backup if extension supplied)
find the word "test.jpg" and replace to "qwer.jpg" in file plot.com
sed 's/".*\.jpg"/"testtest\.jpg"/' plot.com
.* -> any word
\. -> Escaped word "."
s/haha/nana/ -> replace the word haha to the word nana once
s/haha/nana/g -> replace the word haha to the word nana every time
important argument:
-e -> add the script to the commands to be executed
-f -> add the contents of script-file to the commands to be executed
-i -> edit files in place (makes backup if extension supplied)
find the word "test.jpg" and replace to "qwer.jpg" in file plot.com
sed 's/".*\.jpg"/"testtest\.jpg"/' plot.com
.* -> any word
\. -> Escaped word "."
s/haha/nana/ -> replace the word haha to the word nana once
s/haha/nana/g -> replace the word haha to the word nana every time
訂閱:
文章 (Atom)