Advertisements

The coolest tool you have never heard of extpart.exe

This allows you to extend boot partitions on the fly!

http://support.dell.com/support/downloads/download.aspx?c=us&cs=19&l=en&s=dhs&releaseid=R64398&formatcnt=2&fileid=83929

http://h0bbel.p0ggel.org/howto-using-extpart-to-expand-windows-server-2003-vm-boot-volume

Advertisements

Couldn’t get vmware tools to install, worked by changing the drive letter of the cdrom

It was having a hard time starting for what ever reason (a converted XP box) on a hunch I changed the drive letter for the cdrom and it took right off!

I’m a fan of the NullableDataReader

Where have you been all my life!

http://www.codeproject.com/KB/database/NullableReaders.aspx

Dangers of Virtualization Part Four

Having virtual machines makes it easier for someone to whip up a test machine and then inadvertently that test machine becomes production…. hmm I was one click away from deleting the ‘old’ test server.

tips of the trade

Any time you install some random device, pull out your sharpie and write the username and password on it. (Or on a sticky note and tape it to it)

Trust me, you will thank me later.

Really fascinating design concepts!

http://www.danlockton.com/dwi/Download_the_cards

How to save a Bitonal .tiff using CompressionCCITT4

This was a pain…. There are a couple of articles that got me really close, but this one was the finisher!

http://www.eggheadcafe.com/software/aspnet/29093592/key-to-speed–use-byte-array-instead-of-writing-to-locked-image-bytes.aspx

The trick was when I was converting the C# to vb.net from this article

http://www.codeproject.com/KB/GDI-plus/SaveMultipageTiff.aspx?fid=370645&fr=1#xx0xx

It mentions that you need to cast the bytes to ints

This is the salient line

pixelTotal = CInt(sourceBuffer(sourceIndex + 1)) + CInt(sourceBuffer(sourceIndex + 2)) + CInt(sourceBuffer(sourceIndex + 3))
Here is more info
http://www.bobpowell.net/onebit.htm
Also, note that if you want to retain the resolution you need to
In the ConvertToBitonal routine add the line marked below:

// Create destination bitmap
Bitmap destination = new Bitmap(source.Width, source.Height, PixelFormat.Format1bppIndexed);

-----> destination.SetResolution(source.HorizontalResolution, source.VerticalResolution);