Windows 10 IoT – Raspberry PI 2

Finaly I received my Raspberry PI 2, just in time to make some tests with Windows 10 IoT (Internet of Things).

Microsoft released Windows 10 IoT that can be installed in Raspberry PI 2 and allow us to develop in CSharp (for example) with full access to sensors and devices.

This post is just to show how easy it is to program in CSharp a simple class to access a 7 Segment led using Raspberry.



Dynamically Executing Code in .NET – Compiling C# Code at Runtime

In a recent project, I was confronted with a necessity to change some parts of code algorithms very quickly because government changes. Updating the entire application was not an option, so I decided to implement a feature to allow the application to download small pieces of code that changed frequently to use it.

The application perform some tax math that changes in a monthly basis. Now I can pull only changed code and use it to perform the routine.

To do this I have used the CSharpCodeProvider class from Dotnet framework, that allow us to use C# code as scripting language in my C# application.

In this article I am creating a simple application that have two listbox, the source have all country names and the target will be populated from our script code.


Component: Card Library

Card Library provides an easy way to display a UI Card using the Official Google CardView in your Android app.

It is an amazing library that can greatly enhance your UI with very nice views.

It can be used from API Version 14 (4.0). Unfortunatelly I wasn’t able to use it because my app minimum API version is 10 (2.3.3). But my next app certainly will use this library.

I have found the Card Library in github at  Card Library (Copyright Gabriele Mariotti).

You can download an Android Sample App at  CardsLib Demo



(image was taken from owner site on githug)

Polymer: Creating a simple list component

Extracted from Google Polymer website:

Polymer is a pioneering library that makes it faster and easier than ever before to build beautiful applications on the web. Polymer is built on top of a set of powerful new web platform primitives called Web Components. Web Components bring unprecedented composability, interoperability, and consumability to the web platform. The result is a monumental increase in developer productivity.

The main concept in Polymer is to give an opportunity to create web applications on top of web components. So you develop several web components and use them to develop your web app. You can use the same web component in several pages or projects.

Polymer is still in development, but it is actually very stable and there is lots of small projects already using it. This small tutorial uses version 0.5.1 of polymer.

In this article I will show how to construct a very simple component, that will receive an object (or JSON string) with person information and render a list with those information. (more…)

Localizing an Android App

It is an easy task to implement localization in an Android App, you just need to create the resource files for each language and later Android will be responsible to present the correct one for each device configuration.

This article cover the steps to create the resources and explain how to force a specific language to be used if needed. For this example I managed to provide localization for english, spanish and portuguese. Android Studio was used to implement all steps.