December 2006 Blog Posts
Going to Vegas (again)
Written on Sunday, December 31, 2006 by Mark S. Rasmussen in Poker
Ahh, Vegas, I just can't get enough of that place! I'm leaving for Vegas again on the 6th of January, planning to be back on the 16th of Janaury. Just a short trip to cope with my dependance on the greatest town in the world! I will be participating in the 2007 Internal CES as well as hopefully being able to get a spot at the Venetian Palazzo Ballrom on the 7th when Bill Gates himself holds a Pre-show Keynote Address. Also I'd be rather surprised of myself if I didn't pay some of the greatest poker...
The internals of spam mails - Part 1
Is your name William? Do you normally write mails with the subject "Re: hi"? Are your mails usually 11,304 characters in length? Guess what, you're a spammer! I present to you, an article containing a textual analysis of about 15,000 spam mails. Before you ask, what can these numbers be used for? Good question, I'm open to suggestions! The following numbers are based on 15,073 spam mails in total. Naturally demographics will play a part, such as my interests, part of the world and so forth. Let me give you the 5 word tour of myself: Denmark, male,...
Executing assembly dynamically in a strongly typed way
During a recent plugin based project that I worked upon, I had to dynamically load assemblies and instantiate objects from those assemblies. Usually that'd require a lot of typecasting and nasty code, but thanks to generics we can make it a lot smoother. I present to you my LoadPlugin function of my PluginHandler module: using System.Reflection;
using System;
namespace MTH.Core
{
internal class PluginHandler
{
public static T LoadPlugin<T>(string file)
{
Assembly ass = Assembly.LoadFile(file);
foreach (Type t in ass.GetTypes())
if (typeof(T).IsAssignableFrom(t))
return (T)ass.CreateInstance(t.FullName);
return default(T);
}
}
}
The generic parameter defines the type that should be created from the specified assembly file, this also means that the function will return a strongly...
Creating a "short link" Internet Explorer addin
You probably already know of the short link services that are around, www.makeashorterlink.com for instance. While the idea behind these sites are indeed good, I personally find it quite cumbersome to actually create the short links when I'm typing a forum post somewhere. In this post I'll give an example of a short link system that enables one to easily create short links while typing in Internet Explorer, using an Internet Explorer addon that conveniently places itself in the context menu whenever we right click on some text and a .NET webservice that handles the short link functionality. ...
SQL Server datetime rounding made easy
Learn how to truncate & round SQL Server date & datetime values.
Making URL rewriting on IIS 7 work like IIS 6
Upgrading to IIS 7 should be rather transparent, unfortunately that is not the case when it comes to URL rewriting as we knew it from IIS 6. In IIS 6 all we had to do was to add a wildcard mapping making sure that all requests went through the ASPNET ISAPI process. After this was done, one could create a global.asax file that would either pass requests directly through or rewrite the URL based on an internal algorithm. UPDATE: Please see my updated post on how to do proper URL rewriting using IIS 7. I didn't really expect...
Missing Windows Mobile Device Center
In an effort to get my HTC TyTN Windows Mobile 5 based PDA to synchronize with my Vista system, I downloaded the newest release of ActiveSync (4.2). This is what happens when you try to install ActiveSync on Vista: After searching for a solution it became apparent that Vista was born with the successor of ActiveSync, namely the Windows Mobile Device Center (WMDC in short, which is not to be mistaken for the Weapons of Mass Destruction Commission, which shares the same acronym). And whadda ya know, there it is, Windows Mobile Device Center....
Running IE6 and IE7 at the same time
Ever since IE7 came out developers have had the problem of whether they should upgrade or not. If they chose to upgrade, they wouldn't be able to test their sites in IE6 any longer as installing IE7 would uninstall IE6. There are 3rd party hacks that allow both versions to be installed at the same time, but they will not simulate a true IE6 / IE7 environment. In recognition of this problem, Microsoft has put out a free Virtual PC 2004 (VPC itself has also been made a free download) image containing a pre-activated Windows XP SP2 installation as...
SetPoint volume control in Vista
It seems Logitech has some pretty functional SetPoint drivers out for Vista already (SetPoint is the all-purpose driver software for all their keyboards and mice). The ony thing that did not work was the volume control. I could turn it up and down and the visual volume meter would respond (the SetPoint generated one, not the Vista one), but nothing would actually happen. Fortunately there's an easy solution. Navigate to "C:\Program Files\Logitech\SetPoint". Now make sure that the "SetPoint.exe" process is NOT running - you may have to click Ctrl+Shift+Escape and end the process in the...
Installing Office 2007 on Vista
Ok, so I'd promised myself that I would at least give it a month before I'd install Vista on my desktop computer as I simply will not be able to cope with having major problems here. For work purposes I simply have to have a functional desktop computer. Oh to heck with that! Having tried Vista on my laptop, I craved for seeing it expose it's full potential on a more capable machine. I fell into the pressure. I did it. I installed Vista on my desktop. I've blogged the whole process, moving from the usual XP environment...
Running Vista, MSDNAA update
I am now officially running Vista! Although I have been somewhat skeptical about Vista so far, I must admit that my first impression of Vista is quite positive. It seems that most Microsoft affiliated Vista users brag about their high System Rating scores, most of them being in the 4+ area. How about aiming at who can get the lowest score? Well say hello to my laptop: I've installed Vista on my Dell Latitude X1 laptop that boasts a puny 1.1Ghz Pentium M CPU and 512MB memory, and the graphics card isn't even worth mentioning. To...
|