Wisdom

The erudition of Inventive Labs, collected.

Archive / RSS
Apr 6
Oops.

Oops.


Apr 3
Nice little bit of validation feedback shows that Footytips is listening to you.

Nice little bit of validation feedback shows that Footytips is listening to you.


Mar 28
“There’s a pretty simple way to place a losing bet in the technology game. Try to build an alternative to the web, or try and pretend it’s not there. The brutal Darwinian politics of networking mean that the web, like the house, always wins. It’s always better, faster, and stronger.” Living with the Trojan iBrain - Times Online

Mar 25

Mar 24

Forgiving BlueCloth

class BlueCloth < String
  def transform_code_spans_with_forgiveness(str, rs)
    begin
      str = transform_code_spans_without_forgiveness(str, rs)
    rescue BlueCloth::FormatError
      # Forgive unmatched backticks
    end
    str
  end

  alias_method_chain :transform_code_spans, :forgiveness
end
Now when your users have unmatched backticks in their marked-down text, BlueCloth will ignore the problem (which is not actually a problem, per the Markdown spec) and continue.


Mar 23

Mar 23

Mar 2

Feb 28

Feb 28