iTunes Crashes on Windows 8.1

iTunes Crashes on Windows 8.1

Wow, it’s been a long time since I’ve posted here! =P

Anyway, I just stumbled upon this fix for iTunes crashing almost immediately after launch on Windows 8.1 (might be triggered by launching the iTunes Store?), from a discussion board post on Apple Support Communities by MarkJaco:

MarkJacoDiscussionPost

I had this issue. Try copying QTWinMovie.dll from c:\program files (x86)\common files\apple\apple application support to c:\program files (x86)\iTunes. This solution fixed it for me and was easy!

Hopefully this will help you out as well! =)

ASP.NET Web Forms MVP

Update: Just found some great tutorials and articles on the MVP wiki here: http://wiki.webformsmvp.com/index.php?title=Spread_the_Word

ASP.NET MVC might be the new kid on the block, but there are still a host of compelling advantages to ASP.NET Web Forms.

The ASP.NET Web Forms MVP project is about bringing the love back to Web Forms through a renewed approach to using it – an approach that facilitates separation of concerns and testability whilst maintaining the rapid development that Web Forms was built to deliver.

http://webformsmvp.com/

This is really cool stuff – we’ve just started using it in our development and I can already see the benefits to plain Web Forms or MVC. Granted, if you’ve already developed a pure MVC site, this probably won’t be useful to you, but if (like most of us, I assume) you have an existing ASP.NET Web Forms site and want to try the features of MVC without completely rewriting your framework, I highly suggest checking this out.

I’ll try to see if I can abstract out some of our internal examples for a future blog post. =)

Virtual PC VHD to Bootable VHD How-To

I’ve been trying to put together a bootable VHD within Virtual PC for a couple weeks now, and while I’ve gotten the VM configured to my liking, I’ve been missing the step to convert that VM’s VHD into a generalized, bootable image.

Finally, I’ve found the answer I’ve been looking for:

Continue reading “Virtual PC VHD to Bootable VHD How-To”

VS2010: My Favorite Extensions

VS2010 - My Favorite Extensions
VS2010 - My Favorite Extensions

My favorite feature of VS2010 so far is the excellent extension support, which allows me to add in my favorite plugins from the Microsoft Visual Studio Gallery.

Since there are thousands of plugins in the gallery right now, I thought it might be useful to share the most useful extensions I’ve found (and currently use) so far:

In alphabetical order…

  1. AnkhSVN
    AnkhSVN is a Subversion Source Control Provider for Microsoft Visual Studio 2005, 2008 and 2010.
    AnkhSVN provides source code management support to all project types supported by Visual Studio and allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE.
    The Pending Changes dashboard gives you a unique insight in your development process and provides easy access to the source code and issue management features. The deep source code control (SCC) integration allows you to focus on developing, while AnkhSVN keeps track of all your changes and provides you the tools to effectively handle your specific needs.
  2. Code4Blog
    Code4Blog is a Visual Studio 2010 extension that allows to convert any code supported by Visual Studio IDE to HTML format with the same structure and colors. Main purpose of this extension is to prepare a code snippet to be published in rich documents, for example in blog posts, Microsoft Word documents or Help files. Some additional styling could be applied: max width and height of the code block, custom background (per code line), font family and font size, line numbering and others.
    Code4Blog is now published on CodePlex. You are welcome to work with the source code directly!
  3. JSEnhancements
    This extension provides outlining and matching braces highlighting features for Visual Studio JavaScript and CSS editor.
    Works both in JS/CSS files and HTML script/style blocks.
    Outlining is like in C# editor. It outlines {}’s, []’s and #region tags
    Brace highlighting is made from MSDN example.
    CodePlex page: http://jse.codeplex.com/
  4. PowerCommands for Visual Studio 2010
    PowerCommands 10.0 is a set of useful extensions for the Visual Studio 2010 adding additional functionality to various areas of the IDE.
    Visit the VSX Developer Center at http://msdn.com/vsx for more information about extending Visual Studio.
  5. PowerConsole
    This extension provides an extensible VS command window with default PowerShell integration. You can now script Visual Studio interactively in PowerShell, and enjoy familiar VS style syntax coloring and tab-completion.
    Prerequisite: Visual Studio 2010 RC (or above) + Windows PowerShell v2 (or above). After installation, open the new tool window from View->Other Windows->Power Console.
  6. Productivity Power Tools
    A set of extensions to Visual Studio Professional (and above) which improves developer productivity.
    (Tons more info at the VS Gallery Page: http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef)
  7. Regex Editor
    This sample was built to ease your pain when working with regular expressions.  It rehosts the editor in a dialog box and provides a basic language service to provide colorization, brace matching, sample testing grouping and selection tracking.  It shows re-hosting of the editor in a tool window, and provides a nice starting point for similar projects.
  8. VS10x Code Map
    VS10x Code Map is a Visual Studio 2010 extension that displays a graphical nested representation of the current editor window code (C# and VB.NET). It helps the developer  visualize type nesting, implemented interfaces, regions, member type and scope, as well as  quickly navigate to their respective position in the code editor.
  9. VS10x Method Block Highlighter
    Highlight entire methods with a colored-marker-like (standard green, yellow, cyan or magenta) background.

Grooveshark for iPhone: Icon Fix

Don’t know about you, but the slightly offset icon for Grooveshark 1.x on the iPhone bugged me (yes, I really am that anal ;-), so I popped it into my image editor and tried to make it look a bit more like the stock iPhone icons by overlaying the glossy “button” look and adjusting the size to match the other icons I found.

Just click on the icon above, then save it to your desktop (or wherever) as Icon.png, then do the following:

  1. Connect to your iPhone via SSH, or use iPhoneBrowser (Windows).
  2. Navigate to the /Applications/Grooveshark.app folder.
  3. Replace Icon.png with the icon you downloaded above.
  4. Respring/reboot your iPhone, and when the Springboard comes back up, you should see the new icon. =)

One caveat: You’ll have to replace this icon using the steps above every time you get a Grooveshark update from Cydia/Rock/wherever until they fix the icon themselves, but it should work fine between updates.

Let me know if this works for you in the comments. Thanks!

(BTW, in case you haven’t installed Grooveshark yet, here’s a link to their information page: http://mobile.grooveshark.com/phones/iphone)

iPhone Restore Instructions: v3.1.2 + Jailbreak

Thought I might share a little guide I’ve compiled. Enjoy. =)

Restore + Jailbreak Steps

  1. Perform full restore from iTunes with stock 3.1.2 firmware
  2. When prompted to “Restore From Backup,” decline and choose Setup New iPhone…
  3. Download blackra1n, and run it to jailbreak the iPhone: http://blackra1n.com/
  4. Once Jailbroken, install Rock, Cydia, and Sn0w.
  5. Run Rock to update, and exit. Then run Cydia to update, and exit.
  6. Open Rock or Cydia and install MobileTerminal, Aptitude, and APT.
  7. Change your passwords for “mobile” and “root” users!
  8. Install OpenSSH and respring/reboot.
  9. Optional: Run the following commands to install the most used software through an SSH session:
    1. apt-get install bigbosshackertools com.ericasadun.utilities
    2. apt-get install rotationinhibitor sbsettingsinsomnia notifier irealquicksms
    3. apt-get install jp.ashikase.kirikae backgrounder us.scw.afctwoadd
    4. apt-get install com.weiphone.setwallpaper3 com.saurik.iphone.fid
  10. Performance Improvements: Remove unnecessary LaunchDaemons

    1. cd /System/Library/LaunchDaemons
    2. rm com.apple.DumpPanic.plist
    3. rm com.apple.ReportCrash.*.plist
    4. rm com.apple.CrashHouseKeeping.plist
    5. rm com.apple.aslmanager.plist
    6. rm com.apple.syslogd.plist
    7. rm com.apple.powerlog.plist
    8. rm com.apple.stackshot.server.plist
    9. rm com.apple.tcpdump.server.plist
    10. rm com.apple.iqagent.plist
    11. rm com.apple.mobile.profile_janitor.plist
    12. rm com.apple.chud.chum.plist
    13. rm com.apple.chud.pilotfish.plist
    14. rm com.apple.AddressBook.plist
    15. rm com.apple.datamigrator.plist
    16. rm com.apple.AOSNotification.plist
    17. rm com.apple.AdminLite.plist
  11. Performance Improvements: Remove unnecessary Language Packs

    1. apt-get install find
    2. updatedb; locate lproj | grep -E proj$ | grep -E -v -i ‘(en.l|English)’ > langpacks.txt
    3. while read file; do rm -rf “$file”; done < langpacks.txt

Microsoft Support: Console (CMD) Fonts

Update: You can use the following registry script to automate this process – just copy/paste the code block below into a text file called “Add Consolas to CMD.reg” and run it:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont]
"0"="Lucida Console"
"00"="Consolas"
RegEdit -  Console Fonts
RegEdit - Console Fonts

If you’d like to use an alternative console font for CMD.exe in Windows, check out the scoop from Microsoft Support on how to set it up…

The fonts must meet the following criteria to be available in a command session window:

  • The font must be a fixed-pitch font.
  • The font cannot be an italic font.
  • The font cannot have a negative A or C space.
  • If it is a TrueType font, it must be FF_MODERN.
  • If it is not a TrueType font, it must be OEM_CHARSET.

Additional criteria for Asian installations:

  • If it is not a TrueType font, the face name must be “Terminal.”
  • If it is an Asian TrueType font, it must also be an Asian character set.

In Windows 2000, the installation of Console Fonts is no longer automated. This was done to give the console window greater stability in multilanguage environments. An unsupported work around is available by adding the following font specific entry:

Add a String Value
Name=00
Data= “Font Name” (without “”)

Into the following registry:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont

The name needs to be incrimented with “0” for each additional font. The Data entry needs to match the font’s entry in the following registry location:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

via Necessary criteria for fonts to be available in a command window.

And, if you’re itching to find a nice replacement for Courier New or Lucida Console:

  • Consolas:
    If you have Windows Vista or windows 7, this is already installed, otherwise you’ll need to download the PowerPoint Viewer 2007 from Microsoft to get the font legally. (As an added bonus, the rest of the Windows Vista fonts come with it – see here for details: Download Windows Vista Fonts from Microsoft Office Website)
  • DejaVu Sans Mono:
    This font comes pre-installed with many current Linux distributions and is released under a free license, which makes this font arguably the best of the bunch. Find it here: http://dejavu-fonts.org/wiki/index.php?title=Download
  • Droid Sans Mono:
    Straight from the Android SDK comes the Droid Sans Mono font, which is quite similar to the DejaVu Sans Mono font listed above. You can grab this from the Android SDK download, or you can get it directly from the damieng blog here: Droid Sans Mono great coding font