Archive for March, 2008

Testing progressive enhancement in IE6/7 0

Quite often we need to do development in firefox and check in IE6/7 to ensure that the content is still available for users with or without javascript, recently i was faced with a problem which required a clever use of <noscript> tag, thanks to Neil. Will talk more about it in a later post, this one is about how to configure your IE (esp if you are only using it to check if your stuff works and not for active development) so that you can choose to allow javascript everytime you reload the page, this allows you to quickly look at both the scenarios without having to go through the entire process of enabling and disabling stuff.

1. From the Tools menu, select Internet Options.
2. Select the Security tab.
3. Click the Custom Level button.
4. Scroll to the Scripting section.
5. Under Active Scripting, select the Prompt option (usually i would select enable/disable which took time)
6. Click OK.
7. Click the Yes button.
8. Click OK.On your toolbar, click the Refresh button.

So now every time you reload your page, you get the following prompt

prompt.jpg
and you can choose to allow or disallow javascript.

How to upgrade your Gmail Account 2

If you have been wondering, why has google been so unfair with you and not upgraded your account to its latest version, then this tip is for you. For some reason if your language settings is set to en_UK then your account would have been left out (or at least as on date on this post), if you don’t mind your american english being used in your gmail account (Click here for more differences) then change it to en_US and it will reload with the new features.Settings 

Cisco VPN on OSX 1

This has happened to me far many times, so thought I might as well document it somewhere instead of having to search for the solution. So here’s the problem, you are on VPN and then you put the laptop to sleep, you wake it up later and try to make it connect to the VPN again and it complains there are no interfaces available to hookup to.
The exact error message is this:

Could not attach to driver. Is kernel module loaded?
The application was unable to communicate with the VPN sub-system.

The solution to this is the following set of commands:

1
2
3
4
5
# Shut down the FireWire network interface
sudo ifconfig fw0 down
# Restart the cisco vpn subsystem and verify that it works
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart &&  \
sudo /usr/local/bin/vpnclient autoinit

and then fire your vpnclient again, this time it works fine and asks you for your username and password.