Archive for March, 2007

Ajax 的 responseText 中文亂碼問題

Friday, March 30th, 2007

剛剛在實驗 element.innerHTML = AJAX.responseText 時候碰到了中文亂碼問題,稍微找了一下,以下是最簡單的解法。

假設 AJAX.open('POST', 'cgi.php', true), 然後 cgi.php 要輸出中文的內容,那記得在輸出前先丟個 header:

header('Content-Type:text/html;charset=big5');

問題解決。

對付 responseXML 時候把 text/html 改成 text/xml 就好了。

idle 2

Saturday, March 17th, 2007

剛剛下樓去把六點多沒吃完的晚餐解決掉,順便泡杯咖啡上去後邊讀書邊品嘗。以下為很熟練的連貫動作:

  1. 抽出咖啡機的沖咖啡 tray
  2. 用水沖洗 5 秒
  3. 打開身後儲藏室拿出咖啡和濾紙
  4. 把濾紙放入 tray
  5. 用咖啡杯量水
  6. 把 tray 放回咖啡機中
  7. 把杯子內的水倒入咖啡機中
  8. 插入插頭
  9. 按下開關

然後就轉身去把剛剛拿出來的 Panda Express 盛到碗裡面好放到微波爐裡面加熱,邊聽著那熱水經過咖啡和濾紙滴下的聲音。慢著,咖啡跟濾紙?轉過去看桌上還擺著攪碎的咖啡,我… 甚麼時候把咖啡放進去了!?

滴滴滴的滴了一陣子的原來是清澈透明的水,努力的穿透濾紙而滴下來。嗯哼,就說這沒藥醫 \囧/

[沒藥醫參考]

頓號

Friday, March 16th, 2007

Y+ 知識果然無奇不有,原來頓號打法根本很簡單。

  1. `
  2. 、取得成功

以前的打法真白癡,白癡到根本不想講出來 XD

Drama

Thursday, March 15th, 2007
  1. Life would be a lot easy without having to deal with drama that comes up once in a while. The thing is, when you realize, you’re one of the actors already, and you can’t quit. Being also a director of this drama, you can change the play as long as others go along. When the issue is something out of your hand, you can try getting yourself more involved to gain influence, or try pulling yourself out. What about sit tight and hope for a happy ending? Too bad, lottery isn’t guaranteed for everyone. But hey, many times it’s the best option to shoot for.
  2. Once in a while you’ll also run into someone starting a new drama and trying to pull you in. You can choose to hop in and play your role, and maybe have some memorable time along the way. You can also choose to drop the invitation and live on with your life. So which one is better? Those who choose to hop in either got nothing to do or want this drama anyway. Those who don’t probably will just chuckle, feeling sorry for the founder.
  3. What about times that you wanted to start your own drama? Well, in case you don’t know what will be qualified, talking two faces will be a common one. Shame on you if you can’t tell you are starting one, I am sorry that you are just hopeless. But those who can tell, hey you really want one? Some benefits you may get from having a successful drama: self-satisfactory, confident, feels good, and etc. Some detriments in case the drama don’t run like what you’d it be like: low self-esteem, feeling like a loser, and etc. Most importantly, do others want to play along? Maybe they’ll just chuckle you off.

All in all, shit happens when it feels like to. When you are in shit, get out or get more shit. Don’t start shit cuz it aint good for you.

Logitech’s strategy to rip you off with Windows Vista

Tuesday, March 13th, 2007

So, I have this Logitech QuickCam® Messenger™ that I bought last summer, it’s a dual pack combo so I can put the other back at home. I recently upgraded my computer to Vista and guess what I find out:

This Camera will not work with Windows Vista. Please see our list of newer Vista compatible cameras.

This is the exact phrase I see when I tried to download driver from Logitech’s . So my first thought is that, ok, maybe it wasn’t working properly so they’d call it “will not work”. I decided to download its driver for XP and see if it will install. Following the instruction of the (32.2MB) installer, I need to restart my computer for it to finish the installation. Sure, will do. After restart, hmm, Windows still can’t find the drivers it wants, ok maybe Logitech is right, this is not working for Vista.

My laptop is running Windows XP so I don’t really bother trying to get the webcam working on Vista. The (32.2MB) file just sits there and do nothing. I later installed WinRAR because I wanted to open some supposed to be lame video a friend sent me. Guess what, since now that I have WinRAR installed, I can right click on the driver installer (qc848enu.exe) and choose to extract to folder. I don’t need a stupid little icon on my taskbar just to make sure I am aware that a webcam is installed anyway.

Now that I have WinRAR installed (I really didn’t want to install it actually), files extracted, I can try installing drivers manually. Windows Vista has more steps than XP to get to the browse-for-your-driver page. After I am there, I point the Wizard to look under the Drivers folder within the extracted files of the installer (qc848enu.exe). Guess what, Vista found all the drivers it needs and this webcam is working now.

Yeah, it should right? You can pretty much use XP’s (32bit) driver in Vista (x86) anyway. My FastTrak 376/378 driver is for 2000/XP/2003 and it’s working like what it should under Vista. Now it makes me wonder why Logitech says it won’t work?

  • Geeksquad can show the message to an old granpa or grandma and charge them part and labor for getting a new webcam.
  • Some know-where-to-download-driver computer newbie sees that message and will decide to get a new webcam.
  • It’s technically way too difficult to have a properly written installer for this particular webcam.

Maybe, but I think this makes the most sense:

  • Just say it won’t work and don’t even bother upgrading the installer so people who can’t install it will have to buy a new webcam. Yeah, go get that $120 Logitech QuickCam Orbit MP, it not only tracks your move, you also get a Vista driver installer (85MB)!!!

Well, I guess this is how you push forward to “encourage” upgrade, maybe?

Update (5/17) : Thanks for Shawn to point out that there is now a Vista ready driver that was in question.

All Rights Reserved Copyright © 2008 Design by StyleShout and Clazh