Geek talking

Pinoy geek talking about everything under the sun

Archive for the ‘Java’ Category

Java Champions!

Posted by rom on February 2, 2006

The Java Champions are featured in a Java Developers Journal article. There are two from the Philippines – JP Petines and yours truly. Although we have nominated a couple of Filipinos, we do want to have more until the Champions start reducing the number of applicants per year.

If you know someone who is passionate about Java, please let me know.


Posted in Java | Leave a Comment »

Heads-up: Sun Java Studio Creator 2

Posted by rom on January 26, 2006

Get the free (yes, it is free!) Sun Java Studio Creator version 2.0. All it takes is for you to register (did I say that it is free?) at the Sun Developer Network.

Java Studio Creator 2 is built on NetBeans 4.1, and includes features like a new set of JavaServer Faces components, support for building JSR-168 portlets, easy access to databases, a streamlined application model, and more. For detailed information see the Features In Detail pages. Here are the highlights:


Complete development environment


  • Built on a solid IDE platform and foundation – NetBeans 4.1.
  • Includes a JDK, Sun Java System Application Server 8.1 Platform Edition and a sample database – no configuration required.


Industry-leading support for JavaServer Faces components


  • Comprehensive library of JavaServer Faces components includes Table, Calendar, Tree, Tab Set, File Upload, and many more.
  • Enables AJAX development by making it easy to use AJAX-enabled JavaServer Faces components.


Visual tools to save you time and make web applications more predictable and reliable


  • Drag-and-drop configuration of JavaServer Faces components.
  • Query Editor, Page Navigator, Cascading Stylesheet (CSS) Editor, and visual access to Web Services and Enterprise JavaBeans.


Portlet development


  • Developing Java Specification Request 168 (JSR 168) compliant portlets is just as visual and easy as developing web applications.


Support for standards


  • Applications developed with Java Studio Creator 2 can deploy to standard J2EE containers including Java System Application Server, BEA WebLogic, IBM WebSphere, Tomcat, and others.

Posted in Java | Leave a Comment »

Questions, questions, questions…

Posted by rom on January 18, 2006

I did not think that it will be this difficult to be one of the examiners for a regional certification exam. I am required to produce questions for Friday and I am almost done – just one more question to go. The thing is, it needs some coding so I am dusting my Java cap again and writing some code…

I have forgotten how it feels like to debug code again. Now that I am writing some code, the natural high that programmers and developers get is really addicting. I am doing it slowly for I may get addicted again and starting coding like there is no tomorrow. It won’t be easy with kids around but hey, it definitely is worth a try. 🙂

Posted in Java, Personal | Leave a Comment »

Learn Java in 6-weeks!

Posted by rom on January 14, 2006

My friend, Sang Shin of JavaPassion, is conducting an Intro to Java Programming 6-week boot camp! Sign up now – it is free!

Posted in Java | Leave a Comment »

Open-Source Google Earth

Posted by rom on January 12, 2006

I have tried to install Google Earth on my powerbook but for some reason, it crashes everytime (yes, I am not alone! hehe). It may be due to some applications that I have running in the background but I just could not be bothered.

I found WW2D, however. A cross-platform, open-source and free equivalent of Google Earth. It may not have the full details of Google Earth but it sure is open and free! 😀 Recognize this?

Picture 1.png
Isn’t it cool? 😀


Now, compare it to this

Picture 2.png

Yes, I was able to make Google Earth work now. The culprit is my powerbook HD partitions are set to Case-sensitive, Journaled FS and Google Earth just do not like that.

Posted in Apple, Java, Open Systems | 1 Comment »


Posted by rom on January 11, 2006

We just got the seal of approval from the guru for the use of Java on the new Intel Macs.

Posted in Apple, Java | Leave a Comment »

Java is not the culprit!

Posted by rom on December 31, 2005

Mr. Joel Spolsky is dead wrong here. His generalization that because Java does not require students to think about pointers and recursion (heck, we do cover recursion! see JEDI courseware) make them mediocre programmers is a bit flawed. Using the same line of thinking, every student who does not get to optimize an if-then loop using registers ala Assembly language will be a mediocre programmer as well! 😀

Anyway, Java is just one of the languages used to solve problems. What mediocre programmers do not have is the problem solving skills of great programmers. Solving real world problems correctly and properly is the aim here. Besides, teaching Java is just one or two courses in computer science.

For example, a Data Structures course is a particular CS/IT course where pointers and recursion are extremely important. I suggest that Mr. Spolsky check out how we are doing it using Java! 🙂

Posted in Java | 4 Comments »


Posted by rom on December 29, 2005


Flickr provides an email address for users to upload photos via email. I have been using this for quite awhile.

Today, I tried out ShoZu, a Java-based midlet that uploads your photos to Flickr, Webshots or TextAmerica accounts.

No email-attachment overhead so I am hoping that I will be saving a couple of centavos by using this service.

Posted in Java | Leave a Comment »

Java is so 90s!

Posted by rom on December 14, 2005

Businessweek just posted an article stating that Java is an old technology considering that most of the Web 2.0 applications use LAMP (Linux-Apache-mySQL and take your pick for P – perl, python, php). Just to set the scenario, first of all, I am biased to Java being one of the proponents of the Java Education & Development Initiative, where we develop and give away Java-oriented CS/IT courses for free. Next, I do not support Microsoft — some of my comments may be taken as an attack to the company. Lastly, although I am a Linux advocate (I co-founded the Philippine Linux Users Group (PLUG)), I mainly use a Mac for my everyday computing needs.

On Java and PHP. Everytime I get a client asking for training, I make it a point to first check if they know Java or are familiar with C/C++, if so, then I recommend training in Java. However, even with my bias towards Java, it is often quite difficult to ask clients to get trained in Java as opposed to PHP. Local clients often have simple requirements and want solutions delivered stat. Going the Java route is ideal but often does not allow for quick and dirty solutions.

For enterprise level applications, however, Java is the only solution that I prescribe. Yes, it does require a lot of training but it is well worth it. Practically 95% of projects that I manage are done in Java – either using J2SE, J2EE or J2ME!

Java and .Net. People say that .Net applications perform faster than Java. I hate to say this but I admit that it is true! It is true to the extent that .Net is tightly integrated with the underlying OS (operating system) whilst Java’s Virtual Machine is an add-on to any OS. If (I should say when) Java becomes an integral part of the OS, then expect performance to improve significantly.

The performance of Java, however, depends on the implementation of its virtual machine. I am wondering how fast .Net apps run on Mono or dotNet. In some cases, Java’s performance is almost, or even way above, at par with systems programming languages such as C and C++.

Now, try getting any .Net app and running it on a Mac – now that is something that will be very difficult to achieve. Do the same thing for a Java app and chances are you just need to tweak a few things like the way the app handles the menu and basically that is it.
Java and Web 2.0. Ah, this is where the AJAX (asynchronous javascript and xml) comes in. The advantage of LAMP here is that they are quick to deploy and quick to do changes in their technology. Java, otoh, takes quite some time before it can adapt technologies such as AJAX as an integral part of its engine. It is not as simple as adding it, imho, since there is a community process that approves these things before it gets out for public consumption. This is the closest way Java can become open. No, I will not go into the open sourcing java debate. 🙂

So is Java so 90s? I’d agree if I didn’t know that Java technology is evolving. If it remained as stagnant as C and C++, then perhaps it is already old. However, if only Java’s evolution can pick up its pace a little, then people will not have a notion that it is aging.

Posted in Apple, Java, Linux, Microsoft | Leave a Comment »

Speed of Java

Posted by rom on November 27, 2005

Java is often pitted against C++ (and C#) when it comes to the preferred programming language. Each one has its own strengths and weaknesses. Java, however, is often at a disadvantage when it comes to execution speed. Some say that Java will never be as fast as C++ – is this true?

Well, Java runs on top of a virtual machine (JVM or KVM) that runs on top of the operating system. Contrast this against C++ that is a systems programming language, i.e. it interfaces directly with the operating system and even directly to the underlying hardware. This simple layering will tell you why Java is slower but only to an extent.

Compared to C#, which runs on the virtual machine as well, C# has a tight integration with its underlying operating system. This is evidently an advantage. Unfortunately, it only runs on one operating system as opposed to Java. Don’t get me to discuss Mono, that is another story.
Personally, I’d rather use Java for its portability (compared to C++ and C#) and ease of use (compared to C++). Performance can be tuned, of course. In addition, Java’s native interface may help improve the execution speed of Java applications that require direct hardware access but at the expense of portability. Some argue that portability is not 100% and I agree but 95% is close enough. 🙂 I’d rather have code that runs on most operating systems than just exclusively on one.

Posted in Java | Leave a Comment »