Pages

Friday, September 30, 2011

Fixing MMS on Dell Venue Pro

Symptoms:

  1. You forced the Mango updated on your Dell Venue Pro. (Here's a page with instructions if you haven't seen it yet: http://www.wpcentral.com/force-mango-update-early-through-zune-software)
  2. Someone sends you a text message with an image.
  3. When you click the "Get media content now" link, the message flickers but you don't see the image.

Problem:

The "MMS Proxy" setting s was erased from your phone when you applied the software update.

 

Solution:

  1. Dial the number ##634# to launch the diagnostics page.
  2. Go to "MMS Settings"
  3. After the Mango update, all of these fields were blank for me.
  4. Click the "Restore system defaults" button.
  5. You'll get a "Success, Setting is Done!" message.
  6. You'll see your carrier's values in the text boxes.
  7. Now go back to the messaging app and you should see the images when you click the "Get media content now" link.

Friday, February 4, 2011

Improve Your Productivity with AutoHotKey

I’ve been meaning to write something about using the AutoHotKey utility to increase productivity.  Then I saw this article in LifeHacker which prompted me to get started:

How to Make Your Caps Lock Key Search the Web, Chrome OS-Style

If you haven’t heard about AutoHotKey, it’s a program that runs in your task bar that lets you create your own hotkeys.  I never use the caps lock key, so AuthoHotKey let me change its behavior and put the wasted button to good use.  Now whenever I press caps lock, Windows starts a new tab in Chrome and moves the focus to the address bar so it’s ready for a new search.

My other use for AutoHotKey is to improve my typing speed when writing SQL queries.  I spend a lot of time at work writing SQL code in the SQL Server Management Studio.  Because of this, I’ve typed “SELECT * FROM” a countless number of times.  With AutoHotKey, I’ve defined “Windows Key + Z” as a keyboard shortcut that will type this for me.

Here’s what my AutoHotKey script looks like so you can get started with your own script:

#z::Send SELECT * FROM{Space}

; Add some media keyboard shortcuts since my laptop doesn’t have them…
#.::Send {Media_Next}
#,::Send {Media_Prev}
#/::Send {Media_Play_Pause}

; Fix one of my common typing errors…
::helath::health

; Create a new tab in chrome when caps lock is pressed.  Note that you’ll have to
; change the path to Chrome on your computer… (Copied from the LifeHacker article)
Capslock::
SetTitleMatchMode, 2
If WinExist("ahk_class Chrome_WidgetWin_0")
{
WinActivate
WinWaitActive
Send ^t
Send ^l
}
else
{
Run "C:\Users\your_user_name\AppData\Local\Google\Chrome\Application\chrome.exe"
sleep 100
Send ^t
Send ^l
}
return
+Capslock::Capslock

Monday, January 24, 2011

Goals for the Year

Around this time each year, we have to create goals for the year at work.  I really don’t like this process.  I understand that they are trying to make a quantitative way to evaluate the performance of all of the employees, but it’s hard to make goals when I don’t have control over what I work on.

At church this week I was thinking that even though I dislike goals at work, it would probably be beneficial to have personal goals so that I can manage my free time better.  Here are my goals that I have come up with.

  1. Read More
  2. Write More – I hated writing in school, but you can’t take over the world if you can’t convey your thoughts to others. I’ve also had to write quite a bit more for work for project proposals.
  3. Build a robot for the DPRG May competition
  4. Play the piano better
  5. Home Automation – be able to control several of the lights in my house
  6. Balance work time better.  I always end up having to make up at least 2 hours on the weekends.

I’ll have to come back and put in some deadlines.

Friday, January 21, 2011

Virtual PC vs. VirtualBox

If you want to run a Linux VM on Windows 7 64bit, don’t even bother trying to get it to work under Microsoft Virtual PC.  Not only is not supported, it just doesn’t work.  I spent several hours trying to tweak parameters to no avail.  It looks like it is trying to do the virtualization at a lower level which would give better performance with the trade off being compatibility issues.  It does work great for running Windows VM’s, though.  I’ve used the Windows XP VM, and it works fine.

In order to get my Linux VM running, I ended up using VirtualBox for the virtualization software.  It was shocking how easy it was to get Ubuntu installed and running.  The wizard’s in VirtualBox step you through mounting the ISO and booting up the VM.  Eventually I want to get a website using Mono up and running to play with.  For now, I’ll just use it for some cross-platform browser testing for my client’s websites.

Conclusion:

If you want to run a Linux VM, try VirtualBox.  If you only want Windows VM’s then either Virtual PC or VirtualBox will work fine.  On the server side, I’m still biased towards Hyper-V.

Saturday, January 8, 2011

“The Colorado Kid” by Stephen King

Last night I finished reading “The Colorado Kid” by Stephen King.  This was the first Stephen King book I’ve read.  My wife and I really like the show “Haven” on the Syfy channel which is supposed to be based on this book.

I was hoping that it would give more background information or clues into the show’s mysteries, but it didn’t.  The book and show are set in a similar north eastern town, but the two main characters in the book are only side characters on the show.  About the only things in common are the setting and mysterious atmosphere.

I would read another Stephen King book in the future, though.  I know there are plenty to choose from…

Friday, January 7, 2011

Recommended Local Businesses

As a former small business owner, I like helping other small businesses.  Here are some small businesses in the Plano, Murphy, & Wylie area that I recommend:

Food

Napolis Restaurant
701 N. Hwy 78
Wylie, TX
972-442-4653
http://napolistx.com/Wylie.htm 

Mogio's Gourmet Pizza‎
158 West FM 544
Murphy, TX 75094
(972) 423-8100
http://mogiospizza.com

Car

Highway 78 Auto
3302 N Highway 78
Wylie, TX 75098
(972) 442-2269
hwy78auto.com‎

Dentist

Westgate Dental
520 W. Brown Street Suite A
Wylie, TX 75098
(972) 429-4311 ‎
http://www.mywyliedentist.com/

Haircut

Billy Luke
7602 W. Campbell Road
Suite #1
Dallas, TX 75248
214-532-4983
http://www.salonsbyjc.com/operators/index2.asp?r_id=53

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.

Wednesday, April 21, 2010

Space used by SQL tables

This SQL might be useful to you.  It will show you which tables in your SQL 2005+ database are taking up the most space.  Parts of the code were taken from the sp_dbsize system stored procedure.

DECLARE @TotalReserved AS INT
-- Get the database size...
SELECT @TotalReserved = sum(convert(dec(15),reserved)) * 8192 / 1024
FROM sysindexes
WHERE indid in (0, 1, 255)

SELECT *,
CASE WHEN Rows > 0 THEN Reserved * 1024 / Rows ELSE -1 END as 'AvgBytesPerRow',
Reserved * 100 / @TotalReserved as 'Percent',
replicate( 'X', Reserved * 100 / @TotalReserved ) 'Reserved Space Graph'
FROM (
select t.Table_Name,
(
SELECT CAST(CAST(SUM(Reserved) AS FLOAT) * 8192 / 1024 AS NUMERIC )
FROM sysindexes
WHERE id = OBJECT_ID( t.Table_Name ) and indid in (0, 1, 255)
) as 'Reserved',
(
SELECT i.rows
FROM sysindexes i
WHERE i.indid < 2
AND i.id = OBJECT_ID( t.Table_Name )
) as 'Rows'
FROM information_schema.tables t
) a
ORDER BY Reserved DESC

Monday, January 4, 2010

CSS Text-Overflow

Text-Overflow CSS property:
http://msdn.microsoft.com/en-us/library/ms531174(VS.85).aspx

Emulate text-overflow:ellipsis in Firefox with CSS
http://www.jide.fr/emulate-text-overflowellipsis-in-firefox-with-css

How to Reinstall F5 VPN

I often have to log in to an F5 VPN to do my work, but sometimes all of the F5 components just don’t want to work.  Here are the steps to uninstall the F5 components so that the login process will reinstall the latest version.

  1. Download https://firepass.fpfaq.com/sandbox/f5wininfo.exe
  2. Run the program as an administrator.
  3. Tools > Remove Components > Yes
  4. Close the program
  5. Log in to to your F5 VPN site.

Now the F5 components will be reinstalled and the “Network Access” will work.

Thursday, April 16, 2009

TreeView Bug with Bold Fonts

In a .Net 2.0 Windows forms app, if you can’t get the a TreeNode to be displayed as bold within a TreeView, take a look at this KB article:

The text of a node may be truncated when you programmatically set the Font property of the node to the Bold value in a Windows Forms-based application that uses the .NET Framework 2.0
http://support.microsoft.com/?scid=kb;en-us;937215&x=8&y=13

You have to modify the "Text" property of the Node after it has been added to the TreeView.

Thursday, February 12, 2009

Flickering ListView

If you have a ListView in a Windows Forms app, use the following code to stop it from flickering:

using System.Reflection;

// For some reason the "DoubleBuffered" property isn't exposed on the ListView class
// so we have to use reflection to set it even though it's a "protected" property...

PropertyInfo oDoubleBuffered = this.listView1.GetType().GetProperty(
"DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance );
if ( oDoubleBuffered != null )
oDoubleBuffered.SetValue( this.listView1, true, null );

Sunday, January 4, 2009

Temporary Assemblies with XmlSerializer

If you are using the XmlSerializer in your app, these pages might help you with some scalability problems:

Scott Hanselman's Computer Zen - Changing where XmlSerializer Outputs Temporary Assemblies
http://www.hanselman.com/blog/ChangingWhereXmlSerializerOutputsTemporaryAssemblies.aspx

Scott Hanselman's Computer Zen - HOW TO Debug into a .NET XmlSerializer Generated Assembly http://www.hanselman.com/blog/HOWTODebugIntoANETXmlSerializerGeneratedAssembly.aspx

Also, make sure that you cache the XmlSerializer class that gets generated for your type.  Each time a serializer class gets generated, it gets compiled into a separate assembly and loaded into your AppDomain.  The problem is that assemblies can not be unloaded from an AppDomain so it just fills up with these generated assemblies.