How to edit Icewind Dale EE savegame

I have spent countless hours playing role-playing video games. Recently, I bought Icewind Dale: Enhanced Edition for Linux. It is still a great experience, but I have to admit that I have gone to the dark side and modified the save file. Just think of it as a programming exercise. ...

How to explain umask

I wrote a simple application to explain the current UMASK value. It was a while ago, but I want to share it with you as it is quite a useful utility. ...

How to perform action after SQL statement

Sometimes I want to monitor and log particular PostgreSQL statements or execute other kinds of external action. I am using the notify mechanism and slightly modified sample application found in the database documentation to achieve this. ...

How to forbid script execution from different directory

Today I have found an interesting issue as I tried to forbid shell script execution from different directory. ...

Kolab 3.1.5, Debian 7.5 and issue during setup process

After a longer period of time, I have decided to install Kolab and use it as a personal information manager. The installation process went as expected until the setup process tried to install the Roundcube database and failed miserably. ...

Learn C and build your own programming language

Learning programming may seem like an impossible feat, that being said however, with the right resources and information just about anyone can learn the most essential language that is used today. ...

How to determine the sunrise and sunset times

A couple of days ago, I mentioned calculating the sunrise and sunset times. This is an interesting problem, so after reading Astronomy Answers – Position of the Sun, I quickly implemented it using C language. It is only an experiment, so results are approximate. ...

How to display min and max values of the basic object types

As a small experiment, I wrote an elementary C program to display min and max values of the basic object types. ...

How to read CCQ on Ubiquiti devices

Last year I published the blog post Cacti – How to graph CCQ on Ubiquiti devices. Recently I updated ubiquiti_ccq.pl script, so it will work with all NanoBridge and PowerBridge devices. ...

How to graph CCQ on Ubiquiti devices

As you probably already know, the CCQ value is not available via SNMP (AirOS 5.5.2), but of course it doesn’t mean it can’t be graphed using Cacti. To graph CCQ on Ubiquiti devices, you just need to use a simple script to read the desired value using the web interface. ...

WordPress – How to check if user is logged in

Function to check if user is logged in is is_user_logged_in(). It would return true if user is logged in and false otherwise. ...

How to rollback Rails database migration

Rollback Rails database migration. ...

Cannot build mysql gem?

If you saw the “Failed to build gem native extension” error while building native mysql gem then you need to install libmysql++-dev package. ...

Rails migration example

Let’s assume that we want to add friendly_name field to the bookmark_categories table. ...

How to run specific Rails tests?

Execute specific Rails tests. ...

How to test regular expressions

Test regular expressions using a web-based interface. ...

How to hide posts from selected category on the main WordPress page

Hide posts from the selected category on the main WordPress page. ...

Zen Photo – Polaroid-like effect

Fortunately, it is the last time I try to achieve such effect as I am switching gallery to the Zen Photo so lets see result at first: ...

Ruby and RMagick – Quote with Polaroid-like effect

To create a Polaroid-like effect you just need the RMagick gem and a couple of small functions. ...

How to use ImageMagick effects with Coppermine

After getting fun with Coppermine Photo Gallery for some time, I wanted to achieve a polaroid-like effect (using ImageMagick) for thumbnails and intermediate pictures. ...