Monthly Archives: August 2011

Strip Chart

Strip chart is the graphical representation of the work progress of the project. Different colours are being used to represent different stages of progress. Actual work expands in sections from one point to another and is divided into small patches. Each of the sections (read patched) undergo different stages.

Let us understand it with an example. Suppose we have to build a road of 1 KM. The work can start from any portion and it undergoes several (approval) stages. Let us assume that there are four stages S1, S2, S3 and S4. If there is no work done then it is under stage S1 and if the work is completed it is in stage S4. S2 and S3 are intermediate stages. Let us divide the complete road into small segments of 100 meters each. At some point of time let us assume that the status of the complete road is as follows :

Segment Stage
0-100 S3
100-200 S2
200-300 S2
300-400 S1
400-500 S4
500-600 S4
600-700 S3
700-800 S3
800-900 S1
900-1000 S1

To represent this in a easy and meaningful manner, a graphical representation can be very useful, which may depict the sections as well as their current stages with help of coloured lines. We use two array to store this status, one to store the start and end point of the segment and other to store the stage. So our array will have following data:

Segment[] = {0,100,200,300,400,500,600,700,800,900,1000}

Stage[] = {S3,S2,S2,S1,S4,S4,S3,S3,S1,S1}

If Segment array is containing ‘n’ elements then Stage array must contain ‘n-1′ elements. Stage[i] represents stage of the segment Segment[i] to Segment[i+1] where i = 0 to n-1. For example Stage[2] i.e. S2 represents the stage of segment 200-300.

Now, the big question – how have incorporated this. To build the chart in the browser we have to use a table of one row having multiple columns (managed dynamically). We will club same adjacent stages in the strip chart and make it appear as a composite patch. Thus to prepare the strip chart now (with composite patches), we will build new array as follows:

Segment[] = {0,100,300,400,600,800,1000}

Stage[] = {S3,S2,S1,S4,S3,S1}

To display above data in strip chart we need a table with one row and six columns. Before composite patches:

0               100               200               300              400               500              600               700              800              900              1000

After composite patches:

0               100               200               300              400               500              600               700              800              900              1000

We can put the range and status message inside the columns of the table but the width of the column is dynamic so its width may not accommodate the content. So we can put the range and status message in tool-tip.

This article is also published in monthly newsletter F9 of Knowledge Management group of Reliance Infrastructure.

Delete a Skype Name from the Sign-In Screen

If you are using Windows XP:

  1. Quit Skype. In the system tray at the bottom right of your screen, right-click the Skype icon and select Quit.
  2. Click Start > Run.
  3. Type %appdata%skype into the Run window and click OK. All the files held in the Skype folder in your Program files appear.
  4. Delete the folder named after the Skype Name you wish to remove from the sign-in screen.

If you are using Vista or Windows 7:

  1. Quit Skype. In the system tray at the bottom-right of the screen, right-click the Skype icon and select Quit.
  2. Click Start. In the blank field that appears, type run. Press the Enter key.
  3. In the Run window that appears, type %appdata%skype and click OK.
  4. All the files held in the Skype folder in your Program files appear.
  5. Delete the folder named after the Skype Name you wish to remove from the sign-in screen.

If you cannot see the folders mentioned above, it may be because they are hidden folders. To make them visible, press CTRL + H.

If you are using Linux:

  1. Quit Skype.
  2. Go to /home/YOURLINUXUSERNAME/.Skype and delete the folder with the Skype Name you no longer wish to use.

Now start Skype. The Skype Name you have deleted is no longer available on the sign-in screen.

Adding Virtual Host to Apache in Ubuntu

Now that I have Ubuntu installed on my computer and the Apache web server is working. I need to configure a virtual host. Right after you get Apache going, it defaults to serving from a default location, in this case /var/www. Any http requests coming into the box are all routed to that directory.

But Apache supports multiple hosts and I want to add one virtual host to Apache so that if I route say example.com to my IP, I want it to be served from its own directory. The default /var/www has system ownership and would need to be changed. So I’m going to create a directory for example.com site under my user directory. So I’ll create /home/rashid/htdocs/example to host the files for this site.

Step 1: create /home/rashid/htdocs/example to host the files for this site.

Now we need to make Apache use them. In the default configuration, Apache is already set up to support multiple virtual Hosts. In order to get the new sites working, we need to create a couple of configuration files in the /etc/apache2/sites-available directory, then enable them, and then restart Apache.

If you look in the sites-available, you’ll find a file called default. This represents the default Apache serving configuration. Copy this file twice to serve as a basis for the new configuration files.

Step 2: cd /etc/apache2/sites-available
sudo cp default example

You need to make two or three changes to this file, and add one line.

Step 3: Put your email address against ServerAdmin. If you want, you can make the value a real e-mail address.

Step 4: There are also two lines labelled DocumentRoot and another in a <Directory> statement that have the path to the directory being served – in this case, it should be /var/www/. Change both of those to the directory that will contain the new site files – /home/rashid/htdocs/example/.

Step 5 : Now after the ServerAdmin line add a new line:
ServerName example.com

Step 6: If you want to have nickname of your host then add a new line after ServerName:
ServerAlias www.example.com

Now we have to tell Apache to serve the new domains. Ubuntu has a couple of convenience commands to enable and disable sites.

Step 7: So, to enable the new sites, enter sudo a2ensite example1 . This command copy the configuration files you created into the /etc/apache2/sites-enabled directory. We’re almost there.

Finally, you have to restart Apache2 so that it reconfigures to serve the new sites.

Step 8: Simply enter sudo /etc/init.d/apache2 reload.

Now we are done with the virtual host configuration in easy 8 steps.

Integrate Lotus Notes & Primavera

Currently I am doing integration of Lotus Notes and Primavera. Basically I need to read the plan from Primavera and also write back the status. To do the integration first of I need to install the necessary software on the client(the computer from where Integration APIs will be used to access data) and the server as well (Primavera server should be installed on this computer).

  • Install Primavera Integration API in client mode on the client machine and in J2EE application mode on server.
  • Create an user and assign license to the user to call Integration APIs to access data from Primavera.

Now I have ready my tools to dig the data from Prmavera server. I need to import all required classes into my agent to use the Integration API.

  • I imported intgclient.jar file from “C:Program FilesPrimaveraIntegrationAPIclientlib” directory into my agent. I installed Primavera in “C:Program FilesPrimaveraIntegrationAPI” directory.
  • Now everything is set and I can write the real code to read and write from the server.