Friday, December 14, 2007

Dependency Injection

Dependency Injection is a method of wiring up classes externally to the definition of the class.

click here for article

Tuesday, November 27, 2007

Tuesday, November 6, 2007

Automatically backup your computer for free

Automatically backup up to 2 gigs worth of data for free. Or as much data as you want, for only $4.95 a month. Goto mozy.com.

Update: Some people are concerned about their data going to mozy.com, no matter how much the vendor says they're careful with our data. If this is a concern, I think the best thing to do is to encrypt the data that gets sent there. A free tool from truecrypt.org should do the job.

How to convert .NET DateTime to Variant Time in VBA

Article published May 18, 2007: article link.

Thursday, November 1, 2007

Object Oriented C

Article published January, 2004: link.

(older link in case the above doesn't work: link.)

Monday, October 31, 2005

Copy Constructors and Assignment Operators


Article published August, 2005: link


(Original article: link)

Wednesday, May 19, 2004

Zapped -- Lasik surgeory

Article published may 19th, 2004: article link.

Saturday, October 7, 2000

Variant Streaming Code


Article published October, 2000: link.

Saturday, April 29, 2000

Thursday, April 1, 1999

True Inheritance with JavaScript


Latest version:
 link

History:
  • As originally published in April, 1999: link.
  • As referenced by the Computer Science Department at the Rochester Institute of Technology, see section titled "Some resources for doing OO programming in JavaScript" under "10.3.1. Core language", at http://www.cs.rit.edu/~mjh/base/resources/languages.xml

Saturday, August 15, 1998

Calculating fibonacci series at compile-time


#include <stdio.h>

// The following code prints out the first five elements of the
// fibonacci series without calculating the values at runtime.

template <int param>
struct CFibonacci
{
    static const value;
};

template <int param>
const CFibonacci<param>::value = 
CFibonacci<param - 2>::value + CFibonacci<param - 1>::value;

const CFibonacci<0>::value = 0;
const CFibonacci<1>::value = 1;


void main( void )
{
    printf( "%d\n", CFibonacci<1>::value );
    printf( "%d\n", CFibonacci<2>::value );
    printf( "%d\n", CFibonacci<3>::value );
    printf( "%d\n", CFibonacci<4>::value );
    printf( "%d\n", CFibonacci<5>::value );
}

Wednesday, March 1, 1995

Saturday, November 30, 1985

My early antics pre-internet.


It was 1985, and I was reading my favorite computer magazine, Antic and was floored to see my name mentioned in print.  I had forgotten, but apparently I wrote a "letter" to the magazine describing some programming trick.   I remember seeing the text, "Kudos to Kenny Ksajikian".

My English wasn't so good, so I had to look up "Kudos", which made the phrase stuck in my mind.   Decades later I google that term, and ouala --> Kudos' to Kenny Ksajikian.