Jim Bennett

Senior Cloud Advocate at Microsoft, Xamarin Certified Developer, author of Xamarin In Action, blogger, speaker, father and lover of beer, whisky and Thai food. Opinions are my own.

  Redmond, WA, USA

My book:

Xamarin In Action

Contact me:

  Xamarin In Action
  Twitter
  GitHub
  LinkedIn
  YouTube
  Email
  CV

Streaming Serial data using an MXChip

The MXChip board has 2 serial ports - one using the USB which is great for debugging, and one you can use to stream data from third party modules. This article shows you how! TL;DR - connect the TXD on the module to 1 on the MXChip, RXD to 2, then create a new Serial using UARTClass Serial1(UART_1); You can then call this in the same way as the Ard…

Read More

Trying out Try .NET

Try .NET is a new thing to come from the .NET teams that allows you to, well, try .NET. In a browser. You can think of it as a way to create interactive .NET documentation using .NET Core. What is Try .NETThe experience or writing code in a browser itself isn't new, developers have been able to try out C# coding snippets in the browser for a while…

Read More

Screen sharing a Raspberry Pi from a Mac

I've been playing with a Raspberry Pi for a while, and I'm getting fed up with changing the input to my monitor and using a second keyboard/mouse (yeah, yeah, 1st World Problem I know). I decided to set up a remote screen share so I can share the screen. This means I can use the same monitor/keyboard/mouse that I use for my Mac, but it also means I…

Read More

Xamarin ❤ F#

Xamarin and Xamarin.Forms need no introduction. I'm sure by now you are well aware of these technologies and have seen many examples of building cross-platform mobile apps using C#. If not, I can highly recommend my book Xamarin in Action which if you follow this link and use code 'xamarininaction' you can get 40% off the cover price. What you many…

Read More

Running AI models on iOS, Android and Windows using Xamarin

I created a NuGet package a while ago to allow you to run models exported from the Azure Custom Vision service on iOS and Android in Xamarin apps from your cross-platform code. You can read about this here. Since then, the Custom Vision service has added ONNX export, meaning you can now run these models on-device on Windows as well. This meant it…

Read More

What the @ - fixing weirdness in return JSON from Azure functions using F#

I've been playing a lot with F# recently, both to build Xamarin apps using Elmish.XamarinForms and for some Azure Functions. Whilst building an HTTP trigger I came across some weirdness when serializing a record type to JSON. This is the relevant parts of my code: type Output = { TotalBalance : float } let Run(req: HttpRequestMessage, boundTable:…

Read More
 

Streaming Serial data using an MXChip

The MXChip board has 2 serial ports - one using the USB which is great for debugging, and one you can use to stream data from third party modules. This article shows you how! TL;DR - connect the TXD on the module to 1 on the MXChip, RXD to 2, then create a new Serial using UARTClass Serial1(UART_1); You can then call this in the same way as the Ard…

Read More

Trying out Try .NET

Try .NET is a new thing to come from the .NET teams that allows you to, well, try .NET. In a browser. You can think of it as a way to create interactive .NET documentation using .NET Core. What is Try .NETThe experience or writing code in a browser itself isn't new, developers have been able to try out C# coding snippets in the browser for a while…

Read More

Screen sharing a Raspberry Pi from a Mac

I've been playing with a Raspberry Pi for a while, and I'm getting fed up with changing the input to my monitor and using a second keyboard/mouse (yeah, yeah, 1st World Problem I know). I decided to set up a remote screen share so I can share the screen. This means I can use the same monitor/keyboard/mouse that I use for my Mac, but it also means I…

Read More

Xamarin ❤ F#

Xamarin and Xamarin.Forms need no introduction. I'm sure by now you are well aware of these technologies and have seen many examples of building cross-platform mobile apps using C#. If not, I can highly recommend my book Xamarin in Action which if you follow this link and use code 'xamarininaction' you can get 40% off the cover price. What you many…

Read More

Running AI models on iOS, Android and Windows using Xamarin

I created a NuGet package a while ago to allow you to run models exported from the Azure Custom Vision service on iOS and Android in Xamarin apps from your cross-platform code. You can read about this here. Since then, the Custom Vision service has added ONNX export, meaning you can now run these models on-device on Windows as well. This meant it…

Read More

Running custom vision models on a Windows device

Recently I wrote about creating AI models using the Azure Custom Vision Service. In these posts I looked at creating and training models, running them online, then finally exporting the models to run on iOS using CoreML and Android using TensorFlow. Recently Microsoft announced another way to export models - as ONNX models that can be run using Wi…

Read More

Setting iOS permission descriptions in Visual Studio 2017

I spend most of my developer day using Visual Studio for Mac, but occasionally I flip back to Visual Studio 2017 on Windows. Last time I flipped back I tried to build an app that uses the camera and I got stuck on one simple thing - setting the camera usage description. If you double click on the info.plist file in an iOS app project, it will open…

Read More

What the @ - fixing weirdness in return JSON from Azure functions using F#

I've been playing a lot with F# recently, both to build Xamarin apps using Elmish.XamarinForms and for some Azure Functions. Whilst building an HTTP trigger I came across some weirdness when serializing a record type to JSON. This is the relevant parts of my code: type Output = { TotalBalance : float } let Run(req: HttpRequestMessage, boundTable:…

Read More