Category: Blogging

  • Comments are now on

    Okay, I’ve enabled user comments and I’m crossing my fingers. You should now be able to post comments to entries, starting with this very entry, if you’re so inclined. Hopefully nothing major will break! :)

  • About RSS

    Warning: technical entry. Feel free to skip if you’re so inclined. Today I’m talking about RSS.

    RSS stands for Really Simple Syndication, and it’s essentially a format for delivering data and content in an XML (read: structured) format. What kind of content? Well, any kind, really. Right now, the types of content you’ll most likely see RSS being used for are weblog entries and news stories (although some might argue that those are essentially the same thing). The important thing is that if you follow the appropriate standards and set up your RSS file accordingly, then any program designed to read/parse/process RSS can deal with it.

    The most striking thing I discovered when setting up the RSS feed for my site was how easy RSS is. I was literally able to build the RSS template file and write the code to parse content from my database into it in less than one day. And you know what? It worked the first time. Yes, it’s that simple. It really is. Dave Winer keeps hammering this point. He’s right on.

    In the last few months I’ve been getting more and more into the world of weblogs and the technologies behind them and the more I read, the more potential uses I see for RSS.

    For example:

    • Setting up an RSS channel on The Brew Site that lists all the recently added or updated breweries.
    • Setting up another RSS channel on my own site here for the free ebooks page—listing all the available ebooks, or newly added ones.
    • eBay. RSS channels by category, or even custom RSS feeds based on keyword parameters.

    Want more examples? Check out Tim Bray’s excellent suggestions.

    So, RSS is an XML file, and it’s really easy and intuitive to set up and use; what’s to prevent me (or anyone else) from setting up my own XML file with my own format and set of “standard” fields and metadata? Well, nothing, really—that’s the beautiful thing about XML. However, were I to set up my own XML data delivery format, who would use it? And how would they use it, much less find out about it? I’d have to generate a critical mass of interest to get people to view it, to write programs to parse it, to support it. Personally, I don’t have that kind of time (or mindshare) to devote to it, though it could be done. (It is being done, in fact. Check out this site to find out more about an alternative format to RSS a bunch of developers are, er, developing.)

    Speaking for myself, though, why bother? RSS is already here; it’s dead-simple; it’s widely deployed; it’s extendable; it’s being used. I can write software to produce RSS feeds from all manner of content and know that it can be parsed and utilized by other software that can (and will) do very cool things with my content that I might never think up.

    Goddamn, that’s cool.

  • California

    I suppose most everyone has heard by now, but Arnold Schwarzenegger has announced that he’ll run for governor of California. What a great day for American politics.

    Hey, I’m serious; I drank a beer in honor of Jesse Ventura’s election to governor of Minnesota. Colorful personalities like this certainly revive interest in politics, whatever people may think.

  • Blog Entry Correction

    A quick note to correct a misconception I propagated in my entry on blogs the other day. I said that a blogroll was a “Fancy name for a list of links to other blog sites” and I was only partially right. While a blogroll is a list of links to other blog sites, it is a list that is managed remotely (by BlogRolling, and there may be others) that you can dynamically insert into your site by including a snippet JavaScript or PHP code.

    The neat thing is, they’ve put together a neat little JavaScript trick that allows you to sort of drag-and-drop a blog site to your blogroll list. They also do a few other neat things, including reporting on who’s linking to your own site on their blogrolls. So, a blogroll is definitely more than just a list of links.

  • August Already?

    Where did July go? For that matter, where did the first half of the year go? I’m not sure I like this concept of time passing more quickly the older you get, which is what my grandmother always said and that I take to be a general truism. When you’re a child, time seems to pass so slowly, like when you’re in school or you’re waiting for Christmas… but then the older you get, the more quickly Christmas seems to come each year. And before you know it, you turn around and you’re 30 and you have 2 kids.

    And before you can react to that, 31 is just around the corner…

  • RSS Feed

    I’ve enabled an RSS 2.0 feed, which you can view here. Consider it experimental or even beta if something gets wonky.

  • On Blogs

    This is a bit about the blog software I wrote for this site. If you’re into the technical aspects of blogs, or PHP and MySQL, you’ll be interested in this. If not, you can safely skip it and not really miss out on anything.

    I’ve taken to calling my home-grown blog software blognutt (“blog + chuggnutt,” very clever, ha-ha), and I’ve noticed recently that at least one person found this out by viewing the HTML source of the site and searching for “blognutt” to see what they could find out. They didn’t find out much. Not for any reason of secrecy or anything like that; I just haven’t talked about it, no real mystery. It’s written in PHP 4 with MySQL on the backend, and that’s about it.

    I use the Template and DB classes from the immensely helpful PHP Base Library, though I’ve modified them extensively for my own purposes. The reasons I use phplib instead of another package like PEAR, for instance, are simple: I’ve been using phplib forever so I’m very quick and comfortable with it, it’s easier to use with a much lower-overhead code base, and I’ve already hacked the code to do things I want to do. PEAR is a fine project and I hope to contribute some classes (like my Stemmer class) there someday, but for coding purposes I haven’t used it much. Yet.

    Why did I write my own blog software, rather that using one of the many available blogging tools already available? I looked at several PHP blog packages, and looked at what other systems like Movable Type offer, but it boils down to the same approach I take to a lot of programming projects: I wanted to hack it out myself, because that’s the best way to learn. So I did. (Plus, I wanted to have absolute control of the software. I’m anal that way.) I started with what I determined were the core elements of a weblog, and made it work.

    When you get down to it, a weblog is misleadingly simple: it’s a data retrieval and presentation system. Retrieve the top X most recent items and display them; offer the ability to browse and search past entries, and there you are. The trick is in the execution.

    MySQL was the logical choice for the data store. I wanted to be able to sort and group by date, search entries, and make changes to the data structure on the fly. For me, the additional overhead introduced by adding a relational database like MySQL is worth it for the benefits I get, and since I’m doing all the programming I can make it do things that might not be available to users using other packages that they can’t control.

    I can do anything any of the other blog software packages can do. (I think. I may be missing something somewhere.) Here’s a list of some common weblog features, and some commentary:

    • Entries: Full HTML, since I control the format and storage. Each entry is tied back to the user (just me so far), date- and time-stamped, and can be flagged as a draft (and therefore not displayed to the public).
    • names: I just re-implemented these in a bot-friendly and more human-intuition-friendly manner. Now they look like /2003/07/27/name.html rather than the (less friendly but just as workable/legal) /blog_entry.php?content_id=27 style of links.
    • Comments: I’ve got the code in place to handle comments, but I haven’t turned it on yet.
    • Archive: I’ve got archive links, sorted by year and month. I can control the sort and display of archive links by changing a single line of code. You can view the archive by year, month, day, or entry.
    • Search: Another advantage of using MySQL: its fulltext indexing capability, which allows you to do natural language queries against text and returns results by relevance.
    • Categories: Easy. I’ve been thinking about categorizing my entries, but it’ll be a pain in the ass to go back through 90+ entries.
    • Calendar: Just recently implemented the calendar, showing which days have entries.
    • Last X entries: I haven’t implemented this because it seems redundant as I keep the last 10 entries on the front page anyway. It’d be easy to do, though.
    • Blogroll: Fancy name for a list of links to other blog sites. I just put some up last night.
    • Syndication: Using RSS for aggregators. I’ve written the code to produce the XML files for this, which turned out to be extraordinarily easy, but I haven’t turned it on yet largely because I’m nervous about bandwidth issues.
    • Trackback: A way for bloggers to link to other bloggers’ entries such that the blog they’re linking to knows they’re being linked to. Clever. I don’t know if I’ll support it or not, since I’m the only one running blognutt software :-). Plus, I can already find out who’s linking to me from the server log files.

    There’s more issues. One of the selling points of the bigger blogging systems is that you can update your blog from anywhere on the web, using XML-RPC. Well, the admin interface I wrote for my blog let’s me update from “anywhere on the web” too—from any computer connected to the web, no special software required, just a browser. Nothing fancy. Seems to me that XML-RPC will require some tool or client utility to use, or some interface somewhere, and I guess I don’t see the appeal in this, except possibly to save you time from opening your admin in another browser window. It’s entirely possible I’m missing something here. Having an XML-RPC API interface to a system is cool, I admit, but is it necessary? Maybe someone could enlighten me, here.

    (Of course, I’m not developing software for use by a general audience, so my way of doing things may not be appropriate for a large user base, and XML-RPC might make perfect sense in that situation.)

    One thing I am interested in using XML-RPC for is pinging sites like Weblogs.com to notify them when this site is updated. It would be easy to do; just include a checkbox on the entry add/edit screen that lets me decide when any changes should be pinged, and have PHP send the XML-RPC packet when the form is submitted. In fact, that will probably be the next change I make to the system.

    I have done something cool that I haven’t seen elsewhere (on blog/personal sites, at least): if a user comes to a “top-level” page from a search engine, searching for something specific, I helpfully list up to 3 entries that might be related to what they were searching for. For example, a user searches on Google for “dealing with a strong willed child” (this was an actual search on my site) and follows the results to my site. If they don’t get to a specific entry, and instead come to the home page, or to all the listings for 2002 for instance, then that’s too vague— so I search the database and show the top 3 results for what they might be looking for. Hopefully, this leads to the user exploring the site a little more than just hitting the home page, not finding what they searched for, and leaving.

    I’ve considered releasing my blognutt software as open source, but that raises an issue I’m not sure I want to tackle yet: support. The other issue is competition; there’s already a lot of weblogging software out there, some of it very good. Do I really want to play keeping up with the Joneses with everyone else, or should I just keep myself happy tinkering with my own system?

    All the same, I’ve been going through and cleaning up a lot of the code and modularizing it better in anticipation of a possible release, and there’s still more to finish. If you’re interesting in chatting about blogs, or seeing my code, drop me a line and let’s chat.

  • Genius

    According to this article on CNN.com, geniuses and criminals do their best work in their 30s. This is great news for me—since I just turned 30 seven months ago!

    Of course, I guess that begs the question: Genius or criminal?

  • Wildfire

    This weekend saw the outbreak of the Davis Fire, located about 12 miles southwest of LaPine. Not close enough to us to pose any threat, but today the winds shifted (a “wind inversion” over Bend, the news reported) and smoke from the fire blanketed the area, making everything hazy. So much so, in fact, that the light was tinted red-orange, and the sun was so obscured as to appear as a red disk. Eerie.

    And around noon, we noticed that ash was falling, like light snow.

    And the fire season opens with a bang.

  • Blog Updates

    So, in a continuing effort to make this site more like other blogs on the web (say, like Movable Type), with all their admittedly neat ideas, I’ve added a calendar (just off on the top right, there) for the current month which shows what days there have been blog entries. Days that are linked will show the entries from those days.

    Yeah, I keep seeing this on other blog sites and I finally liked it enough to steal it.

    The sad part is, it shows how pitifully few entries I’ve been making lately. I guess that’s why it makes such a nice visual layout— to kick me into gear.