Archive for June, 2005

Temporary Idleness

Sunday, June 19th, 2005

The final exams of this semester are in July. At the beginning of August I’ll also be a little busy for the initialisation of the project in my school will be probably very involved. So I’m leaving my blog site for a while.

Am already very busy now. Got several emails from friends from JavaRanch, haven’t got any chance to reply yet….but please expect my email in two days, I’m going to reply them for sure.

In summer I’ll go to Bonn and Munich. So I’m looking for someone who can offer me a ride. I can share the petrol cost. Please see my page Hitchhiker Wanna Be.

Thank you very much for your care my dear friends. I’ll come back and improve the quantity and quality of my blogs for sure. My gallery will also be updated for sure. See you then! ;)

PS: my classmate Andreas Böhme has developed a cute J2ME application MicroPlot for the lecture “Project Management”. Checkout coetry.ningning.org for the free download! :) This lecture didn’t go as we thought at the beginning of the semester, we had to create quite a few management artifacts for it….we just have no other choice the instructor requires it….so please don’t laugh if what we said at the beginning is quite different from what we really did. Anyway the cute application is running and we’ll release all the source code and binary files. You can install it on your MIDP 1.0 compatible mobile phone. Have fun! :)

Endlich Exkursion

Sunday, June 19th, 2005

Am diesen Dienstag gibt es eine Exkursion nach … die Ort habe ich schon vergessern, auf jeden Fall die SAP AG sitzt da. Mir ist SAP oder IBM oder Sun oder irgendwas sogar M$ völlig egal. Hauptsache ist, daß endlich ein Ausflug gibt. Ich habe schon fast ein Jahr im diesen Dorf stecken und nirgendwohin habe ich gegangen. (Na ja, ein paar alte Freundinen/Freunden in Kaiserslautern besuchen schon, aber K’lautern ist genau so ein Dorf sogar langweilliger (kein Fluß….)) Warum nicht dann? Habe am Freitag beim prof. Schiefer angemeldet. Kindern brauchen Exkursionen, ein mal pro Jahr auf jeden Fall nicht genug ;)

Hoffentlich gibt es was mir interessantes. Vielleicht werde ich darüber etwas blogen, aber nur nach die Klausuren.

Witzig: Grundlagen der Informatik und Strafgesetzbuch zusammen

Sunday, June 19th, 2005

Ich schaue die Bücher von prof. Thomas Walter am amazon.de. Hab Grundlagen der Informatik dort gefunden.

Der amazon.de sagt: “Unser Vorschlag: Kaufen Sie Grundlagen der Informatik und Strafgesetzbuch (StGB) zusammen!”

Klar die Leute, die GdI von prof. Walter kaufen, sind meistens aus unserer College. Wir haben auch die Vorlesung Recht also man muß StGB auch bestellen.

Die AI Engine des amazon.des scheint nicht so klug, muß ja verbessert werden. Sonst sind manche Empfehlungen sehr komisch.

NetBeans 4.1 beta: An Unexpected Nice Surprise

Monday, June 6th, 2005

In fact I used NetBeans before the Eclipse IDE was born. At that time it was called Forte. Then my school installed Eclipse 2.1 in the Solaris server, I tried it and loved it. Today it’s been the de facto standard java IDE for quite a while. Under most circumstances Eclipse does pretty decent job and it’s truly very competent tool for any java developer. I almost forgot the existence of NetBeans.

Days ago I was constantly frustrated by some small but very hurting bugs in the beta version of Eclipse 3.1 when I was developing the application for my final project of the XML lecture. I desperately wanted to get the job done so that looked around for other tools. I downloaded a Sun Java 2 Enterprise Application Server with NetBeans 4.1 bundle from Sun and JDeveloper from Oracle.

Weeks ago I had some really painful experience while installing the Oracle Database 10g with application server in my SuSE 9.2 box. Facing the installation of another “application server” made me feel a bit chilly. However I had to get my small application up and running in, at least my local application server so I gave the Sjsas 8.1 + NetBeans 4.1 bundle a try. The installation was an absolute charm. No need to run the installation file as root. No need to do any environment setting. The program searched for installed jvm in my machine, found 3 different versions and suggested the J2SE 1.5.02. During the installation there was no pop up window asking you to “Now please fire up a shell, login as root and execute these commands: …..” The installation program quietly carried out all the tasks within 15 minutes. At the end of the installation it told you all the ports you can connect for management tasks, how to start the NetBeans IDE and the application server started automatically. Meanwhile I had a tomcat 5 running. Sjsas automatically chose some ports other than 8080 to avoid the conflict.

At this point I was deeply impressed already.

Then, I simply created a new web project with NetBeans 4.1 beta. Copied all the servlet source files to the automatically created src folder, copied the web.xml to the automatically created WEB-INF folder and clicked “run”, chose “run on bundled tomcat 5.5.7″. So astonishingly, the build process was another absolute charm. All the compilation, building and resource binding information appeared in a log window and in less than 10 seconds my servlets were up and running at port 8084 on my localhost! NetBeans 4.1 showed me what “project automation” really means. In the past whenever I developed any application I spent most of the time on gluing components together. Deployment could be sometimes be like a nightmare. NetBeans is a real life saver. When it comes to building and deploying, it’s exceptionally sophisticated and, intelligent.

Then I tried to write some source files with the embedded editor. It’s very performant.

Last but not least, no matter how rational we think we are, appearance really matters even when it comes to an IDE tool. NB 4.1 has a very sleek, efficient, neat and pretty outfit. Very different from Forte and Eclipse 3.x. I love the simplicity of the UI and I love the sky blue colour.

Eclipse is still the de facto standard and it will still be in long run. I’m going to use Eclipse whenever my team members and colleagues require. Nevertherless I guess NetBeans 4.1+ is a nice alternative worth trying. Especially when Eclipse occasionally happened to appear cumbersome, maybe NetBeans could help a lot.

Logic Rediscovered

Sunday, June 5th, 2005

I’m attending 11 lectures this semester, will take 9 exam in 1.5 months. None of the 11 lectures has much to do with formal logic, then why am I paying attention to logic again? Too bored by my classes and homeworks, maybe. :P The fact is I was reading a book Jess in Action for I found the author Dr. Ernest Friedman-Hill very interesting and he helped/mentored me on several programming problems/questions. Under the hood of the rule engine Jess, the workhorse is Rete Algorithm, in the scope of logic. Reading his book reminds me my good old days spent in the Logic lecture, with an almost idle brain when I was tired or with my mind passionately wandering in irrelevant fantasies when I was not tired. :D

It’s an exciting reading of the book Jess in Action. Formal logic no longer appears like illogical nonsense to me when Dr. Friedman-Hill reveals the fasicinating application possibilities and potentials of the declarative programming. I dag out my old text book on formal logic and artificial intelligence, started to read them again and things became understandable and interesting. In large-scale software systems, when the processing (state evaluation and execution) becomes complex, rule engines implementing sophisticated logic algorithms usually bring great solutions.

Two weeks ago I started to prepare for a 1.5-hour presentation on “Knowledge Management” for the recitation of the lecture “Information Management”, so I was doing a bit research on the internet. “Knowledge Management” itself is a buzz word on sites like cio.com. When it comes to technologies people usually mean things like web-based portals for collaboration: online forums, blogs, wikis, etc. However I believed technology can go a bit further than simply rendering people’s ideas on portal. Nowadays the problem is not that there lacks information but is that information is way to much to be used efficiently. Not all informations are useful/valuable/meaningful to a certain problem domain, knowledge manage systems should somehow be able to extract meaningful knowledges from immense amount of informations. Found a very readable article The Semantic Web in Ten Passages. More information can be found here: Knowledge Sharing and Integration. Horn logic lies in the core. The applications build upon Horn Logic make great sense and I believe they have a bright future.

As James C. Maxwell said “There is nothing more practical than a good theory”, the value of all the theoretical lectures in the univ. K’lautern is in fact enormous. But why didn’t I, as well as many other students, realise it while we were sitting in the classroom? Many of us believed all the very abstract concepts and deduction mechanisms were not really useful but just for tenure as computer science. I really can’t remember any of the three professors whose logic lectures I visited mentioned the application possibilities of logic or anything like “logic in the real engineering”. Always just “Satz …. Beweis …., Satz…..Beweis….”. Maybe I was too stupid to discover the value of the Satzs myself then, I was not motivated and I was not excited. Now when the real project becomes challenging, the dry theories becomes interesting to me.

Funny that prof. Harold Boley, the prime force behind the initiatives of RuleML, was teaching real applications empowered by formal logic in the same univ. when I was studying there. I never heard my instructors of Formal Logic mentioned him and his projects. I stayed there for 5 semesters but never knew there existed such a professor in my department….Thanks to today’s omniscient internet I can still learn from his web publications.