In every Java project where I need to do strong cryptography, I run into these dreaded unreadable stacktraces which send you into the woods. After a long search I usually discover that the Unlimited Strength Java Cryptography Extensions are not installed. To prevent frustration of users of your software, you can simply add a bit of informative logging to help him/her solve it when the solution is known.
Tag: Software
Ibatis Inline Parameter Maps
Today I (re)discovered a feature in the Ibatis data mapper framework which was clearly documented, but for some reason was not being used in our project. The feature is called “inline parameter maps” and combined with a wrapper bean it can clean up a lot of clutter in the code and in the SqlMaps. Please feel free to share this example with your fellow Ibatis Data Mapper 2 framework users.
Migrate from Password Gorilla to KeePass
I used to use Password Gorilla to store my passwords, because it can run on both Mac and Windows. Because my password database keeps growing, Password Gorilla is becomming a very slow starter, even on my new solid state disk. A few weeks ago I learned that KeePass is a much more modern application, and is available for both Mac and Windows. Here’s what I did to get all my passwords into KeePass:
Care vs Careless
Choose: AFP or SMB
I recently upgraded the operating system on my trusty Mac Mini G4 home fileserver from Tiger to Leopard. In addition to the out-of-the-box backup, I no longer have to use SharePoints to manage my network shares. In Leopard, I can just right-click them and arrange the sharing.
In doing so, I decided to switch on both SMB and AFP sharing for all shares. The idea was that my Macs all would use AFP automatically, and all Windows machines would see the SMB mounts. After a few hours, iTunes began acting up on me, because it decided to switch between the SMB and AFP protocol (or so it seemed). Finder also seems to have some trouble listing network shares if the exact same name on the same server is shared with two different protocols.
Because there are people on my network with Windows machines, I decided to switch off the AFP protocol and only go with SMB. I haven’t had problems since.
If you’re sharing drives like I’m doing, go for SMB. It may not be the technically superior solution, but it will “just work”. You can easily switch to AFP when the world is freed of Windows machines. 😉
The vi religion
Every age has it’s tools. Many, many years ago, in 1976 to be exact, squinty-eyed nerds with a social deficiency ruled the computer world. They talked to eachother in a secret code, wore geeky clothes and made sure that everybody thought that computers were magic. To make sure that nobody could ever use a computer to edit a file, they all swore to never ever use another editor than… <scary music> vi </scary music>.