Seattlerb Rubyforge Project

Eric Hodel | Thu, 30 Mar 2006 19:01:45 GMT

I created the Seattle.rb Projects Rubyforge project for the Seattle.rb members to post small projects that otherwise wouldn’t get posted anywhere because the effort is too great.

Currently it is just hosting IMAPCleanse but I’ll be adding a few of my miscellaneous projects like httpdump.rb to it Real Soon Now.

Posted in ,  | no comments

Pat Eyler on ZenTest, ZenTest-3.1.0

Eric Hodel | Wed, 29 Mar 2006 23:12:00 GMT

Pat Eyler has a new article in Linux Journal that covers the new additions to ZenTest.

We’ve just fixed a couple of his issues with ZenTest. ZenTest now ignores Emacs-generated autosave files and it has better error messages when you have missing files.

Go get ZenTest-3.1.0:

$ sudo gem install ZenTest

Posted in , ,  | 1 comment

IMAPCleanse

Eric Hodel | Wed, 29 Mar 2006 06:38:40 GMT

I am a lazy person. I don’t like to delete my mailing list mail. I don’t need any of them, there’s a copy of all the mailing list mails somewhere on the internet. But since I’m lazy I never clean out my mailing list mail boxes.

So I used Net::IMAP and wrote IMAPCleanse to automatically clean out my mailing list mailboxes of messages older than a threshold that are read and not flagged. (So if I flag a message it’ll stay around forever.)

You can install IMAPCleanse as a gem:

$ sudo gem install IMAPCleanse

And read all about how to use it in the RDoc.

The only problem I had was that Net::IMAP didn’t support PLAIN authentication over SSL, so I added that. (I need to whip up some patches for Net::IMAP and fold it back in.)

Posted in , ,  | no comments

socket_sendfile and socket_accept_filter

Eric Hodel | Fri, 24 Mar 2006 01:19:00 GMT

These are two packages that I use to speed up WEBrick image serving now freshly released. Unfortunately I haven’t tested them on any platform other than FreeBSD so please file bugs if they don’t work for you.

$ sudo gem install socket_sendfile
$ sudo gem install socket_accept_filter

socket_sendfile adds sendfile(2) to Socket and forms the cornerstone of our WEBrick image serving.

socket_accept_filter makes it easy to set the SO_ACCEPTFILTER socket option so you can enable the accf_http(9) and accf_data(9) accept filters. Accept filters delay the return from accept(2) until enough data has arrived on the socket for processing.

Shortly I’ll have enough software released to do a full write-up of high-volume image serving with WEBrick.

Posted in , ,  | 2 comments

Mogilefs for Ruby

Eric Hodel | Wed, 22 Mar 2006 21:44:00 GMT

We are using MogileFS to store all of our images and serving them up with WEBrick. To do this, we needed a MogileFS library, and I just released it.

You can install it as a gem:

$ sudo gem install mogilefs-client

Or go download mogilefs from Rubyforge.

I’ve got the mogilefs RDoc up on dev.robotcoop.com which will give you an overview of how to use it.

WARNING! I’ve only been able to test NFS mode in production, so HTTP mode is not proven to work. If you find any bugs in it, please report them at the Rubyforge tracker.

Posted in , ,  | 4 comments

Older posts: 1 ... 3 4 5