如何使用BT


(圖片: PCHome)

BT大概是近幾年最受歡的的下載技術了,而軟體BitComet也是最好用的軟體之ㄧ,要下載請到PCHome。一些相關網頁整理如下:

  1. BITCOMET下載網頁
  2. BITCOMET教學
  3. BitComet參數設置詳解
  4. BitComet設定攻略
  5. BitComet提速教程
  6. 害怕BT傷硬碟的都進來看看吧!

Runtime to start/stop another window sevice

WindowsService (WinCE).JPG 

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:

  1. If the service already start, it will return FALSE.
  2. 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;      }     }    } > >

Use ControlService to stop Windows Services

You may think it may have a function StopService to stop serivce. Unfortunately, you have use CotrolService to do that. Please refer the sample code for more detail.

SC_HANDLE serviceControlManager = OpenSCManager(0, 0, SC_MANAGER_CONNECT);  SC_HANDLE service; > >  if (serviceControlManager)   {   service = OpenService(serviceControlManager,          "SERVICE_NAME",          SERVICE_STOP | SERVICE_QUERY_STATUS | DELETE); // Make sure you have the privilege of SERVICE_STOP. > >   if (service)    {    SERVICE_STATUS serviceStatus;    QueryServiceStatus( service, &serviceStatus ); > >    if (serviceStatus.dwCurrentState != SERVICE_STOPPED)     {     if (! ControlService(service,    // handle to service           SERVICE_CONTROL_STOP,  // control value to send           &serviceStatus) )  // address of status info       {       // ControlService failed        }     }    }   }  > >

原來MYSQL4.0X不是unicode

MySQL

最近由於想架設一個DKP網站,才知道自己主機的MySQL 的版本竟然太舊而無法support unicode的問題(4.1X才有Unicode support, 4.0X都是外面Unicode 而資料庫裡面還是使用iso-8859-1~~)

所以列出一些參考資料

其實充其量~~ 就是為了一個功能

      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”

Head First Design Patterns
(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; }; > >

傑克~ 你真是太神奇了~~(鐵達尼二之傑克回來啦~~)

Titanic2.JPG

如果要選電影史上~~ 最受歡迎的奶油男主角~ 大概就是鐵達尼的Jack 了~~ 他的一句”You Jump, I Jump !!”不知道 迷死多少女的~~~~

但是 JACK 回來啦~~~

Titanic2-1.JPG

所以~ 電影公司特地請這位死掉的帥氣小生~~ 復活!!還是透過最新的冷凍科技 ? 哈~~~ 只能說 電影公司的腦袋 真不是普通人可以了解~~~

傑森大戰佛萊迪之後~~ 這大概是讓我最感覺驚訝的電影吧?  其實我是不介意~~ 來個無間道4讓梁朝偉復活  來個歐比旺大復活 來個蜘蛛人打蝙蝠俠

 

聽說這個電影是有人虛構出來的~~~厲害!!

2006-05-16 Air Supply 30年世界巡迴演唱會


(圖片來源: 年代售票)

生為英國人的葛拉漢羅素,與生為澳洲人的羅素希區考克,分享了彼此對音樂的共同愛好,而這份共通的愛好更將他們緊繫在一起、引領他們組成樂團(與第三位團員克里西漢蒙Chrissie Hammond一起),於是他們便組成了--空中補給合唱團,在酒吧及演唱會場地演出,並緩緩地建立起紮實的樂迷基礎。在克里西離團後,同樣來自《萬世巨星》班底的傑瑞米保羅Jeremy Paul隨後加入樂團取代克里西之位,而樂團亦首次與CBS唱片公司簽約,並分別於1976年、1977年發表了“同名專輯(Air Supply)”以及“全體出動(The Whole Thing Started)”兩張專輯。此外,他們並受邀加入洛史都華的澳洲巡迴演唱會的演出陣容,立刻給予空中補給合唱團所需之絕佳的曝光機會,於是一首暢銷排行前十名的單曲「愛與情傷(Love And Other Bruises)」於焉誕生,並相繼創下一張金唱片銷售紀錄專輯以及數首排行榜熱門曲等好成績。 (藝人簡介: [蕃薯藤追星](http://stars.yam.com/file/detail.php?si=000500)) > >

總算~ 在昨天晚上去TICC(國際會議中心)體驗了這個成軍三十多年的世界情歌團體的功力~  由於身為30歲左右的我~ 其實對於Air Supply的鍾情算是比較特別的。所以到了演唱會的時候,我跟Jenifor 東張西望的看,似乎也真的沒找到幾個比我們年紀小的歌迷 (除了父母帶小孩子來的不算阿~~) 全場幾乎都是 40~50年代的人,也由於昨天剛好是上班的日子,所以大家都是西裝鼻挺的來看演唱會~ 隨著時間慢慢的過去,期待的時間終於到了  這時候會有一點點的擔心 擔心主唱的聲音會不會因為年紀的老邁而有所變化、會不會表演沒那麼精彩呢?

這一切種種擔心,在重重的前奏下,主唱用他的富有震撼力的嗓音唱出的”Even the night are BetterPower of Love”之後~~我想在場的每一個人都瘋狂了,不論你的年紀、你的服裝~~ 你都會為了主唱”羅素希區考克”在舞台上搞笑的演出而會心一笑~~ 也會受到風度翩翩的吉他手”葛拉漢羅素”在演唱會途中即興創作的一首歌曲而感動~~ 這些都是Air Supply的魅力~ (其實照相並不多,不過我等照片好了~ 會放上來~~)

隨著許多首動人歌曲的演唱之後,到了接近尾聲的時候,兩位主唱就跑下舞台來跟觀眾們互動,這個時候聽到全場的尖叫~~(是的! 是尖叫!! 全場30~40歲的觀眾在尖叫~~) 許多興奮的女FANS 抱著吉他手猛親 (是~~ 是猛親喔 ~ 夠激情吧?)在巡迴完全場之後,主唱希望大家靠近一點舞臺這個時候所有的觀眾都瘋狂了 全部都往台前衝過去,隨著主唱優美的歌聲左右搖擺~~   我想~~ 不能說這個團體老~ 就說他們沒魅力,試問~ 現在有哪些團體能讓這群30~50歲的人 如此瘋狂的呢??

如果你是今天晚上要去聽的~~請放鬆你自己~ 盡情享受Air Supply 優美的歌聲吧!!!