Quantcast
Channel: ( f o o b a r . l u )
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Recovering from a corrupted git repo

I do a lot of work on the go. Offline. Sometimes it takes a long time to push changes to a remote repository. As always, Murphy’s law applies, and the one repo that explodes into my face is the one...

View Article



Formatting PostgreSQL CSV logs

The problem Today I needed to keep an eye on PostgreSQL logs. Luckily, I decided upon installation to log everything using the “csvlog” format. But there’s a small catch, depending how you read that...

View Article

Uploading the contents of a variable using fabric

More than once I needed to create files on the staging/production box which I had no need of on the local development box (For example complex logging configuration). This fragment contains a simple...

View Article

Automagic __repr__ for SQLAlchemy entities with primary key columns with...

According to the Python documentation about __repr__, a call to repr() should give you a valid Python expression if possible. This is a very useful guideline. And it is also something I I like to...

View Article

Image may be NSFW.
Clik here to view.

Introduction to google-closure with plovr

I’m about to embark on a quest to understand the development for custom google-closure components (UI widgets if you will). Reading through the relevant section in “Closure – The Definitive Guide”...

View Article


Colourising python logging for console output.

I’ve seen my fair share of code fragments colourising console output. Especially when using logging. Sometimes the colour codes are directly embedded into the format string, which makes it really hairy...

View Article

Setting up Cygwin/X

Setting up Cygwin/X In this article we will set-up Cygwin with an X11 server so you can use X11 forwarding to run remote graphical applications on Windows. To allow a passwordless log-in, we will use...

View Article

Optimising the ipaddress module from Python 3.3

As of Python 3.2, the “ipaddress” module has been integrated into the stdlib. Personally, I find it a bit premature, as the library code does not look to be very PEP8 compliant. Still, it fills a huge...

View Article


postfix config from scratch.

There are many postfix tutorials out there. I’ve always wondered what the hell I was copy/pasting onto my system and decided to start (nearly) from scratch. I took one of those tutorials (don’t...

View Article


Basic Postfix Config, Backed by PostgreSQL

Following my previous post, I now have a working config with PostgreSQL. This post is meant to set up a config which is “just enough” to get postfix working with PostgreSQL. There are many tutorials...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images