Moses Yap
:-) A happy IT Guy

Getting Started with CodeSmith - Hello World!

April 29, 2008 04:21 by mosesyap
CodeSmith is really a cool tool and experience programmers should make it part of their arsenal.  Not only can CodeSmith automate many of the redundant coding task a team does, but the templates that comes with it is great for studying a lot of the industry patterns available including nHiberna... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C# | CodeSmith
Actions: E-mail | Permalink | Comments (4) | Comment RSSRSS comment feed

Blogging: Copying source from Visual Studio to your Blog

April 27, 2008 16:29 by mosesyap
I've had this problem with BlogEngine.NET where when you copy from Visual Studio and paste to your web editor, it retains the colors but totally converts all the new line to html tag <p>.  Using Windows Live Writer does not help either as it will just paste your code as plain text without... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: BlogEngine.NET
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Creating your own Stack using generics

April 27, 2008 15:59 by mosesyap
Implementing a Stack using Generics.. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C#
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Selection Sort

April 26, 2008 15:46 by MosesYap
Selection sorting is pretty much similar in terms of efficiency to Bubble sorting.  The difference is that unlike Bubble sorting where you continually compare and swap values, in selection sort, you can think of it as filling up slots with the smallest number found in the pool. Ex. Lets ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Bubble Sort (2 techniques)

April 26, 2008 15:09 by MosesYap
This article is about bubble sorting using C#. It shows 2 techniques, the first is to compare every number with all other numbers, the second is using a boolean to keep track if there are still swaps.. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Insertion Sort

April 26, 2008 13:12 by MosesYap
Insertion Sort implementation using C#. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Using LINQ for SQL

April 7, 2008 14:03 by MosesYap
I've just finished creating a very simple site for my wife about her mission trip to Cambodia.  She went to Cambodia twice last year (2007) to help out with some charity work.  Our Church, Saint Andrews Cathedral had a student center in Kampong Speu.  For more information about ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | Lamda | C#
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Using Lamda to join between two ActiveRecord Collection

April 2, 2008 16:33 by MosesYap
Here is an example where you can join two ActiveRecord collections in memory. Actually, this example applies to any object collection. In this example, we have a ProjectCollection and a ProjectMemberCollection. The ProjectCollection contains a collection of Project objects with ProjectID a... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | Lamda | C#
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Storing Files in DB or in Filesystem

April 2, 2008 03:52 by MosesYap
For web applications, is it better to store files in DB or in the filesystem.  In my previous projects, we have encountered this question a lot and the decision has not always been the same.  There is an excellent article from 4guysfromrolla that gives an introduction to storing files in... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: Patterns
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed