Geeks With Blogs

News



Add to Google

Tim Hibbard CEO for EnGraph software March 2007 Entries
Pictures of Golf and our new office
Yesterday Kyle, David, Jonathan and I walked 18 holes at St. Andrews in Overland Park and then did some planning at our new EnGraph office in Lenexa. Here are some pics: David teeing off Water hazard? Our new desks! David and Jonathan's office Server room...finally! Technorati tags: Golf, EnGraph, Kyle Archer, David Collins, Jonathan Umscheid, St. Andrews, Overland Park, Lenexa ......

Posted On Thursday, March 29, 2007 1:05 PM

Unit testing thoughts
I try to maintain 100% code coverage in my non-UI classes, especially my state objects that just hold data. I recently ran into a situation that I'm having trouble writing an automated test for. We have a ContactInformation class that holds information about how to contact a person (home phone, cell phone, email), and in that class I have a .SendEmail and .VisitWebSite methods: public void SendEmail() { if (!string.IsNullOrEmpty(_ema... { System.Diagnostics.Process.... ......

Posted On Thursday, March 29, 2007 9:27 AM

Our last week in the Lawrence office
The last year in the Pendleton & Sutton building has been good for EnGraph. It is our first office and I remember when we just moved in. However, we've added new members to the company (and are still looking for more), and an office in Kansas City just makes sense because all the developers but me live in the KC area. We just signed for a place on Strang Line Rd that used to be occupied by Kyle's brothers company, ASB. We move in on Monday and I'll be driving there everyday (which will make Where's ......

Posted On Tuesday, March 27, 2007 7:44 AM

GeoRSS on maps.google.com
The Google Maps API blog talks about adding support for GeoRSS enabled feeds on Google Maps. That means you can take the Where's Tim Messaging Feed and view the last 50 message people sent me on Google Maps You can also take my location feed and view it on Google Maps. Since my location feed contains Yahoo Maps, clicking on the GIcon will show a Yahoo Map on the Google Map! Technorati tags: GeoRSS, Where's Tim, Google Maps, Yahoo Maps ......

Posted On Monday, March 26, 2007 12:20 PM

GUID as Primary Key
Jeff Atwood wrote an interesting post yesterday arguing for using GUIDs instead of auto-incrementing integers. We recently had one of our clients merge with another one of our other clients and it was a pain merging their ParaPlan databases. If we were using GUIDs as Primary Keys, the headache would have been much less. Technorati tags: Database design, Jeff Atwood, GUID, EnGraph, ParaPlan ......

Posted On Wednesday, March 21, 2007 7:45 AM

Vista New Email shortcut
Typing mailto: in the search box in the Vista start menu will open a new mail message in Outlook. It is much faster for me to hit the Win key on my keyboard and type mailto: than it is for me to hunt through the 15 open applications, find Outlook and click "New". Plus I don't have to transition between my mouse and keyboard. It's really not a new Vista thing since you could have typed WinKey + R, then mailto: before, but it's still cool. Technorati tags: Vista, mailto: ......

Posted On Monday, March 19, 2007 12:47 PM

Perfect NCAA bracket
According to SportsCenter last night, out of 3 million brackets submitted to ESPN.com, only one person has picked his bracket perfectly. The team that he has winning it all? Kansas Jayhawks! Rock Chalk! Technorati tags: SportsCenter, ESPN, Kansas basketball ......

Posted On Sunday, March 18, 2007 9:17 AM

Chris West's NCAA picks
Chris West has posted his picks for the first and second round and also his picks up to the championship. I still like my picks better, but it's cool to see his thought process for each of his decisions. Update - Fixed the link Technorati tags: NCAA, 2007, Chris West ......

Posted On Wednesday, March 14, 2007 1:49 PM

More thoughts on Equals()
I agree with Dru's comment on my post yesterday about overriding Equals(). I now want to implement a static function into my objects that will compare two objects. Again, I'm stuck between two ways of doing it. I could accept specific object types (static bool Equals(MyObject a, MyObject b)) or just accept an object type and cast it (static bool Equals(object a, object b)). I'm leaning towards the latter way as it allows me to define that method into the interface that all my objects already implement. ......

Posted On Wednesday, March 14, 2007 10:25 AM

The upset that will win me all my NCAA pools
#13 Davidson will crush Maryland tomorrow, making me the envy of all those in my bracket pool. Other over-ranked teams taking an early first round exit: Butler, Notre Dame, UNLV, Indiana, Creighton and Vanderbilt. Kansas and Texas in the National Championship. Kevin Durant scores 44, but still suffers his third loss of the year to the Jayhawks. Rock Chalk! Technorati tags: NCAA, Maryland sucks, Kansas, Rock Chalk, Kevin Durant ......

Posted On Wednesday, March 14, 2007 7:51 AM

Overriding Equals thought
When overriding Equals() in an object, I wonder if it is better to compare the fields using != or use the .Equals of the field's value type. Assuming that _invoiceID is an int and that x is the obj, should I use the != way of comparing: if (x._invoiceID != this._invoiceID) { return false; } Or use the .Equals method of int, like this: if (!x._invoiceID.Equals(this.... { return false; } If I use the .Equals style, then I won't have to change my code if I ever abstract InvoiceID into its own ......

Posted On Tuesday, March 13, 2007 3:19 PM

ToolStripManager with ClickOnce
The ToolStripManager is a great way to save the position of toolbars on your WinForm apps. More info here. It works a little bit differently with ClickOnce applications, but it is an easy fix. Just set the key to a unique string. The key would probably have to be unique for the entire machine, but I'm not sure about that. The code looks like this: void formValidateBatch_FormClosi... sender, FormClosingEventArgs e) { ToolStripManager.SaveSettin... ......

Posted On Friday, March 9, 2007 11:22 AM

Evil in the air
The next task in our Team Foundation Server is going to be id 666. Maybe I should not work today and just watch basketball. Technorati tags: Evil ......

Posted On Friday, March 9, 2007 7:30 AM

TFS Work Item Management Outlook Addin
Wow! The SRL Team has released an Addin for Outlook that connects to Team Foundation Server. This is the task management tool that I have been waiting for. You can generate a work item right from Outlook. You can view queries, you can search your work items, you can even generate a work item based on content from an email. I mapped the subject to the task title and the body to the description, but you can map any field you want. Then it changes the subject line in the email to have the work item ......

Posted On Thursday, March 8, 2007 7:06 AM

Localize Me
According to the LJWorld, a Lawrence man has eaten at Local Burger (a local organic restaurant) three times a day for the last 30 days. He lost almost 25 pounds and his cholesterol dropped from 285 to 166. He is going to continue his new diet and the owner of Local Burger is giving him a 50% discount until he reaches his goal of 200 pounds. Good for him! Technorati tags: Lawrence Kansas, Local Burger, LJWorld ......

Posted On Wednesday, March 7, 2007 1:08 PM

Why doesn't SqlClient.SqlCommand CommandType default to StoredProcedure?
I find it frustrating that the SqlCommand object doesn't automatically set the CommandType to StoredProcedure on instantiation. If you look in Reflector, you'll see that _commandType isn't initialized to anything. I thought Microsoft wanted us using stored procedures. Anyways, I got tired of always writing this code: SqlCommand CMD = new SqlCommand(spName); CMD.CommandType = CommandType.StoredProcedure; So I wrote a little function that I keep in my DAL classes: private SqlCommand NewSqlCommand(string ......

Posted On Monday, March 5, 2007 3:52 PM

Starting physical therapy
A couple weeks ago, I blogged about the pain in my hands because of tendonitis. Since then, I've followed all directions from my doctor, took my medicine and even switched to using my left hand for the mouse. The pain only got worse, and it got to the point where my hands, wrists and forearms were throbbing. It hurt to drive, play with the dogs, use the remote control and my productivity with EnGraph was going down the tubes. Some days I would have to quit at 3 PM and just read a book. By the way, ......

Posted On Monday, March 5, 2007 7:23 AM

C# code to get generic list of dates between starting and ending date
This code snippet will return a generic list of DateTime containing the dates between a starting date and ending date: private List<DateTime> GetDateRange(DateTime StartingDate, DateTime EndingDate) { if (StartingDate > EndingDate) { return null; } List<DateTime> rv = new List<DateTime>(); DateTime tmpDate = StartingDate; do { rv.Add(tmpDate); tmpDate = tmpDate.AddDays(1); } while (tmpDate <= EndingDate); return rv; } To view this code in action, copy and paste the following ......

Posted On Thursday, March 1, 2007 12:54 PM

Kansas weather is weird
Yesterday it was 74 degrees and sunny, and I went running wearing a short sleeve shirt. This morning, it was snowing on the drive to work. Hopefully, this is winter's last gasp of air and spring is right around the corner. Technorati tags: Weather, Lawrence Kansas, snow ......

Posted On Thursday, March 1, 2007 6:54 AM

Copyright © Tim Hibbard | Powered by: GeeksWithBlogs.net | Join free