I’ve mentioned before that I like to offload some of my development and productivity tasks to Virtual Machines running on Microsoft Azure. On these machines I like to run Visual Studio, Office and any other apps I need so I can be productive anywhere.
One of the apps that helps me be productive is Cortana, so I was pleased to get her up and running on my Windows 10 VM.
Cortana can helpfully give you reminders and recommendations based on location, but can you guess what the problem is when using Cortana on a VM in Azure?
The location services think I am currently located in Redmond, Washington. Oh dear.
The cross devices functionality of Cortana gets very confused because of this. When I’m using my phone she thinks I’m in Leeds, but if I switch to using the VM she thinks I have suddenly appeared in the United States.
I had a think about how best to approach this issue, and currently I’m trying out a solution which seems to work well: using a homemade Fake GPS driver.
I went through the code in the Windows DDK and found an example for creating a GPS driver. Rather than getting the data from a real hardware devices, I hard coded the latitude and longitude. Once I had it set up in exactly the way I wanted, it was just a matter of compiling the C++ for Windows 10 and getting it installed.
Now this Fake GPS driver simply returns the geolocation coordinates which I want, and Cortana thinks that I’m in Leeds. Sorted!
This isn’t a perfect solution. For example you have to switch your OS to run in Test Mode, and obviously the location doesn’t automatically change depending on where you are. However my initial use shows me it’s way more useful than just letting the OS guess the location from the IP address.
If people are interested in trying out this solution for themselves, I’ll share the code on GitHub. It shouldn’t be too tricky to add an interface to set the location as required.
The Build 2015 conference has just taken place in San Francisco.
Like last year, this has been another huge event for Microsoft, and a big deal for the people who build solutions using their technologies.
There have been way more interesting things happening than I can possibly cover in one article, but I have decided to cover the three most important to me:
.NET, Windows and Azure.
An exciting future for .NET and Open Source
The future of .NET is the continued push to an open source .NET Core, which is at the centre of both the latest ASP.NET runtime and the Universal Windows app platform. In the future, this will expand and include other application types. In my opinion, they’ve picked the right place to start.
Applications running on the CoreCLR can be developed and deployed on cloud and server-based infrastructures running different operating systems including Windows, Linux and OS X. I have been watching the development efforts on GitHub for a while now, and I’ve set it up on my own machines running both Windows and Linux. It sure is a sight to see.
As well as the core runtime itself going open source, other technologies like Roslyn have enabled products that many wouldn’t have guessed would see the light of day. Having an open source compiler platform has enabled Visual Studio Code – a new cross platform text editor with Intellisense – to be built.
I was lucky enough to see Visual Studio Code before it was announced, and it changed the way I thought about collaboration with Mac users instantly. I’ll have more on this new text editor soon.
With the RC of Visual Studio 2015 there have been some big improvements in the languages supported including both the more traditional C# and Visual Basic, and (my personal favourite) F#.
The Visual F# improvements in ‘every day’ activities are dramatic for anyone who has been using the language. This is all thanks to the new open source attitude, and the amazing community around F# who have helped to develop the Visual F# tools on GitHub.
This new world of cross-platform and open source .NET technology is going to enable some amazing scenarios for .NET developers like myself.
Universal Windows apps scale from the smallest phones and Internet of Things devices up to the large screens of the Xbox One and the Surface Hub. The most ‘universal’ of these apps are built with just one binary which includes a scalable UI. This allows you to even have the ‘desktop’ app experience when used on a landscape 5.7 inch phone, or when plugged into an external screen using an amazing new Continuum for Phones feature.
For app developers there are some interesting (and controversial) new ways for software venders to build for Windows. The biggest of which are the bridges from Android and iOS. These two are extremely important for the phone and work especially well for iOS games which don’t rely too heavily on the operating specific UI elements. Combined with the bridges for ‘classic windows’ apps and websites using Microsoft Edge, the Store should get a lot more apps on this Windows 10 wave of releases.
From a user’s view, Windows 10 has really rounded out, with the latest Insider Preview feeling a lot more polished than any of the previous builds. Seeing HoloLens run standard Windows Universal apps was a big deal too.
I’ll have more thoughts on these in the future as the Insider Preview continues, and more information for HoloLoens is released at E3.
Microsoft <3 Docker and other Azure improvements
Azure, and the Microsoft Cloud in general, continue to amaze me. Microsoft has managed to embrace this new way of building (and selling) software in at breakneck speed. Additional services were added throughout the platform all the way from storage and networking, to analytics and machine learning. Way too many for this article.
Two of the biggest highlights were the ability to run the complete Azure Stack locally, and Azure’s new Data Lake features too, something which Amazon has had a lot of success with.
For me though, the most interesting changes were around Docker support across Windows and Azure. Docker has been on my radar for a while, but I have yet to use it in production. I have plans to do so in the not too distant future.
A bit like something out of their Future Vision videos, Microsoft’s Windows Holographic software and HoloLens hardware look to enable many of the augmented reality dreams technologists like myself have been imagining for years.
Truly I’m excited about this platform, and I’m keen to try out the product as soon as I possibly can, but I still have a large amount of questions.
What happens if you put your hand ‘in front’ of a hologram?
If you have a virtual 80 inch TV screen – what resolution does it have?
Can you stream Xbox games to it?
How long does the battery last?
Can other people hear the audio from the speakers located on the side?
How hot is the air that comes out of the vents?
How well does it work with glasses?
Will there be a holographic version of PowerShell?
It may be a while until all our questions are answered, but until then I’m going to simply imagine the possibilities this new form of computing will bring. Check out the videos below and have a look at Microsoft’s website to get an idea of what’s coming.
As someone who is always trying to simplify and keep things minimalistic, I always question new technologies to decide if they’re really worth investing in. One part of my believes I already have enough computing devices, but another part yearns to try new technology and find new ways to interact with the digital world. The HoloLens definitely seems like something I’m going to want to experience.
Will it be a success? Only time will tell. But future versions of the hardware will no doubt be smaller, and have better field of view. One day this kind of thing will simply be built into a normal pair of glasses – but that’s a little way off.
Now that the second preview build of the Technical Preview of Windows 10 is out, I decided the time was right to share some of my initial thoughts on this early preview for Windows 10.
First of all, it’s important to understand that, for casual computer use, I was very happy using Windows 8.1 on my Surface Pro 2, both on the touch screen and when plugged into a monitor, keyboard and mouse. I didn’t just “put up with Windows 8” like many folk seem to. I embraced it and it changed the way I used a computer.
I embraced Windows 8 and I loved using full-screen apps at home
Simplicity is something I am always striving for. For example, I don’t have any icons on my desktop and I only pin the minimal amount of apps to my taskbar. The majority of the apps I used at home were ‘modern’ full screen apps. This means that I could have Xbox Music playing in the background with no icon in the task bar or any other visible UI unless I have it snapped to the screen. I understand that for some users this was mind-blowingly hard to understand, but I liked the simplicity.
With Windows 10, performing a task, like listening to music, means that there is an icon in the task bar. This is better for the majority of users, but for me it takes some getting used to.
Using Windows 10 is already better for multitasking and getting things done
The first two builds of the Technical Preview have been focused squarely on the experience in the enterprise, and specifically, use with a keyboard and mouse inside of the desktop environment. Here are where things really shine in Windows 10.
Unlike the way I was using full screen Windows 8 apps at home, I use multiple screens and desktop applications when I’m at work. Three screens means I can multi-task between development applications like Visual Studio, SQL Management Studio and PowerShell at the same time, but I still have to minimize and swap windows around when switching to communication and note taking applications like OneNote and Outlook.
Windows 10 includes some fantastic virtual desktop features which help around this, and I’m really looking forward to running Windows 10 at work. I could use the Task View to switch between these two logical tasks rather than minimising multiple windows.
Unfortunately the Windows team couldn’t get everything done in time for the first preview. The biggest things that are missing for me are around using the touch screen, and modern apps in full screen. The good news is that we do know that future builds will include features like Continuum, that are specifically designed for hybrid computers like the Surface.
Touch screen is still coming, and hopefully it will be as great as the desktop
With two builds already, it seems that the velocity is pretty fast. I’m looking forward to getting my hands on new features. Windows 10 is shaping up to be one of the most important versions of Windows ever – in terms of both the features and the speedy development process.
It’s true, the Windows command line is making a comeback.
With Windows 10, a number of ‘experimental’ options have been added to the console host which work with both the classic cmd.exe and PowerShell. This includes features like CTRL-C and CTRL-V for copy and paste, plus new text selection hotkeys, resizing, transparency and more.
In the dawn of time, the original Windows console was created. For millenia, geeks and developers (typically both) steeled their nerves and leveraged the console’s utility. After a (very) short time, a great lacking was noticed. And so, legions of ever intrepid command line mavens migrated to other platforms and other consoles, ‘til but a stalwart few remained. Now, today, with a small rumbling, the ancient, weary console heaves a great sigh and rises. The journey to legitimacy has begun.
If these kinds of features are important to you, don’t forget to give your feedback to Microsoft so that they know that the command line is still relevant in 2014.
As a big user of software and services in the Microsoft ecosystem, finding out about the next version of Windows is always exciting. Yesterday, we got our first official look at Windows 10, and while we didn’t learn about many features which hadn’t already been leaked, we did finally get to hear Microsoft’s plan for its next generation Windows platform.
The official picture above teases how this single release of Windows will feature multiple interfaces the operating system itself, scaling from the Xbox One and the large Perceptive Pixel multi-user business display, all the way down to embedded devices, phones and small tablets.
From a developer point of view, Windows 10 will support a new universal app model that spans across multiple devices. This means that an application can be written only once to run across all of these environments, end-users will only have to purchase the application once to use it everywhere. Universal apps for Windows 10 will probably be very similar to the ones announced at Build earlier this year.
New features like Task View and Snap Assistant are included in the technical preview, but the more obvious user interface changes look like they are still to come. For example, Continuum is a set of features which enable hybrid devices to switch between touch and desktop modes automatically, just by attaching or removing the keyboard.
As part of the rebranding to MSN, the fantastic Health & Fitness app gained a number of smaller features, and lost one big one: synchronisation to Microsoft’s HealthVault medical data backend.
HealthVault first started back in 2007 in the United States as a medical storage system designed for families to share data with doctors and medical institutions. It expanded in 2010 to include the United Kingdom with grand plans to integrate the service into the UK’s National Health Service. It seems that these grand plans were never realised, as I’ve never been able to get access to my NHS data this way.
In my opinion, today’s removal of the HealthVault synchronisation is probably for technical reasons, but it may signal the beginning of the end for the service. I can’t imagine Satya’s Microsoft keeping two competing health platforms up and running for long. Especially with new competitors outside of the company from the likes of Apple’s HealthKit and Google Fit.
I was involved in a small private beta of the Health & Fitness app for Windows Phone in an effort to try and reduce the serious amounts of crashing that would occur on the app when tracking exercise with the GPS. It’s also no shock to anyone that has used it that entering information and waiting for it to synchronise was a slow process.
Synchronisation is super-fast on the new Health & Fitness app and the newly designed Azure-powered backend is probably a big factor in that speed, especially when compared to the aging HealthVault platform API.
The diet and cardio information entered into the app is also available on the new MSN portal that launched today. This is also super-fast and responsive. It’s no wonder they’ve made this decision for end users.
Finally, there is a possibility that MSN’s new cloud backend will eventually end up synchronising directly with HealthVault, rather than going through the device-based clients as it used to. But it seems doubtful based on my understanding.
Since writing this article, Microsoft Health has been announced. Microsoft has confirmed that backend data from this new health insights engine will be able to export to HealthVault. I can only assume that MSN’s Health & Fitness data will be updated to feed into Microsoft Health, and eventually into HealthVault. At the moment, this isn’t happening, but I’ll update the post if/when it is up and running.
Any application that shares the right kind of information can be used with Reading List, but the applications I use most often are Internet Explorer, Flipboard and the Bing applications.
When you share an article to Reading List it asks you which category to use. I have set myself up with categories for software development resources, health and fitness information and general inspiration for life and work.
Adding articles on either Windows or Windows Phone will use your Microsoft account to synchronise automatically. This is completely seamless in both applications – meaning there are no options to configure these settings at all. I’m quite happy with this, but I know that some power users would prefer the option to choose how the information is synchronised with their computers.
When you use the application on Windows, clicking on one of the articles will open up another window next to the snapped reading list. I love this feature, and it really goes to show the strengths of multitasking with the modern interface in Windows.
Doing the same on the phone just opens Internet Explorer, the related application, or prompts you to search the store if you pick something that is incompatible. For example the Bing Wikipedia app isn’t currently available on Windows Phone, so clicking articles from this app prompt you to search the store.
The addition of the Windows Phone version of this application has really increased its use for me, however it’s obvious uses are diminished when used with older versions of Windows.
At work I use Windows 7 for my development machine, and there’s no way I can share interesting links found here with my Reading List. While I’m not expecting Microsoft to create a desktop app, a simple bookmarklet or browser extension would certainly do the job for collecting new articles to be read later.
I have been using Vim on Windows since I switched to 64-bit and edit.com stopped working. Originally I just used the console version inside of PowerShell or the standard command line. In the last three years I’ve been favouring Gvim as my go-to text editor for smaller scripts and utilities.
I know for a fact I’m not using everything Gvim or Vim has to offer, but I’m quite happy with the way it works. For example, I have line numbers turned off, but I can turn them on very easily using a quick :set nu.
Very powerful, very fast.
There are some things I absolutely hate though. For starters, what’s this horrible border on the inside of the window, and how can I make it disappear without hacking the whole application and recompiling it? This isn’t Windows 95.
Neovim promises to be a refactoring (and reimagining) of the Vim text editor using more modern techniques. The plan is to have the core Vim functionality moved into a new library, which will allow the interfaces to be separated out in a modular way.
Modern GUIs written in high-level programming languages that integrate better with the operating system. We can have GUIs written using C#/WPF on Windows or Ruby/Cocoa on OS X, for example.
True they’re not saying they will write a GUI using C# & WPF, but someone can. And I like the sound of that. Of course, it’ll be open source – and I’ll be able to edit the XAML to have no borders at all, if I like.
Also, here’s hoping we get better PowerShell integration out of this too.
It could be huge.
So, will Neovim rock on Windows? I sure hope so.
I always keep an eye on the Neovim project and recently I though I’d try out the Neovim-QT frontend which actually builds for Windows. Purely from an aesthetic point of view, I think it’s awesome already. But even now (over a year after this original post) there is a long way to go.
The Build 2014 conference took place in San Francisco last week, where thousands of developers and designers came together to learn all the latest information about what it means to use Microsoft development tools, and build solutions that run on Microsoft platforms.
I have over 137 GB of videos yet to watch, but I can already say that it has been one of the best Microsoft developer conferences to date.
Here are my thoughts so far, with a few links to some of my highlights.
.NET is alive and well – and becoming more open
It’s almost as if they asked .NET developers what would make them really happy, and set about doing all those things. For me, personally, I was most excited by the promise of open-sourcing even more of the framework, including the brand-new compiler platform (Roslyn) that has been years in the making.
Initiatives like .NET Native will allow applications built with C# and Visual Basic to get much closer performance to applications created with C++. Starting first with Windows Store apps, these architecture specific binaries will increase performance at runtime without losing the productivity of developing with the architecture-agnostic .NET Framework.
Roslyn and .NET Native are in preview, and won’t be completed until the next version of Visual Studio. But there have also been a wide range of updates to the ASP.NET web platform, MVC, Entity Framework and way more – most of which are either available now with Visual Studio 2013 Update 2, or can be downloaded using packages from NuGet.
Cortana – the new assistant built into Windows Phone 8.1 – was the highlight of the show. There had been rumours of Microsoft’s answer to Siri and Google Now for quite some time, so a lot of the information had already come out. But still, it was great to see Joe Belfiore talking to her publicly for the first time, confirming what Halo fans were waiting for: yes she is called Cortana, and yes, she sounds like Cortana.
As Cortana is such a huge step for Microsoft, I’ll be going in depth on what I think over the next few weeks.
Cortana wasn’t the only addition to Windows Phone 8.1, there were hundreds of new features and tweaks to the UI that will take weeks to be documented – the new calendar is just one of these. I’ve tried it in the emulator and it’s really great. The developer preview is due this month.
Windows 8.1 has some new features too. The much-leaked Windows 8.1 Update includes changes to how the operating system behaves with a keyboard and mouse – though these changes are only the start of the improvements that are coming.
Microsoft’s cloud platform has improved tremendously over the last few years and this year was no exception – in fact, there were so many new features I can’t even begin to go through them all. Some I probably won’t even use (Java? No thanks.) but I know the option is there, which will inform my decisions for cloud hosting in the future.
Scott Guthrie and his team talked at great length about new features that will improve productivity for ‘DevOps’ tasks significantly. For example, the new Azure Portal includes the ability to view statistics, create new infrastructure, build new virtual machines, deploy websites and even do code changes with Git source control – all from one UI.
I already use Azure as part for my personal projects, as well as Visual Studio online as my source code repository. I plan on using it even more in the future – so I’m pleased to see Microsoft lead in this area. And they really are leading.
Times have certainly changed, and PCs that run Windows are no longer the most popular computing devices. As a predominantly Microsoft developer, this makes me wonder about the future. This year’s Build has continued the recent trend of Microsoft supporting other platforms in new ways – plus with partnerships with like likes of Xamarin, I see no reason to even contemplate switching over to Android (the most popular platform) in the foreseeable future.
While I was hoping that there would be the announcement of a Xamarin acquisition, they didn’t disappoint. It was great to see Maguel even joining Anders on stage during the keynote. Both of these guys are very smart, and I look forward to what else the partnership can bring. Being able to develop universal apps that also target iOS and Android is not very far away at all.