Using the star (*) as the first character of a Lucene.Net search is not supported by default. It will return null results if it is not turned on. To turn on the support for leading wild card characters you must set the SetAllowLeadingWildcard property to true. Then you will be able to use wildcard search […]
Read More →Creating a W3WP Memory dump on Windows Server 2003
On a web server with multiple application pools, there most likely will be multiple W3WP processes. Therefore, the first action to take when creating a memory dump of a W3WP worker process is to find which one you need to get the dump of. I wrote a short article on how to get a worker […]
Read More →Projects and Solutions in .Net (.csproj and .sln)
Holistic approach or high level approach are common phrases you will hear when beginning the design of a new system or the start of a new project that will modify or enhance an existing program. Therefore, when you begin a new project, start from the solution context. This means, know what the program does end-to-end […]
Read More →Booleans and Bools in C#
In a job interview I had once, I was asked, “How do you store a Boolean in a database?” My first reaction was to say, True, False, 0, 1, Y or N. However, this question has some depth to it. I do not know why, if you do let me know, but there are no […]
Read More →Constants and Enums in C#
Constants come in handy when you need to store values that will be used frequently within the system and at the same time will not change often, if ever. You want to avoid hard coding values in you code. It makes maintenance and debugging very difficult. You can create a constants class and then access […]
Read More →How to use Data Parallelism from the Task Parallel Library in C#
I wrote a program a few months back that populated a dropdown list with contents from a class using reflection. I used a normal for each statement. [sourcecode language=”csharp” padlinenumbers=”true” autolinks=”false” gutter=”false” toolbar=”false”] foreach (Type type in assembly.GetTypes() .OrderBy(f => f.MetadataToken)) { if (type.Namespace != null) { if (!type.Namespace.ToLower().StartsWith(“namespace”)) combobox1.Add(new ComboBoxClass(type.Name, type.FullName)); } } [/sourcecode] […]
Read More →How to get a treeview item node value using a ContextMenu using WPF and C#
The first things you need to note is that the treeview node needs to be selected in order for you to get any information from it. I did read some articles about using the System.Windows.Point to get the X, Y coordinates of the mouse, but I chose to go another route. Using the Point class […]
Read More →Sandcastle XML documentation for Visual Studio and C#, How to install and configure Sandcastle.
I know we as programmers like to write code. However, most of the time we don’t get to start from the beginning. Most often we get to modify and enhance code that has been written by someone else. Let’s make a deal, from now on let’s document our code so we don’t have to spend […]
Read More →WPF DataGrid Navigation Paging Up Down Sideways is slow virtualization
I was developing a WPF application that allowed users to selected as many rows and as many columns that were available in the database. I dynamically built the selection criteria using reflection and a treeview. Then I traversed the treeview and dynamically built the DataGrid that contained the columns and thier values. What I quickly […]
Read More →How to update the solution names on GitHub
I have a large group of solutions in one GitHub repository which I wanted to give valid names to. Not the names of the folders but the detail names shown in Figure 1. Figure 1, how to change or update description names on GitHub Check out my other articles about GitHub: Setting up and using […]
Read More →