要不是這個撲滿實在是太貴了(一個要價美金$ 103.95,去搶比較快),不然真的很想買一個回家擺著。


引用:http://www.geekstuff4u.com/gadgets/xmas/yamanote-train-piggy-bank-special.html...
Read more
提供一些平面設計與網頁設計作品及學習上經驗分享,FLASH開發、DreamWeaver 、CSS、PhotoShop、Illustrator、InDesign教學及其他設計軟體使用心得及技巧分享!!
Proto Custom Module
http://www.protosw.com/mods/lib/view/446
Proto Examples
http://www2.gobansaor.com/xLite/Join Two Tables via SQLite.proto
http://www2.gobansaor.com/xLite/Join to External SQLite database.proto
VBA Code:
http://www2.gobansaor.com/xLite/xLite.zip
DLLs used:
SQLite VBA friendly wrapper SQLITE3.DLL from Pivotal Solutions. The ZIP contains both the source and the DLL. No COM component so no registry entries required, just needs to be placed on your PATH or in your current working directory. Dynamically loads the SQLITE3 library at runtime so to get the latest SQLite version just swap in a new SQLITE3.DLL, no compile necessary. Also supports Sqlite(2).
Pivotal Solutions link no longer works use http://www2.gobansaor.com/xLite/pssqlite.dll to download DLL
http://www.pivotal-solutions.co.uk/downloads/company/pssqlite.zip
To download the latest SQLITE3.DLL go to http://www.sqlite.org/download.html
For ease of deployment both DLLs along with a sample NWIND.DB (a sqlite version of the well known MSAccess Northwind database) can be downloaded from http://www3.gobansaor.com/xLite via a function within the xLite module. When the module fails to find PSSQLITE.DLL it will call this function and prompt you to download the files.
Or download from this site using the following links..
http://www2.gobansaor.com/xLite/pssqlite.dll
http://www2.gobansaor.com/xLite/sqlite3.dll
http://www2.gobansaor.com/xLite/Nwind.db
...近來接受 BBT 的培訓,做一個投票系統。系統程式碼倒不是很難,但是我的時間主要花費在了研究字符集和編碼上面。MySQL 和 Apache 兩個系統的編碼(字符集)問題讓我費勁腦筋,吃盡苦頭。網上對這些問題的解決比較零散,比較片面,大部分是提供解決方法,卻不說為什麼。於是我將這幾天收穫總結一下,避免後來者再走彎路。這篇文章對 PHP 編寫有一點幫助(看完你就知道,怎樣讓你的 PHP 程式在大部分空間提供商的伺服器裡顯示正常),但是更多幫助在於網路伺服器的架設和設置。
先說 MySQL 的字符集問題。Windows 下可透過修改 my.ini 內的
# CLIENT SECTION
[mysql]
default-character-set=utf8
# SERVER SECTION
[mysqld]
default-character-set=utf8
這兩個字段來更改資料庫的預設字符集。第一個是客戶端預設的字符集,第二個是伺服器端預設的字符集。假設我們把兩個都設為 utf8,然後在MySQL Command Line 裡面輸入 "show variebles like 『character%』;」,可看到如下結果:
character_set_client latin1
character_set_connection latin1
character_set_database utf8
character_set_results latin1
character_set_server utf8
character_set_system utf8
其中的 utf8 隨著我們上面的設置而改動。此時,要是我們透過採用 UTF-8 的 PHP 程式從資料庫裡讀取資料,很有可能是一串 "?????」 或者是其他亂碼。網上查了半天,解決辦法倒是簡單,在連結資料庫之後,讀取資料之前,先執行一項查詢 "SET NAMES UTF8〞,即在 PHP 裡為
mysql_query("SET NAMES UTF8");
即可顯示正常(只要資料庫裡資料的字元正常)。為什麼會這樣?這句查詢 "SET NAMES UTF8〞 到底是什麼作用?
到 MySQL 命令行輸入 "SET NAMES UTF8;",然後執行 "show variables Like 'character%'",發現原來為 latin1 的那些變數 "character_set_client」、」character_set_connection」、」character_set_results」 的值全部變為 utf8 了,原來是這 3 個變數在搗蛋。
查閱手冊,上面那句等於:
SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;
看看這 3 個變數的作用:
資料輸入路徑:client → connection → server;
資料輸出路徑:server → connection → results。
換句話說,每個路徑要經過 3 次改變字符集編碼。以出現亂碼的輸出為例,server 裡 utf8 的資料,傳入 connection 轉為 latin1,傳入 results 轉為 latin1,utf-8 頁面又把 results 轉過來。如果兩種字符集不相容,比如 latin1 和 utf8,轉化過程就為不可逆的,破壞性的。所以就轉不回來了。
但這裡要聲明一點,」SET NAMES UTF8〞 作用只是臨時的,MySQL 重啟後就恢復預設了。
接下來就說到 MySQL 在伺服器上的配置問題了。豈不是我們每次對資料庫讀寫都得加上 "SET NAMESUTF8〞,以保證資料傳輸的編碼一致?能不能透過配置 MySQL 來達到那三個變數預設就為我們要想的字符集?手冊上沒說,我在網上也沒找到答案。所以,從伺服器配置的角度而言,是沒辦法省略掉那行程式碼的。
總結:為了讓你的網頁能在更多的伺服器上正常地顯示,還是加上 "SET NAMES UTF8〞 吧,即使你現在沒有加上這句也能正常瀏覽。
問題多多,多謝指正!
參考網頁
轉載自: PHPChina
轉載自:http://blog.wu-boy.com/2008/08/25/336/
參考網頁
1. PHPChina: Apache和PHP網頁的編碼問題分析
2. MySQL: Character Set Support
Option Compare Database
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
Public Enum enuShowWindow
SW_MAXIMIZE = 3
SW_MINIMIZE = 6
SW_RESTORE = 9
SW_HIDE = 0
SW_SHOWNA = 8
SW_SHOWNOACTIVATE = 4
SW_SHOWNORMAL = 1
SW_SHOWMINNOACTIVE = 7
End Enum
Private Sub btnBrowse_Click()
Dim summy As Integer
summy = ShellExecute(0, "open", "E:\LEO\My
Documents\SoftwareDevise\Restaurant\RestaurantHelp.chm", "", "",
SW_SHOWNORMAL)
MsgBox (summy)
End Sub
...
先將 sorttable.js 檔案下載到網站資料夾下,再把以下的 JavaScript 貼入到 <head> </head> 中即可~
<script src="sorttable.js"></script>
<style type="text/css">
/* Sortable tables */
table.sortable thead
{
background-color:#eee;
color:#666666;
font-weight: bold;
cursor: default;
}
</style>
最後再將你的表格加上一個 Class 的屬性即可,就是把 <table> 標籤,後面加上class="sortable" ,改成 <table class="sortable"> 就可以使用囉~
6/1(日)下午1:30我們將推出新一波藝術環保活動《我的三明治日》。
如果你欣賞藝術表演隱喻的美感、北歐家飾或無印良品的單純自然
6/1當天我們由身著和服的舞者率先表演《我的三明治日》行動劇
最後,我們將邀請大家上台一起製作「我的三明治」。
這是我們第二次的舉辦《我的三明治日》,與您分享母親節當天活動花絮:
http://www.dance.org.tw
報名電話:2560-5724、2523-7547
網路報名:http://www.dance.org.tw
蔡瑞月文化基金會
行政秘書 謝欣芳
//你可以自己輸入你想要的歌曲名稱
var soundList:Array = Array("Colbie.mp3","Happy.mp3","Jason.mp3");
//播放音樂用函式
function playMySound(){
i=Math.floor(Math.random()*soundList.length);
loadSound = new Sound();
loadSound.loadSound("sound/"+soundList[i],true);
//如果音樂播完後重新播放 , 如果不希望音樂能重覆播放 , 請將此函式註解或刪掉即可。
loadSound.onSoundComplete=function(){
loadSound.start(0);
}//到此為音樂重覆播放
loadSound.start();
}
//按下按鈕就隨機播放音樂
btn.onPress=function(){
playMySound();
}
//設定監聽物件 , 用來監聽 MyFLV 播完了沒 , 如果影片不想重覆播放 , 請將以下程式碼註解或是刪除即可。
var listenerMyFLV:Object = new Object();
//如果播完了 , 要做的事
listenerMyFLV.complete = function(e:Object):Void {
//把時間移到開始
myFLV.seek(0);
//重新播放
myFLV.play();
};
//開始監聽影片播完了沒
myFLV.addEventListener("complete", listenerMyFLV);
//到此為影片重覆播放
...
<!--[if lt IE 7]>
<script src="IE7.js" type="text/javascript"></script>
<![endif]-->
<!--[if lt IE 8]>
<script src="IE8.js" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript" src="swfobject.js"></script>
<div id="mySWF">
這裡是當瀏覽器不能播 Flash 時,放入你想出現的訊息。
</div>
<script type="text/javascript">
swfobject.embedSWF("test.swf", "MySWF", "550", "400", "9.0.0");
</script>
swfobject.embedSWF(swfUrl, replaceElementId, swfWidth, swfHeight, flashVersion,expressInstallUrl, flashvars, params, attributes);
=========================================================
swfUrl ======> 這個要寫你的FLASH檔名;
replaceElementId ======> 這個是你要替換成 flash 的 DIV 的 ID 名稱;
swfWidth ======> 這個就是你的 swf 的寬度;
swfHeight ======> 這個就是你的 swf 的高度;
flashVersion ======> 這個是播放 swf 的 player 版本,可設定至小數點,但是一般來說整數版本就可以囉;
expressInstallUrl ======> 這個很好用哦~這是當 Flash Player 的版本比你指定的還舊時,他就會自動地到上述的位置,更新安裝 Flash Player 。
flashvars ======> 這是傳值進 Flash 用的;
params ======> 這是控制 Flash 參數用,如需不需要選單;menu="false" ;
attributes ======> 這是為 flash player 控件的屬性值設置;如 id: "myDynamicContent"
...