一張卡片夢想無窮阿~~

(圖片來源: BeerBSD’s Blog) 我每次都被Jenny 說像個長不大的小孩,往往在百貨公司逛街的時候,我就會駐足在兒童遊樂區許久。細細品味(應該是_ 研究當今社會玩具對於孩子成長之關係 _ ^__^)。有一天~~我忘記是經過哪個百貨公司了,在兒童玩具部門的地方,看到一群小孩子在排隊,好奇心(殺死一隻貓?)的驅使,往前去看看~~~ 就看到了以下的機台。 (照片來源: SEGA育樂股份有限公司) 這種機台呢~~ 就是只要你去買他們的卡片(上面有磁條),透過刷磁條的方式,就可以利用卡片上面的怪獸(甲蟲)來作戰~~所以就看到一群小孩子在對打、購買卡片~~~讓我想起來~似乎在我家也有類似的卡片遊戲 (魔法風雲會)~~ 不過這種遊戲倒是複雜多了~~而且也顯難做成機台來遊戲(規則太多~~~)。 相較之下~ 日本的機台倒是相當的勇猛~~ ![](http://www.sangokushi-taisen.com/image/kihon_p10.gif) ![](http://www.sangokushi-taisen.com/image/kihon_p11.gif) ![](http://www.sangokushi-taisen.com/image/kihon_p12.gif) (照片來源: 三國志大戰2公式) 這個遊戲倒是猛多了~~ 不但有畫面顯示~ 你的卡片還有陣勢的差別~~ 看起來就是好玩相當~~  不知道台灣有沒有說~~~
繼續閱讀

How to use KEY in xslt

I think XML is a very simple storage medium that you can save and query in it. But all data is storage as a tree node in the XML. In this case, it can very simple to save hierarchy data structure. But how to handle it you have reference item? Just use key in your XML code. For more detail please refer the sample as follow: t1.xslt <?xml version=”1.0” encoding=”UTF-8”?> --------------------------------------------------------------------------------- Result --------------------------------------------------------------------------------- <item ID=" " refID=" "> <name> </name> <adress> </adress> </item> x1.xml J. Smith Taipei, Taiwan R. Paul TAIWAN, SA E. Rock CA, US Result <?xml version=”1.0” encoding=”utf-8”?> J. Smith Taipei, Taiwan R. Paul TAIWAN, SA E. Rock CA, US --------------------------------------------------------------------------------- Result --------------------------------------------------------------------------------- E. Rock CA, US R. Paul TAIWAN, SA E. Rock CA, US J. Smith Taipei, Taiwan
繼續閱讀

如何使用BT

(圖片: PCHome) BT大概是近幾年最受歡的的下載技術了,而軟體BitComet也是最好用的軟體之ㄧ,要下載請到PCHome。一些相關網頁整理如下: BITCOMET下載網頁 BITCOMET教學 BitComet參數設置詳解 BitComet設定攻略 BitComet提速教程 害怕BT傷硬碟的都進來看看吧!
繼續閱讀

Runtime to start/stop another window sevice

  Except to set the dependency of services in SCM(Service Control Manager). You have another way to make sure some services can run before your application (serivce). Use StartService to start a Window Service Please note as follow: If the service already start, it will return FALSE. The function will return if the Windows Service is in running status (maybe needs 30sec atmost) or failed. For more detail, please refer MSDN. Refer the sample code.  SC_HANDLE serviceControlManager = OpenSCManager(0, 0, SC_MANAGER_CONNECT);  SC_HANDLE service; > >  if (serviceControlManager)   {   service = OpenService(serviceControlManager,          "SERVICE_NAME",          SERVICE_START | SERVICE_QUERY_STATUS | DELETE); // Make sure you have the privilege of SERVICE_START. > >   if (service)    {    if (StartService(service, 0, NULL))     {     // Services already startup successes.     }    else     {     DWORD dwLastError = GetLastError();     if (dwLastError == ERROR_SERVICE_ALREADY_RUNNING)      {      //Services already started      }     else      {      //Service can not start.      hr = E_FAIL;      return;      }...
繼續閱讀

原來MYSQL4.0X不是unicode

最近由於想架設一個DKP網站,才知道自己主機的MySQL 的版本竟然太舊而無法support unicode的問題(4.1X才有Unicode support, 4.0X都是外面Unicode 而資料庫裡面還是使用iso-8859-1~~) 所以列出一些參考資料 Upgrading from MySQL 4.0 to 4.1 MySQL: Upgrading MySQL 4.0 to 4.1(主要是講解upgrade上面可能遇到的問題) 其實充其量~~ 就是為了一個功能       SET NAMES utf8 乾脆換成FreeBSD算了~~ 反正最近ADSL又改成PPPOE的方式了~~~ 找到使用MySQL 4.0X版本的EQDKP的版本(1.30) 繁體中文:簡單架設DKP網站 簡體中文:EQDKP 1.3.0 with ItemStats 中文版
繼續閱讀

Head first design pattern–”Singleton pattern”

(Picturefrom Amazon) Sometime you just write code without fully understanding the meaning. Like design pattern, maybe you already know part of them even use them very well. “Head First Design Patterns” is a good book, it use a story to let you know why you must use this pattern (some of us may not know forever). As this chapter “Singleton pattern”, I have already used it in my code everywhere. But I can not get fully understand why we have to use this, how to use this and how to prevent other this in multiple threading programming. I list a example fot singleton implementation. class CSingleton { public:  static CSingleton * getInstance(); public:   void f1();  void f2();  void f3(); > > private:  virtual ~CSingleton();  CSingleton(); > > private:  static CSingleton *m_uniInstance; }; > >
繼續閱讀