Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
rich
This user hasn't shared any biographical information
Homepage: http://www.visible-form.com/blog
Jabber/GTalk: admin
AIM: flashape
Posts by rich
Asking for help voting for my wife’s business at StartupNation.com
Jan 22nd
StartupNation.com is running their 2009 Leading Moms in Business competition, which ranks the 200 best mom-owned startups of 2009. My wife Nina has her business, Tasty Clouds Cotton Candy Company, entered in it. Ranking is done by popular vote, and it’s a tight race, so I’m asking anyone who has a spare second to help us out and cast a vote. You can actually vote once a day.
You can vote and read a little about Tasty Clouds Cotton Candy Company here: http://www.startupnation.com/leading-moms-2009/contestant/3464/index.php?mode=castvote
Thanks!
swffit – The smart swf resizer
Jan 21st
I’m not sure where I came across this, but it’s very cool. If you embed your swf using 100% width and height, you won’t get scrollbars if your flash content is larger than the window. Enter swffit, with allows you to define a minimum width and height for your swf. If the browser window is less than your defined sizes, it will add scrollbars. If the browser window is bigger, it will fill the swf to 100% width and height. This means you don’t have to worry about things like browser size and monitor resolution when doing full browser flash (aesthetic issues aside). There’s a few other handy methods in the api to work with it, making it even more handy.
Pandora AIR app
Jan 16th
I love Pandora, but their AIR app…I’m not sure what’s goin on there, but it consumes a ton of memory. So after searching around for a bit I found pandoraboy, a native mac os x app that brings pandora.com to the desktop. Some cool features of the app are that you can control the app with global hotkeys, and it supports growl notifications to let you know what song is playing.
Propel DATETIME errors
Jan 11th
If you use the PHP ORM framework Propel, you may have hit the error “DateTime::__construct(): Failed to parse time string (CURRENT_TIMESTAMP)” when generating your php classes if a column in your table schema uses DATETIME. Im previous version it seemed like the generator would ignore the error and continue to generate the rest of the classes, but I recently updated my installation and now it breaks it.
I did some searching at first and saw someone saying that it was because the date.timezone setting for php was not set. So I added date.timezone=UTC to php.ini, and changed the PHP_COMMAND in the phing script to include the ini file, since running php from the command line does not automatically include it:
PHP_COMMAND="/Applications/MAMP/bin/php5/bin/php -c /Applications/MAMP/conf/php5/php.ini"
None of that worked, however, and after digging around a bit more I found there is a new undocumented attribute you can use in your schema.xml file called defaultExpr, which will insert the result of the expression directly into the database. So I just set defaultExpr="now()" and everything was good to go.
PatternTap
Jan 11th
Just stumbled across a pretty cool “design inspiration” site: PatternTap. There are loads of design inspiration sites out there, but the angle with this site is that they focus on showcasing particular design elements as opposed to overall design, with categories such as backgrounds, borders, comments, audio, tabs, web application, 404 pages, and much more. For somebody like me, who has the design skills of an intoxicated chimpanzee, this site should come in very handy.
WordPress 2.7 kinda kicks butt
Jan 7th
I’ve been upgrading some sites to wordpress 2.7, and I gotta say I’m pretty impressed with the admin area overhaul, definitely feels like a major step forward. There’s a better overall flow to the UI, it’s like somehow they added more stuff but made it simpler. I think I’m going to see how it goes using it a general cms for a while.
Adding To-Do items to Things from anywhere, using Quicksilver
Dec 26th
I use the app Things as my to-do list to keep track of..well, my to-dos. It’s been pretty great so far, definitely a huge plus for my workflow. I’m also trying to get more into Quicksilver to try and speed up some of the mundane tasks you do on the computer everyday…a good amount of your daily mouse clicks can be reduced to keystrokes by QS (or apps like it).
So today I was thinking it would be cool it I can take a bulleted list of changes from a client and add them to Things without having to manually copy and past them from mail, open Things, and paste each item one by one.
What I found was that you can do this with two features of QS: Proxy Objects, and the Services Menu Module plugin. To install the Services Menu Module, simply open up QS preferences, go to plugins, and click the checkbox next to ‘Services Menu Module’. To enable Proxy Objects, go to Catalog -> Quicksilver and enable Proxy Objects. If you click on the ‘i’ (info) button at the bottom of the window with Proxy Objects selected, a drawer will open displaying al iist of Proxy Objects you can use. They were all already selected for me, so I left them that way, but the one I needed for this to work was ‘Current Selection’.
So after enabling Proxy Objects, I went over to the Triggers tab (still in QS preferences), and added a custom Hot Key trigger. Under ‘Select an Item’ I chose ‘Current Selection’. For the action I chose ‘Things/New To-do containing selection as title’ (which is one of two Services menu item added by Things). Then I clicked on the info button at the bottom of the pane to open up a drawer which contains settings related to the trigger. I assigned the trigger a hot key of ^T (control-T) and made sure that the trigger would be active in all applications.
Now, in back in my email which contains the bulleted list of items, i can select an item, hit ^T, and the Things quick entry window pops up with the selected text already pre-filled in. I can add more info if i need to, tab down and select an approproate project/area to add the todo to, tab over to save and we’re done.
It’s one of those small things where the time savings really start to add up the more you use it, which is my goal of getting more acquainted with QS. The one thing I would like to do is have it so I can select the whole bulleted list at once and add each line as a separate to-do, so that I can skip the part of selecting each line individually. If Things had an API I bet stuff like that would be pretty easy.
Timeline actions not executing on loaded swfs
Dec 22nd
I had a situation where I had a CS3 fla with a movieclip on stage, with stop() actions placed on a couple of frames on the timeline. The movieclip was associated with a class through the linkage properties. When i ran the movie, everything worked as expected...however, when loading that swf into another swf, the timeline actions were being completely ignored.
After searching around for a bit I came across MovieClip.addFrameScript, which lets you dynamically add frame scripts to the timeline. The usage is simple, I could just tell it which class methods to call on which frame:
-
addFrameScript(11, onEnterComplete, 31, onExitComplete);
This will call onEnterComplete() on frame 11, and onExitComplete() on frame 31.
CasaLib
Dec 9th
Nice to see the release of CasaLib - the CASA flash framework renamed and updated to AS 3.0. The rename is to focus more on the fact that it's more of a code library rather than a full-on framework....I wish I saw more of that. I'd much rather pick some code to pull into my workflow than adapt to someone else's. Anyway, the old AS 2 Casa had some pretty solid code in there, and that looks to be the case in the AS 3 version as well.
Webmin theme – StressFree
Dec 1st
I've been setting up multiple servers on EC2 lately, and spending some time using Webmin for each of the instances. I was getting confused as to which server I was currently working on so I figured I would change the theme to make it clear...unfortunately most of the default themes are similar or just plain ugly. I did stumble upon one really sweet one though, called StressFree (on the linked page it refers to it the theme as 'Tiger', but everywhere else - including webmin itself - seems to refer to it as StressFree) . It's super-slick, and it really makes dealing with the webmin interface a LOT nicer.