Technology

Unity Container: What was wrong with this code?

Recently, I reviewed code from a candidate. He wrote a simple Web Application using WebApi. And he used Unity as IoC Container. And this is part of the code I asked him the question My question to him: What is wrong with that code? And his answer: Due to from best practice from this post:… Continue reading Unity Container: What was wrong with this code?

Technology

Support serialization with Expando object

Recently I have a chance to work with project that need to store dynamic data, work with dynamic data. The data will be stored in RavenDB. After some considerations, I decided to use this implementation from Rick  Strahl. Everything works fine, except saving to database. It is store as empty object in RavenDB. Just add… Continue reading Support serialization with Expando object

Technology

WPF: Mystery bug: Hunt, fix, but still not understand why

I got a bug report from client for a WPF application. Please look at the picture below: The expected dropdown values are: I , unique II, III, IV, V But it displayed “II” instead of “III”. I then check the value from data source. The data was correct. I then brought up my Visual Studio… Continue reading WPF: Mystery bug: Hunt, fix, but still not understand why

Technology

Design and implement a template engine–part 2

In the Design and implement a template engine – part 1 I mentioned about a better solution: Reuse Razor Engine. In the post, I go in detail of how to implement it. But, first, we need to know some concepts: Concepts Template Engine: Use to render a template into string Template Model Builder: Build the… Continue reading Design and implement a template engine–part 2

Technology

Design and implement a template engine – part 1

Recently, I got a task which is typical in many systems: Template with merge fields. The common usage is for email. Given that an employee is created, the system will notify the manager by email with template: Dear Manager, New employee {Name} has been created on {DateTime.Now}. From the above statement, we have template with… Continue reading Design and implement a template engine – part 1

Technology

Azure Continuous Delivery with Visual Studio Online

Last week, I had a project which uses Visual Studio Online and deploys the services to Azure cloud service. The deploy structure of the project is that, we have 3 versions: Test, Demo and Production. They all share the same codebase, just different in the configuration file. Following this article http://www.windowsazure.com/en-us/documentation/articles/cloud-services-continuous-delivery-use-vso will easily setup the integration between… Continue reading Azure Continuous Delivery with Visual Studio Online

Technology

10 tools for ASP.NET

I found this interesting from Stephen Walther:10 Essential Tools for building ASP.NET Websites Now whenever starting a new website, i will prefer to this article. Short summary: 1. Sprite and Image Optimization Framework 2. Microsoft Ajax Minifier 3. ySlow 4. ELMAH 5. Pingdom 6. Host Tracker 7. HTML Spell Checker 8. IIS SEO Toolkit 9.… Continue reading 10 tools for ASP.NET

Technology

Parallel Programming – get started

I have been coding for 5 years; mostly in web-based applications. And i work on serial programming; sometimes with a bit parallel: asynchronous model. Honestly speaking, my experience with multithreaded, parallel is zero. Which is bad 😦 I know for sure what the multi threading programming is; in a basic level of awareness. That is… Continue reading Parallel Programming – get started