[#INTEL] Want to try a #Intel #Galileo? You are already taking so long to ask one… #4Free

Hello!

And yes, this is true. You have to go to http://www.windowsondevices.com/, sign up for the program and you can try a Intel Galileo for  free!

image

Here could write the type of app that you can create, what you must respond, etc… the best thing is that you enter and ask for a free Galileo and then connect it to Azure and start with the world domination!

Saludos @ Home

El Bruno

image image image Google

[#INTEL] Quieres probar un #Intel #Galileo? pues ya estas tardando en pedirte uno … #4Free

Hola!

Y si, lo que lees. Solo tienes que entrar a http://www.windowsondevices.com/, darte de alta en el programa y podrás probar un Intel Galileo 4 free !!!

image

Aquí podría escribir el tipo de app que puedes crear, lo que debes responder, etc … lo mejor es que entres y pidas un Galileo gratis y luego a conectarlo a Azure y a comenzar con la world domination !!!

Saludos @ Home

El Bruno

image image image Google

[#CODING4FUN] XBoxOne Controller and USB Rocket Launcher

Hello!

Let’s start in the end of the post with the output video

Now a little explanation on how to assemble this. I used the basis of my post about How to control with C# XBoxOne command. Then with a bit of code to control the rocket launcher, I get to connect both devices and the fun starts.

The complete solution includes 3 projects, 1 is responsible for controlling the Rocket Launcher, then the app WPF to coordinate signals of the remote control and the Lance missiles. Finally I have a PCL that is responsible for translating Int32 values from the command in command more basic type: up, down, left or right.

image

Actually, the work has not been very complicated, the only thing I had to keep in mind is the values that sends the controller. After seeing that the GamePad moves in the range of an Int32, the best thing was to define values for LeftFar > Left > Center > Right > RightFar, with values between – 20000 > – 10000 > 0 > 10000 > 20000. In this way a kind MoveControler helped me to translate these values the position of the joystick on the remote control.

The example is pretty simple, since I use the classes that I have created in previous posts to control the Lance missiles. For example

In this example I have left out the “corners”, I have to update the class RocketController to support this elegantly Winking smile

By the way, the full code can be downloaded from here: http://1drv.ms/1pQDQQx

Important: I deleted the NuGet packages so that the code is not very heavy, please download them again to be able to compile the solution.

References

http://elbruno.com/2014/06/27/coding4fun-xboxone-game-controller-c-fun-time/

http://1drv.ms/1pQDQQx

Saludos @ Home

El Bruno

image image image Google

[#CODING4FUN] XBoxOne Controller and USB Rocket Launcher

Hola!

Hoy empiezo por el final, primero el video con el output

Luego un poco de explicación sobre como montar esto. He partido sobre la base de mi post sobre cómo controlar con C# un mando de XBoxOne. Luego con un poco de código para controlar el lanza missiles, he llegado a conectar ambos dispositivos.

La solución completa incluye 3 proyectos, donde el 1ro se encarga de controlar el Rocket Launcher, luego la app WPF para coordinar las señales del mando y el lanza missiles. Por ultimo tengo un PCL que se encarga de traducir los valores Int32 del mando en comandos más basicos del tipo: up, down, left or right.

image

En realidad el trabajo no ha sido muy complicado, lo único que tuve que tener en cuenta es los valores que envía el controller. Despues de ver que el GamePad se mueve en el rango de un Int32, lo mejor fue definir los valores de LeftFar > Left > Center > Right > RightFar, con los valores entre -20000 > -10000 > 0 > 10000 > 20000. De esta forma una clase MoveControler me ayudaba a traducir la posición del joystick del mando en estos valores.

El ejemplo es bastante simple, ya que utilizo las classes que he creado en posts anteriores para controlar el lanza misiles. Por ejemplo

En este ejemplo he dejado fuera las “esquinas”, tengo que actualizar la clase RocketController para que soporte esto de forma elegante Winking smile

Por cierto, el código completo se puede descargar desde aqui: http://1drv.ms/1pQDQQx

Importante: he eliminado los packages NuGet para que el código no sea muy pesado, por favor descarga los mismos nuevamente para poder compilar la solución.

References

http://elbruno.com/2014/06/27/coding4fun-xboxone-game-controller-c-fun-time/

http://1drv.ms/1pQDQQx

Saludos @ Home

El Bruno

image image image Google

[#KINECTSDK] Speech recognition now available in SDK V2!

Hello!!!

We asked for it, and now we finally have weekly builds for the new Kinect V2 SDK. Now the interesting thing is that we have tons of interesting work in each release to review what you have inside. So today, a small review of something that already exists in Kinect SDK V1.8 and needed in V2: Speech Recognition.

The basis is simple and safe that you know, create a dictionary with words within the same. The interesting thing is that we make the Association of the audio feed of Kinect with the speech grammar defined in line 5 in line 18

Another important point is the section for the KinectRecognizer at the end. To see if when I arrive to Madrid I make a cool video :D

And as always, the disclaimer

“This is preliminary software and/or hardware and APIs are preliminary and subject to change”

Greetings @AVE

El Bruno

[#KINECTSDK] Speech recogntition now available in SDK V2 !!!

Hola !!!

Después de tanto pedirlo, por fin tenemos weekly builds del nuevo SDK de Kinect V2. Ahora lo interesante es que tenemos una pila de trabajo interesante en cada release para ver lo que tenemos dentro. Asi que hoy,un pequeño review de algo que ya existe en Kinect SDK V1.8 y que necesitábamos en V2: Speech Recognition.

La base es simple y seguro que lo conoces, crear un diccionario con palabras dentro del mismo. Lo interesante es que en la l’inea 18 hacemos la asociación del audio feed de Kinect con el speech grammar que se define en la línea 5

Otro punto importante es la sección para obtener el KinectRecognizer al final. A ver si cuando llego a Madrid puedo hacer una dem and video cool sobre esto :D

And as always, the disclaimer

“This is preliminary software and/or hardware and APIs are preliminary and subject to change“

Saludos @AVE

El Bruno

[#CODING4FUN] #XboxOne Game Controller + C# = fun time!

Hello!

A few days ago, MS team gives the capability to connect XBoxOne controller to a PC. This is a quite simple action: get the controller use the USB cable and… almost ready.

The great Scott Hanselman explains all of this in a post: how to install the drivers and how to configure the controls. When you’ve already done the Setup you can see the connected remote control and then just configure it.image

So at this point, you probably think: what can I do with this? The sky is the limit ;)

In this post I will share a couple of lines that show how to obtain an object of the Controller type in C# and then view the properties for the controller. First thing we could do is to see if we have a device of this type connected to our computer, we can do this with a couple of native APIs or this NuGet pckg and the following code.

However what is interesting is to see in real-time the values on the remote control. For this I created a 4.5 WPF app and added the following NuGet package: SharpDX.XInput 2.6.2 (link).

Once built the solution, you have to copy the dlls from SharpDx to the run directory and you’ll have “control” on your XBox One command !

XBox1Controller

Important: if the app does not work and you encounter this error, I recommend that DirectX reinstalls from this link.

The main view of the WPF app code is the following

 

References

http://www.hanselman.com/blog/HowToUseAnXboxOneControllerOnYourWindowsPC.aspx

https://devicemgr.codeplex.com/

http://www.microsoft.com/en-us/download/details.aspx?id=35

https://www.nuget.org/packages/SharpDX.XInput/2.6.2

Saludos @ Home

El Bruno

image image image Google

[#CODING4FUN] #XboxOne Game Controller + C# = fun time !!!

Hola! Hace un tiempo que tenemos la posibilidad de conectar los mandos de la XBoxOne a nuestro ordenador. Esto es simple, mando + cable USB y … casi listo. El gran Scott Hanselman explica en un post, cómo instalar los drivers (todavía no oficiales) y cómo configurar los mandos. Cuando has hecho la configuración ya puedes ver el mando conectado y luego solo queda configurar el mismo. image Pues bien hasta aquí la parte plug and play, lo que sigue es lo que seguro pensaste cuando leíste el post de Scott; ¿y qué puedo hacer con esto?. Aquí el cielo es el límite. En este post dejaré un par de líneas que muestran como obtener un objeto del tipo Controller en C# y luego ver las propiedades del mismo. Lo primero que podríamos hacer es ver si tenemos un device de este tipo conectado a nuestro ordenador, esto lo podemos hacer con un par de APIs nativas o con este NuGet pckg y el siguiente código. https://gist.github.com/elbruno/5d980a62502bb8ba910b Sin embargo lo interesante es poder ver en tiempo real los valores del mando. Para esto he creado una app WPF 4.5 y agregado el siguiente paquete NuGet: SharpDX.XInput 2.6.2 (link). Una vez compilado, he copiado las dlls correspondientes de SharpDx al directorio de ejecución y ya tengo “control” sobre mi mando de XBox One !!! XBox1Controller Importante: Si no te funciona la app y te encuentras con este error, te recomiendo que reinstalles DirectX desde este link. El código de la vista principal de la app WPF es el siguiente https://gist.github.com/elbruno/b69ecfede4d0d91f2835   Referencias http://www.hanselman.com/blog/HowToUseAnXboxOneControllerOnYourWindowsPC.aspx https://devicemgr.codeplex.com/ http://www.microsoft.com/en-us/download/details.aspx?id=35 https://www.nuget.org/packages/SharpDX.XInput/2.6.2 Saludos @ Home El Bruno

image image image Google

[#KINECTSDK] Novedades en el Kinect SDK V2 (still in Beta, aunque ya falta poco)

Hola!

Cuando faltan pocos días para que el nuevo sensor Kinect V2 esté oficialmente a la venta, y también se lance el nuevo SDK V2, el mismo va tomando forma.

En la versión que se ha lanzado hace 2 días, tenemos las siguientes novedades disponibles

- Tenemos una nueva app y un repaso de look & feel en otra de las apps

image

- Gesture Builder, esta app nos permite definir y grabar un gesto (gesture) utilizando Machine Learning y el proceso de Frames con la información de Body.

image

- Kinect Studio, la app sigue siendo la que conocemos, aunque ahora en modo “bonito”

image 

- Ahora también tenemos ejemplos para WinRT, no solo en XAML sino también en JS y HTML

image

Pues, esto va tomando forma y seguramente en la próxima build ya tendremos un SDK más que completo.

And as always, the disclaimer

“This is preliminary software and/or hardware and APIs are preliminary and subject to change“

 

Saludos @ La Finca

El Bruno

image image image Google

[#AZURE] When you get a "Could not load file or assembly ‘ Microsoft.WindowsAzure.ServiceRuntime,…" it means make some coffee, long nights are coming

Hello!

When a Cloud Service app that is working since months stops working without a log trace or error log, you know it’s time to prepare some coffee, long nights are waiting for you. Even more if the exception is sporadic and reproduce the error is not trivial.

In this particular case the error was not an exception, at the end it ended up lost as a bad Http Response. To get to this conclusion, I had to break one of the most important rules in a Dev Team:

I’ve debugged the production environment (well actually I didn’t, but the phrase must scare someone!)

I still remember the headaches that I get, when I get my hands into a production server and see development tools installed in the server. The most extreme one was in a customer and find that the transaction manager service had stopped working because… someone had killed the VisualCafe instance (all the JBoss transaction manager service was being executed with a F5 from VisualCafe, and thus lasted several days!).

In our case, the strange thing is that we get to the 2nd most hated sentence for developers

IT WORKS IN MY LAPTOP !!!

And that’s it, locally with the Azure everything works fine. However in production we find the ghosts and goblins. So to find the solution we have several options, one of them involved IntelliTrace and logs, the other was much more cooler Winking smile

The solution was to create a new Cloud Service App in Azure, deploy our solution there (which is easier to say that do, because the number of dependencies involved) and expect to get the exception. (In the original cloud service app there are people working from China, Brazil, USA, France, so make changes to this one is kind of play to be God… ))

Fortunately, in this new environment we also find the exception. And this is the correct moment to Thank to the MICROSOFT’s AZURE Team for the 2nd option in the image below :

image

So, we connected in debug mode to a running instance of a website in a Cloud Service App from Azure! This feature was announced some time ago, and this is the type of news that you don’t this are much important until you need them. (Note: Gisela write an amazing article about this, you can read this here)

So after a while diving in the code we get to the exception

{“Could not load file or assembly ‘ Microsoft.WindowsAzure.ServiceRuntime, Version = 2. 3. 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35′ or one of its dependencies.”} {The system cannot find the file specified. “:” Microsoft.WindowsAzure.ServiceRuntime, Version = 2. 3. 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35″}

It was a bucket of cold water, since the way we work with AZURE  model had not changed in quite some time. After researching and found some people with similar problems (1, 2, 3, and 4), we arrived at a solution that still not convinced me at all.

  • Update all projects that use NuGet pkgs from Azure to latest version. This is consistent and is part of we do in each SDK Update.
  • Modify the Dll References property “Copy Local = True”, to include them in the deploy package. In this case the dlls were: Microsoft.WindowsAzure.Configuration, Microsoft.WindowsAzure.Diagnostics, Microsoft.WindowsAzure.Storage and… Microsoft.WindowsAzure.ServiceRuntime. the latter is incredible.
  • Add a redirection of assemblies in the web.config that correct versions are used. Something like

< assemblyIdentity element name = “Microsoft.WindowsAzure.ServiceRuntime” culture = “neutral” publicKeyToken = “31bf3856ad364e35″ / >”
< bindingRedirect oldVersion = “0.0.0.0-2.3.0. 0″ newVersion =” 2.3.0. 0″ / >
< /dependentAssembly >

 

While these steps are consistent, the 2nd where we’ve had to include Microsoft.WindowsAzure.ServiceRuntime with local copy = true, gives me something to think. According to my understanding, a Cloud Service App should include these components Out of the Box.

Well, this solution works and now touch me ask the cracks of Azure: @ibonilm or @quiqu3 that I’ve lost along the way.

PS: on the road I can explain also the following error:

Message = Could not load file or assembly ‘ msshrtmi, Version = 2. 3. 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.
Source = Microsoft WindowsAzure. ServiceRuntime
FileName = msshrtmi, Version = 2 3 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35

This is the perfect excuse for a Beer or Tequila…

Update: Thanks to Gisela (@0Gis0) who helped me with the issue!

Saludos @ La Finca

El Bruno

image image image Google