[# KINECT] Changes in # KinectSdk from Beta 2 to SDK V1.0 (I)

image47dd1de4

Hi,

before that I remain obsolete and while I still participate in the MVP Summit 2012 but virtually come with some of the changes that we have to take into account if we have applications for Kinect to use the Kinect SDK Beta 2 and thought of migrating to Kinect SDK V1.0.

References

Initially we had a reference to Microsoft.Research.Kinect

image

With the new SDK must resolve the invalid reference and add a new one to Microsoft. Kinect .

image

Sensor initialization

When we used the Beta 2, we had to define the initialization of the sensor using the Initalize() method and at the same time passed you a series of parameters to initialize camera, depth sensor and detection of skeletons.

   1: void InitKinect()

   2: {

   3:     if (Runtime.Kinects.Count == 0)

   4:         return;

   5:     kinect = Runtime.Kinects[0];

   6:     RuntimeOptions = RuntimeOptions.UseDepthAndPlayerIndex | 

   7:         RuntimeOptions.UseSkeletalTracking | 

   8:         RuntimeOptions.UseColor;

   9:     kinect.Initialize(RuntimeOptions);

  10:     kinect.DepthStream.Open(ImageStreamType.Depth, 2, ImageResolution.Resolution320x240,

  11:         RuntimeOptions.HasFlag(RuntimeOptions.UseDepthAndPlayerIndex) || 

  12:         RuntimeOptions.HasFlag(RuntimeOptions.UseSkeletalTracking) ? 

  13:         ImageType.DepthAndPlayerIndex : ImageType.Depth);

  14:     kinect.DepthFrameReady += this.KinectDepthFrameReady;

  15: }

With SDK V1.0 this is much simpler. I believe that the following code, where only Initializes the depth sensor, is declarative enough as to who understand that the important thing is now in line 6.

   1: void MainWindowLoaded(object sender, RoutedEventArgs e)

   2: {

   3:     if (KinectSensor.KinectSensors.Count == 0)

   4:         return;

   5:     this.kinectSensor = KinectSensor.KinectSensors[0];

   6:     this.kinectSensor.DepthStream.Enable();

   7:     this.kinectSensor.Start();

   8:     this.kinectSensor.DepthFrameReady += this.KinectSensorDepthFrameReady;

   9: }

 

If we wanted as well as the depth sensor to activate the camera stream and also the recognition of skeletons, the following code is that we have to use. The lines  6, 7 and 8 are the important ones.

   1: void MainWindowLoaded(object sender, RoutedEventArgs e)

   2: {

   3:     if (KinectSensor.KinectSensors.Count == 0)

   4:         return;

   5:     this.kinectSensor = KinectSensor.KinectSensors[0];

   6:     this.kinectSensor.ColorStream.Enable();

   7:     this.kinectSensor.SkeletonStream.Enable();

   8:     this.kinectSensor.DepthStream.Enable();

   9:     this.kinectSensor.Start();

  10:     this.kinectSensor.DepthFrameReady += this.KinectSensorDepthFrameReady;

  11: }

 

In coming posts other examples about some changes from Beta 2 to the Final SDK.

Greetings @ Home

El Bruno

Download: http://www.microsoft.com/en-us/kinectforwindows/develop/overview.aspx

Advertisements

[# VS2010] On LightSwitch and how works internally with their databases

image47dd1de4

Hi,

Since a couple of days ago I I am giving a bath of Visual Studio LightSwitch. He may like you or not, but to get you out of a tight spot in a fast CRUD generation, as it is quite powerful. However, when you have a computer with more product trial versions that stable versions, you usually find yourself with errors such as the following.

The first thing I found was at the time of launch my LightSwitch application an error related to the version of SQL Server.

   1: Error    67    Sql Server version not supported.
   2: 11.00.1440    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch.targets

Of course, the express version of Denali I have installed doesn’t like to LightSwitch. So I decided to change it from Visual Studio configuration: "Tools / / Options"and then in the section"Database Tools / / DataConnections". In my case the option that appeared was ". SQLExpress" and that version of SQL is the 11.

image

I changed the value for a 10 version of SQL Express that I have installed in local, but also ran the application. The next thing was to go see the execution target. That had the target path in

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v1.0\Microsoft.LightSwitch.targets)

Because we see that it has the same code inside. I found several things, but what most caught my attention was that always used a property

$(SqlExpressInstanceName)

that it was not declared anywhere.

   1: <!--The Development Database is built in the same location - Bin\Data - for all configurations.-->
   2: <BuildSchema Inputs="@(LightSwitchModel)"
   3:              ProjectPath="$(MSBuildProjectFullPath)"
   4:              OutputDirectory="Bin\Data"
   5:              SqlExpressInstanceName="$(SqlExpressInstanceName)"
   6:              ExternalDataSources="@(ServerExternalDataSources)"/>
   7: <!--The _IntrinsicData connection string should be updated to use the SQL Express Instance Name
   8:     from the LightSwitch Project' Property-->
   9: <UpdateDataSourceSection ConfigFile="$(OutDir)\web.config"
  10:                          Name="_IntrinsicData"
  11:                          Key="Data Source"
  12:                          Value=".\$(SqlExpressInstanceName)"/>

So the next thing was to edit the project of LightSwitch. This value is not configurable through any site, unless you edit the project *.lsproj file and in it you can see something similar to the following:

   1: <PropertyGroup>
   2:   <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
   3:   <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
   4:   <SchemaVersion>2.0</SchemaVersion>
   5:   <ProjectGuid>c3800149-599b-4dbc-ba07-190956453c17</ProjectGuid>
   6:   <OutputType>WinEXE</OutputType>
   7:   <CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
   8:   <RootNamespace>Application5</RootNamespace>
   9:   <AssemblyName>Microsoft.LightSwitch.Server.Host</AssemblyName>
  10:   <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  11:   <LightSwitchVersion>v1.0</LightSwitchVersion>
  12:   <LightSwitchProjectVersion>v1.0</LightSwitchProjectVersion>
  13:   <Name>Application5</Name>
  14:   <LightSwitchProjectType>LightSwitch</LightSwitchProjectType>
  15:   <GenerateManifests>true</GenerateManifests>
  16:   <SignManifests>false</SignManifests>
  17:   <BaseIntermediateOutputPath>bin</BaseIntermediateOutputPath>
  18:   <ApplicationClientType>Desktop</ApplicationClientType>
  19:   <ApplicationServerType>LocalHost</ApplicationServerType>
  20:   <RequireSecureConnection>true</RequireSecureConnection>
  21:   <AuthenticationType>None</AuthenticationType>
  22:   <ApplicationName>Application5</ApplicationName>
  23:   <AssemblyVersion>1.0.0.0</AssemblyVersion>
  24:   <ServiceDefinitionFile>ServiceDefinition.csdef</ServiceDefinitionFile>
  25:   <ServiceConfigurationFile>ServiceConfiguration.cscfg</ServiceConfigurationFile>
  26:   <SqlExpressInstanceName>.\sqlexpress</SqlExpressInstanceName>
  27: </PropertyGroup>

In my case, I changed the line 26 by the correct value, did a reload of the project and everything worked. But before going a couple of data to take into account

  • When you create a project of LightSwitch always take the value configured in Visual Studio. If you change the settings in Visual Studio, this change is not reflected in the draft.
  • Both Visual Studio LightSwitch tiempre working with a local sql. And this seems a very simple detail makes the name of the instance in the format ". \INSTANCIA" is invalid. Should be only the name of the instance "Instance"

Good to go with the mega project Risa

Greetings @ Here

The Bruno

[# VIDEO] The joy as incentive rather than as a prize, to not suffer by losing me the MVP Summit 2012

Good,

yesterday I realized against a wall when trying to travel to Seattle for a problem technical (I prefer describe it as well).However what most caught my attention was the bad customer service that owns IBERIA (if @ iberia) at Terminal 4 of Barajas airport. I won’t go into details so I have made a note of claim, but rather than throw me down the moral I started to find some talks at the TED talk about this same room with family and today.

The following video is really interesting. Speaks among other things about how we can change our State of mind with a little daily exercise of 2 minutes. Not commented thereon nothing more to not give spoilers, but if you’re like me and spend 10 minutes a day for a video of TED, make sure that you will like.

http://video.ted.com/assets/player/swf/EmbedPlayer.swf

Greetings @ Here

The Bruno

Source: http://www.ted.com/talks/view/lang/es//id/1344

[# TFS11] TFS Express, now for free! and integrated with Visual Studio Express!

image

Hi,

already it is not news because mentioned fairly, but we can finally talk about it. Yesterday the great Brian Harry, broke the news on his blog that finally TFS is going to be part of the family as a free product Visual Studio Express. Almost 3 yearsago that he left this topic to debate, and after several beatings with the product team, was the option that is 100% Express is a good idea.

The complete data says the Brian Harry in his post, but the most important points are as follows:

  • Is the same as a Basic TFS.
  • Free for teams of up to 5 people. This means that you can add only 5 Windows different Ids in a group. (the traps is very easy here and scary from a management point of view!)
  • SQL Express as a repository. Good choice Risa
  • It includes the Dashboard of Agile, but not enabled planning tools. This is an error from my point of view. If you want someone to use your product, it gives a version reduced in number of users but not in functionality.
  • VS Express products will be able to work with TFS Express. The latter is great. Now yes, 4 people without spending a €uro can mount a development team 100% free with Microsoft products.

I said it as the good news of the week and we will see that we have more in Seattle next week.

Greetings @ Home

The Bruno

Source: http://blogs.msdn.com/b/bharry/archive/2012/02/23/coming-soon-tfs-express.aspx

[# ALM] Video: ALM World

image47dd1de4

Hi,

today plays a little more than auto bass drum on the work on global projects using Visual Studio 2010 Alm A bit of experience with projects of Avanade, another bit of personal experience and finally presentation of VSAnywhere.

http://www.globbtv.com/flv/flowplayer.commercial-3.2.3.swf

 

And if you are looking for something about Kinect > > for http://globbtv.com/12/microsite/2021/12-horas-visual-studio-programacion-de-aplicaciones-con-kinect

Greetings @ Málaga

The Bruno

Video: http://www.globbtv.com/12/microsite/2039/microsoft-alm-sessions-2012-planeta-alm

[# OFFICE] HowTo: Configure an account of LiveId unused Hotmail connector in # Outlook

Hi,

If you are lucky enough to try a version of Office that has not yet come on the market, you will see that it is impressive! But of course, NDAs of by means not can write anything about it, so I I apuntaros as a small step-by-step to be able to use Outlook 20th with a LiveId account. In my case my account is brunocapuano [at] superlive [.] com, so must spend Outlook autodiscovery system and configure this account manually.

Once you’ve selected the option to manually add an account, you must complete the data as shown in the picture below where the important thing is to correctly configure POP3.live.com and SMTP.live.com.

image

By pressing the More Settings option in the "Outgoing Server" tab we select the option "My outgoing server (SMTP) requires authentication",

image

Finally in "Advanced", it is necessary to configure the data as in the following image.

image

Greetings @ Home

The Bruno

Reference: http://support.microsoft.com/kb/287604

[# ALM] Continuous Deployment, here we go!

Hi,

Since a few days ago is being conducted an interesting discussion in Agile Spain groups about Continuous Deployment.While some of the entries are for autoafirmar that each is the best implementer of SCRUM that exists, or to explain the why of a practice such as continuous integration, there are many deserving read only by the fact of starting to change our way of thinking. First things first, and before it’s always: to achieve an environment with CD, need to have a 100% of management support, a very seamless integration between development teams and teams of systems, etc. etc. etc. In other words, this is a practice that requires a very high level of maturity in terms of practices is required. If you look for example at Wikipedia, the definition of Continuous Deployment does not exist, but if there is an invalid link from Continuous Integration.

What if it exists on Wikipedia is the concept of Continuous Delivery, explaining as applying the practices of Automated Testing, Continuous Integration and Automated Deployment is possible to mount a Continuous Deliveryenvironment. One of the principles of this practice is to accelerate the time of deploying an application to a specific environment, either a test or even production environment. In my case, leveraging the capabilities of Team Build 2010 and Azure that I can get this in the next project that I have in hand.

Note: the only major problem I have in vista now that I am planning to this model, is the limited capacity of deployment that has an environment like Windows Phone, let is a chestnut to automate this same. You ask the crack of Joshua Yeray (@ JosueYeray ) to see which recommends.

At this point, my working model will initially be based on 2 lines of development (with a very mature model of branching weAvanade Spain) where it will always be available (i.e. displayed) for testing

  • An environment with the application deployed from the last output of a build with a correct implementation (build + unit tests) of the line of development.
  • An environment of AZURE to TEST with the application deployed from the last output of a build of a branch that has passed a battery of tests of UX.

Obviously behind all this, will continue to apply Test Driven Development, ensuring a uniform syntax using StyleCop, ensuring control of projects through TFS and some good practice to define, etc. But come on, that in the end the idea remains the same:

Improve the way in which we develop software on a daily basis

image

When you have implemented and you can evaluate the results of implement and maintain this practice for a time, ´comentaré my impressions.

Greetings @ Home

The Bruno

Resources:

PS: Just buy the book at Amazon (http://bit.ly/zbiP9A) from just €28.

[# VS2010] Debugger Canvas version 1.1 released!

image47dd1de4

Hi,

long time ago spoke of Debugger Canvas. This extension for Visual Studio 2010 allows you to debug applications in a different way. What it does is open new bubbles or canvas with the different functions/portions than code that we are cleansed and connecting them. In this way we have a view of bubbles on the elements we treat. A video to make more clear.

Video: http://msdn.microsoft.com/en-us/devlabs/debuggercanvas

As well, he recently released a new version that has the following new features

  • Are shown with a new bubble recursive calls per call (this was a bit tedious before)
  • Support for multi thread debugging
  • Support for switching between debugging with Debugger Canvas, and the classic debugging with a single click. This was essential in some scenarios.

So you know, if you have Visual Studio 2010 Ultimate, then you can begin to debug your applications more dynamically.

Greetings @ Home

The Bruno

HomePage: http://msdn.microsoft.com/en-us/devlabs/debuggercanvas

[# VS2010] Virtual machines for testing Visual Studio 2010 ALM and Visual Studio ALM 11

image47dd1de4

Hi,

already I do not know how many times I’ve written this post. But wherever I want to find the latest version of Visual Studio 2010 or Visual Studio 11virtual machines, then I get lost on the way and I have to give a turn by google or bing. So I said the links for the next 6 months:

Visual Studio 2010 ALM

  • Microsoft ® Visual Studio ® 2010 and Team Foundation Server ® 2010 RTM virtual machine for Windows Virtual PC

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en & id = 240

  • Microsoft ® Visual Studio ® 2010 and Team Foundation Server ® 2010 RTM virtual machine for Windows Server 2008 Hyper-V

    http://www.Microsoft.com/download/en/details.aspx?ID=5363

  • Microsoft ® Team Foundation Server 2010 and Microsoft Project Server ® 2010 Integration Hyper-V Virtual Machine

    http://www.Microsoft.com/download/en/details.aspx?ID=22267

  • Visual Studio 11 ALM

    • Visual Studio 11 Application Lifecycle Management Virtual Machine and Hands-on-Labs / Demo Scripts

      http://blogs.msdn.com/b/briankel/archive/2011/09/16/Visual-Studio-11-application-lifecycle-management-virtual-machine-and-hands-on-Labs-demo-scripts.aspx

    • Greetings @ Home

      The Bruno

      [# VS2010] HowTo: Install a VSIX package without using the installer

      image47dd1de4

      Hi,

      When these as I got in a series of test program software (Windows 8, Visual Studio 11, brand new Office, etc.) It is very likely that simplest things don’t work you. In my case I’m about Visual Studio 2010extensions installers. For example, if I am under Vs AnywhereInstaller, when attempting to install it gives me a very moviditos and interesting colors errors Risa

      So good,

      How do I install a package VSIX, in this case an extension without installing it?

      Very easy. A VSIX package is neither more nor less than a ZIP (like everything else in the world.)(Net), so the first thing we must do is unzip it. Once decompressed will see that we are inside a series of files that are those who identify the package (more info in another post) and NO DEBEMOS play these files!

      Which demos do is copy the directory we have decompressed from the.VSIX.ZIP to the directory of Visual Studio 2010extensions. For this example will copy it to the Visual Studio 2010working directory, this means that it will be available for all users of the computer to use VS2010. It is also possible to copy it to the directory of user of VS2010.

      According to whether you work with x 86 or x 64 directory is as follows:

      • G:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\
      • G:\Program Files (x 86) \Microsoft Visual Studio 10.0\Common7\IDE\Extensions\

      image

      Once copied, if we open Visual Studio 2010 I see our active extension and running!

      image

      If we decide to remove it from the menu, Visual Studio 2010 will delete the directory and let us so happy.

      Greetings @ Home

      The Bruno