Archive for the 'Java' category
November 16th, 2006 / Catalyst, Code, General, Java, Languages, Perl, Ruby, Useless Information /
It is pretentious for me suggest my own name be attached to something. Therefore I will not request that this be named in my honor, but I would like to release this law to the world.
As a discussion related to speed, efficiency or convenience of a ‘program’ grows longer, the probabilty of someone telling [...]
→ Read the article
March 6th, 2006 / Code, Design, General, Java, Languages, Life, Perl, Ruby, Useless Information, Work /
I’ve been doing the computer thing for over 10 years now. I’ve been programming for most of them. I know a bunch of languages, technologies and other doodads.
To this day almost nothing can compete with the feeling I get from creating an efficient, elegant computer program. Well, some things can. We’ll [...]
→ Read the article
February 22nd, 2006 / Code, General, Java, Languages, Perl, Ruby /
Marcus recently said some things about languages that I agree with whole heartedly: Pick your weapon and go to town!
It’s the tools that make languages useful. Rails is always an example because it’s Ruby’s killer app. The tools don’t make the language, but they certainly draw moths to the flame.
So here’s to linguistic [...]
→ Read the article
December 28th, 2005 / General, Java, Languages, MacOS, Operating Systems /
Slashdot had an interesting story few days ago about Apple still clinging to Objective-C. After a bit of thinking I decided it was good that Apple were sticking to their guns concerning languages. The third-party apps are rich and vibrant. Why should they pull a Microsoft and start pushing their developers into [...]
→ Read the article
October 9th, 2005 / General, Java /
Just when it seems I’ve decided I dislike Java for real, I find something that changes my mind. Now I have some ammunition to use when people ask me how the JVM is able to be faster in certain situations that a traditional program.
→ Read the article
October 4th, 2005 / Code, General, Java, Operating Systems, Ruby /
I try to like you, I really do. I want to use your phenomenal cosmic power to make my life easier. Disclaimer: I’m on OS X w/the default 1.8.2 install.
Today, I installed Rails and said: “During lunch, I’m gonna start porting my app to Ruby On Rails!” I already have Postgres installed, [...]
→ Read the article
September 30th, 2005 / General, Java, Languages /
Gavin King mentioned today that Hibernate 3.1 is going to have Pluggable Session Management. Session management is probably one of the most irritating parts of Hibernate. This could open the door for a significant improvement in this area. I’m excited!
→ Read the article
September 26th, 2005 / Code, General, Java, Languages /
R.J. Lorimer put up an article today reminding Hibernate users that caching doesn’t ‘just work’. The article gives some insight into Hibernate’s second-level and query caches.
The real lesson here is to read the caching section of Hibernate’s documentation.
My latest project uses Hibernate but has completely avoided the cache. I plan on integrating it [...]
→ Read the article
September 22nd, 2005 / Code, General, Java /
My current project utilizes Hibernate to abstract away the database access. I’m very happy with it, as any performance sensitive spots can easily be implemented with straight JDBC.
Anyway, there is one thing that I’d like to clear up. When you represent an object’s relationships with a Set, you add something like this to [...]
→ Read the article
September 11th, 2005 / General, Java, Languages /
Tested this and it’s compatible with Perl’s Digest::MD5:
StringBuilder hexString = new StringBuilder();
byte[] bytes = digester.digest();
for (int i=0;i < bytes.length; i++) {
hexString.append(Integer.toHexString((bytes[i] >>> 4) & 0×0F));
hexString.append(Integer.toHexString(0×0F & bytes[i]));
}
// hexString.toString() will give you your hex string!
→ Read the article