Baddest. Conference. Badges. Evar.
Read more...Live-Coding Lessons Learned
I had a spectacular time live-coding on a visualizer for the third Desert Bloom PHX party tonight. I learned a few lessons while doing it, though, which I thought I’d share while they’re still fresh in my mind. I’m hoping these will help anyone who needs to supply visuals for parties.
If you’re randomly generating settings, some of them are gonna look like crap. Code up a way to quickly serialize presets to disk that you can switch between when you have an audience. (You probably don’t need a file save dialog, just a save button. Think “that’s pretty, save that” and “load up the next preset, whatever it is”.)
Turn key settings of your visualizer into a Web service or other network service. I made the onscreen text and “next preset” functions (among others) accessible over the network, then used a script on my smartphone as a remote control, leaving me free to roam the room. This also enables something as simple as control from a second terminal window on the same machine.
Read more...Titled: “title”
On Wed, Aug 25, 2010, Jay McGavren wrote:
Hey, I notice the title of my talk appears to be “Programmer Analyst”. (Which is funny, since that also happens to be the title of my job. I’m guessing I made a mistake on the talk submission form. :)
Could you change it to something more exciting, like “Ruby on Android with Ruboto”? :)
-Jay
Read more...Ha, funny. It’s been fixed. You know, the field “title” was a bit vague. You weren’t the only one to do that. Somehow I didn’t catch it was a job title. I was a bit curious how it related to the talk! ;)
Cheers,
Marty
Networked Drawing Canvas in DRb
In honor of Why The Lucky Stiff’s contributions to the fun side of the Ruby community, whyday.org includes a challenge to “see how far you can push some weird corner of Ruby”. I can think of few corners of Ruby that are weirder (or more fun) than DRb.
Distributed RuBy (DRb) is, in my opinion, the most underrated portion of the Ruby standard library. It lets you take a Ruby class and network-enable it with almost no additional code (and without modifying the original class). Back in 2006 when I was considering whether to learn Ruby or not, I took one look at DRb and realized that a language that made such things possible was probably a language worth knowing.
I made this screencast to show off how powerful DRb is, and how easy it is to get started. We create a simple drawing canvas in Tk, then use DRb to network-enable it and draw to it from a 4-line client. We finish with a Ruby client that runs on Android via the Ruboto environment. And along the way, we cover a little basic security to help keep you safe (this is a network app, after all).
http://www.youtube.com/watch?v=Ca6CBm4bSU8
Here’s the complete code for the server:
Here’s our (tiny) sample client:
And here’s the complete touchscreen client for Ruboto:
Enjoy, and of course feel free to post questions and comments below. And if you’re looking for your own way to celebrate WhyDay, why not pick your favorite library and network-enable it?
Read more...Making You Happy
“Do Ophelia!”
“Please do Tigerlily!”
…came the encore requests from rapt audience members at the Natalie Merchant concert. And with the kind but commanding tone of someone who knows how to work a crowd, Natalie responded:
“To those of you asking for particular songs, don’t worry, we have something planned. But that makes us feel bad, because we might not know how to do the songs you ask for.” [I assume she meant the ensemble of 8-odd strings, woodwinds, etc. onstage, because I doubt she herself had forgotten the lyrics to “Ophelia”.]
“But this is our promise to you - we’ll make you happy.”
I think that’s a good model for every request, whether you’re asking someone to paint you a painting, code you an application, or sing you a song: Tell them the bare minimum to make you happy. Let them figure out the details, in a way that utilizes their strengths (which they know better than you). Instead of getting a clumsy interpretation of what you were imagining, you may find you’ve commissioned a work of art.
Read more...