Uncategorized

Interesting Discovery about Breakfast, Captain Crunch > Kashi Go Lean

So if you compare the nutritional facts of Peanut Butter Captain Crunch and Kashi Go Lean honey nut something or another... you'll notice that the Captain Crunch actually has fewer calories (138 per cup) and less fat (about 3 gs) than Kashi Go Lean. To be fair, I didn't compare the other nutritional benefits, and I'm sure Kashi wins at least some of those.

Anyway, at half the price and three times the nostalgic awesomeness, I went with Peanut Butter Captain Crunch. Nothing against Kashi, I'm sure they make a fine cereal... but it's no fun!

I hate my website

I hate my website. I've never been satisfied with it. I'm going to completely rewrite the whole thing. I might use Drupal. Blogger sucks.

RTF output from Flex

I created a new project, http://code.google.com/p/rtflex/. I got the idea from AlivePDF. Basically it exports RTF binary to a file. Nice tool for saving documents that need to be opened by Word.

RadioButtonGroup inside of Repeater

If you've ever tried to use repeater to create radiobutton groups, you probably found that setting the ID doesn't work and the group won't initialize. That's because flex wants "visual" objects in the repeater.

Flex iFrame stealing focus!

If you're using Christopher Conraet's and Brian Deitte's Iframe component for Flex and you try to change the URL in it to a page with a form, you've probably run into the "stolen focus" issue. In IE, the focus is completely gone from Flex, and will not return! After a lot of frustration, I finally figured out a solution that's really easy.

The Same LabelFunction for DataGrid and ComboBox

In Flex, some label functions accept two arguments, i.e. item and column in a datagrid, and some accept one, i.e. item in a combobox. If you're not using the data from the column, which is typically just the dataField anyway, then you don't need two labelFunctions. The easiest way to fix the problem is by making the column field optional.

private function fullName(item:Object,dgc:DataGridColumn=null):String{
 return item.FIRST_NAME+" "+item.LAST_NAME;
}

Just add "=null" and you're done!

Presentation next week

Next Wednesday I'll be giving a presentation that covers
  • Installing Drupal
  • Configuring Drupal Services for AMFPHP
  • Configuring Flex for AMFPHP
  • Never having to code a backend ever again
  • Building a Flex app with a Drupal backend
All this in under an hour. It's that easy. See dc-flex.org for more info on the meeting. If no one else volunteers to speak we might make it into an all-night presentation where we build an entire web app.

XMLListCollection, Descendants function is very important!

I've been struggling today with a minor issue of making all of the children in a complex XML structure go through a repeater. The first step is to create an XMLListCollection which can then be used as a dataprovider for a repeater object. But if you simple do this:
menuCollection:XMLListCollection = new XMLListCollection(menu.children());
You're only going to see the elements at the top of the list.

Yahoo Flex Skin problems with DataGrid

I'm using the Yahoo! Flex skin on one of my projects and the datagrid column resizing is totally busted. It works once or twice and then breaks down. The cursor is not centered properly, and the column separator is displayed wrong by one pixel. The fix was simple enough, just comment out the headerSeperatorSkin and stretchCursor lines of the CSS file. Just thought you should know in case someone ever runs into this.

How to debug a Flex app on a live server

Have you ever launched a Flex app into a production environment only to find out that it doesn't work?! You probably wanted run the debugger right then and there to trace the problem.
Syndicate content