[#KINECTSDK] Fluent Kinect (never underestimate what a boring geek can do!)

image

Buenas,

Kinect SDK is all very well, but often can be a pain in the ass / plunger. As SDK complies with the premise of having a real representation of the elements of the sensor, but it lacks a “modern” syntax to work with them.

Note: care that abstract concepts of Hardware so they are “beautiful” is more difficult to bite back.

Here is where the crack of Marcus Hohnert who has created an extension to this model code to the initialization of a Kinect sensor.

   1: var sensor = KinectConnector.GetKinect()

   2:                             .EnableColorStream()

   3:                             .EnableSkeletonStream()

   4:                             .EnableDepthStream()

   5:                             .Seated()

   6:                             .NearMode()

   7:                             .Start();

 

Impressive!

Source: http://passiondev.wordpress.com/2013/05/03/fluent-kinect/

 

Saludos @ Home

El Bruno

image image image

[#OPINION] About the experts, how to improve as a developer and death to Hard Code!

image

Buenas,

image

The popular quotes are amazing, for example say that ‘God helps it to the early bird, ‘ and it is almost always true. My mother has woken up by more than 40 years before the 0600 AM and a son of the very best touched him. There is another who is also a great “practice makes perfect” and in the case of programmers, East if it is 100% real. In my case for years every time I spend less actual hours to programming and I’m noticing.

I still have marathons staying until 0200 AM to finish something, or to try something, but I don’t have the day 100% dedicated to programming. This can be seen, many times when I am faced with a problem I realize that practice, I perhaps need not to resolve it, but if speed to implement it. That is why the phrase “practice makes perfect” is 100% certain. The best professionals are actually working with a technology or tool.

Note 1:I take this opportunity to advise you desconfíes of the gurus who write topics that they don’t know or that they only transcribe things who have read on the internet that. People who know the most, are those who are in the trenches.

Note 2:It is also important to note that while you can be in front of someone who pulls 14 hours a day with a hammer in his hand, that does not mean that he is an expert in hammering. There is also much useless around che.

Returning to the topic of the muscle to set; to practice the best schedule, schedule, and schedule… it is. As the basis of programming is to solve problems, it is important to know to find a response to know your tools. I try to devote at least a daily pomodoro to solve a problem that has nothing to do with my day-to-day work (I have the luck that I prefer my work than my hobbies ;)

The best for this are the Code Katas (Juan Carlos Quijano was a very good intro here), which are exercises to solve problems regardless of the tool or language. I weekly do an internet search to find any interesting, or but I’m going directly to http://codekatas.org/ and try to resolve which is fashionable.

Another technique that I find that he helps me is to learn a new programming language. For this a few months ago I have pointed to Code Academy (http://www.codecademy.com) and excellent site where you can follow tutorials interactive to learn new languages. In my case I have opted for a language that I will surely not I use never: RUBY, but I used to test a site that has something of a Code Kata: http://codegolf.com/

image

3 Note:Some time ago recommended to learn a language every year to be a better programmer. Now I think that it is more important to learn a new platform as a new language… but to taste, the colors.

Now well and finally, another thing to do to be a better professional is to teach. When you begin to explain a specific topic to someone, is an excellent time where your brain starts to do a real analysis of the level of knowledge you have on that subject. At that time internal doubts that at another time you plantearías not soar, also will reinforce knowledge and is an excellent exercise to learn how to communicate (for 3 years had to machine works of psychology students… topic for another post). That is why I close my post with a tip in the form of teaching:

SHORT FINGERS HARD CODE PRACTITIONERS!

I’m going to the bases, but bases. Surely many will have escaped you a constant, or a string with a value hardcodeado which then in production brought many problems (to my ever happened). One way of trying to avoid this is with pain. If pain has proved to be one of the best methods for teaching for years. But, how do you manage to breach a developer pain? as through the eyes with the following steps:

1 Access to the options of Visual Studio. Menu “Tool / / Options”

2 Select “Fonts and Colors”

3. Select the item “String (C# @ Verbatim)” and changes the color of background and text, for something thathurts. In my example is lime background with yellow font color.

image

4 Starting from now hardcodeado code will look like

image

5. What hurts?

Recommended reading

 

Saludos @ Home

El Bruno

image image image

[#TFS2012] New version of TFS 2012.2 Power Tools

image

Buenas,

hus arrives the Update 2 from the Power Tools for TFS2012, without any novelty. More importantly, perhaps mention more there is no “Backup / Restore” capacity at the server level, since it is incorporated into the product.

But if one important thing: this VERSION works with TFS012 and VS2012 UPDATE 2

The previous version worked only with Update 1, this version is updated to Update 2 (finally!)

Download: http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f

Source: http://blogs.msdn.com/b/bharry/archive/2013/05/08/tfs-2012-2-power-tools-update-available.aspx?utm_source=feedly

 

Saludos @ Home

El Bruno

image image image

[#METRO] Metro Studio 2.0 of the friends of SyncFusion

image

Buenas,

Synfusion friends have released version 2.0 of Metro Studio . This application is an excellent collection / AWESOME with over 2500 icons stylish METRO Modern UI Apps. The application is free like the .net Framework source code, and you can download it from http://www.syncfusion.com/downloads/metrostudio. Once you sign up, they send you a download link and a key to unlock and you can now install the application.

image

Once inside the application, we can navigate the icons by categories, or if we do a search to see the results in this format

image

Then, it is possible to create collections of icons, export them, etc. The Edition is perhaps the best part, we can define the size, the padding, the margentes, the Fund and then export the icon to PNG

image

But the best thing is that we have the XAML of each icon PATH!

image

As you know to download it 😀

Download: http://www.syncfusion.com/downloads/metrostudio

 

Saludos @ Home

El Bruno

image image image

[#VS2012] HowTo: Find the connected internet IP Address

image

Buenas,

After a couple of minutes searching the internet a Code Snippet that allows me to find out the IP address with which I am connected to the internet, I realized that I don’t actually have to search from my computer to the outside, but from the outside inwards (quiet that I have not yet made anything).

There are many places that when you connect, tell you the IP address with which these emerging Internet, and some are as simple as http://icanhazip.com/ . This site only gives you your IP address, so we can process your output with the following code:

   1: public static string GetInternetIpAddress()
   2: {
   3:     var client = new WebClient();
   4:     var ip = client.DownloadString("http://icanhazip.com/");
   5:     return ip;
   6: }

Simplest impossible!

Disclaimer: there are other ways it, however if these under many levels and layers of IPs addresses, this option is the fastest ;)

 

Saludos @ La Finca

El Bruno

image image image

[#TFS2012] VSTFS protocol (if with http:// you wasn’t enough, now this)

image

Buenas,

Remember, whenever you think that a version of Visual Studio + Team Foundation already has everything you need, will approach a client with a question that breaks you schemes. In this case, the question is irrelevant, what matters is the response:

The solution is to use the Protocol VSTFS (vstfs: / /…)

This feature exists from a couple of versions ago and basically allowing is to access an element of TFS directly when you open Visual Studio. A clear example of this functionality can see you on the homepage of Team Foundation Service in the option “Open new instance of Visual Studio”

image

This link syntax is as follows

do vstfs: / / / Framework/TeamProject/< Tool Id >? url = https % 3a % 2f % 2f < user Id >.visualstudio.com%2fDefaultCollection

This action opens a new instance of the IDE and directly connects to the TP. Using VSTFS protocol syntax, we can also do many more actions, for example

  • Open a WorkItem
  • Access to Source Control in a particular file
  • etc

All available actions are processed using the Linking Service TFS. The LS is a service that basically allows from unique identifier for an item in TFS, the URI complete to access it. And if not starting from a URI, to know the id of the device that represents the same.

So now you know, if for some strange reason, you need the IDE Help opening in certain elements, Linking Service together with the Protocol VSTFS may you help.

Reference: http://msdn.microsoft.com/en-us/library/bb130164(v=vs.90).aspx

 

 

Saludos @ Home

El Bruno

image image image

[#TOOLS] Free tool to create infographics

image

Good

pointed out it in my online backup blog to avoid losing the trail: http://infogr.am/

An excellent site to create infographics on 4 hits of mouse or touch screen and free.

Detail: the PRO mode (of payment) allows you to download and a couple of other things, however with the free mode is sufficient

Saludos @ Home

El Bruno

image image image

[#TFS2012] HowTo: Planning a Team Foundation Server 2012 deploy

image

Buenas,

When you have to install a collaboration with Team Foundation Server environment, questions always arise as

  • TFS version should I install?
  • I reached with a Single Server installation, or should I separate data server and application layer?
  • Do I need Sharepoint?, or Reporting Services?
  • How can I measure the hardware in each layer?
  • I believe one or more dedicated servers build?

In addition to these questions, it is time to start to define a strategy for the Organization of Team Projects, here the questions are style

  • I think a single Team Project Collection for the entire organization?
  • I think different PCTs? for example, separating into functional areas
  • If I remove the PCTs, do I organize how modules common to all areas?
  • If I leave a single TPC would how to assure the isolation of the code between different Team Projects?

Starting with these schemes can be something that consume you time and do not have a simple answer. It is more or less like wonder what must now do the Barcelona to be able to recover the quality of previous years (already more than one club would like to have “the crisis” the Barza, ending one of the 4 best clubs of Europe and the League of Spain in the Pocket)

As well, as the Barza is it can ask Pep; and the Team Foundation Server can see it in the Guide Visual Studio Team Foundation Server Planning Guide in CodePlex . This guide contains a series of recommendations for the installation and organization of a TFS2012-based environment, ranging from Hardware requirements to the organization suggested for environments of test, training, etc. As always a picture is worth more than 1001 words.

image

Download: http://vsarplanningguide.codeplex.com/

 

Saludos @ Home

El Bruno

image image image

[#NETMF] HowTo: Create a motion sensor (II)

image

Buenas

in the yesterday’s post I commented on an accessory to detect movements using. Net Gadgeteer . Today we will see how with a couple of lines of code more, we can activate the camera when motion is detected, you take a picture and show it in the graphic display.

For this example we will use

With the following diagram

image

And then in the code to see that

  • When motion is detected tells the camera to take a photo (line 21)
  • When the camera takes a photo, it is shown in the graphic display
   1: using System;

   2: using GT = Gadgeteer;

   3:  

   4: namespace GadgeteerApp15

   5: {

   6:     public partial class Program

   7:     {

   8:         void ProgramStarted()

   9:         {

  10:             motion_Sensor.Motion_Sensed += MotionSensorMotionSensed;

  11:             camera.PictureCaptured += CameraPictureCaptured;

  12:         }

  13:  

  14:         void CameraPictureCaptured(GT.Modules.GHIElectronics.Camera sender, GT.Picture picture)

  15:         {

  16:             display_T35.SimpleGraphics.DisplayImage(picture, 5, 5);

  17:         }

  18:  

  19:         void MotionSensorMotionSensed(GT.Modules.GHIElectronics.Motion_Sensor sender, GT.Modules.GHIElectronics.Motion_Sensor.Motion_SensorState state)

  20:         {

  21:             camera.TakePicture();

  22:         }

  23:     }

  24: }

In the next posts to see how to send this information to a processor of movements, and even… well as mount with a model client / server.

Saludos @ Home

El Bruno

image image image

[#NETMF] HowTo: Create a movements sensor (I)

image

Buenas

today’s example does not attempt to replace a Kinect, or much less. However shows us that with a small hardware little more than €12, can create a sensor’s movements when it detects movements, begin to record the input from a camera.

On this basis, we started with the following hardware for example, where we will see the simple which can be create a Motion Detector

with these three elements, we connect the same guided by the following scheme

image

At this point, with the connected sensor we work with it is pretty simple.

Line 10 shows us that we have an event Motion_Sensed () that is activated when the sensor detects motion.

   1: using Gadgeteer.Modules.GHIElectronics;

   2: using Microsoft.SPOT;

   3:  

   4: namespace GadgeteerApp14

   5: {

   6:     public partial class Program

   7:     {

   8:         void ProgramStarted()

   9:         {

  10:             motion_Sensor.Motion_Sensed += MotionSensorMotionSensed;

  11:         }

  12:  

  13:         void MotionSensorMotionSensed(Motion_Sensor sender, Motion_Sensor.Motion_SensorState state)

  14:         {

  15:             Debug.Print("motion detected !");

  16:             // also check >> motion_Sensor.SensorStillActive

  17:         }

  18:     }

  19: }

Well, we can subscribe to this event or can change the focus and do a PULL of the status of the sensor. For this second case we check the Boolean value of the property SensorStillActive (line 15).

The sensor is quite small and has a range of about 7 meters according to official indications that we can readhere .

image

In the next post, add a camera and keep the contents of it on an SD card.

Saludos @ Home

El Bruno

image image image