2013年6月1日 星期六
Matlab: display numbers with higher precision in a MATLAB data cursor
Steps:
1. open one figure -> click 'label' symbol -> right click on the plot -> 'Edit Text Update Function' --> save as to your favorite PATH
2. edit the file 'NewCallback.m'
mofidy 'num2str(pos(2),4)' to 'num2str(pos(2),8)' or whatever you liked
3. click the 'label' bottom again -> 'Select Text Update Function' according to the path of your modified file
4. done
[Ref] http://stackoverflow.com/questions/5961034/how-can-i-display-numbers-with-higher-precision-in-a-matlab-data-cursor
2013年5月2日 星期四
Useful notes for freeware
Firefox:
{Addons}
Thunderbird:
useful addons:
lightning
Freefilesync:
automatically synchronizing two folders
In Task Scheduler, create a Basic Task with
“C:\Program Files\FreeFileSync\FreeFileSync.exe”
as the program and
“C:\Users\ValuedUser\Batch Files\SyncSettings.ffs_batch”
as the optional added argument. Is it critical that both of the above options be inside double quotes.
[Ref.1] http://www.trustyetc.com/trustyblog/2012/10/07/automatic-backup-with-freefilesync/
[Ref.2]http://vermeiliatips-trick.blogspot.tw/2011/03/how-to-set-freefilesync-realtimesyncexe.html
{Addons}
Thunderbird:
useful addons:
lightning
Freefilesync:
automatically synchronizing two folders
In Task Scheduler, create a Basic Task with
“C:\Program Files\FreeFileSync\FreeFileSync.exe”
as the program and
“C:\Users\ValuedUser\Batch Files\SyncSettings.ffs_batch”
as the optional added argument. Is it critical that both of the above options be inside double quotes.
[Ref.1] http://www.trustyetc.com/trustyblog/2012/10/07/automatic-backup-with-freefilesync/
[Ref.2]http://vermeiliatips-trick.blogspot.tw/2011/03/how-to-set-freefilesync-realtimesyncexe.html
2013年4月27日 星期六
monitor CPU temperature in Centos6
Environment:
Centos 6
Steps:
1. install software
> yum install dmidecode lm_sensors lm_sensors-devel gnome-applet-sensors
2. setup the configuration
> /usr/sbin/sensors-detect
3. observe the temperature
> /usr/bin/sensors
[Ref]
1. http://www.wretch.cc/blog/IBATAHIRO/12541732
2012年11月29日 星期四
Matlab Graphics: Greek Symbols
text(x,8,’\alpha :’); text(x1,8,’\\alpha’);
text(x,7,’\beta :’); text(x1,7,’\\beta’);
text(x,6,’\gamma :’); text(x1,6,’\\gamma’)
text(x,5,’\delta :’); text(x1,5,’\\delta’)
text(x,4,’\epsilon :’); text(x1,4,’\\epsilon’)
text(x,3,’\kappa :’); text(x1,3,’\\kappa’)
text(x,2,’\lambda :’); text(x1,2,’\\lambda’)
text(x,1,’\mu :’); text(x1,1,’\\mu’)
text(x,0,’\nu :’); text(x1,0,’\\nu’)
text(y,8,’\omega :’); text(y1,8,’\\omega’)
text(y,7,’\phi :’); text(y1,7,’\\phi’)
text(y,6,’\pi :’); text(y1,6,’\\pi’)
text(y,5,’\chi :’); text(y1,5,’\\chi’)
text(y,4,’\psi :’); text(y1,4,’\\psi’)
text(y,3,’\rho :’); text(y1,3,’\\rho’)
text(y,2,’\sigma :’); text(y1,2,’\\sigma’)
text(y,1,’\tau :’); text(y1,1,’\\tau’)
text(y,0,’\upsilon :’); text(y1,0,’\\upsilon’)
text(z,8,’\Sigma :’); text(z1,8,’\\Sigma’)
text(z,7,’\Pi :’); text(z1,7,’\\Pi’)
text(z,6,’\Lambda :’); text(z1,6,’\\Lambda’)
text(z,5,’\Omega :’); text(z1,5,’\\Omega’)
text(z,4,’\Gamma :’); text(z1,4,’\\Gamma’)
[Ref]
http://www.cs.cornell.edu/courses/cs100m/2007fa/Graphics/Greek.pdf
text(x,7,’\beta :’); text(x1,7,’\\beta’);
text(x,6,’\gamma :’); text(x1,6,’\\gamma’)
text(x,5,’\delta :’); text(x1,5,’\\delta’)
text(x,4,’\epsilon :’); text(x1,4,’\\epsilon’)
text(x,3,’\kappa :’); text(x1,3,’\\kappa’)
text(x,2,’\lambda :’); text(x1,2,’\\lambda’)
text(x,1,’\mu :’); text(x1,1,’\\mu’)
text(x,0,’\nu :’); text(x1,0,’\\nu’)
text(y,8,’\omega :’); text(y1,8,’\\omega’)
text(y,7,’\phi :’); text(y1,7,’\\phi’)
text(y,6,’\pi :’); text(y1,6,’\\pi’)
text(y,5,’\chi :’); text(y1,5,’\\chi’)
text(y,4,’\psi :’); text(y1,4,’\\psi’)
text(y,3,’\rho :’); text(y1,3,’\\rho’)
text(y,2,’\sigma :’); text(y1,2,’\\sigma’)
text(y,1,’\tau :’); text(y1,1,’\\tau’)
text(y,0,’\upsilon :’); text(y1,0,’\\upsilon’)
text(z,8,’\Sigma :’); text(z1,8,’\\Sigma’)
text(z,7,’\Pi :’); text(z1,7,’\\Pi’)
text(z,6,’\Lambda :’); text(z1,6,’\\Lambda’)
text(z,5,’\Omega :’); text(z1,5,’\\Omega’)
text(z,4,’\Gamma :’); text(z1,4,’\\Gamma’)
[Ref]
http://www.cs.cornell.edu/courses/cs100m/2007fa/Graphics/Greek.pdf
2012年9月23日 星期日
install LDOCE5 on CentOS6
Environment:
CentOS 6 x86_64
1.
> cd 'folder of LDOCE5 iso'/ linux
>
CentOS 6 x86_64
1.
> cd 'folder of LDOCE5 iso'/ linux
>
sudo linux32 ./setup.sh2. error message: (ldoce5-bin:16815): Gtk-WARNING **: 'clearlooks'
> yum install gtk2-engines.i686
3.only the user who installed LDOCE5 can use this softwareOthers can't execute this software.Each user must install the software for his own usage
> linux32 ./setup.sh
[Ref]http://terrywang.net/archives/914http://tw.myblog.yahoo.com/chrysler-wrangler/article?mid=730&prev=764&l=f&fid=10http://yang.backoz.info:88/post/1/2010/05/02/918
2012年9月13日 星期四
Install XnViewMp on CentOS 6/7
OS: centos 6.3/7
Desktop: Gnome 2
Steps:
1.
> su
> cd /opt
> wget http://download.xnview.com/XnViewMP-linux-x64.tgz
2.
> tar -zxvf XnViewMP-linux-x64.tgz
3.
> cd /opt/XnView/
> vi XnView.desktop
----------------------------------------
[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png
Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
-------------------------------------------
4.
> cp XnView.desktop /usr/share/applications/
5. execute
> ./xnview.sh
6.
Done
Method 2:
[XnViewMP]
>> yum install qt5-qtbase qt5-qtbase-common qt5-qtbase-gui qt5-qtscript xcb-util-renderutil xcb-util-wm qt5-qtmultimedia qt5-qtsensors qt5-qtsvg qt5-qtwebkit qt5-qtx11extras
>> wget http://download.xnview.com/XnViewMP-linux.x86_64.rpm
conflicts with filesystem:
>> yum install rpmrebuild
>>
>> rpm -ivh XnViewMP-linux.x86_64.rpm
>> xnview &
done
Desktop: Gnome 2
Steps:
1.
> su
> cd /opt
> wget http://download.xnview.com/XnViewMP-linux-x64.tgz
2.
> tar -zxvf XnViewMP-linux-x64.tgz
3.
> cd /opt/XnView/
> vi XnView.desktop
----------------------------------------
[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png
Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
-------------------------------------------
4.
> cp XnView.desktop /usr/share/applications/
5. execute
> ./xnview.sh
6.
Done
Method 2:
[XnViewMP]
>> yum install qt5-qtbase qt5-qtbase-common qt5-qtbase-gui qt5-qtscript xcb-util-renderutil xcb-util-wm qt5-qtmultimedia qt5-qtsensors qt5-qtsvg qt5-qtwebkit qt5-qtx11extras
>> wget http://download.xnview.com/XnViewMP-linux.x86_64.rpm
conflicts with filesystem:
>> yum install rpmrebuild
>>
rpmrebuild -ep XnViewMP-linux.x86_64.rpmYour configured editor (probably vi) will pop up with an already loaded file.
Search for the lines containing / and /usr/bin (lines like %dir %attr(0755, root, root) "/"), and remove them. They are starting in about line 340.
(I removed the line with /usr as well.)
Save end exit.
Answer yes. It will then tell you the location of the fixed rpm.
>> rpm -ivh XnViewMP-linux.x86_64.rpm
>> xnview &
done
2012年9月11日 星期二
CentOS reference sites
http://godontop.com/category/red-hat/page/3
http://www.ichiayi.com/wiki/tech/centos-pdf
http://www.ichiayi.com/wiki/tech/centos-pdf
訂閱:
文章 (Atom)