Daniel Janus’s blog
Another metapost
19 June 2008
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
11 June 2008
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”)
19 May 2008
(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
5 May 2008
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
30 April 2008
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…
Best OS ever
25 April 2008
If you are reading this on a box that does not have an impressive amount of RAM (say, 512 MB or less) and is running a fairly recent Linux, then for goodness sake, drop everything you are doing right now and follow the instructions in this entry. I’m going to show you how to make your system use the memory in a more efficient way, yielding an effect almost equivalent to increasing its amount — with no expenses whatsoever! Sounds good? Read on.
Forgetting
24 April 2008
It has just occurred to me that the best way to throwing things out of one’s mind is to let it be absorbed by something else. I guess this is oft-overlooked fact, even though it seems to be quite obvious. In particular, forcing oneself not to think about something is not a wise strategy, since it leads to mental strain and thinking more and more, eventually yielding dejectedness that can be hard to get over.
Hacking away with JSON-RPC
24 April 2008
Let’s try:
(let ((s (socket-stream
(socket-connect "localhost" 10081
:element-type '(unsigned-byte 8)))))
(write-netstring "{\"method\":\"ping\",\"params\":[],\"id\":1}" s)
(finish-output s)
(princ (read-netstring s))
(close s))
; { "result": "pong" }
; --> T
ECLM 2008
22 April 2008
What is there left for me to do in this life?
Did I achieve what I had set in my sights?
Am I a happy man, or is this sinking sand?
Was it all worth it?—was it all worth it?— Queen
Poliqarp’s new protocol
16 April 2008
The first version of the document I’ve been writing about a couple of days ago is now ready for public review. I’ll be making an initial attempt at the implementation once I return from the European Common Lisp Meeting ‘08 and write a report.