Posted by Luke
on Wednesday, April 30
MySQL’s Over-looked and Under-worked Slow Query Log.
Dynamite is a JRuby interface to Processing.
How to send multipart/alternative e-mail with inline attachments.
Prototip and Starbox are awesome.
Note to self: alias_method_chain doesn’t work with ActiveRecord attributes.
Rails Search Benchmarks comparing Ferret, Solr, and Ultrasphinx.
Extend String to use ActionView’s Text Helpers. I may have to add this to my standard bag of tricks. Wish it was in core. Fortunately, in Edge Rails, the helpers are now accessible by module. Nice!
ar_mailer: how to avoid memory related issues and Running ar_sendmail with monit.
Timeframe is a totally awesome looking Javascript date picker.
Datejs parses human dates in JavaScript. Very cool.
Promise and Peril for Alternative Ruby Impls. JRuby’s Charles Nutter takes a look at the state of the alternative Ruby implementations and the challenges they face. I hadn’t heard of MacRuby before—sounds like it will be a great way to write Mac OS X apps. MagLev (Ruby with Smalltalk VM technology) also sounds interesting (interview) but I imagine it will cost booku bucks.
Seed Fu is a new library for loading seed data.
Posted by Luke
on Friday, December 07
Here’s a few interesting Ruby links I’ve been keeping open in tabs and minimized browser windows.
- Faker looks like a great addition to a database fuzz script for more realistic data.
- Nanoc is a “baked not fried” CMS (it generates static pages) written in Ruby. It looks very cool. I’m thinking about re-doing my personal web site using it.
- I’m finally trying out make_resourceful. Pretty useful. The problem with plugins like this is that they save you a ton of time if you take the time to learn to use it, but for any individual controller, I could probably write it faster by hand. But I think the investment will pay off. There are a few places where I need more control than make_resourceful’s default assumptions—but it’s really easy to code those actions by hand.
- Shoulda adds some very nice macros for testing a bunch of stuff with models and controllers. I’m not using the contexts and should syntax yet, though.
- Having trouble with the new Rails 1.2.6/2.0 cross site request forgery protection and
ActionController::InvalidAuthenticityToken errors? It might be due to restful_authentication. Check out this ticket. The solution is to remove the reset_session method in UsersController#create. The newest version of the plugin doesn’t have this problem any more.
- Django automaticaly escapes HTML. I think this is a decision that every modern web framework should adopt. You hardly ever want user-submitted content to be displayed with HTML intact, and when you do, you need to pay special attention to which elements will be allowed. Some potential solutions for Rails: use Erubis instead of Erb, acts_as_sanitized, the whitelist plugin which has been merged into Rails 2.0 (promising, but last time I used it I found it required quasi-valid HTML, and thus broke under real-world conditions) .
- Blueprint CSS framework is rockin’.
- Friendlier, customizable attachment_fu error messages.
- That checkbox needs a label. Don’t forget to add labels to check box and radio button fields!
So many links from Ara T. Howard that he deserves his own section:
What’s all the secret glue behind most of these links? Shhh. Don’t tell anyone I told you.