Member Blogs

Member-driven content. Start a blog today!


Technology * Industry Trends * Science * Philosophy * Politics * Entertainment * Anything!


Member Blog Home Pages

Thoughts and opinions of the author.

The following members have blogs:


*** Read and Add Your Comments To Recent Blogs ***

Recently Updated

Recently updated blog topics (last 10).
Member Title Updated Group >> KB Topic
khemebuen
Progrida Global LLC
Send khemebuen a Private Message Visit khemebuen's Home Page
Rank: Cadet 2nd Year

Joined: May 2009
MB Articles: 0

KB Articles: 0

Location: Marietta, GA USA

Extension Methods in C#

Authored by , Posted By khemebuen

With Extension methods you are able to add new methods to predefined types and objects without recompiling the base type or type.

As an example, I will extend the DateTime object and add two more methods to it:GetFirstOfMonth, and GetEndOfMonth.

The snippet below is a static class which extends two more methods of the DateTime class

 namespace ExtensionExample
 
    public static class DateTimeExtensions 
    {
        public static DateTime GetFirstOfMonth(this DateTime Value)
        {
            return new DateTime(Value.Year,Value.Month,1);
        }
        public static DateTime GetEndOfMonth(this DateTime Value)
        {
            return new DateTime(Value.Year, Value.Month, DateTime.DaysInMonth(Value.Year, Value.Month));
        }
    }
}

to use this extension, all i have to do is include the  namespace ExtensionExample.

then when a DateTime variable is declared, it will have the two methods i just extended

            DateTime t = DateTime.Today;
            Consolole.WriteLine(t.GetFirstOfMonth().ToString);
            Consolole.WriteLine(t.GetEndOfMonth().ToString);
  +Add Blog Entry (0 Entries )
5/12/2009 C# (Visual C# & VS.Net) >> OOP
 
Mike Prestwood
Prestwood Software
Send mprestwood a Private Message Visit mprestwood's Home Page
PS Staff
Moderator
Rank: Fleet Admiral

Joined: Oct 2005
Visits: 22332
MB Posts: 1155

KB Articles: 1424

Location: Citrus Heights, CA USA

The Future of Paradox Blog

Authored by , Posted By mprestwood

If you're still using Paradox for any of your business database applications, you need to put a plan together now for converting to another development tool or at least understand what the future is likely to hold. If you're a power-user or researcher working with data, stick with Paradox at least for now.

  +Add Blog Entry (26 Entries  last by mprestwood )
5/6/2009 Corel Paradox >> Tool Basics
 
Adam Lum
Prestwood Software
Send adamlum a Private Message Visit adamlum's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Feb 2006
Visits: 5712
MB Posts: 30

KB Articles: 31

Location: Citrus Heights, CA USA

Borland Divesting in IDE Product Lines

Authored by , Posted By adamlum
Borland to sell Delphi, C++Builder, JBuilder, etc.
  +Add Blog Entry (2 Entries  last by mprestwood )
12/27/2008 Industry News & Trends >> Industry News & Trends
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jun 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Nice Image Viewer - Free

Authored by , Posted By wes
Although Windows includes Microsoft's Picture Viewer, it has its limitations. Here's a free replacement with some real horsepower.
  +Add Blog Entry (0 Entries )
12/11/2008 Systems Engineering >> Windows
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Oct 2006
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Databases: Which are Best?

Authored by , Posted By wes
Which databases Prestwood Software prefers - and why.
  +Add Blog Entry (1 Entries  last by mprestwood )
12/5/2008 DBA, Databases, & Data >> DBA & Data
 
Mike Prestwood
Prestwood Software
Send mprestwood a Private Message Visit mprestwood's Home Page
PS Staff
Moderator
Rank: Fleet Admiral

Joined: Mar 2003
Visits: 22332
MB Posts: 1155

KB Articles: 1424

Location: Citrus Heights, CA USA

Is Paradox a good Internet solution?

Authored by , Posted By mprestwood
My thoughts on whether Paradox for Windows is a good solution for building web-based Internet solutions.
  +Add Blog Entry (6 Entries  last by mprestwood )
11/26/2008 Corel Paradox >> Tool Basics
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jan 2008
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Windows XP Not Supported After June 30, 2008

Authored by , Posted By Wes
Microsoft plans to discontinue sales of Windows XP on June 30, 2008. Because XP is a tried and true OS, and because of numerous problems with Vista, many users and IT departments would prefer to stick with XP. InfoWorld has an initiative to keep XP alive indefinitely. You can help.
  +Add Blog Entry (0 Entries )
5/4/2008 Industry News & Trends >> IT Water-Cooler for Power-Users
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jan 2008
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Failed Hard Drives and RAID

Authored by , Posted By Wes
If you've used computers for more than a few years, you know that you don't wonder IF a hard drive will fail - you wonder WHEN. It just happened to me - again. But this time it looks like the results will be pretty painless. The reasons? * RAID Level 1 * Superb Hard Drive manufacturer warranty support
  +Add Blog Entry (0 Entries )
1/24/2008 Systems Engineering >> Non-Removable Storage Technology
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Dec 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Punishment for Purchasing - What a Concept

Authored by , Posted By Wes
Here's a great marketing idea, cooked up, no doubt, by some MBA: Punish your customers for being your customers. Sound crazy? Several well-known software and service vendors don't seem to think so.
  +Add Blog Entry (0 Entries )
12/27/2007 Industry News & Trends >> Industry News & Trends
 
kberry
Prestwood Software
Send KBerry a Private Message Visit KBerry's Home Page
PS Staff
Moderator
Rank: Commander

Joined: Feb 2006
Visits: 846
MB Posts: 59

KB Articles: 18

Location: Citrus Heights, CA USA

Kim Berry's Letter to the Editor

Authored by , Posted By KBerry
Kim Berry was published today in the Letters to the Editor section of the Sacramento Bee.
  +Add Blog Entry (0 Entries )
12/17/2007 American I.T. Workforce >> Off Shoring
 




Recently Started

Recently started blog topics (last 10).
Member Title Updated Group >> KB Topic
khemebuen
Progrida Global LLC
Send khemebuen a Private Message Visit khemebuen's Home Page
Rank: Cadet 2nd Year

Joined: May 2009
MB Articles: 0

KB Articles: 0

Location: Marietta, GA USA

Extension Methods in C#

Authored by , Posted By khemebuen

With Extension methods you are able to add new methods to predefined types and objects without recompiling the base type or type.

As an example, I will extend the DateTime object and add two more methods to it:GetFirstOfMonth, and GetEndOfMonth.

The snippet below is a static class which extends two more methods of the DateTime class

 namespace ExtensionExample
 
    public static class DateTimeExtensions 
    {
        public static DateTime GetFirstOfMonth(this DateTime Value)
        {
            return new DateTime(Value.Year,Value.Month,1);
        }
        public static DateTime GetEndOfMonth(this DateTime Value)
        {
            return new DateTime(Value.Year, Value.Month, DateTime.DaysInMonth(Value.Year, Value.Month));
        }
    }
}

to use this extension, all i have to do is include the  namespace ExtensionExample.

then when a DateTime variable is declared, it will have the two methods i just extended

            DateTime t = DateTime.Today;
            Consolole.WriteLine(t.GetFirstOfMonth().ToString);
            Consolole.WriteLine(t.GetEndOfMonth().ToString);
  +Add Blog Entry (0 Entries )
5/12/2009 C# (Visual C# & VS.Net) >> OOP
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jan 2008
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Failed Hard Drives and RAID

Authored by , Posted By Wes
If you've used computers for more than a few years, you know that you don't wonder IF a hard drive will fail - you wonder WHEN. It just happened to me - again. But this time it looks like the results will be pretty painless. The reasons? * RAID Level 1 * Superb Hard Drive manufacturer warranty support
  +Add Blog Entry (0 Entries )
1/24/2008 Systems Engineering >> Non-Removable Storage Technology
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jan 2008
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Windows XP Not Supported After June 30, 2008

Authored by , Posted By Wes
Microsoft plans to discontinue sales of Windows XP on June 30, 2008. Because XP is a tried and true OS, and because of numerous problems with Vista, many users and IT departments would prefer to stick with XP. InfoWorld has an initiative to keep XP alive indefinitely. You can help.
  +Add Blog Entry (0 Entries )
5/4/2008 Industry News & Trends >> IT Water-Cooler for Power-Users
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Dec 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Punishment for Purchasing - What a Concept

Authored by , Posted By Wes
Here's a great marketing idea, cooked up, no doubt, by some MBA: Punish your customers for being your customers. Sound crazy? Several well-known software and service vendors don't seem to think so.
  +Add Blog Entry (0 Entries )
12/27/2007 Industry News & Trends >> Industry News & Trends
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Sep 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Gadgets to Love

Authored by , Posted By Wes
If you're like me, and most techie types I know, you're something of a gadget collector. I'm always on the lookout for new stuff that'll enhance my life in one way or another. Here are a few recent finds.
  +Add Blog Entry (0 Entries )
10/8/2007 Industry News & Trends >> IT Water-Cooler for Power-Users
 
Wes Peterson
Prestwood Software
Send Wes a Private Message Visit Wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Aug 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

You Can Help Defeat Disease

Authored by , Posted By Wes
An exciting, new grid computing project is underway to discover potential cures for several of the world's most devastating diseases: AIDS, West Nile Virus, and Alzheimer's disease. With virtually no trouble at all, you can be a part of it.
  +Add Blog Entry (0 Entries )
10/26/2007 Industry News & Trends >> Role-Based Tech Talk
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jul 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Great Visual Studio Training Resource

Authored by , Posted By wes
If you've been around computing for any length of time, you know you can quickly spend a lot of money on those $60, five-pound reference books. For just ten dollars more, you can get your hands on over 500 great training videos for Visual Studio .NET.
  +Add Blog Entry (0 Entries )
7/2/2007 C# (Visual C# & VS.Net) >> C#
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jun 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

SQL Server 2005 - Great Learning Resource

Authored by , Posted By wes
Whether you're a total newbie to databases, and need of a good foundation, a seasoned pro that wants a little review, or a developer that wants to help educate his clients, a series of well executed training videos is a great way to go.
  +Add Blog Entry (0 Entries )
6/29/2007 DBA, Databases, & Data >> MS SQL 2005
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jun 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

Nice Image Viewer - Free

Authored by , Posted By wes
Although Windows includes Microsoft's Picture Viewer, it has its limitations. Here's a free replacement with some real horsepower.
  +Add Blog Entry (0 Entries )
12/11/2008 Systems Engineering >> Windows
 
Wes Peterson
Prestwood Software
Send wes a Private Message Visit wes's Home Page
PS Staff
Moderator
Rank: Captain

Joined: Jun 2007
Visits: 1299
MB Posts: 112

KB Articles: 117

Location: Citrus Heights, CA USA

A Great Info Resource

Authored by , Posted By wes
There are many, many useful web sites from which we developers can glean the information we need to keep up with new technology and trends.
  +Add Blog Entry (0 Entries )
6/26/2007 Industry News & Trends >> Industry News & Trends
 
 
16 People Online Now!     (9,860 registered members in DB.)  
Online Now... Sign In to see who's online now!   Join Prestwood for a free account, or sign in if you are already a member.
Server Restarted=1 minutes ago Sessions Started=16, Ended=0 (since restart)
Mike Prestwood
If you have any questions, please
email me at .
--Mike Prestwood

www.prestwood.com is part of the Prestwood Family of Websites.
Development by Mike Prestwood (ASP, ASP.Net, and Delphi to MS-SQL 2005).
Knowledgebase powered by ASPSuite KB module (programming by Mike Prestwood).
Copyright 1995-2009 Prestwood Software.
All rights reserved.

[Security & Privacy]
 

Attention Developers!
Join the Prestwood Programmer Community (PPC)

OO, UML, DotNet, ASP.Net, C++, Java, PHP, ASP, JavaScript, Delphi, Access / Paradox
blogs
message boards
knowledge base
articles
jobs database
resume database
get published!
Visit Community | Sign Up Now!
It's free and takes less than 30 seconds.