Linux

How to Install and Configure Subversion Server with HTTP Access

Hi all, Recently I came across with the $subject and I was unable to find a comprehensive tutorial. So In this post I’ve decided to show how to install and configure apache subversion server and configure the server to access via http in ubuntu. First of all update the apt-get by the following command. sudo …

How to Install and Configure Subversion Server with HTTP Access Read More »

How to Debug WSO2 Carbon Kernel Tutorial

In this tutorial I’m going to show you how to debug carbon kernel. This method is actually called the remote debugging. *For this you’ll need a carbon which build from the source. Refer this post. *An IDE, For this I’m using IDEA. *Carbon based product I’m using WSO2 Application Server for this tutorial. Ok now …

How to Debug WSO2 Carbon Kernel Tutorial Read More »

How to Build WSO2 Carbon 4.2.0 Tutorial for a newbie

Hi all, in this post I am going to describe how to build WSO2 carbon from source. Now carbon is moving towards it’s newest version carbon 5 (C5).  prerequisites 1. Linux (Mine is Ubuntu 13.04)2. Oracle Java 1.6 (1.7 is still not supported)3. Apache Maven 3.0.5 (see post for installing apache maven)4. Subversion I assume …

How to Build WSO2 Carbon 4.2.0 Tutorial for a newbie Read More »

How to install Apache Maven in Ubuntu 13.04

In this post I’m going to explain n how to setup apache maven on your ubuntu box.  First Download the apache-maven-3.0.5-bin.tar.gz from the http://maven.apache.org/download.cgi website. Then go to the downloaded folder and extract the downloaded bundle using the following command. tar -zxf apache-maven-3.0.5-bin.tar.gz Then copy that folder where ever you want in your computer. In this example I …

How to install Apache Maven in Ubuntu 13.04 Read More »

Non Blocking I/O using SELECT System Call in Linux

Today we are going to explore a very important system call in Linux, The Select system call. Select System call is use  when we need non blocking executions. The use of the select can be explained via an example code. Lets assume that we use a socket program with a server and few client programs. …

Non Blocking I/O using SELECT System Call in Linux Read More »

How to send Complex Data Structures in a Socket Program

Hi all, Hope you guys are doing well. I was busy with my work last few days. Today I’m going to write a post about sending Complex data structures using a socket program. In this post I assume that you are somewhat familiar with the socket programming basics. In the following example we are creating …

How to send Complex Data Structures in a Socket Program Read More »

Network Simulation using NS2

Before deploying a network it is necessary to check how the network would behave after the deployment. After deploying the network sometime it may not function/behave as expected. So it is better to get some idea before the real deployment.  There are commercial simulators of course,  but the problem is that they are very expensive. So NS2 …

Network Simulation using NS2 Read More »

Dijkstra Algorithm (Shortest Path Algorithm ) Java Code

Dijkstra Algorithm is used find the shortest path in a directed graphs. Following is a java implementation of the Dijkstra Algorithm. class Dijkstra { public static void main(String[] args) { int length = 300;//length of the 2-D array int adjMatrix[][] = new int[length][length]; CreateMatrix cm = new CreateMatrix(); cm.createMatrix(length); adjMatrix = cm.readMatrix(adjMatrix); Dijkstra dk = …

Dijkstra Algorithm (Shortest Path Algorithm ) Java Code Read More »

What are these System Calls?

What are these System calls with respect to Operating Systems?. More simple definition I could give you is that System Calls is the interface between the Operating System and the User Programs. These functions may be vary with respect to the Operating System Type. Systems calls are machine dependent and in Unix Systems System Calls …

What are these System Calls? Read More »