.NET

warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/syscp/webs/apophis/apophis-neXt/gallery2/modules/core/classes/GalleryPlatform.class on line 1219.

if-else vs. switch vs. Dictionary of delegates (C#)

Fast Switching

While developing a Patch for the DCC support of SmartIrc4Net I rewrote the CTCP handling. Instead of a switch Statement I developed a Dictionary<string, ctcpDelegate> for the handling of the CTCP String. (i.e. I call the ctcp Handler after a Dictionary lookup of the CTCP String).

There are several Advantages to this:

ut3 Global Player Stats API

My ut3 Global Player Stats Projects relies on the Stats aquired by GameSpy. It looks like the have changed their Authentication scheme recently and this resulted in a nonworking Stats Application.

I Updated the Code and fixed some minor Bugs to make it work again!

Please Notice: You need to use the UT3 Account now, not an Account from login.gamespy.com. I know it was confusing before and now it should be more logical!

Hope you enjoy the possibillities!

ut3 Global Player Stats API

I started a bit with wireshark, I did some research and thanks to Cruz I got the necessary information I needed to program an example client which queries directly Gamespy to get the information of the players.

The project is written in C# and works under .NET and Mono, the fast prototyping, and automation of the Writing of the proxy classes for the webservices made it very nice to develop.

Syndicate content