Feed

All posts

162 recent entries. Last built 8 Jun 2026, 20:36 UTC. RSS

27 Apr 2011 · hynek · Hynek Schlawack

Twisted Sybase SQL Anywhere

Using the official sqlanydb driver for Python together with Twisted’s adbapi produces not-so-occasional crashes as of today (sqlanydb 1.0.2, Twisted 11.0.0). Apparently, the official SQL Anywhere drivers aren’t thread-safe. It cost me several days to figure out because I was searching the fault in my code so I hope to spare you some pain.

12 Apr 2011 · hynek · Hynek Schlawack

Django & Postgres & SSL

I’d thought something like this is a FAQ but the database docs on postgres don’t write a bit about forcing Django to connect using SSL to the database server.

28 Jan 2011 · d_run · Miscellanea

I got gamed on Stack Overflow

Silly me. I stumbled across a question on Stack Overflow that was right up my alley, as it was something I had worked on before: Extract Relevant Tag/Keywords from Text block. The question posted by user593778 indicated that they wanted to use PHP or JavaScript to lift relevant keywords from a block of text.

21 Dec 2010 · d_run · Miscellanea

Project Euler #3 in CoffeeScript

I always figure one of the best ways to learn a new language is to try out a couple of Project Euler exercises using it. I had solved this one with JavaScript previously, but using CoffeeScript let me use some more Python-style comprehensions to get to the same solution:

7 Dec 2010 · hynek · Hynek Schlawack

Freezing Kindle

After a few months of use my Kindle started to freeze randomly. At first I blamed the cold as it happened to be winter in that moment. Fortunately, it turned out to be something different.

5 Sep 2010 · d_run · Miscellanea

Bending CSVs to your will with Ruby

I’m currently working on a large print project. It’s a membership directory for a non-profit organization and I’m laying it out with Adobe InDesign. The client handed me a CSV dump of their member database for the directory. I’ve mentioned more times than I can count how much I dislike repetition (cutting, pasting, rinse, repeat) so I cooked up some Ruby scripts to parse the CSV into various XML and plaintext formats.

13 Feb 2007 · hynek · Hynek Schlawack

LDAP: A Gentle Introduction

The perception of LDAP (Lightweight Directory Access Protocol) is ambivalent. On the one hand, it is widely supported as a common authentication backend. On the other hand, there’s very little and poor documentation mainly targeted toward a particular case (for example, replacing NIS with LDAP).

9 Feb 2007 · hynek · Hynek Schlawack

MySQL Replication

Sounds harder than it is – especially when reading the official docs. But if you want to synchronize two DBs, just tell the “master” to write a log and slave to read it.

22 Nov 2005 · hynek · Hynek Schlawack

PCAP Format for Logs

While developing a network sniffer I had to find a way to write pcap logs. However the docs I found were rather fragmented. I try to do a short roundup here. In fact, the format is pretty plain and it’s a pity that there seems not to be a quick’n’easy doc for it.