8 October 2008

This must have been the longest streak without posting yet. It has been nearly two months. A lot has happened here in Iraq but OPSEC rules the roost so I can’t talk about any of it. I will say that the weather is getting cooler, a lot cooler. The highs have only been in the mid to upper 90’s. Between the weather and the fact that home is within sight, everybody is in a chipper mood.

Now, I just wish you all didn’t ruin the economy while we were gone!

A

16 Aug 2008

Well, it wasn’t the greatest way to spend a birthday but I did get to mark another day off the calendar. That is about all I am liberty to discuss. Here is a picture from the sunrise this morning here in Iraq. I hope everyone is well. Thank you all for the birthday wishes. I can’t wait to get home.

 

Don’t Fear the OOP

One of my biggest hurdles I have come across since taking on Java is really getting my head wrapped around the OOP (object oriented programming) idea. Most of my previous experience wtih visual basic and php was procedural programming. Because of this, my mind is stuck thinking in those terms.

All the e-books I have been going over describe OOP as something that “should” be easy to grasp. A class is a classification of an object. An object is a noun, like a dog, that can be described attributes or fields: four legs, two ears, two eyes, brown, tail, etc. A method is how that dog interacts with other objects: playFetch(), catchFrisbee(), peeOnLeg(), etc.

Okay, so that seems pretty simple. I get these things. However, I don’t see how the hell I can relate that methodology to creating an application for LDAP or even a simple calcualtor for Marine Corps Cutting Scores (the score that gets us promoted).

Luckily, the internet has a plethora of information and I found it on a Stanford student’s website. Jos Claerbout wrote the paper back in 1999. It isn’t on the intricacies of Java. Since OOP is a method or style or paradigm of programming, it doesn’t change as much over time so the age of the document is less relevant than its style.

Mr. Claerbout’s paper is called Don’t fear the OOP. He uses a trashy western novel as his focus to describe OOP. Each idea is presented in “pretty” colors. If in green, the idea is discussed in terms any literate human could understand. If in yellow, it is a bit more programmatical but still not full fledged “programming talk”. And, if in red, it is all about the code. I can’t say I have ever read a paper that used these styles of teaching but it works. It has been a great reference to put me over that edge so I can get beyond the rut I’ve been stuck in.

The internet really is a great place…

Java and Eclipse and Linux… Oh, my!

I have been flipping between Windows and Linux for quite some time now and I’ve finally decided to stick to Linux for the remainder of my “vacation”. I’ve been looking into object oriented programming for a while. I think it’s time I either get serious about technology or get out of the sector.

Java offers a unique opportunity. Sun has announced plans to open source java and it is beginning to take shape. I think this will help guarantee it will be around a while. On top of that, Java and C# share a lot of similarities so it won’t lock me in to one language for life. I find I actually use more Java based programs than C# based. So, I began looking into learning Java and found that it is a real pain trying to get any software in this part of the world. I plugged in my linux hard drive and found that I already had Eclipse installed (an open source IDE (Integrated Development Environment)). Next thing I knew, I had everything in front of me to begin coding away. The best part is, it is all free. Free as in beer. Free as in speech.

A little searching on the web found a plethora of Computer Science courses related to OOP and Java. And people wonder why I love the internet and open source so much.

Software for CTARNG

The other day I was contacted by a Cpt Miller with the Connecticut Army National Guard (CTARNG). It turns out that the entire CTARNG uses the program I wrote called Active Directory UserMod Assistant. Cpt Miller needed some modifications made to make it work in his environment. I was able to help him out with his mods. It was a bit odd getting a request like that in Iraq. He didn’t know I was here but it was nice knowing that the program I wrote is helping out the Military.

The tricky part was coding without Active Directory and without any of my reference materials. The changes he was looking for were fairly trivial. I was just excited to do some actual work on a computer besides another roster in excel.

DevCon: Rescan for Hardware automatically

I’ve been having a strange issue with a PCMCIA card on my wife’s computer. Every time the machine is rebooted, you are required to “Scan for Hardware Changes” in device manager. It does not automatically detect that the PCMCIA card is still plugged in. After searching google high and low for a solution, I thought about seeing if I could write a script that would automatically run a hardware scan at logon. Here is what I came up with:

  1. Download DevCon.exe from Microsoft: DevCon.exe
  2. Extract either the 32-bit or 64-bit executable to C:WindowsSystem32
  3. Create a file called: “devcon_rescan.cmd”
  4. Put the following text in it:
    @echo off
    devcon.exe /rescan
  5. Copy the file to C:WindowsSystem32
  6. Open the registry editor: Start –> Run –> regedit
  7. Go To: HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun
  8. Create a new string value called: DevCon
  9. Right click the new value and select Modify. Type in the path to the batch file you made (i.e. “C:WINDOWSSYSTEM32devcon_scan.cmd”)

Hope this helps somebody.

Angelica June born…

So, I am posting this everywhere and I now realize why new parents are so annoying. Last night, at 11:52pm, nearly 15 hours into labor, Rose gave birth to our first baby. She is the most beautiful thing I have ever seen. Rose had a pretty hard labor. Everything was progressing pretty quickly until baby decided she couldn’t make it down the birth canal. I am being blamed for her big head but I don’t really care now.

The doctors had to do an emergency cesarean section because of mom’s fever and baby’s heart rate. We were all scared but everything went smooth and she came out crying and breathing on her own.

I don’t know how I am going to leave her or her mom in six days. It will probably be the hardest thing I’ve ever done.

Another Nephew

So, my sister is going to have another boy. She sent out an e-mail today announcing the great news. I have no doubt he will be just as awesome as my other nephew, Hunter. I really hope I will be home to meet the new addition to my family before I leave for my deployment. Congrats Jess (and Sean, Lotus and Hunter!)!

AD UserMod Assistant 9.0

I finally got around to the latest version of adumass. This was a major release as it fixed some pretty serious bugs and also greatly improved the UI and backend code. I also added a few functions for data validation. Thanks to all those that have helped and submitted support requests. The next version should have a translation pack for those users that don’t habla englais.