Posted by david
on 29 Jun 2009 at 10:36
While beefing up the admin backend of a Rails app that uses ActiveScaffold for its admin UI, I encountered an error that only happened in production and the stack trace wasn’t much help in identifying the cause.
After failing to recreate the problem with a (relatively) small test case, I took the opposite approach and began ripping code out of the original application until the failure went away.
Posted by david
on 14 Jun 2009 at 17:08
As part of on ongoing project with Radiant CMS, I needed to display random ad banners on a page. The banner_rotator extension didn’t quite fit my needs so I rolled my own. It’s available at http://github.com/davec/radiant-ad_banners-extension.
What’s different from the banner_rotator extension?
- Simplified usage
- Just include
<r:ad_banner/> to generate the appropriate HTML on the page. If you want a specific banner, use <r:ad_banner name="Banner Name"/>. Include as many banners on the page as you want, though if you include more banners than you have defined, the excess ad_banner tags will be ignored. A banner will only be displayed once on a page unless you specifically force it by specifying the name attribute.
- Uses the paperclipped extension for asset management. Drag-and-drop an image into the form when creating or editing a banner definition.
- Banners are global, not tied to a specific page or set of pages. Depending on your use case, this could be considered a strike against the ad_banners extension.
Posted by david
on 05 Jun 2009 at 19:38
I’ve recently been working with Radiant CMS for a project and needed a calendar of events. None of the existing calendar-related extensions fit the bill so I created one that did.
Find it at http://github.com/davec/radiant-events-calendar-extension.
Posted by david
on 31 May 2009 at 21:13
Well, it looks like the spam levels this week have not only returned to their pre-McColo shutdown levels, but they’re beginning to surpass them.
Just before the McColo shutdown, my mail server was receiving roughly 75K emails per day during the week, somewhat less on the weekends. Afterwards, the level dropped to less than 20K per day, which is where it stayed through the end of the year. Since the beginning of the year the amount of mail hitting my mail server has been rising, hitting about 60K messages per day two weeks ago.