Monday, 31 March 2008

Overloading properties in maven

I don't know how to say this well, so I'll just state the problem and the solution.

P: In maven, if you declare a variable for a host (where you keep config files or something), if you cannot reach the host your build might fail. I've got this issue for a groovy build script, checkstyle and pmd config's.

A: Rather than modifying your pom and possibly messing up the code, you can change your local settings.xml file to have that property instead. It seems to take priority over vars in parent poms.

Ideally, I'd store those config files with the parent pom, but I've not had time to look into how to do that.

Friday, 28 March 2008

Secure maven repo

Most of the maven repo's out there are accessible over plain http. However, you might want to secure your maven (corporate?) repo. If you have scp / ssh private-public keys set up it's pretty easy once you know the config. Like most things "maven", finding the config is the hard part. ;-)

Thursday, 27 March 2008

Vasovagal syncope

I learned a new word (?) today: vasovagal syncope. I also learned that I don't like giving fasting blood while working on almost no sleep. Ya, that was fun. Threw me off for most of the day too, especially the morning.

The worst part about the experience? They couldn't actually get any blood so I've got to do it all again. :-(

Double frick.

Wednesday, 26 March 2008

iTunes - clunky and broken

One thing that I seem to be continually disappointed from apple is iTunes. Holy craptastic. If you do a search for things like removing duplicates you get close to 200k hits. There's 3rd party commercial products that you can buy to solve this issue. iTunes allows you to "see" the duplicates in a playlist, but they don't provide anyway to prevent them. Crazy. You'd expect something that been around for over 7 years to have fixed what I'd think is a basic problem.

Another thing that keeps on causing me grief is that my media is on an external drive since I've got a macbook. So, I point my media library to the external drive, but if iTunes starts up and my drive isn't already mounted it just resets to the default location. So then I've got some files on each drive, but all the files I have iTunes doesn't think exist anymore. I end up clicking on a bunch of songs to to get things going again. It would be nice if there was a generic "now the drive is remounted, check if the files are there" button, or *gasp* have it happen automatically. I know that this is a pretty complicated thing, but it would be good if you could set a "primary" media library location and default to a secondary one if that's not accessible. And when the primary is available, to "merge" in any new media that might have been added.

I recognize that this is a total pipe dream since apple isn't even able to put a "no duplicates" on a playlist. What technical roadblock causes that? No one knows of a data structure that only allows one instance of something in it? *grumble*

This is one reason why it's nice to have open source software sometimes... there would be a patch even if the commiters don't want to have that feature.

Frick.

Tuesday, 25 March 2008

Costa Rica - Part 2 - Transportation

In my ever lazy pace of blogging, this is the second part of my Costa Rica "series". See Part 1 to catch up on all the exciting details.

Traveling in Costa Rica more touristy areas is pretty much like anywhere else I've gone minus the public transportation. A bunch of crazy cab drivers who can zoom around while you silently pray to yourself. In Alajuela by the airport they're a little more crazy. Blowing through red lights and stop signs, looking like they are about to smash up their car, getting you to your destination through a dizzying set of roads and back alleys so that you aren't sure exactly where you are. Pretty standard stuff.

Around Arenal we actually rented a small car for the day so we could get around. Driving there was actually kind of fun with the gentle up and down of the roads. That was the first time we had rented a car in a foreign country and over all it was a brief and pleasant experience.

Domestic Air Travel

From San Jose we flew down to Puerto Jimenez on a small 12 passenger plane. It's a very different experience to be so close to the front of the plane where you can reach out and touch the controls. The landing in Port Jim was interesting. I don't know what they are saying with the graveyard right beside the airstrip, but I figured that it was better not to ask. Pretty smooth operation overall. When we flew back it to SJ was really, really windy. As the plane was about to touch down the it was swinging left and right about 30 degrees off center. I think that we landed on one wheel instead of them both touching down at the same time. A great experience.

Taxi's in the Osa

Some taxi's in the Osa are nice, new SUV's. However, most seem to be pickup trucks where they have 2 bench's in that back that you sit on. Padding on the bench is a bonus. Not bad overall. This is how we got from Port Jim to Carate on the taxi colectivo. It was fine going there since they just kept on pulling up more trucks based on how many people were leaving. If you see your stop, just pound on the roof of the cab and the driver will stop. Coming back from Carate was, shall I say, "interesting". They had only sent one truck to do the trip back on the afternoon we decided to leave, but there was 16 or 17 people that wanted to go back on the afternoon bus (note: try and take the morning bus). So in the back of the pickup truck was 11 people, a spare tire, a propane tank (?!?), everyone's gear (huge backpacks), with 3 people literally hanging off of the back and 3 in the cab.

About 50 minutes into our 2 hour journey we met up with another "taxi" that had been sent and half of the people switched to the other cab. About 5 minutes after the transfer we got a flat tire. In the middle of the jungle. Nothing around except for squirrel monkeys. The driver had a X tire iron and actually torqued the end of the iron trying to take off the rusted nuts (he used a pipe for leverage). As I had mentioned in Part 1, people are really friendly and a Tico stopped to talk and help. He had a X tire iron too, but that didn't seem to work. It didn't take long until our driver took out a hammer and chisel. No joke. He was wailing one those nuts to try and get them to turn. I've never seen or heard of someone trying to take a tire off like that. There's a reason: it doesn't work too well. I wasn't paying too much attention and then I heard a car door slam and the guy who was helping us drove off with our driver. Luckily he came back with another tire iron after like 10 minutes, but we didn't know that. He didn't explain it before he left... we wouldn't have understood him anyways. Short story, he came back, was able to change the tire and we got back just a little late. As for how many lug nuts we had on the tire: I don't ask questions I don't want to know the answer.

Sunday, 23 March 2008

As the mayhem subsides

... all I hear is the dishwasher. This year we hosted Easter. I think that this if the first time we've had a mildly large group (9 adults, 6 kids) and it went much better than I had feared. I always half expect there to be blood and broken dishes and am always pleasantly surprised. Allowing the kids to play the wii probably creates as many issues as it solves though. Ah well.

It's great to be able to see everyone and it's wonderful to actually have the space to see them all at the same time. Come summer time we'll be able to host a bbq as well. Having a house does have its advantages. ;-)

Friday, 21 March 2008

Dr. Mario and Bacteria Extermination

So Dr. Mario and Bacteria Extermination is due to be out in March. No date set for north america, just sometime in 2008. How long does it take to do a language translation and retesting on a games these days?

My only guess for the lag is for setting up the extra infrastructure for the online component, but even then how long does that take? *sigh* I just want everything now. Ah well. I guess that I should take out GH3 that we bought last night. ;-)