Watch Xamarin Evolve 2014 (or any channel) YouTube videos offline

You’re a mobile developer living in a mobile first cloud first world and would like to take some benefit from the awesome content coming from Xamarin Evolve 2014 ? All the 55 videos are published on YouTube (Except the keynote) on the XamarinHQ channel and that’s a great thing. If you’re often on the go, you will appreciate to have all those videos always with you, usable offline at any time, living a typical mobile scenario, smartly using the time you spend every days in taxis, trains or planes. Here is a little tutorial on how I deal with the situation:

1) Install Chocolatey

Ok, this step is not absolutely mandatory but, hey, if you didn’t know Chocolatey (A package manager for Windows, The NuGet for apps) or you were looking for an opportunity to install it, it’s time! You will not regret it. I can not longer imagine using Windows without it.
– open your favorite browser
– goto to http://chocolatey.org

Setup is as simple as a copy-paste in a Command Prompt

Setup is as simple as a copy-paste in a Command Prompt

– copy the commmand line of the front page. It should be something like

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

– open a Command Prompt on Windows
– paste the command line and hit enter
– and voila!

2) Install youtube-dl

To download YouTube videos, you will need a tool that will parse YouTube content, find the videos and download them. My favorite tool for this mission is youtube-dl . You can get the Chocolatey package by typing

choco install youtube-dl

in a Command Prompt to install the tool (Yes, you downloaded and installed your first Chocolatey package :-) ). You’ll get the details on http://chocolatey.org/packages/youtube-dl

Chocolatey installs youtube-dl package, easy as 1 2 3

3) Start your download

– Goto your destination folder :

cd %userprofile%\videos

– Launch youtube-dl using the Xamarin Evolve 2014 playlist that I created on YouTube :

youtube-dl -iw https://www.youtube.com/playlist?list=PLUGZRUcMsHDT_I-n7P4KaaRyQupF9Yl3s

– Be patient

Xamarin Evolve 2014 youtube-dl at work
I recommand to use those options to get the best experience:
– “-i” to ignore errors. The playlist or video availability could evolve during the download
– “-w” to not overwrite files so you can launch the command several times to resume your donwloads without restarting from scratch

4) Enjoy your videos on the go

Now that your videos are stored localy, in high resolution MP4, you’ll be able to watch them on every device, without an Internet connection. But please, make me a favour : don’t forget to give feedback to the authors/speakers on YouTube. I’m sure you will join a network at some point in a Starbucks Coffee near you, so take a minute to send them kudos, like and share those videos.

55 videos 18.7 GB of learning material

55 videos 18.7 GB of learning material

Of course, you can use the same tools to download videos on other YouTube channels/playlists or on other web site. Check the youtube-dl documentation for extended scenarios.

Never stop to (have fun) learning.

Microsoft Apple & Google on the same stage with Xamarin

Let’s get it started !

It took me a very long time to create a personal blog. I tried numerous times, setup several different services (Blogger, DotNetNuke, CommunityServer, BlogEngine, WordPress.com) but once I had to face the empty page, my good intention just disappeared. What should I say? Who will read it? Will I have time? What if I make mistakes?

Then, in 2007, Twitter came into my life. The empty page was still there but 140 caracters were less impressive. I embrassed Twitter. More than 6000 tweets later, I decided to fight against the level 2 final boss, the blog.

I wanted this very first post to be personal. I wanted to share something that I love. Numerous ideas came to my mind, from my personal computer history to the 5 things you didn’t know about me. I will treat some of those in the future but today, I will use a photo I made during the Build 2014 conference in San Francisco.

Microsoft-Build-2014-Apple-Google-Xamarin

Microsoft Build 2014: Microsoft Apple & Google on stage with Miguel de Icaza from Xamarin

During this session, Miguel De Icaza, the inspiring co-founder and CTO of Xamarin, presented a great session called “Go Mobile with C# and Xamarin“. During this talk, Miguel was standing behind a Microsoft deck to make its Visual Studio & Xamarin demos running inside a Windows virtual machine on a Mac OS X Apple MacBook wearing Google Glass. You have to watch the video at 47:00 the Google Glass part is hilarious.

I’m very proud to work for one of the only, if not the only, major company in the technical industry that is able to give visibility to what most people might consider as competitors but what I see as the today’s ecosystem.

That’s the Microsoft I love, right in its time, open to opportunities, proving its value.

Kudos Microsoft !