1. Sep 3rd, 2010

    Rounded Corners 257 — Awesome 9th

    In memory of … Dalli is a new memcache client to replace the old memcache client with better performance, cleaner code and other improvements. However, some incompatibilities, I can’t get it to work well with ruby-openid.

    Apropos ruby-openid, did you know you can check if OpenID authentication used a popup with a simple:

    params["openid.ext3.mode"] == “popup”

    By adding a few layers of abstraction, ruby-open simplifies that statement to a mere:

    oid_response.message.get_arg(“http://specs.openid.net/extensions/ui/1.0″, “mode”) == “popup”

    Actual code.

    Spacing, casing and quoting. When in doubt, check these front-end development code standards. They’re pretty similar to what I follow, so must be rock solid.

    Code red. All the Ruby gems documentation you could possibly use. Alternatively, just the gems you’re using and available offline:

    • Install yard 0.6 or later
    • alias ydoc=”yard server –gems & open http://localhost:8808″
    • run ydoc

    1.9.2 load paths. That LOAD_PATH does not include the current directory made may of my scripts suddenly and mysteriously fail on 1.9.2. You can always $:.unshift Dir.pwd or RUBYOPT=-I (.rvmrc is a good place for the later).

    On the other hand, have you tried require_relative yet?

    Awesome 9th. September seems like a good month to be awesome, there’s even a plan for that.

    Your comment, here ⇓