換ADSL公司

在使用了GIGA接近三年之後,由於對於WOW的連線速度實在恐怖(半夜在兩點之前是無法下副本的 =_=)

決定要換HINET,想不到線再中華電信的效率相當的好~~一天就來裝機~~ 厲害!!

[魔獸世界]如何架設DKP

DKP = dragon kill point

  起源自EQ某個大公會,因為EQ的boss全都是龍, 因此取名為DKP.
主要功用就是解決分寶的問題,每個人對公會的貢獻值可以DKP來表示.
就像上班打卡, 你出的raid愈多,打倒的boss愈多就愈多dkp,也就是有
更好的機會可以拿到你想要的裝備.

  簡單來說就是每次出raid都會有專人記下每個raid成員的出席情形,
打倒的王的數量,然後分配dkp,並記錄誰loot了什麼裝備,增加或減少了
多少的dkp量.然後將其在特定網頁上記錄,做到公平公開的原則.

  1. 簡單架設DKP網站
  2. 利用CT_RaidTracker來紀錄DKP值
  3. 將CT_RaidTracker所取得的DKP紀錄匯入DKP系統內

[魔獸世界]一個增強型薩滿的影片Unbreakable

連進去看影片喔~~~
如題, 他是有橘槌又高督的傳奇獸人薩滿@@”
我許久前下了他的影片 裡面的歌曲非常cool啊
聽了熱血沸騰, 影片先是他在戰歌秒人 然後PVP區域秒人
經典的來了, 他邊哭邊去洗成恢復薩, 被聯盟殘殺XD
然後一個牧師飛下來救他讓他重新學會風怒XD

String compare using XSLT and XPATH

I have summerized some note about the string comparison via XSLT and XPATH.

  1. Find specific string with “=”:
    _Find specific Item with text “testITEM”.
    _
  1. Find specific string with “contains”:
    Find specific Item which contain ”testITEM”.
  1. Find specific string  case-insensitivity “=”:
    Find specific Item with text “testITEM” or “TESTITEM” or “TestItem” … ETC.

There is no way to compare it without transform, you need transform it to upper case(or small case) first.

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
  1. Compare orderings with great-than:
    _Find specific date which great than “20060419”:
    _
    If the date is ISO format (YYYY-MM-DD) it is easy to compare with follow code. ( >= is the same case.)
  1. Compare orderings with less-than:
    Find specific date which less than “20060419”:

It should be note, “<” can not in XPATH. Please use “<” to replace it. “<=” is the same code.

That is all, for more detail you can find some useful feedback in XSLT Questions and Answers.

2006-04巴里島五日遊

快速記一下所有的行程:

  1. 開車到中正機場->下午到巴里島機場->Athena Villa Check-in->Kuta市區遊->Poppies晚餐->回Villa休息。
  2. 早上起床吃Villa早餐->包車Ubud之旅->買銀飾->看畫廊->Ubud傳統市場與皇宮->Indus午餐->看梯田->Bali Ratu SPA->Kuta Plaza 晚餐。
  3. 早上在Villa內SPA->換到InterContinental->海灘散步->游泳池旁邊曬太陽到天黑->回飯店小睡一番->游泳池旁的餐廳高級浪漫晚餐。
  4. 吃飯店高級早餐->睡回籠覺->Kuta市區KFC->去買Jomba Coffee->Kuta Plaza晚餐->回去拉肚子。
  5. 飯店早餐->睡回籠覺->到飛機->台北。

日程:4/13~4/17

About the running oder for Window Service

WindowsService (WinCE).JPG 

We usually doesn’t care about the startup odering of Window Services. But there is a situation about this.

You usually don’t care what you don’t understand.

Total Service: ServiceA and ServiceB.

In ServiceA we will retrieval some information via ServiceB. If ServiceB doesn’t start before ServiceA this future will failed. Because all Window Service are controled by SCM (“Service Control Manager).

How do we make sure the startup odering of Window Services?

Actually, SCM dispath all service ramdonly, such that you can not promise the services startup odering. But  (mm Here comes a hreo ).

We can set the dependency of every service.

ServiceDependency (Small).JPG 

You can try to open SCM and open a service propertied dialog to see the same information as bellow.

In the table of “Dependency”, you will see all depdency services of this service. It will make sure when this service starup all dependency service should already startup. You should set when you create such service.

::CreateService(hSCM,     // SCM pointer   m_szServiceName,   // service identify name   m_szServiceName,   // Display service name to display    SERVICE_ALL_ACCESS,  // desired access   SERVICE_WIN32_OWN_PROCESS, // service type   SERVICE_AUTO_START,  // start type   SERVICE_ERROR_NORMAL,  // error control type   szFilePath,   // service's binary   NULL,    // no load ordering group   NULL,    // no tag identifier   _T("RPCSS"),   // Dependencies on RPC Call Service.   NULL,    // LocalSystem account   NULL);    // no password > >

Please reference MSDN for more detail.