We just migrated our project to Visual Studio 2008 today and… it stopped working. Our application is a VB.NET/C# hybrid that makes use of a number of legacy ActiveX controls. When we ran the freshly migrated project the ActiveX controls would fail with “Invalid Access to Memory Location” errors.

This is a side effect of the C# compiler now generating executables with the NXCOMPAT bit set (with no option in the IDE to turn that off). This setting on the EXE enabled DEP (Data Execution Protection) on our program which prevents the legacy DLLs from doing what they need to do.
We’ve encountered this before here with our build machine and were able to resolve it by tweaking the build script. Unfortunately the IDE was now failing and that’s more complicated.
On of our developers came up with a fix:
Turn of NXCOMPAT bit on build output
There is a utility called “editbin” that lets you modify the EXE and turn the NXCOMPAT bit off. You can add it to the post-build events and that fixes the generated EXEs. Unfortunately, the application still will not run under the IDE because it’s inheriting DEP from the vshost process.
Turn off NXCOMPAT bit on vshost32.exe
To make the application run under the IDE we can turn of NXCOMPAT on the vshost32 executable using “editbin”.
At this point the application seems to run like it always did under the IDE.
<grumble>
My first garlic cheese bread. It’s a basic white bread with big chunks of garlic and cheese. The whole house smells but this bread is super tasty.

I tried to read more about a Boot CD tool that cracks WEP passwords and was denied with “Hacking/Computer Crime not allowed”.
How lame.

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="Edit with &GNU Emacs"
[HKEY_CLASSES_ROOT\*\shell\openwemacs\command]
@="C:\\Program Files\\emacs-23.1\\bin\\emacsclientw -n –a \"C:\\Program Files\\emacs-23.1\\bin\\runemacs.exe\" \"%1\""
I logged in to do a build of one of our older utilities… It’s been a while apparently… IE5?!

I was just noticing that our incredibly out of date OpenBSD server at work has only 18 processes running on it. That’s nuts!
I’m used to my Ubuntu desktop at 177 when I’m not even doing anything.
How things change…
I wanted to be able to quickly create Remember the Milk tasks from e-mail messages in Outlook. Basically:
- Forward e-mail to your private RTM e-mail address.
- Change e-mail to text only because otherwise RTM won’t find embedded commands
- Add header with spots to fill out due date and priority
- Let you adjust the headers before sending it
Press “ALT+F11” to bring up the Visual Basic editor while in Outlook:
Right click on “Project 1” and choose “Insert –> Module”. Paste in the following code into the newly created “Module1” (being sure to update the e-mail address on the objMail.To line).
Sub CreateRtmTask()
Dim objMail As Outlook.MailItem
Set objItem = GetCurrentItem()
Set objMail = objItem.Forward
objMail.To = "RTM ADDRESS GOES HERE@rmilk.com"
objMail.BodyFormat = olFormatPlain
objMail.Body = "Priority: " & vbCrLf & _
"Due: " & vbCrLf & _
"Tags: " & vbCrLf & _
"Location: @work" & vbCrLf & _
vbcrfl & "—" & objMail.Body
objMail.Display
Set objItem = Nothing
Set objMail = Nothing
End Sub
Function GetCurrentItem() As Object
Dim objApp As Outlook.Application
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = _
objApp.ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set GetCurrentItem = _
objApp.ActiveInspector.CurrentItem
Case Else
End Select
End Function
Now you can add a button. Right click on the toolbar in the main outlook Window and choose “Customize”. Find the Macro you just created:

And drag it to the toolbar in outlook. You can the right-click on it to change the Text and Icon for it. Voila.
Now clicking on the e-mail and hitting the new button will pop-up a mostly filled out e-mail to create the task in RTM.

I finally closed my Dreamhost account. They’ve been absolutely fantastic but I just didn’t need it any more. Is it strange that this e-mail actually made me sad (specifically the closing)?
Hello,
This is just an email verification for you that we’ve now closed your
Account as you just requested via our web panel.
You will no longer receive any bills from us (unless you kept an
active domain _registration_ with us) nor other communications.
We’re very sorry it didn’t work out and maybe we’ll see you again
someday!
Sincerely,
The UnHappy DreamHost Goodbye Team

(left: focus blended image / middle: near focus / right: far focus)
This image was a blended focus image from 6 different exposures using Enfuse. None of those images had both foreground and background in focus at the same time. I think it’s clear from this experiment that:
- Don’t use a lightweight camera on a tripod on carpet. It moves.
- Don’t try to focus blend moving people. It’s bad
Otherwise though it looks like this might actually have worked. How cool!
I’ve come up with a somewhat odd (but awesome) approach to templates for my static HTML pages that makes authoring/maintenance trivial and allowed for functional offline copies.
(article and code here)