You are currently browsing the tag archive for the 'acts_as_ferret' tag.

I pushed out some more improvements to both finder_filter and user_event_logger over the weekend.

Although I’m aiming for daily updates here, I do plan to take tomorrow off. Merry Christmas!

  • Tactile Pro 2.0 - Have I ever mentioned how much I detest membrane keyboards? The Mac Pro keyboard is better than most, but it still stinks. It turns out that Matias makes a mechanical switch keyboard for Mac; I’ve got one on order, and I’ll let you know if it’s as good as the Unicomp PC keyboards when it arrives.
  • BetterZip - An actual GUI archive application for OS X. Not entirely sure this is worth paying for, though I do get annoyed at the lack of fine control over zip options that the OS gives by default.
  • BitNami WordPress stack - This is what I used to install WordPress, and it was pretty painless. I did have to muck around in the Apache configuration files, though; by default it puts the install on port 8080 in the /wordpress folder.
  • Installing ffmpeg on Mac OS X - Needed this for a client the other day; here’s the easiest install instructions I could find.
  • Acts_as_ferret Tutorial - Another chunk of software I’m needing to come up to speed on; this is helpful.

Oops, comments here were broken yesterday. My fault: I hadn’t gotten DNS resolution set up properly on the server hosting this blog, so it was biting its own tail and dying when trying to contact Akismet. Ah, those wacky networks.

  • Acts_As_Ferret Tutorial - Not new, but something I need to look into, since I’m involved with one project that may be switching from solr to Ferret for full-text indexing and searching.
  • Code Spaces - Project hosting, issue tracking, Subversion hosting, on-the-fly backups. Free for 2 users and 1 project, pay plans as you want to host more there.
  • Wuby - Self-contained Ruby web server and lightweight application framework. (via Ruby Inside)

I’m looking for a way to do a complex search across a variable set of multiple fields in a Rails form. In .NET, I’d just build up dynamic SQL by brute force, but that doesn’t seem very Rails-ish, so I went hunting.

  • Use find_by_sql and the join method to build up a condition string. This is essentially the brute force method translated to Rails.
  • Acts_as_Ferret lets you set up full-text searching across multiple fields, but that doesn’t actually fit the requirements.
  • ModelSearch is a plugin that was demoed in one of the talks at RailsConf Europe 2006. It lets you do things like

 search = ProductSearch.new
 search.keyword = 'television'
 search.max_price = 300
 search.sort = :price
 search.find(:all)

This is cool, but it doesn’t seem to have actually been released into the wild yet.

  • ez-where is a plugin from Brainsplat (more info here and here). It enables things like

 articles = Article.find_where(:all) do |article|
   article.title =~ 'Lorem%'
   article.author.name  'Ezra'
   article.comments.user.name  ‘Fab’
 end
  • Squirrel is another plugin inspired by ez-where. It has a similar syntax and includes pagination support.

Right at the moment I’m inclining towards using Squirrel to meet my requirements.

I continue to be amazed at all the things I find on the Web. Fortunately, I don’t inflict most of them on you here.