Thursday, December 29, 2011

Using GCC (MingGW) in Matlab for Windows

Other than using Visual C++ 2010 in Matlab, we can also use MingGW, the GNU compiler for compiling c/c++ files in Matlab with mex in Windows Environment.

1.) Download gnumex, and install it as if a toolbox, and download the MingGW.
2.) run gnumex in Matlab command windows, a GUI is shown.
3.) Follow the on-screen instruction


Thursday, October 27, 2011

Dennis Lance 丹尼士長矛巴士 (AN) 1993-2010

At the time of 1993, the Dennis Falcon, which had been serving for Kai Tak airport routes for 8 years, were getting old. The airbus service also required expansion. A total number of 24 Dennis Lance had been ordered, in which 12 were single-door and the remaining were double-door. The single-door version were fitted with baggage stand and served in the airport routes. The double-door version are used as city shuttles.

When the new airport in Chek Lap Kok was open in 1998. Some of these single-door Lance had been transferred to Long Win bus, also serving route from Tung Chung to Airport. The others had gone back to city. All Dennis Lance are retired in 2010.

Although the number of Dennis Lance is not so large, it is still influential. The highly successful Dennis Trident is derived from it.

FU 5072 was served as a training bus at that day. It was usually served in 110 cross harbour route. All Dennis Lance in Hong Kong were fit with Alexander PS bodywork.
TIB919H, a Dennis Lance of SMRT, is till serving in Singapore as of 2011. The bus was made in Malaysia under UMW-Dennis, and is fit with a Duple Metsec body.

Friday, October 7, 2011

More on KMB Leyland Olympian A/C 11m 1988-2011 利蘭奧林匹克(奧林比安)

 EU6705 at 73x. In the early days, Leyland Olympian appears in nearly all routes with air-conditioned services, if a 11m bus could run.

ET 7856 and FN 7831. Same model, same route, same advertisement, just different front.
EZ 8310, the front
EZ 8310 at 264M, the rear
Another example of the final batch, FN6884

Wednesday, October 5, 2011

Mercedes-Benz O305 in KMB 63M

They have gone for nearly 10 years, the Mercedes-Benz O305 in Kowloon Motor Bus, the longest 2-axle double-decker. In their last period of services, most of them are served in Yuen Long and Sheung Shui region of Hong Kong.

This photo was taken in Tsing Yi MTR station aroun 2002. The bus was running the route 63M, from Tsing Yi to Yuen Long. This route was also cancelled years ago. The bus and the route become historical.

Mercedes-Benz O305 (1983-2002)
 DG5565 (ME35) at 63M

Rear part

Wednesday, August 24, 2011

Dennis Dragon Non-A/C 11m (Second Batch)

The second batch, were still bodied in Duple bodywork with 8 irregular windows on the upper deck, but wind drawers are installed at the front for the hot weather in HK.


DN758 S3N64 at 70X, which is from Sheung Shui to Jordan Road, Kowloon. This is one example that 11m runs highway.
DP6316 at Jordan Road Terminus, serving 36B. The background is Victoria Harbour and the Peak.

 DN1776 at 36B, same location, but in a hazy day.

DY9699 at 43C

Dennis Dragon Non-A/C 11m (First Batch)

Following the success of 12m Dennis Dragon, KMB ordered more for this model since 1986, but a shorter 11m 3-axle version. Initially for the trunk routes between New Territories and Kowloon, they turned out served nearly every route of KMB. With a shorter body but the same engine of Gardner 6XCT, the performance of the model is even more superior. The later batches, which equipped with Commins engines, are highway runners.

DM7035, S3N20, is the first batch of Dragon 11m. The early model of Dragon 11m has 8 windows on the upper deck, and does not have the wind drawers. This bus spent its late time on serving route 43.

DM7621, S3N21 at 43A
DM8097, S3N12 at 43A

DM8445, S3N15 at 41

Monday, August 22, 2011

Leyland Fleetline Nature Bus 利蘭珍寶~大自然巴士

D989,BT907, a ex-KMB BACo bodied Leyland Fleetline, was converted into "Nature Bus" after its retirement in 1992 and re-registered as FZ2496. This bus has been parked in Tai Po for years. This photo is taken in 2010.

KMB Leyland Olympian A/C 11m 1988-2011 利蘭奧林匹克(奧林比安)

They are finally retired from KMB on June 11, even through they were very popular as they were the first successful air-conditioned double decker in the world.
FP 6071 AL 145@43, photo taken in May 2011. Its registration was due on 31 May 2011.
FP5469 at 251M. Time flies really so quick. This photo was taken years ago at Tsing Yi station. The last batch of Leyland Olympian have the front resemble Volvo ones.

ER2990 at 935. This is the earliest batch of Leyland Olympian after the success of AL 1. The front is the classic "Tiger Head".
 ER7528 at 279x




Wednesday, July 20, 2011

Dennis Dragon Non-A/C 12m

Once upon a time they ruled the Cross Harbour Tunnel, they were the Dennis Dragon 12m non-AC, the three-door monsters. With a capacity of over 140, most of them were served in the busiest routes until their retirement in 2004. A number of them have been converted into training buses and continue to serve in the bus company. 3N1-3 were in Alexander Body with 2 doors. The remaining ones were in Duple Metsec Body with 3 doors.


DM 3103, the last 12m Dennis Dragon Non-AC, before its retirement, it usually served in routes of Kwai Tsing District.


Another angle of DM3103

Friday, May 27, 2011

移除欺詐軟件 XP Total Security 2011

當你有天發現每當一開Windows, 就有隻叫 XP Total Security 2011 的軟件警告你電腦中了毒,而當你開網站時,網頁出現了大慨說網站有毒的訊息,當然又有  XP Total Security 2011 的名字,那麼你就要留意


XP Total Security 2011 是一個欺詐軟件,它假扮成防毒軟件,發出誇張失實的警告訊息,並要求以信用卡付款去購買完整版,但它並沒有仕何解毒功能,又會拖慢系統,而且不能用正常方法(新增/移除程式)移除。

移除方法:

1.打開工作管理員(Task Manager) 關掉任何名字可疑的程式,其程式的名字是隨機的。(或直接進入安全模式)

2.打開Notepad, 並打入以下的code

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\.exe]
[-HKEY_CURRENT_USER\Software\Classes\secfile]
[-HKEY_CLASSES_ROOT\secfile]
[-HKEY_CLASSES_ROOT\.exe\shell\open\command]

[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"

[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"


存成 fix.reg  (存檔類型為所有檔案) ,並且執行。


3.執行反間諜程式的軟體,最新的Microsoft Security Essentials 已經可以移除XP Total Security 2011,  析辨為 Rogue: Win32/FakeRean.

4.檢查Browser, 例如IE 的設定,如發現 連線->區域網絡設定-> Proxy 伺服器有任何設定,請把它們移除。


XP Total Security 2011 是利用IE 的漏洞入侵電腦的,請及時更新IE, 或使用其他Browser 例如 Chrome, Firefox。

其他名字


XP Security 2011
XP Internet Security 2011
XP Home Security 2011
Vista Total Security 2011
Vista Internet Security 2011
Vista Security 2011
Vista Home Security 2011
Win7 Total Security 2011
Win7 Internet Security 2011
Win7 Security 2011
Win7 Home Security 2011


延申閱讀:
http://www.myantispyware.com/2010/03/17/how-to-remove-total-xp-security/
http://www.bleepingcomputer.com/virus-removal/remove-win-7-internet-security-2011
http://www.microsoft.com/security/portal/threat/encyclopedia/Entry.aspx?Name=Rogue:Win32/FakeRean

Saturday, May 14, 2011

Online的 Angry Birds 憤怒的小鳥

已經不是pc 版, 總之無論 是Windows, 是 Mac OS, 是 Linux, 也可以玩 Angry Birds,只要有 Google Chrome/firefox 4 就可以。

不多講, 自己去玩吧。

http://chrome.angrybirds.com/


More on MCW Metrobus Mark 2 11m 都城嘉慕 都城2型 11米

MCW were not frequently served in 42C, and now the whole route has been air-conditioned.

EK706, equipped with the powerful Cummins engine, usually served for routes in Tsang Kwan O, was specially seen in 38.

Another side


Sunday, May 1, 2011

AL 1,DX 2437, The first successful air-conditioned double decker~ Leyland Olympian 11 m

She is the ancestor of today's air-conditioned double decker, AL1, the Leyland Olympian. She was put in service in 1988 and retired in 2005. Her contribution is that the air-conditioning and driving system are both powered by the same engine, leading to good operation efficiency. Nowadays almost all air-conditioned double decker are powered by the similar way.



Because of the similar body and the seats as those non-air conditioned, some passengers may think this bus is converted from non-air conditioned bus, but the body work of this bus is original.
 As a spare bus, it served almost all routes of Li Chi Kok Depot. This picture was taken when it served 249M.
At 31B

Saturday, April 30, 2011

Nokia 的 WhatsApp

當我的朋友在Android 或是iPhone 的 WhatsApp 名單看到我, 都很驚呀,以為我換了電話

但我仍然在用我的5800

因為WhatsApp是有 Nokia 版的,支持
Symbian^3
Symbian 5th Edition
Symbian 3th Edition

可以在Ovi 下載
http://www.whatsapp.com/download/

的確用WhatsApp 果然省下很多sms的錢,尤其是現今Android 或是iPhone 當道的年代, 很多friends 都有WhatsApp.

當然你還需要一個數據計劃,不需要3G, 2G GPRS 已經夠用

我只是用中國移動香港的$98 無限數據,已經很好用。

***********************************************
發現了 WhatsApp 是用xmpp protocol 連接的,不知道其他xmpp client 例如 google talk, 有沒有辦法跟它連結?

xmpp 主頁: http://xmpp.org/

Tuesday, April 26, 2011

重建 Ubuntu 默認的panel

一時錯手把 ubuntu desktop 頂的panel 給delete 掉, 但不用怕, 只需三句指令就可以把它重建

打開一個terminal


gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel

Monday, April 25, 2011

MCW Metrobus Mark 2 11m

I just found that they suddenly disappeared, but still, as in yesterday, they took me back to school.

MCW Metrobus Mark 2 never had air-conditioned version, but they do have a powerful, hill climbing one in Hong Kong. Although they cannot run fast, but they can climb high in Hong Kong.

The last bus retired in 2007.

Kowloon Motor Bus 43A, the route that I took everyday when I was in secondary school, has already been fully air-conditioned.


Wednesday, April 20, 2011

微軟不開放 Windows XP 升級 IE9, 還有 Firefox 4

可惡的m$ 已經離棄了我們一眾 Windows XP 用家,不開放 Windows XP 升級 IE9
不過要數現代的browser,還有 Firefox 4。感覺上和Google Chrome 差不多快, 而且介面很簡潔。

既然M$ 離棄 60% Windows 用戶,我們就離棄IE 吧

Firefox 4
http://www.mozilla.com/zh-TW/firefox/

是Chrome 定 Firefox?