On Seeding Nested Models in Rails 3

Tuesday, August 30th, 2011

Dead Models

So you’re in active development and want some real-ish data in your app, eh?  And you keep making adjustments to your model as you understand the requirements better?  Oh?  Your models are deeply nested, like a proper associative-normalizing ninja?  

Read the rest of this entry »

On detecting idle states in Flex 4

Monday, July 5th, 2010

So I’m building a B2B dashboard in Flex, and thought I’d write up a quick post on a problem I didn’t see many online solutions for – well, there are solutions, but they all reference weaksauce flex 2, so I thought I’d go all new and shiny and post this working flex 4 example.

The problem is simple: How do I detect an Idle user, turn off all timed network requests, and — eventually — log off users silly enough to walk away from my interface?


An idle user

Example: situation this code is meant to save my application from.

Check out the code…