[#AZURE] HowTo: Publish a #ClickOnce application using and #AZURE website


image

Buenas,

 

Today he has a tutorial on those fast which I hope to save you some time, instead of investigating how to do it.What we want to do is simple: publish a WPF application with ClickOnce using a website of Azure as our point of distributing and updating. We are going with the step by step.

1. AZURE portal (www.azure.com) create a new item of type “COMPUTE / / WEB SITE / QUICK CREATE”.

image

2. For this demo created website is identified with
http://elbrunoclickonce.azurewebsites.net
.

3. AZURE ready, now go to Visual Studio 2012 and create a new WPF Application project. In this case I’ve called it “ElBrunoClickOnce”.

image

4. This step is optional but comes in handy to test our deployments, we will show the version number of the deployment of ClickOnce in the MainWindow title.

5. We add a reference to System.Deployment.

6 We modify the code of the MainWindow

   1: using System.Windows;
   2:  
   3: namespace ElBrunoClickOnce
   4: {
   5:     public partial class MainWindow : Window
   6:     {
   7:         public MainWindow()
   8:         {
   9:             InitializeComponent();
  10:             DisplayVersion();
  11:         }
  12:  
  13:         private void DisplayVersion()
  14:         {
  15:             var version = string.Format("assembly: {0}", ((System.Reflection.AssemblyFileVersionAttribute)
  16: (System.Reflection.Assembly.GetExecutingAssembly().
  17: GetCustomAttributes(typeof(System.Reflection.AssemblyFileVersionAttribute), 
  18: false)[0])).Version);
  19:  
  20:             if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
  21:             {
  22:                 System.Deployment.Application.ApplicationDeployment ad =
  23:                 System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
  24:                 version = string.Format("ClickOnce: {0}", ad.CurrentVersion.ToString());
  25:             }
  26:             Title = version;
  27:         }
  28:     }
  29: }

7. If we run the application we will see the version number by default of the Assembly

image

8. Now that we have our application, we will proceed to publish the same in Azure website. For this, we will first add a project ASP.Net MVC 4 to our solution. In this case I called it “ElBrunoClickOncePublish”.

image

9. Inside of the new project we created a folder called “install”

image

10. Now we will publish our web project to Azure. Luckily the friends of Microsoft have done more easier and, with each new upgrade of AZURE. We’re going for the easy way of all: we select our project Web, deplegamos the context menu and select “Publish”

image

11. Then select a profile for the publication. You can download this profile from the AZURE of our website management console.

image

12. A more simple, available since the last update of AZURE, method is to select “Import” and select the target website using our credentials of AZURE,.

image

13. Once imported profile we can follow the step by step Publishing Wizard. The final step allows us to make a preview of the items to publish and launch the publication.

image

14. Once published we can see the site online

15. Now we are going to configure ClickOnce deployment. We access the WPF project properties and in the Publish section we complete the following values:

Publishing Folder:…\ElBrunoClickOncePublish\install\ (this configuration publishes ClickOnce files directly to the Web site project directory)

Installation Folder:
http://elbrunoclickonce.azurewebsites.net/install/

image

16. In the updates section, we defined that our application should be validated by new versions before launching and define again the upgrade path.

image

17 We complete the settings in the section “Options”

image

18 It is important to define a publication for our project page, in this case > publish.htm

image

19 And we’re ready, click “Publish Now” and launched a publication.

20. When you have finished publishing, selected the option to show all files in the web project and see that the ClickOnce publishing elements are inside the folder “install”

image

21 Add them as part of the website and launched a publication to AZURE from our website.

image

22. Our url of publication is ready, in this case it is
http://elbrunoclickonce.azurewebsites.net/install/publish.htm
, if we sailed it we will see that we have the installation of our app page.

image

23. An important detail. As I haven’t used any “good” certificate for the publication, at the time of install Win8 warns us that this may be a software of dubious origin. As in this case, it comes from my own, select the option “more info” and then “run anyway”

image

24. Then we can install the application.

image

25 Then again validate the security, already we can see our application running and displaying the ClickOnce version number.

image

26. Now we will generate a new version of the WPF app. We do a publish it again and we will see in the web project, we have 2 versions

image

27. Now we add to the project the generated version and I aconsejor remove the previous version. (I.e. AZURE, the space is paid!)

image

28. Publish our web project back to AZURE and if we navigate the installation page will see that it has been updated.

image

29. Now, try ClickOnce. We launched the application and see that we have an available update.

image

30. We apply the update, a pair of security warnings and ready! We have the updated version

image

And only 30 steps Risa

Saludos @ Home

El Bruno

image image image

[#AZURE] HowTo: Publicar una aplicacion ClickOnce en un website de Azure


image

Buenas,

hoy toca un tutorial de esos rápidos que espero que te ahorre un poco de tiempo, en lugar de investigar como hacerlo. Lo que queremos hacer es simple: publicar una aplicacion WPF con ClickOnce, utilizando un website de Azure como nuestro punto de distribución y actualización. Vamos con el paso a paso.

1. En el portal de AZURE (www.azure.com) creamos un nuevo elemento de tipo “COMPUTE // WEB SITE / QUICK CREATE”.

image

2. Para esta demo el website creado se identifica con
http://elbrunoclickonce.azurewebsites.net
.

3. Listo AZURE, ahora vamos a Visual Studio 2012 y creamos un nuevo proyecto de tipo WPF Application. En este caso la he llamado “ElBrunoClickOnce”.

image

4. Este paso es opcional pero viene bien para probar nuestros despliegues, mostraremos el número de versión del despliegue de ClickOnce en el título del MainWindow.

5. Agregamos una referencia a System.Deployment.

6. Modificamos el código del MainWindow

   1: using System.Windows;

   2:  

   3: namespace ElBrunoClickOnce

   4: {

   5:     public partial class MainWindow : Window

   6:     {

   7:         public MainWindow()

   8:         {

   9:             InitializeComponent();

  10:             DisplayVersion();

  11:         }

  12:  

  13:         private void DisplayVersion()

  14:         {

  15:             var version = string.Format("assembly: {0}", ((System.Reflection.AssemblyFileVersionAttribute)

  16: (System.Reflection.Assembly.GetExecutingAssembly().

  17: GetCustomAttributes(typeof(System.Reflection.AssemblyFileVersionAttribute), 

  18: false)[0])).Version);

  19:  

  20:             if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)

  21:             {

  22:                 System.Deployment.Application.ApplicationDeployment ad =

  23:                 System.Deployment.Application.ApplicationDeployment.CurrentDeployment;

  24:                 version = string.Format("ClickOnce: {0}", ad.CurrentVersion.ToString());

  25:             }

  26:             Title = version;

  27:         }

  28:     }

  29: }

 

7. Si ejecutamos la aplicación veremos el número de versión por defecto del ensamblado

image

8. Ahora que tenemos nuestra aplicación, procederemos a publicar la misma en website de Azure. Para esto primero agregaremos un proyecto de tipo ASP.Net MVC 4 a nuestra solución. En este caso lo he llamado “ElBrunoClickOncePublish”.

image

9. Dentro del nuevo proyecto creamos una carpeta llamada “install”

image

10. Ahora publicaremos nuestro proyecto web a Azure. Por suerte los amigos de Microsoft lo han hecho cada vez más fácil, con cada nuevo upgrade de AZURE. Vamos por el camino más fácil de todos: seleccionamos nuestro proyecto Web, deplegamos el context menu y seleccionamos “Publish”

image

11. A continuación debemos seleccionar un perfil para la publicación. Podemos descargar este perfil desde la consola de administración de AZURE de nuestro website.

image

12. Un método más simple, disponible desde el último update de AZURE, es seleccionar “Import” y con nuestras credenciales de AZURE, seleccionar el website de target.

image 

13. Una vez importado el perfil podemos seguir el asistente paso a paso para la publicación. El paso final nos permite hacer un preview de los elementos a publicar y lanzar la publicación.

image

14. Una vez publicado podemos ver el site online

 

15. Ahora vamos a configurar el despliegue de ClickOnce. Accedemos a las propiedades del proyecto WPF y en la sección Publish completamos los siguientes valores:

Publishing Folder: ..\ElBrunoClickOncePublish\install\ (Esta configuración publica los archivos de ClickOnce directamente al directorio de proyecto del website)

Installation Folder:
http://elbrunoclickonce.azurewebsites.net/install/

image

 

16. En la sección updates, definimos que nuestra aplicación deberá validar por nuevas versiones antes de lanzarse y definimos una vez más la ruta de actualización.

image 

17. Completamos los valores de la sección “Options”

image

18. Es importante definir una página de publicación para nuestro proyecto, en este caso > publish.htm

image

19. Y ya estamos listos, presionamos “Publish Now” y lanzamos una publicación.

20. Cuando ha terminado la publicación, en el proyecto web seleccionamos la opción de mostrar todos los archivos y vemos que los elementos de la publicación de ClickOnce están dentro de la carpeta “install”

image

21. Los agregamos como parte del website y lanzamos una publicación a AZURE de nuestro website.

image

22. Nuestra url de publicación ya está lista, en este caso es
http://elbrunoclickonce.azurewebsites.net/install/publish.htm
, si navegamos la misma veremos que tenemos la página de instalación de nuestra app.

image

23. Un detalle importante. Como no he utilizado ningún certificado “bueno” para la publicación, al momento de instalar Win8 nos avisa que este puede ser un software de procedencia dudosa. Como en este caso procede de mi mismo, seleccionamos la opción ”more info” y luego “run anyway”

image

24. Luego ya podemos instalar la aplicación.

image

25. Luego de validar nuevamente la seguridad, ya podemos ver nuestra aplicación funcionando y mostrando el nro de versión de ClickOnce.

image

26. Ahora vamos a generar una nueva versión de la app WPF. Hacemos un publish de la misma nuevamente y veremos que en el proyecto web, tenemos las 2 versiones

image

27. Ahora agregamos al proyecto la versión generada y yo aconsejor eliminar la versión anterior. (Esto es AZURE, el espacio se paga!)

image

28. Publicamos nuevamente nuestro proyecto web a AZURE y si navegamos la página de instalación veremos que la misma se ha actualizado.

image

29. Ahora bien, probemos ClickOnce. Lanzamos la aplicación y vemos que tenemos un update disponible.

image

30. Aplicamos el update, un par de warnings de seguridad y listo !!! tenemos la versión actualizada

image

Y solo en 30 pasos Risa

Saludos @ Home

El Bruno

image image image

[#KINECTSDK] #Robosapien and #Kinect … finally here !!!


image

Buenas,

Today it had intended writing about AZURE and ClickOnce, but I found this project really making that the year 2013 will become one of the best…

I said, speechless and with the code available at
https://github.com/fatihboy/Robosapien

Source:
http://channel9.msdn.com/coding4fun/kinect/Kinect–Robosapien-Source-Cool?utm_source=feedly

Saludos @ Home

El Bruno

image image image

[#KINETSDK] HowTo: Controlar un #RoboSapien con #Kinect


image

Buenas,

hoy tenía pensado escribir sobre AZURE y ClickOnce, pero me he encontrado con este proyecto que realmente hace que el año 2013 se convierta en uno de los mejores …

 

Lo dicho, sin palabras y con el código disponible en
https://github.com/fatihboy/Robosapien

Fuente:
http://channel9.msdn.com/coding4fun/kinect/Kinect–Robosapien-Source-Cool?utm_source=feedly

Saludos @ La Finca

El Bruno

image image image

[#ENTLIB] Enterprise Library 6 Wave 2 released


image

Buenas,

a few days ago I mentioned the release of Enterprise Library 6 . Today updating me of what me looses during the weekend, I see that a new Wave (wave) related to EntLib has left a few days ago. Actually the core remains the same, but in this release we have some interesting things

  • a reference application that uses EntLib 6 (and EntLib5). I’m wary of these reference apps, the real world is much more complicated, but look there is to take a look.
  • new quickstarts for unity and semantic logging among others.

Let’s go is a boost for next great to have along with EntLib training material.

Source:
http://blogs.msdn.com/b/agile/archive/2013/05/24/microsoft-enterprise-library-6-wave-2-release.aspx

 

Saludos @ Home

El Bruno

image image image

[#ENTLIB] Enterprise Library 6 Wave 2 released


image

Buenas,

hace unos días comenté el lanzamiento de Enterprise Library 6. Hoy poniéndome al día de lo que se me atrasa durante el fin de semana veo que una nueva Wave (oleada) relacionada con EntLib ha salido hace unos días. En realidad el core sigue siendo el mismo, sin embargo en este lanzamiento tenemos algunas cosillas interesantes

  • una aplicación de referencia que utiliza EntLib 6 (y EntLib5). Yo soy de desconfiar de estas apps de referencia, el mundo real es mucho más complicado, pero mira ahí está para darle un vistazo.
  • nuevos quickstarts para unity y semantic logging entre otros.

Vamos que es un empujón de material de formación que viene genial para tener junto a EntLib.

Fuente:
http://blogs.msdn.com/b/agile/archive/2013/05/24/microsoft-enterprise-library-6-wave-2-release.aspx

Saludos @ Home

El Bruno

image image image

[#KINECT] Cuando estará disponible la nueva Kinect for Windows ? #XBOXONE


image

Buenas,

al final mi mujer terminará teniendo razón (como siempre) y tendré que aceptar que yo solito me meto en estos líos. Después de que ayer escribiese un post sobre las novedades del nuevo Kinect, ya más de uno comenzó a preguntar cuando se podrá comenzar a probar el mismo.

Si conoces el esquema de promoción de productos de Microsoft, seguramente sabes que es diferente al de Apple. Ms no presenta un producto que al día siguiente esté a la venta. Por ejemplo, en el caso de Kinect (project Natal) pasaron 2 años hasta que estuvo disponible de forma masiva.

Pues con la nueva Kinect pasa algo parecido, HAY QUE ESPERAR HASTA EL 2014. Lo que estamos viendo es impresionante, lo que veremos en 2 semanas será mas impresionante aún, pero tendremos que esperar hasta el 2014 para poder comprar una en la esquina de casa.

Eso sí, en este caso, cuando salga a la venta el Kinect, también se podrá descargar el SDK para Windows de Kinect, eso sí que está asegurado.

 

Fuente:
http://blogs.msdn.com/b/kinectforwindows/archive/2013/05/23/the-new-generation-kinect-for-windows-sensor-is-coming-next-year.aspx?utm_source=feedly

Saludos @ Barcelona

El Bruno

image image image

[#KINECT] What’s new in the Kinect #XboxOne


Good,

2 days ago that presented the new XBox One, and one of the things that most had us intrigued was that had the new KINECT.

If you’re not aware, I summarize what you at points that I consider to be the most important.

image

Hardware

The new XBox One is more ugly than bite sand. And the new Kinect is not far behind. The good news is that behind the appearance of seedy gadget of a movie from the 80′s the new kinect has

  • More deep sensor resolution (but much more), detects if you are near enough to the buttons on a shirt
  • Much more resolution in the camera, we now have an HD Video Camera, 1080 p
  • Active IR, an active infrared sensor which allows to identify objects and people in environments with little or no luminosity (zero is ZERO, with the lights out)
  • They have not said anything engine and I think there is no more. Now with the wide angle that has the new Kinect needless move it up or down in order to focus on better

And now we are going with the features…

Skeleton Tracking

If we talk about the Skeleton tracking, kinect has moved from version 1.0 to version 2.0. They are now detected more Joints, can be detected in the same rotation, fingers, etc. are detected We’ll it’s awesome

image

Force detector

Another interesting feature is the ability to analyze the forces acting on each Joint. The following image shows how to pass weight one foot to the other, it turns red to indicate an excess of force in the same (if che, sounds like a Jedi)

imageimage

Impact = Muscle + Force

Here is another good, analysing the acceleration of the body elements and crossing this information with the force that is applied in the same, it is possible to identify and see something like “impacts”. In the WIRED video journalist makes a… of the Street Figther which is to die of joy!

imageimage

Heart Rates

If if if it seems a bit of science fiction but now you can have access to information with the heartbeat of every user. Analyzing changes in the skin, you can estimate keystrokes per minute, etc. I guess clinical applications with this front :D

image

Expression platform

Advanced facial recognition

image

Several

Autologon using facial recognition

Detection of up to 6 players

and much more!

image

By the way, this information is published. You can see in the following video of the cracks of WIRED that has happened to me the Edu.

Source:
http://video.wired.com/watch/new-xbox-kinect-exclusive-wired-video-398878

Saludos @ La Finca

El Bruno

image image image

[#KINECT] Que hay de nuevo en Kinect 2.0 (se llamará así?)


 

Buenas,

hace 2 días que se presentó la nueva XBox One, y una de las cosas que más nos tenía intrigados era QUE TENÏA EL NUEVO KINECT.

Si todavía no estás al tanto, te lo resumo en los puntos que yo considero que son los más importantes.

image

Hardware

Pues la nueva XBox One es más fea que morder arena. Y el nuevo Kinect no se queda atrás. Lo bueno es que detrás de la apariencia de gadget cutre de una película de los 80’s el nuevo kinect tiene

  • Más resolución en el sensor de profuncidad (pero mucha más), detecta hasta los botones de una camisa si estas suficientemente cerca
  • Mucha más resolución en la cámara, ahora tenemos una HD Video Camera, 1080p
  • Active IR, un sensor activo de InfraRojos que permite identificar objetos y personas en entornos con poca o nula luminosidad (nula es ZERO, con las luces apagadas)
  • No han dicho nada del motor y creo que no hay más. Ahora con el gran angular que posee el nuevo Kinect no hace falta moverlo hacia arriba o abajo para poder enfocar mejor

Y ahora vamos con las features …

Skeleton Tracking

Si hablamos del Skeleton tracking, el kinect ha pasado de una versión 1.0 a una version 2.0. Ahora se detectan mas Joints, se puede detectar la rotación de los mismos, se detectan dedos, etc. Vamos que es impresionante

image

Force detector

Otra feature interesante es la capacidad de analizar las fuerzas que actuan sobre cada Joint. La siguiente imagen muestra como al pasar el peso de un pie al otro, el mismo se pone de color rojo para indicar un exceso de la fuerza en el mismo (si che, suena a Jedi)

imageimage

Impactos = Muscle + Force

Aqui va otra de las buenas, analizando la aceleración de los elementos del cuerpo y cruzando esta información con la fuerza que se aplica en los mismos, es posible identificar y ver algo parecido a “impactos”. En el video de WIRED el periodista hace un … del Street Figther que es para morir de la alegría!

imageimage

Heart Rates

Si si si, parece un poco de ciencia ficción pero ahora puedes tener acceso a la información con los latidos del corazón de cada user. Analizando los cambios en la piel, se puede estimar las pulsaciones por minutos, etc. Imagino aplicaciones clínicas con esto delante :D

image

Expression platform

Reconocimiento facial avanzado

image

Varias

Inicio de sesión automático utilizando reconocimiento facial

Detección de hasta 6 jugadores

y mucho más !!!

image

 

Por cierto, esta información ES PUBLICA. Se puede ver en el siguiente video de los cracks de WIRED que me ha pasado el Edu.

Fuente:
http://video.wired.com/watch/new-xbox-kinect-exclusive-wired-video-398878

Saludos @ La Finca

El Bruno

image image image