Chrome Remote Debugging Nexus 7 on Windows 8

After running into issues with the instructions on the official Google page for Remote Debugging, I had to do some sleuthing to figure out how to make Windows 8 run remote debugging of my Nexus 7.

The trick (as usual) is drivers. If you’re running the “adb devices” command and coming up with no devices, or perhaps you’re running the full “adb forward tcp:9222 localabstract:chrome_devtools_remote” and getting “Device not found”, even after typing in “adb kill-server” … then you’re in the right place.

  1. Plug in your Nexus 7 and follow the instructions on the official Google page for Remote Debugging. Basically download and extract the Android SDK, set up your device for USB debugging, and set up Chrome for web debugging
  2. In Windows 8, right click in the bottom left side of the screen (where the “Start” button used to be). Click “Device Manager”.
  3. You should see a Nexus driver with a warning triangle like this nexusdriver
  4. Click “Update Driver”, and select “Browse my computer for driver software”.
  5. Find the folder where you installed the Android SDK and choose the folder: /sdk/extras/google/usb_driver. Make sure you keep “Include subfolders” checked.
  6. Your drivers should be successfully installed
  7. Now go to command line and run “adb kill-server” followed by “adb devices” and you should see your Nexus like so:Untitled

Hope that helps you along. Happy debugging,

Mike

 

Damn you Windows Server 2012!

Recently I set up a dedicated server with SoftLayer as a hosting provider. They offered the choice between Windows Server 2012 and 2008. When trying to find documentation on the versions of 2008, I noticed an interesting thing – Microsoft has removed all documentation for Server 2008! Here, give it a try.

  1. Google “Windows Server 2008”. Other than Wikipedia the first link is “Windows Server 2012”.
  2. Visit this Technet link for Server 2008 documentation. Click “Windows Server 2008 R2 Editions Overview”. Where you do get? “Windows Server 2012: How to Buy”

See what I mean? I even chatted with a representative on their website who basically told me to fuck off and buy Server 2012 already. Refused to provide any information on the versions of 2008, or where I could find reliable information.

 

Continue reading

PHP IIS7 Web Platform Installer 3.0 Unsupported OS Error!

OK, so while trying to install PHP 5.3 on IIS7.5 from this page I kept getting an error message saying that I was not using a supported operating system. The issue is that I was using Windows 7 (and later Windows Server 2008) which are both supported operating systems. I don’t have a screenshot of the error, but if you’re reading this – you probably know what I mean. This can’t be an isolated issue and maybe reveals a deeper issue with Microsoft’s bad OS detection mechanism.

How did I fix it? Pretty simple actually. It turns out that I had Web Platform Installer 2.0 installed. The PHP IIS site uses WPI 3.0, so maybe there is a version incompatibility. To get around it I went to Internet Information Services (IIS) Manager, and double clicked “Web Platform Installer” under Management. This did a quick upgrade to 3.0, and then I was able to download PHP 5.3.5 in a snap from the Window that comes up!

Basically – don’t use the website to install it.

Note: Another useful product to install with WPI is “Microsoft SQL Driver v2.0 for PHP v5.3 in IIS” found under “Products”>”Database”. This allows you to easily connect PHP to a SQL Server database using PDO.

God almighty that was a lot of acronyms. I count 6.

Chow,
-Mike