Websites and blogs of people that attended a Homebrew Website Club Düsseldorf.
Settings in Silverlight
A few months ago I was developing a Silverlight Line of Business Application with a customer when I stumbled across the requirement to store some information over multiple user sessions - user works with the app, closes the browser and reopens the browser and works with the app again. My first idea was to store the info in a cookie. It all worked out fine until I started to enable the localization using the culture/uiculture param.
.NET Day Franken 2011
Am 21. Mai war ich Sprecher auf dem .NET Day Franken. Ein weiteres tolles Event für die .NET Community. Vielen Dank an Thomas Müller, und Bernd Hengelein und Michael Wiedeking!
dotnet Cologne 2011
Am 6. Mai fand in Köln die dotnet Cologne statt. Neben meinem Sprecher-Engagement hat es mich sehr gefreut, dass unsere Firma, devcoach, dieses gelungene Community-Event als Platin-Sponsor unterstützen konnte. Ein großes Dankeschön an Albert Weinert, Roland Weigelt und Stefan Lange!
New Visual Studio Style
I’ve been with a dark theme for a while but always hat a few issues with my prior theme. Today I created a new one: http://studiostyl.es/schemes/lennybacon-s-new-dark
Setting up a local SSL development environment for multiple sites
The environment should also work on a notebook while working at a coffee shop. The need for a NIC that is always connected. Add a loopback adapter… [WIN] + [R] | hdwwiz.exe Open the “Network and Sharing Center” … Click “Change adapter settings” and identify the loopback adapter… Rename the loopback adapter… Open loopback adapter’s properties… Disable IP v6… Edit IP v4 settings and assign an IP Address… Click advanced an add another IP address for each SSL-Site to be hosted… Open “IIS Manager” and click “Server Certificates”… Click “Create self signed certificate” for each SSL site to be hosted and choose the host name as friendly name… Assign each site to be hosted a dedicated IP address plus certificate… Associated IP addresses with host names in the hosts file (or install DNS Services when on Server 2008)… Done!
Resharper 6 WPF binding validation
I usually do most stuff in the markup view. As loose coupled view models cannot be validated its … ugly. But today I experienced this: I hit [ALT] + [ENTER] The following code was added (the type name “LoginViewModel” and its namespace was addedmanually…): Now I got binding validation: Nice!
ASP.NET MVC 3: German Web Casts Series
Heute sind die ASP.NET MVC 3 Web Casts die ich machen durfte online gegangen: ASP.NET MVC ist Teil des ASP.NET Framework; Anfang 2011 ist die Version 3 des ASP.NET MVC erschienen. Diese Webcast-Reihe führt in das Entwurfsprinzip des Model View Controller-Schema (MVC) ein. ASP.NET MVC (Teil 1 von 3) – Fundamentals ASP.NET MVC (Teil 2 von 3) - Views & Layouts mit Razor ASP.NET MVC (Teil 3 von 3) - Forms, Binding & Validation
Nuget Package Reference Switcher Extension for Visual Studio
I really like the idea of nuget package management. I tend to use packages also for internal libraries. But in a debugging session I sometimes need to debug or even change the referenced project. What I usually do is to add the foreign project to my solution and change the reference from the “Package Reference” to a “Project Reference”. After I did my changes to the foreign project I commit it, rebuild the package, upload it and reload the package to my local projects package directory.
WCF Data Services Client does not close connections!
Have you ever worked with the WCF DataServices Client? I was contributing to the nuget project and experienced some problems. After a few operations (web request through either the WCF Data Service Context or manually through a WebRequest) operations started to time out. I used (the fabulous) reflector pro to digg into the sources. What you see here is a class utilized to return the result of a WCF Data Services request.
Generating code files with correct namespaces using T4
The Visual Studio built in Code Generator T4 is mostly used to generate code files. As code in .NET is organized in namespaces I needed a way to figure out the correct namespace for the generated file. T4 provides the ability to access properties of the Host. When using Visual Studio this is the EnvDTE automation object. This gives us access to the project properties that contain a property for the default namespace for the project.
Regions are like knives
Most people state that regions are bad. I prefer a more fine grained definition: Regions in code are like knives. They can cause serious injury. But a surgeon can use one to do good. What are region intended for? Regions provide you the ability to expand and collapse code. You can do this with members, classes and namespaces without a region. The difference is that the region keeps the collapsed state when opening a file.
Enable editing of enumerable data in ASP.NET MVC
I’m currently working on an ASP.NET MVC project. Today I stumbled across a requirement that involved enabling the editing of data that is displayed (on a lets call it master page). The specialty of the data is it’s an enumerable. I had a few Ideas how to solve the problem. 1. Ajaxification Pro: I like jQuery. I like that you can directly edit stuff Con: I like to have a low-level fallback
Do not debug on daylight saving time switch
WTF? Solution: Unmark the auto adjustment EDIT: While I blogged this I had the same issue on my blog. Here is the snapshot of the event log Event code: 3005 Event message: An unhandled exception has occurred. Event time: 10/31/2010 2:11:48 AM Event time (UTC): 10/31/2010 12:11:48 AM Event ID: 2da507c58aa84c7b8ed29e8fbf3908bc Event sequence: 496 Event occurrence: 9 Event detail code: 0 Application information: Application domain: /LM/W3SVC/4/ROOT-1-XXXXXXXXXXX Trust level: Full Application Virtual Path: / Application Path: X:\xxxxxxx\lennybacon.
More comfort reading values from lines in CSV-files
Today I had to read values from multiple CVS-files. I wanted to build a testable and reusable solution instead of the ugly sequential spaghetti that easily happens. So here is a sample of a line: var lineReadFromCsv = "42;Daniel;Fisher;1980-03-25;{79704C0D-1A4F-4DDD-80F6-CA79E81BF7CD}"; To increase the readability I created enumerations that point to the index of the position of the values in each line that I wanted to read: public enum DataFormatField { Id = 0, GivenName = 1, Surname = 2, DateOfBirth = 3, UniqueId = 4, } I created a class called ParserParameter that contains enums that
Ultimate Guide to speed up Visual Studio
I believe that better tools lead to better results. That’s why I care about my tools performance a lot! Recently I had a conversation with Peter Kirchner and Kay Giza on how to speed up Visual Studio. Specifically by configuring you Anti-Virus software. But beside that there are loads of things that you can do. So I decided to share the tweaks on environment: Visual Studio 2008 Options Disable “Animate environment tools”…
Adding errors to the model state the typed way
Ah… there is one left. We do not only want to remove properties form the model state the typed way. What about adding error messages? Here we go: using System; using System.Linq.Expressions; using System.Reflection; using System.Web.Mvc; namespace devcoach.Web.Mvc { /// <summary> /// Extensions for the <see cref="ModelStateDictionary"/> class. /// </summary> public static class ModelStateDictionaryExtensions { /// <summary> /// Removes the specified member from the <see cref="ModelStateDictionary"/>. /// </summary> /// <param name="me">Me.
Removing properties from the model state the typed way
I’m currently working with Philip on a project which also has an ASP.NET MVC (by the way I really like the .MVC idea somebody came up the last weeks) project. We came to the point where we needed to remove the required property “Password” if the user is registering using OAuth. Argh. That’s is not typed! So I wrote a small extension method that I added to the devcoach.Web.Mvc assembly I’d like to share here:
How to resolve referenced assemblies with NGem
NGem is a small utility that can help you to resolve assembly references (third-party or you own framework stuff). This is the second post on how to work with NGem. Lets assume you create a new project and start with creating its directory: In the new project directory you can now run NGem to resolve the latest versions of the assemblies that you like to reference from a http reachable location.
How to create a ngem package
NGem is a small utility that can help you to resolve assembly references (third-party or you own framework stuff). This is the first post on how to work with NGem. So lets imagine you have created a few assemblies: The assembly in the directory ObjectModel.Data relies on the one called ObjectModel. So we need to create a reference… Its pretty straight forward. Just create a file in the corresponding directory called References.