return to OCLUG Web Site
A Django site.
September 29, 2010

Rob Echlin
Talk Software
» Fun OGRE meeting!

There was a lot of activity at the OGRE meeting tonight, including knowledgeable questions and answers, and a great video setup in a meeting room at Jaded Pixel Technologies (Shopify).

John Duff demonstrated the Devise authentication framework with Facebook.

Jonathan Sutherland was persuaded to show off his Rails-based real estate agents’ web site.

Dwayne recorded much more detail than I have in a post to the OGRE mail list, including code links.

Tagged: groups, languages, Ottawa, Ruby

March 10, 2009

Rick Leir
» Agile web development with Rails

Agile web development with Rails : a Pragmatic guide / Dave Thomas, Pragmatic Bookshelf, 2006

This book is not ‘recent’ but it is the best Rails book in the library. It is very readable and practical, with many examples. 500 pages.

Get it here at OPL

January 11, 2007

Dave O'Neill
» Hacks for wmii

I recently switched to ruby-wmii as my window manager. Among its other features, it's a tagging window manager. This means that instead of virtual desktops, you have views. Each view is essentially a single tag, and the windows shown in that view are the ones with that particular tag.

wmii provides all sorts of bindings for tagging and retagging windows, and also provides a binding to start a window on a new tag (normally, the window would start tagged with your current view). This usually works great, but what if I want to run an app and have it show up on another tag, from a shell prompt? Not available in the base setup, but hey, that's why it's written in Ruby.

So, after a crash course in Ruby, here's what I came up with. First, add this:

# Hack to tag "next" window from shell or elsewhere
@nexttag = ""
register("NextWindowTags", nil, nil) {|tag,| @nexttag = tag }
on_createclient do |cid|
    if @nexttag != ""
        write("/client/#{cid}/tags", @nexttag )
        @nexttag = ""

to your wmiirc-config.rb. This lets you send an external event that saves tags to be used for the next window created. Then, in your .bash_profile or elsewhere, add this:

function on () {
    echo "NextWindowTags $TAG" | wmiir write /event


Now, you can run whatever you want, on whatever tag (or tags) you want, from the shell. For example:

on coding xterm

would run a new xterm and tag it for display in the 'coding' view.

on mail+misc+irc xclock

would start xclock, and tag it for display in all of 'mail', 'misc', and 'irc'.