Unlikely Teacher

1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]

Entries Tagged as 'Java'

Eclipse 3.5 Galileo and SVN (Subversive)

October 1st, 2009 · 1 Comment · Java, Tools

With Subversive being an official Eclipse project (2007) and the recent Eclipse 3.5 Galileo release (2009), you may be wondering why Eclipse still does not have SVN support built-in.
But don’t fuss, because it’s not that hard to configure SVN support (using Subversive) with a few simple steps. This document aims to guide you with the [...]

[Read more →]

Tags: ···

PHP writeUTF implementation

May 12th, 2009 · No Comments · Java, PHP

We currently have an application in Groovy/Grails/Java that we’re slowly porting to PHP (for more affordable hosting costs).
We encountered a problem when we needed to convert one of our routines for writing out a binary file. We were using Java’s DataOutputStream.writeUTF(String) method and had a hard time trying to write binary data in PHP.
After much [...]

[Read more →]

Tags: ·

Beginning Groovy and Grails eBook for $10

August 5th, 2008 · 5 Comments · Books, Java

As always, I’m very pleased to announce an excellent offering from the Apress daily deal site.
Beginning Groovy and Grails
I’ve been entertaining the thought of trying out either Wicket or Grails for my next web project.
The release of this discounted book answers my question of which framework to try out first.
Will this finally be [...]

[Read more →]

Tags: ··

An Eclipse Shirt For Me!

August 5th, 2008 · 1 Comment · Java, Tools

I got an email this morning (well it arrived last Friday but I read it just today) telling me that I won a free shirt.
Thank you for submitting a review of the Eclipse release to the Ganymede Around the World contest. We have an Eclipse shirt for you! Please send me your:
1) [...]

[Read more →]

Tags: ·

Certificates: PFX to JKS (Java Key Store) Conversion

July 4th, 2008 · 5 Comments · Java

I spent a considerable amount of time yesterday trying to figure out how to convert a PFX file to JKS.
I tried several approaches including this one from BEA, but I could not seem to make them work.
It was already very late when I saw an interesting blog post from CB1.
And guess what? His solution worked!
The [...]

[Read more →]

Tags: ····

Effective Java, Second Edition

May 21st, 2008 · No Comments · Books, Java

Joshua Bloch of Google is coming up with his second installment of the famous Effective Java book.
Effective Java (2nd Ed)

InfoQ has an interesting article about the upcoming book and provides a sample chapter on Generics free for download.
Other books from Bloch include:

Java Puzzlers
Effective Java (1st Ed)
Java Concurrency in Practice (co-authored)

I’ve benefited a lot [...]

[Read more →]

Tags: ·

Sun Tech Days in Manila

May 21st, 2008 · No Comments · Java, Philippines

Sun Tech Days will be in Manila from June 17-19.
Now in its 10th year, Tech Days is a Worldwide Developer Conference that spans 15 cities across the world reaching more than 100,000 developers. This is your chance to develop skills and advance your career in a Web 2.0 world; share knowledge and grow your network; [...]

[Read more →]

Tags: ···

Does Certification Help?

May 21st, 2008 · 2 Comments · Dotnet, Flex, Java

I was recently asked by a fellow Ranch Hand (through Private Message) regarding my take on Certifications.
Subject:
Does Certification Help?
Message:
Hi, I have done SCJP, SCWCD and will now give SCBCD and then SCEA. You have done these certifications. Does these help in career? Which country do u reside and what technology u work on. Which technologies [...]

[Read more →]

Tags: ··

TopLink JPA and HSQLDB Quirk

May 14th, 2008 · 8 Comments · Java

I discovered a weird issue when using HSQLDB as database provider for TopLink JPA.
We need to explicitly include the toplink.target-database property in the persistence.xml file to make it work.

<property name="toplink.target-database" value="HSQL"/>

Without that, you are most likely to get this error below when you run your application:

Query: DataModifyQuery()
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:304)

Caused [...]

[Read more →]

Tags: ··

Email/IM Notification with Log4J

May 14th, 2008 · No Comments · Books, Java

For years, Log4J has been the de facto logging framework for Java. I’m not sure if most developers are already aware of this but there are a lot of other neat things you can do with Log4J aside from writing debug lines to plain text files.
Among them are sending notifications through email, IM or even [...]

[Read more →]

Tags: ··