There’s a Blue outline in Windows 8.1

Posted November 4, 2014 by Tom Krueger
Categories: Uncategorized

Some how I managed to get a blue outline appearing on every control that I click into or gets focus on Windows 8.1.  It was an easy fix once I found the answer.  Turns out I turned on the Narrator.

Solution:

You can turn off the blue box by pressing caps lock + esc keys together.

 

 

Fixing POSTestNativeUtils Reference to work in Emulator and Device

Posted February 4, 2014 by Tom Krueger
Categories: Windows Embedded 8 Handheld

Tags:

Late 2013 Microsoft released Windows Embedded 8 Handheld OS that adds capabilities on top of Windows 8 Phone (GDR3).  One notable feature in particular is the Barcode Scanning api’s.  Included in the SDK is a dll called POSTestNativeUtils.dll that has a FakeScanner helper to assist in simulating barcode scans when running in the emulator.

I found that the emulator was running as x86, however, the device I am using is running as ARM.  This created a painful experience as you can only reference either x86 or ARM version of POSTestNativeUtils through Visual Studio User Interface.

Error

If referencing the ARM dll and trying to run on the emulator you will see an error like this.

“Deployment failed because an app with target platform ARM cannot be deployed to WE8H Emulator WVGA. If the target platform is win32/ x86, select an emulator. If the target platform is ARM, select Device. ”

Solution

To solve this update the csproj file to add the reference based on a condition.

<ItemGroup>
  <Reference Include="POSTestNativeUtils" Condition=" '$(Platform)' == 'ARM' ">
    <HintPath>..\..\Lib\Win8EmbeddedHandheldSDK\v8.0\Libraries\arm\POSTestNativeUtils.winmd</HintPath>
  </Reference>
  <Reference Include="POSTestNativeUtils" Condition=" '$(Platform)' == 'x86' ">
    <HintPath>..\..\Lib\Win8EmbeddedHandheldSDK\v8.0\Libraries\x86\POSTestNativeUtils.winmd</HintPath>
  </Reference>
</ItemGroup>

References

Hope this helps!

Case Sensitive SQL

Posted September 27, 2013 by Tom Krueger
Categories: SQL Server

Tags:

In SQL Server you can use COLLATE Latin1_General_CS_AS in your SQL to perform case sensitive queries.  However, if you need to do case sensitive queries you may want to consider altering the column so that it is case sensitive.  If that is not an option, here is how to use SQL.

How to select case sensitive:

select *
  from TableName
where FieldName = ‘xYz COLLATE Latin1_General_CS_AS

How to group by using case sensitive:

select FieldName COLLATE Latin1_General_CS_AS, count(*)
  from TableName
group by FieldName COLLATE Latin1_General_CS_AS

Move from GitHub to TFS Git Repository

Posted May 13, 2013 by Tom Krueger
Categories: TFS

Tags: ,

I really like Git and GitHub, but I love TFS.  Now that TFS has a Git repository I wanted to make the move back over to TFS.  Here are the steps to move from probably any Git Repo to TFS Git.

  1. Create a Git Repository in TFS
  2. Set your Alternate Credentials in TFS. TFSAlternateCredentials
    Click on Code
    Select Clone from Right
    Click Profile
    Set User Name and Password to be used later
  3. Open Git Command window such as Git Bash
  4. Move to a directory that you want to clone your code to for the transfer.
  5. Clone your GitHub repo locally.

    git clone https://github.com/%5Busername%5D/%5Bproject%5D

  6. Rename the GitHub remote repo to upstream

    git remote rename origin upstream

  7. Set the TFS Git remote repo as the origin

    git remote add origin https://%5Baccountname%5D.visualstudio.com/DefaultCollection/_git/%5Bteamproject%5D

  8. Push your changes to TFS Git

    git push origin master

At this point you should be able to see your commit history in TFS Git repository.  Beautiful right?  I haven’t tried it yet, but I believe you can keep your original GitHub repo if you want and pull in changes with the following commands.

  1. Pull from upstream which is your GitHub repo.

    git pull upstream master

  2. Push the changes to origin which is TFS Git.

    git push origin master

Let me know if it works out for you.

 


Syncing Google Drive with Multiple Google Accounts

Posted December 18, 2012 by Tom Krueger
Categories: Uncategorized

Tags: ,

If you are like me and have multiple Google accounts for different things that you are involved in, you likely have run into an issue with syncing files from all of your accounts to a single computer.  As far as I know Google Drive can only sync 1 account to your computer.

Here is how I am setup to make the sync work, however, there are limitations.  Basically I setup a personal account that I use for my Google Drive Syncing. Then I share folders or documents from all external accounts to my personal account.  The trick here is to keep things organized once it is sync’d so that I don’t have two accounts colliding in the same folder 1) making a mess of documents and 2) potentially syncing documents to other accounts inadvertently.

Steps

  1. Create central Google account.  I use personal account for this.
  2. Install Goggle Drive and connect it to my central account.
  3. Test the syncing for good measure.
  4. Login to other Google account and share files or folder with my central account.
  5. Go back your central account and create a container folder in My Drive for the other account.  This is the key point to keeping things separate.
  6. Go to Shared With Me and drag the items that you shared into the folder you created in My Drive.
  7. Whola, everything should be sync’d locally in a few seconds.

Limitation
The issue with this approach is that if the other Google account does not allow sharing outside of it’s Organization, then you won’t be able to share with your personal central account.

If you run into this, I believe there are other syncing products available.  If anyone can suggest one, please comment.  Also please comment if this works for you or have other suggestions.

Migrate Azure Service

Posted October 2, 2012 by Tom Krueger
Categories: Windows Azure

Tags:

If you are looking to migrate a single azure service to a different account you can find the steps I took here.  First, you might want to consider having Microsoft do it for you.  Take a look at How to transfer your Azure site to another subscription for more information on that.  I wanted to control when things happened on my timetable so I chose a different path mainly so I could coordinate re-pointing my domain.

In my case I have a web application and SQL Database that I will be migrating.

  1. Move your database.
    Microsoft provide a nice feature in the old portal for moving your database.  It actually isn’t a move, it is just changing the owning subscription, so the connection string stays the same, and it only takes two seconds.  R Syam Kumar has a nice post on it on the Windows Azure Blog.  In order to perform the move you will need to have access to both your subscriptions in the Management Portal.  I accomplished this by adding one user as a co-admin on the other subscription.  Then login with the user that has access to both subscriptions.  Note: This all needed to be done in the old azure management portal at the time of writing.
  2. Create Services in the destination subscription such as a Cloud Service or Web Site.
  3. Publish your services to the destination subscription with the same package you have on the other subscription.
  4. Test it to make sure everything is working on the destination using the xxx.cloudapp.net url.
  5. Point your domain to the destination subscription.
  6. Wait for it to take affect.
  7. Delete the old services after a few days.  Allow time for cached DNS to catch up.

Up until the point that I found the tool to move the database this was going to be a bit more difficult likely including a short amount of downtime.  Kudos to the Azure team for adding that feature.

FlixPicks is live in Windows 8 Store

Posted September 26, 2012 by Tom Krueger
Categories: Windows 8

Tags: ,

Good news,

The Windows 8 App that I have been working on, called FlixPicks, is live in the Windows 8 Store.  I am looking for Windows 8 early adopters willing to give feedback.

This slideshow requires JavaScript.

How to find it

Where to send feedback

Please give it a try.  If you love it, please rate it up in the store.  if you don’t please let me know why and I’ll fix it.


Follow

Get every new post delivered to your Inbox.