Category Archives: Project

Creating a Calculator for Android devices

This post describes how to create a calculator application especially to help in competitive coding for android devices. The apk created can be used to install the application on different devices. The project has been designed for entry level android programmers. The Calculator Application The calculator can handle arbitrary large numbers Arithematic operations implemented :… Read More »

Concurrent Merge Sort in Shared Memory

Given a number ‘n’ and a n numbers, sort the numbers using Concurrent Merge Sort. (Hint: Try to use shmget, shmat system calls). Part1: The algorithm (HOW?) Recursively make two child processes, one for the left half, one of the right half. If the number of elements in the array for a process is less… Read More »

Creating a C/C++ Code Formatting tool with help of Clang tools

Today we are going to discuss formatting files in the user’s workspace by their extension. For this we are going to make use of Clang’s format tools. Prerequisites: Linux Machine Python Clang Tool Setup: Install Python using the following command: sudo apt-get install python Install Clang Format Tools sudo apt-get install clang-format-3.5 Create a python… Read More »

Implementation of Minesweeper Game

Remember the old Minesweeper ? We play on a square board and we have to click on the board on the cells which do not have a mine. And obviously we don’t know where mines are. If a cell where a mine is present is clicked then we lose, else we are still in the… Read More »

Basic Graphic Programming in C++

Introduction So far we have been using C language for simple console output only.  Most of us are unaware that using C++, low level graphics program can also be made. This means we can incorporate shapes,colors and designer fonts in our program. This article deals with the steps to enable the DevC++ compiler to generate graphics… Read More »

Creating a PortScanner in C

Picture a bay where lots of private boats are docked. The location is called a seaport, literally a port at or on the sea. Everyone wanting to dock there, requesting landing services uses the same port. Seaports work with berth numbers assigned to individual boats. The port name and the berth number combine into the… Read More »

Creating a Proxy Webserver in Python | Set 2

Prerequisite: Creating a Proxy Webserver in Python – Set1 In this tutorial,  few interesting features are added to make it more useful. Add blacklisting of domains. For Ex., Create a list of BLACKLIST_DOMAINS in our configuration dict. For now, just ignore/drop the requests received for blacklisted domains. (Ideally we must respond with a… Read More »

OpenCV C++ Program to blur a Video

The following is the explanation to the C++ code to blur a video in C++ using the tool OpenCV. Things to know: (1) The code will only compile in Linux environment. (2) To run in windows, please use the file: ‘blur_video.o’ and run it in cmd. However if it does not run(problem in system architecture) then… Read More »

A Number Link Game

The Game : Consider an n × n array of squares. Some of the squares are empty, some are solid, and some non-solid squares are marked by integers 1, 2, 3, … Each integer occupies exactly two different squares on the board. The task of the player is to connect the two occurrences of each… Read More »