Skip to main content

Posts

Showing posts from June, 2005

Recovering from Windows XP virus annihilation

Recently, several members of the family have had their computers "owned" by viruses or spyware. At my house, I'm more focused on prevention but if all else fails, here's a great write up of using Windows XP Recovery features to repair your down and out home computer. Also, a correspondence with one of my pals (a conversation I've had many times with lots of folks): --------------------------------------------------------------------- Nope. I think you're on the right path. Good write-up : Afterwards, I would recommend the following: 1. Set only 1 person within the household as an Administrator...I've found the Mom is usually best. Disable the ability to install software for all other users (i.e. they only belong to Users group) 2. Install virus scanning software; set to update nightly, scan nightly 3. Update Windows with all patches from www.windowsupdate.com. Set Windows to update automatically. Make sure you install SP2 4. Enable the Windows firew

Avoiding Phishing Attacks

Good write-up on avoiding the latest Internet exploit- phishing . Basically, don't trust links embedded into emails-always browse to sites involving personal or credit card data by typing the address directly into a browser.

Custom Exception Handling in C#

Rule of thumb is to avoid throwing System.Exception or System.ApplicationException. I created a custom exception (below) which inherits from Exception. Implement standard exception constructors Types should not extend certain base types [Serializable] public class MyCustomException : System.Exception { public MyCustomException(){} public MyCustomException (string message) : base (message) {} public MyCustomException (string message, Exception innerException) : base(message, innerException){} protected ProcessorException(SerializationInfo info, StreamingContext context) : base (info, context) {} }

Sockets Programming in C#

Helpful links / articles: Asynchronous Socket Utility Classes – Part II Asynchronous Socket Utility Classes – Part I Simpifying socket exception handling Gotchas I wish I'd known about sooner... I'll post my mediocre code ;-( once it's more refined!