FancyUpload 是一套 Flash + Ajax 的檔案上傳程式,
無名 也是用這個元件, 滿不錯的.
Queued Photo Uploader Demo
Recently in Programming Category
王大頭,0912345678
這個 CSV 檔在 Excel 打開, 電話會變成數字 912345678
若要保留前面的 0, 必需這樣表示
王大頭,="0912345678"
Firefox Preferences Editor is a CLI tool for batch configure Firefox about:config preferences. (Source Code)
Note:
Firefox will arrange prefs.js, so don't worry about duplicate entry.
Usage: ffprefs {preference name} {value}
e.g.
ffprefs browser.startup.homepage http://www.google.com
ffprefs browser.cache.disk.parent_directory r:\
v0.2 Update: Read %APPDATA% environment variable instead of %USERPROFILE%, support Windows 2000/XP/2003/Vista/2008/7
寫了一個程式可以快速移除所有的 Windows Live 程式
Uninstall All Windows Live Software (Source Code)
它會去 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
找 DisplayName 有包含 Windows Live 字串的, 然後用 MsiExec /passive /uninstall GUID 的方式移除, 適用所有的版本.
在 PHP 下用 pcntl_fork 同時存取 MySQL Server, 必需用 mysqli
用一般的 mysql function 會出現 MySQL server has gone away 的錯誤訊息.
範例:
$mysqli=mysqli_init();
mysqli_real_connect($mysqli,$dbhost,$dbuser,$dbpassword,$dbname) or die ('Unable to connect');
$result=mysqli_query($mysqli,$sql);
show full fields from table_name
可以取得 MySQL 的欄位註解,
註解輸入中文名稱, 在寫程式時用上面的方式取得註解, 非常方便.
ref. 取得MySQL表單的註解
根據 RFC 2047 的規範, Mail Header 中的 Non-ASCII Text 要用這個格式
「=?charset encoding?encoding code?header content?=」
encoding code 有可能是 b (base64編碼) 或 q (QP編碼)
例如:「測試郵件」編碼後就變成「=?UTF-8?B?5ris6Kmm6YO15Lu2?=」
用 PHP 的話可以用 mb_send_mail(), 會自動幫你編碼.
原始的 jaPBe 已不相容於 PureBasic 4.x
(會出現 Can't initialize compiler)
需使用 jaPBe for PB400
一直以為 <? ... ?> 跟 <?php ... ?> 是一樣的, 省略 php 沒差,
原來當 short_open_tag=off 時是不能用前者的
php.ini-recommended 的預設值是 short_open_tag = Off