Category: Uncategorized
-
Eclipse Juno has a new look!
Just downloaded the latest milestone release (M6) of Eclipse Juno (4.2) and I was quite amazed at finding out it has a brand new splashscreen, which, I must confess, quite rather like! And Juno brand new UI looks really really neat!
-
Adding a new sudoer in Ubuntu
This is something I have to do from time to time, but not frequently enough that I manage to memorize it – but trivial enough that it annoys me to have to look it up every time. Here’s to future memory: create a new user `bob` sudo adduser bob check that the `admin` group is […]
-
Carrier BIlling comes to Android!
Some of you folks may have recently noticed a little remark at the bottom of an email from the Android Market folks: Finally, we wanted to bring to your attention that Android Market now offers a new form of payment for users on the AT&T network — Direct Carrier Billing. This payment option lets Android […]
-
Using the same model classes in Android, GWT and JPA
These days, it is rather common to have a mobile-enabled web service or application, where you essentially enable your users to access the service both via a browser-enable desktop application, as well as from their mobiles whilst on the go.It’s usually the case that the main business logic, as well as the business Model, are […]
-
Changing the value returned by getModuleName
When refactoring the name of the GWT module (which typically involves changing the name of the Module.gwt.xml file, see this post) you also have to change the returned value from getModuleName() in every GWTTestCase: This is way I usually factor the name of the module out into a utility class, and reference a static constant […]
-
Setting up a shared repository for Mercurial
Mercurial — Source Versioning Control (this is also available as a Google Doc) Mercurial — Source Versioning Control Use of Mercurial over SSH Creating a private/public key pair Setting up your username Pulling a changelist from the remote repository Making changes to the files in the (local) repository Pushing changes to the (remote) repository […]
-
More about GWT and Spring
The following was contributed by Yaakov Chaikin (one of the authors of Core Servlets and JavaServer Pages) following some conversations we had regarding an earlier post of mine.I am only too happy to post it here, with many thanks to Yaakov for taking the time for drafting it. Let me share one more thing with […]
-
Why hashCode() matters
If you have ever overridden the equals() method of Object in your class code (and who hasn’t?) you will obviously also re-implemented hashcode() too, following the (ominously scary) warning in the Javadoc of equals(): Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the […]
-
A DiffSet generic collection
Working on a GWT project that requires fairly frequent RPC calls to the server to exchange data I was confronted with the following problem: the data set itself was likely to be of fairly large size — not massive (we are not talking tens of MBs) but not smaller either: to give a rough estimate, […]
-
An Add / Edit ListBox for GWT
Update — turns out that using Hyperlink is not the best solution: one is better off with Anchor widgets.The change to the code is really trivial: simply change the constructor of the two Hyperlink widgets to look like: Anchor addLnk = new Anchor(“add”); that’s it.—A relatively common ‘widget’ that one needs to use in several […]