Subscribe to RSS Feed

Categories

Archives

Archive for the 'Java' category

Reductio ad speedum

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

You Wouldn’t Believe

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

A Little Language Labeling

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

Of Apples and Languages

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

Every Damned Time…

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

Ruby On Rails and Ruby-Postgres on Mac OS X Tiger

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

Hibernate Just Got Cooler

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

Hibernate And Caching

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

Hibernate and all-delete-orphan

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

Java: Convert MessageDigest output to hex

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