Archive for October, 2007

Sparrow - speedy queue that speaks memcached

Saturday, October 27th, 2007

I’ve recently been researching alternate queues to ActiveMq and it struck me how few there were. Others have commented on the different options; suffice to say I was disappointed.
My experience with queues in general suggests that most of the time you don’t need anything complicated at all and the biggest concern is performance and […]

Queue, Ruby | 9 comments

Active Resource and Serialised columns

Friday, October 19th, 2007

Currently using serialised columns with Active Resource is broken. To serialize xml, Active Resource uses Active Support’s to_xml method which seems to have a few problems.
>> {:ruby_symbol => :sym}.to_xml
=> <?xml version="1.0" encoding="UTF-8"?><hash><ruby-symbol:sym/></hash>
What is ruby-symbol:sym I ask you! Rails obviously chokes on this xml and your post/put fails. However, serializing Active Record objects works fine:
>> User.find(:first).to_xml
=> […]

Active Resource (REST) | No comments

Ruby SQS Plugin V 0.2

Wednesday, October 3rd, 2007

I’ve updated Mq.
There was a major bug, where messages were picked up more than once which is now sorted.
Also, you can automatically create more pollers per queue, like so:

Mq.run_all(5) # which would run 5 pollers per queue forked with Daemonize

Get it here

Ruby, SQS, Rails | No comments

Ruby/Rails SQS Plugin

Tuesday, October 2nd, 2007

SQS, in case you’ve been living under a digital rock, is a ultra useful simple queue service from Amazon.
As far as I know, Ruby/Rails has only two major libs for interfacing with SQS. ActiveMessaging and SQS.
I wasn’t satisfied with either since using ActiveMessaging with SQS seems rather overkill (chain saw to a bunny rabbit) […]

Ruby, SQS, AWS, Rails | 1 comment

Rails CSS Selector Helper

Monday, October 1st, 2007

If you’re looking for an easy way to customize css depending on the browser, without relying on JavaScript, this should be some help:
ApplicationHelper

def browser_name
@browser_name ||= begin

ua = request.env[’HTTP_USER_AGENT’].downcase

if ua.index(’msie’) && !ua.index(’opera’) && !ua.index(’webtv’)
[…]

Uncategorized | 8 comments

You are currently browsing the Eribium weblog archives for October, 2007.

Pages

Meta