Blog posts tagged "rails"
February 1, 2006⇒ GvR: “Please Teach me Web Frameworks for Python!”.
The 90+ comments are probably the best coverage on the rather fractured state-of-the-art of Python webstack0. (Aside django, python, rails, web, webdev)
December 13, 2005⇒ Ruby on Rails 1.0 is out.
And clearly 37s didn’t feel like they were getting enough mileage from the old site. :-/0. (Aside community, design, opensource, rails, ruby)
I use Rails’ database session backend for LM. (for login, as well as “flash”) Without any sort of built in garbage collection the sessions table gets very large, very quickly. Beyond aesthetic issues, this can also cause MySQL’s key buffer to fill up. (which on Debian is by default set quite low)
So I wrote up a quick flush method, and saved it in a file
class CGI::Session::ActiveRecordStore::Session def self.flush_old_empty_sessions self.delete_all "DATE_SUB(NOW(),INTERVAL 6 HOUR) > updated_at and BIT_LENGTH(data) <= 688" end end
This says nuke all sessions which are over 6 hours old, and which are empty. (688 is the length of the serialized session with an empty flash)
MySQL specific, and susceptible to changes in either session structure or its serialization. But it was quick and easy and worked for me.
Then you simply need a cron job like:
ruby script/runner 'CGI::Session::ActiveRecordStore::Session.flush_old_empty_sessions'
I’ve been running the alpha of MeasureMap for a few weeks now, and I thought I’d do a quick brain dump.
First thing you notice? It’s pretty, just ridiculously, gratuitously whizbangy. And that can make it find of fun to play with, in and of itself. Still that Flash can be slow (though not apparently compared to Google Analytics), but really if I was getting the questions I had answered, I don’t think I’d notice.
And as a domain specific (blogs) stats package, they’ve done some nice work breaking up the reports into appropriate discrete units. (I love the daily overview screen you get when you click thru from the timeline and you’ve posted multiple blog posts in a single day)
The Wrong Questions
Maybe LaughingMeme is abnormal, but I have about 10 posts that Google loves so much that (according to MMap) they account for 47% of all my traffic. (and its a power law distribution) In general they aren’t posts I’m all that excited about: year old speculation on Google IMAP brings in hundreds of visitors a day, while Beklin Sucks! has been a perennial favorite, and daily traffic to I’m feeling lucky often exceeds 1000 visitors.
The fact that people are visiting these pages is boring. And the fact that Google is sending them there, day in and day out? Boring.
Show Me the Novel
What’s new? What’s different today then yesterday, this week then last week? Freak outliers, and emerging trends please.
55 Posts About Coffee And Still They Come
Help me out with audience. What brings the readers? What brings the links? What brings the comments? I’ve got my posts marked up with microformat tags, Yahoo has the term extraction API, lets use some of that domain specificity to do something new. (and while rel=”tag” is the only widely deployed microformats currently, more will follow)
Gurchin has got Gads integration, MMaps needs to distinguish by exploiting its specialty.
And Speaking of “conversions”
Any chance of hooking up with Feedburner to allow me to plot subscriber spikes to blog posts? No idea if the data would be compelling, but I know that most of the people in my subscription list got there by writing one really good post. (staying there is harder)
Sources and Fans
You’re tracking links in, and links out, I’d love to see that information compiled into its social mesh.
Quirky Stats Muching AI
Okay, what I really want is an AI that gets a kick out of pouring over the logs all day, and finding the quirky and sublime.
Imagine logging in to be told that “the query ‘bush in freefall’ was your 22nd most popular search yesterday, but your 1st most popular on searches coming from .mil” (true), or “the spike in ‘weather rss’ this weekend corresponded to freak hail storms across the country” (actually I have no idea why that query spiked). But I’m willing to settle for a bit less.
November 17, 2005⇒ A modest proposal from #rails-core.
after all we’ve got our own versions of Array, and String!0. (Aside lisp, programming, rails, ruby)
November 15, 2005⇒ “Reuse-in-the-large (components) remains a mostly unsolved problem, even though everyone agrees it is important and desirable.”.
Lars on “Why I left OpenACS for Rails”. Relevant to varying degrees to Zope, Drupal, and the lot.0. (Aside programming, quotable, rails, web)
November 5, 2005⇒ Introducing Liquid: Smarty for Rails?.
I’m caught between running screaming from the room, or edging out quietly and hoping nobody notices. (Actually I’m giving Tobi the benefit of the doubt, but the idea sends shivers up my spine)0. (Aside django, php, python, rails, ruby, smarty, web)
November 3, 2005⇒ hackdiary: REST On Rails.
how did the beeb become the most innovative software development shop on the planet?0. (Aside bbc, Matt.Biddulph, rails, rest, webservices)
⇒ “Most importantly, PHP allows me to feel accomplishment before getting bored”.
This is the promise of PHP/Rails above and beyond just being agile0. (Aside agile, attention, php, productivity, programming, quotable, rails)
One of my key goals when moving Laughing Meme over to Typo was not to break the nearly 4 years of accumulated URLs. This involved some tweaking of Typo’s importer script to maintain my old
ids1, and some routes tweaking. So far so good.
But what about the pieces of the site not maintained by MT, pieces that expect to be handled by Apache, not dispatch.fcgi? For that ProxyPass if you friend. It isn’t a sweeping solution, but as I bring pieces of the site online that use PHP, server side includes, or just DirectoryIndex, I’m using ProxyPass to re-route the URLs before they fall into the Rails’ event horizon. Works great.
1. Actually, was a bit more complicated them that, as I combined several MT blogs (LM, MLPs, Work, etc) into one, so I let the importer create a
id, but also hang onto the MT id in a new column
October 6, 2005⇒ Can anyone who was at web2con explain the pitch for Zvents?.
I’m all for calendaring innovation, but to the uninitiated looks a lot like EVDB0. (Aside calendaring, events, rails, web2.0)
September 21, 2005⇒ Ruby 1.8.3 released, but Rails not liking it.
A simple fix exists, but honestly the overriding of Logger like that is some of the ugliest code in the Rails codebase. (as opposed to just mind altering, which covers large swathes of AR)0. (Aside rails, ruby)
TZInfo is a Ruby library that uses the standard tz (Olson) database to provide daylight-savings aware transformations between times in different timezones. The tz database is compiled into Ruby classes which are packaged in the release. No external zoneinfo files are required at runtime.
As a hacker (is it a universal feeling?) its always an ambiguous feeling to see someone else cross an item off your todo list, a little sense of a loss (I was looking forward to solving that problem) with a bit of glee (Now I get to solve more interesting problems!)
September 9, 2005⇒ Small ActiveRecord STI Gotcha.
Yeah, got burned by that one as well. Still not an STI fan.0. (Aside activerecord, rails)
September 8, 2005⇒ Kendall Clark: Semantic Rails, Semantic Django: Pushing RDF into MVC.
Early thoughts.0. (Aside django, python, rails, rdf, ruby, semweb)
August 19, 2005⇒ rc3.org: Ruby the gateway drug…. for Java.
I tend to think life is too short to use compiled languages, but Rafe is absolutely correct when he says Rails (and Django) is a port of the J2EE web stack state of the art, and people should acknowledge that heritage.0. (Aside agile, django, java, programming, rails, ruby)
August 16, 2005⇒ “It’s like iTunes for eBooks”.
Rails app blending the line between client and server apps0. (Aside books, ebooks, rails, ruby, web2.0)