Understanding a Process, Process Segments and Segmentation Fault
In this post I am going to discuss on various segments that a process is made of and how to get rid of Segmentation Fault.What is a process made of ?#include<stdio.h>#include<stdlib.h>int...
View ArticleSystem V Semaphores Tutorial: What are they and how to implement a set of...
This post includes the following:1. Introduction to semaphores2. Introduction to System V Semaphore API.3. Basics of internal working of semaphores. 4. Implementing Resource sharing using the concept...
View Article(HTTP) Streaming a video using a program in C/C++: A tutorial on creating...
In this post I am going to talk about how you can create your own video on demand streaming server in C language under Linux/Unix Environment.If you interested in Live Streaming the video using C...
View ArticleLive streaming a video using C/C++ program : A tutorial for writing your own...
Hi everyone, this post explains how to write your own live video streaming server using C under Linux platform. If you are interested in writing a streaming server in C for streaming files using...
View ArticleBasics of Modulo Arithmetic/Modulo Mathematics
This post covers the following:1. Relation between Modulo Maths and Cryptography2. Basics of Modulo Arithmetic1. Relation between Modulo Maths and CryptographyCryptography: I call it the black art of...
View ArticleWhat happens in the background when computer mouse clicks on a hyperlink in...
Ever wondered what happens when you click a hyperlink.In this post we are going to uncover the world of a mouse click on a hyperlink in short. We A complete video explaining all the events which happen...
View ArticleImplementing the Cows and Bulls/Pigs and Bulls/Bulls and Cleots using Weak...
Before you read the contents I would suggest you to get yourself familiarized with this game. Here is a link which will help you to understand it. I remember I used to play this game with one of my...
View ArticleHow to design and develop High Performance Rich Internet Applications
GUI development is an interesting task for some and excruciating for many. It not only requires an artist's vision but also a skillful programmer who can make a GUI which can last long for years,...
View ArticleXML Parsing Test: Chrome vs Firefox ; Which is faster ?
I recently tested the XML Parsers of Chrome 19and Firefox 12. I also test Firefox 17 nightly for its memory footprint. In this post I am going to share the results of my tests. Here are the contents:1....
View ArticleAn ordered key generator for JSON
Introduction:If you were looking for LinkedHashSet in java take a look at the embedded gist by my friend Swapnil Mahajan. If you think Array.splice()[it internally shifts keys] and indexOf() [with a...
View ArticleConstant time complexity implementation of hashmap.values() in javascript
Inception: Last week I was testing jqPlot for a project and I found that, jqPlot like all other graph plotting libraries expect users to give all data point tuples [x,y] in an array. The users should...
View ArticleA recursive strategy/algorithm for hierarchical graph layouts
Recently I was involved in building an expression builder in HTML. The expression builder had to look like this.One of the prominent features of the expression builder design was that a user did not...
View ArticleOnce executing if else problem
I am using Java for giving examples in this article.I have been facing the following ever since I started programming. I call it the "Once executing if/else problem". So here is it: public void...
View ArticleNormal Approximation to Binomial Distribution
Many images used in this tutorial are copied from various sources. I don't claim ownership for them.Prerequisites1. Probability Mass Function2. Binomial distribution and its probability mass...
View ArticleChoosing the right foreground color for your background color.
Examples in this exercise, work best on chrome. I found that is not easy to choose the right foreground colour for a given background colour. This problem intensifies even more when you have a set of...
View ArticleExploring CSS3 Effects
Today I explored CSS3 a bit and created an envelope to understand the Stitch effect, shadows, transformations and transitions. Except for one effect which I copied (and later modified) from here,...
View Articlejscodeperfgraph: A library for measuring and graphing time spent in...
Today I finished up working on a library called jscodeperfgraph. Below is the information about what it is and what it does. Here is the link for downloading the library.jscodeperfgraphA library for...
View ArticleMy accidental experiment on seller psychology
I live in the world's second most populous country and often when I go to buy something on a nearby grocery shop there are 4 to 5 people inside before me. Most of them haggling with the shopkeeper over...
View ArticleBeing unfair to others while being generous
This article is about how I accidentally found a way to be unfair to others while despite being generous from their perspective. I am not sure if what I did justifies the title of the post, but I am...
View ArticleDesign for Coffee cards
I thought to do some design activity this weekend. Based on an idea of a friend about making cards for people who want to ask others out for coffee/beer, here is my design. Made with HTML and CSS.On...
View ArticleGenerating list of Two level interactions and quadratic effects for doing...
I was trying to do a stepwise regression in SAS and only wanted to check for two level interactions and quadratic effects. While I could use the "|" operator to specify that all possible interactions...
View ArticleMake your Linux gnome-terminal look better !!! (using cowsay/cowthink)
In this post I am going to share a shell script which if you add to your .bashrc file, will generate random funny images made of ASCII characters with a quote attached to them, each time you open a...
View ArticleCreating your own video chatting service using flumotion on linux: A tutorial...
The video chatting sometimes gets slower because of server slow responses to video streams when we use them on gmail or any video chatting services.So, better option is to use your own video server....
View ArticleBeginning C/C++ programming under Linux (assuming Debian GNU/Linux based...
Contents:1. Installing utilities needed to run a C/C++ program.2. Making a simple hello Linux program.3. <iostream> lost its ".h" extension. Your first C++ program.4. Using Manual pages for...
View Article