Thursday, February 17, 2011

Powershell script: recursively delete files and directories base on match string

I have a bit of SVN trouble today. Ended up deleting all .svn folders so I could re-add them to perform my commit. Therefore I am going to quickly share a powershell script that will delete file/directory base on a match string. Note that it deletes hidden dir/files as well. Make sure you run -WhatIf to find out what it is about to do.

The useage looks like this -

  
  RecursiveDelete -WhatIf -matchString .hg -location "C:\bitbucket"

Monday, January 31, 2011

Silverlight 4 Certified

I have been away from my twitter and blogs for a few months now due to family emergency. Now I got a bit of good news so I am going to post a short one. I have just passed my Silverlight Beta exam and now I am Silverlight 4 certified. High-fives all around!! Yay~!!

Thursday, October 7, 2010

Misleading error message: The tag 'xxx' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls....'

I am sharing a more detailed error description for errors looking like "The tag 'xxx' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls....'". This has often happened to me while using Toolkit controls.

Wednesday, September 29, 2010

Fun "slides" I made for my first talk at SDDN Melbourne

I have given my first talk at SDDN Melbourne about Pivot from Microsoft Labs. I was really excited to be given a chance to speak at the local user groups. It was also a great motivation for me to look deeper into things I am interested in. For this I have also looked into deep zoom and used it for my presentations.

I had a lot of fun playing with deep zoom so I have decided I would put my projects here at my blog. My co-presenter, @DavidBurela will be sharing the video recorded for the session, therefore I am not going to share the details discussed in the talk. I will, however, update this post once it is released.

I have used the first deep zoom project to introduce myself. I had only embedded my name and some personal information on Danbo's body. I found Danbo from abstract.desktopnexus.com and used it as an ice breaker.

Tuesday, September 14, 2010

CRUD Snippet for RIA Domain Service

I would like to briefly share my new snippet - CRUD for Domain Services. Code your domain operations in 2 seconds!

CRUD stands for Create, Read, Update and Delete. To provide access to RIA consumers with a particular entity, you need to create at least one domain operation (e.g. Query) to be able to code against the entity on the client side (e.g. Silverlight). I have got tired of doing them repeatedly so here I am sharing this snippet with you.

Sunday, August 1, 2010

Windows Mobile: I just want to change my sync server to another

My partner and I has agreed that we will share each other's calendar to organize appointments in our daily life. In the past, our phones had been syncing to different exchange servers. To make our life easier, we have both switched our sync source to Google. However, believe it or not; it was not an easy task.

Developer Blog Banter #1: What is your preferred technology stack

In response to David Burela's blog, here is my current technology stack.

Thursday, July 8, 2010

Region Manager - Good or Evil?

What are your ideas in designing ViewModels that realize something like above? Nearly all applications we have came across have a desire to drill down in details. Or shall I say we found a realistic abstract view that improve user experience?

What I am about to discuss is how Region Manager comes to play when such an requirement is made. Whether clicking on a row, it shall bring out a child window or injection a view in the lower region of the same content. Many may say the way to Region Manager has been tough. More will say there are not enough documentation to move things along.

MVVM, Prism, Unity, Blendability?! - A Closer Look at Unity Container

I have mentioned View Injection and Unity Container in one of my older posts - MVVM, Prism, Unity, Blendability?!. I have said Prism is great, but to discuss it in greater details will require more than one post or code snippet. Therefore here I am, going to a bit more detail on my View Injection idea, and how Unity made it possible.

Thursday, June 10, 2010

VSMacro: Killing ASP.NET Development Server (Cassini) Ports

The joy of many ASP.NET Development Server instances If it so happen you have many web projects in your Visual Studio solution, that produced many ASP.NET Development Server (AKA Cassini) ports whenever you debug. There are times you need to kill them to eliminate problems. It was often required when my RIA Services are acting weird. Therefore, here's a little macro that might save you some hassle.