How I started in Open Source

kinow @ Aug 08, 2012 10:18:13 ()

I was studying at Mackenzie Presbyterian University when I met Professor Rogerio Brito. Most of my friends were terrified of him. Maybe because of the class name “Structured Programming I“. Or maybe because of what Brito taught us at class.

My degree was in computing, Bachelor in System Information. Although it is related to Computer Science, we don’t have the same classes. In Computer Science you have more math, statistics and even physics, while in System Information you have administration, strategic planning, law and others related to business.

Although Structured Programming had a list of topics, Brito didn’t limit himself to those. Eventually he would try to teach us about algorithms, software complexity, the importance of writing academic papers and explain about Open Source software.

I remember one day we were dismissed before 10PM. I used to run for the bus stop for not being too late at home and cause it could be dangerous lingering on the streets of Consolacao neighborhood by myself, waiting for the bus. But that day I stumbled with Brito near the Professor’s Room.

He invited me in. It was my first time in there. There were books and papers lying on the main table and in another part of the room there was a desktop computer. We started talking about programming and I can’t recall how but we ended up talking about Open Source. He showed me some websites and explained about a lot of nerd stuff.

I left the room after 11PM. Late for my bus and with a paper sheet. A very important paper sheet. It had a list of items to study, software to learn about and names that I had never heard before. One of the items of that list that I can still remember was “Reading about Open JDK” (now being adopted over Oracle/Sun JDK). There was “Create a program for finding software bugs” too (like the famous FindBugs).

He taught me about the basics of Open Source, gave me a list of interesting projects, explained how to join the project, where to look for information and how to assess the maturity and quality of a project. And also taught me more about USP - University of Sao Paulo - and how to submit academic papers and what was a call for paper (when he said that word I translated it to Portuguese, you can imagine the confusion in my head) :-)

He made me curious.

This weekend I sent him an e-mail about analyzing the parallel execution of a software, using Debian. He sent me a reply with some interesting links and a brief introduction about the topic. It’s starred at my inbox, while I look for some spare time to read his links and, certainly, learn something useful and interesting for any nerd.

Since that class, back in 2005, 2006, I’ve been involved in several Open Source projects, became an Apache Committer few days ago (I will write about this later) and I have created a company (TupiLabs) specialized in Open Source.

Thank you for lecturing me Brito, and thank you for not limiting your classes to the class planning. I believe that’s the best quality of a professor.

I wish all the success to you in your projects, and health to you and your family.

Writing code to integrate Java projects to Testopia

kinow @ May 18, 2012 17:16:25 ()

Peter Florijn and I are writing a Jenkins plug-in to integrate several test tools into Jenkins, something similar to what is done in TestLink plug-in. It’s still an idea being explored, and the whole project is subjected to changes without warning. The code is at https://github.com/kinow/testthemall.

The first tool that we are integrating is not TestLink, but Mozilla Testopia. As part of the process to integrate these tools, many Java API’s to interface the existing external APIs will be created, like it was done in TestLink with TestLink Java API.

Installing Testopia is very easy and straightforward. This was the best guide that I could find, and worked without errors at my Debian Squeeze. I only had to move the directories from /var/www to my home directory (I use my PHP Eclipse workspace as Apache home).

Testopia has a XML-RPC APi, just like TestLink, however it lacks an user friendly documentation and examples. I migrated the Java driver from Ant to Maven, for the sake of commodity. But the XML-RPC server is complaining that I have to log-in before listing the test cases of a test plan.

If you are interested in using Java and Testopia, here’s the link for the java project with Maven support: https://github.com/kinow/testopia-java-driver. I will update the project with examples, more tests and will try to clean up the code. Probably I will use either GitHub pages or a Wiki somewhere to document how to use Testopia and Java.

Stay tuned!


Maven site tips: Maven Fluido Skin and Javadoc class diagrams

kinow @ Apr 06, 2012 21:01:52 ()

I have been using Maven sites for a while, and am very happy with it. I didn’t like to have to update my projects after Maven 3, but that was all right, Maven 3 brought many new cool things. However, there were two things that annoyed me: lack of a nice and modern skin, and browsing Javadoc of complex code. The thought of creating a custom Maven skin even crossed my mind, but I never had time to read about it.

But the world is full of good and talented people! Like the guys from 99soft. They created Maven Fluido Skin, and donated it to Apache Software Foundation. It’s built on top of Twitter’s Bootstrap¬†and¬†available from Maven central repository. In order to use it in your Maven project, all that you have to do is add the following settings into your src/site/site.xml:


Here’s a list of some projects using Maven Fluido Skin (hopefully, in the near future Apache Commons and other projects will adopt this skin as default too :-)):

( Read more ... )

Ranges in Apache Commons Functor

kinow @ Jan 22, 2012 19:54:36 ()

This is a long post. So here is a TL;DR:

  • Apache Commons Functor has no Double or Float Range (yet)
  • Apache Commons Functor IntegerRange and LongRange treat the low value as inclusive, and the high value as exclusive. How does that compare to other languages/APIs? (you will have to read to see some comparison)
  • Perl has support for characters ranges, perhaps we could implement it in Functor too?
  • In case we implemented a CharacterRange, it would have to be inclusive for both low and high limits. With ‘z’ being the last character, there wouldn’t have a way to include Z with the current approach. Or we would have to make the CharacterRange a special one. What would go against Liskov Substitution Principle.
  • You can see a comparison table with Apache Commons Functor, other Java API’s and other programming languages for ranges clicking here.
  • It would be nice to have a clear distinction in Functor documentation among a Sequence, a Generator and a Range. While I was gathering material for this post, I found places using range, others using sequence, and in Apache Commons Functor, an IntegerRange is a Generator.
Now, if you have some spare time or curiosity, keep reading :-)

( Read more ... )

Testing shell code and producing TAP using Jenkins?

kinow @ Dec 30, 2011 22:41:40 ()

Definitely reading Hacker News before going to bed is a bad idea :-) Same goes for Reddit. So, I found a link about Bats, a tool to execute tests in Shell and output TAP - Test Anything Protocol. Then I thought; why not ask the author to include Bats under the list of Producers in testanything.org?

But you know what? Why not execute execute locally first to check if that’s working… moreover, why not use Jenkins TAP Plug-in and see what happens?

Here’s what is necessary.

( Read more ... )