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 |
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) |
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 |
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 |
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 |