Fork me on GitHub

corrupt.rack

Posted on: 2009-04-14T04:20:00-05:00

This thing is now running on my own Rack-based framework. You can grab the code here: http://github.com/Oshuma/corrupt.rack/. It is totally Web 2.5.

Yar har har

Posted on: 2009-02-25T21:06:11-05:00

Yar har har

OpenID + Merb = Win (kinda)

Posted on: 2009-02-10T01:48:51-05:00

I just implemented OpenID into a Merb app, using merb-auth and the built-in strategy. Everything went as planned, with the exception of the gem bundling. When you declare ‘ruby-openid’ as a dependency, it will get required as such (ie, require 'ruby-openid'). The actual library needs to be required as 'openid', so just add a :require_as option when you declare the dependency:

dependency 'ruby-openid', :require_as => 'openid'

Now when you update your bundled gems and start your app, everything should work as expected.

Happy Fucking 2009

Posted on: 2009-01-01T01:27:11-05:00

New Years resolutions are total bullshit.

Rails and Merb merge. W. T. F.

Posted on: 2008-12-25T16:32:17-05:00

I thought this was a joke when I first read it. Then I read another blog post about it, then another, and then another. Soon, it sank in that this is serious and actually happening. My skepticism alarm went off and I couldn’t help but shake my head.

Merb will be merging into Rails 3.0. Uhhh, what? One reason I moved away from Rails, is because it comes with everything (including the kitchen sink), even if you didn’t need that running water, so to speak. Merb, on the other hand, is a very opt-in sort of framework, and removing pieces from the default stack is extremely easy. Apparently, Rails 3.0 will go with similar principles, having a default stack with the individual pieces being easy to opt-out.

Don’t get me wrong, there are really smart dudes on both the Rails and Merb teams, and I am in no position to question their motives. I just hope it doesn’t turn in to a bastardized Frankenstein of a framework. Even if it does, there’s always other options available.

Merblawgz

Posted on: 2008-12-19T08:04:16-05:00

I’ve been toying around with Merb for a while now, so I felt it was time to write the obligatory blog using said framework. If I keep up the trend, next week this thing will be powered by Sinatra. I have nothing else to say, so fuck off and throw this in ~/.irbrc:

class LookAt
  DEFAULTS = {:output => true}
  def initialize(thing, options = {})
    @thing = thing
    @options = DEFAULTS.merge(options)

    meths = case @thing.class
    when Class, Module
      (@thing.methods.sort - Class.methods)
    else
      (@thing.methods.sort - Object.instance_methods)
    end

    if @options[:output]
      puts "-- #{@thing.inspect} is a #{@thing.class} --"
      puts meths.inspect
    end
  end
end

def self.look_at(thing, options = {})
  LookAt.new(thing, options)
end

class Object
  def look_at(options = {})
    LookAt.new(self, options)
  end
end

That is all.