VMware Tools caused the mouse to stop working!

by techpilot007 12. May 2009 17:46

I've been spending mosto of today building some virtual machines for the QA department at work.  I used Microsoft Virtual PC to create the VMs.  Then I used VMwares stand alone converter to convert them into VMware images.  Once that was done I added them to a VMware Server (version 2).  I was finished the install by installing VMware Tools. After the machines booted back up though I found that I had lost the ability to use the mouse.  I thought this was strange as I've never had this problem before.  I did a little searching on google and found this:

 

Before any conversion uninstall MS VM tools.
After conversion if mouse does not work in VMware infrastructure Client console session - in my case it just disappers from the console, try to do next from http://www.petri.co.il/forums/archive/index.php/t-19387.html
" go into the registry and navigate to the keyHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\{4D36E96F-E325-11CE-BFC1-08002BE10318}
Remove the value msvmmouf from the UpperFilters Regvalue.Reboot....
tadaaa!!
If you wish you can take out the drivers completely by deleting these registry hives completely :
The driver:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\msvmmouf
The Service:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\VPCMapThe CopyHook Shell Extension: ( for folder access )HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{30C14BA C-122C-42ED-B319-1139DBF48EB8}\InProcServer32HKEY_CLASSES_ROOT\Directory\shellex\CopyHookHandle rs\VPCCopyHook
After a reboot you can delete the "Virtual Machine Additions" folder from program files..."

http://bsirotin.blogspot.com/2008/03/mouse-does-not-work-after-converting-ms.html

After I removed the entries in the registry everything worked as it should.

 

Bookmark and Share

SQL- Finding time ranges in a datetime field not dependant on the date

by techpilot007 16. January 2009 14:39

I recently have had a project placed on my shoulders that will mostly be dealing with making the data look the way the company wants it.  (I know that sounds bad, as though I'm supposed to be fudging financial data.) But not to worry this data has nothing to do with finances.  The project that has been given to me is a full version of one of our web applications that is meant for demonstration purposes.  The data in this project is only touched by our sales staff so it is not added to or updated in a way that is always helpful for powerful demonstration purposes.  So every night we have a job run that restores the database and another job that runs to help make the data mimic what we have in our production environment so that we can wipe out any changes that the sales staff have made and so that it is kept up-to-date in a way.  Like any demonstration application you want it to show the most ideal yet still realistic situations.  To make the data ideal we have to edit some of the entires to get the response we are looking for.  But if we do any editing then the restore will wipe out our changes.  What we do to avoid this is fairly simple.  Before updating the data we do a restore of the database to clean out the changes, then we apply our changes and make a new backup to use for restore.  Like I said its simple.  We just have to wait till later at night to do all this so that we don't disrupt the sales team.  To make the data seem realistic we can not be showing potential clients the timestamps of when these records were shown if we are doing the updates late at night after normal business hours.  So to off set this one of my first tasks was to adjust the times of all the entries to fall within more normal business hours.  Now I fully admit I'm not an expert with SQL or even really that good.  I'd like to think that I've been picking it up fairly quickly while on the job but there is still a lot of knowledge missing. 
So back to the problem, I have to change these datetimes to be the same day but the hours need to be between 8 am and 4 pm.  The first thing that came to mind was the between function.  I knew you could use it for this sort of thing, but how do I get it to look at the time only ignoring the different dates.  Well from as far as I could tell you can't get it to ignore the date.   So I came up with something like this.

select * from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) < '16:00:00'
and convert(varchar(10), creation_date, 108) > '08:00:00'
order by convert(varchar(10), creation_date, 108)

This effectively gave me the records that fell with in my time range.  Now what about the records that I needed to change?  How do I get them to fall within this range? I know that if I changed the datetime for those that were before 8 am I could do something like

update table_with_records
set creation_date = DateAdd(hh, 8, creation_date)
from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) < '08:00:00'



This would work how ever I would end up with the chance of many records falling with in the last hour of business.  To avoid this I made the update into two statements.  Each only adding 4 hours.  That way any records that were created between 4 am and 8 am would be not fall with in the second update. 
In the end this is what I ended up doing.

--adjust times before 8am
update table_with_records
set creation_date = DateAdd(hh, 4, creation_date)
from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) < '08:00:00'

update table_with_records
set creation_date = DateAdd(hh, 4, creation_date)
from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) < '08:00:00'

--adjust time after 4 pm
update table_with_records
set creation_date = DateAdd(hh, -4, creation_date)
from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) > '16:00:00'

update table_with_records
set creation_date = DateAdd(hh, -4, creation_date)
from table_with_records
where company_id in(company select statement)
and convert(varchar(10), creation_date, 108) > '16:00:00'

 

Bookmark and Share

First blog on the new site.

by techpilot007 4. October 2008 13:44
I've never been much for writing, so it may seem odd that I've created a blog.  Part of my reasoning for creating this blog site is that I want to learn to develop my programming skills in a practical way.  Now I know that most of you that see this site will say "But you didn't program this.   This is from BlogEngine.Net." And you're right, I didn't.  I started this site to see if I could get it to work with MySQL on my Godaddy hosting account.  It was a bit of a challenge but I slowly mad my way through the errors one by one.  Some that are reading this I'm sure would like me to go over what those errors were and how I over came them.  The biggest one that I had problems with was the fact that I needed the MySQL.data.dll in my bin directory (thanks to Jon for pointing that out) and adjust my web.config file to look for that version, beware that the MySQL.Data.dll can be found on the MySQL.com website in one of the connectors packages.  The other big problem that I encountered was that I wanted to use this on the same hosting account that I already had with godaddy.  When I had set up the account and my main site www.jstudios.us I place all the files for the main site in the root directory.  Having this blog site in a child directory made it a challenge for me to get this site to read its web.config file only, it kept wanting to inherit the parent directorys web.config as well (once again thank you Jon for pointing that out).  Now I know you are thinking why not just place both sites in separate directories.  Sounds simple enough, however, when I went to do so I couldn't get my domain name jstudios.us to look at anything other than the root directory as long as it was my primary domain name for the hosting account.  This is where I got a little creative.  I also own the domain jstudios.net.  So I made jstudios.net the promary domain for the account and then I was able to re-add jstudios.us as another domain on my account pointing to a subdirectory with my main site in it contents.  I didn't want my jstudios.net to be left broken and not pointing to my site anymore so I set up a simple html page to redirect the traffic to jstudios.us that way I no longer required a web.config file in my root directory and all my different sites on my account will be able to operate independently.
Bookmark and Share

Jeremyexp/col

I'm a member of the infrastructure team that maintains .Net web servers, that hosts applications for automotive dealers.




(The information in this blog is provided “AS IS” with no warranties, and confers no rights implied or otherwise. The views, opinions, and ideas, expressed here are my own, and may not necessarily represent the views and opinions of my employer, past, current, or future.)

Calendarexp/col

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar