Monthly Archive for June, 2008

Vista + Toshiba M700 = More Pain

It’s getting so bad I’m considering a “vista pain” tag to my blog posts.

So starting on Friday afternoon I started noticing an inability to come out of screen saver when trying to log into my machine. As it turns out SearchIndexer.exe was pegging my machine (100% CPU of one core) trying to index something in my Outlook 2007 ost/pst.

To get around this I disabled the Windows Search service, but still couldn’t get Outlook 2007 to start up. Apparently Outlook 2007 starts up SearchIndexer.exe when starting up, which means i couldn’t get to my email.

It all came to a head today when I deleted the Search content index in an attempt to have it re-indexed, which of-course failed. Now it seems my system dies anytime I do any heavy disk access, like the kind you do when backing up files before a rebuild. Only option now is to plug the HDD in another machine, backĀ  up the files and rebuild from scratch.

Sigh.

How to make Vista Media Center respect image orientation

Dear lazy web,

Anyone out there no a way to make Vista Media Center respect image orientation on photos on a shared driver? I know it respect’s orientation on images that are “imported” into VMC, but I it refuses to just do it for images on a shared network drive. I’m not aboutĀ  to go and import several gigs worth of images just so I can get vista to respect the orientation flag. I’m actually more likely to install media portal again just for this, since I know the Xbox Media Center software did it with no problems.

Really bloody annoying

SVN 1.5.0 released

Slightly belated, but this note indicates SVN 1.5.0 is out. I’ve been waiting for this release so that I can get a hold of the svn merge tracking functionality, which apparently is only foundational in 1.5.0. Apparently they’ll fill out the merge tracking functionality in 1.5.1 and subsequent releases.

The Karate Adult

Annie at work pointed me to this cool site called http://www.faceinhole.com/. She mashed up this awesome image with a picture of me back in movember of last year with The Karate Kid.

Mashup of my movember pic with Karate Kid promo

Getting a Clustered MSMQ Queue Length with .Net and COM

So in reference to my previous post, I finally found a way to extract the queue length of an MSMQ Queue behind a clustered server, and it involves, of all things, COM. There doesn’t seem to be any other non-hackish way to get a queue length fast from a clustered server, the links discussed in my previous post work fine for non clustered environments, but this is the solution for a clustered environment.

  • First:
    Add a COM Reference to the Microsoft Message Object 3.0 Type Library (if on Windows XP or Server 2003).If you’re stuck on vista then manually browse to C:\windows\system32\mqoa.dll and add that as a reference.
  • Second:
    Use the following code and pay special attention to the format of the FormatName parameter and the server parameter. It took me a long time of fiddling with string formats to get the correct one and no one else on the lazy web seems to have mentioned the specific format needed.
    int queueCount;
    MSMQ.MSMQManagement mgmt = new MSMQ.MSMQManagement();
    object oMissing = Type.Missing;
    object server = (object) "MSMQServer";
    object formatName = (object) "Direct=OS:MSMQServer\private$\queueName";
    mgmt.Init(ref server, ref oMissing, ref formatName);
    Console.WriteLine("response " + mgmt.MessageCount.ToString() + Environment.NewLine);
    int.TryParse(mgmt.MessageCount.ToString(), out queueCount);

Apologies for the bad vertical spacing, wordpress keeps on insisting on closing my <code> section early if I insert empty newlines in it.

Why do I always have to find the boundary cases, or ‘Reading an MSMQ length form .net’

Watch out, a coding related post.

So I coded up a little MSMQ dumping utility the other day, in part to learn about MSMQ and in part to pick up some domain knowledge around one of the more fragile systems at work. And before you start laughing, yes I know it’s been over 3 years since I wrote a real app, but anyhow I gave it a crack.

Coded the utility up in about four hours, including time to acquire domain knowledge and MSMQ knowledge and ended up with this app:

Wait Queue Dumper

Now this thing works perfectly on the staging machine, but refuses to return the Queue Count on the live server. Enter the MSMQ from the plumber’s mate blog. Full of lots of little handy hints on how to make MSMQ performance counters actually work.

Why can MSMQ installs get so broken, so often, that an MSMQ blogger can have so much material to talk about when fixing it? I don’t know if I should be happy I found a plentiful source for potential solutions, or worried about the many ways a seemingly simple operation can go wrong?

O for Awesome

Emerson (album and tour to come soon) at work got me onto this habit of saying “O for Awesome” some time ago and I know everyone around me is wondering where it’s come from.

Well wonder no more.

Vista + Hibernate = Pain

Why oh why must so many aspects of Vista be so painful?

I have a 3 year old dell that i can close the lid on while on batteries and know that it would safely sleep first, and then wake up in an hour and hiberante fully to make sure there is power again in the morning when I open the lid. Yep it’s running XP.

Compare with my new Toshiba m700 running Vista and try the same thing, and just pray that your machine actually stays asleep. What normally ends up happening is that you reach into your bag when you get home some two hours later and the damn thing is awake and burning up cooking everything else in there and has about 2% power left.

Funny HBA ad – “Ripped my guts out”

My wife brought this ad to my attention recently. It’s the funniest ad I’ve seen in a while and is apparently actually an old ad. The last kid is the funniest.

Pidgin video and voice on it’s way again?

I’ve been waiting for news of this for a long time. I just hope that this time it actually makes it into a mainline release of pidgin. The -vv branch of gaim, back in the day, was promised to be integrated into the mainline way back when and never happened. I’ll keep an eye out for this one.