Adsense

Tuesday, August 19, 2008

How to Enable/Disabled Recording Devices in Windows Vista

I had some strange sounds coming over my speakers and thought it might be one of my recording devices (my built in mic, etc) acting up. To troubleshoot this I brought up the Sound window, clicked on the Recording Tab and right-clicked on each of my recording devices to disable them. It turns out my problem was caused by something else and was easily fixed, but now I have a new issue. How to I enable my recording devices. If you check the Recording Tab in the Sound window, there are no devices listed. Maybe I can enable them directly from the Device Manager. Nope, nothing listed there either...

The solution is fairly simple, but seems to be completely non-standard for windows. Go back to the Recording Tab in the Sound window and right-click in the now blank tab. You should get a context menu that has two options (Show Disabled Devices and Show Disconnected Devices.) Click on Show Disabled Devices and you should now be able to see and enable your devices.

Not a huge issue, but fairly annoying since it is done differently than most other places in Windows (i.e. The network device screen. Disabled devices are still visible but are disabled...)

Monday, August 11, 2008

How to Replace/Remove Blank/Empty Lines in Visual Studio using Regular Expressions

I'm mainly just posting this so that I don't forget it. I find myself needing this every now and again and need an easy place to find it. Hope it helps someone else. =)
If you want to remove or replace the Empty Lines in a Visual Studio file, you can perform the following.
  • Press Control + H on your keyboard to bring up the replace window.
  • In the Find What: field, enter ^$\n
  • In the Replace With: field, enter nothing
  • Check the Use: checkbox and then select Regular Expressions from the drop-down
  • Click Replace All
Note: If you want to remove the blank lines from just a part of your file, select/highlight it prior to performing the step above and make sure Selection is selected in the Look in: field.
Hope this helped. =)