posted: April 27th, 2007 · by: Sven
I received some quite positive feedback on it and from various discussions some improvements have emerged that are now available in the repository.
posted: April 24th, 2007 · by: Sven
Recently Jeremy Hubert commented on my tutorial about routes setup for Globalize. In short he criticized that Globalize doesn’t provide a solution for transparently adding the locale to Rails url_helpers where needed. Instead of being able to say:
You have to specify the locale for each and every call to an url_helper, like so:
Needless to say that this does raise some eyebrows in the Rails community. So let’s see if we can come up with an acceptable solution here. This post describes some intermediary results.Read the rest of this entry
posted: April 22nd, 2007 · by: Sven
Those of you who are subscribed to my RSS feed might have noticed that I’ve updated some URLs to plugins and patches in recent articles. That’s because I’ve decided that it’s a cool idea to have an own repository for “stuff” like: plugins, patches, utilities and the like. You can find it at http://stuff.artweb-design.de/svn.
I’ve also set up a Trac for this repository just to be able to track commits at http://trac.artweb-design.de. I don’t think that I’m ever going to need the tickets and wiki portions so that’s rather oversized. But Trac is already running for other projects, so that’s been the easiest way to get something going.
I’m going to add more stuff subsequently. Currently there are the following bits and pieces checked in yet.Read the rest of this entry
posted: April 16th, 2007 · by: Sven
What?! Okay, you might well file this away as “Why in the world would I waste my time on this?” - “Ummmm, well … just because it’s cool, you know!” But watch carefully! As a matter of fact this is serious research and development stuff (of course) that deals with super-useful web technologies. :-)
Most probably everybody who’s high on Safari (you know, that “best browser in the world”) knows those beautiful search box HTML widgets that very much resemble Safari’s own search box in the address bar.Read the rest of this entry
posted: April 14th, 2007 · by: Sven
Skimming through the PHP source article and code I thought that something similar could be done as a Rails plugin pretty easily and elegantly. I couldn’t resist, sat down and started coding away … so here are my results.Read the rest of this entry
posted: April 7th, 2007 · by: Sven
We’ll all admit it. Rails’ migrations rock. Totally.
But when you try to change a database column to some vendor specific type (like
varbinary for MySQL) that Rails doesn’t implement you notice that Rails doesn’t hand over control that easily here like it does elsewhere in ActiveRecord. You’re just not supposed to use any custom types.
This article explains how to easily change that behaviour.Read the rest of this entry
posted: April 4th, 2007 · by: Sven
Mephisto is backed by Akismet when it comes to comment-spam-protection and this duo works pretty well. But like any such system it’s not 100% foolproof and therefor Rick has build it that way that comments are put aside, not completely deleted when Akismet thinks that it’s spam. You’re supposed to log into the admin interface, go to “Moderate comments” and then review them. You can approve or delete the comments separately or delete them all at once.
That’s all pretty reasonable and handy. But when I scrolled through my 900 spam comments yesterday I found myself really wanting to filter the list by keywords like “cialis” or “toyota” (what the heck is so cool about Toyota newly?). This way I could reduce the list by the largest portions in some steps and then only have to review the rest of it.
I looked at the source code and found that it’s pretty super simple to patch in support for this kind of feature. So, here you go.Read the rest of this entry
posted: April 4th, 2007 · by: Sven
Mephisto comes with Akismet support baked right into its heart and it works like a charm. I’ve been totally pleased with it spotting nearly every spam comment and collecting them for later review and bulk deletion.
Now, 30 days later, I found it was time to clean up the spammy comments piles that Mephisto hunted down for me. Actually nearly 900 comments had piled up. Year, that’s 30 per day. I don’t think that’s that much compared to what others receive.
But to me 900 spam comments in 30 days is too much. I don’t want to spend the time to manually check 900 comments even if I’d have to do it only once a month. No way.
I thus revisited an idea that Damien Katz called “negative captcha”. I realized that I’ve actually had experiences with this type of “protection” and they’ve been pretty good.Read the rest of this entry
posted: April 3rd, 2007 · by: Sven
I’ve been asked for instructions on how to use the Mephisto pagination plugin that I’ve published last week. Well, that makes sense :-) So there you go.
The plugin allows you to add very basic pagination functionality to your article section pages (that is, pages like your blog homepage, sub-section pages etc.). Right now, there are only means to add a “older posts” and “newer posts” links to access the previous and next paginated articles list’s pages - you can see this at the bottom of my blog’s homepage.Read the rest of this entry