2011-01-21

NSIS 的中文用戶手冊

NSIS 的中文用戶手冊

自動安裝某程式

#InstallShield
setup.exe -s [-sms]

#InstallShield with MSI
setup.exe /s /v"/qb"

#WISE Installer
setup.exe /s

#Inno Setup
setup.exe /sp- /silent /norestart

#NSIS (NullSoft Installation System)
setup.exe /S

Wise Installation Professional
setup.exe /silent


都不行,請使用AutoIt來輔助安裝


2011-01-18

ubuntu 10.4 vnc 的 s 及 m 鍵不正常的修正

這是一個 bug :https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/568401
後來我是使用
sudo apt-get install indicator-applet
更新後,重啟vnc 就好( kill all session 重建)

ps 重設密碼為
sudo tightvncpasswd

2011-01-12

ubuntu 開機自動執行

ubuntu開機自動執行

開機自動執行的程式有2種類型

* xwindow登入後自動執行 ←白話一點說就是:進入桌面後才自動執行
* ubuntu開機後自動執行 ←白話一點說就是:系統一開機就自動執行

*xwindow登入後自動執行

系統→偏好設定→作業階段 的初始啟動程式頁籤,自行新增即可


*ubuntu開機後自動執行

有下列3種方式

* 直接編輯 /etc/init.d/rcS ,放在最後面
* 編寫script檔後,放到 /etc/init.d目錄下
* 使用update-rc.d 指令

參考來源:ubuntu 開機自動執行

PS:
在 Debain 系列的話(Ubuntu 也適用)
要用 /etc/rcS.d 來開機時啟動腳本
因為 /etc/rc.local 貌似沒有作用

放在這個 /etc/rcS.d 目錄中的腳本,開機時會被自動執行

/etc/rcS.d 通常不直接放腳本,只放軟連結

----------------------------------------

1.
寫好的防火牆腳本,放在 /etc/init.d
(或者其它地方也可以,例如 /usr/local/bin,反正記得放在哪就 ok 了)

給予該腳本檔執行權限
sudo chmod 755 檔名.sh

2.
在 /etc/rcS.d 中加入軟連結

假設防火牆腳本的檔名是:firewall.sh

指令:
cd /etc/rcS.d
sudo ln -s ../init.d/firewall.sh S100firewall.sh

2011-01-11

在ubuntu上 adodb 用freetds 的mssql 時的bug

發現在 ubuntu 上 用 mssql 去連時,用 FetchNextObj 去抓成object  時,會沒有資料,但array 卻正常。

我使用的版本是 adodb4992.tgz:
http://sourceforge.net/projects/adodb/files/adodb-php-4-and-5/adodb-4992-for-php/adodb4992.tgz/download

要修改 adodb.inc.php底下
3504行的
$o->$n = $this->Fields($name);
 改成
//mod by loa 2011-01-10
$o->$n = $this->Fields($i);
//$o->$n = $this->Fields($name);

2011-01-07

flash 限制

16,000 frames: Exceeding this limit causes the movie playback to stop.
超過16,000幀將導致文件停止

While this limit is rarely reached by most developers, it is possible. If your movie must have more than this number of frames, try creating multiple movies with fewer than 16,000 frames each and then linking the movies together using a method such as the ActionScript 2 loadMovie() command.
如果你的文件確實必須超過這個數字那麼使用調用命令把它分成兩個部分

16,000 layers: Flash is not capable of working with more than 16,000 layers in a movie.
一個影片不能超過這個數目


16,000 loaded movies: You cannot load more than 16,000 movies into Flash player.
你不能調用超過這個數目的影片

16,000 symbol instances: Flash does not allow more than 16,000 symbol instances in a Flash movie
不能超過16000的實例

2880 x 2880 px canvas size: A Flash movie cannot be larger than 2880 px wide or 2880 px tall.
場景不能超過2880x2880

參考來源:http://hi.baidu.com/puzzle/blog/item/4972c895ae324b4cd1135ede.html