Apple to replace magsafe adapters even out-of-warranty

After doing some researching and finding videos showing how to re-solder the cable and stuff, I stumble upon this page: http://support.apple.com/kb/TS1713?viewlocale=en_US And thought it was worth a shot going to the apple store here in Pasadena. So I made an appointment and in about 15 minutes I got a new… Continue reading

Redirecting to another page when Flash is not installed

For all you that need to redirect users to another page if they don’t have Flash installed and use swfobject, just drop this code and you’re good to go: var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object var majorVersion = playerVersion.major; // access the major, minor and release version… Continue reading

A base controller using Kohana v3.0.3

Here’s how I created a base controller for websites I develop using Kohana v3 1. create a website config file ( application/config/website.php ): <?php defined(‘SYSPATH’) OR die(‘No Direct Script Access’); return array( ‘site_name’ => ‘Example site’,); <?php defined(‘SYSPATH’) OR die(‘No Direct Script Access’); return array( ‘site_name’ => ‘Example site’, );… Continue reading