Remember dial-up? What a terrible thing to do to one’s self.
I’m away from home right now, visiting family and friends for Thanksgiving (for which I have a post rolling around in my head, need to do that). It’s wonderful, except I’m disconnected. No wi-fi, no high-speed internet, no sir. In fact, I don’t even have dial-up on my Powerbook at the moment… I’m blogging this from my wife’s Compaq Presario laptop.
You see, way back in the mists of time, our first home internet connection was a trial subscription to AOL. Because my wife does so much business online, with an AOL email address, we’ve never gotten rid of the service (a matter I hope to remedy one day). My cable internet provider, Comcast, does not provide dial-up (I think they have something hokey with a third party, but I’ve never managed to track it down), and so our AOL account is our emergency dial-up solution. Of course, when I installed Panther recently, I formatted and started from scratch, and forgot to stick AOL for Mac on it… so no dial-up for the Mac. Oops. At least until I venture out to any retail store in the known universe, where I can pick up an AOL CD at the checkout.
Meanwhile, I don’t have the patience for web-mail, so I’m disconnected from my mail as well. I’m semi-ambivalent about this, because I am on vacation, and I’m enjoying relaxing. But I do have a few projects I want to tinker with, and sooner or later I’ll miss my e-mail and aggregator.
There is a Panera Bread Co. store about 15 minutes from here. In case you’ve been living under a rock, this is the bakery/bread store chain that offers free (as in beer!) wi-fi access in many of their stores. They see it as a service to customers (like a bathroom), instead of as a revenue source (like a coin-op bathroom- remember those?), which I applaud. I’m dying to go check them out, spend some money, and use the wifi. I promise to blog an entry from there if I make it.
Meanwhile, I’m either disconnected, or at the best (dial-up on XP), misconnected.
As I’ve mentioned, I’m a Windows programmer by day. Yesterday, after typing “l” (my alias for ls -lF) and “cat” in a DOS windows for the 20th time in 2 minutes, I finally snapped. I went Googling for a Unix-on-windows solution. I’ve used Cygwin before, but it seemed a bit klunky and limited. Well, no more.
I didn’t find anything except reference to Cygwin. I finally decided to download it again and give it a whirl. I must say, it’s come a long way. There’s alot of good packages available now, including Python, Perl, Emacs, and XFree86… rootless, fullscreen, with external window manager, you name it. And the installer handles dependancies seemlessly.
One of my first complaints with the old cygwin was that the shell runs inside a DOS window, so you are limited to 80 columns. That still applies, but now I can run an X Server and used xterm instead. It works wonderfully… and since I can run DOS commands as well, I’ll probably retire CMD.EXE completely. I can also retire Exceed, the X server we use at work to connect to our Solaris machines. Once I got xhost configured, I can just rsh from my box to the remote system, set my DISPLAY, and go.
I’ve been lamenting the severe lack of tabs in Mac OS X’s Terminal lately. I always seem to end up with a dozen separate Terminal windows… just like I used to always have a dozen browser windows open, in the days before I discovered Firebird and the joy of tabbed browsing.
So I did a bit of Googling this evening, in search of a Terminal replacement with tabs. Sure enough, someone is way ahead of me. I found iTerm at Sourceforge. Open source, tabs, transparency, background images, xterm compatibility, and more baked-in goodness. The configuration optioins are a bit confusing at first (and could use some work), but it’s already replaced Terminal.app on my Dock.
I also found some extra resources for iTerm, including some handy scripts for renaming iTerm tabs and windows.
I’m probably the last one to the party on this one, but today I read Structured Procrastination by John Perry (via Aaron Swartz). Suddenly my entire life makes sense. This is powerful juju.
Lars is creating his blogroll by converting OPML to HTML via XSLT. I’ve been meaning to get my blogroll up on my site for a while now. I use NetNewsWire as my aggregator, which can export OPML. I toyed with the idea of writing a python script to parse it up, simply because I’ve been reading up on python and I need an excuse to write some python code.
But OPML is XML, and XSLT is designed for converting XML formats, and I do a lot of work with XSLT at work. I was giving some thought just a few days ago to using XSLT to convert it. I think that’s the way I’ll go at this point.
I do want to do some special processing, but I should be able to do it all via XSLT. For one thing, I sometimes subscribe to comments feeds on things I’ve commented on. I see no need to show these in a blogroll. As long as NNW’s OPML exports the groups I’ve put my feeds into, it should be pretty straightforward.
There seems to be a problem with my host’s email server. They are working on it, meanwhile I’ve gotten no mail in about 5 hours (and that’s just not right). This includes my mailing list subscriptions. Amazing how disconnected I feel right now, even though my connectivity is otherwise unaffected.
Blosxom has a catchphrase, “The Zen of Blogging.” I’m not feeling very Zen-like at the moment.
Tonight, I helped a friend set up a new Blosxom install. He has been using Greymatter, but he’s had a few problems with it. I’ve been trying to convince him to use Blosxom, so he decided to give it a whirl. Installed the basic blosxom.cgi.
Now in his case, are bare-bones install is pretty close to exactly what he needs. He displays his blog inside a scrolling IFrame as part of a larger site design, so he doesn’t want any fancy flavours/themes. The default .html flavour would work well for him, except he needed multiple author attribution. He also wanted an easy way to post over the web, and he wanted to avoid writing direct HTML.
I assured him this was simple. Just add the author plugin for multiple authors; that requires the meta plugin, but so does wikieditish, which will let you post over the web. And grab Textile2 so you don’t have to write HTML in your posts.
Unfortunately, it didn’t go as smoothly as one would hope. I’ve been using Blosxom for some time, and knew the steps. I’ve also been working on a new project using Blosxom lately, so I figured I was up to speed. Yikes. After an hour and a half, it’s sort of working. Textile is still busted, and I don’t know why. Got authors working, after a half hour of problems, in the end it seems I’d forgotten that meta has to load before authors, so meta has to be renamed. This isn’t really an onerous requirement, and it’s one that I knew of, but it wasn’t actually documented in any of the stuff we downloaded. What a pain.
Also ran into the wikieditish date-preservation bug which is still present (Note to self: keep blogging bug fixes… never know when you’ll need them again). Also, the default .html flavour (that no one uses) is kinda buggy. I ended up making an external verion of it, using the 1993 flavour from the flavour sampler. Still need to send him some improved RSS flavour files; the defaults aren’t that great. I’m sure there were a couple of other gotchas, but I’m tired now and not remembering everything.
All in all, Blosxom is a great, highly extensible tool with a great community around it. But the overall ‘new user experience’ is still too… Zenless. I hope we can improve that.
My good friend Sean Rivinus recently got a new toy, the Canon Digital Rebel. It’s a 6.3 Megapixel true SLR camera; and it uses the same lenses as the traditional (35mm film) Rebels. He’s been taking some great photos; including this creative shot at the Columbia (NC) zoo. You can check out more of his photos at Sean and Marlene’s personal website, and soon you’ll be able to purchase some of his work at his upcoming stock photography site, which I am helping to set up (still under construction; more info soon).
I’ve created a new plugin for Blosxom, called moreentries. It creates ‘Next’ and ‘Previous’ links when there are more entries than allowed on a page (as determined by the Blosxom config variable $num_entries). This doesn’t affect date-style urls, since Blosxom ignores $num_entries for date urls.
Please note this is the first version. It’s been tested (with thanks to Fletcher T. Penney), but it may have bugs. Please Note: it probably won’t work right with static rendering, since it will require additional pages to be created. I’ll look into this if there is interest.
You can see it in action here on this site.
Download link: moreentries
Update: Fixed download link.
Update #2: Fixed the other download link (in the first paragraph). D’oh!
Update #3: As I stated in the perldocs, this could be done much more efficiently if blosxom.cgi were updated. Lars has suggested an elegant way of doing just that. If you’d like to patch your blosxom.cgi, check it out. If Rael releases an offical update to blosxom.cgi to include such a change, I’ll release a new version of the plugin to take advantage of it. This version will remain as well, for those using the current Blosxom version.
One limitation of Blosxom, the blogging software this site is run on, is how it handles a large number of entries. Blosxom lets you determine how many entries to show on a page (by setting the $num_entries configuration variable). This site is configured to show 10 pages at a time. This works when you view the main page or any of the categories (via the links in the Categories boxlet); if you view by date (via the links in the Calendar boxlet), the limit is ignored. This allows you to view, for example, all October posts at once.
But what if you want to view all posts in the WebDev category? At the time of this posting, that category contains 34 entries. But if you go to that category you only see the first 10. Of course, you can navigate sub-categories and see more, or view all posts (regardless of category) a month at a time, but Blosxom provides no way to jump to the next 10 (or 20, or however your site is configured) posts. Until now.
I’ve just written a plugin for blosxom called moreentries to do this. It’s in place now on this site. Scroll to the bottom of the page to see a link to the next 10 entries (assuming you are viewing the weblog homepage). If you click the link, you’ll notice the next page tells you you are viewing entries 11 to 20, and the bottom of the page will have Next and Previous links. This also works within categories (those with more that 10 entries, of couse).
I’ll be posting the plugin to this site, and to the plugin registry, later today. It’s still undergoing some additional testing. In the meantime, try out the new feature, and let me know what you think.