Archive for November, 2008

Programming Groovy

November 30th, 2008

proggroovyJust finished reading Programming Groovy by Venkat Subramaniam.

This is a great book for anyone interested in learning about Groovy. As a beginner Groovy programmer, this book helped me understand all the benefits of using Groovy over plain old Java. Venkat also does an amazing job of explaining the metaprogramming features of Groovy in a way that is both fun and easy to comprehend.

If you are interested in Groovy, I recommend you get a copy of this book. I know I will keep referring to it as I get more experience with Groovy.

println ‘Thanks Venkat!’

  • Share/Bookmark

Who needs a Crackberry when we got AwayFind?!

November 21st, 2008

AwayFindOne common argument in favor of a blackberry (or iphone) is that it calms your nerves about checking email since you can access it anywhere. On the other hand, this is also the problem with these devices. Well here is the cool solution, AwayFind.

I first learned about it from Zvi Band’s post and I think its a great idea! AwayFind, in a nutshell, relieves you from constantly checking your email by giving email senders the option of contacting you immediately, only if needed. Now, you dont have to worry about missing that all important email and you dont have to check for it every 5 minutes!

Now don’t get me wrong, I am still getting that blackberry (or iphone, still debating), but this is something I could use, regardles of what I have.

Check out my AwayFind link, remember to use it only if you have to.

  • Share/Bookmark

Satches for Kids (Week One)

November 19th, 2008

oneweek1 So it has been a week and as you can see my stache is rocking!! I am actually surprised, I didn’t think I could grow this much! Anyways now to the frustrating news, my donations are still at a big fat $0.00. Are you feeling bad yet? Good go here donate something!

Check out how the others growers are doing!

  • Share/Bookmark

Mustaches for Kids and Donors Choose

November 13th, 2008

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

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