Random Number Generation using XSLT

Just whipped this up real quick since I needed for something and thought I’d share. If you’re using a Microsoft based XSLT processor and have a need to generate random numbers for some purpose, here’s a quick xsl snippet to help you out. <?xml version=”1.0″?> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:msxml=”urn:schemas-microsoft-com:xslt” xmlns:random=”http://www.microsoft.com/msxsl” exclude-result-prefixes=”msxml random”> <xsl:output method=”text”/> <msxml:script…

3

Visual Studio Tip : AutoFormat Your Code

Has this ever happened to you? You find some code on the Net so you copy and paste it into a source file within Visual Studio and notice that all the formatting is somehow messed up. For example. some lines might be indented while others are not. To have Visual Studio fix it all up…

17

C# WebCam User Control Source

Some people have asked if they could take a look at the source for the WebCam Vista Sidebar gadget. After a little bit of cleaning up, I’m posting it now for you to take a look at. Here are some things worth mentioning: 1. Uses the DirectShow.NET library 2. I found some source in VB.NET…

48

New & Improved NHL Schedule Importer for Outlook

*EDIT* Looks like the nhl.com scheduling page has changed thus breaking my importer. I’m working on a new version but no idea when it will be done. I’ve taken the link down. Ok, I redid the whole application (since I lost the source code) and added some new features as well. The previous application utilized XML…

8

.NET Sidebar Gadget Creator 2.0 Release

Ok, I finally worked out most of the bugs (I hope). I’ll post the link and follow up with some tutorials and Sidebar Gadget development using .NET. Here’s the file…using the new SkyDrive Beta to host the file!!!

18

.NET Sidebar Gadget Creator Update #2

I had quite the breakthrough today. First off, I totally rewrote major portions of the .NET Sidebar Gadget Creator. It is now a wizard (photos below) that leads you through the steps to create a Vista Sidebar that uses .NET. Here are some of the changes (then I’ll explain my breakthrough): You can now create…

10

Hosting .NET Runtime in C++ Tip o’ the day or "Where is IAppDomainSetup?"

Are you hosting the .NET runtime and trying to create another AppDomain? Notice that you need to call CreateDomainSetup and cast the IUnknown to IAppDomainSetup to set properties? Notice also that IAppDomainSetup isn’t defined in mscoree.h? Add the following (stdafx.h or anywhere else): #import <mscorlib.tlb> raw_interfaces_only no_smart_pointers high_property_prefixes(“_get”,”_put”,”_putref”) then you can say: CComPtr<mscorlib::IAppDomainSetup> pAppDomainSetup; Ta da!

1

Creating .NET Sidebar Gadgets…The Easy Way

So you want to create a Vista Sidebar gadget and you want to use .NET to do so. While it is certainly possible, it does have a few hurtles to jump. 2 of the major hurdles include assembly registration and gadget uninstallation. Let me explain: First off, let me explain the typical setup of a…

14

Fourth of July Vista Sidebar

I found a screensaver that plays nicely with my Vista ScreenSaver Sidebar gadget. Just in time for the 4th of July!  First, go get the ScreenSaver gadget and install it to your sidebar: http://gallery.live.com/liveItemDetail.aspx?li=e321409b-231a-4da0-905c-0580c732223e&bt=1&pl=1 Next, go grab the SkyRocket ScreenSaver and install it to your C:\Windows\System32 directory: http://www.fileplanet.com/164987/160000/fileinfo/Skyrocket-Screensaver-%5BFREEWARE%5D  Open the configuration options for the Sidebar…

1

.NET based Sidebar gadget problem solved!

Ok, I just ran a test with some new code that creates an .NETbased sidebar gadget and I was able to get the dll unloaded from the sidebar process so it can uninstall successfully! This is good news for all the people that can’t seem to get around this issue (and there’s a few of you). I’ll get…

1