Thursday, July 31, 2008

Belts



Certainly worse exist, but "The Belt-Napper" is not a moniker I want on my headstone.

Pictured are all belts I could find after spending an hour of frantic house/garage/car hunting. Glenn if any of the above even "closely resemble" a belt you may have owned or borrowed for an extended period or even viewed while browsing a local Deseret Industries, then please claim such belt as your own surrogate belt. I understand such a surrogate will be but a shadow of the belt with which she replaces, but in time.. in time wounds heal.

Monday, July 28, 2008

ZoneAlarm: a love / hate relationship

I love the free version of ZoneAlarm. Having a firewall software loaded on a Windows XP computer with access to the internet is a must for the health, security and privacy of a system. However, ZoneAlarm is such a nightmare when I try to do anything "networky". I have added the IP address of the other computer, but the menus in Zone alarm are so poorly named I cannot figure out how to enable network file sharing. So I am stuck, I am trying to get Ubuntu to mount a Windows XP share drive, if I disable ZoneAlarm, BINGO I am in, if I enable ZoneAlarm, when I try to connect I get an infuriating ZoneAlarm message that remote access was blocked. If you know of a better personal firewall software to use (or how to get ZoneAlarm to allow Windows XP filesharing traffic) please let me know.

My dream Windows XP Internet and network firewall software is:
  • Free (can be open or closed source, but nag screens to buy should not be worse than ZA)
  • Configurable (So that I can allow traffic like windows file shares)
  • Good help documentation so I can figure out how to allow different types of traffic in and out
  • Actively maintained
  • Always on and low resource footprint (does not grind my system to a halt)
Yes I should just switch the other computer to Ubuntu as well and be done with it but,
we have and love the Adobe software that is windows/mac specific. This is the major reason left to have MS Windows at home, this and PC games which I never play anymore. I wonder how much Adobe is being paid to NOT develop a Linux version of their software, because as soon as they develop Linux versions... RIP MS Windows forever.

Tuesday, July 22, 2008

Dr Pepper

After bringing home about 4 six-packs of Dr Pepper from the museum in Waco, Texas, there are only 7 left... the original recipe, Imperial Sugar version is so very good. Rebecca has now banned me from them... the remaining cans are now hers and she can't drink them until after the baby comes in March. To be fair, I did not drink all of them in July. I gave out quite a few to friends and family. I would still like to have Steven try one as well, so maybe the last six-pack is Rebecca's.
On another note, the vinyl fence is finally done! I will post pictures if Rebecca does not beat me to it.

Wednesday, July 16, 2008

Java reflection tip of the day

Suppose you want to call a private method of a class called FourGablesGuy. Suppose further that the private method of this class has primitive type arguments.

public FourGablesGuy {
private String privateMethod(int intParm, boolean boolParam)
{
return "four gables guy";
}
}



Using reflection you can do it, but it was a little tricky for me.


...
FourGablesGuy myFourGablesGuy = new FourGablesGuy();
Object[] args = new Object[]{ new Integer(921), new Boolean(true)};
Class[] params = new Class[] { Integer.TYPE, Boolean.TYPE };
String result;
try {
Method privateMethod = myFourGablesGuy.getClass().getDeclaredMethod(
"privateMethod", params);
privateMethod.setAccessible(true);
result = (String) privateMethod.invoke(myFourGablesGuy, args);
} catch (NoSuchMethodException nsme) {
//do stuff
throw nsme;
} catch (InvocationTargetException ite) {
//do stuff
throw ite;
} catch (IllegalAccessException iae) {
//do stuff
throw iae;
}
// at this point the result String should have the value of the private method call
...


Getting the Class object for the primitive types was one issue, it is not java.lang.Integer! Also, knowing that an Object Array of a java.lang.Integer object and java.lang.Boolean object will be acceptable arguments to a Method defined with primitive params was the other big logic hurdle.
Hope this helps someone, maybe some Java professor needs a tough bonus reflection question. Or maybe this is all just obvious to the entire Java community and I am the last one to figure it out.
So if you are getting NoSuchMethodException and the method is using primitives, it is probably because you are not using Integer.TYPE for the Class Array of parameters and are using Integer.class instead.

Tuesday, July 15, 2008

Wisdom Teeth

Dentists have been casually recommending that I have my wisdom teeth removed for about 10 years now... I never felt like paying for it or going through the hassle. Well this past checkup visit the Stonehaven dentist pushed removing my wisdom teeth harder than any previous dentist has. His assistants picked up right where he left off, aggressively pushing the procedure. I still did not schedule to do it at the office, and I was annoyed by his salesman style approach. Then Rebecca started asking me, "When should I schedule to get those wisdom teeth out?" I think I reacted to her the same as the dentist in the office by telling her, we can't afford it, I am too busy at work, it is not hurting me to keep them, and maybe next year. But Rebecca made a good point, these teeth are a "health liability". She said all LDS missionaries are now required to have them removed before leaving on their mission. Keeping them is a liability if a problem develops while in the field away from modern medical facilities in the US and other countries. She also asked me if the roles were reversed and it was her that needed the wisdom teeth removed, would I be against it? I never thought about it that way, and it turned my perspective around on the cost. For six hundred or so dollars I can pay off that "health liability" forever and if Rebecca needed it done, I would let it be her decision and would support whatever she decided.

I am not looking forward to the procedure having read about the recovery: swollen face, oozing and bleeding, smelly foul bacteria breath for a week... but I will get it done in the next month or so regardless. This is also the first time I have been put under general anesthesia, so I hope I don't freak out, have Mom's nausea, or just never wake up.

Thursday, June 26, 2008

I can't wait

I joked with Rebecca that she will not get any sleep Friday night because she will be so excited to get back to Utah. However, I may be in the same boat. I can't wait to get home. I can't wait to breath the mountain air and feel the soft grass under my feet. It has been great to come out and be in Texas and experience Austin. It has been so nice to visit family here in Texas, attend two weddings! and visit Dallas / Fort Worth several times. But it is now time to get home and stay home. I am so glad to have a supportive family to take care of the things that needed attention while I have been out here in Texas. I owe Mom, Dad, Hillary, Hannah and Linc big time. Being in Texas has stirred up some memories and it has been great to see family that I have not bothered to visit for way too long.

On another note, I spoke with Hal yesterday. He can't contain the enthusiasm he feels for getting hitched. It reminds me of having to wait 6 months to marry Rebecca. I have absolutely no pity for him having to wait 3 months. It really was hard waiting so long, the only thing that kept me from going crazy was that Rebecca told me she would make sure it was "worth it". After she said that I realized that the more I focused on her happiness, the happier I was. The time I was engaged went by faster because I was writing love letters to her, sending her notes, calling her up, taking her out on dates, and making sure she knew I was still the one who she was going to marry. We spent the time talking about our reception and wedding. We talked about our life together, started working out roles and responsibilities we would have, began setting expectations for ourselves, and set short term and long term goals for our family. Nearly three years later, I can honestly say I had no idea how "worth it" she was. She would have been worth 6 years. It is sometimes tempting to think, "Oh if we had only met earlier, we could have been together for even longer", but Rebecca is right; the timing and way we met and fell in love was perfect. I wouldn't change it if I could.

Sunday, June 8, 2008

Switching from Saving to Spending

Our neighbors approached us with this idea to get a fence between us in April. We had started to save for a fence prior to this event, however we were not very far along the road. It may end up costing around $5000 more than we had accumulated for a budget. Thankfully we have a "rainy day" fund which we were able to dip into for the extra money needed to complete the fence project. But as the saying goes, "When it rains, it pours." The rental property has been a sleeping financial hazard for us and finally reared its ugly head in May. All in all it will be about $5000 to cover the costs to repaint, repair damage and replace worn out carpet to prepare for a new tenant. Again we did not have enough budgeted for this large of an expense. In order to cover these costly repairs while also paying the mortgage on a vacant rental property, money had to come from somewhere. While working the numbers, I realized that the fence project was not an emergency and just because our neighbors were ready does not mean we were. I realized I had switched from a saving to spending mindset. So instead of spending so much out of the 'rainy day fund', Rebecca and I found ways to afford the fence by sacrificing other budgetary wants like a vacation and new furniture for the fence and rental repairs. Once all the sacrifices were made to afford the fence, we knew we were still short what was needed. However, it felt much better to take the minimum necessary from the emergency fund. We have heard Church leaders tell us to avoid debt and establish an emergency fund; I can say that the peace of mind which comes from following this advice has been worth the small sacrifices necessary. We are back in the saving mindset and have recommitted to save and replenish what was taken out of the emergency fund briskly, and steadily.

About Me

My photo
Lead Java Developer Husband and Father

Tags