Archive for the ‘Development’ Category

C# Named Binary Tag (NBT) library

In order to more elegantly hack Minecraft data files, I have created a .Net library for reading and writing named binary tag (NBT) files.  Sure, this sort of thing already exists, but I had a few specific goals in mind: Understand the file format by immersing myself in implementing the spec. Create a library with [...]

Posted on February 19, 2014 at 11:35 pm by Steve Konves · Permalink · Leave a comment
In: C#, Development, Projects

My C# Wishlist

Below are a few things that I wouldn’t mind seeing in the .Net framework in the future. Intuitive “select many” in Linq query notation. This should be self-explanatory.  Maybe throw in intuitive group and join, too.  Maybe you’ll get a bulk discount. A “params” option for generic type constraints This: public delegate TResult Func<in T, [...]

Posted on July 31, 2013 at 3:36 pm by Steve Konves · Permalink · Leave a comment
In: C#, Development

C# MongoDB snippet

Here’s a handy snippet I use for building out data models for MongoDB.

Posted on September 27, 2012 at 6:25 pm by Steve Konves · Permalink · Leave a comment
In: C#, Development

Scripture Reference Parser library is published

Off and on since last year (more off then on, but whatever) I have been working on a library to parse scripture verses. It started while working on SermonsToGrow.com for a friend of mine and deals with the inherently complicated parsing of scripture references. References come if various flavors with combinations of abbreviations, different ways to delimit lists, and so on.

Posted on September 13, 2012 at 10:23 pm by Steve Konves · Permalink · Leave a comment
In: C#, Development, Scripture Reference Parser

Useful Equation

Observe the following: 1) Comedy = Tragedy + Time 2) Code = Caffeine + Time The two statements are demonstrated as true by a combination of Portal 2 and your average software shop.  Bonus points for being a software developer who’s played the game. But I digress. Assuming equations 1 and 2 are correct, then [...]

Posted on March 12, 2012 at 7:34 pm by Steve Konves · Permalink · Leave a comment
In: Development

An Even Better .NET Regular Expression Tester

For a long time, I have been a fan of Derek Slager’s “Better .NET Regular Expression Tester”. As an an avid user of Visual Studio, I have gotten used to using F5 to quickly debug code; however, when using Derek’s tester, that refreshes the page and I loose all my work. Thus, I have created an “even better” tester in Silverlight which evaluates the input text against the pattern in real-time as well as displaying error messages about malformed patterns. Check it out.

Posted on January 28, 2012 at 9:28 am by Steve Konves · Permalink · Leave a comment
In: C#, Development, Regex Tester, Silverlight

Namespace change issues with Silverlight RIA Services

Problem Recently, at my job, we have implemented a naming convention across all .Net projects.  In the process of updating some old projects to the new naming convention, I ran across an issue that did not prevent the solution from building, but gave a pesky runtime error. InitializeError #2103 – Invalid or malformed application - Code# 2103 [...]

Posted on January 5, 2012 at 11:02 am by Steve Konves · Permalink · Leave a comment
In: Development, Silverlight

Bind to DataContext property from within a DataGrid

Problem Consider the following DataGrid: <sdk:DataGrid ItemsSource=”{Binding LineItems}” > <sdk:DataGridCheckBoxColumn Binding=”{Binding IsValueTrue }” /> </sdk:DataGrid> The DataGridCheckBoxColumn assumes that the objects contained in the collection “LineItems” each have a boolean property named “IsValueTrue” which will be displayed in the column for each record.  However, if you want to bind to a property on the ViewModel, you would reference the “LayoutRoot” [...]

Posted on November 28, 2011 at 2:23 pm by Steve Konves · Permalink · Leave a comment
In: C#, Silverlight

konv.es is now live

When I found out that the domain name was available, I had to pick it up.  I put together a simple url shortener which is currently hosted at the domain. Right now, it only performs basic url shortening.  I the future, I plan on adding accounts and tracking. One more thing … It also is [...]

Posted on November 23, 2011 at 11:13 pm by Steve Konves · Permalink · Leave a comment
In: ASP.Net MVC, konv.es

Godaddy subdomain url rewriting

Problem: Adding a subdomain to a hosting account with Godaddy creates a folder within the hosting root.  By default, this folder is named the same as the subdomain, but it is editable.  The issue lies within the fact that if you reference the folder, without the subdomain, you get the same site.  Therefore, navigating to [...]

Posted on November 23, 2011 at 8:09 am by Steve Konves · Permalink · Leave a comment
In: ASP.Net MVC, C#