Archive for Plugins

Generators in RubyAMF

So, after a little more discussion about generators we figured that it’d be better for folks if they were in the plugin. I’ve removed the separate google code project (you only get 10 per login yo!)

I backed off on a ClassMapping generator I was going to write to re-write the config file with ClassMappings for each ActiveRecord. That’s now going to be a helper script that will write ClassMappings to the console for you to copy and paste and modify as needed. Non destructive, simple, and helpful.

One other generator will be a “Standard RubyAMF Scaffold” generator, which will be something like `script/generate scaffold <model name>`, but will assume that you’re only using RubyAMF and configure the generated controller accordingly.

One more generator will be the “RESTful Scaffold + RubyAMF” generator. That’s basically copied straight from the Rails 2.0 scaffold generator, but adds RubyAMF lines to the controller.

Generator scripts won’t intrude into your RubyAMF app, but they should help get your RubyAMF project up and running a little faster.

RubyAMF Generators Project

We’ve been talking back and forth about some generators for RubyAMF. We all feel they are a good idea, but we didn’t want to start putting these as part of the RubyAMF core. So, Tony has setup a code-generators for RubyAMF project. I’ll voice any new or updated generators here.

Mac OS X Flash Player Switcher – Plugout Update

I just put up another version of Plugout which has one minor change for Leopard. When starting a browser from Plugout, you would get an NSQuickDrawView deprecation warning. NSQuickDrawView is part of Cocoa and has been deprecated in favor of Quartz. So, no huge changes – just some output redirects when starting the browser. You can see the output if any in ~/plugout_plugins/output

Plugout – Mac OS X Plugin Switcher

I released a Mac OS X plugin switcher called Plugout and took it down later. We wanted to put it on a more collaborative effort site. So It will be over here. Instead of being under the RubyAMF name. Larry’s got a sweet Mac widget coming for this – hang in there.

Plugout – Mac OS X Plugin Switcher

It recently came to Larry and mine’s attention that there isn’t an easy way to switch plugins for OS X. Mike Chambers had put one out early last year, but is no longer valid as it was for PPC macs. The problem now with Intel macs is that if you install any flash player lower than 9, it is PPC so it won’t run if you open up the browser. Your browser will tell you that you don’t have have Flash installed.

This is easily fixed by opening “Get Info” on your browser and checking run in rosetta. But that is a little tedious to be switching back and forth.

So here’s a much more graceful commandline tool to automate this for you – Plugout. It’s a commandline tool that easliy let’s you switch to the target plugin, and restart the browser in rosetta (if necessary). It will work with any plugin. It comes with the Flash players 7-9 and Silverlight 1.0. But is easily extendable to add Quicktime, or RealPlayer, or whatever other plugin you want.

Plugout will be available as a Ruby gem shortly, and in the future I’d like to add support for remote updating of the plugins. But I’m not sure what kind of legal trouble this could cause. I’m sure I’ll be getting a letter from Adobe or Microsoft about even distributing the plugins up front. I’ll wait for a cease and desist. :)

We’re also working on GUI’s for plugout. Flash IDE and Flex Builder. And hopefully a standalone app of some sort that can be used in QA teams. For now commandline usage is simple enough for us developers. Gotta give some love to unix man.

Thanks to Larry Gordon for helping figuring out some ins and outs of how this should all work. Thanks to Larry Gordon and Alastair Green for the name plugout.

To install the tool run “sudo ./install.sh” from the commandline (inside of the plugout directory). The installer copies the plugout executable to /usr/bin and copies the plugout_plugins directory to your home directory. Refer to the homepage or ‘plugout -h’ for a how to.

Plugout Homepage

Screencast

Download it

Also a heads up – I haven’t had a chance to test this on a PPC Mac, so if anyone out there has a PPC mac and can test this all out that would be great!