星期二, 12月 01, 2015

用bash批次命名

i=1;for f in *;do mv $f 紙電路$i.jpg;i=$(($i+1));done 或是http://www.cs.nccu.edu.tw/~lien/Writing/unixv5.htm clear x=0 for i in `ls *.jpg` do x=`expr $x + 1` mv $i Kim_Kardashian$x.jpg done echo “rename done!” https://gihansblog.wordpress.com/2011/10/29/a-shell-script-for-renaming-large-number-of-file-in-linux/

星期日, 10月 25, 2015

自動程式排版




sudo apt-get install astyle


astyle --style=java imagejVertical

星期五, 7月 10, 2015

ubuntu 14.04 新增日文輸入法



搞好久喔
終於用了dconf-editor 搞定

詳情要看第一個answer
http://askubuntu.com/questions/457476/ibus-methods-do-not-show-up-in-text-entry-settings

星期三, 12月 17, 2014

玩樹莓派

使用ssh登入Rpi



安裝VNC server
http://www.embbnux.com/2014/03/24/on_ubuntu_use_vnc_connect_raspberry/

ubuntu上用rDesktop(remmina)看遠端桌面



安裝Lamp
http://www.geekfan.net/3066/

1
169
215
92



星期日, 11月 16, 2014

Ubuntu連arduino出現的問題

使用arduino uno,結果
一直出現無法連線到/dev/ACMxxx
查了之後,解決方式就是到

~/.arduino/preferences.txt

serial.debug_rate
改成
serial.debug_rate=9600