Friday, November 16, 2007

image It's pretty trivial to setup a shortcut to an RDP file to allow you to connect to a remote desktop session in Vista (or XP for that matter).

But I needed to remotely connect to the console session.

No big deal, I thought, so I started checking out all the various options available when you EDIT an RDP file.

Nothing there to let you connect to the console.

A quick Google turned up a KB article with the command line switches for mstsc, but it looks like it's not possible to specify the /CONSOLE option inside the rdp file.

Rats.

Then I thought, why not just create a shortcut to mstsc directly, no RDP file at all.

I ended up with a shortcut using this command line

C:\Windows\System32\mstsc.exe /v:myserver /console /w:1024 /h:768

Just make sure your current user (on your desktop) is a member of Remote Desktop users (and possibly administrators, which I know, would be a "bad thing").

 

 

image  At that point, just double clicking on the shortcut should drop you right on the console of the server (kicking anyone that was on the console off, BTW, which might be a problem in some environments\:\-\) ).

In the end, Remote Admin via Terminal Services still isn't near as good as UltraVNC, but it does seem to work pretty good. If I had to admin a system that was really remote, I'd probably stick with VNC, but since my server is in the closet, about 10 feet away, Remote Admin is good enough.

posted on Friday, November 16, 2007 5:22:31 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [2] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Thursday, November 15, 2007

I've seen a few "Best tools" lists over the years, but haven't ever stumbled across a Best Tools for FireFox list.

So, in the grand tradition of probably reinventing the wheel, but not Googling about it first\:\-\) ....

Here's my (quite short, but sweet), list of Favorite FireFox Extensions:

  • Theme: MacfoxIIGraphite 2.1.4
    OK technically not an extension, this theme really makes for a clean, uncluttered FireFox.
  • Tab Mix Pro 0.3.6
    What tabs in FireFox should have included from the start. Forcing popups to open in tabs is something I can't do without now.
  • DownLoad Them All 0.9.9.10
    Ok, it's technically not polite to snarf gobs of files from a site all at once. But, well, sometimes, rude is the word, I suppose.
  • IETab 1.3.3.20070528
    Essential if you want to stay away from opening IE but still need it for those nasty IE only sites (Parature, anyone).
  • DOM Inspector 1.8.1.9
    Quite handy for ripping into an existing webpage to see how it ticks.
  • FireBug 1.05
    Another handy little script debugger as well as CSS editor/debugger . I haven't used it much to this point, but it seems to work quite well. Maybe there's a better one someone can clue me in on?
  • Web Developer 1.1.4
    More CSS/DOM spelunking goodness

You can find them all by clicking Tools/Addons in FireFox and then click the Get Extensions link at the bottom right of that screen.

So how about it? Anyone with thoughts on any other really useful FireFox Addons?

posted on Thursday, November 15, 2007 5:44:27 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
image

I had opened up my machine to reformat a spare Harddrive last night. When I buttoned everything back up and restarted, I get network errors.

So I opened up My Computer, Device Manager and lo, my network card was "failing to start" with that wonderful code 10.

My machine has an Intel 975XBX2 motherboard, with those cool blue flame heatsinks\:\-\) .

Pretty much best of breed stuff, and a gigabit net card is built in; swapping out cards was a "only if I absolutely have to" option.

Have you ever noticed that for virtually any other problem on a machine, you can just jump on Google, find the answer and be on down the road? But if your network card goes sour, ouch.

I tried all the obvious stuff, uninstalling the drivers, reinstalling them, using the "Update Drivers" option from Device manager, etc.

I'd almost given up, but then I decided to try one more thing.

The internal LAN adapter can be enabled or disabled through the system BIOS, so I rebooted, got into the BIOS, performed a "Load system Defaults", then restored all those settings that I had to (like the RAID settings, Numlock off on boot, you know, important stuff), and then set the LAN card to disabled (it's under Advanced/Peripherals).

Rebooted into Vista and sure enough, now it didn't see the LAN adapter at all. Good sign.

Shutdown, power off, and restart. Back into the BIOS, reenable  the LAN adapter, save settings, and restart.

Boot back into Vista. Lo and behold, back in business.

Now, if only that 120 gb Western Digital Harddrive I picked up as a spare, would recognize properly and not as just 32gb, I'd be done with hardware (for a few days at least).

posted on Thursday, November 15, 2007 5:41:52 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Wednesday, November 14, 2007

Here's a little trick I'm not sure many people know about, but that I've used for so long, I'd basically forgotten about it.

I wrote about overriding the ERR object in VB here, and also wrote a far more involved article about it.

But did you know you can also override the MSGBOX function?

Just create a function with the following signature in a BAS module of your choice:

Public Function MsgBox(ByVal Prompt$, Optional ByVal Buttons As VbMsgBoxStyle = vbOKOnly, Optional ByVal Title$ = "", Optional ByVal HelpFile$ = "", Optional ByVal Context As Long = 0) As VbMsgBoxResult

Put the appropriate code in it, and presto, custom msgbox.

Why, you might ask?

  • Personally, I like the option of logging every msgbox that's displayed by my app. Errs are handier, but msgbox's can be useful.
  • In addition, you have the option of calling the MessageBox API call directly yourself, which gives you access to additional flags that you can't use with the VB version alone.
  • You might also decide that the MSGBOX proper just doesn't look good, and craft up a modal, nicely skinned form to stand in its place.
  • And finally, in a particular app I worked on, I needed to call a function BEFORE and a different function AFTER displaying every msgbox. I certainly didn't want to alter every call to MSGBOX and add those extra lines. Overriding it made that a trivial task.

Please let me know if you come up with any good uses for this trick.

posted on Wednesday, November 14, 2007 10:03:47 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Tuesday, November 13, 2007

Ok, yeah, it's probably, um, quaint?, to even have a floppy drive in a Core 2 Duo based machine, but still, that' no excuse for Vista to mysteriously change my floppy drive to Drive B.

You can't fix this with the Drive Management dialog, and I couldn't find any place else to assign a drive letter to the floppy. And there's no jumpers on floppies, so what the hell?

On a whim, I opened up the Device Manager and started looking for any drive letter controls on the floppy devices.

There weren't any.

But then, I started wondering if just uninstalling the drivers and letting "scan for new hardware" do it's thing would work. It usually does for network cards.

So I right-clicked on each and uninstalled the drivers for both the Floppy Drive and Controller:

image

Then right clicked on my computer and chose "Scan for new hardware". In reality, just rebooting would also work.

A few seconds later, I'm back in the land of the whopping 1.4mb Drive A floppy!

Hey, you can get about a second and a half of HD Video on one of those things. Awesome.

posted on Tuesday, November 13, 2007 5:57:25 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [2] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Friday, November 09, 2007

You might think such a thing would be insane to attempt. And why bother?

Here's a shot of GParted (a Linux based partition editor) booted from a USB stick (in the host machine). It's quite handy in that it seems to work about as well as Partition Magic. It'll copy partitions as well.

image

The main reason for all this is that it's awfully handy to test USB bootable key configurations from a VM instead of having to constantly reboot a real machine. And why a bootable USB configuration? Well, if you're in IT, you often find yourself sitting at a machine that won't boot or that needs to low level lovin' to get it back on track. And things like GParted, Partition Magic, Partition Commander, or SysInternal's NTFSDOS, not to mention SPintrite can be awfully handy to have swinging from a gold chain around your neck.

One caveat to this. Make SURE you DON'T access the USB key from your host machine while you do this. Doing so will likely trash the formatting on the key. You have been warned, young jedi.

Ok. Here we go...

Make sure you've inserted the USB Key and Windows "sees" it (doncha love that bong sound).

Start VMware (it will see the USB if it's inserted, but it might not see it if you insert the USB key AFTER you've started VMWare).

Make sure the virtual machine in VMware is turned off.

image 

Click on the virtual machine settings and click Add:

image 

Choose "Hard Disk" from the device type list, then "Use a Physical Disk", since we'll be booting to the USB Key.

Here's the important part. You should get a window like this:

image

See that drop down list with the PhysicalDrive0 in it? If you drop it down, you should see at least one other drive (Physical Drive 0 is typically the C: drive in your host machine, you DON'T want to use that drive!). In mine, it was PhysicalDrive5. Select which ever one is your USB Key drive.

And select "Use Entire Disk" (unless you've partitioned your USB Key drive).

Finally, give it a filename for the vmdk file (that's a little config file that VMWare uses to keep track of what physical drive is mapped to what virtual drive).

Fire up the VM, and be quick about pressing F2. That's how you get into the VMware bios for the vm.

image

It might take a few tries to get it, but eventually, you should get to the BIOS screen. Move over to BOOT and press Enter to expand the hard drive options:

image

On my system, that "VMware Virtual Scsi Hard Drive (0:0) entry was listed 3'rd. Use the "+" key to move it up to the top of the boot priority list.

Then save your changes.

If you did everything right, when you reboot the VM, you should boot to your USB drive.

How did I get GParted to actually be able to boot from a memory stick?

I've blogged about getting USB memory stick drives bootable here, and here.

But for GParted, there's a little more wizardry at work. You'll need to use fat32format to format the drive, then use SYSLINUX to make it linux bootable, then copy the GParted ISO contents to the stick. See the above links for details.

Finally, you'll need to move a few files.

The root of the GParted image look like this:

image

Nav into the syslinux folder and move all the files there, down to the root of the drive.

Then nav to the boot folder, and move the gparted and gparted.igz files down to the root of the drive.

That should do it. Fire up a VM and give it the boot.

So what have you done with your USB key today? (absconding with company secrets doesn't count, shame on you!)

posted on Friday, November 09, 2007 6:00:17 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 

I have to force timestamps so rarely, I just can't justify spending money on such a utility.

But writing a little code to do it is annoying, so I went on a little hunt today to find a package that's simple, quick and easy with little to no installation, drag and drop functionality (command line touch utils are a dime a dozen, after all), and straightforward date entry.

WinTouch fit the bill perfect for what I was looking for.

image

You can drag files to that top list box, set the date/time and go. It's no Directory Opus, but then, it's not 85$ either.

posted on Friday, November 09, 2007 5:50:51 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Thursday, November 08, 2007

I'm generally not one to pass on those annoying joke emails, but this one (from here) I just can't resist.

image

posted on Thursday, November 08, 2007 9:35:45 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 

I happened across an interesting post about Undo this afternoon.

The author is the guy behind "e - Textmate for Windows", which looks to be a pretty slick little editor.

Now, I can't say much to the editor (at least not yet, but I plan on taking a closer look).

But his comments on Undo struck me as particularly prescient.

I've had a nagging feeling for years that Undo (even of the "unlimited" variety that's in just about every app out there now), was not really what it could or should be. The Undo Visualization is particularly nice, as is the idea of branching. I've seen something similar in graphics packages before (though I can't remember which ones off hand). Never seen anything like it in a text editor or IDE, though.

His solution and implementation really points out the inadequacies of the typical modern undo. Granted, some of it might be a little advanced for a casual user. But for a casual user, the standard Ctrl-Z multi level undo should continue to work just fine anyway.

posted on Thursday, November 08, 2007 9:33:15 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions; 
 Tuesday, November 06, 2007

I've blogged about Live Writer before. It's an awesome offline blogging app from Microsoft, and it's free! It can even read the style sheet of your blog and apply it while you write (mostly).

Anyway, looks like the first official release is out and it's definitely worth the download. They've fixed the most irritating bug in the beta (having too many pictures in an entry would cause GPF's), and so far, it appears very stable.

Even better, the new version will upgrade the beta in place. All my draft entries were preserved perfectly.

Grab it here.

posted on Tuesday, November 06, 2007 10:51:49 PM (Central Standard Time, UTC-06:00)   •  # •  Comments [0] • 
Kick it •  Add to del.icio.us •  View blog reactions;