drewp for 2006 July

<M <Y
Y> M>

2006-07-22T19:55:41 connecting the loggers of mochikit, firebug, and divmod:

This will save you about 50 seconds of RTFS, but maybe that's all that was stopping you from having a comfortable logging setup.

The plan is to redirect mochikit log() messages and divmod log messages into firebug, whose console will stay active over a reload, and can be turned on and off more easily than a mochikit in-the-page page.

Divmod.logger.addObserver(function(ev) {
  if (ev.channel == "transport") {
    return;
  }
  console.info("divmod (%s): %s", ev.channel, ev.message);
});

logger.addListener('logConsole', null, function(msg) {
  console.info(msg);
});

Now:

log("mochikit message");
console.info("firebug message");
Divmod.log("divmod message");

2006-07-22T19:57:10 ayttm logging patch:

I upgraded from everybuddy to ayttm, but I wanted to bring my patch with me. This patch puts full times (except tzone) onto the display and log files, giving you a much better chance of analyzing them later. Also, I backslash-escape newlines and backslashes, so that the log records aren't ambiguous. This revised patch also includes a fix to a const error in yahoo.c, which I think the proper ubuntu package has its own fix for.

This was my first time working with ubuntu packages, and I learned almost nothing. To apply my patch, run something like this:

apt-get source ayttm
tar xvzf ayttm_0.4.6+26.orig.tar.gz
cd ayttm-0.4.6+26
patch -p 1 -i ../new_ayttm-0.4.6+26_log.diff
dpkg-buildpackage -nc -rfakeroot
cd ..
dpkg -i ayttm_0.4.6+26-1build1_i386.deb

The good logs will look like this:

20060411 23:20:13 drewperttu:  log test 2

Patch is here: http://bigasterisk.com/post/new_ayttm-0.4.6+26_log.diff

2006-07-23T00:41:47 shdh 11:

Worked a tiny bit on RDF view maintenance for http://picreferer.bigasterisk.com, checked out the new sparql parsing in rdflib. Chatted about my plan to track programmer time spent per line of code: hook into the editor to learn what lines are getting visited, try to adjust historical line numbers as lines are added/removed. The result will be reports like "this function has required the more bug fixes than anything else in the code" or "programmers often come to read these lines before they work on anything in these files".

http://flickr.com/photos/alienvenom/195918903/


[Main]

Unless otherwise noted, all content licensed by Drew Perttula
under a Creative Commons License.