thefrozencoder

Programming and Technology blog

Windows 2008 Install Tip for HP Laptops

If you are going to do a manual install of Windows 2008 and or Vista on any HP laptop you probably want to burn the c:SwSetup folder to a DVD/USB Key before you begin. This folder contains all of the original software installed as well as all of the drivers. Once you have installed the OS you can copy the folder back to your C: drive.

Here is a little trick to make the install process easer, create a text file in the c:SwSetup folder and rename it to install.inf. If you are missing drivers for some of your hardware (audio, network lan and wireless) are the usual MIA drivers. Just use the Update Driver feature and make sure you browse for a location and select the c:SwSetup folder, because the *.inf file is present you can do this. The update driver feature will search all subfolders for *.inf files to find a matching hardware device id and install the drivers for it. I do this so that I don’t have to pick each folder separately.

Windows 2008 and Me No More

So I decided that the disappearing mouse issue bothers me to much and went back to Windows XP (but not before making an image of the partition incase I wanted to go back after SP1 is released).

Of course before that I had to try the Vista image that came with the laptop, so I reinstalled it and BOOM, same problem.

Ahh Crap...

Oh wait maybe I’ll install SP1 for Vista and see it that helps. So after several reboots and a half an hour later I came to the conclusion that Yay! The disappearing mouse problem on my HP Laptop with an Nvida chipset using Dual Display is fixed (in my case) by installing Vista SP1. Sorry if that felt a bit wordy but search engines love wordy.

Windows 2008 and Me

So I decided to install Windows 2008 on my HP dv9000 series laptop and use this guide to create a better than Vista experience using a more solid OS than the POS that is Vista. The install went as expected and I was able to update the missing drivers using the Vista ones that came with my laptop (yeah I know Vista drivers on Win2k8 so sue me)

So far so good, oops I spoke to soon…

Seems that I have inherited the disappearing mouse pointer syndrome. First I don’t have the computer set up to hibernate, second I don’t have the computer setup to go into screen saver first then turn off the monitor and third this behavior tends to happen every time the monitor either comes out of screensaver or from turned off. Searching Google has made me believe that this is a HP/Nvidia/Vista/Dual Monitor issue as there are a lot of HP/Nvidia/Vista/ Dual Monitor owners suffering from this behavior. The lame solution is to enable pointer trails and set the visibility to short when this happens. Of course this causes a performance drop with the speed of the mouse.

I am going to try and install Vista this weekend and see if I have the same problems with that OS and driver combination. If so it’s back to XP Pro for me.

Example of the ASP.NET MVC framework

Finding a good well rounded example of the new ASP.NET MVC framework might be a hit or miss these days. Most of them are either really small or are incomplete. I found one that may or may not be either of the two but it seems to implement a lot of interesting ideas along with the code. So if you want a larger example of the new framework you might want to check out Kigg - Building a Digg Clone with ASP.NET MVC the code is also available on codeplex as well.

TinyMCE, ASP.NET and validation

The following describes how to use a custom validator function along side TinyMCE to validate the contents of the textarea.

Add the custom validator and setup the properties as you normally setting the ControlToValidate to the ID of the textarea and the ClientValidationFunction to the function name you see below (this can be changed of course).

The key is to call TinyMCE's triggerSave() method so the editor can synch up to the underlying textarea. Once this is done the textarea now has content.

<script language="JavaScript" type="text/javascript">
function validateTinyMCEText(source, args) {   
var txt = document.getElementById(source.controltovalidate);
tinyMCE.triggerSave();
args.Value = (txt.value.replace(/^W+/,'')).replace(/W+$/,'');
args.IsValid = (args.Value != '');}
</script>

Hopefully this will help out a few people