30 July 2010

The Ruby Reflector

Topic

API

  Source Favicon
By Giles Bowkett of Giles Bowkett 2 days ago.
Email

…YouTube rate-limits API calls; to get around this, the comment downloader would sleep for a brief period between each API call, and continue downloading comments until no more were available. This often resulted in large corpuses of thousands of comments. I used Python for the comment 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 …

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

…must be able to automate some, if not all of the process. Fortunately, FreeAgent has an API so that solved part of the problem; iTunes Connect has no such API unfortunately.

Automation step one: fetching the reports

I decided to split the problem into two parts, the first being fetching the reports from iTunes Connect. Using the Mechanize library, I was able to write a simple Ruby script that logged into iTunes Connect and pulled down the last 10 finance reports, …

lukeredpath.co.uk Read
  Source Favicon
Email

OAuth 1 has. OAuth 2 learnt from this and PayPal's proprietary API's have always been targeted at these kinds of developers. While conceptually it is simpler than the old API's, I think many developers would find it easier to deal with the old API in practice due to the complexities of XML .

Another important question is if PayPal are actually committing to this. I believe PayPal has good intentions with this, but other large corporations were notorious …

stakeventures.com Read
  Source Favicon
By Charles Oliver Nutter of Headius 10 days ago.
Email

…library now, having something that's only 5-10x slower to call - but still runs fast and matches API - may be just fine. Think about the coarse-grained operations you feed to a MySQL or SQLite and you get the picture.

So ultimately, I think C extensions will be a good thing for JRuby, even if they only serve as a stopgap measure to help people migrate small applications over to native Java equivalents. Why should the end goal be native Java equivalents, you ask?

The Peril …

blog.headius.com Read
  Source Favicon
By Patrick of MicroISV on a Shoestring 12 days ago.
Email

…word. You can either have someone copy/paste this into your website or do a bit of work with their API and automate the whole process.

You can use software to increase the quality of outsourced content. For example, putting a picture on it automatically makes it better. You can automate that process so your editors can quickly do it for all pages. You can remix common page elements — calls to action, etc — which are polished to a mirror shine with the outsourced content. You …

kalzumeus.com Read
  Source Favicon
By Jake Scruggs of Jake Scruggs 13 days ago.
Email

rubymidwest Clever solution. Mark strikes me a smart man fighting an insane API. And winning.

The talks are over for the day, back to the hotel, and then to http://omgwtfbbq.heroku.com/ Great name. # rubymidwest It is a great name. From Urban Dictonary :

OMGWTFBBQ: A meaningless acronym which most often stands for "Oh My God What The Fuck Barbeque." It most likely originated on Something Awful ( somethingawful.com). It can be interpreted simply as …

jakescruggs.blogspot.com Read
  Source Favicon
Email

ActiveSupport 2 and 3 along with Ruby 1.8.7 and 1.9.1. Oh, and it supports expires with the same API as the memcache store.

That pretty much covers the basics, feel free to go kick the tires or hang around here a bit to learn how I made Bin work with AS2 and AS3.

Supporting AS2/3

In both ActiveSupport 2 and 3, you inhert from ActiveSupport::Cache::Store to create a new store. The difference between the version is quite subtle though. In AS3, you override the methods read, …

railstips.org Read
  Source Favicon
Email

…databases quite easily from the ruby driver. Using this along with scout's plugin API , I wrote a Mongo Stats plugin that reports a few things about your database:

The number of objects

The size of your data

The storage size of your data

The number of indexes

The size of your indexes

Nothing fancy, but a good start and since keeping your indexes in RAM is important, having the index size reported continually will be quite handy in the future.

Mongo Server Status

railstips.org Read
  Source Favicon
On Ruby News 19 days ago.
Email

Ruby 1.9.2 RC2 has just been released. This is the second release candidate of Ruby 1.9.2.

Psych library has been fixed since the previous candidate. And some minor bugs were fixed.

See the NEWS and ChangeLog files for more details.

About Ruby 1.9.2

Ruby 1.9.2 will be mostly compatible with 1.9.1, except for the following changes:

many new methods

new socket API ( IPv6 support)

new encodings

a Random class that supports various random number generators

ruby-lang.org Read
  Source Favicon
By Joey of Global Nerdy 22 days ago.
Email

jQuery 1.3 and 1.4 Reference Guides and maintainer of the jQuery API site)

One of the first things web developers learn to do with jQuery is to show and hide elements on a page and then add some flair by sliding those elements up and down or fading them in and out. Too often, though, we stop there, missing out on the incredible range and flexibility of jQuery's core effects. In this talk, we'll investigate both standard and custom animations and how they can be used to create …

globalnerdy.com Read