C#

Facebook Twitter

i00 Spell Check and Control Extensions - No Third Party Components Required! Download source and demo project for version 20140111 Introduction I wanted a spell check that I could use in .NET, so like most people would have done, I Googled.

i00 Spell Check and Control Extensions - No Third Party Components Required!

Free courseware for professors and instructors from Microsoft - Go DevMENTAL. UI Automation: Automating key strokes using .NET and Win32 API. Thursday, January 10, 2013 9:16 PM Win32 API offers a lot of functionality for Windows platform, which the .NET Framework doesn’t have for good reason – One of them being ‘managed’.

UI Automation: Automating key strokes using .NET and Win32 API

However, that doesn’t stop us from doing some unsafe things! We can always build a wrapper for Win32 API and then call those functions directly from .NET. Let us evaluate one of such area which requires calling Win32 API functions from .NET. That area is ‘Simulating UI Automation’. C# - Generic class with self-referencing type constraint.

CodeHaacks/src/MiscUtils/StringEquivalent.cs at master · Haacked/CodeHaacks. Dealing with primitive obsession. One code smell I tend to miss a lot is primitive obsession.

Dealing with primitive obsession

Primitives are the building blocks of data in any programming language, such as strings, numbers, booleans, and so on. Many times, primitives have special meaning, such as phone numbers, zip codes, money, etc. Nearly every time I encounter these values, they're exposed as simple primitives: public class Address { public string ZipCode { get; set; } } But there are special rules for zip codes, such as they can only be in a couple formats in the US: "12345" or "12345-3467". Primitive Obsession, Custom String Types, and Self Referencing Generic Constraints. I was once accused of primitive obsession.

Primitive Obsession, Custom String Types, and Self Referencing Generic Constraints

Especially when it comes to strings. Guilty as charged! There’s a lot of reasons to be obsessed with string primitives. Many times, the data really is a just a string and encapsulating it in some custom type is just software “designerbation.” Also, strings are special and the .NET Framework heavily optimizes strings through techniques like string interning and providing classes like the StringBuilder. Home Page. Extracting noun phrases with contextual relevance in .NET using OpenNLP | randonom. A few months ago I was working on a project that had a word cloud-like feature.

Extracting noun phrases with contextual relevance in .NET using OpenNLP | randonom

A word cloud is an interesting way to visually represent a popular theme or topic. I had a dataset of user reviews from another project that we wanted to parse and use. This began my first exposure to Natural Language Processing (NLP) and other advanced text analytics tools. Notes from an NLP spike. Document Databases : A look at them. DocumentDBs.zip : NOTE this code will not run unless you download and reference the prerequisites mentioned in this article - 39.3 KB I don't know how many of you work with SQL.

Document Databases : A look at them

Loads? Well I do, as we know it's a relational database which we can store um well relational SQL data types in, such as INT/CHAR/NVARCHAR etc etc, I am sure you all know what I am talking about and have used relational databases loads in the past. Do you think there are other sort of databases out there? No? NET TECHNOLOGY BLOG – Daily Problems – How to Write a Filewatcher in Three Possible Ways. Excellibrary - Excel fileformat library. The aim of this project is provide a native .NET solution to create, read and modify Excel files without using COM interop or OLEDB connection.

excellibrary - Excel fileformat library.

Currently .xls (BIFF8) format is implemented. In future .xlsx (Excel 2007) may also be supported. Example code: //create new xls filestring file = "C:\\newdoc.xls";Workbook workbook = new Workbook();Worksheet worksheet = new Worksheet("First Sheet");worksheet.Cells[0, 1] = new Cell((short)1);worksheet.Cells[2, 0] = new Cell(9999999);worksheet.Cells[3, 3] = new Cell((decimal)3.45);worksheet.Cells[2, 2] = new Cell("Text string");worksheet.Cells[2, 4] = new Cell("Second string");worksheet.Cells[4, 0] = new Cell(32764.5, "#,##0.00");worksheet.Cells[5, 1] = new Cell(DateTime.Now, @"YYYY\-MM\-DD");worksheet.Cells.ColumnWidth[0, 1] = 3000;workbook.Worksheets.Add(worksheet);workbook.Save(file); // open xls fileWorkbook book = Workbook.Load(file);Worksheet sheet = book.Worksheets[0];

ObjectToObject Map

Linq.