Ruby Mechanize Memory Bloat

Quick tip for Ruby Mechanize. I wrote a fairly complex, long-running script that ate memory like crazy. Couldn't figure out at first what the problem is, then realized (after checking the source) tried this: @agent.max_history= 5. Worked like a charm.

Posted by Aron Sun, 23 Mar 2008 13:31:00 GMT

Tags ,  | 184 comments | no trackbacks

This post is completely unrelated to anything

I just got tired of seeing that football post sitting on top of my long-neglected blog. I wish I had the energy to blog, but frankly I get more than enough off my chest just kvetching to colleagues and friends. (Much to their chagrin, I might add.) So, who needs a blog?

Posted by Aron Sun, 09 Mar 2008 14:55:00 GMT

Posted in  | Tags ,  | 46 comments | 11 trackbacks

What was I thinking?

Before the season started, I honestly thought the Vikes could manage nine wins. Luck out here and there, maybe 10.

I drank the Kool-Aid. I thought the defense was going to be so much better that the offense didn't have to win games. I thought the offense was going to be good enough (in the running game anyway) to score 14 to 17 points per game.

I now see I was completely wrong about the offense. Adrian Peterson is the real deal, but the offense as a whole has shown itself capable of scoring 27 points. Unfortunately, that's over three games, against three rather so-so defenses.

For those of you keeping score at home, that's three touchdowns for the offense, and three for the defense this season.

Speaking of Defense, it is an even bigger surprise to my mind. After all kinds of offseason hype about clamping down the pass defense, the Vikes have proven to be vulnerable to any team willing to abandon the run. Any team. The conventional wisdom from the first few games is that the defense played well enough to win. I don't think so. If not for some lucky breaks against the Lions (and an injury to John Kitna), that game would have been a blowout.

Yesterday, Damon Huard looked like the second coming of Dan Marino in the second half. After throwing 10 passes for under 40 yards net in the first half (many of them short dumpoff balls), the Chiefs tossed the ball 19 times in the second half for about 160 yards and a touchdown. They converted on four third down plays, including a third and 15.

They had drives of 61 and 84 yards to begin the second half. And folks, this is Damon Huard we're talking about here. What do you think Favre, Romo, McNabb and Cutler are going to do? My guess is they may throw the ball a few times. That's my guess.

Posted by Aron Mon, 24 Sep 2007 12:02:00 GMT

Read more...

Posted in ,  | no comments | no trackbacks

Reality Bites

We learned a great deal about the 2007 Vikings yesterday:

* We learned there will likely be no 2008 Vikings this season. My $2.50 wager for them to win it all looks like a loser. Darn.

* We learned that the Lions (if they can get over that loser's mentality) are a very, very good football team, with pretty amazing talent on the offensive side of the ball. They will scare people this year.

* We learned Tavaris Jackson is no rookie Dan Marino or first-year-starter Daunte Culpepper under center. He looked very, very, very much like a rookie yesterday.

* We learned that Adrian Peterson is really, really good, but we learned that we really need Chester Taylor too. The coaching staff (wisely, I believe) is reluctant to let Peterson carry too much of the load.

* We learned that Brooks Bollinger is really, really bad...

Posted by Aron Mon, 17 Sep 2007 13:08:00 GMT

Read more...

Posted in ,  | 6 comments | no trackbacks

In Philadelphia

I love Philly.
That is all.

Posted by Aron Sat, 04 Aug 2007 22:32:00 GMT

Posted in ,  | 1 comment | 38 trackbacks

The police

Went to The Police show last night at Madison Square Garden, and I left more convinced than ever that Stewart Copeland is the greatest rock drummer of all time.
OK, I'm biased. I come from a family of musicians, including two drummers. But holy cow. Looking at The Police as individuals, it's hard not to come to the inevitable conclusion that Copeland adds the special sauce that turns The Police from your average Ramada Inn band to something special.
Seriously.

Posted by Aron Fri, 03 Aug 2007 02:58:00 GMT

115 comments | 36 trackbacks

London training data posted

I've posted a link to a zip file containing the training data I used for Access training at the CIJ conference this year, as well as a bunch of stuff I used last year.
It might be a bit confusing because the narratives were really designed to be notes to myself, and not really designed to be used as distributable tipsheets. But I included them anyway just for the heck of it. Maybe someone will find them valuable.
If you have any questions about the data, feel free to contact me directly.

Posted by Aron Fri, 27 Jul 2007 12:31:00 GMT

Posted in  | Tags , , , ,  | no comments | 77 trackbacks

In London this week (cue music)

In London this week training at the Center... sorry... Centre for Investigative Journalism annual conference. It's my fourth trip to the U.K. to train in computer-assisted reporting, and we're off to a great start.
Heather Brooke kicked off the morning session with a great overview of the nascent CAR movement in Britain. She was fabulous as usual. I'll post a link to her presentation a bit later.
Another good sign early on: David Donald has a good 17 students in his beginning Excel class. In 2003, I believe we had 17 students for the whole weekend. That's pretty amazing progress in a short time.
More to come...

Posted by Aron Fri, 20 Jul 2007 10:14:00 GMT

Posted in  | Tags  | 131 comments | no trackbacks

This is funny

Posted by Aron Tue, 03 Jul 2007 12:36:00 GMT

Posted in  | Tags  | 2 comments | no trackbacks

Joy is removing Adobe Acrobat

I've just experienced a special kind of thrill. I removed Adobe Acrobat from my computer. Completely. I replaced it with a far more simple, straight-forward PDF reader called Foxit reader.

Foxit doesn't have all the bells and whistles, of course. But at about 10 percent the footprint of Acrobat, and without that annoying download manager, Foxit is more than enough for me.

Posted by Aron Mon, 02 Jul 2007 12:46:00 GMT

Tags ,  | 1 comment | 13 trackbacks

Older posts: 1 2