What Was I Thinking?

Follies & Foils of .NET Development
posts - 95 , comments - 352 , trackbacks - 0

My Links



Post Categories

Image Galleries

Check These Out


General Geekiness

The catch-all category for posts that dont fit anywhere else.
HOW TO: Generate a GUID using VBA

? lcase(Mid$(CreateObject("Scriptlet.TypeLib").GUID, 2, 36))

Posted On Wednesday, July 30, 2014 11:13 AM | Comments (0) | Filed Under [ General Geekiness ]

Specifying DNS Servers at the command prompt
Did you know you can set your DNS Servers from the command prompt using the NETSH command (available in win 2003 and later)? You can even specify the order in which the servers are registered in the DNS lookup netsh interface ip set dns "Local Area Connection" static netsh interface ip add dnsservers "Local Area Connection" index=2 netsh interface ip add dnsservers "Local Area Connection" index=3 If you want to configure DNS to use DHCP: netsh interface ip set dns “Local ......

Posted On Thursday, March 1, 2012 4:02 PM | Comments (0) | Filed Under [ General Geekiness ]

Google’s Public DNS Servers

Tired of ISP DNS service errors?  switch to use Google’s.  They are FAST and ALWAYS available.



Posted On Wednesday, October 26, 2011 2:48 PM | Comments (1) | Filed Under [ General Geekiness ]

Reorder Your Accounts in Thunderbird
Ever wanted to re-order your Thunderbird accounts? You can either modify the prefs.js manually 1. Exit Thunderbird if its running. 2. Locate your prefs.js file (default location is c:\users\[your account]AppData\Thunderbird... 3. create a backup , just in case. 4. Open the prefs.js in any text editor and look for: user_pref("mail.accountmana... "account1,account2,account3... line 5. Change the order of the accounts manually 6. Restart Thunderbird OR 1. Download and install ......

Posted On Wednesday, April 20, 2011 11:57 AM | Comments (9) | Filed Under [ General Geekiness ]

QuickTip: Specifying user credentials when installing a service.
I recently attempted to install a windows service I had created. I created an installer and deployed the msi to the target machine. When I ran the setup I was prompted for the username and password credentials for the identity to run the service. I had a local account created. The account was permissioned correctly and had been granted the rights to logon as a service. After supply the credentials, the I received the following error: Error 1001. The account name is invalid or does not exist, or the ......

Posted On Saturday, September 25, 2010 6:43 PM | Comments (0) | Filed Under [ Visual Studio General Geekiness ]

Solved: YouTube Videos Lock Up (Adobe Flash Player Crashes)
This has nothing to do with .Net development, but I’m sure others are running into this problem, so I thought I’d write a quick post about it. After updating my Windows PC to Adobe Flash Player 10.1, whenever I attempt to view YouTube videos (either through IE or Chrome), I get a green background and no video, some audio, and then my browser locks up. Turns out to be an issue with Adobe’s hardware acceleration feature (new to version 10). To disable hardware acceleration, you need to modify a setting ......

Posted On Saturday, September 18, 2010 10:37 AM | Comments (24) | Filed Under [ General Geekiness ]

My Website (ports) Have Been Hijacked!
This is one of the scary problems that turns out to have a pretty easy solution. I tried to view one of my websites hosted by IIS on my primary workstation and the site wouldn’t render. I checked IIS Admin and the site was there, but I couldn’t access it on either port 443 or port 80. In reviewing the event log I found the following entry: The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://x.x.x.x:80/ for site 1. The site has been disabled. The data field contains ......

Posted On Monday, March 15, 2010 9:09 AM | Comments (0) | Filed Under [ Visual Studio General Geekiness ]

Useful DOS Batch functions: Substring() and Length()
Recently I needed to determine the length of a string and perform a Substring operation on a variable in a DOS Batch (.bat) file. (Yes, people still use DOS batch files!) After some Googling and some playing around I came up with the following functions. :Substring ::Substring(retVal,string,s... :: extracts the substring from string starting at startIndex for the specified length SET string=%2% SET startIndex=%3% SET length=%4% if "%4" == "0" goto :noLength CALL SET _substring=%%string:~%start... ......

Posted On Saturday, January 30, 2010 2:26 PM | Comments (4) | Filed Under [ General Geekiness ]

PDC 09 : Day 2
Keynote: HOLY SMOKES!! Now this is why I came to PDC! Announced today: Silverlight 4 Beta. Printing? Yep. Access to Local File System? Yep. Want to share your assemblies between SL and native .NET assemblies? No Problem. Want access to the clipboard? COM Interop? Web Cam & Micrphone? Done and Done. SketchFlow.. Wha!?!?! OMG thats a cool prototyping tool. Sharepoint 2010 is looking like a tour de force. The ease of development, integration and deployment. Debugging and sandbox support. Solutions ......

Posted On Wednesday, November 18, 2009 1:30 PM | Comments (0) | Filed Under [ General Geekiness ]

PDC09: In Review
My thoughts and observations of this year’s Microsoft PDC conference in LA. Day 1: Just registered for the conference. They had many reps available to move attendees through the registration process. We arrived early, and had to stand in line for 15 minutes, while all the reps stared blankly back at us; “We don’t open until 7.” Wow.. Great Customer Service. Let me take this moment to comment on the Conference bag this year. ITS A CHEAP PIECE OF CRAP. Literally, it looks like a “reusable” grocery ......

Posted On Tuesday, November 17, 2009 9:23 AM | Comments (0) | Filed Under [ General Geekiness ]

I’m going to PDC 09 – RSVP Promo Code anyone?

Looks like I’m heading to LA.  I’m really excited to be attending the PDC this year.  I went to the PDC in 03 (where they announced WCF, WF, WPF) and it turned my brain to mush by the middle of day two.  ANyone else going?  Anyone like to share a RSVP promo code to save me some $$$?  I’ll buy you a drink or two!


Hope to see you all there!

Posted On Thursday, November 5, 2009 10:16 AM | Comments (1) | Filed Under [ General Geekiness ]

Google Quick Search for 64 Bit Windows
I've been using Google Desktop Search for some time now. Most of it however, I don't find useful. I never search my desktop, and store my mail on a different server, so I miss out on a lot of the Google Desktop value proposition. So why use it at all? The answer is Google Quick Search. Google Quick Search is the little dialog that pops up whenever you press Ctrl twice. I enter a phrase and hit enter and the phrase is automatically sent to the Google search page, rendering the search results in my ......

Posted On Friday, July 4, 2008 2:51 PM | Comments (0) | Filed Under [ General Geekiness ]

Call For Help - Thunderbird resets my sort order
I've been using the Thunderbird mail client for a while now, and overall I like it. I've got a number of add-ons that let me download my web mail from Yahoo, GMail, Hotmail and the like. I've got all my email accounts available in a single client application. So far so good. I do have a pet peeve however, maybe its a bug, maybe not. It sure feels like a bug. I did some googling but found no one else reporting this behavior, so maybe its my configuration. But I found no configuration setting to support ......

Posted On Tuesday, May 13, 2008 12:03 AM | Comments (7) | Filed Under [ General Geekiness ]

QuickTip: Debugging VBS Files with CScript.exe and Visual Studio
This is another one of those "Posted here for MY convenience" tips. You can use the Visual Studio Debugger to debug a .vbs (vbscript) file executed with cScript.exe by using the //X flag at the command line. To debug MyTest.vbs cscript.exe MyTest.vbs //X The //X will set a breakpoint and invoke the "select a debugger" dialog where you can choose Visual Studio and step into your vbs code. I haven't found a way to directly edit from the debugger however, so I end up having to debug, break execution, ......

Posted On Monday, April 14, 2008 11:26 AM | Comments (11) | Filed Under [ Visual Studio General Geekiness ]

QuickTip: Good-Bye WinZip, Hello 7 Zip (and JZip).
My work laptop is a fairly beefy machine. Dual Core Intel T7800 with 4 GBs of ram, running Vista Ultimate 32-bit. Some firmware and OS limitations limit my effective memory addressing to 3.26 GB, but still this machine is no slouch. I could never figure out what about my configuration caused seemingly simple operations like extracting the contents of a zipped file to take SO LONG. I fiddled with this setting and that setting but to no avail. Finally I got fed up and turned to the all-knowing Google. ......

Posted On Sunday, January 27, 2008 10:04 PM | Comments (6) | Filed Under [ General Geekiness ]

UberOptions - Filling the hole in Logitech Mouse Configuration
I recently upgraded my mouse and keyboard to the Logitech Wave wireless combo. The keyboard is taking a bit of getting used to (odd location and sizing of the delete, home, and end keys) and the wave design of the keyboards is... different. Overall though I am very pleased with the hardware. The mouse seems responsive and the keyboard is packed with loads of "doohickey" keys for launching media players, my favorite applications, pictures, even Windows media center (which I had never run before getting ......

Posted On Tuesday, January 15, 2008 6:01 PM | Comments (17) | Filed Under [ General Geekiness ]

QuickTip: Resize All Your ListView Columns with a single Keystroke.

Just when you think you know all you can know about something..  Ctrl+Plus (on the number pad) will auto resize your ListView columns.  Go ahead, try it!  You know you want to.

Posted On Tuesday, January 15, 2008 5:14 PM | Comments (0) | Filed Under [ Visual Studio General Geekiness ]

Powered by: