Copenhagen.rb: September meetup, minor review and or notes

Last night, a Ruby club meet, which was interesting, but the feeling I got was “you hadda have been at RailsConf”. And I wasn’t, so bummer.

Informal atmosphere allows one to play with one’s laptop while others are reminiscing:

ActiveWarehouse a data warehousing application. Could be very interesting. Funny: me and Isak had said “Let’s analyze our SVN logs, that a nice chunky dataset.” He showed his first steps, grabbing the XML output Subversion can report about its logs. They were rich enough to map to… a data warehouse.

And, as it ironically turns out, the seminal example for ActiveWarehouse is activewarehouse-example-with-rails-svn-logs. Going to play with this, when I get some time.

When I was not listening, I was struggling to get offline browser tests running with Crosscheck, which packages up IE6 and Firefox (1.5 and the older 1.0):

It’s just a JAR, so you run it on a folder with tests:

java -jar ~/Desktop/crosscheck-0.2.1.tar/crosscheck.jar \\
-hosts=moz-1.8:ie-6 \\
tests/eosweb/js/

I want to hook this into our Bitten installation.

Super-secret note, only for you: I also made a note about the Oresund Web Hacking club, which only exists on Facebook (as a local group), so befriend me there, or search for the above name. Something more public will get created.

Go snippet away, Rubyboy

Just started my morning with fixing a personal annoyance with the current Rails distribution I am using with Ruby 1.8.5: warning messages about deprecated syntax. All I did was heed the advice in the warnings and edit all the when and else control structures that were using colons to using semi-colons. After that, my Rails commands run silently.

High on simple fixes, I went to RubyForge, and beheld the fancy-looking web site, and went to look at Code Snippets. Whoa, lots of goodies there.
[tags]rubyonrails,ruby[/tags]

Copenhagen.rb meeting notes

Update: photos by Pelle.

Syndication with AtomPub, APP and GData… and Rails

Olle Jonsson “explores” some things you would want to do with Atom… and how Rails enables you to do it.

Update: My somewhat confused slides now available (PDF).

DHH on ActiveResource

…and then I got lucky, and David was able to give us “how to do all this painlessly in Rails.”

David HH presented the new ActiveResource stuff. Edge, plugins. “Undecided”, still, about if it’ll be in the standard distribution.

Suffix the URL with .xml (or any format your app responds_to!)

GET /posts/1.xml
POST /posts/1.xml {POST payload}

Clarifiction: The last line there, the POST payload, is not a Ruby block, it is what you send as the body of the HTTP request.

We saw the MIME-type format list that Rails’ ActiveResource can output. I missed the JSON format, mentioned it, and David showed how it would be simple to add JSON support to ActiveResource.

Let us cook that up! And David showed:

  • Register a new JSON mime-type
  • respond_to {} the :json, and spit that out
  • make .to_json()

There must be a plugin for this. And there is, we were informed.

Don’t Trust Yourself with Your Users’ Data

Pelle B. tells it like it is, and provides a plugin called EzCrypto. Short, simple presentation, very good. And also, notes on a couple of new developments from the productive programmer: secret URLs as a plugin.

JRuby at a glance

Teaser-like presentation (‘Part I’) by Morten Ch. from Aarhus.

[tags]ruby,rubyonrails,copenhagenrb,event[/tags]