Tuesday, September 9, 2008

The elusive Orca download

Recently, I was having problems with a Windows Installer Merge Module and turned to the web for help. Upon searching, I found a suggestion to use Orca to edit the .msm file. The site simply stated to download Orca from Microsoft, so I searched MSDN for Orca and found that it is only available in the “Windows SDK Components for Windows Installer Developers”. This sounded simple enough, so I downloaded the SDK. After a brief download, I began the installation process and was horrified to find that it was going to require another 2GB+ download for a full installation. I was in a hurry, so I de-deselected the samples and documentation, which brought the install down to a more manageable size.

After the install completed, I happily navigated to Start->Microsoft Windows SDK -> Tools. Hmmm, no Orca in sight... I was just about to bite the bullet and run the full installer when I came across Aaron Stebner's blog post explaining how to get Orca, complete with a direct link for the software.

This saved me a lot of wasted time waiting on the download, just to use one small tool.

Monday, September 8, 2008

Browser shortcuts

Lately I have found myself searching for deals on used parts for our Jeep. As part of this routine, there are several sites that I navigate to, typically opening them in multiple browser tabs. As lazy as it may sound, I got tired of right-clicking items in my favorites list to open the site in a new tab. I decided it would be easier if I had a shortcut for opening all of the sites at once. I know that IE allows you to set multiple home page tabs, but this was not what I wanted because I don’t want the sites to load every time I open a browser.

I decided that a batch file might be an easy solution, and began researching IE’s command line options. While IE, does have a nice selection of options, unfortunately I could not get IE7 or IE8 to yield the results I wanted (the sites were opened in new windows instead of tabs). However, I got exactly what I wanted with Firefox (not a big issue because I routinely switch between the two browsers anyway). I just created the batch file in Notepad and saved it as a .bat file on my desktop. Here are example contents of the file:

cd\"Program Files (x86)\mozilla firefox\"
start firefox.exe http://www.cnn.com http://www.msn.com http://www.yahoo.com


After creating the batch file, it dawned on me that it would be easier to create a copy of my Firefox desktop shortcut, rename it appropriately, and then simply modify the shortcut’s target with the desired sites, as shown here:


Both methods are a great way to quickly navigate to a group of sites.

Thursday, September 4, 2008

Strings....

Today I was doing some research on the performance of strings in .NET, and as I started a Google search, I noticed in the dynamic search results that there are over a million more results for String Theory than String Bikini. There are obviously too many people using the web for serious work, and not enough using it for more perverse reasons. :-) Just some humor, to start the day.

Friday, August 29, 2008

Internet Explorer operation aborted


For several weeks now, I had been experiencing a problem in Internet Explorer (and just had not had time to research, or correct it). Almost every time I navigated to a page on MSDN, the page would display briefly, I would get an “Internet Explorer cannot open the Internet site http://msdn.microsoft.com/xxxx. Operation aborted” message, and then the page would be switched to a navigation error screen. I quickly discovered that pressing the back button would allow the page to display correctly.

Since I work with a lot of Microsoft products, and spend a lot of time on MSDN, this was becoming very annoying. So, today became the today to try and solve the problem. It was occurring on my work PC, but not my home PC. Both are running Windows Vista and IE7. Since one was ok, and the other was not, I thought the problem probably caused by an IE security setting. Rather than digging through IE’s huge list of security options for possible culprits, I decided to search the web to see if anyone else was experiencing the problem.

First, I found this discussion listing a bug in sitemeter.com that had caused issues on a lot of sites; but this bug had already been corrected. The thread also suggested IE addins as a possible cause, but this was not the cause for my issue, either. Another suggestion in the thread was to Reset IE’s options, but this did not fix it for me either. There was also a link to a blog post describing how this error is typically caused by JavaScript manipulation of the HTML DOM. The post stated the problem has been corrected in IE8. Soooooo, I am now running a beta of IE8, which seems to have corrected the problem. Hopefully, it does not introduce new problems!

On my next visit to MSDN, I was promptly greeted with a JavaScript popup message that Microsoft was taking a survey(which was not appearing previously). So, it looks like the survey was the root of my problem, but I have not determined why it occurred on one PC and not the other. At least IE8 seems to have solved it, for now.

Tuesday, August 26, 2008

VMWare Beeps

The other day I was doing some testing in a VMWare virtual machine, and kept getting an annoying beep every time a dialog box was displayed. I changed every sound setting I could find, but could not get rid of the beep. So, it was time to begin google’ing. I found several recommend solutions that involved adding “mks.noBeep = TRUE” to a .ini file, but it seems that the file name, location, and syntax vary slightly depending on your OS and version of VMWare. Ultimately, the easy solution that worked for me was to:

Open Windows Device Manager on the virtual machine.
Go to the View menu and pick “Show hidden devices”.
Go to Non Plug and Play Devices; there is now a Beep item that can be disabled.

Problem solved.

Experts Exchange and Google Cache

I really hate the site experts-exchange.com. It seems that no matter what I am searching for, this site appears in the results list. Just when you think you have found the page with an answer to your question, you find out that you have to buy a membership to see the details of the page. Most of the time, I just skip the search result if it is on experts-exchange, but I occasionally overlook the domain name and find myself frustrated again by the site. I suppose that I should just “suck it up” and buy a membership to the site, but I just can’t bring myself to do it, considering how much information is freely available on the web.

Today, a co-worker shared an interesting trick with me. It doesn’t always work, but most of the time, you can click on Google’s cached version of the page and the answers will appear. Nice!

XML Comments and Nullable data types

I had not worked with XML comments until joining my current employer.  The syntax is pretty simple, and Visual Studio Intellisense handles most of it, but I occasionally find cases where the correct syntax is not obvious.  For example, I needed to change an int variable to a nullable int.  I updated the variable definition to int?, and changed the XML comment <see cref="int"/> to <see cref="int?"/>. This resulted in a compiler warning: “syntactically incorrect cref attribute 'int?'”.  I searched, but could not find a complete listing of the correct syntax for all data types.  Eventually, I found enough examples to learn that nullable data types are listed as Nullable{type name}, like <see cref="Nullable{DateTime}"/>, <see cref="Nullable{Int32}"/>, <see cref="Nullable{Bool}"/>, etc.