Pages

Thursday, January 6, 2011

Audio Stuttering in Windows 2008 R2

I’ve been running Windows Server 2008 R2 64bit for my desktop OS at work for a while now.  When playing background music with Windows Media Player, I’ve always had music skipping/stuttering issues.  You can especially notice it when moving windows around or running a high CPU task (like Flash animations).

I think I’ve finally figured out how to fix it.  It looks like in Windows 2008, the audio processes are by default given a CPU priority below low.  Because of that any other program will preempt Windows Media Player which would cause the stuttering.  It turns out that there is a registry key that controls this:

Key: HKLM\Software\Microsoft\Windows NT\CurrentVersion\multimedia\SystemProfile
Value: SystemResponsiveness
Type: REG_DWORD

In Windows 2008 R2, the default value is 100 (decimal).  In Windows Vista this value is 20 (decimal).  The MSDN article describing this registry key says that this value controls “the percentage of CPU resources that should be guaranteed to low-priority tasks. For example, if this value is 20, then 20% of CPU resources are reserved for low-priority tasks.”  It sounds like the remaining percentage is divided up between the open multimedia applications.  I’m going to set this key to 50 (decimal) on my computer and see if that makes a difference.  Rebooting as soon as I can close all of my windows… It looks like that worked.

Other posts about this:

Monday, January 3, 2011

Quandrantid Meteor Shower

It looks like the Quandrantid meteor shower will peak tonight around 7pm CST.  The radiant will be in the north west between the big dipper and the little dipper.  It doesn’t sound like Texas will be able to see many of them, but the viewing time is so early in the evening that it might not hurt to look anyways.

More info:

Elusive Meteor Shower and Solar Eclipse to Ring in 2011
http://www.wired.com/wiredscience/2011/01/quadrantid-meteors/

Promising Quadrantid Meteor Shower to Peak Next Week
http://www.space.com/spacewatch/quarantid-meteor-shower-peaks-next-week-101231.html

Europe and Asia will also get to see a partial solar eclipse to go along with the meteor shower, but it won’t be visible in the US.

Update:  We weren’t able to see any meteors.  There was a big, thick cloud right over the northwest horizon where they should have been.  Orion looked very nice, though.

Friday, December 31, 2010

Original Series Star Trek Movies

For Christmas, my wonderful wife bought me all of the Star Trek movies I was missing from my collection.  We’ve started watching all 11 of them in order now.  She hasn’t seen most of them.  So far we’ve made it through #7 (Generations).  We both agree that this is how we would sort the original series movies from best to worst:

  1. 6: The Undiscovered Country
  2. 4: The Voyage Home – Directed by Leonard Nimoy.  In one of his autobiographies, he tells how he used a “Mission Impossible” style plot structure: multiple teams of people working separately towards a common goal.
  3. 2: The Wrath of Kahn
  4. 5: The Final Frontier – Well connected plot—just not the best plot.
  5. 3: The Search for Spock – It seems bad to rank this one so low, but the plot wasn’t very connected.  It does set the stage for #6.
  6. 1: The Motion Picture – We both fell asleep during this one.

This ranking still preserve the rule that the even number movies are the best.

Next we’ll have to see how the next generation movies compare…

Monday, December 20, 2010

Lunar Eclipse

Make sure you go see the total lunar eclipse tonight between 1:41am and 2:53am CST. The middle of totality is at 2:17am.

The 12 Stages of Monday's Total Lunar Eclipse
http://www.space.com/spacewatch/total-lunar-eclipse-12-stages-101219.html

How to Watch the Dec. 20 Total Lunar Eclipse
http://www.space.com/spacewatch/total-lunar-eclipse-moon-observing-tips-101215.html

Update:  Clouds messed up more than half of the eclipse last night, but I did get a couple of pictures:

Here are some pictures other people took of the eclipse: http://wvs.topleftpixel.com/10/12/23/

And here’s a video of the entire eclipse: http://blogtown.portlandmercury.com/BlogtownPDX/archives/2010/12/21/here-is-what-you-missed-during-last-nights-eclipse

Friday, November 5, 2010

Favorite Utilities

 

Xenu Link Checker
http://home.snafu.de/tilman/xenulink.html
This is the best tool I've seen that will crawl a site and check all of the links.

HTTrack - Download Websites
http://www.httrack.com/page/2/en/index.html
Lets you download a website to disk.  I've used this to archive old hospital web sites.

CPU ID - Hardware Inventory
http://www.cpuid.com/cpuz.php

FileZilla - FTP Client
http://filezilla-project.org/

.Net Reflector
http://www.red-gate.com/products/reflector/

Microsoft Live Mesh
http://www.mesh.com/
"With Live Mesh, you can synchronize files with all of your devices, so you always have the latest versions handy. Access your files from any device or from the web, easily share them with others, and get notified whenever someone changes a file."

Monday, July 5, 2010

Registering Extensions for Windows Search

If you are a programmer who uses the Windows Search service to index documents on your local computer then this should be useful:

How to register Microsoft Filter Pack with SharePoint Server 2007 and with Search Server 2008
http://support.microsoft.com/?id=946336

By default, the Windows Search service only indexes content with certain file extensions.  Of course they leave out the extensions used in source code.  Step #3 from the KB article tells how to add registry keys that tell the Windows Search service to index additional file types.  I’ve done this for all of the common .Net file types:  cs, aspx, xml.  Now, whenever I do a search through Windows Explorer or the start menu, I’ll see my source code in the search results.

Friday, June 4, 2010

Access Denied when Running Site Locally

"Could not load file or assembly 'xxxxxx' or one of its dependencies.  Access is denied."

If you get this exception when running an ASP.Net site through the Visual Studio web server, make sure that McAfee isn't causing the problem.  Here's what I had to do to turn it off:

  1. Open the "VirusScan Console"
  2. Go to properties on "Access Protection"
  3. Click on "Common Maximum Protection"
  4. Make sure "Prevent creation of new executable files in Windows folder" is set to NOT block.
  5. Click "OK"
  6. Now restart the Visual Studio web server and it should work!

I’ve also had this problem when the Windows Search Service is trying to index the DLL’s in my “bin” folder every time I compiled.  You could try using the “Process Monitor” tool to see if there’s another program accessing your DLL causing the locking problem.