//build is coming to Melbourne 26 May

BUILD Melbourne includes the best content from Microsoft’s annual BUILD conference, with additional focus on enabling ISVs and App developers to get the most out of Microsoft’s newest tools and technology.

Microsoft engineers Giorgio Sardo, Pete Brown, and Shen Chauhan will deliver the sessions and demos to help you quickly familiarize yourself with Microsoft’s latest technologies. The coding sessions will be hands-on labs and you will need to bring your own device (BYOD).

Here’s a glimpse of what you can expect:

  • Keynote highlighting the most interesting new features, announcements, and demos from BUILD 2016, including what’s new for Windows apps, cross-platform development, and learning to use Azure services.
  • Network with Microsoft engineers, and other ISVs and app developers in your area.
  • Sessions to help increase user engagement and position your software business for the future, using the latest Microsoft’ technologies:
  • Places are limited, so register now! We look forward to seeing you at //Build Melbourne.

Build 2016 Keynote day 1


Day 1 (today) will be about Win 10 and devices, like HoloLens, Xbox, and ‘conversations as a platform’ (NUI) and AI/bots
Day 2 will be about Azure, IoT, data platform with @scottgu. And Qi Lu will talk about O365 as a platform, Office/MS Graph

More below.

Continue reading

Microsoft “Project Natick” puts datacentres under the ocean

I came across an interesting Microsoft research project, where they looked at what it took to manufacture and operate an underwater datacenter http://natick.research.microsoft.com/

According to the team, the idea behind these underwater datacentres is because 50% of the population lives near costal areas. Deploying servers along the coasts can help bring computing power closer to where the people are, reducing latency. Being submerged in water can also help with the heat exchange.

It is an interesting concept and there is more information in the short 2 minute video below.




SQL Server on Linux means you’ll be able to run a full .Net application in Linux Docker containers in Azure, developed on a Mac

SQL Loves Linux_2_Twitter (002)

There was some interesting news on the web today, Scott Guthrie announced that “private preview of SQL Server on Linux is available starting today” and that they are “targeting availability in mid-2017”.
When combined with some other recent announcements, in my head I can see it unlocking some unique scenarios which were never possible before in the Microsoft ecosystem:

In the very near future a developer will be able to create a new website with Visual Studio Code on a Macbook, using .NET core + ASP.NET core + Entity Framework core for a full stack application, which is held in a Linux Docker container, hosted on top of a Windows Server 2016 core VM inside of the container system, with the data being retrieved from a SQL Server instance hosted on a Red Hat Linux VM.

While this may be a contrived scenario for the sake of it, it does highlight what is possible with the new tools and frameworks being released by Microsoft. It is refreshing to see Microsoft embrace developers and operations teams that are working on non-Microsoft platforms. My favourite quote I heard from the team, is that they want to have the tools work on every platform equally well, and let the best platform host win. We have also seen the ASP.NET team working hard at making sure that the new ASP.NET core framework is optimised to work much faster than previous releases and recently achieved a 2300% increase in request throughput over ASP.NET 4.6 http://www.ageofascent.com/asp-net-core-exeeds-1-15-million-requests-12-6-gbps/

Microsoft today also announced that it is joining the Eclipse foundation. In the past they had already procided Eclipse plugins for Azure Toolkit for Eclipse & Team Explorer Everywhere as well as the Java SDK for Azure enables Eclipse users to build cloud applications.

Here are a whole heap of links to help you research this new paradigm:


If you are an ASP.NET developer and want to learn what is new about ASP.Net core, then there is a great usergroup talk by @AdamStephensen where he dives into what he wished he had known when getting started with it.

And to continue your education on new website development, this Dev Super Powers video by @DuncanHunter will show you how to get started with Angular 2 with Visual Studio Code.

How to mine Ethereum with Azure on Ubuntu

Note: CPU mining is extrememly inefficient I was mining an an 8 core machine for 3 days and didn’t mine a block, but it is chance based so your results may vary. Either get a machine with a GPU, or think about purchasing mining power from a provider.
See my previous blog post about how I purchased mining contracts from a dedicated provider.


If you have an Azure account and want to experiment with spinning up a VM to do some CPU mining, here are the instructions to go through. It is made complicated due to the Ubuntu VM images only creating disks of 30GB which isn’t large enough to hold the Ethereum blockchain.
There are 4 major steps:

  • Prestep – Prepare a wallet to mine into.
  • Create a new Ubuntu VM on Azure.
  • Configure a 2nd hard drive.
    Move /home to the new hard drive.
  • Install and run geth.


Prestep – Prepare a wallet to mine into

It is more convenient to have your miner send any mined Eth to a central wallet that you control. The easiest way is to use the desktop Mist wallet

  • Download Mist https://github.com/ethereum/mist/releases
  • Run it, let it sync to the network (may take a few hours). You can let it sync while you set up your Linux VM
  • After it has finally synced, create a new account. Note the unique code for later. We will tell our miner to put all mined ether into that wallet.
    mist UI
    mist wallet


Create a Linux VM in Azure

  • Create a new Ubuntu linux VM. You will want to pick a VM size with at least at least 2 cores (otherwise all your time will be spent importing blocks instead of mining).
    azure new ubuntu
  • To make it easy to connect via SSH later, give your VM a friendly hostname
    azure hostname


Connect / Install helpful tools (optional)

  • If you don’t have a SSH client, download and install Putty http://www.putty.org/
  • Open putty and connect
    putty connected
  • Open a 2nd instance of Putty so you can monitor CPU while working
  • install htop
    sudo apt-get install htop
  • Run htop



Configure a 2nd hard drive

The Ubuntu image creates a VM with a 30GB hard disk. The issue with this, is that the Ethereum blockchain itself is over 30GB and so the disk will run out of space before you sync. You need to attach a 2nd hard drive, configure the system to move /home to the 2nd disk.
Simplified from https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-how-to-attach-disk/

  • In the portal attach a new disk. The name is unimportant. Make it at least 200GB. You will only be charged blob storage for the space you fill up.
    azure new disk
  • You can list your drives. You will see /dev/sdc as not having valid partitions (as we haven't set them up yet)
    sudo fdisk -l
  • run fdisk on sdc. You can just accept the defaults by pressing Enter
    sudo fdisk /dev/sdc
     n (new)
     Primary (Accept Defaults)
     1 (Accept Defaults)
     First Sector (Accept Defaults)
     Last Sector (Accept Defaults)
     w (to close and apply)
  • Format the new partition
    sudo mkfs -t ext4 /dev/sdc1
  •  this will now show our new drive is partitioned and ready to use!
    sudo fdisk -l
  • Temporarily mount it to /datadrive
    sudo mkdir /datadrive
    sudo mount /dev/sdc1 /datadrive
  • Get the UUID (can copy in putty simply by selecting text with mouse. Auto copies to clipboard)
    sudo -i blkid

    ubuntu uuid

  • Add it to the filesystem so that it is always mounted at startup
    sudo nano /etc/fstab

    add in your disk in the below format
    UUID=???????? /datadrive ext4 defaults 0 2
    e.g. UUID=385ae56e-cc0d-4d6a-9130-70458e7c57b7 /datadrive ext4 defaults 0 2
    Ctrl+x to quit. Y to save
    ubuntu fstab

  • Try unmounting and remounting to confirm it is all okay
    sudo umount /datadrive
     sudo mount /datadrive
  • Make the drive writeable
    sudo chmod go+w /datadrive
  • Can confirm that your /datadrive is as large as you made it earlier. Should be /datadrive
    sudo df -H

    ubuntu disk sizes

  • I would reboot now to make sure the system comes back up and you haven’t broken anything. Better to do now with a fresh machine than later
    sudo reboot


Move /home to 2nd drive

Simplified from https://help.ubuntu.com/community/Partitioning/Home/Moving

  • duplicate files from /home to /datadrive
    sudo rsync -aXS --exclude='/*/.gvfs' /home/. /datadrive/.
  • change /datadrive to /home
    sudo nano /etc/fstab
  • Rename the old /home, and prepare an empty directory ready for fstab to mount to
    cd / && sudo mv /home /old_home && sudo mkdir /home
  • Make sure it all works by rebooting
    sudo reboot


Install and run Geth!!

Finally the reason we are here. You can easily install by adding in the repository into apt-get and installing from there
Simplified from https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu

  • Install geth
    sudo apt-get install software-properties-common
    sudo add-apt-repository -y ppa:ethereum/ethereum
    sudo add-apt-repository -y ppa:ethereum/ethereum-dev
    sudo apt-get update
    sudo apt-get install ethereum
  • Run geth. Replace the ether address with your wallet
    I prefer to run geth via screen. That way if putty disconnects it will still continue to run on the server.

    screen -S gethminer geth --etherbase '0x461da8f20aa94fac22d7b134afac5481315d7dae' --mine 2>> geth.log
  • Tip: If putty disconnects, you can reconnect by using
    screen -r -S gethminer

Here is a screenshot of me running 2 instances of Putty. One with htop showing the 8 core machine at 100% utilisation, and a 2nd instance showing geth processing blocks.
ubuntu 8 core mining

Using Windows 10 iOS bridge to convert Canabalt to Windows 10 in under 5 minutes

I have been playing around with the Windows 10 bridges that allow you to port applications from other platforms (iOS, WP Silverlight, Hosted web apps, etc) to the Windows 10 UWP platform.

Today I wanted to show you how easy it is to take an iOS game and port it straight to a Windows 10 UWP application.
I’m porting the classic game Canabalt which was originally an online flash game, which they then ported to an iPhone game.

The author of Canabalt released the source code on Github for others to play around with https://github.com/ericjohnson/canabalt-ios
The iOS bridge for Windows 10 is availabe from the website https://dev.windows.com/en-us/bridges/ios

Now sit back and watch how quickly you can port using the tools.