Windy City Rails Deadline Approaching Fast

Posted over 2 years back at Softies on Rails - Home

Many of us in the Midwest are looking forward to the Windy City Rails Conference on September 12, 2009.

The deadline is very rapidly approaching for the early bird rates ($99 conference only, or $199 for the conference plus a complete 3-hour tutorial session).

I’m doing the morning tutorial called REST 101: Best Practices for Rails Developers for those of you who are relatively new to Rails or trying to get a handle on what the whole REST thing is all about.

So register now for the conference and/or tutorial. Profits from the tutorials/conference go to charity. So we’ll learn a lot, have fun, and support a good cause all in one day.

Questions? Leave a comment below and I’ll try to respond quickly.

Thanks! See you there!

Screencast: Testing Flex Apps with Cucumber - Take 2

Posted over 2 years back at OnRails.org

I was not really happy with last week's screencast I did on testing Flex with Cucumber. Effectively doing screencast is not an easy endeavor and trying to it myself is making me appreciate all the other screencast I watch so much more. So last week I just wasn't comfortable while I recorded it, not sure why, but I thought I should try to capture it again. And the second time around I felt better, maybe I should alway take two takes (or even more :-). So here is the new one... <object width="400" height="300"><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5577569&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1"/><embed src="http://vimeo.com/moogaloop.swf?clip_id=5577569&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>

Screencast: Testing Flex Apps with Cucumber - Take 2 from daniel wanja.
To run this code you need to have all the gems installed. So config your Rails to run Cucumber with FunFx (in config/environments/test.rb):

<notextile>config.gem "rspec", :lib => false, :version => ">= 1.2.7"
config.gem "rspec-rails", :lib => false, :version => ">= 1.2.7"
config.gem "webrat", :lib => false, :version => ">= 0.4.4"
config.gem "cucumber", :lib => false
config.gem "funfx"
config.gem "safariwatir"</notextile>
Config Cucumber to have @flex available (in features/support/env.rb)
<notextile>require 'funfx'
require 'funfx/browser/safariwatir'

browser = Watir::Safari.new
browser.goto("http://localhost:3000")

Before do
  @flex = browser.flex_app('flashContent', 'flashContent')
end

at_exit do
  browser.close
end</notextile>
In the same file disable transactional fixtures
<notextile>Cucumber::Rails.use_transactional_fixtures</notextile>
Ensure that your Flex application is compiled with the funfx library and the automation library linked in.
<notextile><flex-config>
  <compiler>
  <include-libraries append="true">
    <library>../../lib/funfx-0.2.2.swc</library>
    <library>../../lib/automation.swc</library>
    <library>../../lib/automation_agent.swc</library>
    <library>../../lib/automation_dmv.swc</library>
    <library>../../lib/automation_agent_rb.swc</library>
  </include-libraries>
  </compiler>
</flex-config></notextile>

Looking for Conference Video Sponsorships

Posted over 2 years back at Rails Envy - Home

I love creating video. It’s definitely not as profitable as programming, but it feels good to know that the material I create helps educate and inform people.

In order to support my addiction, I’m currently looking for sponsorships for conference videos. You know, those 30-35 minutes videos I put up occasionally? My “Oscon Video”:http://www.railsenvy.com/2008/7/29/oscon-videos last year received over 40,000 views, “Lone Star Ruby Conf”:http://www.railsenvy.com/2008/9/16/lone-star-ruby-conference over 45,000 views, and “Rubyconf 2008?:http://www.railsenvy.com/2008/11/26/rubyconf-videos over 63,000 views.

If you’ve seen these videos you may have noticed that some of them have sponsors. Sponsoring these videos is a unique way to get the word out about a service/product because I actually get to interview people from your company / showcase video from your product directly to developers. You also might see them as a way to support the community by spreading knowledge (i.e. reporting). I’m currently looking for sponsors for the following events:

* “OSCON 2009?:http://en.oreilly.com/oscon2009 July 20-24 : San Jose, CA
* “Aloha On Rails”:http://www.alohaonrails.com/ October 4-6 : Waikiki, Hawaii
* “Rubyconf 2009?:http://www.rubyconf.org/ November 19-21 : San Francisco, Ca

If you or your company might be interested, please drop me a line at Gregg@RailsEnvy.com.

Is there another event I didn’t list that you’d like me to do a conference video at? Sponsor me and I’ll use the money to get to that conference and do it!

Thanks for your support, and now back to your regularly scheduled program

Looking for Conference Video Sponsorships

Posted over 2 years back at Rails Envy - Home

I love creating video. It’s definitely not as profitable as programming, but it feels good to know that the material I create helps educate and inform people.

In order to support my addiction, I’m currently looking for sponsorships for conference videos. You know, those 30-35 minutes videos I put up occasionally? My Oscon Video last year received over 40,000 views, Lone Star Ruby Conf over 45,000 views, and Rubyconf 2008 over 63,000 views.

If you’ve seen these videos you may have noticed that some of them have sponsors. Sponsoring these videos is a unique way to get the word out about a service/product because I actually get to interview people from your company / showcase video from your product directly to developers. You also might see them as a way to support the community by spreading knowledge (i.e. reporting). I’m currently looking for sponsors for the following events:

If you or your company might be interested, please drop me a line at Gregg@RailsEnvy.com.

Is there another event I didn’t list that you’d like me to do a conference video at? Sponsor me and I’ll use the money to get to that conference and do it!

Thanks for your support, and now back to your regularly scheduled program

Looking for Conference Video Sponsorships

Posted over 2 years back at Rails Envy - Home

I love creating video. It’s definitely not as profitable as programming, but it feels good to know that the material I create helps educate and inform people.

In order to support my addiction, I’m currently looking for sponsorships for conference videos. You know, those 30-35 minutes videos I put up occasionally? My “Oscon Video”:http://www.railsenvy.com/2008/7/29/oscon-videos last year received over 40,000 views, “Lone Star Ruby Conf”:http://www.railsenvy.com/2008/9/16/lone-star-ruby-conference over 45,000 views, and “Rubyconf 2008?:http://www.railsenvy.com/2008/11/26/rubyconf-videos over 63,000 views.

If you’ve seen these videos you may have noticed that some of them have sponsors. Sponsoring these videos is a unique way to get the word out about a service/product because I actually get to interview people from your company / showcase video from your product directly to developers. You also might see them as a way to support the community by spreading knowledge (i.e. reporting). I’m currently looking for sponsors for the following events:

* “OSCON 2009?:http://en.oreilly.com/oscon2009 July 20-24 : San Jose, CA
* “Aloha On Rails”:http://www.alohaonrails.com/ October 4-6 : Waikiki, Hawaii
* “Rubyconf 2009?:http://www.rubyconf.org/ November 19-21 : San Francisco, Ca

If you or your company might be interested, please drop me a line at Gregg@RailsEnvy.com.

Is there another event I didn’t list that you’d like me to do a conference video at? Sponsor me and I’ll use the money to get to that conference and do it!

Thanks for your support, and now back to your regularly scheduled program

Looking for Conference Video Sponsorships

Posted over 2 years back at Rails Envy - Home

I love creating video. It’s definitely not as profitable as programming, but it feels good to know that the material I create helps educate and inform people.

In order to support my addiction, I’m currently looking for sponsorships for conference videos. You know, those 30-35 minutes videos I put up occasionally? My Oscon Video last year received over 40,000 views, Lone Star Ruby Conf over 45,000 views, and Rubyconf 2008 over 63,000 views.

If you’ve seen these videos you may have noticed that some of them have sponsors. Sponsoring these videos is a unique way to get the word out about a service/product because I actually get to interview people from your company / showcase video from your product directly to developers. You also might see them as a way to support the community by spreading knowledge (i.e. reporting). I’m currently looking for sponsors for the following events:


If you or your company are interested, please drop me a line at Gregg@RailsEnvy.com.

Also, is there another event you’d like me to do a conference video at? Sponsor me and I’ll use the money to get to that conference and do it!

Thanks for your support, and now back to your regularly scheduled program

Extending Tokyo Cabinet DB with Lua

Posted over 2 years back at igvita.com

Tokyo Cabinet is a trove of hidden of gems, the more you learn about it, the more you will appreciate the design and technical decisions behind it. By database standards it is a young project (started in 2007), but since it is a successor to the QDBM project developed by Hirabayashi-san (2000-2007), we could make the argument that it has been, in fact, nine years in the making.

Best of all, the rewrite allowed the project to shed its past baggage and build on a more modern stack with a better perspective of the required features for a modern deployment (Drizzle is another recent example from the MySQL camp). Case in point, Tokyo Tyrant supports Lua scripting on the server, allowing us to add arbitrary user defined functions (UDF's in MySQL parlance) and to extend the database itself!

Lowering the Barrier With Lua Scripting

If you have played with Lego Mindstorms, or ever tried to script your phone or a gaming environment (WoW), chances are you've worked with Lua. Due to its extremely small footprint (~212kb for source, documentation, and examples), fast interpreter, portability and easy to understand syntax it has become the de-facto embedded scripting language for many applications. Explore the available tutorials, or pick up "Programming Lua" by the creator of the language for a more in depth look, it's a fun language!

So why is Lua scripting such an exciting feature for Tokyo Tyrant? Because it lowers the barrier for programming and extending the database by an order of magnitude! If you have ever worked with MySQL UDF functions, you'll definitely appreciate the ease and the speed of development. No need for mucking with internal API's, nothing to compile or link against, and execution is done within a stable and sandboxed environment.

Extending Tokyo Tyrant with Lua

Anytime you bootup a Tokyo Tyrant server you can tell it to load arbitrary Lua code alongside which will then be evaluated at runtime if the client requests it. From there, the developer of the extension has full access to the incoming request and the underlying Tokyo Cabinet database, allowing us to inject arbitrary functionality. To get a flavor for the workflow, take a look at some of the examples in the following slides:

<object style="margin:0px" width="600" height="490"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=tokyo-recipes-090711100331-phpapp02&amp;rel=0&amp;stripped_title=lean-mean-tokyo-cabinet-recipes-with-lua"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=tokyo-recipes-090711100331-phpapp02&amp;rel=0&amp;stripped_title=lean-mean-tokyo-cabinet-recipes-with-lua" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="490"></embed></object>

Because the Lua scripting interface is relatively new, the number of available extensions and documentation is not very large. For that reason, I've started the tokyo-recipes repo on GitHub, in which I've aggregated some of the available extensions, and added extra documentation and examples to help grease the wheels: TTL functionality (ala memcached), working with Sets (ala Redis), session timestamping and a wordcount map-reduce example just to name a few. Give it a try, it is an extremely powerful feature!

Build Guild Philly

Posted over 2 years back at GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS - Home

I’ve just started a Philadelphia local chapter of The Build Guild, which is a monthly event (Occurs the 3rd Tuesday of every month in Philly) where folks in the web industry—designers, coders, project managers, hobbyists, etc.—can get together to talk web, debate industry topics, share ideas, make professional connections, land gigs, and discuss the real reasons why mustaches need to make a comeback.

The first Philly get together will be on July 21st at 6pm at the Nodding Head Brewery. Visit the Philly Build Guild website for more details and to RSVP.

If you’re in the Philadelphia area, I hope to see you there (please RSVP). If you’re not, please spread the word to any web geeks you might know in the Philly area.

Build Guild Philly

Posted over 2 years back at GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS - Home

I’ve just started a Philadelphia local chapter of The Build Guild, which is a monthly event (Occurs the 3rd Tuesday of every month in Philly) where folks in the web industry—designers, coders, project managers, hobbyists, etc.—can get together to talk web, debate industry topics, share ideas, make professional connections, land gigs, and discuss the real reasons why mustaches need to make a comeback.

The first Philly get together will be on July 21st at 6pm at the Nodding Head Brewery. Visit the Philly Build Guild website for more details and to RSVP.

If you’re in the Philadelphia area, I hope to see you there (please RSVP). If you’re not, please spread the word to any web geeks you might know in the Philly area.

Build Guild Philly

Posted over 2 years back at GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS - Home

I’ve just started a Philadelphia local chapter of The Build Guild, which is a monthly event (Occurs the 3rd Tuesday of every month in Philly) where folks in the web industry—designers, coders, project managers, hobbyists, etc.—can get together to talk web, debate industry topics, share ideas, make professional connections, land gigs, and discuss the real reasons why mustaches need to make a comeback.

The first Philly get together will be on July 21st at 6pm at the Nodding Head Brewery. Visit the Philly Build Guild website for more details and to RSVP.

If you’re in the Philadelphia area, I hope to see you there (please RSVP). If you’re not, please spread the word to any web geeks you might know in the Philly area.

Gibbler: Git-like Hashes and History for Ruby Objects

Posted over 2 years back at Ruby Inside

gibblerInspired by Git (the version control system), Delano Mandelbaum has come up with a library called Gibbler, which produces hashes and history for Ruby objects.

Calling the gibbler method on an object will produce a 40 byte git-like SHA1 hash (or you can use gibbler.short to get just the first 8 bytes).

my_object.gibbler.short # => 4c558a56

Gibbler can also track changes to an object. Every time you call gibbler_commit, it will create a clone of the current object and store it in an instance variable. And just like with git, you can view or revert to any version in the history. By default Gibbler supports history for Hashes, Arrays and Strings.

Get Gibbler and read the documentation on Github. Delano makes the disclaimer that his code is still very new and not particularly efficient (due to keeping everything in memory), but he invites others to play with it and submit patches.

Support from: Brightbox; - Europe's leading provider of Ruby on Rails hosting. Now with Phusion Passenger support, each Brightbox server comes with access to a managed MySQL cluster and redundant SAN storage. Brightbox also provides managed services for large scale applications and dedicated clusters.

RubyInside roundup

Posted over 2 years back at RicRoberts :

I’ve recently started blogging regularly over at RubyInside.com (the Ruby news, links, code and tips blog), which explains why I’ve been a little bit quiet of late. To try to fill the silence, I thought I’d post a list of links to my recent posts:

Now that I’ve got used to the style and content required for RubyInside, I’ll try to step-up activity on this blog again.

Double Shot #494

Posted over 2 years back at A Fresh Cup


Lots of interesting new stuff showed up over the weekend:

  • i18n – The i18n gem has reached version 0.2.0 with lambda support among other goodies.
  • can_touch_this – A permissions system extracted from rboard.
  • sort_by – Active Record/ Action View extension to produce user-sorted, paginated tables in your views.
  • Posterous now supports TrailerAddict embeds and Github Gist code drops. – With Gist support, Posterous is getting to be an interesting alternative for a quick & dirty coding blog.
  • Installing FreeImage and ImageScience on Debian Linux – Came in handy, though note that the current version of FreeImage has changed.
  • Ruby 1.9.1 & Friends – Ryan Bigg has revised his big blog entry on how to get rails up and running on 1.9.1. It’s getting closer to prime time.
  • padlock_authorization – Simple object-based role authorization plugin. If I wasn’t rolling my own authorization I’d probably try this one next.
  • Glow – The BBC gets into the JavaScript library business. Big selling points appear to be downlevel browser and multiple version support.
  • Mercurial: The Definitive Guide – Bookmarking in case I’m ever forced to use Mercurial.
  • Phoenix – Real-time editing for web pages, including HTML, CSS, and JavaScript, within the confines of Firefox.
  • Announcing Appsta – Gem that extends the templating facility in Rails 2.3 with knowledge of GitHub and Heroku, among other things.

Interview:Dion Hinchcliffe on Web 2.0 and Web Oriented Architecture

Posted over 2 years back at InfoQ Personalized Feed for unregistered user - Register to upgrade!

Dion Hinchcliffe is an advocate of Web 2.0 and the Web Oriented Architecture. He explains how a mindset shift helped some companies be very successful using the Web 2.0 model while others have failed. He also considers that eventually most companies will migrate to WOA because we are living in an increasingly networked world. By Dion Hinchcliffe

Episode 170: OpenID with Authlogic

Posted over 2 years back at Railscasts

Learn how to apply OpenID to an existing Authlogic setup as I show in this episode. This builds upon the app from episode 160.