Archive for the ‘Articles’ Category

pthread mutex vs pthread spinlock

Update 06/16/2009: On several occasions, commentators to this article pointed out that this post is somewhat incomplete. Therefore, before I continue, I would like to make some things clear. Before considering the code below, please note that spinlocks are totally useless on uni-processor computers. This is due to a nature of spinlocks, which I will […]

Is desktop Linux too fragmented to succeed?

This question is especially relevant after yesterday’s fiasco. I ran into an article whose name is exactly Is desktop Linux too fragmented to succeed? The article argues that the fragmentation is what keeping Linux Desktop from beating Mac OS and even Windows. It is because the effort to create Linux desktop is scattered across multiple […]

Ubuntu 9.04 with Wubi – Failure

Once every year or so, I get so frustrated with Windows Desktop that I decide to install Linux. I am a big fun of Ubuntu Linux. I use it for many things, this includes a server platform for this web-site. So most natural choice for me was to try Ubuntu 9.04, the latest version. I […]

A new kind of virtualization

There are plenty of virtualization technologies. There are organizations like VMware, VirtualBox and XEN, whose virtualization allows one to run several virtual computers using one physical computer. I worked at a company called ScaleMP. ScaleMP’s technology, vSMP, turns multiple physical computers into one large computer. Today I was looking for something different. I was looking […]

Python’s optparse for human beings

In this article I cover in depth Python’s optparse module. It presents most useful recipes and is a good handbook when parsing command line options in a Python program.

Signal handling in Linux

This article introduces signals in Linux to the reader. It explains the nature of signals, how to use them and gives few small use examples.

Backup and restore your Linux installation

Table of contents Quick links Introduction Creating the backup What to backup Figuring out device file Preparations Actual backup Restoring from backup Preparations Restoring Restoring entire hard disk Restoring single partition Quick linksBACK TO TOC Backing up Restoring backup up disk Restore backed up partition IntroductionBACK TO TOC Backing up Linux installation and restoring it, […]

How to send SMS message with Python

I can’t beleive all the things that you can do with Python. Obviously, whatever you can do with Python, you can do with a whole bunch of programming languages out there. What I am really impressed with, is the ease. Few weeks ago I was looking for a way to programatically send myself SMS on […]

Creating new application on top of SSH

Table of contents Quick links Introduction Creating the backup What to backup Figuring out device file Preparations Actual backup Restoring from backup Preparations Restoring Restoring entire hard disk Restoring single partition Introduction How scp works You can run commands on a remote computer using ssh Back to scp Creating our own SSH based application The […]

SSH crash course

About this article I would like to do two things in this article. First I would like to tell you about SSH. How to make it work. How to use public key cryptography to login to a remote computer. How to execute remote commands and copy files to/from a remote machine. On the other hand, […]