viernes, 6 de diciembre de 2013

Xamarin and Google Glass together

For the latest weeks I've been playing around with Google Glass, amazing technology!!! and for about a year I've been following Xamarin and using it for small projects/hackathons because I think that it is the PERFECT way to develop mobile apps.   Today it is time to try to use both together!!!

Let's start with some introductions:

Google Glass runs Android 4.0.4 and you can easily run any android app [1]  (thanks song for introducing me to Google Glass world).   You can run any standard android app, Google just released a specific SDK (the GDK) that you can also use with Xamarin if you want deeper integration with Google Glasses.

Xamarin is a cross platform framework allowing you to create mobile apps (e.g. for android) in C#/.NET will using the native UI framework in each platform.

Now, let's start having fun:

1. Download the standard Xamarin package and open Xamarin Studio

2. Create an Android project targeting an android version <= 4.0.4

3. Disable the system status bar and the application title for your Application with this code:
            Window.AddFlags(WindowManagerFlags.Fullscreen);
            RequestWindowFeature(WindowFeatures.NoTitle);


4. Use standard android controls, buttons, textviews...

5. Try to follow google guidelines if you want to create a coherent experience [2]



Screen on Google Glass


I don't have a Xamarin license to create something much better (because of the limitations of Starter licence) but if somebody gets one for me I'll be happy to build something much better to show the powerful combination of Xamarin and Google Glass :)

[1] http://songz.quora.com/How-to-run-Android-Apps-on-Google-Glass
[2] https://developers.google.com/glass/design/index

miércoles, 4 de diciembre de 2013

Distributed load testing: Introduction (1/5)

One of the typical tasks required in all the projects when building server side components is testing and specifically load&performance testing.

The first recommendation is the usage of tools or libraries as much as possible.   Please, don't try to reinvent the wheel, there are plenty of libraries and tools for testing for every possible language and type of service.  If your project is simple enough you can probably make use of simple command line tools like apache ab and if it gets more complex there are some tools like jmeter or soapui or frameworks for testing that should fit your needs.  I have to admit my preference is not to use UI tools for testing and in general prefer simple scripts easy to hack, run and maintain.  One thing to remember is that most of those tools are specially suited for HTTP services and testing is usually more complicate for other types of connection oriented protocols.

The second recommendation is to use a solution supporting distributed execution of tests.    That will ensure that your are able to put as much load as needed in the servers under test.   Typically most of the solutions are based on a master node controlling slaves nodes where the master node schedule and submit jobs to the slaves and collect and present the results and stats received from them.

In this series of posts I will explain my approach for load testing of custom non-HTTP services using  python scripts and virtual machines.