Manoj Srivastava: Arch, Ikiwiki, blogging
One of the reasons I have only blogged 21 times in thirty months
is because of the very kludgey work flow I had for blogging; I had
to manually create the file, and then scp by hand, and ensure that
any ancillary files were in place on the remote machine that serves
up my blogs.
After moving to ikiwiki, and thus arch, there would be even more
overhead, were it not so amenable to scripting. Since this is arch,
and therefore creating branches and merging is both easy and
natural, I have two sets of branches -- one set related to the
templates and actual blog content I server on my local, development
box, and a parallel set of branches that I publish. The devel
branches are used by ikiwiki on my local box; the remote ikiwiki
uses the publish branch. So I can make changes to my hearts content
on the devel branch, and the merge into my publish branch. When I
commit the publish branches, the hook function ensure that there is
a fresh checkout of the publish branch on the remote server, and
that ikiwiki is run to regenerate web pages to reflect the new
commit.
The hook functions are nice, but not quite enough to make
bloggin as effortless as it could be. With the movge to ikiwiki,
and dissociation of classification and tagging from the file system
layout, I have followed the lead of Roland Mas and organized my
blog layout by date; posts are put in
blog/$year/$month/$escaped_title. The directory hierarchy
might not exist for a new year or month. A blog posting may also
show in in two different archive indices: the annual archive index
for the year, and a monthly index page created for every month I
blog in. However, at the time of writing, there is no annual index
for the next year (2007), or the next month (January 2007). These
have to be created as required.
All this would get quite tedious, and indeed, would
frequently remain undone -- were it not for automation. To make my
life easier, I have blogit!, which takes care of the
niggling details. When called with the title of the prospective
post; this script figures out the date, ensures that the blog
directory structure exists, creating path components and adding
them to the repository as required, creates a blog entry template,
adds the blog entry to the repository, creates the annual or the
monthly archive index and adds those to the repository as
needed, and finally, calls emacs on the blog posting file.
whew.
This is a chart from the Debian popularity contest statistics. Submitting data
here is entirely voluntary; the data is used to determine which packages to
put on which CDs in the CD set.
The chart contains four lines, the top line is for bash; pretty much every
system has bash, so this is very close to the number of submissions to the
popularity contest database. Note that this number has doubled within one year.
Sarge was released in June 2005, and thats where the graph changes
significantly. Up to then, popularity contest was a rather uncommon package,
but sarge promoted its use somewhat IIRC. So lets look only on the post-sarge
part of the graph. Ubuntu Dapper was released in June 2006. Any effect? No.
The other lines are gnome-session (green), kwin from KDE (blue) and
openoffice.org-base (red). KDE is at about 25%, Gnome at about 50% and
Openoffice goes up to 50%. This suggests that a significant amount of Debian
installations are actually desktop machines (I remove popcon on all my servers,
where I'm more concerned with not having too much software on it). For KDE and
Gnome, these values have been quite constant. When only counting "active" users,
Gnome drops to about 25% (same for OO.o), and KDE to around 10%. VIM would be
at 35%, same for apache.
I don't claim these numbers are accurate; it's probably more interesting to
compare Gnome vs. KDE and similar things. The total number of submissions
(represented by bash in this graph) shows that Debian is quite healthy.
Oh, and of course I'd like to invite you to install
Katherine (l), Thomas (r)The twins and their mother are all doing very well, and I'm enjoying learning some new skills. I can't think of a better way to start Christmas.
) it's time to renew 