18 Mar 2006 (updated 18 Mar 2006 at 03:15 UTC) »
It's best to write the tests first, and it's good to have use cases in mind, if not documenation written down, before that.
For personal projects, I'm not disciplined enough to write the tests first every time; if the code I write works the first time, I sometimes let myself get away with it. But I'm doing pretty well about doing test-driven debugging, at least. I write tests for any code that doesn't work the first time. And I write tests when I refactor and change things. The confidence to make changes that comes from having tests in place is very freeing.
Recent coding/testing/documenting episodes include:
5 Mar 2006 (updated 18 Mar 2006 at 03:17 UTC) »
I thought I understood how .profile, .bashrc, .login worked, but it has evidently faded from memory. After years of relying on sensible defaults in debian etc., I'm using mercurial/hg for source code management. A big advantage of mercurial is that it does not need to be centrally managed; I can install it in ~/bin. But then I want to use it across an ssh connection, so $PATH has to get setup somehow. I've got that working, using .bashrc.
But I have to manually . ~/.bashrc before I can use mercurial in interactive logins. That's tolerable, but I have to remember to do it before I start up emacs, or else I get the dreaded:
Traceback (most recent call last):
File "/Users/connolly/bin/hg", line 10, in ?
from mercurial import commands
ImportError: No module named mercurial
when I try to use hg/emacs integration. I rely heavily on emacs/cvs integration, and working this out will be critical to moving to hg, for me.
update: Well, I got it working by symlinking .bash_profile to .bashrc; I would have thought I could do it within POSIX-standard facilities, but I can't see how. I guess I can rely on bash being on all the machines I use.
25 Jan 2006 (updated 25 Jan 2006 at 17:33 UTC) »
I rilllyrillyirillyrilly hate that.
I saw something about a gnome clipboard daemon... what's up with that? Ah...
It was stupid of me to think that I had the power to fix the Clipboard by creating one application. I don't have that power. Discontinuation of GNOME Clipboard Manager
So is there some freedesktop.org standard brewing? Aha...
Qt 3 and GNU Emacs 21 will use interpretation 2, changing the behavior of previous versions. freedesktop.org Standards/Clipboards
But... but...
$ apt-cache policy emacs21 emacs21: Installed: 21.4a-3 Candidate: 21.4a-3
So wtf?
7 Jan 2006 (updated 7 Jan 2006 at 04:44 UTC) »
Much of my hacking life has been spent in wondering whether to mac or not to mac. I don't know how many times a day I curse emacs or firefox or gnome-terminal for screwing up copy-and-paste. I have so much angst every time I try... "if I close the window that I just copied from, will paste still work?" "oh crap! I don't want to paste what I just selected; I want to paste what I carefully spent 10 minutes copying to the clipboard!"
Speaking of to-Mac-or-not-to-Mac, and imporovisation, I wrote/discovered another little three chord ditty last night (did I mention I love having a piano in the house?). Part of me wants to try out the western music notation support in Garage Band 2, but the rest of me knows that recording my knowledge using proprietary stuff is a step backwards. I have spent many, many hours trying to get RoseGarden and the like working under debian linux... preempt kernel patch... OSS vs ALSA vs Jack vs ARTS... argh! I look forward to the day when Ubuntu can afford to make it a priority.
tags: debian, dirk.dm93.org, hardware, graphics
So I got to thinking about Ajax, which reminded me of my idea last May for an ajax-based quicken work-alike . I seem to be not the only one interested:
If intuit would create an AJAX version of Quicken that matched the functionality of it's windows client then you would see a better chance for homes to move to an alternate OS. posted by hawks5999 (2) at 11:07 AM 9/26/05
Ho-hum. The screen was stuck at 640x480 until I did dpkg-reconfigure xserver-xorg a few times. And I can't get sound to work (2.6.3 seems to be the last kernel that works with my sound card, and breezy defaults to 2.6.10).
14 Oct 2005 (updated 14 Oct 2005 at 06:54 UTC) »
Debian Unstable Turns out I didn't need to build a new kernel to install the nvu debian package. apt allowed me to upgrade libc without removing my win4lin kernel package. After that, installing nvu worked ok.
Trying to upgrade a bunch of other stuff resulted in a conflict between some libraries used by evince. I had to endure the usual abuse before getting the clues I needed in the #debian channel: #327145: gnome-desktop-environment: unsatisfiable dependencies. So I had to remove the gnome and gnome-desktop-environment packages.
tags: rdf, semantic web, calendar, debian
29 Sep 2005 (updated 30 Sep 2005 at 07:21 UTC) »
So I'm thinking about adding blog-smarts to dm93.org. As I mentioned earlier, I'm disenchanted with ZopeDB as the back end. I liked Zope's ease of access control, but the cost of being different from apache is just too high. I'd sure like to see openid support integrated with apache .htaccess stuff. Maybe a fastcgi auth hack of some sort. Anyway... back to blogging... <"> I want to use the filesystem with hg. I see there's a debian package for pyblosxom. I'm also interested in flickr's support for weblogging APIs. I see there's a bloggerapi module for pyblosxom. I would prefer the Atom protocol. I am reading An Atom-Powered Wiki by Joe Gregorio April 14, 2004. I wonder if the protocol has changed much since then.
update on testing gnome blog etc.: While waiting in the Kansas City airport recently, I had just enought time to download xjournal, recommended by Pure Mac's list of web editors. The "mood" field is kinda cool, as is the "get music button". I tried to copy and paste fromTravelCheckList in my wiki, but it came across as plain text. Bzzt.
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!