2005-11-07

Via Zhong Zheng, here’s something really useful: a developer toolbar for Internet Explorer. I’ve seen some half-baked approaches to this before, but nothing came close to the tools Firefox has to offer. Some things, like the CSS view into the DOM, are still missing, but you should definitely get this if you ever have to check web layouts in IE. …


2005-11-05

I haven’t been posting anything in a while, sorry about that. The past two weeks I’ve been quite busy since I have started working for Developer Express as their new Director of Developer Relations. I’m having a lot of fun, but obviously there’s also a lot of new stuff to look at, so I haven’t had much time to think about blogging.


2005-10-28

Remember Rubik’s cube? How about if it was… you know… LARGER? Watch this (hit Start): http://www.speedcubing.com/chris/20cube.html


In a newsgroup I replied to a question about calculating average data throughput during data reception over the network. A simple average bytes per second calculation needs only a few lines of code:

int bytesTotal = 0;
int bytesPerSecond = 0;
DateTime startTime = DateTime.Now;

do {
  bytesRead = receiveStream.Read( ... );
  bytesTotal += bytesRead;
  bytesPerSecond = bytesTotal / (DateTime.Now - startTime).TotalSeconds;

  ...
} while(bytesRead > 0);

The problem with this is th …


2005-10-23

A good hint by Scott Hanselman: FeedBlitz can publish my blog by email automatically. If you want to use it, just enter your email address in the small form on the left and hit the button, or click here.


Developer Developer Developer day 2 was yesterday and it was fantastic. I met a bunch of people there and at the geek dinner afterwards. If you were there and we didn’t meet, bad luck… I’m sure we’ll manage next time - or you could just drop me a line. Anyway, don’t forget to leave your feedback about the event!


This is the eighth article in my mini series about object pooling. Be sure to read part 1, part 2, part 3, part 4, part 5, part 6 and part 7 first. So, although the number of downloads of the sample program hasn’t been exactly great, I’m finally continuing the series. As I said in a previous article, I’d like to factor out the resizing behaviour — but before I do that, I want to integrate functionality that’ll let me evaluate the pool’s performance with regard to resizing, so I can assess the …


And another piece of good news that had so far escaped me: in .NET 2, it’s finally possible to explicitely configure the order in which class members are serialized to XML. See the XmlElementAttribute.Order property.