I was reading about Nullable Types in the C# 2.0 specification for the .NET Framework 2.0 today. I am surprised I didn’t find out about this feature long ago, goes to show that you learn something new every day. So what are Nullable Types? Simply put, Nullable Types are value types that a can be [...]
Archive for August, 2005
Nullable Types in C# 2.0
Posted in Everything, Software Development, tagged C#, Code on August 30, 2005 | 2 Comments »
Giganews Rocks
Posted in Applications, Everything, tagged Internet Surfin' on August 27, 2005 | Leave a Comment »
It is often the case that I am frustrated, and have numerous complaints with service oriented organizations. Seldom do I get the chance to praise good service. Today is an exception… I have been a customer of Giganews for a couple of years now. Giganews provides me with newsgroup data feeds, from where I download [...]
System repair in less than an hour
Posted in Everything, Gadgets and Tech, tagged Servers on August 25, 2005 | Leave a Comment »
I truly love Norton’s Ghost 2003! My laptop was behaving strangely this evening – applications were spontaneously hanging, system was freezing when logging out, etc. A closer look at my Windows XP event log told me that STISVC.EXE (still imaging service) was failing to start, and a whole load of errors were reported about the [...]
Event catch-up in ASP.NET 2.0 Controls
Posted in Everything, Software Development, tagged ASP.NET, Code, Web Development on August 19, 2005 | Leave a Comment »
Pop quiz, what is wrong with the following class? public class MyPlaceHolder : PlaceHolder { protected override void OnInit(EventArgs e) { Page.Trace.Write(this.ID, “In OnInit”); base.OnInit(e); } protected override void OnLoad(EventArgs e) { Page.Trace.Write(this.ID, “In OnLoad”); base.OnLoad(e); } protected override void OnUnload(EventArgs e) { Page.Trace.Write(this.ID, “In OnUnload”); base.OnUnload(e); } protected override void OnPreRender(EventArgs e) { DropDownList [...]
Firing multicast delegate events
Posted in Everything, Software Development, tagged C#, Code on August 17, 2005 | Leave a Comment »
I am currently writing an ASP.NET server control, which exposes a number of custom events. I was looking through my code archives for a helper class, which will safely call handler methods of a multicast delegate, when an event is triggered. I found the class I was looking for, and decided to publish it here [...]
Server running again (for now)
Posted in Everything, Gadgets and Tech, tagged Servers on August 12, 2005 | Leave a Comment »
I spent another late night in the server room last night, working on my crippled server (see yesterday’s post), but I think I have resolved the issue. The problem has to be hardware related because a reinstall of a previous working Ghost image was experiencing the same “hanging” symptoms as before, but yet my server [...]
Server Problems
Posted in Applications, Everything, tagged Servers on August 11, 2005 | Leave a Comment »
This is technically a rant, but it is also software related, so I have posted my woes here…. I ran into problems with one of my Windows 2003 servers yesterday. It all started when I had connected remotely (via RDP) from the office and installed the latest Microsoft updates. The upgrade went smoothly, but after [...]
HTML to XHTML using SGMLReader
Posted in Everything, Software Development, tagged Code, Web Development on August 9, 2005 | 6 Comments »
Chris Lovett wrote a wonderful .NET library called SGMLReader, which, when passed a regular HTML file will spit out XHTML. The library relies on SGML parsing and uses a DTD (Document Type Definition) file to parse unformatted HTML. I’ve been playing with Chris’s library this week and trying to convert HTML to XHTML on the [...]
IPostBackDataHandler and IPostBackEventHandler
Posted in Everything, Software Development, tagged ASP.NET, Code on August 2, 2005 | 8 Comments »
I’ve been messing around with post back handler in ASP.NET today, and I found out a few points of interest. Firstly, a description of the two interfaces used with server controls to handle post backs: IPostBackEventHandler – Implemented by server controls that wish to handle post back events. The RaisePostBackEvent method is invoked by the [...]
FOR XML and ADO.NET
Posted in Everything, Software Development, tagged Code, SQL on August 1, 2005 | 1 Comment »
My esteemed colleague Sahil Malik has blogged about using FOR XML in SQL server. The following C# example demonstrates how to retrieve XML data from a SQL Server 2K5 database as XML: using (SqlConnection conn = new SqlConnection(“…”)) { using (SqlCommand cmd = new SqlCommand( “select’Rob’ as [Employee/@EmployeeName],’A cool dude’ as [Employee] FOR XML PATH(‘Staff’)”, [...]
