Check one file from repository in SVN with a specific revision number

Problem You have to edit one file from a repository but there are hundreds of files in that repository with possible hundreds of MB or GB worth of information. Not only that but you might need the file on a specific revision number. You have tried [php]svn checkout http://svn.source/directory/file.fil[/php] But this doesn’t work. Solution You […]

Pattie Maes and Pranav Mistry demo SixthSense

This demo — from Pattie Maes’ lab at MIT, spearheaded by Pranav Mistry — was the buzz of TED. It’s a wearable device with a projector that paves the way for profound interaction with our environment. Imagine “Minority Report” and then some.

AS3 Convert function name on the fly

Why would you want to do this? Not sure but a sample here: [as]var _x = 100; function a() : void { trace(“\t\tCalled from A = _x” + _x + “\n”); } var b = function (): void { trace(“\t\tCalled from B \n”); } trace(“Do a regular B call\n”); b(); trace(“Convert B to A\n”); b […]

ZendFramework FollowSymLinks or SymLinksIfOwnerMatch error in XAMPP

Problem: You may be getting a 403 error and if you look at the logs you should find something similar to the following: [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /Applications/xampp/xamppfiles/htdocs/project/public/index.php Solution: In your .htaccess file add the following line to the begining of the file: […]

Flash Builder: Changing BorderContainer color during runtime.

I got myself in a mess trying to change the background color of the component during runtime and after different trial and error finally I figured out that it had to do with this declaration: [as] [/as] Once removed I was able to use [as]this.setStyle(“backgroundColor”,0x00afe1);[/as] I don’t really understand why having the backgroundFill declaration within […]

Splat Video Reference

I just had to work on some “Splat” animation and this was great as reference. Too bad my animation had to be limited but good for future refence.

WordPress Custom Type loop

With the upcoming version of WordPress 3 (available in beta as of today) here is a tip of how to pull the custom types in the loop once you have created them. [php] Recent News < ?php $recentPosts = new WP_Query(); $recentPosts->query($query_string . ‘&post_type=news’); ?> < ?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>

Command line shortcuts Mac OS X

Ctrl + A: Go to the beginning of the line you are currently typing on Ctrl + E: Go to the end of the line you are currently typing on Ctrl + L: Clears the Screen, similar to the clear command Ctrl + U: Clears the line before the cursor position. If you are at […]