sudo apt-get install wmctrl
หลังจากติดตั้งแล้วก็หารายชื่อ window ที่เปิดอยู่ทั้งหมดด้วยคำสั่ง
wmctrl -l
จะแสดงรายชื่อและ id ของ window ทั้งหมดขึ้นมา
sudo apt-get install wmctrl
wmctrl -l
two source files specified (PLATFORM_MICAZ and BOARD_MICASB)
make: *** [sim-exe] Error 1
($i, $idir) = &extractarg($i);
push @nesc_args, "-I$idir";
}
elsif (/^-o/) {
($i, $objtarget) = &extractarg($i);
}
($i, $idir) = &extractarg($i);
push @nesc_args, "-I$idir";
}
elsif (/^-D/) {
($i, $ddef) = &extractarg($i);
pop @nesc_args;
push @nesc_args, "-D$ddef";
}
elsif (/^-o/) {
($i, $objtarget) = &extractarg($i);
}
./configure
make
sudo make install
ncc --version
sudo cp /usr/bin/nescc /usr/bin/nescc.old
sudo cp /path/to/nesc-1.3.2/tools/nescc /usr/bin/nescc
make micaz sim
hello world
how are you
hello man
Long time no see
no hello
sed "s/^hello.*\$/Hi/" file.txt > temp
mv temp file.txt
Hi
how are you
Hi
Long time no see
no hello
exiftool -Title="New Title" filename.pdf
latex filename.texdvips filename.dvips2pdf -dPDFSETTINGS=/printer -dEmbedAllFonts=true filename.ps
http://www.sas.upenn.edu/computing/help/students/dissertation-pdf
OS: Ubuntu 11.04
latex: TexLive 2009 (pdftex 3.1415926-1.40.10-2.2)
dvips: 5.98
ps2pdf: 9.01
ที่มา
http://www.sas.upenn.edu/computing/node/1225/
http://ismir2005.ismir.net/pdf.html
ถ่าจะทดสอบว่าค่าหนึ่งๆเป็น NaN รึเปล่าจะใช้ x == Double.NaN ไม่ได้ แต่สามารถใช้ Double.isNaN(x) ได้แทน (ภาษา Java)
file -bi filenametext/x-php; charset=utf-8pdf2ps original.pdf middle.ps
ps2pdf middle.ps compressed.pdf
sudo update-alternatives --config java
java -version
print 'hello world'
...
execfile('hello.py')
...
import os
...
os.system('python hello.py')
...
import os
...
os.system('cat hello.py | grep hello')
...
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// …
}
wget -r ftp://url/folder --exclude-directories="*/foldername"
wget -r ftp://abc.com/xyz --exclude-directories="*/.svn"
wget --execute "login=username" --execute "passwd=password" -r ftp://abc.com/xyz --exclude-directories="*/.svn"
จริงๆพวก username, password ใส่ไว้รวมกับ ftp://username:password@abc.com/xyz เลยก็ได้ แต่จะมีปัญหาถ้า username มี special character เช่น เครื่องหมาย "@"
ระบบที่ทดสอบ
OS: Ubuntu 10.10
อ้างอิง
http://www.gnu.org/software/wget/manual/wget.html
RENAME TABLE oldtablename TO newtablenamesudo apt-get install gpointing-device-settingsgpointing-device-settings
[2010-10-10 00:07:56 - Test] ERROR: Unable to open class file /path/to/androidproject/gen/com/example/androidproject/R.java: No such file or directory\R.java: No such file or directory
[2010-10-10 00:07:56 - Test] ERROR: Error generating final archive: Debug certificate expired on dd/MM/yyyy
%JAVA_HOME%\bin\keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 100000 -dname "CN=Android Debug,O=Android,C=US"#bind-address = 127.0.0.1sudo service mysql restart