Introducing Motion Controllers for Windows Mixed Reality

Microsoft have been using gestures like the air tap and bloom when interacting with the HoloLens, but when you’re in a fully occluded VR world, you need to be able to interact with your world without seeing your hands. This is done by using motion controllers, as seen by companies like HTC and Oculus.

Now it’s Microsoft’s turn to show how users are going to interact with the experience provided by Windows Mixed Reality. They are coming later this year and I can’t wait to get my hands on them.

Microsoft have a long history of creating new types of hardware to provide a consistent experience across third party devices. The original Microsoft Mouse was released alongside Windows Word in order to provide a way for users to move their cursor. Like the mouse it is in Microsoft’s interest to allow third parties to create their own motion controllers, but I expect that they’ll all be compatible and have the same technology inside.

Interestingly it seems that Microsoft has decided that they do not need to make these controllers work with the HoloLens – at least not with the existing version. The HoloLens hasn’t seen much in the way of software updates recently, so I won’t rule out the chances of them adding it in the future, but I get the feeling that Microsoft want people to use their hands for that device.

In my opinion we need these controllers for the HoloLens too – the Clicker is not enough… but that’s a story for another time. How do these new controllers work?

Optical Tracking

All of the Windows Mixed Reality headsets provide inside-out tracking – this means that each device will have the sensors required to track the world in the head-mounted display without any additional sensors or tracking devices around the room.

The new Motion Controllers take advantage of this technology to provide six degrees of freedom without any extra wires or mess. This also reduces the complexity of the controller, allowing for a complete tracking solution without being too expensive.

It’s worth mentioning that I assume there is some additional motion tracking in the controllers (so you can put it behind your back, for example), but the truly accurate measurements will be done optically when the headset have a line of sight to the lights around the controller.

Buttons

So what kinds of controls can we expect to have?

  • Windows buttons
  • Menu buttons
  • Trigger buttons
  • Grab buttons
  • Analogue thumbsticks
  • Trackpad surface

Currently, it’s unclear if the trigger and grab buttons are analogue or digital. Analogue buttons would enable the user to gently grab items as well as provide a wide range of trigger actions, much like accelerating in Forza when using an Xbox One controller.

I’m also super interested to know how well the trackpad surface can be used. It seems to have the ability to click, so it can be used much like a primary button too.

Watch the introduction video and see for yourself!

Console Tabs Coming to Windows?

I was overjoyed when I first heard that Microsoft would be improving the console in Windows 10 (yeah, really) and we’ve had a steady amount of updates since then – including a load of improvements in the Creators Update.

All the updates we’ve had so far have been great and all… but I’ve been begging to have tab support in the console. And yes I voted for it on User Voice!

This morning I saw a couple of interesting posts from Windows Central and MSPoweruser with reports of a “Tabbed Shell” interface coming to Windows 10 in a future update.

Obviously my nerdy mind immediately went to the command line. (See above for my mock-up of what it might look like.)

It suddenly becomes super-obvious that having tab support at the OS level makes so much sense. From an engineering point of view there is no point in having multiple teams working on their own implementation of tabs in Windows.

When something crashes you don’t want one tab to take out all of the others. With support built directly into the shell you can ensure stability and consistency across all applications.

Hopefully we’ll find out more at the Build conference next month… and hopefully I’ll be using PowerShell in a tabbed interface in the not too distant future!

Note: yes I know there apps which provide tabbed consoles in Windows. I’m really interested by Hyper, but it doesn’t feel ready for every day use yet.

Cortana – Two Years Later

Being a huge productivity nerd, I like to regularly review the systems I use to ensure that I am getting the best out of them. In December 2015 I sat down to do my yearly review of my productivity system. One of the tools I had on my list was Cortana.

Reviewing Cortana as a Productivity Application

Something about Cortana is different to other tools I use like Outlook or Wunderlist – the very nature of her being a personal assistant means that she’s more of a single interface to many other things, rather than just an “app for email” or an “app for tasks”.

The very fact I have chosen to refer to Cortana as “her” in this article proves that she’s not just an app to me.

It was obvious to me that I wanted to continue to use Cortana, but I also realised that I wanted to dig a little deeper into what makes her useful, and what I would like to see improve.

This month marks two years since I first started using Cortana, so I figured now would be a great time to step back and look at how my use of Cortana has changed over time and where things are going in the future.

Humble Beginning

I remember watching Joe Belfiore reveal Cortana to the world in April 2014. She had more personality than Google Now and was more personal than Siri. Microsoft’s entry to the personal assistant category was well anticipated and rumours had been circulating for a while.

Joe Belfiore introducing Cortana

My first real exposure to Cortana was on my Lumia 920. At first, I had to change my regional settings to the United States in order to get her fully functioning on my phone. There were a few side effects from making this change, but I immediately decided it was worth it in order to have this new experience.

“Hi, Cortana!”, April 2014

I asked her for facts, told her to make phone calls, and got her to remind me to do things when I arrived at various places. The speech recognition at this stage was extremely good and Cortana replied in the sassy American voice I recognised from the Halo series of video games. Because I was already invested in the Microsoft ecosystem, she already knew my calendar appointments and favourite locations. I was immediately comfortable and the animated circle became a familiar feature of my phone in no time.

Microsoft’s initial vision for Cortana set her out to behave like a real personal assistant – to be like a loyal employee. The aim was to build a proactive software agent to help people get things done. I felt that things were heading in the right direction.

Windows Phone 8.1

When Cortana came out in the UK properly, I naturally switched my regional settings back to UK English. Part of me was a little disappointed that Jen Taylor no longer voiced Cortana. In my eyes, she lost a little bit of her personality and became more formal with her ‘BBC English’ accent and mannerisms.

Cortana on Windows Phone 8.1

“Cortana comes to the UK”, August 2014

I eventually got used to it, but it did show me that the way a computer speaks to us is important to how the relationship works.

If we are to assume Microsoft’s vision of Cortana as a personal assistant or a loyal employee, I had been building a working relationship through this characterised interface over the last few months.

When Jen’s voice was taken away from me – I think I lost a little piece of Cortana.

Cortana on Windows Phone 8.1

Voice aside, everything was good and features got improved over time – events like the World Cup were added, general chitchat was updated regularly, and most importantly, Cortana got better at being predictive. Information was shown as soon as you tapped on her animated tile, bringing up traffic and weather information without even needing to ask.

Cortana Today

While I am still pleased with Cortana over all, I would be lying if I said I completely satisfied with the progress that has been made.

Cortana on Windows 10

Cortana has moved from Windows Phone 8.1 to a new unified Windows 10 platform that works on both the PC and phone, but along the way there have been some casualties in her features.

A lot of these casualties are cosmetic, for example, Cortana’s circle used to give a sad emotion animation when you had to edit some text that she’d failed to recognise correctly. This little detail was subtle but extremely powerful – a surprising amount of emotions can be shown with animated circles.

Cortana's Live Tile on Windows Phone 8.1

A more substantial example is that Cortana’s Live Tile (shown above) for Windows Phone 8.1 was actually useful – her circle shape would morph into a sunshine animation to let me know the weather, or she would show me when to leave the office in order to beat the traffic directly on my start screen without even loading her up. You could even pin individual items like weather or news as Live Tiles, acting as a deep link into Cortana directly from the Start screen.

Cortana's Live Tile on Windows 10

In Windows 10 this all seems to have disappeared. There is very little animation on the Live Tile (shown above) and the only information that ever appears seems to be the current news headlines – something which I have disabled due to the lack of customisable news sources. (Google Now has gotten really good at this!)

Asking “How many calories in a Coke?” used to work, but now it doesn’t. Why?
Who knows? she just forgot.

Possibly more a fault of Bing than Cortana – some relatively simple questions like “How many days until 2017?” do not work at all.

One of the most bizarre issues is that asking “What time is it?” takes me to a Bing search page, rather than having Cortana tell me the time.

Interestingly, when I say to people that this question doesn’t work as it should, I am often met with resistance. People often state that I can look at the time on my watch (or Band) but this completely misses the point of this interaction.

If I’m using my voice to talk to Cortana, I expect her to reply using her voice too. Strangely, asking “What time is it in Texas?” yields the time over the pond. Why can’t I just get the time where I am?

What time is it?

When she does reply with her voice, the experience isn’t that great anyway. For some reason the screen is always activated even for voice only replies. While this doesn’t negatively affect the interaction in most cases, turning the phone screen on while the device is in my pocket is a recipe for disaster. I don’t know why the proximity sensor isn’t used to make a decision about illuminating the display.

I have other issues too, but to keep this article from getting too long I’ll just list a some of them out:

  • She doesn’t understand how to spell my girlfriend’s name, there is no way to correct her.
  • I don’t work on public holidays! Stop telling me it’s time to go to work!
  • Saying “Hey Cortana” doesn’t always work. This needs to always work.
  • Microsoft Health integration is only in the US for some reason.
  • Cortana is unusable from Microsoft Band when using Windows 10 Mobile.
  • You can’t set a default location if your device doesn’t have a GPS (unless you use a Fake GPS driver!)
  • She doesn’t sync her tasks or reminders with Wunderlist.
  • For some reason she asks me where I live and work over and over again. Anyone else get this?
  • People in the UK obviously don’t need parcel tracking.
  • There is no way to remove awful news sources like the Daily Mail from turning up, so I have to disable all news features.
  • How does she still not understand Formula 1? It’s a big sport with a world-wide audience!
  • She can shuffle all my music, but can’t play music by mood? Who shuffles 10,000 songs anyway?

Okay, so this may sound like a long list of complaints but this is only because I want to see Cortana be truly great. I feel like the current iteration has been a step backwards in some ways.

Trip Planning

Cortana’s core functionality is still extremely useful and I regularly use her on my Lumia 950 XL and on my Surface running Windows 10.

Cortana in the Windows 10 Taskbar

I also use Cortana inside of Microsoft Edge. You can right click on an element and “Ask Cortana” about it. Note that she’s smart enough to take in the context of the whole page too. You can even do this for images.

Building Cortana directly into apps is one clear way that Microsoft can improve the platform and I’m looking forward to seeing more of this.

Cortana in Microsoft Edge

What we know is coming

Microsoft’s Build conference has just passed, and at it we saw a number of announcements on, what the company is calling, “Conversations as a Platform”. A big part of this strategy is improving Cortana.

Conversations as a Platform

Marcus Ash gave a great demo of some of the new features coming to the Anniversary update of Windows 10, including Cortana working on the lock screen, as well more Google Now inspired cards, and the ability to include more app integrations directly into actions which are surfaced directly in Cortana’s UI.

As part of his demo, Marcus showed some very interesting new experiences where Cortana was integrated into a previously unseen version of Outlook. Not only did Cortana have access to the calendar, she had access to email too – even surfacing tasks directly from email messages. I like the look of this proactive Cortana, and this is something that directly relates to my original task of trying to review what Cortana means for my productivity.

Cortana integrated in Outlook

Another useful feature was where Marcus asked Cortana “What toy store did I go to last year at Build?” and she found the toy store he visited last year when he was in San Francisco. The potential of this is really great and I like the idea of Cortana’s memory being improved.

The demonstrations shown in the keynote were only some of the upcoming Cortana features in the Windows 10 Anniversary Update. Other sessions throughout Build showed Cortana’s integrations in the Windows Ink Sticky Notes as well as the Action Center. Cortana will also manage some of the cross device features, like being able to do text messaging from a PC and getting notifications on the PC when the phone’s battery is low. She’ll also take on navigation duties in the Maps application – replacing the more generic sat-nav voice with her own.

Microsoft’s “Conversations as a Platform” strategy doesn’t just include Windows though, and there was a great demonstration of another application which is already commonly used for conversations – Skype.

Lili Cheng showed a demonstration of a future version of Skype which had Cortana directly built in. As part of this new integration, Cortana is always available and is able to keep track on conversations and contacts. This is similar to the proactive help offered using the Outlook integration mentioned above.

Cortana integrated in Skype

My favourite part of the demonstration was when Cortana was able to work alongside a third party bot in order to complete tasks. Using bots like this is something that interests me greatly – and there I will write more thoughts on this in the coming weeks – but I really like how Cortana can act as an agent in order to get things done.

Bots are going to be an important part of Microsoft’s “Conversations as a Platform”

What I’d like to see

In a lot of ways, the demonstration of Cortana working inside of Skype effected my thinking the most.

It’s now clear to me that the instant message-like conversation is a superior method for communication with Cortana. While I do like the proactive canvas which is launched when you open Cortana in Windows, having a single entry box and an answer that just disappears into the void is extremely unsatisfactory. Moving from the simple “Ask me anything and get a result” interface into a back and forth conversation will unlock so much potential in Cortana – it will be a lot more how you’d talk to someone (like a personal assistant) over Skype.

Conversations with Cortana

But just having a list of messages sent back and forth is not enough – Cortana has to remember the conversations we’ve had. That way, when I correct her on spelling my girlfriend’s name, she’ll remember it for next time. It’ll give her the context to make the best decision on the instruction I have given her via my voice.

When you think about it, it’s pretty crazy that Cortana can go through my calendar and look things up, but can’t remember things in the conversations we had.

I’d also like to see Cortana integrated into the Microsoft Band more deeply. There were hints at this kind of feature in the Microsoft Future Vision video from 2015. It depicted a future version of Cortana sensing that the user had gone “into the zone” and automatically blocked unwanted distractions.

“Future Vision Redux”, November 2015

It’s also pretty obvious to me now that the voice interface in Cortana needs to move into a more natural language model. When I talk to her through my headset I’d like her to be able to continue the dialog without me having to switch to my phone. All of this conversation should go into the same chat history which she’ll remember and can be used to improve conversations over time. This will also unlock completely voice only devices like Amazon’s Echo.

I’m still a fan

Overall, I do still enjoy using Cortana, but I feel like the upgrade from Windows Phone 8.1 to Windows 10 has not been kind to her.

I hold out hope that Windows 10’s position as the base version of Windows moving forward means that the days of the big platform changes are over, and the various teams working on Cortana can continue to do so without having to rewrite components over and over again.

Cortana will continue to be part of my daily workflow and will continue to be one of my main tools for productivity.

I wonder where we will be in another two years.

Highlights from Build 2016

Satya

Even though I have never attended a Microsoft Build conference in person I always learn so much from them.

Every year there are new platforms to try, lots of documentation to read, and many presentations and recoded sessions to watch.

I still have a lot of videos to watch, but here are some of top announcements from Build 2016 which matter to me the most as a developer.

Windows 10 as the best OS for Developers

A number of new features coming to Windows 10 in the “Anniversary” update were shown in the day-one keynote, and then even more features where shown at sessions throughout the conference. Solid improvements to the inking, biometrics, and the Action Center were all well received.

Windows Ink

Many of the features shown help fix minor annoyances in the system. For example, pressing on a live tile showing a preview of a news article can now take you directly to it, and notifications dismissed on the PC or tablet will automatically get dismissed on the phone too.

One of the most exciting new features was the addition of Bash (on Ubuntu) on Windows which is both technically very interesting and extremely useful for many development workflows. The new Ubuntu subsystem will allow any (command-line) Linux application to run natively on Windows. This instantly unlocks a massive amount of tools and utilities for developers, making common scenarios significantly easier from Windows.

Bash on Windows

As a huge fan of command line interfaces I’m going to go into this in more detail in a future article – but essentially Microsoft are positioning Windows to be the ultimate developer platform, no matter what operating systems you use for your solutions.

Azure is growing up with more data centres and services

Microsoft would prefer you use Azure when you deploy your applications though, and the day-two keynote showed that is still serious about the cloud.

Improvements which interested me the most included Azure Functions, Service Fabric, Containers, DocumentDB, and much, much more.

Azure

Azure is the future of Microsoft, and by the numbers they going strong. They’re expanding their datacentres and really betting big on the cloud. This is no surprise to Microsoft watchers, but it’s good to see steady improvements here. Many of which I will use.

Visual Studio keeps getting better

I spend absolutely huge amounts of time in Visual Studio so any improvements here have a very positive effect on my productivity.

Visual Studio 2015 Update 2 was released (with lots of improvements) and an early preview version of Visual Studio vNext was also shown. I’ve tried both and they’re definitely going in the right direction for me.

Visual Studio

I’m especially looking forward to some of the improvements coming in the Visual Studio installation experience moving forward. This should make setting up new development environments much faster, and the side-by-side installations means there’s much less risk when installing previews.

App development for Windows, iOS, Android

The mobile app development story from Microsoft is stronger than it ever has been. This year brings a number of improvements to the Universal Windows Platform (UWP) itself, and a more integrated store experience which now includes the apps on the Xbox One and HoloLens.

The Desktop App Converter lets you wrap up existing Win32 and .NET apps into UWP packages, allowing access to new features like UWP APIs – including Live Tiles. Even though I don’t currently develop any Win32 or .NET applications that I want to put in the store, this is an important step and I’m looking forward to the benefits of this as an app user.

Xamarin

For targeting non-Windows devices, the Xamarin platform is now the obvious choice. After recently purchasing Xamarin (and their amazing talent) they’ve decided to make Xamarin available for no extra charge with Visual Studio. And that includes shipping it with the free Community version. Very cool.

The combination of UWP and Xamarin means I can directly apply my C# and .NET skills to making applications for a wide range of platforms, sharing many code components. It’s really coming together nicely.

.NET and the continued move into Open Source

As well as making Xamarin’s development tools free to Visual Studio users, the folks over at Microsoft also announced their intention to open source the Xamarin SDK (including the runtime, the libraries, and command line tools), and give the governance of it over to the .NET Foundation.

Mono, the cross platform and open source sibling of the full .NET Framework has also been re-licenced to be even more permissive, and given to the .NET Foundation. (To be honest I actually thought this was already the case!)

.NET Core, the future replacement of both the .NET Framework and Mono, also saw steady improvements – my favourite of which was official F# language support:

$ cd hellofs/
$ ls
$ dotnet new --lang f#
Created new F# project in /home/julian/hellofs.
$ # I can now dotnet restore and run this F# app using .NET Core!

The Future of Cortana and Conversation as a Platform

So far everything I have mentioned has been mostly around solid updates to existing platforms, but this year’s Build included a slightly different way of thinking about productivity with the idea of Conversation as a Platform.

Conversation as a Platform

The Microsoft Bot Framework provides templates for creating bots with C# and JavaScript, as well as connectors to simplify their interaction with services like Slack and Skype. When linked with the new Cognitive Services, these bots can understand natural language and perform tasks for the user.

build-cortana

The demonstration of talking to Cortana through Skype was very interesting – where essentially Cortana can act as a broker between the user and other bots on the Internet which can act as experts in their field. I found this very compelling, and something I can see myself using.

As this is as subject that interests me greatly, I’ll be writing more about this over the next week or so.

And everything else…

Of course, there’s no way I could summarise everything I looked at so I have skipped a number of cool announcements ranging from Microsoft Graph to HoloLens.

The hard-working folk over at Channel 9 have videos for many of the events and topics, so be sure to check them out if you’re interested. I’m very thankful that these videos are all made available for everyone to watch, I really enjoy watching them.

Using Docker with Hyper-V: the easy way

Docker is pretty cool, but there’s one thing that always gets in the way for me.

The default installer sucks.

Installing Docker using the Windows version of the Docker Toolkit means it installs multiple things on your computer:

  • The Docker command-line tools (hooray)
  • Virtual Box (boo)
  • Kitematic, a user interface (only works with Virtual Box… so also boo?)

As I use Hyper-V as my virtualization platform of choice, Virtual Box is completely redundant. More than that, it’s an annoyance. They’re incompatible with each other.

Obviously this was no good for me, so after a bit of messing around I have found my preferred method for getting Docker up and running on own workstations using Hyper-V.

As is always the case with these things, this may not be the best way for everyone. But if you’re interested, here’s what I did:

Note: the following assumes you have some knowledge of Windows and PowerShell in order to keep the instructions brief.

Setup Hyper-V

  • Ensure you have Windows 8.1 or 10 Professional
  • Ensure you have Hyper-V installed
  • Create an external switch called “External Switch” (if you don’t have one)

Get the binaries

  1. Get docker.exe client from: https://github.com/docker/docker/releases
  2. Get docker-machine.exe from: https://github.com/docker/machine/releases
  3. Put them in a new ~\Scripts\Docker folder

Update your PowerShell profile.ps1 file

Make sure you can get to your new commands by using an alias or add the folder to your PATH, either works:

Set-Alias docker            "~\Scripts\Docker\docker.exe"
Set-Alias docker-machine    "~\Scripts\Docker\docker-machine.exe"

And then add some variables to be used by default, like the network switch and memory allocation:

$env:HYPERV_VIRTUAL_SWITCH  = "External Switch"
$env:HYPERV_MEMORY          = 2048

Create and configure your machine

After this you should be able to create a new boot2docker VM on Hyper-V:

PS> docker-machine create -d hyperv default

Once that’s up and running you’ll need to set your environment for the Docker client:

PS> docker-machine env --shell=powershell default | invoke-expression

Try out a container

Working? Great! Try running something, like the new .NET Core container:

PS> docker run -it microsoft/dotnet:latest

Update

Looks like there will be an even easier way to do this moving forward, thanks to an upcoming release of Docker for Windows which will use Hyper-V by default. (Yesssss!!!)

Find out more through this handy article from Scott Hanselman.