XPATHS and Default Namespaces
What is the story behind XPath and support for namespaces? Did XPath as a specification precede namespaces? If I have a document where elements have been given a default namespace: ``` <foo xmlns="...
- Modified
- 20 Dec at 18:58
Calling REST web services from a classic asp page
I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work ...
- Modified
- 14 Dec at 09:51
How can I conditionally apply a Linq operator?
We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add wh...
- Modified
- 1 Jul at 09:40
Drawing Library for Ruby
I am trying to code a flowchart generator for a language using Ruby. I wanted to know if there were any libraries that I could use to draw various shapes for the various flowchart elements and write...
ASP.NET Caching
Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my own "Cache", because I didn't know any better, it looked a bit like this: ``` public class DataManager { ...
In C++/Windows how do I get the network name of the computer I'm on?
In a C++ Windows (XP and NT, if it makes a difference) application I'm working on, I need to get the network name associated with the computer the code is executing on, so that I can convert local fil...
- Modified
- 25 Aug at 18:10
Best Wiki for Mobile Users
Most wiki software I've presents lots of "features" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the co...
- Modified
- 17 Apr at 10:27
Unit tests for deep cloning
Let's say I have a complex .NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object - so I write a Clone() method, and implement it wi...
- Modified
- 23 Aug at 20:0
Can you use generic forms in C#?
You should be able to create a generic form: ``` public partial class MyGenericForm<T> : Form where T : class { /* form code */ public List<T> TypedList { get; set; } } ``` Is valid C#,...
Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms?
My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. S...
- Modified
- 17 Aug at 02:0
Creating iCal Files in c#
I'm looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I've found a couple resources, but one thing that has been lacking is their support for fields - fields that ha...
Any decent C# profilers out there?
I need a C# profiler. Although I'm not averse to paying for one, something which is free or at least with a trial version would be ideal since it takes time to raise a purchase order. Any recommenda...
Is there a "Set" data structure in .Net?
Ideally, I'm looking for a templated logical Set class. It would have all of the standard set operations such as Union, Intersection, Etc., and collapse duplicated items. I ended up creating my own ...
- Modified
- 25 Aug at 12:57
HowTo Disable WebBrowser 'Click Sound' in your app only
The 'click sound' in question is actually a system wide preference, so I only want it to be disabled when my application has focus and then re-enable when the application closes/loses focus. Original...
How can a Word document be created in C#?
I have a project where I would like to generate a report export in MS Word format. The report will include images/graphs, tables, and text. What is the best way to do this? Third party tools? What...
When should I not use the ThreadPool in .Net?
When should I use the ThreadPool in .Net? It looks like the best option is to use a ThreadPool, in which case, why is it not the only option? What are your experiences around this?
- Modified
- 15 Apr at 12:56
What do you look for from a User Group?
I'm in the process of starting a User Group in my area related to .NET development. The format of the community will be the average free food, presentation, and then maybe free swag giveaway. What w...
- Modified
- 23 Mar at 10:44
Need Pattern for dynamic search of multiple sql tables
I'm looking for a pattern for performing a dynamic search on multiple tables. I have no control over the legacy (and poorly designed) database table structure. Consider a scenario similar to a resum...
- Modified
- 19 Feb at 00:10
How do I remove duplicates from a C# array?
I have been working with a `string[]` array in C# that gets returned from a function call. I could possibly cast to a `Generic` collection, but I was wondering if there was a better way to do it, poss...
- Modified
- 26 Sep at 19:21
Is accessing a variable in C# an atomic operation?
I've been raised to believe that if multiple threads can access a variable, then all reads from and writes to that variable must be protected by synchronization code, such as a "lock" statement, becau...
- Modified
- 13 Aug at 12:28
Playing wave file ends immediately (C++, Windows)
I have got the following situation. On a machine there is a card. There is a process that is responsible for playing a certain wave file on this device's wave out ( connection is made at startup and ...
C# 2.0 code consuming assemblies compiled with C# 3.0
This should be fine seeing as the CLR hasn't actually changed? The boxes running the C# 2.0 code had .NET 3.5 rolled out. The background is that we have a windows service (.NET 2.0 exe built with V...
How do I make Visual Studio auto generate braces for a function block?
I could swear I've seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so: ``` void foo()_ ``` to ``` v...
- Modified
- 13 Aug at 05:9
How do you pass a function as a parameter in C?
I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C?
- Modified
- 29 Jul at 19:9