Back to Top
➜ Bruce Williams: Rails IE Conditional Tag Plugin

codefluency:

There are a number of ways to support defining different CSS styles for specific versions of Internet Explorer:

  1. Known CSS Hacks (ie, tricking the parser’s tiny brain with strange incantations)
  2. Using IE-specific conditional comments around link tags to additional stylesheets
  3. Applying…
Scraping your own API

Ever wished that MySpace had an API for adding gigs to your band’s profile? If you view source on the add an event page on MySpace you might notice the url is prefixed with /API. Hmm, is this a sign of an impending release? Hopefully.

In the meantime you’ll need to roll your own.

You could use any of the current crop of libraries for http wizardry, RestClient or HTTParty maybe, but we’ve opted for Mechanize, which gives us the flexibility to interact with page elements as well as do the usual request/response stuff to urls.

There’s nothing fancy about MySpace’s forms, just post a bunch of params to the url and you’re golden. They’re even using JSON in the response.

The toughest part is that there’s no documentation as to what is required for the request to work, it’s pretty straightforward to view source and see what’s getting submitted though, so I’m sure you’ll be alright.

➜ wycats git workflow

Get rid of those merge commits

RT @defunkt: Wow, http://github.com/cloudhead/http-console is really cool // love it

The last 8 months of my life… http://bit.ly/aMfk4v @bandcentral launches

dns problems.

anyone got a dribbble invite going spare?

got my @getcloudapp account. UI is great.

RT @tonysteward: This is good: OAuth access to IMAP/SMTP in Gmail http://tr.im/TTv9 #security #killpasswords /via @chrismessina

Disappointed to miss scotrubyconf, sounds like it was a good one. Maybe next year.

THEME BY PARTI