Code School offers free Git tutorial – 15 minutes. Tutorial covers adding source code to the repository and push the master to origin (remote). Also, it covers how to create a branch and merge back to the trunk. In a short time, learned important commands. Very useful!
Here are commands that I learned from this tutorial.
Several important concepts.
- master : local repository
- origin : remote repository
- push -u origin master : push master code to origin and -u remember origin and master, so later I can skip origin master. Just push
- checkout — file_name : Revert back the source code to when file_name file was committed.
- branch branch_name : Create a branch with branch_name
- checkout branch_name : Check out branch_name branch
- branch -d branch_name : Delete a branch branch_name
JEE7 release is just around the corner. Due to JRE security reason, my understanding is the release was postponed until next year. Short summary about Java EE 7 (JSR-342) can be found here and overview can be found here with very cool slide. My interest in WebSocket technology was high since last year. I’ve struggled to create my first WebSocket demo last year – there were many earlier implementation postings, but I had hard time finding newer GlassFish implementation. I learned that WebSocket 1.0 as a part of JEE7 supports method annotations around WebSocket lifecycle methods along with straight method implementations. If you want to know the detail, check this out.
In this posting, I’d like to explain how to set up GlassFish (latest build 4.0-b87) within Eclipse and explain some of troubles that I had. I didn’t want to install OEPE bundle. OEPE gives the whole package and makes it easier to configure, but I had some frustrating experience previously and decide not to go with OEPE.
First of all, I had to get rid of previously install GlassFish Plug in and GlassFish Tool in the Eclipse Juno. Click Help > About Eclipse > Install Details and remove any GlassFish related installation. I skipped this step and couldn’t deploy web application from the Eclipse. Symptom was the deployment hangs at 69% and no response from the server in Eclipse. There is a blog about how to clear old version of GlassFish tools in the Eclipse. For details, look at this blog.
Installation & Configuration
Once you are done,
- Time to download and install GlassFish 4.0. Scroll to the bottom and download the latest GlassFish.
- Install GlassFish.
- Start up Eclipse and make sure you have the latest JDK. At least 7.
- Now, it is time to install GlassFish Tool. It seems there are two ways of doing it. In my case, first approach (Preeference > Install/Update > Add Available Software Site) didn’t work well. Site URL is http://download.java.net/glassfish/eclipse/juno.
- Second approach is Help > New Software Install > past above URL.
- As soon as you do that, GlassFish Tool and Document will show up and you can install those in the Eclipse.
Coding & Testing
Now, time to code and test. I captured the code from Markus Eisele’s blog. The servlet is demonstrating by print out JSON object from JsonObjectBuilder.
Testing is simple, just start the GlassFish 4.0 and test localhost:8080/JEE7Test/JsonTester
Since I configured GlassFish 4.0 with JEE7, I’d like to modify my WebSocket chat demo using annotations and deploy to GlassFish 4.0. This will be a fun exercise and I will have a chance to read more JEE7 API documents.
Article from Native Blogger. In my opinion, skills can be improved by learning from the work. However, just like below article points out, just doing the task at work will not be enough, especially technology evolves so fast.
Few programmers would love to code most of the time . When they code at work , they are bound to just work at the tasks given to me and sometimes feel shortage of the expectation . What are the different ways by which the programmers can improve the skills beyond their work ?
Below are some interesting things that programmers can do to improve their skills beyond work.
- Code something in your free time but do not over do it.
- Pick up a open source project and contribute to it.
- Read some interesting books both technical and non technical.
- Presentation of some interesting topics to your colleagues or friends.
- Get involved with the User Community.
- Take up a course of your interest .
- Don’t open your computer during weekend . Spend more time with the family and friends.
- Set aside annual training budget. I think this makes it easier to plan your own training.
- Read various technology blogs.
- Attend various programming conferences.
- Network with people with similar interests.
- Another interesting thing can do is Pair Programming.
Last thing. An article “how to thrive in the tech industry for decades“. This article reflects many things. One thing I learn from it – Being Proactive about your life long learning.