30 July 2010

The Ruby Reflector

Topic

Ruby

  Source Favicon
By scott of Alloy Code - Home 9 hours ago.
Email

I recently had to run a Rake task on a Rails app which generated a CSV file from a table containing 94,000 odd rows (94,142 to be pedantically specific) and while running it, something I normally do overnight, I noticed my laptopfreeze solid. After minor cursing, when the machine became responsive again, I checked Activity Monitor to find this:

Yep. That's right -- a single Ruby process using 952 megs of RAM. Oy. And, just to be safe, I confirmed that the Ruby process chewing …

alloycode.com Read
  Source Favicon
By Peter Cooper of Ruby Inside 1 day ago.
Email

PDF of the Rails 2.3 version for free with it). As a gesture of goodwill to Ruby Inside's readers, he's made a coupon code that works till the end of August - it's rubyinside01 and gets you 20% off (so a total of $ 31.20 in the end).

2 — Creative Commons licensing of the existing online text. Like all of us, Michael needs to make some money, but a side benefit is that he's making the existing Rails 2.3 focused text Creative Commons licensed! This will …

rubyinside.com Read
  Source Favicon
On Rails Tutorial News 1 day ago.
Email

Rails by Example , is due out in the fall as part of the Professional Ruby Series (the same series as The Rails 3 Way by Obie Fernandez). It is currently available for pre-order at Amazon .

Finally, I am very excited to announce that, after the Rails 3 ecosystem and book text have fully stabilized, the HTML source of the online version will be available under a Creative Commons license to allow for translation into other languages. Readers interested …

railstutorial.org Read
  Source Favicon
Email

…Mirah is a Java compiler that reads Ruby-like syntax: looks like Ruby, but it's still Java. That seems promising, but I don't think you can use, say, Array.map, since it's not part of Java's core library.

Scala is a functional/ OO hybrid language that brings closures and higher-order programming to Java, with a helping of type inference. It seems promising, but it also seems like a lot of features mixed in together; compared to Io or …

invisibleblocks.wordpress.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 2 days ago.
Email

…downloader, because of the easy availability of Google API client libraries, and switched to Ruby to process the corpus. (If you know anything about AI, you know that's crazy, but hey, I did it, and it worked.)

You might imagine that Bayesian networks would be the next place to take this large corpus. You would be imagining wrong. We tried that and it was an epic timesink. Instead, I first ran the comments against a blacklist filled with slurs, zomgs, and linkparser , my fork of …

gilesbowkett.blogspot.com Read
  Source Favicon
On Luke Redpath 2 days ago.
Email

…use FreeAgent or not. You will need to install the ‘ mechanize' Ruby gem to use it.

Download fetch_finance_reports.rb from Github

Step two: getting the data into FreeAgent

Using another Ruby script, I can process one or more finance reports into a single draft invoice. I could have the script mark the invoices as sent but I prefer to manually double-check them and mark them as sent manually. The script used to deal with currency conversion automatically but it no longer …

lukeredpath.co.uk Read
  Source Favicon
On Testing 1,2,3... 2 days ago.
Email

A while back we decided to use a Kerberos authentication system at work. This is not only a superior approach to directly storing passwords in your users table (for various reasons I won't go into here), but it's also one way to implement single signon within your domain.

Unfortunately, the state of Ruby libraries for Kerberos was in a sad state. We found two Kerberos libraries for Ruby, but one is apparently no longer maintained, and the other (krb5-auth) needed some work. …

djberg96.livejournal.com Read
  Source Favicon
By scott of Alloy Code - Home 2 days ago.
Email

…server tuning magnificently easy (imagine setting your Passenger configuration options from within Ruby code)

They didn't bat an eye at multiple reboots even late on a Saturday night

When we had major problems, they replaced our server without being asked; all I had to do was point out that the issue had happened twice and *whammo* new server

And then, to add icing to a delicious cake, I just got this email:

Hi Scott -

I just wanted to check in and see if you were able to get …

alloycode.com Read
  Source Favicon
On Scout ~ The Blog 2 days ago.
Email

John Nunemaker of Ordered List knows his way around MongoDB , the high-performance open-source, document-orientated database. We were obviously excited to see that John created a MongoDB Monitoring plugin and like all Scout plugins, installing it is a button click (and possibly a Ruby gem install) away.

Mongo Monitoring Walkthru

John's MongoDB Monitoring plugin gives both an overview of key Mongo performance metrics and a detailed display when you need to dig deeper.

scoutapp.com Read
  Source Favicon
By Radar of The Life Of A Radar 3 days ago.
Email

That's right. Me. The Ruby programmer who works by day and writes by night and helps you out in between (and sometimes in dreams).

You come to me with your computer troubles and most of the time you leave without them. I usually am quite happy to help you, but I must confess my motivations are entirely selfish. I help you to help me.

If you've got a problem and you don't know how to fix it then you approach me (or in the case of my day job, one of the tech team). This is because …

frozenplague.net Read