Mustaches for Kids and Donors Choose

November 13th, 2008 by Guille Carlos 3 comments »

clean

Take a good look at this picture, next time you see a picture of me I will have a new addition. That is correct I am growing a mustache!! I have joined the Mustaches For Kids army!

You ask yourself, “What is Mustaches for Kids?” and I will tell you. Basically I grow a sweet stache, people come up to me ask me why am I growing a mustache, and then I explain to them that I am doing it for the kids. I will let them think about it for a second, then I will clarify… The stache is pretty much just a conversation starter, my real intention is to get people to donate money for kids and schools.

This year I am part of the Mustaches 4 Kids in Baltimore and we will be supporting the Donors Choose organization. Each of the growers has a “Giving Page” on the Donors Choose site where donors can go and choose (ha! clever name) a project to support, there is no limit and there are plenty of projects to choose from. So please take a look at my Giving Page and donate whatever you can. Also if you have a project you want me to support let me know.

  • Share/Bookmark

Installing Groovy on Ubuntu

November 11th, 2008 by Guille Carlos 1 comment »

This is how I installed Groovy on Ubuntu. (Notice I run everything as sudo on my laptop)

The first step in this process is to get all the necessary files.

  1. If you dont have a Java JDK you will need to download one (I am using JDK 6).
  2. Download Groovy .zip file.

The second step is to install the files

  1. For java just place the JDK in the directory that you want, navigate to the directory you dumped the file and then run sh jdk-6u10-linux-i586.bin (Remember I am using Java 6 so the name of the file might be different for you.)
  2. For groovy, again place the downloaded file in the directory that you want. unzip the file by typing unzip groovy-binary-1.5.7.zip. (Again name of the file might change depending on the version that you downloaded.)

The third and final step in this process is to modify the PATH environment variable and add the JAVA_HOME and GROOVY_HOME to the environment variables.

  1. Edit the environment file by typing gedit /etc/environment
  2. Add and modify as necessary the following lines to the /etc/environment file.
  3. Modify the Path variable by adding the Groovy bin directory:

    PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
    /usr/<locationOfGroovy>/<groovyVersion>/bin”

    Add the following variables:

    GROOVY_HOME=”/usr/<locationOfGroovy>/<groovyVersion>/”
    JAVA_HOME=”/usr/<locationOfJava>/<jdkVersion>

This is what my /etc/environemnt file looks like:

PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/tools/groovy-1.5.7/bin”
LANG=”en_US.UTF-8″
GROOVY_HOME=”/usr/tools/groovy-1.5.7/”
JAVA_HOME=”/usr/tools/jdk1.6.0_10″

Once you are done, save the file, log out and log back in, change to sudo (remember I run everything as sudo) and now groovy should work. And if it doesn’t YOU messed up, because my instructions are never wrong (kidding).

You can test by typing groovyConsole in the terminal. A console should come up where you can start writting groovy code. But you should know this console is NOT and IDE, this is just a place to type and test code if needed.

  • Share/Bookmark

No FLuff Just Stuff take 3 GROOOOVY

November 10th, 2008 by Guille Carlos No comments »

Yay! for day 3 of the No Fluff Just Stuff software symposium.

Let me start by saying that I should have attended other sessions not related to Groovy and Grails but I just couldn’t get away. This time Jeff Brown was the speaker. As a little background Jeff works at G2One, this is only the company behind the magic that is Groovy and Grails. So once I heard this I knew I couldn’t pass up on these talks and let me say Jeff delivered.

The first session was a thorough look into Groovy. Lots of code examples and comparisons between Java and Groovy. Very nice! The second session was a lecture on the benefits of Groovy when unit testing (yes developers we are supposed to do unit testing, maybe I will start trying this one day). This was actually a interesting point in my fascination with Groovy.

Jeff mentioned that when comparing dynamic languages with static languages it is extremely important that we conduct unit testing. This makes sense, when coding in static languages such as Java, we have the compiler who can tell us if we have code, notice I am not saying good code. With dynamic languages such as Groovy we don’t have the compiler to tell us if a method is not found or a class is not found… So basically we HAVE to write test cases!!! What?!! This is horrible!!! not really. This, is actually one of those negative positive thing, like when people try to impress a interviewer when they say that one of their weaknesses is that they work tooo hard.

Third session was more interesting meta programming with Groovy, I promise one day I will understand it all. Finally I got another demo of Grails.

Over all this was a magnificent symposium and I recommend that everyone tries to attend! I am looking forward to the next one in VA! April 24-26!!!!

  • Share/Bookmark

No Fluff Just Stuff Part Dos

November 10th, 2008 by Guille Carlos 2 comments »

Day two of the No Fluff Just Stuff software symposium was good but not as good as day one. Again I attended the sessions by Scott Davis. The first session was about making your web site faster. Scott showed us a very cool plugin called YSlow for another plugin called Firebug. Both of these tools can be used to analyze the content of your site. YSlow will actually grade your site and give you reasons for why the site is slow. I was really impressed with the plug in and I recommend it everyone else. Much of the criteria used by this plugin can be described in the High Performace Web Sites book.

The second session was a summary for Scott Davis’s GIS for Web Developers book. It was an interesting lecture and Scott again did an amazing job at simplifying everything…now I know the basics behind sites like google maps!

I was really looking forward to my third session which was all about JVM garbage collection. The presenter for this lecture was Brian Goetz. Brian did a good job presenting about garbage collection but although some of us seemed interested I was still drolling and anxious about Groovy and Grails. He did talk about jconsole and other utilities we can use as java developers to identify memory leaks, but this just wasn’t as fun.

Finally I decided to attend a lecture titled 7 Habits of Highly Effective Developers. I dont remember anything about it, I was just tooo tired by the end of the day.

  • Share/Bookmark

I will never write another line of Java again…(maybe)

November 8th, 2008 by Guille Carlos No comments »

Back from the first day of the No Fluff Just Stuff Java symposium. It was a great day and I cant wait for tomorrow.

Although there were many session to choose from I spent most of the day learning about Groovy and the Grails framework with Scott Davis. I am sold, as soon as I got back I pulled out my laptop and started coding with Groovy.

Setting up was easy just download the zip file, set the PATH environment variable and code.

So my first two sessions were on Groovy, the first session was an intro to showing how Groovy and Java can interact, you can literally copy Java code paste it into a .groovy file and it will compile. The second session got into meta programming, whatever that is…I saw some very cool things but stuff that I had never dealt with since basic Java doesn’t deal with. I am talking about, creating pointer, closers?, and something else that I don’t remember the name of. So as Scott liked to describe the two languages. Java is the cake and Groovy is the frosting on the cake. If you are a Java coder I definitely recommend you looking into Groovy. Stay posted I will be adding some tutorials soon.

Grails! The third session of the day was all about Grails. What an amazing, technology/framework/platform. I havent been able to play with Grails yet but I will soon. What is amazing to me is that I am currently developing an application that uses Spring, Hibernate, Log4j, Tomcat……. and basically it took me a couple of days to configure, so that I could then start coding. Scott, with a little help from Grails, was able to do all this and build a webapp in less than one hour and maybe typed 10 lines of code.

Groovy and Grails learn it!

  • Share/Bookmark