Tera-WURFL - Mobile device capability detection!

Let me introduce my latest and greatest software: Tera-WURFL! What the heck is that?!?! Well, ‘Tera’ is just plain cool because it comes from Tera Technologies :) and WURFL is the ‘Wireless Universal Resource FiLe. After a while of testing the WURFL PHP Tools by Andrea Trasatti, I began to notice some major downfalls in the package’s performance. Although the authors did all they could do to make it as fast as possible, the package still uses a file based caching method (albeit a fast one) so store device information. »

stevekamerman

Bumping heads with Rails

I decided that I might as well learn another language besides PHP ActionScript Perl C++ VB and Javascript: Ruby, and more specifically, the latest craze: Ruby on Rails. Why not? So I started to install it in my production server (Fedora Cora 4) and built Ruby from the source, then installed the gem updater package (I hate the name gem, but oh well), then I installed Rails from gem. This all went quite well. »

stevekamerman

Actionscript color conversion: RGB to HEX (kind of)

I ran across a problem today where I wanted to generate random colors in Actionscript. Naturally my first step was to generate a random number for the red, green and blue between 0-255: var red:Number = Math.random() * 255; var green:Number = Math.random() * 255; var blue:Number = Math.random() * 255; Now I have each color, but I need to combine them so Flash can use it. You may or may not know this but Flash doesn’t care if you give a hexidecimal or decimal number as a color, for example: »

stevekamerman

Dreamweaver Syntax Highlighting in PHP HEREDOC Strings

If you want to use Dreamweaver’s syntax highlighting features in PHP HEREDOC variables you can do it like this: <?php $something = 'test'; $output = <<<EOFEOF <!-- ?> --> <table><tr><td>{$something}</td></tr></table> <!-- <?php --> EOFEOF; ?> Since you’re in a HEREDOC, PHP will ignore the starting and ending symbols and include them literally in the string, and the user’s browser will ignore them because they’re in HTML comments, but Dreamweaver will think you’re breaking out of the PHP script and assume the string is HTML. »

stevekamerman

Drop Down Flash Menu in Pure Actionscript

As an experiment I have created a full-featured drop down (slide down) menu in Actionscript - there are no movie clips, buttons, bitmaps, shapes - nothing. My library is empty! Check it out here The nice thing about this menu is that it does not have to stick out over the HTML since the submenu items appear under the menu item. I have tested it in IE, FireFox and Opera and it looks good. »

stevekamerman