I’m back in DotNetNuke mode and while doing some refresher reading and whatnot I came across this tutorial. It’s quite good. Much better written and presented than many tutorials I’ve seen on the topic. During the setup portion of the tutorial, it says: To make the designer work correctly with DotNetNuke controls we will have… Continue reading An Excellent DotNetNuke Tutorial
Category: C#
Logging Out of Facebook with C# SDK
Logging out of Facebook programmatically turns out to be much more problematic that you would think. I posted the question at StackOverflow asking if anyone knew of a way to get it done. The only answer, other than mine, turned up the same results I’d been having, i.e. You just can’t logout easily. So, I… Continue reading Logging Out of Facebook with C# SDK
Open Source Wars: GeckoFX and MozNet
Well, it appears I’ve been caught in the cross-fire in some open source wars. A number of years ago, SkyBound released GeckoFX as an wrapper for XULrunner, or the Firefox browser engine. Eventually Andrew moved on and left it to the community. One fellow, Scott, picked up the reigns and continued development and eventually forked… Continue reading Open Source Wars: GeckoFX and MozNet
Getting the Album ID with the Facebook C# SDK
I really shouldn’t drink & post like last night… Anyways, cynicism and rantiness wane as sobriety returns, and here’s some code that illustrates uploading a photo to a specific album: It’s not hard at all. But the lack of decent documentation makes it painful at best. I’ve been harping on this for a long time:… Continue reading Getting the Album ID with the Facebook C# SDK
WTF is an ID for?
I’m a complete and total bigot. Unmitigated, complete, total bigot. The web sucks. And web APIs suck too. Especially when the documentation is non-existant or confusing or wrong. That sets me off. You see, I hate shit. It smells. I don’t smear shit all over the walls in my house, and it kind of pisses… Continue reading WTF is an ID for?
A Kick-Ass Article on Asynchronous Operations
As I am virtually incapable of doing anything the same way twice, I had to go out and find another way to deal with blocking operations (blocking as in network blocking), and came across Asynchronous Method Invocation at the Code Project. Perfect. The author, Mike Peretz, does an excellent job of explaining Begin/EndInvoke, delegates, catching… Continue reading A Kick-Ass Article on Asynchronous Operations
Passing Information Between Winforms the Sneaky Way
There are many ways to pass data between form in .NET. This article, Passing Data Between Forms, at the Code Project is an excellent one that shows 4 ways to do it. My favorite way to do it is with delegates and events. However, very often you simply need a quick and dirty solution where… Continue reading Passing Information Between Winforms the Sneaky Way
Iterating Over a DirectoryInfo is Fast!
DirectoryInfo is really very fast to iterate through. While working on some software, I’ve been experimenting with different approaches to find the most efficient and fastest ways to get things done. Here are two different methods that achieve the same result, but in different ways and with radically different speeds: The next method takes a… Continue reading Iterating Over a DirectoryInfo is Fast!
if (false) { behave nice; } else { freak out; }
Using “false” in a conditional causes all variables in the else clause to return nothing while debugging. Huh? Yep. Here’s a screenshot of inside an else clause: The “comparisons” variable is declared outside the conditional and shows up as does “comparisonIndex” which is also defined outside the conditional. However, the “singleComparison” shows “The name “singleComparison”… Continue reading if (false) { behave nice; } else { freak out; }
Boxing and Unboxing in C#
While working on some threading stuff, I came across an excellent article on boxing and unboxing in C#. The author goes into great detail showing performance along with IL. Boxing and Unboxing in C# It was somewhat comforting to see that I’m already coding in a way that doesn’t need boxing or unboxing. Some things… Continue reading Boxing and Unboxing in C#