Archives
-
Augmenting Python's strftime
The Cozi Tech Blog needed some love, so I wrote a post on augmenting Python's strftime.
-
Ack - Better than Grep
On a StackOverflow question about favorite Vim plugins, I learned about Ack, a replacement for grep that's smarter about searching source trees.
-
Exuberant Ctags and JavaScript
Exuberant Ctags is an essential complement to Vim: it generates an index of symbol names (tags) for a set of source files. In Vim, just place the cursor on a function name and type C-] to go to its definition.
-
Flattening List Comprehensions in Python
Python has list comprehensions, syntactic sugar for building lists from an expression.
-
reStructuredText syntax highlighting
Vim has had syntax highlighting since version 5.0 in 1998. It quickly became indispensable. It's hard to go back to looking at monochromatic source code after you've become accustomed to syntax highlighting.
-
Hash Table Attacks
At lunch today, I told Eric about Hash Attacks: for many hash functions, it's possible to construct a large set of keys that collide. This can be used to cause a Denial of Service as hashtable operations can be induced to take O(n) time instead of O(1).
-
Command-line Tools for the Clipboard
I mentioned in my post on reStructuredText that I use a little command-line tool, pbcopy, to pipe the output into the clipboard. I finally found a similar tool for Linux, xsel.