Archive

Author Archive

Open/Edit .ctp with Dreamweaver CS4

September 3rd, 2010

CakePHP 1.3 default file extension for the views template are in .ctp

If you open up .ctp files with Adobe Dreamweaver CS4, you will noticed that all the codes are in black and white. To make Dreamweaver show the color syntax of PHP & HTML in .ctp files, do the following:

- Navigate to Dreamweaver CS4 Installation folder/configuration/DocumentTypes
- Open up MMDocumentTypes.xml

Search for:

1
winfileextension="php,php3,php4,php5"

Replace with:

1
winfileextension="php,php3,php4,php5,ctp"

Restart your Dreamweaver CS4 if it is running. Open up again and you will notice that .ctp files now has the same color syntax as .php files.

Willie Programming, Software , , ,

Removed Dotted Line around image

September 2nd, 2010

If you would like to remove this irritating dotted line when users click and hold the image, just do the following on your stylesheet in CSS:

1
2
3
a {
    outline: none;
}

Easy !~ But this would also means it will remove dotted line around all hyperlinks (including text hyperlinks) unless you define a class for it:

1
2
3
a.YOURCLASS {
    outline: none;
}

Willie Programming , ,

梁靜茹 & 丁噹 – 燕尾蝶

August 31st, 2010

丁当 – 我是一只小小鸟

August 29th, 2010

Her voice is so powerful and it’s very nice!

Willie Uncategorized

梁静如 & 丁当 – 知足

August 28th, 2010

Shutdown/Restart/Log Off in Windows

August 27th, 2010

Need a icons to do the above in Windows OS?

Easy! Just create a .bat file and fill in the following:

For Shutdown:

1
shutdown.exe -s -t 00

For Reboot:

1
shutdown.exe -r -t 00

For Logoff:

1
shutdown.exe -l

For Abort Shutdown:

1
shutdown -a

Take note that the -t parameter is the number of seconds Windows take to perform this task. For instance if shutdown.exe -s -t 3600, Windows will takes 1 min before it shut down.

Hope it helps :)

Willie Programming, Software

Mfizz Evolution II Helmet

August 25th, 2010

Last year April, I bought a MHR Venom helmet.

But due to my carelessness, occasionally dropping the helmet, the side plate was in a bad shape. Visor will come out whenever I ride fast or when I wind up/down my visor. Asking for the price for the replacement of the side plate costs about $10. It’s totally not worth to change consider that I bought this helmet for around $20++ ?

Henceforth, I went to buy a white Mfizz Evolution II helmet. Free delivery to my house and a free helmet bag. Costs me $65 due to its light-weight and fibre glass shell construction. In my opinion, I think the pricing was better than Lim Ah Boy (LAB) where I was quoted around $70.



The best part is that when I bought this helmet today, it comes along with a First Street Legal Tinted Visor. Totally love it! No more risking paying $40 fine for wearing tinted visor!

For those interested in getting the helmet, you can find the supplier @ http://www.helmetboys.com.

Willie Automobile, Life

Facts in Singapore

August 22nd, 2010

In Singapore, majority of us live in HIGHLY DANGEROUS BUILDINGS (HDB).

Most people have also gotten used to PAY AND PAY (PAP) without any complains.

Not only do you have to pay, u PAY UNTIL BANKRUPT (PUB) when the flood comes.

If u don’t own a car, u can always take a MAD RUSH TRANSPORT (MRT), or get squashed in bus SIDE BY SIDE (SBS) by other commuters.

But if you have your own transport, then you will face EVERY ROAD PAY (ERP).

If you are born a male in Singapore, you will have to SERVE And FARK (SAF) entertaining peoples.

Throwing rubbish around is also not encouraged, because they will give you NEVER ENDING AGONY (NEA) doing corrective works.

Lastly not forgetting that you will have your own COFFEE PROVIDENCE FUND (CPF) for our government ensuring that Singapore is 101% corruption-free.

The government also overshot their budget to support the recent YOU OWNSELF GO (YOG) 2010 event. This event really have a poor turn out.

How sad it is to be in Singapore … :(

Willie Uncategorized

Japan NSR 250 DogFight

August 12th, 2010

Windows Registry Repair

August 8th, 2010

Free Window Registry Repair is a refreshingly simple tool for cleaning up your Windows Registry. It lacks the bells and whistles offered by some programs–such as special features for uninstalling programs or managing the Start menu–but thankfully so. This is a program that does something well and doesn’t stray from that success. – From CNET editor’s review

Some screen-shot of using Free Windows Registry Repair:



I personally find that this is better than CCleaner in term of repairing Windows registry as sometimes, CCleaner does not detect any Windows registry errors. Free Window Registry Repair is more thorough in checking errors as well as repairing it.

Links to download a copy of it:
http://www.free-windows-registry-cleaner.com/free_windows_registry_cleaner.html
http://download.cnet.com/Free-Window-Registry-Repair/3000-2086_4-10606555.html

Willie Software