Adv

10/26/2013

test

test content

8/19/2013

I am not dead

Just let you know, I am not (yet) die

8/30/2012

懇請關注學民思潮三子絕食

http://ngszehin.net/hunger-strike#.UD-HFsW571p

男人老狗,很少看新聞看到想哭。
狗官們!時至今日,你們回家後還能理直氣壯地直望你兒子、女兒的眼睛而不自覺羞恥嗎?
政客們!你們還好意思只顧為自己「告急」嗎?還要擺「氣勢」嗎?還只顧「要贏」嗎?還要抹黑這班孩子說他們是被政客擺佈嗎?你自己也是政客,請環顧你的敵人與盟友,當中有誰有這組織力、誠信、專注、膽量、胸襟和赤子之心?找不到是正常的,但這也說明這班孩子不會也不曾被擺佈,也說明沒有誰有能力可以擺佈他們。
老師們!你們也真的算是不賴。當大家都以為香港教育沒有得救時,卻又讓我們發現有人能教出了這班使大家感覺到驕傲自豪的孩子。這群孩子們的老師們,我要衷心感謝你。
我重申,身為一個父親,也教過書,我知道學生如何容易被洗腦,也明瞭獨立批判思考對孩子之重要性。有人說香港人沒有國教,所以不懂愛國,不會為國引以為榮。我說過這是 Bullshit!我說過愛是沒有得教的。引以為榮也不是課堂上可以教出來,而是要憑行為感染大家。就像他們。
在政府總部門外的兄弟姊妹們,我撐你!我以你們為榮!!見到你們,我才發現香港原來還有點希望!!並請保重身體!
香港人啊!如果你還有點良知,如果你不覺得這班絕食孩子是攪屎棍,如果你不想因為你是那沉默的六百幾萬人而被代表為支持這末日教條,唔該出句聲好嗎?如果實行了國民教育,這班孩子可能會是最後一批有希望的下一代了!
Hunger Strike
學民思潮佔領政府總部活動:
https://www.facebook.com/events/113798935436014/

4/18/2012

FIX: When you try to download a .doc file, it saved as .wiz

When someday you want to download a Word doc file from Internet, but your browser (IE9 or Chrome) saved / suggest you a file name in ".wiz" (but not always).  How come?

Stop blaming your browser, it is not their fault (at least, not all). It is because you have OFFICE STARTER installed.

If you just want to fix the problem, import the registry listed below. I explain detail follow.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/msword]
@="Word.Word.8"
"Extension"=".doc"
"SoftGridSource"="{90140011-0066-0409-0000-0000000FF1CE}"

Backup your own registry before you apply the fix, I won't suggest it anyway. [If you know how to fix by the above little instruction, you won't need a backup :) ]

There is nothing wrong in the web server and the web browser, but the Windows 7 give unwanted data to Chrome(or IE).

There are some server system won't tell the browser the filename they are opening when it download a file.
Let's use the below HTTP request for example,

GET /somewhere/web/program.do?filename.doc HTTP/1.1 
Host: lazy-server 
Connection: keep-alive 
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.24 Safari/536.5 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 
Accept-Encoding: gzip,deflate,sdch 
Accept-Language: en-US,en;q=0.8,zh-TW;q=0.6,zh;q=0.4 
Accept-Charset: Big5-HKSCS,utf-8;q=0.7,*;q=0.3  

HTTP/1.1 200 OK 
Server: Lotus-DominoDate: Wed, 18 Apr 2012 15:07:45 GMT 
Last-Modified: Wed, 18 Apr 2012 14:50:58 GMT 
Content-Type: application/msword 
Content-Length: 132608 
Accept-Ranges: bytes
The browser known it download the file rather then open it up, as it does not handle the Content-Type: application/msword. However, the server did not include any "Content-Description" header which is usually used to carry the filename for dynamic content.

Then, how the browser guess a name for the file? It take the last part in the URL before the query string. It takes program.do. Some other browser (I mean Firefox here) take the name directly. So, if the "program.do" is "filename.doc", you will get the filename right saved.

However in many web program, they use famous ".cgi" ".do" ."php" ".aspx" extensions in URL. If the browser complete it a simple way, you will save a file you won't able to open without rename it's extension.

The problem is IE and Chrome do one little step more and smarter here.
As it known the Content-Type, as known as MIME type, of the content. It can guess a best file name extension for you by looking you system registry.

And there it found a little known list at "HKEY_CLASSES_ROOT\MIME\Database\Content Type" and ask what is "application/msword". Guess what, registry said it is "Word.Wizard.8" and it usually have extension ".wiz".

There is no one in the world could make that relation other then the programmer who wrote this.

Fix the value, and you will be happy.

3/31/2012

Google Drive will be released any moment

Remember Gmail?  I was first launched on 1st April, today is 30 March.

Hit your browser to https://drive.google.com/. OK, you will see a common 404 page.

But wait!   Have you ever see such 404 page from Google? Never. Google do provide friendly error pages. Why not take a look again. Yes, it is a SSL enabled domain. And it is even providing round robin DNS for large public traffic volume.


> drive.google.com 8.8.8.8
Server:  [8.8.8.8]
Address:  8.8.8.8
Non-authoritative answer:
Name:    drive.google.com
Addresses:  173.194.38.132
          173.194.38.134
          173.194.38.133
          173.194.38.128
          173.194.38.135
          173.194.38.130
          173.194.38.129
          173.194.38.142
          173.194.38.131
          173.194.38.137
          173.194.38.136

It is REAL,  prepare yourself and be the first user.

10/03/2011

Shared Items - October 2, 2011

9/29/2011

I thought what I’d do was, I’d pretend I was one of those deaf-mutes - Dennis Blog

 

我想是時候開始把這個 blog 移到其他 provider 了