Daniel Janus’s blog
anti-procrastination.el
Fighting procrastination has been my major concern these days. I’ve devised a number of experimental tools to help me with that. One of them is called snafu and can generate reports of your activity throughout the whole day of work. It’s in a preliminary state, but works (at least since I’ve found and fixed a long-standing bug in it which would cause it to barf every now and then), and I already have a number of ideas for its further expansion.
The immensely powerful tool
A pen and a sheet of paper are simple utilities; but there lies vast and sheer power in them that I was not aware of. Up until now. So what can they be used for that one might possibly not realize?
Short answer: serializing the stream of consciousness.
Who said Common Lisp programs cannot be small?
So, how much disk space does your average CL image eat up? A hundred megs? Fifty? Twenty? Five, perhaps, if you’re using LispWorks with a tree-shaker? Well then, how about this?
[nathell@chamsin salza2-2.0.4]$ ./cl-gzip closures.lisp test.gz
[nathell@chamsin salza2-2.0.4]$ gunzip test
[nathell@chamsin salza2-2.0.4]$ diff closures.lisp test
[nathell@chamsin salza2-2.0.4]$ ls -l cl-gzip
-rwxr-xr-x 1 nathell nathell 386356 2008-08-09 11:08 cl-gzip
You win some, you lose some, you talk some
After my shameful performance in the previous tournament, this weekend saw my greatest achievement in tournament Scrabble to date: that of advancing to the quarterfinals of the Cup of Poland. For the record, here are the final standings. In the quarterfinal, I lost both games to Tomasz Zwoliński (the former Champion of Poland), who went on to win the Cup.
cl-morfeusz: A ninety minutes’ hack
Here’s what I came up with today, after no more than 90 minutes of coding (complete with comments and all):
MORFEUSZ> (morfeusz-analyse "zażółć gęślą jaźń")
((0 1 "zażółć" "zażółcić" "impt:sg:sec:perf")
(1 2 "gęślą" "gęśl" "subst:sg:inst:f")
(2 3 "jaźń" "jaźń" "subst:sg:nom.acc:f"))
Another metapost
No, I am not going to write about the programming language for generating vector graphics. This is not a real post, but rather a note to self to write ones on certain topics once I get ready for that. And as for today’s title, I just couldn’t resist the pun. ;-)
Today’s lesson: Mind the symlinks
Probably every day I keep learning new things, without even realizing it most of the time. The vast majority of them are minor or even tiny tidbits of knowledge; but even these might be worth noting down from time to time, especially when they are tiny pitfalls I’d fallen into and spent a couple of minutes getting out. By sharing them, I might hopefully prevent someone else for slipping and falling in.
Recently read #1: Akhmatova meets Bashō (Vasil Bykaŭ, “The Wall”)
(Introductory note: This post marks the beginning of a new series on this blog, aptly titled “Recently read.” Every now and then I will try to verbalize afterthoughts inspired by the books I happen to read, and post them here. I hope these recommendations or anti-recommmendations might turn out to be useful for someone.)
Inward ripeness
How soon hath Time, the subtle thief of youth,
Stol’n on his wing my three and twentieth year!
My hasting days fly on with full career,
But my late spring no bud or blossom shew’th.
Perhaps my semblance might deceive the truth
That I to manhood am arrived so near;
And inward ripeness doth much less appear,
That some more timely-happy spirits endu’th.
Yet be it less or more, or soon or slow,
It shall be still in strictest measure ev’n
To that same lot, however mean or high,
Toward which Time leads me, and the will of Heav’n:
All is, if I have grace to use it so,
As ever in my great Task-Master’s eye.
cl-netstrings
I’ve just packaged up the Common Lisp netstring handling code that I wrote a week ago into a neat library. Unsurprisingly enough, it is called cl-netstrings and has its own home on the Web. It’s even asdf-installable! I wonder whether this one turns out to be useful for anybody besides me…