Skip to content

Monthly Archives: May 2008

Can Twitter Remain Personal?

One of my favorite things about Twitter is that it is personal.  Sometimes it is funny, sometimes serious. With the people I follow at least, the ethos feels pretty good. However, I’ve recently gotten many twitters in a row (echo chamber style) that are quite clearly all about marketing. Apparently, some of my friends have been [...]

When Incremental Change Isn’t

At time marker 50:35 in his Git presentation to Google, Linus has a slide that says ”Performance is not secondary… it affects how you work .. and it affects quality.” At 54:50 Linus talks about “the kind of performance that actually changes how you work / it allows you to work in a completely different manner.”
These quotes are in [...]

Using Git for Backup

Sometime last week an idea popped in my head (most likely because I heard it mentioned sometime earlier) — why not use Git for backing up important server files (especially ones that live in /etc). I haven’t tried it out yet, but here are some interesting links that I plan on checking out soon:

A backup [...]

Improving attr_accessible

In my main project, I have sworn off the use of attr_accessible. It is not that I don’t believe in security. I do. The reason is simple: using attr_accessible makes it hard to use the block forms of new and create with any sort of confidence.
For example, if I use this in my Goal model:
attr_accessible [...]

Larry Page in DC

I heard Larry Page and Michael Calabrese discuss the importance of the wireless spectrum. The New America Foundation organized the event and clearly shares much of Google’s philosophy here.
I find it useful to think about the spectrum allocation issue in terms of famous “tragedy of the commons” parable. If too many devices try to “graze the [...]

Nginx Configuration

The Nginx wiki is helpful and well done. It is the definitive reference, unless you enjoy reading the C source code. Still, I wouldn’t mind finding some more content that explains Nginx. I’m the kind of person that looks for the why behind the how; it just makes me feel more comfortable when I understand [...]

Installing Oniguruma

Ruby 1.8.6 does not support look-behind using its default regular expression engine. To get this support, I needed the Oniguruma library and gem. Installation was a bit confusing on Mac OS X Leopard. These blog posts were helpful to get me started:

Juju explains how to build Ruby from source with Oniguruma patched in. I didn’t [...]

Thoughts on Delta Compression

Git can use delta compression to achieve substantial space savings.  As more data is added to a git project, relatively little additional space is needed.
I’ve been thinking through this and have the following observations:

The more different the additional data, the less effective delta compression will be, all other things equal.
It is pretty straightforward to realize [...]

Haml: stray whitespace in textarea

I agree with Obie and others who recommend Haml. That said, I ran into a strange issue lately: I was finding lots of extra leading spaces in a textarea.
The culprit was Haml, or, rather, my misunderstanding of it.  Haml is great for making your HTML source properly indented.  However, this means that Haml may add [...]

Mysterious extra tests when raking?

Usually more tests are a good thing.  However, when you get “extra” tests when you don’t expect them, you might be a little mystified…
rake spec:views
(in /Users/djwonk/dev/ci/cogo/trunk)
………………………………………………………………………………………
Finished in 2.708531 seconds
99 examples, 0 failures
Loaded suite /opt/local/bin/rake
Started
Finished in 0.001315 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
Note how rake spec:views finished… but still goes ahead and runs the [...]