IPC Channel and Recovery
The IPC channel is a great way to communicate between two disparate systems running on the same computer when everything goes well. But when things don’t go well it can turn into an ugly mess where neither side can communicate with the other.
But this example shows how you can use props.Add(“exclusiveAddressUse”, “false”); to solve these kind of reconnection issues. Handy to know that!
No comments yet.
No trackbacks yet.
MongoDB substring search with a difference
about 2 months ago - No comments
It’s quite common to want to search a database for a key that starts with a given string. In SQL you have LIKE and in MongoDB you have regular expressions: But what if you want to do the inverse of this? i.e. to search the database for the keys that are themselves substrings of the More >
Home network crawler – cataloging every file on the home LAN with C# and MongoDB
about 5 months ago - 2 comments
With the addition of two more 3TB drives to the home network it’s becoming impossible to track files and to remember where each one is and whether it’s a backup of some other disk or not. There are 8 computers on the home network and over 10TB of storage distributed between them. Much of the More >
Stop writing rude software! Use LASTINPUTINFO instead.
about 5 months ago - No comments
Can you imagine what life would be like it people behaved like software programs do? You’d be working away on something when someone would interrupt, steal your attention, and demand a response. You’d be interrupted in the middle of sentences all the time and while you were dealing with one interruption someone else could come More >
C# Natural Language Engine connected to Microsoft Dynamics CRM 2011 Online
about 8 months ago - 1 comment
In an earlier post I discussed some ideas around a Semantic CRM. Recently I’ve been doing some clean up work on my C# Natural Language Engine and decided to do a quick test connecting it to a real CRM. As you may know from reading my blog, this natural language engine is already heavily used More >
Consultancy
about 1 year ago - No comments
Software Consultancy Serving the Greater Seattle Area Our consulting service is now open for business. We can help you with:- Business planning Program management Software Development for the Microsoft.NET platform Architectural advice and review Custom software development (offsite or onsite) Migrating web applications to ASP.NET MVC 2 Migration to Entity Framework 4 Complex threading using More >
Constrained parallelism for the Task Parallel Library
about 1 year ago - No comments
When developing .NET applications there is often the need to execute multiple background processes, for example, fetching and rendering different size thumbnails for images. Typically you queue actions like these onto the thread pool. But in the case of thumbnail generation you typically want to fetch a base image first and then perform the resize More >
Singleton tasks: A TaskFactory for the Task Parallel Library with ‘run-only-one’ semantics
about 1 year ago - No comments
When developing .NET applications there is often the need to execute some slow background process repeatedly. For example, fetching a feed from a remote site, updating a user’s last logged in time, … etc. Typically you queue actions like these onto the thread pool. But under load that becomes problematic as requests may be coming More >
GDI+ Image.FromFile has a problem – here’s how to fix it
about 1 year ago - No comments
In GDI+ you can call Image.FromFile to load an image from a file. BUT there are several issues with this call, the biggest being that GDI+ will keep the file open long after you are done with it. Here is an image loader that gets around this issue. If you are running a high volume More >
A simple redirect route handler for ASP.NET 3.5 routing
about 1 year ago - 3 comments
ASP.NET 3.5 Routing is a very powerful tool not just for registering routes for newer ASP.NET MVC applications but also for adding SEO friendly routes to older Webforms (ASPX) applications, or for routing multiple URLs to a single page. But that’s not all it can do. You can create your own IRouteHandler and then have More >
Why functional programming and LINQ is often better than procedural code
about 1 year ago - No comments
Functional programming is a relatively new component in the C# language. It can potentially replace for-loops in many situations with simpler code, but the question remains ‘what’s wrong with a good old for loop?’ Here are some of the reasons I think functional programming is important and in particular how LINQ can improve the readability, More >