Moses Yap
:-) A happy IT Guy

Getting Intellisense for web.config/app.config in Visual Studio 2008 (Spring.NET as example)

August 7, 2008 09:09 by moses.yap
This is based on extending Visual Studio 2008’s intellisense system through XML Schemas.  The step by step guide below is specific for Spring.NET but it should also work for other packages as long as a valid XML Schema exist. For Spring.NET: 1.  Open your Visual Studio 2008 project and o... [More]

Be the first to rate this post

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

C#: My first foray into Dependency Injection using Spring.NET

August 1, 2008 09:47 by moses.yap
For quite a few months now, I have been hearing a lot about loose coupled components using Dependency Injection patterns.  There are a few frameworks that keeps popping up, including the Unity Framework which is part of Enterprise Library 4.0, String.NET which has been around for a while and is... [More]

Be the first to rate this post

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

C#: Randomize Sorting the Items inside a Collection

July 30, 2008 05:18 by moses.yap
Recently, I have been doing some simple games for my web site at ChristianPipes.com and one of the games is a multiple choice type game where choices for a particular question has to come out in random placement.  So, if the same question comes out, the choices would not be sorted the same on t... [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

C#: Getting a Random Record from a Table inside the SQL Server Database

July 30, 2008 03:56 by moses.yap
I wanted to get a random record from a particular table on the SQL Server database.  For my case, I had a table containing quotes, and I wanted to randomly pick on to show on one corner of my web site.  I am also using LINQ to SQL for this web site, so the solution here will be using LINQ,... [More]

Be the first to rate this post

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

Getting SQL Server Management Studio (2008) Object Explorer to list out databases for servers where you don’t have permissions for all databases

July 29, 2008 11:57 by moses.yap
Recently I installed SQL Server 2008 RC0 but was having some difficulty with the SQL Server Management Studio (SSMS) on a server where my login do not have access to all the databases.  This is specially troublesome as I needed to work on some websites at Brinskster which is a shared hostin... [More]

Be the first to rate this post

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

.NET: Creating your own Custom Configuration Section

July 28, 2008 09:39 by moses.yap
Sometimes its pretty useful to create your own configuration section on the web.config or app.config file.  It makes much cleaner than using the key/value pair on the appSettigns, and you get a strongly typed object with validations for the values. To create our own configuration section, we n... [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

The WCF Configuration Tool

July 24, 2008 09:06 by moses.yap
Currently, I am working a lot on creating Web Services using WCF.  I thought it would be good to document some stuff I found out while working with it. WCF allows you to put transport and message behaviors on the configuration files, so the code itself can concentrate on business logic and not... [More]

Be the first to rate this post

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

Getting Logitech MX Revolution and Setpoint to work on Windows Server 2008

July 24, 2008 08:38 by moses.yap
I love Server 2008 as a workstation.  Its much more stable than Vista, does not nag me a with confirmation windows on everything I do, and runs all my development tools well.  The problem with Windows Server OS and SetPoint is all over the logitech forums.  Setpoint just don’t show yo... [More]

Be the first to rate this post

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

Installing Live Writer 2008 on Windows Server 2008

July 24, 2008 08:17 by moses.yap
One problem I have with using Windows Server 2008 as a workstation OS is that its a bit difficult to install any of the Microsoft Live applications whether its Live Messenger or Live Writer.  I am not really sure why Microsoft don’t support it, even if I had no problem once I finally get these ... [More]

Be the first to rate this post

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

LINQ: A pretty interesting LINQ usage

June 30, 2008 13:22 by moses.yap
I was having a problem doing something very simple.  I wanted to bind an array of string to a DataGridView on a windows program, but instead of the values of the strings in the array, I am getting the Length instead.  I guess that is because the Length is the first public property and this... [More]

Be the first to rate this post

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