Category Programming

Monitor experiment results on your Windows PC and Send progress report by Email using Python

Here is a python code which monitors the number of files in folders and sends a report every 15 minutes using Outlook account and Python (3.4). The code assumes that the interest is to get the number of files (the results are in files and thus interested in the number of files). However, the code […]

Import Wikipedia dumps using mwImport on Windows

In this post, i will present the step by step procedure to import locally present XML dumps into MYSQL data base. The final outcome of this post is local copy of Wikipedia is available. Please note that all tools used during the import already developed, and no contribution from my side is performed unless specified […]

QEMU-The Universal Simulator

Using QEMU to simulate an architecture

What the Hell are Memory mapped I/O and I/O mapped I/O?

I/O SPACE REGISTERS AKA I/O Mapped I/O Some CPU architectures (notably Intel x86) reference device registers using I/O machine instructions. These special instructions reference a specific set of pins on the CPU and therefore define a separate bus and address space for I/O devices. Addresses on this bus are sometimes known as ports and are […]

Linux Kernel Module Development

What exactly is a kernel module? Modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to […]

Complexity Analysis

What is the Complexity of the following Code: for(int i=2;  i<N;  i=i*i) { count++; } Hint: it is not lg(N) 🙂

Josephus Problem

Josephus Flavius was a famous Jewish historian of the first century at the time of the Second Temple destruction. During the Jewish-Roman war he got trapped in a cave with a group of 40 soldiers surrounded by romans. The legend has it that preferring suicide to capture, the Jews decided to form a circle and, […]