metautonomo.us

Confounding URL typists since 2007.

Ransack, the library formerly known as MetaSearch 2.0

1 Comment

A couple of nights ago, I pushed Ransack to GitHub. What’s Ransack? Well, previously I was calling it MetaSearch 2.0, and it’s a complete rewrite, not unlike the MetaWhere 2.0 development in the rewrite branch (a name change is also forthcoming for MW 2.0, if you’re curious). Why change names? A few reasons:
Read the rest of this post

Tags: , , , , ransack

uncard.me

Leave a Comment

I’ve been working with at Mission Data on a nifty little web app we’re calling uncard.me. We plan to launch next week. It’s a web-based alternative to the app-based contact sharing solutions. All you’ll need is a competent QRCode reader for your reasonably-current iPhone, Android, or Blackberry device. I’m currently using Qrafter, because it rocks. Screenshots below. And if you see Todd or another member of the Mission Data crew at SXSW Interactive, be sure to say hi!
Read the rest of this post

Tags: apps, uncard.me

The MetaWhere 2.0 Rewrite

4 Comments

If you or have been following the rails core mailing list lately, you might have seen mention of the MetaWhere rewrite I’ve been working on. If you haven’t, let me start by linking you to the rewrite branch on GitHub. This is just a quick post explaining why I’m rewriting it, and why you should care.

Read the rest of this post

When to use alias_method_chain

10 Comments

Recently, I stumbled upon a fork of one of my projects in which someone made a really intelligent-sounding commit: “Remove needless indirection of alias_method_chain.” He used the term indirection, so I was duly impressed, and my curiosity was piqued: had I sinned against the programming gods and used an alias_method_chain when it wasn’t needed? No, I hadn’t. alias_method_chain is frequently abused in the Rails world, but it wouldn’t exist if there wasn’t a valid use case.
Read the rest of this post

Tags: ,

attr_bucket, A Gem for Your Lolrus Model

5 Comments

Good evening, Internet! I hope you had a wonderful and productive workday. Now, with those pleasantries out of the way, I’d like to point you in the direction of a little gem called attr_bucket that I am regretful for having written even as I type this blog post suggesting you go try it. That is because this gem, while tiny and unassuming, has tremendous potential for evil.

Read the rest of this post

Tags: attr_bucket, , , ,

How Writing Libraries Restored my Faith in Open Source

4 Comments

37signals recently announced that they intend to drop support for OpenID authentication in their products. Good move. Even as a geek — someone who understands the reasoning behind OpenID — I’ve always found the actual implementations of OpenID to be needlessly cumbersome. But that’s not what this post is about. This post is about how a parenthetical in a comment by DHH on a HN post about the news helped me realize something huge about my experiences in the open source community.
Read the rest of this post

January 25, 2011

MetaWhere and MetaSearch 1.0.0 released!

4 Comments

This has been a long time coming. Both MetaSearch and MetaWhere entered development as Rails 3-only gems early last year. Developing them was a great learning process, as I got to dive deeper into the innards of Rails and ARel than I ever expected, and track ARel through a complete rewrite and maintainer change, as well. The only updates you’ll notice from the last released gems are the docs (MetaSearch/MetaWhere), which should now be up to date (site docs to follow soon). It feels good to finally hit 1.0!

Current MetaWhere/MetaSearch Gems are RCs

1 Comment

Things have largely quieted down on the MetaSearch/MetaWhere front. The currently released gems are working well for me on a few large-ish projects, and I haven’t seen any serious bug reports in quite some time. I’m happy with the existing APIs, and while I’d certainly like to do a bit of refactoring, that’s nothing that should result in a breaking change. All this being said, I’m considering the latest releases of MW/MS as release candidates, and will be pushing out 1.0.0 of both relatively soon, barring any serious issues. Please get your bug reports in now!

Mobile Devices and Rails: Maintaining your Sanity

10 Comments

The “mobile web” may look more like the web we know and love as devices get more powerful, but there will always be a place for a bit of customization in the name of improved UX on mobile browsers. CSS media queries go a long way toward accomplishing this, but you may find yourself wanting to do more. Ask around or do some searches, and you’ll find the usual answer to supporting mobile devices in Rails involves adding a MIME alias for text/html named “iphone” or “mobile” with register_alias, then forcing a mobile request’s format to this MIME for use with respond_to. This can work, but it’s a huge pain in the neck, and I believe there’s a better way. Read on.
Read the rest of this post

Tags: , ,

An Alternative to the Facebook Registration Tool

2 Comments

With the of the Facebook registration tool, there’s no doubt that you, the intrepid Rails developer, will be looking into it as a possible means of new user signup, either by choice or by client request. My preference has always been to limit an app’s dependence on Facebook as much as possible. I guess it’s a holdover from my hardcore OSS zealot days, or something — though I never had a hacker beard, I can’t help feeling there’s something inherently evil about Facebook (apart from their love affair with PHP ;)). Anyway, I recently implemented something very much like this feature using Devise and OmniAuth, so I thought I’d share.
Read the rest of this post

Tags: , , omniauth, ,