Archive for November, 2011

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

Media Center PC won’t sleep through the night

I had a issue with my Media Center PC waking up randomly in the middle of the night. While that might be expected of a young child, I do not allow that from my computers. It turns out that there is a scheduled task associated with Media Center that updates the TV guide. By default that task is allowed to wake the computer from sleep.

Posted on November 28, 2011 at 8:47 am by Steve Konves · Permalink · Leave a comment
In: 1337 h4x

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#

All your Base62 are belong to us

I am currently working on my own url shortener: konv.es.  In order to create the shortest possible character hash of the url, I use the GetHashCode() method of the string, then convert the resulting number to base 62 ([0-9a-zA-Z]).  The most elegant solution that I have found thus far to make the convertion (which is also [...]

Posted on November 22, 2011 at 8:59 pm by Steve Konves · Permalink · 2 Comments
In: C#, konv.es

Custom Configuration Sections

They are the wave of the future, the next big thing, this Christmas’s useless fad item! Or whatever.  I don’t have time to type about them now, but here’s the link to someone who did: http://devlicio.us/blogs/derik_whittaker/archive/2006/11/13/app-config-and-custom-configuration-sections.aspx

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

It’s All About Productivity

Here is a list of tools that I use. Some are Visual Studio plugins, some are external stand alone tools, but all of them make life of a developer just a little better. All of them have a very functional free version which is a huge win.

Posted on November 15, 2011 at 8:07 am by Steve Konves · Permalink · Leave a comment
In: Development, Visual Studio

Linq Group by multiple columns + Aggregate Function

Because I refer to it so often … http://social.msdn.microsoft.com/forums/en-US/linqprojectgeneral/thread/54f6ac70-e74c-4d9d-a9ee-6373714c0755/

Posted on November 14, 2011 at 10:21 pm by Steve Konves · Permalink · Leave a comment
In: C#

Windows 7 window modes

Problem: Can’t pin application windows well in multiple monitor situations: Windows 7 introduced the ability to “pin” application windows to the sides of the screen.  If you drag a window to the side of the screen, the application is automatically re-sized to fill half.  Every time I use that feature, my life gets just a little better. [...]

Posted on November 14, 2011 at 9:24 pm by Steve Konves · Permalink · Leave a comment
In: 1337 h4x

Control Alt Delete for Remote Desktop

Problem: Ctrl+alt+del does not work in Remote Desktop Using Ctrl+alt+del in remote desktop is always handled by the local machine.  As a side note, ctrl+shift+esc will open the remote task manager. Solution: Use ctrl+alt+end Nerd cred: 5pts

Posted on November 14, 2011 at 9:08 pm by Steve Konves · Permalink · Leave a comment
In: 1337 h4x