RSS LinkedIn Twitter

Archive for March, 2011

There are two ways to load content into Flex’s HTML control. The first is to set assign the htmlText property some HTML. The second is to set the location property to the URL of the site you wish to load. The two are mutually exclusive, as described in the ActionScript 3 Reference here. Speaking specifically […]

Saturday, March 12th, 2011 at 07:59 1 comment

I’ve been looking for a fluid width WordPress theme for some time. I’ve finally found one that I like. I hope it makes my code examples easier to read. In case you’re wondering, I’m using the “Deep Mix” theme by SthElse, with a few customizations. For syntax highlighting, I’ve switched to WP-SynHighlight. Thanks for reading!

Friday, March 11th, 2011 at 02:06 2 comments

Here’s a pair of methods I use to generate random usernames for an online test. They could be used to generate random strings for any purpose, though. len is the length of the random string you want returned. There’s no need to point out that the generateRandomNumber method could be optimized. I know. My specific […]

Thursday, March 10th, 2011 at 21:08 0 comments

I love being able to drag-and-drop files or directories onto my AIR apps and have it recursively process all of the files in the directory structure. This is handy for batch file processing utilities, which seems to be a common theme in many of my AIR apps. The first thing you need to do is […]

Thursday, March 10th, 2011 at 20:57 3 comments

Reading and writing files is something I do in almost every AIR application I write. It has become my language of choice to write batch file processing applications in. Here are a few of the methods I use most commonly when reading and writing files. These are divided into two main groups, binary files and […]

Thursday, March 10th, 2011 at 20:36 0 comments

I was recently given this problem to work out for a MySQL database. Given a table with the following structure and sample data: Compute and insert the ranking of that data into a separate table, ranking being defined to roughly mean the row with the highest value for num_1 would be assigned rank 1, and […]

Thursday, March 3rd, 2011 at 09:45 0 comments