Archive

Archive for August, 2009

An error occurred while signing: SignTool.exe not found.

August 25th, 2009 1 comment

This error popped up tonight when I tried to publish an app via ClickOnce deployment. This was the first time I had tried to publish since building up my latest machine. I had assumed the signing tool would have installed when I installed VS2008 but I was wrong. After seaching around for a solution, I realized that I needed to download the new SDK for Win7.

You can download ISOs or do a Web Setup (which is what I’m doing). The ISOs are
here and the WebSetup is here. I may have jumped too quickly on doing the Web Setup as I have two development machines, my quad core desktop and the netbook. Yes, I do development on a Asus EEE PC 1000HE netbook. I can even run multiple VMs via Virtual PC 2007 on the netbook. It’s a little slow but it works just fine. We’ll see how the installs go.

There’s also a new Win7 training kit available as well. It’s at here.

Enjoy

It just seems wrong…

August 21st, 2009 No comments

Danzig on Pandora


Maybe it’s just me, but there’s something really wrong about this image. Why is Glenn Danzig surrounded by lilies?

To fail, is to suceed.

August 21st, 2009 1 comment

From coding horror: The Only Truly Failed Project

Been there. Done that.

I guess my approach is to not even see failures as such. Failure is an opportunity learn a way to not solve a given problem. 10 failures? Nope. It’s learning 10 ways to do something that doesn’t fix your problem.

Software development is a process that requires continual forward movement. I try to learn something new with each and every line of code that I write, even the bad lines and expressions of much larger bad ideas. I don’t WANT to write bad code, but it happens. And sometimes it takes months before I realize the mistake. It’s all a learning process. And when I do “get it right” the first time, I’m unhappy, paranoid, and unsettled. You never want a successful first test, per TDD. The first pass through should result in a failure condition then when you have a successful test you have confidence that the issue has truly been resolved.

What was that cheese-ball line from Galaxy Quest? “Never give up. Never surrender.”

Outlook 2007 Add-in error on start-up.

August 20th, 2009 No comments

When I migrated files from my old system (XP) to the new one (Win7), I copied everything in my Outlook folder “c:\Documents and Settings\Wraith\Local Settings\Application Data\ Microsoft\Outlook” (if I remember correctly) and dropped them straight into the new folder “C:\Users\Wraith\AppData\Local\Microsoft\Outlook\”. This preserved all of my emails and my address book. It also preserved my association with Symnatec Corporate Anti-Virus. I kept getting errors everytime I loaded Outlook that the AV add-in couldn’t be found.

After looking for a solution online, I learned that deleting the extend.dat file would resolve the problem. Being the most trusting person on the planet, I renamed the file and restarted Outlook. No error. Cool. So there it is…

Delete or rename the extend.dat file if you are having problems with add-ins. Of course, this nukes all of your add-ins, but Outlook (re)associated the new anti-virus package when it started up.

Fixed.

Here’s the exact syntax…

c:\> rename “C:\Users\Wraith\AppData\Local\Microsoft\Outlook\extend.dat” “C:\Users\Wraith\AppData\Local\Microsoft\Outlook\extend.dat.old”

Hope that helps.

Win7 Media Player Error

August 18th, 2009 No comments

I found a simple fix for my problems with Media Player in Win7. Download the CODECs. Duh. Here’s where I downloaded a working CODEC. The files originally came from Shark007. Emigrate now fills my home office.

Tags: ,

Interview Questions

August 18th, 2009 No comments

For some unknown reason, I ended up reading through interview questions/jokes today. I know the real reason I ended up here. We’re having some churn on the team and I’ll be participating in the face to face interviews.

I really enjoyed the “You don’t bury survivors” post. (Answers) Jeff Atwoods write-up is interesting. Actually I think all of this started with a post by Atwood on separating those that can program from those that can’t. Which in turn lead me to this draft paper (pdf).

Here’s my FizzBuzz code. I think I spent maybe 5 minutes from firing up VS to rereading the requirements to make sure I wrote what was assigned. I am assuming the first number to be printed it “1″ and not “0″.


for(int i = 0 ; i < 100 ; )
{
i++;
if ( i % 3 == 0 && i % 5 ==0 )
Console.WriteLine("FizzBuzz");
else if (i % 3 == 0)
Console.WriteLine("Fizz");
else if (i % 5 == 0)
Console.WriteLine("Buzz");
else
Console.WriteLine(i);
}

Another question I have been asked was to write a palidrome finder. I was in a bad mood that day and evaded the request. Obviously, I didn’t get the gig. The gig was writing software for a collections company so my conscience must have been screaming at me. <shrug> Anyway, the solution would look something like this:


static bool IsPalindrome(string palindrome)
{
palindrome = palindrome.Trim().Replace(" ", "").ToLower();

if (String.IsNullOrEmpty(palindrome))
return true;

if ( palindrome.Length == 1 )
return true;

// this could also be done with substring. I think this is more readable.
char[] chars = palindrome.ToCharArray();
if (chars[0] != chars[chars.Length -1])
return false;

return IsPalindrome(palindrome.Substring(1, palindrome.Length - 2));

}

Tags:

Guilty Pleasures / Win 7

August 18th, 2009 No comments

Picture if you will… A slightly sleepy programmer, typing away at his keyboard with Kingdom Come’s Get It On playing through the headphones.

Yes. I am a child of the 80s.


I have noticed some issues with Windows 7.

  1. Media Player doesn’t work. Period. It never loads. It always crashes with a “Server execution failure.” I don’t know why and I haven’t had the time to reserach the issue. I’ve tried files on my local hard drive and files on my Home Server. It doesn’t matter.

    &bsp;

  2. Windows Explorer isn’t refreshing. I worked on an invoice for a client last night. I copied an old invoice and renamed it. The result of the rename didn’t display. In other words, the window content stayed the same as before I renamed the file. I double clicked on the file and got a “File does not exist error.” I manually refreshed the page and there was my renamed file. Rather odd I should think.”

    &bsp;

  3. Warhammer has no sound. I’m still getting sound from the desktop, but not from within the game. I really don’t like that. I prefer to hear when someone is taking a swing at me.

    &bsp;

I wonder what other issues will appear.

So am I an early adopter if I switched to the new O/S before it’s general release? I waiting until the RTM dropped and I HAD to do something about the systems at the office. I never considered Vista a viable desktop. I realize I’m beating a dead horse. Whatever.

Data Architects

August 17th, 2009 No comments

I suppose it is a fundamental topic. Why do need to fully understand how our data is being used?

“Because we do” doesn’t seem to work.

So baffle them with BS or at least bury them in jargon. Phil Factor has a couple posts of this topic.

The Joy of Data Modelling
The Data Dialog

Insanity: Continued

August 17th, 2009 No comments

I haven’t really slept in weeks. OK. Almost a month. I’ve tried sleep aids. I still wake up a couple hours later to wander downstairs and re-start working on computer builds and software issues.

I think that time is coming to an end. Read more…

Tags: ,

Thwarted

August 7th, 2009 No comments

I started looking through my stuff (parts inventory) and realized I don’t have a compatible video card or DVD burner for my new machine. Oops. Back to computer shop to get more doodads.

Have I told you lately, just how much I hate dealing with hardware?

Crap. <sigh>

August 6th, 2009 No comments

Win 7 Ultimate downloaded.

“So what’s the difference between Ultimate and Enterprise?”
“The license key.”
“So I should be using Enterprise for my domain attached development workstation?”
“Yes.”
“Crap. <sigh> It only took 6 hours to download Ultimate…”

Instead of eating lunch, I picked up hardware to build up a new development workstation. I think I know what I’m doing tonight when I get home. I guess I’ll load Ultimate and see what’s what before I worry about the Enterprise issue.

Tags: ,

Dropped: Win 7

August 6th, 2009 No comments

Windows 7 is available on MSDN. Let the downloading begin!