Visual Studio 2010: ApplicationIcon

by Aaron 30. June 2011 02:45

I recently had need to associate a different icon to my C# project based on the selected configuration (i.e. Debug, Release, SomeCustomConfigurationYouCreatedToBeClever).

I did the standard thing of right-click on the project in the Solution Explorer, select Unload Project. Then I again, right-click on the project and choose Edit MyFancyProject.csproj. ApplicationIcon was easy to find.

I tried several ways of setting the icon. I tried a handful of ApplicationIcon nodes with Condition attribute set to " '$(Configuration)' == 'SomeCustomConfigurationYouCreatedToBeClever' ".  I added a line for each of the different configurations.

I saved and reloaded the project into Visual Studio.  The icon it showed wasn't the icon for the selected configuration.  I checked the syntax in the CSPROJ file with no luck.  I changed it to a Choose element with multiple conditions to add a new PropertyGroup with the appropriate icon.  Again, Visual Studio showed me the wrong icon.

Finally, I added the ApplicationIcon element to each of the $(Configuration)|$(Platform).  Still, didn't work!

I decided to just try compiling the application to see what icon was embedded and displayed for the executable after a build.  The icon was right!

The moral of this story is that Visual Studio doesn't process the conditions set in the CSPROJ file, but will process it during the build.

Tags: , , , ,

Internet Explorer 9 - Awesome with some exceptions

by Aaron 26. March 2011 02:28

I installed IE9 once it was released recently.  My initial impression was, "meh."  It looked like it has some improved looks, but I noticed it took a sort of minimalistic layout ala Chrome.  I didn't like that at first, but somebody probably put some time into the coming up with the layout.  Also, do I really use the status bar anymore?  I couldn't remember using it for anything except checking what URL a link poiints to.  The status bar isn't necessary for that anymore.

I tested the browser against a couple of experiments on  I was impressed!  It outperformed Firefox on the same tests and performed comparably to Chrome and Opera.  I tested it with GeoDocs, and it was faster than it's IE8 sibling.

I checked out the Developer Toolbar that's built into the browser and was more than a little pleased to find that there's now, much like Firebug for Firefox, a network tab.  Now I don't have to use Fiddler2 or the Web Development Helper to monitor web requests in IE.

Now for the exceptions.  With every version of IE comes some new style issues.  Several sites that I visited have layout issues in IE9.  Nationwide Children's Hospital, for example, has an issue on their home page (at least) where the middle content renders after the right column.  Why can't Microsoft be consistent with padding and margins?

The other thing that I noticed is that the editors in both blogs that I maintain don't work.  In Wordpress, the editor isn't accessible with the mouse unless I turn on IE9 compatibility mode.  The editor in BlogEngine.NET won't pop up dialogs to insert links unless, again, I turn on IE9 compatibility mode.

Those are the only real issues that I've found so far, but now I have to support CSS for yet another version of IE.  Firefox has some differences between versions, but IE has been the bane of every web developer's existence.

Regardless of my new pain as a developer, I'm very happy as a user.

Tags: , , , , ,

Verizon Wireless Customer Service - Follow-up

by Aaron 26. March 2011 02:15

Several weeks ago, I posted my experience with Verizon Wireless.  They told me that I would hear something regarding my missing credit.  As I expected, and you probably did too, I didn't hear anything.  I gave them a call to ask what was going on.

The guy this time seemed to be a little more in touch with how things work at his company.  He pointed out that I made the request and change after the end of the billing cycle.  He then told me how what the previous reps told me was wrong and that they can't go back and change things after the billing cycle has closed.

I'm usually pretty patient, but based on his tone, I suspected they weren't going to do anything.  That irritated me a lot.  I changed my tone of voice, but the guy assured me that they were going to do something for me because they had promised they would.

They credited my bill with half of what I was expecting.  He asked if that was okay, I conceded because I felt like it was a reasonable compromise.  It wasn't their fault that we went over our minutes so badly, and the reality is that they didn't have to do a damn thing!

I'm not as happy as I could be, but I'm pleased that they didn't totally blow me off after all of this.  Will I continue to use Verizon Wireless?  Of course.  Will I tell everybody that their customer service is outstanding?  Hell no.  I'm happy that they did something for me, but I'm disappointed that not all of their staff is trained enough to know about this kind of thing which I suspect happens more often than not.

Tags: , , , ,

Verizon Wireless Customer Service

by Aaron 5. March 2011 03:27

Last month we got a bill from Verizon Wireless for $487.  That was over $300 more than normal!  To say the least, I was panicked thinking that there was some kind of a mistake.  I found the mistake was letting my wife have a cell phone.

The only thing I knew I could do was kiss Verizon's ass.  I called them and asked if they could increase my plan to the next level, making it retroactive to offset the overage charges.  Thankfully they said yes.

We went through the process without issue.  I asked the rep on the phone several times before hanging up that my bill would be credited.  She said it would.  She went so far as to tell me that I could just pay the $190 that was now due instead of the statement balance.

I decided to go ahead and pay the full amount knowing that I would have no bill the next month, then a reduced bill the following month.  I also fully expected to have a late fee and collections issue if I didn't pay the full amount regardless of what she told me.  To my surprise, I got a bill a couple of days ago for $200!  WTF???

I called up customer service again.  The rep was friendly, as was I, and she tried to explain to me that they refunded the rate last month and added on the current rate.  After a little back and forth, she finally understood and saw my situation: I didn't get the $297 overage credit that I should have.

Fortunately for me that the previous rep had fully noted the account with all of the appropriate info, but there appeared to be some mistake made where I didn't get the refund.  Unfortunately it had to go to accounting, and it's Saturday so they're not in today, and blah blah blah.

She was very reassuring that I should get the credit on my account, and I'll get a note on My Verizon after everything has been worked out.

I'd say that if I have to call again, it'll be the last chance they've got to retain me as a customer.  Instead, I'll be honest: I'll continue to be a customer, but I'm going to bitch and moan about how they screwed me over and tell people about how awful their service is.

As it stands right now though, I've been happy with the service reps I've talked to thus far, and I expect that to continue.  I think they're going to make this right, and I'll continue to be happy with a few exceptions here and there.

Tags: , , , ,

Progress Toward My Goals

by Aaron 21. February 2011 03:19

Today is President's Day, and my son's daycare is closed.  I just put him down for a much needed nap.  At this point, I have a lot of choices for things I can do: work, read, watch TV, write a blog post, etc.  I'm choosing to write a blog post.

My topic is how I'm doing with my goals so far.  Some I'm doing well, but others I'm starting to fall behind and miss my milestones.

Workout More

I completed my initial 6-week goal.  It was tough!  I was good for the first four weeks.  Week five, I lost motivation, but I still managed to force myself to do it.  Week six was BUSY, but I still managed to squeeze in the time.  My new goal is repeatedly complete four consecutive weeks.  How will I know if I've completed my four weeks?  I get a haircut.

Last week was week seven, and I was a little under the weather, so I took the week off.  This is week eight, and I'm running out of excuses.  Today is only Monday though, so I think I can get the exercise in this week.

Read 3 Professional Books

I completed one book a week or two ago.  It was Working Effectively with Legacy Code by Michael Feathers (blog | twitter).  I'll write a review for it in my next post.  In short though: fantastic!  I've made significant changes to how I do my work just from reading that book alone.

Currently, I'm deep into my second book The Art of Unit Testing by Roy Osherove (blog | twitter).  I'll write a review about it once I've completed it too.  This is also my first experience with a text book on my Nook.  I'll also discuss that in the review, or maybe as a separate post so I can talk about reading a text book on the Nook a little more in depth.


I could go into each of the others, but most of them I'm not making much if any progress.  I'm definitely getting better at TDD and writing more and mo' better unit tests.  I'm not making progress on video games or my Microsoft certification (which isn't called MCSD anymore).

I am also drinking less though, and being less of an asshole more patient.  Some days are harder on my patience than others.  I have very little tolerance for repeating myself, but maybe I have to repeat myself because I'm not communicating clearly.  Maybe that's something else I can work on: better communication.

Keep watching though.  I'll keep at it.

Tags: , , ,