Tag Archives: Python

Memory mapped files in OS

Introduction Today, I am going to talk about memory mapping, a typical topic in operating systems design. I will provide a short summary of memory mapped files in an easy to follow manner. Before we start, I recommend that you …

Read more »

Python mutex example

Introduction I highly recommend that you check out the following article to get a quick idea about different terms used in operating systems with regard to concurrency, multitasking and threading. Back to our topic, In this short post, I am …

Read more »

Python Power Function

Syntax The power function in Python can be easily computed by importing the math module as follows: import math # This will print 8 which is 2 to the power 3 print pow(2, 3) You can alternatively use the ** …

Read more »

Python for loop

Introduction Any computer algorithm requires two control flow structures: iteration and selection. Our topic today is mainly about iteration using the Python for loop. The goal of this post is to achieve three objectives: Provide a beginner introduction to the …

Read more »

Python Unittest Example

Some time ago, I applied for a software QA position and was given this assignment: Problem Given 2 input files with rows in the format: <account ID><billing ID><Sign-up Date in MM-DD-YYYY format> Write a python script to print: All accounts …

Read more »

Web Py SSL

I assume you have a Mac computer and web.py is already installed. I also assume openssl is installed. Follow the steps below to enable SSL on your web server. openssl genrsa -des3 -out server.key 1024 openssl req -new -key server.key …

Read more »

Python Web Service Example

Introduction I was testing a client software which communicates with a server software using JSON format. The behavior of the client depends on the instructions specified in the server response. In order to test the client I had to modify …

Read more »

Page 1 of 212