CodeCompetition.com

Software Development, and Technology Information

Advertisement

Optional Parameters and Named Parameters in C# 4.0 Explained

C# 4.0 has added two very useful features called Optional Parameters and Named Parameters. For years C# coders have had to settle for overloading their methods to account for parameters that will not always be used.
Optional Parameters Explained

private string YourMethod(string firstName,
string lastName = "Doe", int age = 20)
{
return firstName + " " [...]

Use LINQ to Delete Old Files

I commonly write applications that will write a new log file every day, and as you can imagine, over time this be be quite a task to keep things clean and tidy. I recently found that LINQ is perfect for this scenario.
Just be sure to have a reference to System.IO and then here is the [...]

C# Data Types Explained

C# Data Types Explained

September 12, 2009 | No Comments

In C# you can define two types of variables: value types and reference types. With the value type of variable you can store actual values, while the reference type simply holds references to values that are stored somewhere in memory.
The first thing to understand is that value types are allocated on the stack and are [...]

How to run PHP5 on 1AND1.com

While the fix for this issue is extremely easy to complete, I have found that the 1&1 technical staff do not always give an easy explanation to solve these types of issues.
The Problem:
You are probably using 1&1 to host your website, and just found out your site needs to use PHP5, but is currently using [...]

SM Bus Controller Driver

SM Bus Controller Driver

September 12, 2009 | No Comments

Maybe you recently installed Windows, and now you found this page because you are looking for the driver for a device called SM Bus Controller that is in your device manager with a yellow question mark, or maybe an exclamation mark?
Here is the issue:

Windows did not find the driver for the device: SMBus Controller?
The device [...]

Setup Subversion on Ubuntu

Here is a quick tutorial that will walk you through step by step to setup and configure Subversion on Ubuntu. This will get you going whether your installing on your local machine or deploying Subversion to a server where you will be hosting lots of projects.
Step 1: Update Software and Grab Tools
You should always [...]

Find Open Ports in Windows XP

So you need to find out what ports are currently being used in Windows XP and don’t know where to start? Here is a quick way to find out what ports are open or exposed: