Author Archives: jcs

Emacs for Prose

Urpo Lankinen over at the Avarthrel Blog has a post about coming home to Emacs for writing prose—specifically novels. Although he’s a longtime Emacs user, he’s long been wandering in the wilderness looking for a good writer’s editor. Emacs was … Continue reading

Posted in General | Tagged | 4 Comments

Another Emacs Trick

I just stumbled across another feature of Emacs that is new to me. If you save files by typing C-x s, then for each dirty buffer Emacs will ask if you want to save it. By answering d Emacs will … Continue reading

Posted in General | Tagged | Leave a comment

A Practical Application of Gray Codes

Gray codes are a way of encoding a a sequence of integers {0, 1, 2, …, n} so that the binary representation of adjacent integers differs by only 1 bit. For example, the1 Gray encoding for the sequence {0, 1, … Continue reading

Posted in General | Tagged | 1 Comment

Expanding File Names in Guile

I really like Guile but one very annoying thing about it is that it doesn’t expand file paths. If you want to load a file outside the current directory you have to specify the complete path. Emacs has a very … Continue reading

Posted in Programming | Tagged | Leave a comment

Literate Programming and GTD With Org Mode

Over at Eden Cardim’s Blog, there are a couple of nice posts about GTD (Getting Things Done) with Emacs Org Mode. One interesting thing about the posts is that Cardim uses the Literate Programming approach to his .emacs file but … Continue reading

Posted in General | Tagged | Leave a comment

Boolean Functions

Boolean functions are very simple. If B = {FALSE, TRUE } then a Boolean function of n variables has domain Bn and range B; that is f: Bn → B. This limits the number of possible functions. For example, there … Continue reading

Posted in Programming | Tagged | Leave a comment

Huffman Coding

Over at Harder, Better, Faster, Stronger, Steven Pigeon has a nice post on Huffman codes. He explains how Huffman codes operate and works through a pencil and paper example. Because he doesn’t give a real implementation and because the usual … Continue reading

Posted in Programming | Tagged | Leave a comment

Heaps and Priority Queues

In a previous post, I talked about FIFO queues and gave an implementation. Now I want to talk about another type of queue: the priority queue. In these queues every element has a priority and elements are removed from the … Continue reading

Posted in Programming | Tagged | Leave a comment

Sedach on Lisp Macros

Via Loper OS, here’s Vladimir Sedach on Lisp macros. He points out that the purpose of programming is automation and that once having realized that the next question is, “How can we automate our programming?” Sedach goes on to argue … Continue reading

Posted in General | Tagged | Leave a comment

Cleaning Up My Emacs Environment

While I was installing magit the other day, I decided it was a good time to do a little digital house cleaning. I keep all my important file groups—writing, software development, blogging, and personal—in Git repositories. Oddly, given that these … Continue reading

Posted in General | 6 Comments