GURUUMEDITATION

[responsive-menu menu="HamburgerMenu"]
Code
29 Mar, 2017

Binding function with x:Bind

With the Windows 10 Anniversary update, there is a nice feature that has been added to the compiled binding (x: bind): there is a way bind to functions. Like this: Xaml: Code The function can also have parameters (parameters don’t need to be hardcoded, you can also pass another binding as parameter) XAML Code There is no check on the type [...]

Code
25 Mar, 2017

Controlling Imaging SDK with Surface Dial

A few months ago, I had the chance to receive a Microsoft Surface Dial. I took the opportunity to make a small sample project. It took me very long time to finish it, sorry The idea I had is to control the Imaging SDK (https://msdn.microsoft.com/en-us/library/mt598503.aspx) with the Dial. To add saturation and adjust the level, for example. Or then [...]

Code
18 Mar, 2017

Cross platform unit tests with mock

Following my post on the framework SimpleStubs for UWP Unit tests, I’ll show how to do a cross platform unit test. The idea is not to test the PCL in a “neutral” way , but test it on the 3 platforms supported by Xamarin (Android, iOS and UWP). All by reusing the same code for the tests, of course. Creation of projects For iOS and [...]

Code
14 Mar, 2017

Use SimpleStub as mocking framework for UWP unit testing

I looked lately for UWP mocking framework. You can’t say there are lot of choices. Mainly from the fact that there is no way to dynamically generate classes (as most of the framework mocking frameworks do). Therefore, you have to use another way. Like creating mock classes during the build phase. I stumbled upon an open source framework, SimpleStubs, [...]

Astuce
10 Mar, 2017

Create NDepend rules with technical debt

Following the article on technical debt in NDepend, I thought it would be good to show that you can create yourself custom rules with a value for technical debt. NDepend uses CQLinq to create its own rules. The language is based on the Linq (who would have though?), so it is familiar. As example, I will create a rule that checks at if there are no [...]

Astuce
9 Mar, 2017

Calculating technical debt with NDepend

For once we leave development with a bit of devops (in the broad sense). NDepend (www.ndepend.com) is a great tool that allows quality control on the code. It does not scan the source code itself, but make an analysis of the executables or libraries generated. He gives us an amount of info, like complexity, graph of dependencies, rules and best practices [...]

IoT
3 Jan, 2017

Barcodes on MS Band

Yes, I know: Microsoft has (it seems) dropped the Band (sad!). But as the article was 95% ready, I didn’t want throw it 🙂 There is a way to display a bar code on the Band. To do this, simply add a control of type BarCode (Surprise!) in a layout. This layout accepts the barcode type 39 and Pdf417 The best way to show something is to make [...]

Code
27 Dec, 2016

Detecting Continuum mode

One of the specific feature of W10M, unmatched by other mobile OS is Continuum. What is the Continuum? Basically, this is a feature of some Windows 10 Mobile phones (the Lumia 950 and 950XL, for instance) that turns the phone into a sort of mini PC. It is a way to add secondary screen via a dock (HD-500, for example, that also allows to add a mouse [...]

Astuce
30 Sep, 2016

Genymotion ADB server version (xx) doesn’t match this client (yy)

I recently had this very explicit error message (he seems write cryptic messages is part of the specification now): “Genymotion ADB server version (xx) doesn’t match this customer (yy)”. The error comes from the fact that the ADB used by Genymotion is not the same as that used by Xamarin (which is installed with the Android SDK). To [...]

Astuce
21 Aug, 2016

DEP 0600 while deploying a Windows Phone app

A stupid thing that happened to me several times and, because of the cryptic message, makes me lose time. It is the VS error message “ ” Error DEP0600 Can not deploy or debug it device “. ” It may come with a very explicit “Index (zero based) must be greater than or equal to zero and less than the size of the argument [...]