PHP script to create thumbnails for images

The task: Write a PHP script to get images from database (database table “PHOTOS”), resize them and output them in the browser. Here’s my quick solution(not optimized): thumb.php [sourcecode language=”php”] <?php require_once(‘dbconfig.php’); // file that stores our database connection variables require_once(‘functions.php’); // resize script try { if (!isset($_GET[‘id’])) { throw new Exception(‘ID not specified’); } […]

Read More

iOS and XCode tutorials and resources

Navigation controller and Tab Bar usage and implementation Creating an iOS 4 iPhone Multiview Application using the Tab Bar (Xcode 4) http://www.techotopia.com/index.php Creating an iPhone Multiview Application using the Tab Bar http://www.techotopia.com/index.php/Creating_an_iPhone_Multiview_Application_using_the_Tab_Bar Creating a Navigation Controller Based Application in Xcode for iOS based devices http://www.gurusonthego.com/2011/06/creating-a-navigation-controller-based-application-in-xcode-for-ios-based-devices/ Add a navigation Controller http://www.ralfebert.de/tutorials/iosdev/navigationcontroller/ Using CoreLocation and GPS: iOS […]

Read More

7 Things I learned about Segway

Thanks to a very good deal on Groupon (50% off)  I got to take a 1.5 hour trip of Newport Beach on a Segway. It was a very smooth and exciting experience that I captured a small video of and put it together in iMovie on iPod: Things I learned about Segway (don’t know the […]

Read More

Single phase Micro Brushless Motor

Original idea started here: http://www.rcgroups.com/forums/showthread.php?t=596219 Concept A single phase brushless motor consists of a magnet and a coil, bushings (serve as bearings) and A1442 part from Allegro. If a current is applied a torque is generated having a sinusoidal form as function of the angle. At the points where the torque becomes zero the direction […]

Read More