Archive for the ‘Tips – do you know?’ Category
Influenza A : Day 4
Yes, I’ve got infected with H1N1 or Influenza A to be exact. No, both husband and I got infected, but 3 lives suffering, including my 5 months old baby. I am sure she feel the pain of throwing up and coughing.
Okay, this is how I look with the mask on, look prettier, do I?

TAMIFLU is the prescription medication for flu prevention and treatment.

The room where I will spend 7 days

Javascript – Void operator
Void Operator
blocks returned values
(void expression/function call)
When either an HTML A tag’s href attribute or onclick event handler contain a JavaScript expression or function call, the void operator is placed before them in order to neutralize a value they may return. The void operator assures that the value will not be assigned to the href attribute.
If this step is not taken, the page content is replaced with that value or sometimes with the client’s hard drive directory listing. The most common place this “gotcha” shows up is when the window.open() method is placed in an A tag as the href’s value:
Open Sub Window
Or Here…
do something when link is clicked
Void Operator fixes the above errors just by showing up:
Open Sub Window
do something when link is clicked
The “(0)” following the void operator is sometimes used as a place holder for the returned value, but doesn’t necessarily have to be used, but I’ve included it because you will probably see it used on occasion.
How to Uninstall Office Genuine Advantage (OGA) 2007
Run this DOS command at C:\>
MsiExec.exe /uninstall {B148AB4B-C8FA-474B-B981-F2943C5B5BCD}
You will be prompted if you are sure you want to unistall. Click ‘Yes’
This will uninstall the OGA notifier 1.7.0105.35.0.
Works for vista and XP
Searching mp3
intitle:index.of + mp3 + “蕭敬騰”
Check Windows Port
Something was listening on Port 80 and preventing my local webserver from working on my Windows XP laptop. Here’s how I tracked it down: Hit Windows Key + R, which brings up the Run dialog, then type �cmd� and press enter. You’ll be on a command line.
Type
netstat -a -o -nand it�ll bring up a network list, I looked for one with 0.0.0.0:80 as the local address and noted down the PID of 2600. To find out what PID 2600 was (hopefully not a trojan) I typedtasklist /FI "PID eq 2600"which means show me a tasklist, and filter (/FI) where the PID (process ID) is equal to 2600. This told me that it was Skype.exe that was running something on port 80 locally.Finally I killed it using
taskkill /PID 2600and Skype was gone and I was able to start up my web server locally and do a little bit of offline coding. Windows actually has a pretty handy command line once you learn your way around it, it�s just the syntax is so inelegant to me after spending all day on Linux terminals. A final tip, you can type/?after most Windows commands to get the equivilent of a man page for that command.

