Posts filed under 'Java'

Java on Rails or Java on Sails?

Unless you where living under a rock, you have heard about Ruby on Rails, its basically a full web stack for writing real-word applications with joy and less code, how they put it, and most definitely the application that made Ruby a star.The basic idea was to use OO, and the cool new technologies work for you, in a transparent manner, hiding the complexity in convention over configuration, a very simple idea that makes a lot of sense.

Since that idea works quite well, powerful technology combined with simplicity its always a winner receipt, the Python guys did their version of Python on Rails, Turbo Gears. Even if it makes sense, despite the 45 Java based Web related frameworks, today I noticed that we have our own version, first release milestone, of Java on Rails, called Sails. It comes well equipped, with a Blog, a Community and Eclipse plugins.

I like the idea a lot, so its there on the list of things to investigate, right near Shale, and Seam. I think we are developing our own version of Kmania (from KDE) but it starts with S (Struts, Shale, Seam, Sails), hm.

December 2nd, 2005

XForms on top of SWT?

Well, I would definitely fancy that, XForms with SWT yummy. I watch the Mozilla XForms activity for a couple of years now but they don’t really seem to get to a publicly deployed version of Firebird with one soon. But even if they would I would still love to have support for that in my Java applications because what can be better than a rich GUI without all the hassle needed to actually build it and hard wire it.

Chiba is an almost-complete implementation of XForms for Java. Chiba seems to be easily embeddable on the client side providing so an XForms client for Java applications.

We are thinking and will try to use it to create an Eclipse RCP XForms client. This is directly related with the Z3ECM and CPS projects: we would like to use Eclipse RCP as a rich client capable to consume XForms coming from the server, as would do the web browser.

The first step will be to set up an XForms client that will use HTML Form as interface (played into the SWT browser). Then we will try to use the UIGenerator of Chiba to create on the fly SWT forms directly from XForms. (no, I'm not stone ! ;-)

From: Eric Barroca

September 6th, 2005

The Rise of Open Source Java

“ Last year at OScon, I gave a presentation entitled What Book Sales Tell Us About the State of the Tech Industry. One of the conclusions I drew was that Java was in decline, as its share of total programming language book sales had dropped by five percentage points in the twelve months ending June 2004. Well, we just re-ran those numbers, and saw a startling reversal.” [Tim]

I think the increase has nothing to do with Open Source and everything to do with the Desktop. Java was always friendly with the Open Source culture, I think it was just a lucky moment at the beginnings when the Apache organization got involved with it, today it’s just natural to consider making your Java project public and Open Source and Apache and BSD licensing are just as natural to any Java developer as the language itself, nothing has changed in this aspect this year, things go on just as they did in the past years.

The big problem with Java was that it was cornered server side, no wander with the big troubles Swing had (performance and platform inconsistencies), but then IBM bought OTI and their SWT project, started building Eclipse and making it public. Java started to have an honorable path to Desktop side.

So what happened this year? SWT and RCP got mature enough to be actually usable (Azureus, a SWT based Java bit torrent client is the number 1 downloaded application on SourceForge to prove that). Sun probably realized that they might loose any chance to keep Swing in the picture so they really started making it work. Java 1.5 is a huge step (maybe the biggest since 1.1) forward for Java, huge performance increases and a solid vision about GUI apps. Right now Java is a serious platform for GUI applications and with two great toolkits competing against each other with two great user bases trying to prove that their toolkit and platform (RCP and NetBeans) is best for development and the end user.

Yes I think 2005 is the year in which Java got a new start, it’s desktop side, it’s a fact and it’s unstoppable (the language itself is popular, tons of libraries covering every aspect, most of them with BSD or Apache licenses, great enterprise and server side support, still on the cutting edge of the emerging technologies and for sure right there, multiplatform when multiplatform really starts to matter).

June 19th, 2005

Java Community Server.

URL: http://radio.weblogs.com/0109405/2002/09/03.html#a30

.
Started the Java Community Server

It's an implementation of the Radio Community Server in Java of course. It consists of an XML-RPC backend, HSQL for the DB, and Pnuts to script all the XML-RPC stuff.

My main focus is get the xmlStorageServer stuff working first, which is the bulk of the community server anyway. <

So far I've got the basic stuff in place to allow all the XML-RPC stuff to be scripted via Pnuts.

[Miceda]

This is cool, would it be even cooler to have it as a block in Apache Phoenix (part of the Avalon project).

Even more the storage part is already existing and working well (do in alpha stage yet). Check out DataStore which is our XML data store on top of regular RDBM's. What makes DataStore unique is that it is not only for XML (you can store well formated documents (think XML, XHTML), well formated and validated (DTD only yet) documents or regular text documents. It's a block in Phoenix with an XML-RPC server block which assures you access to the storage. You can work with a cool XML based query language called SEP (Simple Exchange Profile) which allows you to search, update and add documents over BEEP or XML-RPC. You even have a Java client API similar to JDBC. Plus that the license is Apache like :) . We tested it with PostgreSQL, SAP DB and IBM DB2. Unfortunately MySQL 4 doesn't support yet SELECT INTERSECT so the intersect part in SEP doesn't work yet with MySQL.

September 4th, 2002

Daily Rumblings

I was playing with “HyperPad” and in about one hour I made it to use antialiased fonts, it looks cool, do the antialiasing is a bit strong and it’s quite unpleasant in time. Anyway it looks a lot nicer, strange how ugly the fonts can be in Java under Linux. Also managed to solve the SkinLF bug, now if any skin it’s used the backspace key in the editor works. I had to set the look and feel first and then create the widgets. It is a funny bug, I still can’t figure why if you set the look and feel after the components are created the backspace and back cursor keys won’t work.

Another not quite funny thing happened today, while switching from xemacs to xterm to make a clean build, I noticed the the build went extremely fast, when to start the application it failed. All the source files where deleted, the source directory was clean with the subdirectories still there but no file in them. No delete command was issued, just disappeared. It happened before (once) a couple of months,, but that time I was blaming it on Quanta (it was a beta version, and I was working around importing files into a project) but this time was no Quanta around. Must be something with reiserfs. Probably I should do a kernel upgrade! Anyway happily no harm was done (this time) as I had the fresh files in emacs and the sources where in the CVS, I’m lucky enough to do commits often ;)

October 13th, 2001

MN8

mn8: O God, I'm running so late, like never before. I barely think or do anything else, yet still progress is so slow. The real problem is that designing an OO interpreter is not so trivial. All the time I have to come back to revise some design flows. I think that is called refactoring ;) . At least I do it!

Spent the whole weekend working like a crazy to refactor a few things instead of adding functionality, which means four more days of delay. But I had to do it, it was just not looking and functioning right. This was also the first time (I remember anyway) of hating Java. I just don't understand why they did the static behave the way it does during inheritance. At the end had to use the Singleton pattern, it works but I'm still not very happy. I will leave it as it is anyway, can't afford and don't think there is other solution.

Being so late and still having to work on it, always makes me think if I'm not like the cowboy programmer in the project management examples. But mn8 is (some thing which never stops amaze me) working as it was planned, more ready and more complete every day. But as I look around me, I don't really see people doing as radical and as much refactoring as me, and this worries me. Is that possible that the design was right from the first time, I don't think so, there is no such thing. I'm afraid that the others rather patch things instead of doing refactoring.

This time being late had some benefits too. DataStore got a alpha but released Avalon (finally we are not going to release it with a CVS version of Avalon), lot's of bug fixes, and a brand new SEP interpreter plus a more stabilized XML-RPC server, and a full blown PHP/XML-RPC example. Yep it works great. Crow is working on some small Java tools to let us transforms mails from mbox format in XML and then to feed them to DataStore. Will need them latter anyway, plus that is a good way of testing DataStore.

Atech did the BEEP handler so now you can open an URLConnection to a beep://xxx URL and it will work, still you have to know what to talk over the connection, but at least will allow mn8 to open url's transparently. Now he works on the XML-RPC handler. Let's see how that works out.

A, not to forget about "HyperPad". It got a pair of skin handlers so you can have skins in it (doesn't really work well, but don't think is our fault). It amazes me how well the new Linux Java works. It has better font rendering than the IBM one, and definitely is faster than under Windows 2000. It wasn't always like that. Linux rulez!

Thank's to neurogato for pointing out that: Alan's code crew text is actually lyrics to the tune of Motorhead's "(We Are) The Road Crew", yes indeed fits beautifully. BTW, if we are at the SmoothWall chapter it just happent last week to replace an old router based on LRP to a firewall running SmoothWall, it took us about two hours but only because, we went for the installation first and then to read the manuals, just like any (in)sane person would do. Great piece of software!

October 9th, 2001

Daily Rumblings

Work, work, work. The "Secret Project" is rooling, we are finaly near the part in which real functionality starts kicking in, this starts to be the fun part I like it. My Psion is broke, the nearest technicall center is in Budapest, and the reparation would be quite expensive, so I decided to try something different, an Handspring Visor Deluxe the Ice model. Initialy I wanted the Platinum model, but I forgot that I'm in Romania and there seems to be no Platinums in stock in Eastern Europe :( Seems that the client side of the web is quite resistant. When Sun first came with the Java language they where mostly thinking at applets, time and market decided that Java is for servers. The same thing happened with the XML. The initiall creators where, again, having in ming the client part of the Web, yet everybody is using it on the server side. I'm just curious for what will use peoples my next product, which for now is secret but like usualy is great and OpenSource.

May 24th, 2001

Daily Rumblings

Eazel, a company in which many (including myself) has put their hopes to improve Linux GUI and usability is going down. Unfortunately not many Linux companies remaining, I'm wandering when Ximian is going to close their gates. Even if the unfortunate dot.com bang wouldn't be associated with the OpenSource and Linux, Microsoft war machine is all over Linux these days. There seems still that one thing they can not understand. Yes they can demolish Linux (OpenSource) based companies (what's left whatever) but they can not make Linux disappear. Linux is not a company and doesn't depend on corporate financing, Linux is volunteer work and passion, you can't fight that :) )), in fact I have the feeling that they will grow our numbers :) ). What amazed me this morning that I found an article about Linux in an magazine. Then I shaw the date August 1999. Which magazine have now the guts to write about Linux, even the truth ? Still I learned one amazing thing from it, Jon Hall, the executive director of Linux International (an organization which promotes Linux) is an manger at Compaq !.

May 14th, 2001

Daily Rumblings

I like it! There is at least one thing that I learned, if you really want to learn something, go to the source (of knowledge). Let the ones who live it tell you the story, not the ones who learned it. Somehow related, I was trying to clarify a few things related to how class loaders work, and how are related to security. I lost a couple of days reading lot's of stupid documents which left more questions the answers, till I found one document and a email, which made it all clear. The best material is always hidden.

May 12th, 2001

Applet Problems

Spent my weekend with some RUE bug fixes, the patch version 0.52 it's on it's way. Spent my week trying to solve the "certificate" problem for signing RUE (being able to run as applet in Netscape). I just start to hate more and more those Netscape guys, I don't know why are standards for if nobody respects them. Neither Microsoft does but at least in IE I can completely deactivate the security and run RUE. I just had to insert all over RUE special code just for Netscape-applet mode, when rue is mainly intended as an application, I really hate doing that. But the problems does not stop here. Now Netscape does not trust the Sun packages like jndi.jar and rmiregistry.jar, because are not signed. The ugly part is that I either force the user to consider all the classes signed (case in which I don't need a signed version of RUE, off course that if it finds one signed jar will not work, don't you love Netscape). The second solution would be to sign jndi & rmiregistry jar's which I don't know if I'm allowed to do. About Netscape and test certificates after a very frustrating week I finally managed to hack a method to produce X509 test certificates for Netscape valid for as long as I want. And I'm sure I will write it down in the next day's just to make the life easier for others who might have the same problem.

October 9th, 2000

Previous Posts