December 2005 - Posts

30 December 2005
Context Bound Objects and Context Attributes
In a continuation from my previous post , I wanted to provide a quick example of how a combination of ContextBoundObjects and ContextAttributes can allow complete access to message interception and processing in the .Net framework (in this case, intercepting exceptions and logging them) with minimal code injection/dependencies in your existing code base simply by placing an attribute on a class, and inheriting from ContextBoundObject . For a quick high level primer on this subject and how it relates to orthoganality (and AOP), have a look at this post first; he does a great job of explaining this. A little background as to why the ContextBoundObject exists is probably in order as well. All applications run within an application domain, and this domain can contain numerous contexts…an application which is executing within a given app domain isn’t necessarily tied to one specific context though, it is free to switch contexts freely (meaning it is context agile); thus getting... Read More...
Filed under: ,
30 December 2005
Attribute Parameters Must Be Constants
Haacked (correctly) mentions in the comments of a previous post that using an attribute based system for the logging service I’m currently working on could be troublesome due to the fact that attribute parameters in .Net must be constants; i.e. you can’t use values provided in a configuration file as the compiler will complain loudly if you attempt to use a non-constant value. The reason for this is simple enough: Attributes are simply objects that get embedded into the assembly they are placed in; they provide metadata to the actual attribute object itself via either positional parameters (specified in the constructor) or named parameters (specified as read/write fields or properties). Therefore, parameters must be constant by design. A little background first. Here’s the IL of some harness code I wrote testing out a custom attribute: .method private hidebysig instance void button1_Click(object sender, class [mscorlib]System.EventArgs e) cil managed { .custom instance... Read More...
Filed under: ,
29 December 2005
Getting Geared Up for Winter TV
I don’t watch a ton of TV, but this Winter is already looking pretty good TV-wise (and as it’s looking to be an especially bad Winter over here on the East coast, that’s a good thing). In case anyone is interested, here’s what I’ll be tuning in to: Scrubs . Finally after a long hiatus, my favorite show is returning to the air waves starting January 3rd. Dirty Jobs . New episodes start on January 10th. Mike Rowe is my hero, and is an extremely funny guy. From his bio: “In cleaner days, Mike Rowe sang professionally with the Baltimore Opera.” Huh? The Sopranos . I don’t remember the exact date the new season starts, but it’s soon. Too bad Drea de Matteo got offed last season. Grey’s Anatomy . New episodes begin January 8th. This was last year’s break out series IMO, and is very well written. Desperate Housewives . Yes, I’m not afraid to mention that I do watch this show…it’s mindlessly funny. And finally... Read More...
29 December 2005
Best of JaysonKnight.com -- Happy New Year!
One thing that really bugs me about blogs is that it’s still really damn hard to find specific information on a blog once you find it. Sure, we have things like post categories, and more recently blogs have appeared that support searching said blog for information…but the only true way to glean information from a blog is to read it from beginning to end, and who has time to do that? I’ve been blogging for 2 years now, and I’m almost at 500 posts…I certainly don’t expect new readers to start from day one and read this in its entirety (unless you’re really really bored). So this year I decided to put together a “best of” JaysonKnight.com (well, the posts I like best at least) for your reading and/or insomnia fixing pleasure. Here’s a list of my favorite (and most heavily Googled) posts I’ve made over the years: Common .Net Interview Questions . Yes, very basic stuff, but you’d be surprised how many of these questions... Read More...
Filed under: ,
28 December 2005
Akismet -- Online Comment/Trackback Spam Blacklist
I was having a discussion recently with some colleagues over on CS.org about setting up some sort of centralized comment/trackback spam blacklist as it’s really becoming quite a pain the ass lately for lots of folks (plus it’s a big push for the next version of CS to clamp down a bit more on spam). Knowing that all the great ideas I come up with have more than likely already been done, I set out to see if indeed someone had given it a shot; lo and behold someone has . It looks like it was originally built for WordPress, but they have an open API so anyone with an API key can tap into it. Something like this is long overdue in the blogging realm, and the CS developers have jumped all over it…so hopefully blog spam will be ancient history for us CS folks in the 2.0 release (or for anyone who chooses to use the akismet API). Read More...
28 December 2005
Performancing for Firefox Extension
The good folks over at Performancing have released what looks to be a very promising Firefox extension: Performancing for Firefox . I haven’t been able to get much functionality out of it yet using the MetaWeblog API (which is what Community Server uses) account settings, but apparently it’s working for other account types. Regardless, it looks very promising, so here’s hoping they get the MetaWeblog stuff cleaned up. I dare say it could even replace my beloved BlogJet if all the kinks get ironed out. Read More...
Filed under:
28 December 2005
You Can't Please Everyone All Of The Time
I mentioned earlier that I’ve only had one grievance as of late…normally I wouldn’t post about anyone disagreeing with me about something, but it was his whole (mis)demeanor about the topic that really struck a chord. While I agree with him on a superfluous level in that Microsoft’s support could use a bit of work (as could most tech oriented support), I totally disagree with the way he lambasted my attempts to explain the situation to him, in which I had the best intentions. It definitely reeks of (somewhat) typical developer ego wherein the developer thinks his time (and money) are more important than anyone else's, including the company who supplies him with tools which allow him to make a living. Negativity always surpasses the positive, and perceived perception usually succumbs to the throngs of the “me too’s”…in this case, the group I used to work with at MS gets made out to be the bad guys, even though we were just doing our job given... Read More...
Filed under:
25 December 2005
A Festivus for the Rest of Us
In an effort to be PC (that’s politically correct) this year, I want to wish everyone a happy festivus . I already have my festivus pole up, and in the words of Frank Costanza, “I’ve got a lot of problems with you people, and now you’re going to hear about them!” May the airing of the grievances commence. Actually, I only have a problem with one person right now (who really chapped my ass online recently), but to keep in the spirit of the holidays, I’ll post about that later on. I’m hoping this person is just stressed out from all of the holiday mayhem that generally ensues around this time of year. In all seriousness, happy [insert whatever you celebrate here]…enjoy your time with family and friends, eat like there’s no tomorrow, and most of all just have fun! Read More...
Filed under:
23 December 2005
About Jayson
After two years of blogging, I finally got around to adding an “about me” page…I’m pretty terrible at introducing myself, but you can view it here . Read More...
Filed under:
22 December 2005
Performancing Sits Down with Rob Howard
Performancing (which is one of my new favorite sites) sat down with Rob Howard (CEO of Telligent Systems, the creator of Community Server in case you live in a black hole); the discussion ranges from Rob’s history at MS (and why he quit to form Telligent), to Telligent’s business model and how they make money given that CS is Open Source, to MS on OSS, meeting Bill Gates, and of course his take on blogging and what it’s done to change the way businesses operate. It goes without saying that Rob is one of the brightest guys in the biz right now, so it’s definitely worth a read. In other news, I had the first (hopefully of many) screens with MS today for the IIS support engineer position. It was pretty tough, but overall pretty fun. Needless to say, there’s quite a bit about IIS that’s unknown to me (mainly the very low level workings of it), but I feel much more confident than after my SQL Server interview several months ago. Unfortunately with it being... Read More...
More Posts Next page »