Category Archives: GBlog

Getting started with Classification

Introduction As the name suggests, Classification is the task of “classifying things” into sub-categories.But, by a machine! If that doesn’t sound like much, imagine your computer being able to differentiate between you and a stranger. Between a potato and a tomato. Between an A grade and a F- . Yeah. It sounds interesting now! In… Read More »

Linux Virtualization – Chroot Jail

What is a chroot Jail? A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. The programs that run in this modified environment cannot access the files outside the designated directory tree. This essentially limits their access to a directory tree and… Read More »

Mark-and-Sweep: Garbage Collection Algorithm

Background All the objects which are created dynamically (using new in C++ and Java) are allocated memory in the heap. If we go on creating objects we might get Out Of Memory error, since it is not possible to allocate heap memory to objects. So we need to clear heap memory by releasing memory for… 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. google.com, facebook.com. 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 »

Creating a Proxy Webserver in Python | Set 1

Socket programming in python is very user friendly as compared to c. The programmer need not worry about minute details regarding sockets. In python, the user has more chance of focusing on the application layer rather than the network layer. In this tutorial we would be developing a simple multi-threaded proxy server capable of handling… Read More »

New features of JavaScript Arrays with ES2015

  In this article we will be discussing the new additions in ES2015 which substantially improves the way we work with Arrays in JavaScript. Array Destructuring Array destructuring allows us to assign values to variables from an array using syntax similar to the array itself. Let’s look at the code below where we have an… Read More »

OpenCV C++ Program to play a video

The following is the explanation to the C++ code to play 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: ‘play_video.o’ and run it in cmd. However if it does not run(problem in system architecture) then… Read More »