Microsoft Azure: Linux

During the past Connect(); event in New York Microsoft made clear they love Linux and Open Source. Their .NET framework is now open source which shows this love. But Satya Nadella earlier already stated Microsoft Love Linux.


In the beginning Azure only exists of Microsoft related products. In fact Azure was only PAAS. Virtual Machines like with Amazon wasn’t possible. There has been something called VM Role but luckily this was replaced very quickly by the real IAAS.

Since the new HTML portal ( IAAS or Virtual Machine belong to Microsoft Cloud landscape. And Linux images belonged to them on day one! Many frowned their eyebrows, the number of images just went up. On the current preview Portal ( the list of Linux images is really big. And I think it is not the end yet. Perhaps in the Marketplace other vendors will sell and service other Linux images. The bigger the demand, the bigger the offering.

11-23-2014 15-36-59

During my daily walk through the Azure portal (Microsoft Azure grows very quick) I saw I could service my own Minecraft server. The only thing you need, a name and 15 minutes. After that you got your own Minecraft server. How cool! This one runs on a Linux image by the way.


What is your reason not to use Microsoft Azure?

Posted in Azure, Cloud, DevOps, dotnetmag | Comments Off

Visual Studio 2015 Preview: C# 6

On November 12 and 13 Microsoft organized the Connect(); event in New York. the keynote was live and the Dutch communities (WAZUG, DotNed, VB Central and of course SDN) had organized a evening event to watch the keynote together. If you weren’t there or missed the event completely, you can still watch via Channel 9. Not the least speakers were there: Scott Guthrie, S. Somasegar, Brian Harry and Scott Hanselman.

During this event Microsoft showed the words of CEO Satya Nadella, Mobile First, Cloud First, weren’t just a hollow remark. The statement is part of whole Microsoft and in all the do. The keynote showed it.

They did a lot of announcements, one was the fact Microsoft made the .NET platform Open Source via GitHUB. Which means anyone can do a Pull request and solve bugs etc. Microsoft will pick up these changes (after testing etc.) corporate in the branch. How cool is that! The first pull request came within a hour after opening.

An other announcement was a preview of Visual Studio 2015. Besides that also new previews of ASP vNext and C# 6. However there are no new language elements added, but the language and tooling is cleaned and optimized. All adjustments are meant to make it easier for the developer.

In this blogpost a few of the changes.

Code must besides easier to read also cleaner. Take this simple method, we could do without the function body.

11-22-2014 15-57-00

By using the Lambda arrow (=>) it is possible to make it shorter. The Lambda arrow was already in the language, but now you can use it for this too. There is an other usage.

11-22-2014 15-57-00

Clean code, understandable and readable. Self documenting code Knipogende emoticon

Other change. You will recognize the next code construction.

11-22-2014 16-00-57

With the new Elvis operator it can be shorter and more readable. The ?. (image some Elvis hair and eyes) operator checks for the object to be NULL.

11-22-2014 16-01-07

Also posisble with methods in a Class: x?.Calc(1,2); Personally I find this dangerous, because the Calc methode is not executed if x is NULL. And if your tests or structure of the application is not good, this will unpredictable situations.

Another construction you and I use a lot. We make strings for messages and we use of course the string.Format method. Super easy and rather readable, disadvantage you need to count the position and it is not always clear in a blink of an eye.

11-22-2014 16-03-39

So this should be different. Simple \{<variable>} and the code is more documented. Of course the formatting rules of string.Format are still possible, complete freedom for the text.

11-22-2014 16-03-39

The above line makes the variable a field of a class/object. By making it public, you can manipulate it. You better use properties. But nowadays properties need to have a getter and a setter. In C# 6 there is the notion of a read-only property, a property with a getter and no setter.

This in the above example done with the lambda arrow, it will transfer in a read-only property automatically. You see this by the Code lens reference counter. But if you want to change the property in code you get a compiler warning.

11-22-2014 16-04-47

11-22-2014 16-01-54

There are lots more, more about that later.

Posted in dotnetmag, Tip, Visual Studio, vNext | Comments Off

Windows 10 Technical Preview

Since this week Windows 10 is available in a Technical Preview. This version is not for faint harted or inexperience users. Other advice is not to install it on your main computer.

So I did download it and installed it on my Surface Pro 3. I choose not to upgrade my existing version of Windows 8.1. As a result I missed an awful lot of drivers ;-) Luckily I could download them on another laptop. 

10-8-2014 12-37-21 10-8-2014 12-37-42

In the near future there will be a real beta for everyone. This version just scratches the surface on all coming changes.

What did change? If you are still using Windows 7, you probably look at Windows 8 on occasions and found the Startmenu is not there. Well not completely true, in fact your Start menu is now a complete screen. But when using Windows 8 for the first time, it is difficult to use. It looks like they moved all the cheese around.

Windows 8 was built for tablets or laptops/desktops with touch. Windows 7 was perfectly usable with a mouse and keyboard. In fact Windows could be used with just a keyboard. With Windows 8 (and with the introduction of the Surface RT) Touch came as a new dimension.

If you used a Metro or Windows 8 app from the Store, you had to swipe from the right to get to the settings of the app. There Charms bar with the settings of the active app became visible. With the mouse you had to go to the one pixel in the right upper corner of the screen. Or the key combination Windows-key + I of Windows-key + C(harms).

What was the problem? These ways of using Windows were not in our muscle memory and it felt very strange compared to the other versions.

With Windows 10 Microsoft is trying to solve this problem. Windows 8 was mainly made for touch/tablet, Windows 10 is built with the existing/normal desktop user without touch in mind.

And this Technical preview version feels good. Even on a tablet.

A quick tour. The most important change for many the start menu is back. But they tried to improve it too. The live tiles and the pinning capability like on the start screen are added.

Screenshot (5)

The search box is also back. In Windows 8.1 with the Windows-key + Q(uery) combination you could do a search. With this search option is it easier to search for apps. Clicking on ‘All Apps’ gives you the same experience as in Windows 7. You will see the folders of installed x86 apps not from the Windows Store.

On the Taskbar is also a magnifier. With this you can perform a desktop search. But the addition it does not only search for files of apps, but also gives search results from search engines. Which can be pretty handy.

The startmenu can be adjusted in height and width, interessting for a 4K Monitor.

Back to the Windows 8.1 way of working? Also possible. According to some clips on the internet switching between a Start menu and a Start page will be automatic when detaching the keyboard on a Surface. That would be logical and a real handy.

On the taskbar perform a right mouse click and go to properties. On the third tab ‘Start Menu’ change the setting. It will be affective after logging in again.

Screenshot (9) Screenshot (10) 

The Windows key and hardware button show you the Start screen again.

Screenshot (13)  

Another design thingy all windows now have some sort of halo/shadow. The picture below does not show it clearly, but it is funny.

Screenshot (11)

The change which is only noteable when comparing it to Windows 8, all windows now don’t have an edge. The screens below show this, on top Windows 8 and on below Windows 10. It makes it easier for the eyes.

10-8-2014 13-45-13 10-8-2014 13-45-43

Of course the icons are also changed and refreshed. And they cleaned up some useless spacing.

In Windows 8 a Store app / Metro app / Windows 8 app was always full screen. Not anymore, they are now filling up the screen. But you can change the size.

Screenshot (6)Screenshot (7)

The necessity to go to the Charms bar is removed. In the title bar there is a button with three dots (…). With this menu you can go to the settings. That is logic, because an app is not anymore full screen.

The resizing of a Store app is limited to the height. At this moment (?) there is a minimal height for a Windows Store app, the width is not yet is less limited.

In all versions of Windows ALT-TAB is the way to flip through the open apps. The Windows key–TAB was added and the opened applications was show more graphical manner. In Windows 8 this worked too, but the Windows Store apps were not shown. Now they do.

Screenshot (3)

Other news in the black bar ‘Add a Desktop’ is shown. In Windows 10 you can have multiple desktops. On one physical screen you can split your apps and desktops.

Screenshot (1)

In Windows 7/8 desktop with the key combination Windows key+arrow right/left, the active application could be docked to the left of right. Handy to read two documents next to each other. There are just a few possible ways: left, right, full screen, normal.

In Windows 8 metro there were no key combinations and less possibilities. At first there two Windows Store apps side by side and in 8.1 it was changed to 3.

In Windows 10 the screen is divided in 4 quadrants and with the Windows key and the arrows. This is also possible for Windows Store apps, with respect of the minimal height.

Screenshot (4)

The last part of Windows not changed for a very long time; the command prompt. A modern environment but not modern Command prompt. But now the Command prompt is really changed.

Cut/Copy/Paste is now possible with the well-known keystrokes. Selecting of text on the screen is possible. You can make the prompt transparent. Lots of little things we already wanted for decades.

 10-8-2014 13-55-32 10-8-2014 13-56-04 10-8-2014 14-01-21      

We are talking about a Technical Preview, but it feels very stable. The many changes look very good. It is not the end, because some functionality is broken. ALT-F4 does not work for Windows Store apps at this moment. On my Tablet/Laptop Surface it feels very good and natural.

Disclaimer: This post is based on a preview and all items are subject to change in the future.

I love to see the next updates. During the Build conference in April more details and probably a public beta will come.

Posted in dotnetmag, Surface, Windows 10, Windows 8 | Leave a comment

IoT (2) Intel Galileo

At the last //Build conference they spoke about Windows on a Intel mainboard. Intel developed a chip which was capable of running Microsoft Windows. The board is a Intel Galileo. In fact it is a Arduino board so the available Arduino components (of which a lot is available) can be used with it.

The Arduino development environment is shown below. The code is C / C++. The example will make the onboard led blink.

30-8-2014 19-20-31

I wanted Windows on it of course. Therefore I had to perform a firmware update. The Arduino development environment is fairly simple. It is copy/paste of a directory with everything in it. It also contains the Firmware update.

19-8-2014 22-23-47 

To get Windows for the Galileo board, you need Microsoft Connect access to the Windows Embedded Pre-release program. Via these pages on GitHub they tell you the steps to install.

Below the process of installing on the SD card.

19-8-2014 21-15-34

WP_20140830_005 - Copy

When ready you need to place the card on the  Galileo board. The Galileo watcher app will show him (if it is connected via USB/Ethernet).

30-8-2014 13-26-08

There is a little Webserver with this Windows too.

30-8-2014 13-25-48

You can create a network share and it will show you the files.

30-8-2014 13-26-58

The directory of the web server. I have changes some text here.

30-8-2014 13-30-57

The directory where the deployments will be done.

30-8-2014 13-27-17

Ok, now we have Windows on it. Lets build something. For .NET Gadgeteer was it simple. With this it will be a little different. There is a Visual Studio 2013 project template for C++.

30-8-2014 13-35-50

For this demo I did not use the onboard led, but I added a led to the board. Via code I will make it blink.

30-8-2014 13-39-06

Does not look difficult. And if you run and debug it, it will show in je Visual Studio.

30-8-2014 13-39-16      

And the led will blink. The red led on the second picture is brighter.


But lets take it a step further. I also bought a 16×2 display for showing texts.

30-8-2014 13-29-40  

Connecting it is less elegant than with the .NET Gadgeteer platform. You need a breadboard and lots of cables to make connections.


But the result of the code is visible. On the screen i++ iterates.

Cool he. I need to experiment more with it. There is a lot of things possible. Although I have to refresh my C++.

Posted in dotnetmag, Gadget, Gadgets | Leave a comment

IoT (1) .NET Gadgeteer

Internet of Things has gain interest over the pas months/years. Not that strange, because the world is becoming more connected everyday. Everything and everyone is connected on every spot on this globe. On vacation in the early days you send postcards to the ones left behind. A vacation was getting away for real. For a long time there were no Dutch newspapers in foreign countries, so news from the home country was also blocked during the vacation.

But now everyone has a mobile and tablets. Almost everywhere we have internet and we keep each other posted over the internet via Twitter, FaceBook, mail or other media.

Not only humans are more connected, even devices are connected. Most cars have a button to call the garage if there are problems. Your mobile is connected to a satellite for its location. This will expand over time. We already have a lot of sensors in our house to automatically heat or cool down our homes. With current home automation we can control from a distant our lamps in house. Our refrigerators will get sensors and put a order if the stock is low. Smart watches will check your heart and your health. Perhaps in the future it will contact a ambulance or a doctor based on spikes in your measurements. Lots of other applications will come.

All those things have to be programmed. Previous we used electronic circuits etc and low level programming languages. But nowadays we want to do it more easier. If possible with languages we already use. It will make it cheaper in the end.

There is something like .NET Gadgeteer. This is a set of modules and a motherboard to create and try out an idea. This is programmed with the .NET Microsoft Framework and makes use of Visual Studio 2010.


The designer is very WYSIWYG. You drag a component on the canvas and clicks on connect, it will show how to connect the component to the motherboard.

30-8-2014 17-31-39

In code via intellisense you get the methods on the component. Everything is done with C#, so pretty comfy. You can deploy it and run it on the motherboard.

30-8-2014 17-32-30 

Also debugging and trying your solution.


The .NET Micro Framework is very old. The successor is Windows Embedded. It needs different hardware. Hardware which runs Windows in some form.

In my next blog post I will tell about the Intel Galileo motherboard which runs Windows.

Posted in dotnetmag, Gadget, Gadgets, Visual Studio | Leave a comment

Bing while coding

Every developer does it, during developing you search the for tips and tricks. In the last couple of years the number of resources on the internet is grown. Help, tips and code example can be found on many forums, MSDN, CodeProjectStackOverflow and many many other places. It is impossible to know them all or to have them in a list or so. So we use our favorite search engine get the help we need. We have to leave the comfort of Visual Studio. You start a browser browser and search. Since a few weeks there is a handy extension for Visual Studio available. With this you can stay in your development environment.

30-8-2014 14-27-33

Do yo have to something special during coding? Nope, it works automatically. You start typing your code and the intellisense kicks in (or press ALT+space). The results of the intellisense are extended with Bing search results.

 28-8-2014 06-57-38

How handy! So besides the standard documentation you see the code examples from the community.

If this still not gives enough information or you need to start a different kind of search, in de menubar a searchbox added. Type hre your question and in your Visual Studio the results will show in a handy and clear view.

 28-8-2014 06-58-43

 28-8-2014 06-58-53

28-8-2014 06-59-03 

Not everyone has full internet during work. Demo and code examples can be placed on a local location and it will serve as source for the Bing Visual Studio tool.

30-8-2014 15-36-07

How handy! In this way you don’t need to switch context during coding. You can stay in the flow.

Happy coding!

Posted in dotnetmag, Tip, Visual Studio | Leave a comment

Surface Pro 3

Today my Surface Pro 3 (i7 with  256 Gb disk 8Gb memory) finally came. I looked forward to its arrival for a long time and I am very curious about the differences.


And the differences are big. First the screen is 12 inch, 2 more than the previous Pro’s. Also the ratio of the screen is different (2:3) and therefore also the resolution (2160×1440). The pen has a battery in it. The Surface Pro 3 can bend in more steps than the previous ones. The first had 1 position, the second had two en the third has multi. I am very curious how it will hold on the real world. The power supply of the Pro/RT 2 and the 3 are not interchangeable. The connector on the Surface is really different, old one did not work perfect in real life.

If you stack the Surface Pro 2 and the Surface Pro 3 you see the differences in size. On the picture the bottom one is my Samsung Ultrabook of 13 inch. Compared to the size Surface Pro 3 could replace the Samsung.


Thickness is quite obvious. The Samsung looks smaller by the way is was designed.


There is quite a difference between the Pro 2 and the Pro 3.


Also in weight. Disclaimer it is not a calibrated scale, it for illustration only.

Surface Pro 2


Surface Pro 3


Samsung Ultrabook


Coming weeks I will try to use my Surface Pro 3 as my daily machine. Lets see how it stand up in the heat compared to the Samsung (which my workstation at this moment) and the Surface Pro 2.

I will keep you posted. Soon the dockingstation will come too. Another workstation added to the collection ;-)
Posted in dotnetmag, Gadget, Surface | Leave a comment

Microsoft Project Siena

This Windows 8 app is available for some time now. This app makes it possible to create powerful Business apps and publish it without writing one line of code. More information can be found on Microsoft Project Siena site. It sounds great. Business users who click their own apps together to simply their own work.

3-8-2014 15-04-48

Sounds very interesting so I wanted to try it myself. After starting the app, you will the screen below. An empty screen on which you can add Visuals. It is recommended to look at some of the tutorials. Personally I found the flow, workflow or the way the app work not very intuitive. Well, we start with a empty window.

3-8-2014 15-05-03

Business apps are interesting if they show data. Data comes from a Data Source. By a right click or swipe down you get the meny on top. In this menu the standard file functionalities, adding data and adding new screens. On the right there is a Preview button.

 3-8-2014 15-05-32

With App data you can those from multiple standard data sources. For some connections you need a developers account or connection data. For example Yammer, FaceBook, Twitter etc. In my example I use a RSS feed.

 3-8-2014 15-06-27

After clicking on Import data, Siena tells you the data source was connected.

 3-8-2014 15-06-38

There is also an example of the data the source provides. You need more data sources? Just add more sources.

 3-8-2014 15-07-05

On the windows we need something to show the data. To do that click on the Plus sign at the right side. There is a list of many possible controls. For my demo I choose from the Galleries the Text Gallery. This contains a combination of fields etc, which limits my work for design ;-)

 3-8-2014 15-07-57

At the bottom a menu pops up, you can choose the wanted data source. For my App the data source is RSS_1. On the window the data changes to the data from the source. The default does not show the correct data as I would like it. The first row shows the tags of a Blog item etc.

 3-8-2014 15-08-07

This can be changed very easy. You select the field and choose from the menu below Text. There a list of all available fields form the data source. Just check the correct field.

 3-8-2014 15-09-20

 3-8-2014 15-09-42

Done this for all the fields. I also added a picture of my Gamestag and some text. To run the app choose Preview from the meny at the top.

 3-8-2014 15-19-46

Your app will show. Which look in my case like..

 3-8-2014 15-19-55

Super easy. If your app needs more page, just add more windows. In your windows you can add navigation. How to add parameters is not clear to me yet..

Resume: I think this is a great start. Although there schould be done to the user interfacee, but it is a start. In the keynote of Microsoft Partner Conference there was a demo of the next version. I also hope there comes some possibilities for security or possibilities for Enterprises to add their own data sources. Those Enterprises want to expose their ERP systems or other internal data sources but keep it secure and controlled. Business users making their own apps is not strange, but it should be a little controled. By the way 15 years ago Excel and Microsoft Access were used by Business users a lot and it went out of control in some Enterprises.

I am curious for the next version and which data sources are added. Keep you posted!

Posted in dotnetmag, Gadget, Tip, Windows 8 | Leave a comment

Visual Studio Editor TIP

A few days ago I had to adjust a text file. I needed it for testing with BizTalk whatsoever. In the Text file I needed to remove some columns and replace it with something else. Not sure what is was, but with Visual Studio it was a peace of cake.

Normally I use Notepad or Excel for this sort of action. I known there are other tools like Notepad++, but this is not installed on all my machines. NB That should be synced to in Windows 8.

Anyways, the Visual Studio editor has a lot of handy features.

Assume this text file, it is a dir listing.


To remove the first columns, put the cursor on the first column and press the ALT key. That is way easier than SHIFT ALT arrow right and repeat this for every line.


Press delete and the columns are gone.

To add some Text is done similarly. Cursor on the first column and press the  alt key, move your mouse straight down en start typing.


Handy, more later.

Posted in dotnetmag, Tip, Visual Studio | Leave a comment

Kinect for Windows V2 – Sensor

Probably you have already heard or read about it. In our SDN event in March we had a session and in our SDN magazine 120 there was an article, both by Dennis Vroegop and based on the Developers preview kit.

In the meantime a lot is changed. The accompanied SDK has changed a lot and almost weekly there are new features. There is a public preview SDK available. After the installation of the SDK you get these apps:

  • Gesture Builder
  • Kinect Studio
  • SDK Browser (examples)

18-Jul-14 11-18-26

But without a device the SDK is not very useful, since 15 July the Kinect sensor is available via the Microsoft Store.

18-7-2014 11-30-36 

The differences with the Developer preview are:

  • The sensor comes in a nice box ;-)


  • The connector and power supply are much better designed. The lower block makes the connection between your sensor and your PC (USB 3), with the Developer Preview this part was bigger and not styled at all. Theoretical you could use the Kinect for Windows v2 sensor on a Xbox ONE, which is not allowed by the way. The other way around is not possible, the sensor-to-usb unit is missing.


  • The camouflage stickers are removed of course ;-). Compared to the Xbox ONE sensor the XBox logo and the XBox text on top are removed.


I got my pre-ordered retail version, I am curious when the Developer Preview version will be replaced with a ‘real’ Kinect.

In later Blog posts I will talk about the SDK and examples.

Posted in dotnetmag, Gadget, Gadgets, Kinect, Windows 8 | Leave a comment