Structural Analysis: Choosing between Stan4J and Structure101

April 14th, 2010

My company asked me to study about these two tools for Structural Analysis: Stan4j and Structure101.

They are very similar, even the UI seems to have used the same idea, APIs, etc. OK. I’m not going to write a long review about these two tools.

That’s what I did: I got my company’s most important project and analysed it in each tool. For my surprise, I could find different results. Unfortunately, I can’t upload the evidences for copyright issues.

Stan4J couldn’t detect a reference from a class using a ServiceLocator, while in Structure101 I could see that one class referenced the other one through the ServiceLocator.

However… Stan4J Query feature surprised me, it’s like the CQL of NDepend, but much better and simpler.

Cheers (-:

Why is spam bad for you and for your company

April 13th, 2010

I have a friend from high school whom succeeded in opening a small business, a travel agency. Recently, he sent me a mail with some offers. OK. On the Good Friday he sent a message, in name of his company, with best regards. Hmmm… And he told me already that he intend to buy a list with some mails to try advertise and increase his company’s clients number. Uh-oh.

I told him I’d not like to receive any messages like this. However he insisted that it’s necessary. I underlined my reaction in the text above, because it’s the same that I feel when I receive messages from companies promoting its services or products.

The problem

Today I received a SPAM message (I call it SPAM message already (-: ) from a damn company which believes that someday, because of a SPAM message that I received from them, I’ll buy their services. Hell no!

Damn SPAM message

Damn SPAM message

As you can see in the picture above, the messages received from this company go straight to my SPAM folder in my Yahoo! Mail.

Here in Brazil, more exactly in Sao Paulo, we have a institution called Senac. I don’t know if it’s a public institution, I know a part of the per capita income from Brazil goes to this institution (or a bigger institution that supports it). Anyway, I would do a course there, if I found the course summary interesting.

Now, now way I would never, never, never do any course in this company. Perhaps they succeeded and increased its clients…. However, they will never be as good as Senac, Mackenzie, FGV, among others…I even tried to unsubscribe my mail from their mailing list. They told me that I had to access their website in order to unsubscribe my mail. OK, except that I can’t find this option.

They lost a client.

*Edit* Not 8 hours after I wrote this post, here’s another SPAM message they just sent :-/

An idea:

What about a common database for mailing lists? Then every time you subscribe to a mailing list, it updates this database, and if you want stop receiving messages from somebody, you just access a site that updates this database?

And the mail providers could make a politic that mails considered SPAM and that have no relation to this database are reported to some chinese Kung Fu fighter with the address of the spammer.

(-: Just kidding, I hope after reading this post, you’ll never buy a product from a spammer.

Cheers

How to set the current date in sonar.projectDate property?

April 9th, 2010

Pretty easy, just add the following property to “Sonar / Additional properties” in your Hudson job’s configuration page.

-Dsonar.projectDate=${BUILD_ID}

Set clocks time

This environment variable is defined by Hudson (I tried using the system DATE or TIME, but didn’t work because of the format of dates in my computer). An example of the build output using this variable is:

$ /usr/maven/apache-maven-2.2.1/bin/mvn -f pom.xml -Dsonar.projectDate=2010-04-09_09-04-41 -e -B sonar:sonar

Cheers (-: