pts.blog

2010-01-31

How to swap two nodes in a doubly linked list

›
This blog post gives example C code how to swap two elements (nodes, items) of a doubly linked list. The code works for both circular and no...
3 comments:
2010-01-30

How to make Midnight Commander exit to its current directory

›
This blog post gives instructions how to make the current directory of the shell calling Midnight Commander be mc's current directory up...
5 comments:
2010-01-16

How to regenerate the Apache SSL key and certificate on Debian Lenny

›
This blog post explains how to regerated the Apache 2 SSL server key and certification on Debian Lenny. The default, self-signed certificat...
2 comments:
2010-01-08

Emulating Stackless Python using greenlet

›
This blog post documents why and how to emulate Stackless Python using greenlet. Stackless Python is an extended version of the Python lan...
9 comments:
2010-01-03

Does string append run in linear time in Python?

›
In Python 2.x, the string append operation ( string1 += string2 ) runs in average linear time (in the length of string2 ) iff there is only ...
2009-12-31

How to fix the Ctrl-Y Ctrl-Z inconsistency in GNOME Terminal with international keyboard layouts

›
This blog post describes and fixes an inconsistency between some keys with or without Ctrl in GNOME Terminal with international keyboard la...
2009-12-19

Experimental HTTP server using Stackless Python

›
This blog post documents my experiment to write a non-blocking HTTP server based on coroutines (tasklets) of Stackless Python . My goal was ...
1 comment:

Minimalistic client for Amazon S3 (AWS) in Python

›
I've written py-mini-s3 , a minimalistic client for Amazon S3 (AWS) in pure Python. It supports the GET and PUT operations. See its sour...
2009-12-15

Sex, Unix style

›
My instruction sequence compilation of the traditional Unix sex theme: date ; touch ; kiss ; grep ; strip ; unzip ; finger ; mount ; fsck ...
1 comment:
2009-12-06

Polynomials in Python with operator overloading

›
This blog post is a fun example for implementing univariate polynomials with operator overloading in Python. It is almost a domain-specific ...
2009-11-17

How fast does 8g in Google Go compile?

›
To get an idea how fast Google Go code can be compiled, I've compiled a big chunk of the Google Go library code with the default 8g comp...

How to write a program with multiple packages in Google Go

›
This blog post explains how to write a Google Go program which contains multiple packages. Let's suppose your software contains multiple...
2009-11-15

FUSE protocol tutorial for Linux 2.6

›
Introduction and copyright This is a tutorial on writing FUSE (Filesystem in UserSpacE for Linux and other systems) servers speaking the ...
1 comment:
2009-11-12

Buffered IO speed test of Google Go

›
This blog post presents the buffered IO speed test I've done with the standard implementation of the programming language Google Go , as...
2009-11-10

How to read a whole file to String in Java

›
Reading a whole file to a String in Java is tricky, one has to pay attention to many aspects: Read with the proper character set (encoding...
1 comment:
2009-11-08

How to convert a Unix timestamp to a civil date

›
Here is how to convert a Unix timestamp to a Gregorian (western) civil date and back in Ruby: # Convert a Unix timestamp to a civil date ([...
2 comments:
2009-11-07

AES encpytion in Python using C extensions

›
This blog post gives example code how to do AES encryption and decryption in Python. The crypto implementations shown are written in C, but ...
2009-11-03

How to use \showhyphens with beamer

›
When using \showhyphens with the beamer LaTeX class, the output of \showhypens doesn't appear on LaTeX's terminal output or in th...
2009-11-01

Tiny, self-contained C compiler using TCC + uClibc

›
This post presents how I played with a small C compiler and a small libc on Linux. I've combined TCC (the Tiny C Compiler ) 0.9.25 and u...
6 comments:
2009-10-25

How to enable autologin in Ubuntu Jaunty with GDM

›
To enable automatic login in Ubuntu Jaunty running GDM (default) without clicking, add something like this to the [daemon] section of /etc/...
2009-10-23

Using the Hama MCE remote on Linux with MPlayer

›
This blog post describes how to control your MPlayer media playback using the Hama MCE remote control on Linux. The instructions and softwar...
2009-10-22

Design and print your own geek clock with LaTeX and TikZ

›
Would you like to have your custom clock for geeks (geek clock, math clock)? You can design and print the front plate of your own analog ge...
3 comments:
‹
›
Home
View web version
Powered by Blogger.