Programming
Code snippets, good to know, computer related.
-
Nasty IIS/ASP Querystring Cookie Case Bug
-
I just stumbled on a nasty, nasty ASP bug that took about 7 years for me to see. The problem happens when using cookies and querystrings with the same name. A page on the site reads in a variable from the querystring and sets a cookie with the same name
Read More...
-
0.0.0.0 Gateway Causing No Internet Access
-
Sometime last week, I stopped being able to get access to the internet while at work. I could get an IP address from DHCP, but couldn’t get any traffic past our firewall/gateway. I thought it was DHCP server, and was ready to buy a new one as it
Read More...
-
Delete Files Older Than Date Using Batch Files
-
This problem has nagged at me for years. Here is a batch command to delete files on a Windows 2003 machine.Forfiles -p c:\backup -s -m *.* -d -5 -c "cmd /c del /q @path" This will delete all files in my backup directory older than 5 days. To test it first,
Read More...
-
Finally, The Truth on OEM Software
-
I just read a greatarticle on OEM software, called Buying OEM versions of Windows Vista: the facts. I am sure the data here could be extrapolated to any OEM software. The basics with OEM versions of Vista are: You absolutely canbuy OEM versions lawfully.
Read More...
-
Add Additional Information to Your Exceptions
-
When Enterprise Library was called Microsoft Application Blocks, if you wanted to log an Exception, you would write (assuming “ex” is an Exception): ExceptionManager.Publish(ex); And if you wanted to log some extended properties you could
Read More...
-
Community Server Upgrade Hell
-
This last week I was tasked with upgrading a Community Server 1.1 install to 2.0. I was expecting a simple process after navigating the seas of .Text to CS 2.0, but I forgot to “knock on wood”. I ran the upgrade script as indicated in the
Read More...
-
Find and Delete Duplicates in SQL
-
We all know we shouldn't have duplicates in the database. And despite my best efforts, somehow they sneak in from some legacy code, or from the hyper-active-compulsory-submit-the-form-fifty-times-in-five-seconds-bloke. So now and then I find myself
Read More...
-
Bruce Leeroy
-
Sweet. As an aside, it was a bit of a pain to be able to insert this in my blog post. Do be able to do so, add the following to the markup/html node in communityserver.config: objectwidth="true"height="true"/> paramname="true"value="true"/>
Read More...
-
Using Case in Order By with Group By
-
Wow, that’s a mouthful. This is what I am trying to convey: When you do a Group By with Rollup, what happens is that the rolled up column shows null, and won’t necessarily be ordered at the bottom. For example: .code { word-wrap:break-word;
Read More...
-
.Text to Community Server 2.0
-
I made the leap and upgraded my blog to Community Server (CS)2.0. It took about 4 hours researching, downloading, uploading, converting and fixing. I couldn’t find a way to directly upgrade my .Text Version .95 directly to CS 2.0, so I decided to
Read More...
-
Remembering Regsvr32
-
I just tried to open Sauce Reader, my blog reader of choice, but all it gave me was an error and an option to close. After digging through the error message, I found the message, “Class not registered”. Ok, easy enough. I opened a command
Read More...
-
Emulating Digg Spy using AJAX.NET
-
In my latest project, I need to build a lead system for our sales people. It will work very similarly to the digg.com/spy application, so I took advantage of their model in order to learn AJAX.NET. I decided to go with AJAX.NET, rather than the new Anthem,
Read More...
-
Jeffrey Richter's new book: CLR via C#
-
By far my favorite technical author is Jeffrey Richter. The combination ofclarity, depth and slight humor is simply unrivalled in the computer industry. Several times I have done searches trying to find out when he would have a new book coming out. I
Read More...
-
Counting Down Until Community Server
-
I am counting down the days until February 17th when Community Server version 2 goes RTM. The latest Beta 3 were released last week, and I am biting my download trigger finger to keep from installing it. Just a few more weeks… Sometime in the recent
Read More...
-
Windows XP on a Mac at Best Buy
-
From digg.com: Check out the pic of their Apple powerbook. Ooooppps. You can see for yourself here. Share this post: | | |
Read More...