Welcome!

Postfix Store and Foreward Howto With Anti-Spam Configuration

Feb. 27, 2015, 11:06 a.m.

A Postfix store and foreward configuration is needed when setting up a secondary MTA. If your primary MTA is down, then all mails will be sent to the secondary "store and forward" postfix server. As the name implies, all emails will be recieved and stored locally until your primary MTA comes back online. [read more]


Underscores in Python

Feb. 18, 2015, 8:15 a.m.

This blog post tackles the use of the _ in Python. You surely have seen variables like _foo or method names such as _bar or the most common <u>baz</u>. You may also have seen _ by itself. In this post we shall see the different usages of _ . [read more]


Install Node.js and npm using Homebrew on OS X

Feb. 6, 2015, 9:17 p.m.

Homebrew, the missing package manager for OS X. The standard Node.js and npm install method for OS X is to download a pre-built installer for your platform, install it, and make sure it’s on your $PATH. But since you have homebrew, you have a better way of installing it and its as easy as pie! [read more]


Install phpPgAdmin on CentOS 7

Jan. 9, 2015, 10:13 p.m.

Here is the step by step instructions on how to install phpPgAdmin on Centos 7. PostgreSQL is a great database and phpPgAdmin is a web-based administration tool for PostgreSQL. Probably most postgresql DBA's will use the command line or pgadmin3 but if you are like me, using postgresql in a vps webserver somewhere then phpPgAdmin is a great timesaver tool. [read more]


HowTo Create Pretty Directory Listings with Apache

Jan. 9, 2015, 9:29 p.m.

There are many times that serving content such as files and other media with a basic apache directory listing is enough. But the default directory listing is not very pretty and also has a limit in the length of the number of characters in the filename that is displayed thus making it harder to read. This HowTo will show you how to add a header and a footer and style the directory listing to your hearts content. [read more]


Install KVM guest using command line

Dec. 16, 2014, 8:46 a.m.

The gui virt-manager is nice to have and helps us manage/create KVM guests easily, but today I ran into a situation where X and VNC was not installed on the host and I was not allowed to install them. As a result, had to resort to command line tools to do the task. This tutorial/howto documents all the required knowledge to install , clone, edit KVM machines using the command line. [read more]


Django RuntimeError: App registry isn't ready yet with Tastypie

Aug. 22, 2014, 9:31 a.m.

Django 1.7 way of app-loading has changed and as a result, Tastypie is broken for 1.7 and although a patch is already out, there is yet no release so in order to use tastypie with Django 1.7 you have to patch compat.py yourself. This can be easily done by the following steps: [read more]


Installing ESXi On VMWARE Fusion on OS X

June 11, 2014, 9:29 a.m.

Needing a development environment for my scripting tasks on ESX, tonight I decided to install ESXi on my Mac. I have 32 Gigs of ram and lots of disk space to spare so I decided to install VMware fusion and then virtualize ESXi in it. I thought it would be harder but frankly it was not!. [read more]


Howto Install Nginx on CentOS 6 using Yum

March 12, 2014, 4:17 p.m.

nginx is a high performance web server software. It is a much more flexible and lightweight program than apache. This is a beginners tutorial. It will show you how to install and configure a basic virtualhost so that you can run your website on nginx. [read more]


Install Postgresql On Centos 6.5 Via-Yum

March 3, 2014, 7:39 a.m.

Installing PostgreSQL on a Centos 6.5 is as simple as "yum install postgresql" but you're probably here because you want to install a newer version of PostgreSQL and also want more information on how to configure it. I Do not use the stock postgresql myself. I always want the latest. Centos 6.X ships with postgresql 8.4.13 but postgresql 9.x has been out for a while now. So In this howto, we are going to be installing Postgresql 9.3. [read more]


Signal and Slots Implementation In Python

Dec. 16, 2013, 4:18 p.m.

"Signals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks". I literally copied that off from the QT Signals and Slots documentation. Until recently I didn't really use signal and slots much in my python code. I knew about them but did not really see the need. Until I started using QT and realized how great they are at decoupling my classes. [read more]


Enable GZIP Compression in NGINX

Dec. 9, 2013, 9:24 a.m.

Nginx comes out of the box capable of compressing your web pages and other contents. All that you need to do is enable it. The client must support receiving gzip compressed data. All you need to do is put the following configuration in your website's virtual host configuration or in the default. [read more]


Enable Safari Developer Tools

Sept. 26, 2013, 9:22 a.m.

Personally I use Macs, 27 inch 2011 Mac for my desktop [pimped up with 32 gigs ram which I upgraded myself for less than 200 euros] and on the go, I use a macbook air. Safari is the default browser and I have no issues with it. Apart from the fact that I have to consciously open Chrome when I am developing a website so that I can use Chrome's developer tools. Sure I could just make Chrome the default browser but I don't want to. Which got ... [read more]


Lighttpd Install Howto with yum on CentOS

May 14, 2013, 10:30 a.m.

In this mini how to, we shall look at installing Lighttpd on a CentOS server. Lighttpd as its name implies is a light https web server. It is amazingly fast, secure and is optimised for high performance work loads. The server uses very little memory compared to many other web servers and also low on cpu load. It has the following advantages: [read more]


Howto Backup and Restore your PostgreSQL databases

Nov. 14, 2012, 4:21 p.m.

Every installation of postgresql datbases comes with the command line tools pg_dump and pg_restore. With this two commands we have all that we need to backup and restore our databases. Of course there are also graphical tools that we can use to backup and restore. [read more]


Installing Nginx And PHP on OS X

Aug. 22, 2012, 9:26 a.m.

I hate using PHP. There was a time I loved it and looked forward to the release of PHP 5. These days I I use it only when I really have to, for example being asked to update or troubleshoot an old code base. Normally I would just create a virtual machine with linux on it, but this time I thought I would use homebrew to instal a local stack on my Maverick development machine. So here goes: [read more]


How-To: Recover Root Password Under CentOS With Single User Mode

May 9, 2012, 7:54 p.m.

It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.<br/> This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password. [read more]


How To Setup Crontab Under Linux Or Unix

Feb. 15, 2010, 9:20 a.m.

How do I add a cronjob on Linux? Thats a question even some veterans ask all the time, something that is easily forgotten. At times I have forgotten the exact incantation so I wrote this down. I hope it is useful to someone else as it is for me. We use cron jobs to schedule commands to be executed periodically. Entries in the cron can be commands as you would execute them on the command line or they can be scripts. The cron service runs in the background and reads ... [read more]


How To Check Swap Usage On Linux

Nov. 1, 2009, 11:39 p.m.

How do I check swap (paging) usage under Linux operating systems from the command line?Swap space (also known as paging) is nothing but computer memory management involving swapping regions of memory to and from storage. You can see swap usage summary by device using any one of the following commands. You may have to login as root user to use the following commands. The maximum useful size of a swap area depends on the architecture and the kernel version. For Linux kernels after v2.3.3+ there is no ... [read more]