Project Management - Component

Recently I been involved in project management and had a brush with MS Project. And I think it is a good tool. Good in the sense of presentation and information. But usability suffer because of the complexity and the flexibility.

I did some normalization of the data components and derived basically 3 things:
1) Users
2) Resource
3) Tasks

A combination of this 3 objects and its relationship basically describe the whole project.

Am I right?

The time factor is contain within the Tasks
The financial component is within the Resource and Task.
The users? Basically is the one overseeing the Tasks.

What do you think?
Simplicity is Elegance

Project Euler 5 in Python- Partial

def findFactor(num):
  factors = []
  x = 2
  while x < num :
    if num%x == 0 :
      try:
        if factors.index(x) >= 0 :
          break
      except ValueError:
        factors.append(x)
     
      altX = num/x
     
      try:
        if factors.index(altX) >= 0 :
          break
      except ValueError:
        factors.append(altX)
    x = x+1
    factors.sort()
    
  return factors
+Chi Hung Chan

Hougang By Election

Retrospective, it appears that Mr Png had a lot more mentions in Twitter than Desmond. Did it indicated the popularity? 

This is my work with Talend Big Data Studio,SQLite, IReport and Amazon EC2. Collecting data and visualize them.

I collected these data from Tweeter over a span of a few days using a script generated from Talend BigData Studio. Using EC2 I automate the data collection and store them in SQLite. Finally the data is presented in IReport and posted here in Blogspot.

Nothing interesting yet. But I want to develop something that will help me associate the area of interested that resulted from the tweeter search. I will expand into more search areas.

Date
Count


2012-06-04
27


2012-06-05
35


2012-06-06
22


2012-06-07
29


2012-06-08
55


2012-06-09
40


2012-06-10
13


2012-06-11
27


2012-06-12
27


2012-06-13
42


2012-06-14
23


2012-06-15
40


2012-06-16
17


2012-06-17
12


2012-06-18
32


2012-06-19
13


2012-06-20
29


Cloud in the World.

What does the tech people out there think? Do you think it is possible for all NAS owner to share some of that storage space and create a crowd sourced cloud? For the time being it will just be cloud storage. What happen when NAS get smarter, would a full application stack be possible?

At this point in time I think that it is possible for the applications which are running on PHP. Hmmm, I wonder will there be a NAS that will has it on JVM? A galaxy S2 at the core should be more than sufficient to power one reasonably well. Right?

The answer to the question of quite a number of problem.

In the world right now is quite a number of pressing issues. Things like global warming, green house gases, lack of portable water, lack of living space etc. Basically a lack of resources. I think have the answer. Reduce demand. We can't or can we?

However about reducing population? Spare a thought for the other species. We need space so do they. Some country are doing their part. Some are not. Reducing the population will reduce the need to produce green house gases. Solar power plant and hydro electric dam will be sufficient.

Less population also mean that each individual has more space. And will not accidentally step on another toes. Less chance for aggression and hence less chance of war. We have more resources to go around hence less need to fight for it.

Updates: 19/9/2009 6:18am +8 GMT
I am right. Popular Science just posted an article http://www.popsci.com/environment/article/2009-09/contraception-cheapest-way-curb-carbon-dioxide.
In there is a research article to back it up. India better start doing its part to control its population.


But what is making it difficult is that people do not see it that way. Economy itself preach a exact opposite. You need to be increase year on year to have an improving economy. Insurance. As the pool grow, the maturing account will get more money. Government are pushing for a higher population to prop up demand, GDP and also internal consumption.

Why can't we automate and live with the current population.

Believe in God not man.

Looking at what happen recently, monk in financial tussle, preacher in sex scandal, pastor turn singer, people in position of power due to religion. This reiterate the statement "Power corrupts. Absolute power corrupt absolutely."

Everyone do something for the sake of another. Cause and effect. Action reaction.

Marketing and Sales.

What is the difference between them? Marketing and Sales? Marketing is the action of convey the information that it is good and beneficial. Sales is this context is a noun. It refers to the activities where a certain good or services is exchange for services or money.

What is the difference between a person working in marketing and a person working in sales?
I have no idea but this is what I think are the difference.
1) Marketing make the services look good. Through the use of verbal and visual media.
1a) Sales folks make the services look good verbal and influence you into feeling the good or services are good enough for you.

Rainbow Connections


Rainbow over SengKang. It is a good sign that this estate would be a wonderful place to stay.
Posted by Picasa

Jasper Server Install in Glassfish

JasperServer, a repository for your Jasper Report template-ing needs.

Recently my colleague approached me to help him setup a reporting server and come out with the report templates for our "project". He did some research and decided to use JasperReport. (Because we have to pay for Crystal Reports haaa.)

So JasperServer was the facto for scheduling of the report. At the same time it can also help consolidate the templates and resources created from IREPORT.

So we downloaded JasperServer. But it was running on Tomcat. The installation instruction only come with Tomcat and JBoss. So well what the heck, I was familar with GlassFish and Java 6 has such good monitoring tools build in, I setup the JasperServer in GlassFish.

It was not hard.
1) Install Glassfish as per their instruction. (Their instructions is as good as it can get so you will not hear it from me)
2) Open up the Install instruction of JasperServer. In it, it will inform on the database setup. In one of the section it will list down the steps to setup mysql server. Follow it. Execute it in MYSQL. You are almost done.
3) Create the connection pool in Glassfish. The account and password are define in the steps you took in step 2. By default you may only connect locally. ie Glassfish and Mysql are on the same server. The database name is jasperserver and username should be jasperdb if you follow the instruction in 2.
4) Next create the JNDI name and tie it to the connection pool. The jndi name to create should be found in the jasperServer.war/WEB-INF/hibernate.properties. The default would be jdbc/jasperserver
5) Deploy the jasperserver.war.
6) Make correction to the hibernate SQL dialect. (This is also found in the install instruction package with Jasperserver) Then depending on which kind of installation your Glassfish is in, either Standalone or Cluster enable, you will also need to change the dialet properties in /domains//applications/j2ee-modules/jasperserver/WEB-INF and /nodeagents///application/j2ee-modules/jasperserver/WEB-INF.

Why 2 place? Well just to be safe. You can just update the domain site and upon restart the configuration should sync over to the instance. I have not figure out which portion of the Glassfish configuration control this sync process at every restart of the application server instance.

So there you have it. JasperServer in Glassfish. Much better than in Tomcat.
For someone who have been meddling with Java and middleware installation long enff, this ain't that difficult.

Debugging SSH Digest Login.

I recently when through some issue trying to find out why my SSH digest login did not work. I would like to share this experience. (Assuming that you have root access.)

Before we start off, there are generally 2 kind of ssh daemon, those based on openSSH and based on ssh.com. The difference is in the way these 2 differentiate the public key and the private key.
Hence it is important to know which is which to prevent a headache in troubleshooting it.
(You can use puttygen to find out the difference. Basically they are the same except for the formating.)

I normally use a mixture of putty and Ubuntu ssh (aka openssh ) to navigate around my work servers and my home servers. So I am pretty comfortable with both. To start off, check your sshd.config which is located in /etc/ssh/ in ubuntu. Turn the log level to debug or verbose. If you do not know, do a man on the sshd. It should tell you what sort of values you can put. Then restart your sshd daemon. Otherwise restart your server.

On your own server execute the ssh-keygen and generate your private and public key. Then cat the which is offen in the file of id_rsa.pub into the authorized_keys files within the .ssh directory.
Assuming everything is correct, you can ssh localhost and bypass the login prompt. If it cannot then execute ssh -v localhost to show more information. Still cannot, ssh -vvv localhost. Using the -v, -vv or -vvv options will throw out information with regards to the key exchange between the ssh client and ssh server. From there you will find it easier to debug your ssh digest login failure.

Common Problem:
Usually it is due to permission issue that caused the login to fail. The permission on the home folder also plays a part not just the .ssh directory. It needs to be at least a drwxr-xr-x for the ssh transaction to be successful.

Drop me comments if you want more details.

Triple Same Letter phrase.

I have started putting my msn with message starting with the same letter. Just for the sake of fun.
Today is J. My msn message for the day is James Jolly Jet.

A:
B:
C:
D:
E:
F:
G: Great Good God
H: Holy Holly Hole
I: Ideas initially innocent
J: James Jolly Jet
K: Kermit Kick Kelvin
L: Lame Loose Line
M: Mary Make Money
N: Never November Night
O: Open On October
P: Pink Panther Palm
.
.
to be continued....... (AKAN DATANG)

To Be or not To Be? That is the Question.

Severity 1 or Not Severity 1, that is the question. How can there be a breach when there is no border in place?

Over the weekend in my company mail box bounced a few mails from the management. Someone breach an imaginary line and caused a severity 1 situation. (I did not see someone dying ? ). So the top people sent not 1 but 2 warning email to all the middle management. The email brush the incident by and concentrate on just the warning.

This is a case where by the decision making criteria is not made known. The top and the operation people do not see eye to eye in how the decision should be made. Hence when things happen on the ground, the ground people make the decision. The top felt the pain and feedback the pain in the form of procedures, red tape and warning.

The more I see how things are being run, the more I feel that I cannot stay long.
Kent Ridge Park Car Park.


Big and alot of cars. Too bad the view of the sea is block by Pasir Panjang Port.
Posted by Picasa

Something about VirtualBox

I would like to share something which I observed on my VirtualBox. Each virtual machine you have can have up to 4 network interface card. These 4 cards are not really related. What I meant is that you can have VM1 using network adapter 0 and VM2 using network adapter0 too.

This has caused quite a confusion for me before today. But then trial and error finally get me to know.