Subscribe to Alvin Poh's Blog by RSS reader
Subscribe to Alvin Poh's Blog by Email
Gadgets, Technology, Public speaking and IT from an undergraduate's perspective.
Small Plastic Travel Bottles Used For Gym, Travel, Shampoo, Etc
I’m leaving for a trip to taiwan this Monday! To Taipei in particular, and I’ll be away for 7 days
I’m in the midst of packing now, and I realised how useful these bottles are. I got these plastic bottles a few weeks back, but only got to using them now. I’ve transferred my shampoo and body foam into them, and it’s really very handy because they’re so small and light. Compared to the original shampoo bottles which are big and bulky, these small plastic bottles are a godsend!

I like it that they’re using a screw-top lid too, because the shops that I visited only had flip-top lids, and I didn’t really feel safe with having flip-top lids in my bag, just in case they might leak. It’s also squeezable — another plus point!
Oh, I didn’t get these bottles from a shop, I bought them online at this website selling small plastic bottles. They have a few sizes available and containers too, but I only got a couple of the 3 oz bottles to test out, and they’re great! I’ll probably buy more to keep around after I get back from my trip.
Subscribe to my blog:
RSS reader
Email
Windows XP PHP Bug / Easter Egg?
I just stumbled upon this accidentally! I realised that contact us pages are more exposed to spam bots and whatnot when you actually name the contact us page as contact.php or something similar. So I tried naming the file con.php. Works great on the server, but something interesting happened on my Windows desktop.

Apparently con.php cannot be created, copied or moved on to a Windows desktop for some reason. I’ve tried this on two different computers, both running Windows XP, and I got the same result.
Subscribe to my blog:
RSS reader
Email
Create Web 2.0 Graphics with Free Photoshop Layer Styles
Know the Web 2.0 look? The one with reflections, rounded corners and nice gradients? Well if you have Photoshop, you’re in luck, because this guy is giving out free layers (Just pop by his blog and download them — they’re completely free!). This will save you tonnes of time to create your Web 2.0 graphics.

http://www.dezinerfolio.com/2007/05/06/ultimate-web-20-layer-styles/
Done that? Now to use the layer styles, simply import them into Photoshop by using your preset manager (Edit > Preset Manager).

Once that’s done, you can start using your layer styles! How to use layer styles in Photoshop, you ask? Well, to use your new-found layer styles, simply create a new layer (the best example is of a shape, e.g. the default rectangle shape) and then go to Windows > Styles, and select the style that you want from there — and voila! You have just used a layer style!
Subscribe to my blog:
RSS reader
Email
Use Javascript to Display Random Image and Link
I was editing a PHP script today when I realised that one of the files did not allow PHP code. Weird. But the annoying thing was that I NEEDED it to run PHP code — or rather, I needed it to randomly display an image with a link.
So I had to find other means, which turned out to be good ol’ Javascript. The code below will allow you to use Javascript to randomly output or show an image with a link.
Download the Javascript here (Right click and save target as)
Subscribe to my blog:
RSS reader
Email
The Internet Is Getting Bigger and Wider
This thought just poppped into my head — I remember when websites were designed to fit a resolution of 800×600. Apparently sometime ago, this “rule” was overrode and I didn’t get the memo.
New websites seem to be designed for larger screens. I’m seeing websites with a default width of 900 pixels or more. For someone using a monitor with a resolution of 800×600, it means a lot more horizontal scrolling. But I guess people like that don’t really exist anymore do they?
When I was looking around for a new LCD monitor, I realised that 17″ were almost non-existent. The stores started from 19″, and those weren’t very popular too. The rage these days seem to be 22″ LCD monitor and above. Those monitors are huge. You can view two A4 pages side-by-side on those monitors — which is a serious productivity boost actually.
The new wider-width websites look much better though. With the additional width, information is more clearly displayed and well laid out. In any case, it does look like widescreen is here to stay.
Subscribe to my blog:
RSS reader
Email
ZenCart Removing The “Show Quantity in Stock” Message From Template
I just found this out while playing around in ZenCart. If you have a ZenCart installation and you’re wondering how to remove that “Show Quantity in Stock” message from your product pages, there’s actually a setting in your admin panel to turn it off. Simply log into your admin panel and go to Admin > Catalog > Product types > Product general > Show Quantity in Stock. Set the value to “0″ and that’s it!
Note: Apparently some themes have issues with this function — even after setting this value to “0″, you’ll still find that the product page displaying that message. The only option now is to remove that line from your template.
Subscribe to my blog:
RSS reader
Email
Clearing your web browser’s cache (IE, Firefox, Safari)
Some browsers automatically cache a webpage that you visit by default, and serve that cached webpage the next time you visit. That’s a problem especially if the page is constantly updated, because your cached version will be showing you outdated information. So sometimes, you’ll find yourself needing to clear your browser’s cache. Here’s how to do it for the various browsers out there:
Firefox 1.5
- PC: Go to the Tools menu and select Options
Mac: Go to the Firefox menu and select Preferences - Click on the Privacy icon
- Click on the Cache tab
- Click on Clear Cache Now
- PC: Click OK
Mac: Click on the red dot in the upper left corner of the window
Firefox 2.0
- PC: Go to the Tools menu and select Options
Mac: Go to the Firefox menu and select Preferences - Click on Advanced icon
- Click on the Network tab
- Click on Clear Now
- PC: Click OK
Mac: Click on the red dot in the upper left corner of the window
Internet Explorer 6
(Note: CTRL-F5, is a shortcut for ‘refresh’ and ‘clear cache’)
- Go to the Tools menu and click on Internet Options.
- Ciick on Delete Files…
- Check the box for "Delete all offline content", then click OK
- Click OK OR
Internet Explorer 7
(Note: CTRL-F5, is a shortcut for ‘refresh’ and ‘clear cache’)
- Go to the Tools menu and click on Internet Options
- Click on Delete
- Click on Delete files
- Click Close, then OK
Safari
Go to the Safari menu and select Empty Cache…
Netscape 7.1
- PC: Go to the Edit menu and select Preferences
Mac: Go to the Netscape menu and select Preferences - On the left side, click on the triangle next to Advanced
- Click on Cache
- On the right side, click on Clear Cache
- Click Close
Subscribe to my blog:
RSS reader
Email
14 Dec 07 | 


