March, 2010

...now browsing by month

 

Power Outage this morning

Wednesday, March 24th, 2010

Nothing like getting a foot of snow, then having the power go out to start your day! Luckily, my employer saw the wisdom in closing today.

I had to pick up one of my kids from the local theater last night. When I dropped him off, there was just the start of a little rain. When I picked him up, I had chains on the tires. A good thing as there were several cars that has slid off into ditches on the way. Front wheel drive with chains beats 4WD every time. Even though it is Spring, Winter just isn’t that far away, especially when you live close to 7,000 ft in elevation.

The power went out twice this morning. I have an older TripLite UPS on my server. By the time I got down to the basement, everything was off. At some point, I really need to hook up the cable from the ups to my server that notifies when power is going down and to shut down nicely.

I was lucky in that nothing was really corrupted. I have about four years of half.com history of the top 200 book lists that I have been scrapping with a perl script. Originally, I was going to use the data to create lists of books that are valuable, and hopefully can be found at local library book fairs. Although I thought this was a good idea, it never amounted to much. I still keep track of the top 200 list.

I’ll post a picture of my server in the basement later for anyone that wants to see my setup!

Servers

My server room

Oracle Portlets with multiple datasources

Friday, March 12th, 2010

I just finished creating an updated portlet for work. There were two changes that were needed, data from two different database instances and the format was changed to use <dt> and <dd> tags. This allows for a rolling scrollable format to be defined by a cascading style sheet.

I thought this would take a couple of hours, so estimated this at about four hours to complete. Now I’m finished, and it is six hours after starting. So what went wrong? The biggest mistake that I made was not really understanding what happens when the files are bundled up for deployment. When creating the two separate model projects, I used the same name for the package name. I was using different names for the model projects, so no problem, right? Wrong! When the files get packaged, the package names are used in a combined classes directory. Since I have two different bc4j.xcfg files defined, one of them gets clobbered and I get an obscure jbo oracle error.

If you are using multiple models in a project, just use a unique package name for each one, and things will go much better for you! Though, it might still take six hours instead of two…