Java Hello World

Well I have decided to jump back into Java programming due to some recent events. I went out and bought Sams Teach Yourself Java in 24 Hours to help me in this journey. So to help me grasp the material I wanted to create blog posts/tutorials to help me and to help others who might be on this same goal.


Oh and the two things that you will not see the void main for is applets and servlets. Here is the source code of the file I created

class HelloWorld {
  public static void main(String[] args) {
      String sayHello = "Hello, World!";
      String myName = "John Costanzo";
      int myAge = 28;
      boolean theTruth = false;
      System.out.println(sayHello + " My name is " + myName);
      System.out.println("Is my age " + myAge + "?nThe answer is " + theTruth);

Python Basics

If you have been reading previous blog posts, I have been using a monitoring tool called Zenoss. Under the hood there is a lot of Python stuff. So I decided to start learning Python. Python can run on Mac, Linux, Unix, and Windows. Let me show you some basic on what you can do in python.

firstName = "John"
lastName = "Costanzo"
# Lets just print out one variable
print firstName
# Now lets complete my name
print firstName, lastName
# Lets just print something random without a variable
print "The sun is warm. The grass is green"
# Now I will print some variables followed by some text
print firstName, lastName, "Is the owner of this blog."

For more information on Python you can visit this site.

I Need Design Help

One of the things I have never been strong in is layout design. If you look at most of the sites I have done, there blah. Colors are limited and there is just no iCandy to the site. So my question is, is this fixable? Is there something out there that I can learn to help me develop more iCandy websites? If so could you please share?

VIM Tutorial

When I first started working with Linux one of the tools I disregarded was VIM. I felt it to be too confusing and believed it was not worth it at all. I was so use too notepad, nano, pico, etc… Then a programmer finally convinced me one day to make a switch. I am so glad I did. So the first thing you have to get use to is that there are two modes to be in. One is command mode and the other is in insert mode. When in command mode you can save or do other things like find and replace. In insert mode you do like you normally do. You type away. I know it sounds confusing now but wait and I will show you what I mean.

VIM can be found in Mac, Linux, Unix, and or Windows. To start a file you bring up your terminal or if in Windows you open the application in your start menu. In the terminal type the following:

vim whateverfilename

Command Mode

Ok so lets get into some of the things you can do in command mode. So lets say you have to edit a document for work and you have to change the word Bob with the word John. hit ESC to make sure you are in command mode and hit the following:

:% s/Bob/John/g

The g at the end will make sure it goes thru the whole document. To search for some text is not that hard to do. So lets say we want to find all instance of the word happy. You will do the following:


When you find the first result you can hit n on your keyboard to go to the next instance that it finds the work happy. If there is none it will tell you that there is none. Now I am sure you are asking how do I search for multiple words? Well let me show you how to search for Happy Birthday

/Happy Birthday

As you can see you I did the same thing as above. VIM knew that you were looking for multiple words. Before you ask if there is a term in the document called Birthday of Happy, it will not bring that up as a result. The next thing I want to show you is if you need to get to line 10000 in a file all you have to do is the following:


Yep that is it. To wrap up this first tutorial on VIM I will show you how to quit without saving, saving but not exiting, and saving and exit. Here they are in order.


The q stands for quit. If you forget the ! you would be prompted about saving before quiting


The w tells VIM that you want to save the changes


As you see we combined the w and the q to save the changes then quit. Now before you ask, if you would do :qw that would fail. Cause vim reads the commands from left to right. Well I think that is enough for now. If you have any questions about vim please post a comment. Below is a video on what I basically explained above.



Yesterday October 18, 2009 I went to and Open source conference in Harrisburg PA called CPOSC(Central Pennsylvania Open Source Conference). Basically this conference discusses applications that are open source and can help you or your company. Another thing this conference gives you is the ability to meet other people that you can network with. There were a lot of different seminars that you could attend to. Each seminar you had 3 choices that you could only choose one.

Well you have seen me do a tutorial on this app but it was a good thing for me. I learned about how you can manage your critical and warning levels. That was hugh. I learned about how you can connect multiple servers.

This seminar talked about how you can use Drupal on your site. Drupal is a CMS tool and they have definitely come a long way.

IRC chat is something that a lot of people go for help. I learned about how you can setup your own channel for your friends and or customers to get instant help. I learned that Freenode which is a popular server has about 51,000 users. In the next few days I will be setting up #jcwebconcepts for my readers to come ask questions.

The next seminar I watch was about the programming language called Python. Now I did not get a tutorial on how to make an application but I was shown some ways that Python makes some difficult code easier. Might have to look into learning some python but I am not sure.

I got to learn on how to use the nice tool to setup virtual machines. I learned on some ways to setup development servers to test things rather than using real hardware. I definitely will be setting it up on my Linux machines since on my Mac’s I use Parallels.

In between seminars in the lobby there were sponsors from places like Ubuntu, Fedora, and Zenoss. What was cool is you got to talk to these people and make contacts with their companies. There were more classes but I ended up leaving early. Now this conference was not free but it was well worth the information I received. To get more information you can visit CPOSC site for more information.


Well I have been in search for a great text editor for my Mac and I might have found one. I have tried demos of BBEdit , Text Wrangler , and TextMate . These were ok editors but I really like an application called Coda . This app has what every web developer / IT guy needs.
Basically this application gives you several options in one application. If you are like me I so a lot of SSH work and have to open up the terminal and or putty. With Coda you can click on the Terminal tab and you can SSH into your server of need. Are you the type that you do not really like CSS and do not want to understand it? Well with the CSS tab you can add CSS styles the way Dreamweaver does it. It is self explaining and makes it easier. Now I do not use this function myself but it is very friendly. The last thing I need to discuss is the sites section. This will let you setup site folders for easy site management. I really like this feature. I do not use it cause I personally put everything in an SVN but it is a nice one. For more information visit their site.

SVN Client Versions

So while looking for a good SVN client the other day, I found one called Versions. This application comes with a free 21 day trial. If you want to buy the application if will cost you 39 euro’s. This is of course about 57.00 USD. I personally do not think that is a bad price to pay for this application. So let me go into some details about why this application is worth the money.

**Layout is clean**
**Easy to use**
**Can create your own local and outside repositories**
**Easy to understand error messages**
**Timeline view**

It will show you what files have been change and the comment that was posted on when the change when was done. It organizes it by date so it is easier to find things. If you are like me I have a lot of different repositories that I have to connect too. With Versions the bookmarks section is setup nicely so you can separate in a better working fashion.

Of course this tool comes with many more features such as comparing versions of a file, quick look function, inspector, etc… You can visit the companies site at I am telling you if you work with an SVN then you better get this application, it will be worth it. In the next week or so I am going to make a tutorial on how to use this application.