Visual Studio Android emulator setup failing

On one of my machines, I couldn't install the latest Visual Studio Android emulators.  I tried launching the update from Visual Studio 2015 or from the Microsoft Website but each time, vs_emulatorsetup.exe would stop but not freeze.

After killing the process and rebooting, vs_emulatorsetup.exe would restart automatically displaying this error:

The full source path being: C:\ProgramData\Package Cache\{CD422A3A-1A78-42A4-83C1-A89BD878269B}v1.0.50925.1\

WARNING: backup your registry before messing around with it

Friends at Microsoft suggested clearing my browser cache and uninstalling the previous version.  Nah, no good.  The conclusion was that there was a problem with my machine.  Oh great!  So I applied brute force...I grabbed the GUID, opened RegEdit, searched for the GUID and deleted all entries with it.  I then launched vs_emulatorsetup.exe and got to the same point.  Grrr!

I then applied more force.  This time, I searched for the version number (1.0.50925.1) and got more results.  I deleted all these entries, started the installer and bingo!  It worked!

Visual Studio Talk Show - CES, IOT et Big Data

Nous discutons avec Philippe Nieuwbourg du Consumer Electronics Show, ou CES, le plus important salon consacré à l'innovation technologique en électronique grand public qui se tient annuellement au début janvier à Las Vegas au USA. En plus de raconter son expérience, de par les intérêts de Philippe, on se pose la question si derrière l'économie de la donnée, ce sont les objets connectés et l’électronique grand public qui deviendront les principaux générateurs de contenu à analyser.

Philippe Nieuwbourg est analyste indépendant et journaliste, spécialiste des technologies d’aide à la décision et de traitement des données. Il a créé le site Decideo, qui réunit plus de 15 000 abonnés, en français et en espagnol, et est devenu la référence en matière d’information objective sur l’actualité des outils d’aide à la prise de décision. Il est le fondateur de Objecteo, une société de recherche, de formation et de conseil autour de l’internet des objets. Il est également chargé de cours à l’ISAE-SUPAERO de Toulouse, au Collège de Bois de Boulogne, et formateur professionnel pour Data Science Institute. Il anime de nombreuses conférences chaque année, en Europe, au Canada et en Amérique du Sud. Il a écrit plusieurs livres sur le Big Data, le CRM, les places de marché, et son prochain ouvrage soulignera le potentiel combiné des objets, des données et des algorithmes. Pour le contacter : @nieuwbourg ou philippe.nieuwbourg@objecteo.com

http://guyb.ca/1JGxFck

CloudFlare SSL options

In previous posts, I explained two options to set SSL for an Azure Web App: by using CloudFlare and by installing a certificate from StartSSL.  Now that it's done, we can use the CloudFlare's Full SLL (strict) mode.  Full SLL encrypts the data from the visitors browser to CloudFlare and from CloudFlare to Azure without breaking the SSL chain.

Setting it up is very simple, click on the "Crypto" tab and select "Strict" from the SLL dropdown list.  That's it!

Make Web Not War - Online Web Conference

Make Web Not War brings together Canadian web dev experts to talk about modern web standards, Open Source, and Open Data innovations. Learn about the latest IETF & ECMA web standards, how to run and contribute to open source projects, the importance of open data in the world of journalism, open government, and more. Live online Feb 5, 2016. Participation is free. Register to receive exclusive content to accompany the live presentation.

Microsoft Datacenter Virtual Tour

Ever wanted to tour one of Microsoft's datacenters?  Good luck!  For obvious security reasons, it's almost impossible.  But how about a virtual tour?

How to get free SSL for Azure Web Apps using StartSSL

In my previous post, I wrote about using Cloudflare to encrypt the traffic of an Azure Web App for free without installing any SSL certificate in Azure.  In this post, I'll explain how to use StartSSL from StartCom to get a free certificate that you can install in the Azure portal.  Please note that this free certificate use is limited to personal and non-commercial use.

In the StartSSL main page, select "StartSSL Free":

First, you now need to create an account by entering your country and email address so they can send you a validation code:

Once accepted, they install a client certificate on your machine.  This is their way to authenticate you so make sure to create your account on a PC you own:

That's it so let's now create a free certificate.  Locate the free certificate section and click on the "here" link:

Select the "Web Server SSL" option:

Click on the "Domain Validation" link:

Enter your domain name:

StartSSL will retrieve the domain administrator email from your registrar so they can send you a verification code:

Get the code, paste it in the "Verification code" field and click on the "Validation" button.

Next, click on "Order SSL Certificate":

You can enter the full hostname. Typically it's "www." + the domain name:

You need to submit the CRS.  Click the link to download the StartCom.exe tool:

Select SSL Certificate, enter the domain name and your country then click on the "Generate CSR" button.  Click on the "Copy" button to copy the CSR.

 

Back on the Website, paste the CSR and MAKE SURE that you select  "Generated by PKI system".  This will allow you to download your private key and it's the only way I found to do this.

Click on the "Download Private Key" button to download the ssl.key file.  Store this file securely.

 

Next, you need to wait a while for StartSSL to process the order:

Once processed, locate you certificate in the "Certificate List" section and click on the "Retrieve" button.

The Zip file will contain cert files for IIS.  Locate them so we can generate the pfx file by using the "startcomtool.exe" that we used earlier.

Click on the "Certificate" tab and click on "Generate PFX".  Next, select your certificate (the .crt file) and the private key (the ssl.key file) and enter the password you entered earlier.  Click on "Submit" and save the .pfx file.

Let's now switch to the Azure portal.  Located your App Service, click on "Settings" and click on the "Custom domains and SSL" link.

Click on the "Upload Certificate" button.

Select the .pfx file you created earlier and enter its password.  Click on "Save".

You now see the certificate in the "Certificates".  Add the binding for the naked domain and www and click "Save".

 

That's it!  We can now browse the site using HTTPS.  If you click on the green lock, you will see that the certificate was issued by StartCom.

Again, this free StartSSL certificate is for personal and non-commercial use.

How to get free SSL for Azure Web Apps using Cloudflare

If you're looking to add SSL to your Azure Web app using a custom domain name but don't want to spend a dime, you can get a free certificate from StartSSL and configure it in the Azure portal or use Cloudflare free plan that include SSL at no cost.  In this blog post, I'll explain how to configure GoDaddy and Cloudflare.

First thing first, doesn't Azure encrypts Web Apps using SSL?  Yes but only is you're using the default azurewebsites.net domain like this:

If you set a custom domain name and try to access it using HTTPS, you get this:

So you absolutely need a certificate if you want to secure traffic to your Azure Web App with HTTPS. 

OK, so what is Cloudflare? According to Wikipedia:

CloudFlare is a U.S. company that provides a content delivery network and distributed domain name server services, sitting between the visitor and the CloudFlare user's hosting provider, acting as a reverse proxy for websites. Its network protects, speeds up, and improves availability for a website or mobile application with a change in DNS.

Here are Cloudflare's building blocks:  

What we're interested in is getting SSL for free and Cloudflare has a free service tier that includes SSL: 

Great but how does it works?  Do I need to install something on Azure?  Cloudflare offers three ways to set SSL: Flexible, Full and Full (strict).  The default one is Flexible and it encrypts data between the visitors and Cloudflare but not the traffic between them (Cloudflare) and Azure.  Note that by using Cloudflare, the visitors never reach your Web App directly on Azure.  

Great!  That seems perfect: a free service that includes SSL without dealing with certificate installation.  Too good to be true?  Let's try it out.

The first step is to provide Cloudflare with the domain name (this assume that you already configured your custom domain name in the Azure portal):

Cloudflare scans your DNS and show you a quick video explaining the process:

This is what Cloudflare found:

And this is what is set in GoDaddy:

We need the A record to point to Azure and the CName record "www" so visitors can type either jsoftheday.info or www.jsoftheday.info in their browser to reach the site.  The "awverify" is only needed when setting the domain name in the Azure portal.  It should not be needed anymore.

Let's now select the "Free Website" plan:

Cloudflare wasn't able to change the GoDaddy's nameservers so I'll need to change this directly in GoDaddy's console.

In GoDaddy's console, you'll need to locate the nameservers section for your domain and click on the "Manage" link:

You then need to select "Custom" and click on the "Add Nameserver" button:

Enter the namesersers provided earlier by Cloudflare.  Click "OK" and "Save" on the next step:

That's it for GoDaddy!  Now back to Cloudflare.  Let's hit the "Continue" button.  Cloudflare informs us that the status is pending. 

You now need to wait, this step could take up to 24 hours when using Cloudflare's Free tier.  In my case, it took about 2 minutes and I received a confirmation email:

And the status changed to Active in the Cloudflare console:

We now have to wait for the certificate to be issued and configured.  Click on the "Crypto" tab to see the status.  Note that this step can take up to 24 hours to complete.  In my case, it took just a few minutes.

You can now access your Website using SSL:

Voilà!  Free SSL for your Azure Web Apps!  Note that Cloudflare offers way more then SSL and you should take some time exploring what's included in the Free plan.

RasPiO Pro Hat on Kickstarter

Alex Eames of RasPi.tv has started a new project on Kickstater.  It's a HAT for the Raspberry Pi that arrange the GPIO ports in perfect order and protects the circuitry against wiring errors.  It's £12 + £2 for shipping to Canada which equals to $29 loonies.  Project backed! 

Microsoft Envision, a conference for business leaders or decision makers

Funny, since Microsoft combined a bunch of it's tech conferences into Ignite, it created a bunch of new ones.  The latest one is called Microsoft Envision and is targeted at business leaders or decision makers.  It will take place on April 4-6, 2016 in New Orleans.

The Sad State of Web Development

Interesting read on the current state of Web development.

Page List

Month List