Viking Hammer

Archive for February, 2009

Flex: Make Sure to Call Super in Item Renderer Override Methods

Today I came across a bug where I was using an item renderer in a data grid and the row didn’t highlight when you mouse over it and wouldn’t get selected when you clicked on it (ie, moused over or clicked on the column, not the entire row). The item renderer consisted of a Text [...]

Things I Did Gets Tags

Today I put together a quick new feature update for Things I Did. I’ve been primarily using it at work, to record what I do during the day; but if I wanted to record something I did outside of work it kind of gets lost amongst all the other things. Obviously, the solution is a [...]

Flex: Selecting the Second Tab of a TabNavigator Without Flashing the First

Flex’s TabNavigator is a great thing. In normal situations, it’s easy enough to use: <mx:TabNavigator id=”tabNavigator”>     <vh:ComponentZero id=”componentZero” label=”Zero” />     <vh:ComponentOne id=”componentOne” label=”One” />     <vh:ComponentTwo id=”componentTwo” label=”Two” /> </mx:TabNavigator> It’ll load up ComponentZero first, and there will be three tabs at the top of the TabNavigator that let you switch between them. Awesome. Except sometimes [...]

PHP Memcached Preloading Cache

I’m working on a project for a high-read, low-write environment, and one of the things we want to do is keep a database as far away from the production webservers as possible. So I want to generate content somewhere else before uploading it to the webservers to be displayed. But we tried just generating all [...]