June 2006 Entries
Fancy watching the worldcup on your pc? Well you can if you use telnet to conect to
a server. Open up command prompt then type 'telnet diego.ascii-wm.net 2006' and stream
the match. Oh btw it's all in ascii.
The crazy thing is I get the ascii stream a few seconds before the tv broadcast on
ITV.
This is a simple thing, but it caught me out briefly. I have some SQL that returns
3 results
SELECT * FROM table
WHERE field1
= @param1
SELECT * FROM table
WHERE field2
= @param2
SELECT * FROM table
WHERE field3
= @param3
Then in my Data Access Layer I do the usual
while (dr.Read())
{
CustomObject obj = this.PopulateCustomObject(dr);
}
but this was only returning the first SELECT statements result. To get around
this and return all the data I'd ever want you have to wrap this in a do...while loop>
do
{
while (dr.Read())
{
CustomObject obj = this.PopulateCustomObject(dr);
if (obj
!= null)
{
objects.Add(obj);
}
}
}
while (dr.NextResult());
>
I've been getting the following error when trying to serialize an object in .NET
File or assembly name zc1diojb.dll, or one of its dependencies, was not found.
There is bugger all help given in the exception stack to help debug this problem,
but I stumbled upon XmlSerializerPreCompiler by
Chris Sell's designed to help with these kinds of exceptions. It allowed me to track
down the problem in a matter of seconds, it turns out I had a few properties marked
with the ObsoleteAttribute.
Adding an XmlIgnoreAttribute to
each of these properties resolved the issue.
>
Check out the seewindowsvista website
for alook at the kind of applications you can expect in the future due to the new
technologies in Windows Vista. Though due to WinFX (avalon and indigo) being ported
to XP I expect some applications being able to run on XP also.