Quantcast
Channel: Damir's Corner
Browsing all 490 articles
Browse latest View live

Resources From My Sessions at TechDays 2015

Today the first TechDays conference of 2015/2016 took place at the premises of Microsoft in Slovenia. Me and Andrej Tozon, a fellow Slovenian Microsoft MVP, did a track on Windows 10 Universal Apps. He...

View Article


Windows Phone Emulator Unable to Connect to Windows Phone OS

Can't Run a Universal Application in the Emulator When I tried to run a universal application in the Windows Mobile 10 Emulator today, I was greeted with the following error: Attempting to modify...

View Article


Image may be NSFW.
Clik here to view.

Be Careful When Copying Visual Studio Projects

Project GUIDs Uniquely Identify Projects You might not be aware of it, but Visual Studio projects have additional identity beyond their project file name and path. Each one of them contains a GUID...

View Article

Image may be NSFW.
Clik here to view.

Can a Static Field Be Initialized Multiple Times?

The Plot Take a look at the following code: public static class StaticClass { private static readonly Lazy<string> Lazy = new Lazy<string>(() => DateTime.Now.ToString()); public static...

View Article

Don't Overwrite Plugin Assets with Your Own

Grails web application framework does a great job at taking care of the plumbing, without the developer having to know about all the details until he needs to customize it in some way. Grails Asset...

View Article


Unit Testing JSData Code in Angular Services

What is JSData? JSData is a feature rich data modeling library for JavaScript with good support for AngularJS. Although the documentation isn't perfect, it's not too difficult to get started with the...

View Article

Image may be NSFW.
Clik here to view.

Continuous Testing in Visual Studio

Continuous Testing? The smaller the overhead of running unit tests, the more often you are going to run them and the sooner you will notice that the changes you have made to the code have broken...

View Article

Using Nested Resources in JSData

JSData is built around resources and CRUD operations on them. It is an easy to understand abstraction as long as our domain maps well to it and can be easily implemented using the following operations:...

View Article


Image may be NSFW.
Clik here to view.

Continuous Testing of JavaScript Code

Unit testing is a crucial part of development in any language, but its even more important in dynamically typed and interpreted languages such as JavaScript because there's no compiler doing at least...

View Article


Continuous Testing of TypeScript Code

After taking a closer look at continuous testing of JavaScript code, I'm moving on to other languages that transpile to JavaScript. I'll mostly be focusing on TypeScript, but there aren't many...

View Article

Bringing a Marker to Front in Leaflet

Leaflet is an open-source JavaScript library for interactive maps. It's very feature rich, but its sometimes hard to find resources on approaches that deviate from the most common ones. When handling...

View Article

Image may be NSFW.
Clik here to view.

Continuous Testing with Wallaby.js

I first stumbled across wallaby.js while working on my previous articles about continuous testing in the JavaScript ecosystem using Karma. After reading more about it in Scott Hanselman's blog post, I...

View Article

Image may be NSFW.
Clik here to view.

Strings in .NET Are Not Null Terminated

Unexpected Behavior Take a look at the following function: void DumpToConsole(string s) { Console.WriteLine($"String contents: {s}"); Console.WriteLine($"String length: {s.Length}"); } Can you think of...

View Article


Image may be NSFW.
Clik here to view.

Handling Events with Angular Leaflet Directive

Leaflet JavaScript library includes comprehensive support for events, raised by the map itself or by one of many objects rendered on the map. Detailed documentation covers all aspects of working with...

View Article

Image may be NSFW.
Clik here to view.

Deploying ASP.NET Core RC1 Application to IIS

If you're used to the old ASP.NET, it's not all that obvious how to deploy an ASP.NET Core application to IIS. Although, there is documentation available for the process, I still struggled a bit,...

View Article


Multibinding in Universal Windows Apps

There are a lot of features in WPF that are not available in other XAML dialects, such as the latest one for Universal Windows applications. One of them is multibinding, which allows binding of...

View Article

Get Notified When a Background Task Completes

At first sight there doesn't seem to be a way for a universal Windows application to be directly notified, when one of its background tasks has completed. Fortunately, there is an event that will get...

View Article


Image may be NSFW.
Clik here to view.

Setting Up Docker in Azure VM

Having leftover Azure credit from my MSDN subscription made Azure a logical choice for hosting Docker in a Linux virtual machine. This post documents the steps I took to create a convenient working...

View Article

Image may be NSFW.
Clik here to view.

Create a Reserved IP for a Classic Azure VM

Newly created classic virtual machines in Azure have dynamic public IP addresses. Although, Resource Manager is now the recommended deployment model, there are still image templates in the marketplace...

View Article

Versioning Application Data in Universal Applications

New versions of applications introduce new features. Sooner or later this inevitably causes the format of locally stored application data and settings to evolve, as well. To avoid loss of data or even...

View Article
Browsing all 490 articles
Browse latest View live


Latest Images