.NET Programmer Thoughts

Monday, March 12, 2007

I'm getting a new laptop!

It's an ASUS G1! Check out the website. I got it at www.ZipZoomFly.com. The shipping was free for 5-7 days and $5.99 for 2 day shipping!

I have not seen any bad reviews. I went to Best Buy here in Houston to check it out but it wasn't working. They were supposed to have their Geek Squad look at it but when I came back 3 hours later it still wasn't fixed. So I didn't get to see it in action.

What is so special about this laptop? It has an NVIDIA 512 video card in it! Not to mention 2GB of RAM and Intel Core 2 Duo (T7200). For UNDER $1900! It also has a 2 year global warranty!

Specs:

Intel Core 2 Duo Processors T7200 2 GHz, 4MB L2 Cache, 667 MHz
Windows Vista Home Premium
Mobile Intel 945PM Express Chipset + ICH7M
2048 MG DDR2 667 Mhz RAM
15.4" WSXGA+ (1680x1050) ColorShine TFT-LCD
ASUS Splendid Video Intelligent Technology
NVIDIA GeForce Go 7700 512 MB VRAM
160 GB 5400 RPM Hard Drive
8x Super Multi DVD-RW Dual Layer LightScribe
Card Reader (MMC, SD, MS, MS-Pro)
1.3 Megapixels Video Camera
Fax/Modem
10/100/1000 Base T Lan
Integrated 802.11 a/b/g
Bluetooth V2.0+EDR
Optical Gaming Mouse
Gaming Backpack

Tuesday, March 06, 2007

Using A Timer In A Service with C#

You can't use System.Timer. It just won't work. It might look like it works at first but it just quits working.

You have to use System.Threading.Timer!


private System.Threading.Timer oTimer;

public Service1()
{
();
}
private void oTimer_TimerCallback(object state)
{





}

protected override void OnStart(string[] args)
{





}
protected override void OnStop()
{

}


I basically want it to fire every minute. But I stop it while I'm processing. So the second parameter on oTimer.Change() doesn't really matter.