Packing a DBF

I thought my days of dealing with DBFs as a "production data" source were over, but HA (no such luck). Here is a method of using the FoxPro ODBC driver to Pack a DBF file (removing deleted content from the repository).

Geek Quiz

70% Geek

Calling An ASMX Web Service From Different Languages

Here are some examples of calling a particular ASMX Web Service from different languages.

Cross-language Extension Method Calling

In my last post, I showed how Extension methods can be created in the .NET 2.0 environment. In this post, I discuss calling the extensions from other dot net languages.

Extension Methods in Dot Net 2.0

Here is a short, simple method of harnessing Extension methods in Dot Net 2.0. Please read the linked article first.

Ruby-Like "times" method #ruby #csharp #linq #vb #cpp

Here's the implementation of the Ruby-like "times" method that executes a block of code (n) times.

Enumerable::ToList() - C++ Missing From MSDN

It seems the C++ code example for Enumerable::ToList() is absent/missing from MSDN. Here is my version of the missing example for Enumerable::ToList();

Linq Distinct and Custom Object Sort

I've seen a lot of posts of people having problems using Distinct() and/or Sort() with custom objects. Here is an example showing an implementation of both (in C++, C# and VB). This post includes custom Compare methods, the implementation of Distinct() and the use of List.ForEach in the 3 main dot net languages.

ILookup

There are many times where I need to convert an array of data into a Dictionary or Hash table. If the key to be used in the new Dictionary is not unique, it is necessary to manage duplicates. I previously went through a lot of gyrations, but eventually setteled on the ILookup. ILookup is not perfect, but it beats some alternatives.

My New Internet Explorer 8 Homepage

My New Internet Explorer 8 Homepage (is an error message).

Utility that uses the CUserDomainSid class

Here is a utility that can be used to correct inadvertently restricted items in the Windows system registry.

Using System.Management to get the User, Domain and SID

I have seen a few examples of VBS scripts used to get the User ID, Domain and SID of the current user. This information is valuable when making registry modifications for the current user programatically. I needed a way to retrieve that information in a .NET module to include in other .NET programs.

Web Services Call including the XML and Linq namespaces

This (console app) example calls to two different web services. One of which returns raw XML as the result and the other returns a regular (pre-parsed) object. This can be used as a reference for XML and SOAP and a minor LINQ reference.

Linq to XML Example (Parsing RSS XML)

A utility for demonstrating Linq to XML that downloads MP3 Podcasts of DotNetRocks.

There is no disc in the drive. (fixed)

Here is a work-around for the situation where the CD burning software sometimes says there is no disk in the drive (when there is).
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789