Tag Archives: programming

Force A Secure Page Using PHP

Via: http://php.dzone.com/news/force-secure-page-using-php //force redirect to secure page if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); }
Posted in General | Tagged | Leave a comment

Remove .svn Folders from Project

Navigate to the root of the projects, and execute the following command: find . -name '.svn' -exec 'rm -rf' {} \; NOTE: You can also used “svn export source destination”
Posted in General | Also tagged | 1 Comment

The Best TextMate Theme

The guy over at InfiniteRed blessed the community with the black theme Read More @ IR
Posted in General | Also tagged | Leave a comment

Add Custom Domain to HOST file on OS X (Leopard)

Open Terminal.app Type: sudo vim /etc/hosts Hit return Type your password when prompted for it Press i (this will put in into insertion mode) Scroll down to a blank line Type in the ip and domain for the site you want to redirect using the following format: (i.e. 127.0.0.1 blueoceanlabs.com) Press escape Type :wq (this [...]
Posted in General | Tagged | Leave a comment

How to Crop a Flash Movie

Adapter from: http://www.emanueleferonato.com/2006/06/03/how-to-crop-a-flash-movie/ Using the “size” button, set a new height and width for the flash movie based on your flash design At this point probably some of your movie images will be off of the stage Unlock all layers Click the “Edit Multiple Frames” button It’s is just below the flash timeline Click the [...]
Posted in General | Tagged | 1 Comment