developement

EPiServer Community cache notification

Posted Thursday, June 03, 2010 8:08 AM | Feedback (0), Filed Under .NET developement EPiServer Cache notification EPiServer Community

Yesterday we ran into an odd problem with our load balancers. To give you some history, we use EPiServer Community to handle users and store user attributes. The application works in both http and https depending on where on the site you are at the moment. You can imagine the look on our faces  We had just deployed our application to a load balanced test environment when the application started to act strange. The problem was that when we saved attributes to a users profile in http the attributes where not updated when going into a...

Create GUID tool for Visual Studio

Posted Tuesday, September 29, 2009 9:32 PM | Feedback (3), Filed Under .NET developement Visual Studio

@rewdboy a coworker had a small problem earlier today, he just couldn't find the good old Create GUID application that is packaged with Visual Studio. The tool has not been removed from the IDE it’s still there. It depends on what development type you have chosen. You may remember the first time you start Visual Studio after installing it prompts you asking what type of development you are planning to do. There are six choices, the one that I know has the Create GUID tool is the Visual C"# Development Settings, If you went with Web Development Settings you...

Highlight current line Visual Studio custom theme

Posted Friday, September 18, 2009 4:12 PM | Feedback (2), Filed Under .NET developement Refactoring ReSharper

A nice feature of ReSharper, besides all refactoring goodness, is the ability to highlight the current line. That is the line where the caret is, is highlighted. This makes it so much easier to get back and find where you last left off or where the search result is when searching around in Visual Studio. If you have ReSharper it’s easy to do this. Just go to ReSharper’s options menu ReSharper –> Options. And from there go to the Editor menu and select “Highlight current line” If you have a customized color theme like I...

Plans are useless, but planning is indispensable

Posted Friday, September 11, 2009 10:41 AM | Feedback (2), Filed Under developement

This is just a short post but with a big statement made by Dwight D. Eisenhower: “I have always found that plans are useless, but planning is indispensable.” This statement was valid in that time and is still relevant. We as developers know that there are only three things that are certain in life, death, taxes and changing requirements. So to remind me I’ve made a small desktop background with this wise words. Grab a copy if you like it.

Disable Development Web Server when attatching to process

Posted Tuesday, September 01, 2009 11:07 AM | Feedback (3), Filed Under .NET developement

After I reinstalled my computer to use Windows 7 my Visual Studio 2008 began to start the Cassini development server included in Visual Studio 2008. This has been annoying me for quite some time, not that it’s any problem just that it gets started by default without me asking for it. So I went and disabled it. I did it by formatting the ProjectName.csproj.user file. This file is meant to work as the web.config and machine.config files, where the machine.config has all settings but they are overridden by the settings that match in the web.config file,...

Is page in Edit mode

Posted Monday, August 31, 2009 2:40 PM | Feedback (0), Filed Under .NET C# developement EPiServer

I’m writing an account registering control. This control needs to show the user how to register for a new account. But when modifying this control the pages editors must be able to see the hole flow. So I went looking for a smart way to display the control in two ways depending on the context it’s being viewed in. I found Jacob Khan’s blog post in EPiServer labs that seemed nice but I didn’t get it to work. The thing I ended doing was to get the id from the query string, and parsing it to a PageReference to...

Know thy framework String to CSV String.Join

Posted Saturday, May 23, 2009 8:14 AM | Feedback (2), Filed Under .NET developement

A common task is to take an array of strings or a List<string> and parse it to a comma separated value string for use in some sort of light weight media like a cookie or an url. The way that this is usually done is to loop the array and concatenate the strings with a trailing comma “ , “ to then remove the last one. Yesterday I was on my way in doing just this procedure when I thought that there’s got to be a better way to do this. After doing some research with...

The involuntary designer

Posted Monday, May 04, 2009 7:44 AM | Feedback (0), Filed Under developement Interaction design Web

In web development design is often the main force driving the project, then comes content, functionality followed by technology. Sure, the first thin the visitors see when they come to a web page is the design of the start page. In 3 seconds the visitor has judged the site by the look and feel of the site. The way the menu is composed, if the information they seek is one of the first things they see, and so on.  The first page tells you much about what you can expect of the web site. But what happens after that? ...

The involuntary designer

Posted Monday, May 04, 2009 7:44 AM | Feedback (0), Filed Under developement Interaction design Web

In web development design is often the main force driving the project, then comes content, functionality followed by technology. Sure, the first thin the visitors see when they come to a web page is the design of the start page. In 3 seconds the visitor has judged the site by the look and feel of the site. The way the menu is composed, if the information they seek is one of the first things they see, and so on.  The first page tells you much about what you can expect of the web site. But what happens after that? When...

Grouping with Linq Igrouping

Posted Friday, March 13, 2009 8:13 AM | Feedback (0), Filed Under .NET C# developement Linq

Now a days no one uses arrays any more, the reason why, because they are a pain to work with and seriously, why would you when we have the generic List<T> collection. If you are using object collections that implement IEnumerable like List<T>, List(Of T)  in VB, you are in a world of joy. And if you are using Linq then you are in a world of joy in Christmas!If there is one technology that have had an impact  on my coding then it would be Linq. Things that where a pain to do like parsing an XML file and...