Today I finished the switch from Blogger to Wordpress. This is the last update on this blog, as all new posts will be added to iserialized.com. Please update you feed reader to the new location: http://feeds.feedburner.com/iserialized
For a detailed description on how to convert a Blogger blog to Wordpress, please read my post:
http://iserialized.com/converting-from-blogger-to-wordpress/
Friday, March 12, 2010
Monday, March 1, 2010
Unit testing private methods in C# using NUnit and Reflection
Ever had the need to unit test a private method? Ever change a private method to public just to able to write a test for it? You are definitely not alone! A couple of weeks back I had a very interesting discussions with a very good colleague of mine: "What to do if I want to unit test a private method in C#". In this post I will show how you can use NUnit in combination with Reflection to unit test private methods!
Saturday, February 20, 2010
The is keyword: Yet another hidden treasure of C#
A while back i blogged about the yield keyword and called it a hidden treasure of C# as I seldom see it used, and many senior developers never use it! Today, I came across a similar one, namely the is-keyword. And frankly, I had actually forgotten about myself, even though I have used it in the past on several occasions.
Etiketter:
.Net,
Getting started,
Technical
Thursday, February 11, 2010
Daily Stand-Ups in Scrum
I just came across a great summary of the daily stand-ups in scrum, written by Joakim Karlsson. I guess most Scrum teams start out with good intentions and focus in the begging, but as time goes by, we start falling into the old "around the table" reporting habit to the project manager, the Scrum master becomes more and more a project manager, and we gradually drift away from the core principles and ideas behind the daily stand-up!
Tuesday, February 2, 2010
Dynamic Language Runtime in .Net 4.0
The upcoming .Net 4.0 contains many new and exciting features, in this blog post I will describe some of the new features of the DLR including the dynamic keyword.
Etiketter:
.Net,
.Net 4.0,
Getting started
Wednesday, January 27, 2010
Why use Custom Control instead of User Control in WPF?
When I first started experimenting with WPF I was quite confused with the new custom control introduced in WPF. I did a quick Google search but never got the full understanding of the difference, but I read somewhere that in most cases a custom control was not necessary, so I just focused on the regular user control back then.
Etiketter:
.Net,
.Net 3.5,
Getting started,
WPF
Tuesday, January 19, 2010
What's new in WPF 4.0
Microsoft has just release a series of short (15 minutes long) how-to videos for WPF 4.0 introducing the various new features of WPF 4.0.
Etiketter:
.Net 4.0,
Getting started,
Visual Studio 2010,
WPF
Friday, January 15, 2010
Getting started with Caliburn Part 2: Multiple Views on one ViewModel
The documentation and tutorials on Caliburn is still very limited, and is one of the biggest obstacles getting started with Caliburn right now. In this post I hope to fill some of the gaps I have seen in the lack of documentation by showing how you can easily hook up two Views to one ViewModel.
Friday, January 8, 2010
Extension methods in 60 seconds
Extension methods enables you to hook up extra methods to an already existing (and possibly sealed) class, without the need of subclassing or changing the original class. Lets say I have a class from a third party vendor I use, which contains information on persons
Etiketter:
.Net 3.5,
Getting started,
Technical
Wednesday, January 6, 2010
A quick start guide to yield return and yield break
The yield statement was introduced in .Net 2.0, but I am a bit surprised that I meet many senior developers who has never used yield return (and yield break)! For some strange reason, yield has become some kind of hidden treasure in .Net. Through this post, I hope I can show some simple examples, and give some of the ideas, benefits and limitations with yield.
Etiketter:
.Net,
Getting started,
Technical
Saturday, January 2, 2010
Working with globalization, string parsing and number formats in C#
On a project I attended a couple of years ago, we struggled a lot with string parsing, date formats and cultures. The product was shipped to among others China, Japan and US, and getting your code to work seamless in all culture formats can be a bit of a hassle if you are not fully familiar with how .Net and C# handles cultures and globalization. Back then I crated a small Windows Forms application to help me fully understand the details of conversions and parsing to avoid problems when our application was run on e.g. a Chinese laptop.
Etiketter:
.Net,
.Net 3.5,
Windows Forms
Friday, January 1, 2010
SqueezeBox Server won't scrobble to LastFm
For the second time this week, I saw that my Squeezebox Server won't scrobble my played (and loved) tracks to last.fm! I started investigating, and in the server log of my Squeezebox server, I found the following errors:
Etiketter:
Last.fm,
Squeezebox,
Windows 7
Wednesday, December 23, 2009
Memoization using generics - Part 2
This is Part 2 of my series on Memoization. In Part 1 I described the basic principles behind memoization, and showed some examples on how to create an effective generic method to do memoization of methods with zero and one parameter. In this post I will show how to do memoization of methods with two parameters.
Etiketter:
.Net,
.Net 3.5,
Design,
Visual Studio 2008
Sunday, December 20, 2009
Getting started with Caliburn
The lack of documentation and examples of usage is one of the biggest obstacles getting started with Caliburn. I hope this article can help somewhat!
One of my biggest fears when starting a new project is heading in the wrong direction and not realizing that we are headed for disaster until it's too late. Due to architectural decisions, this is always a worry, but the new project is based on WPF, the risk and possibility of a failure is drastically increased. I'm afraid that my WPF projects become "Windows Formish", not taking advantage of MVP/ MVVM.
This is Part 1 of my series on Caliburn, Part 2 can be found here.
One of my biggest fears when starting a new project is heading in the wrong direction and not realizing that we are headed for disaster until it's too late. Due to architectural decisions, this is always a worry, but the new project is based on WPF, the risk and possibility of a failure is drastically increased. I'm afraid that my WPF projects become "Windows Formish", not taking advantage of MVP/ MVVM.
This is Part 1 of my series on Caliburn, Part 2 can be found here.
Caliburn was designed to aid in the development of WPF and Silverlight applications, enabling easier use of among other MVP and MVVM. This article will be a walkthrough of a rather simple WPF application based on Caliburn. The example used here is a very simple application retrieving a value from a textbox, publishing it to an EventAggregator, and then let another component handle the published message. Hopefully I am able to show some of the advantages of Caliburn through this example.
Closing in on 20 000 reader on my article at CodeProject!!!
Back in 2006 when I started working with .Net, I posted an article at The Code Project, where I wrote about Sending parameters at thread startup. My competence with .Net has grown rapidly since then, but I check back today to check my profile at The Code Project, and realized that my article was read 20 000 times!
Thursday, December 17, 2009
Adding C# and ASP.Net to Blogger (Part 2)
In one of my earlier posts I recommended using Windows Live Writer and the "Paste from Visual Studio" plugin to add code to your blog. But two days of struggling with layout I gave up, and stumbled upon the C# code formatter which is very easy to use!
Etiketter:
.Net,
Blogger,
Windows Live Writer
Memoization using generics and lambda expressions
This is Part 1 of my series of memoization, you can find Part 2 here.
Memoization is a hidden treasure of programming techniques. Most developers has a good understanding of caching and use it to optimize queries, but why even do calculations on cached or live data, when you don’t need to calculate at all?
Etiketter:
.Net,
.Net 3.5,
Design,
Visual Studio 2008
Tuesday, December 15, 2009
Adding C# and ASP.Net code to Wordpress
In the case of WordPress, adding C#, ASP.Net and similar code is very simple. Just use the sourcode tag in the following way (discard the underscores):
Monday, December 14, 2009
Adding C# and ASP.Net code to Blogger
Update: Please see my second blog post about an updated evaluation of Blogger and C# ASP.Net
Many developers ask, how can I paste C# code in my blog? I have looked into several ways of doing this, my verdict: Use Windows Live Writer!
Etiketter:
.Net,
Blogger,
Visual Studio 2008,
Windows Live Writer
Friday, December 11, 2009
Struggling with impedance mismatch, obstacles and technical debt in Scrum projects
Lean processes such as Scrum has no requirements regarding specific software design methodology, but on the other hand an agile software process requires an agile code base!
Etiketter:
agile,
lean,
scrum,
technical debt
Twingly and AdSense: My “incredibly rich without working” idea
The idea: As a blogger I can add AdSense to my blog to make money, based on hits and clicks. But the dollar per click ratio is rather low, so to become incredibly rich I need a blog with MANY hits per day. So how can I do this? I can start blogging, like I do with the Notorious N.E.R.D blog, but this blog has too few hits to make me rich, or I can experiment with my genious idea: Using Twingly, AdSense and all newspapers of web to gain hits without any work!
Tuesday, October 27, 2009
Focus on the product backlog and business value of Scrum projects
While struggeling on a customer project, I came across a post in Eric Lee's blog The root of all evil in Scrum
We are struggeling on a customer project to get scrum working. I joined the team a couple of months back, when they had allready been scrumming for a while, but I found a SCRUM team in a big crises, where they were scrumming, but as I asked them, why?
We are struggeling on a customer project to get scrum working. I joined the team a couple of months back, when they had allready been scrumming for a while, but I found a SCRUM team in a big crises, where they were scrumming, but as I asked them, why?
Wednesday, September 2, 2009
Accessing Sharepoint 2007 from Office 2010 Technical Preview
I have really struggled with my Office 2010 Technical Preview the last few days. Most of the Office 2010 is working really good, but accessing word and excel documents located on a Sharepoint 2007 server, has not been easy!
Etiketter:
Office 2010,
Office Synchronization Center,
Sharepoint,
Windows 7
Tuesday, August 11, 2009
Version 1.0 of Windows 7 code pack
Today the Windows 7 code pack version 1.0 was released. With the code pack you can start using the new features in Windows 7 from your own .Net 3.5 applications, eg. progress bars, icon overlay, Thumbnails toolbars +++
Etiketter:
Windows 7,
Windows Forms
Tuesday, July 28, 2009
Getting started with Windows 7 (Tips and tricks)
One of the biggest problem with each new version of a framework or OS is getting known with all the new features and functions. I personally never have the time to sit down and read pages upon pages each time I upgrade, but today I came across a really good page with quick videos of Windows 7 tips and tricks. Short videos between 30 sec and 1,5 minute.
Etiketter:
Getting started,
Windows 7,
Windows 7 Beta,
Windows 7 RC
Friday, May 29, 2009
Setting up Gmail on Windows Mobile 6.1
Accoring to this article, it should be rather straight forward to setup Gmail with IMAP on WM 6.1. I manged to this on my HTC TYTN II when I was running WM 6.0, but after upgrading to WM 6.1, I never had the choice during installtion to avoid automatically retrieving setting, so I was forced into a POP-setup, which has never been any good i combination WM6 and Gmail.
Tuesday, May 19, 2009
Upgrading Windows 7 Beta to Windows 7 RC
A couple of months ago I attended a MSDN Live session in Stavanger Norway, where I talked to a Microsoft representative regarding the Windows 7 beta-program. To avoid too much extra work, I considered waiting for the RC before installing the Windows 7, but based on the "guarantee" from Microsoft that upgrading for Windows 7 beta to RC 1 and final version be would straight forward, I went ahead and installed the beta!
Etiketter:
Windows 7,
Windows 7 Beta,
Windows 7 RC
Saturday, January 3, 2009
Logging in .Net: a short study
I have been using different third-party logging tools for both .Net (C# and C++) and Java, but in my current project we are using a custom logging tool. Don't ask me why we have written our own framework for this, but I guess it's partly because we have worked on our current code base since before .Net 1.0 was released, hence I guess the number of available frameworks at that time was quite limited. But now I am tired of spending time and money maintaining code we could get for free elsewhere!
Etiketter:
.Net,
Logging,
NUnit,
Visual Studio 2008,
XUnit
Wednesday, February 20, 2008
Using icons in windows applications
Today I came across the same problem that I have had many times earlier: I need a new icons in an application, this time for a refresh button. So what do I do? I Google it ofcourse and get hundreds of hits to all kind of crappy icon libraries, most of the costing me a fortune!
Etiketter:
.Net,
Visual Studio 2005,
Visual Studio 2008,
Windows Forms
Subscribe to:
Posts (Atom)

