Monday, February 22, 2016

Traversing TFS Links

Recently, Team Foundation Server (TFS) has added some new features that my team is using. One of these features is the new Epic work item. We are using epics to track high-level business initiatives, with features underneath the epics to track user requirements. Underneath the features, we have user stories, which are self-contained units of work that can be tested and deployed independently. My team works with user stories and tracks everything through user stories. I need to drive my reporting by user stories but relate the data to the epics that they are under.

The built-in reporting capabilities of TFS are pretty good, but they don't handle the kind of roll-up reporting I need. A consultant friend shared some code snippets with me that use the TFS API to pull data from the TFS database. I'm building out my custom reporting using the TFS API. One of the first challenges I've run into is starting with a user story and determining the epic that contains that story.

I struggled trying to understand how to follow the links that are available on a TFS WorkItem object. This link pushed my understanding forward quickly. It helped me understand how to identify the "type" of link that I was seeing.

"The tricky bit" for me is identifying the type of link I'm dealing with. Here is the code snippet to do that:

if (link.LinkTypeEnd.Name == "Parent")
In this code snippet, I am filtering on links that are of type "Parent." One could easily filter on other types of links based on need.

As I develop my TFS reporting capability, I will document what I'm doing to make it less mysterious for others.

Monday, February 15, 2016

Pinewood Derby and Arduino Coding

My middle son's Pinewood Derby for Cub Scouts was about a month ago. His pack usually has an "outlaw" division for dads, siblings, and other family members to submit cars. Usually I don't submit a car for the derby, but this year I decided to create a car powered by Arduino.

My original idea was to put a motion sensor on the car, have the Arduino detect that the car was moving, and start up a motor with a propeller. The way the project played out, I got the Arduino kit about 3 days before the Pinewood Derby, so I had to throw something together very quickly.

I cut the car into a basic platform, with a cut-out intended for the motor. I slapped some black paint on it to cover the wood and mounted the wheels. I didn't put any time into making it faster or straight because my intention was not to win a race.

Next I had to do something with the Arduino. I purchased the Arduino Uno with a basic electronics kit. The kit came with jumper wires, resistors, and numerous sensors. It was perfect! I spent a few hours installing the Arduino IDE and playing around with sample sketches. Now I was ready for my project.

My initial idea of driving a motor with the Arduino was doomed to fail. First off, I needed a 5V battery to power the Arduino. I really didn't have room on the car for the Arduino board, battery, and motor. (If I had more time, I would have used an Arduino micro.) Second, not being an electrical engineer, I didn't realize I needed a relay switch to power the Arduino and the motor from the same battery. This realization put my whole project in jeopardy.

At this point I was frantically scrambling to come up with something I could do for this project. I settled on mounting the active buzzer component, with a ball switch. I found a sketch that set up all the notes on the scale and played a melody repeatedly through the buzzer. I wired the buzzer into the Arduino board with the ball switch so that the melody only played when the car was angled downward. (This ensured that the car wasn't annoying everyone unless it was perched for a race.)

The project came together as a family effort. My oldest son helped me mount the board to the car while I figured out how to get the electronic components mounted. My middle son helped me figure out the first few notes of the Imperial March (think Darth Vader theme song) so I could program that into the sketch. I used the space for the motor to mount the battery, and was able to get something together. Here is a picture of the car.

The code I downloaded and modified to play the Imperial March is here on Github.

Even though the project didn't come out as I expected it, it had the desired effect. Numerous adults and scouts asked me about the car. They were all interested in how it worked and what it did. This was exactly the purpose of the project.

I wanted to show the scouts that something like the Pinewood Derby could be looked at through a different lens. I wanted to show the kids that technology can be used in different ways, even on a wooden block with wheels. Although it wasn't perfect, I'm still proud of my first IoT project!

Saturday, February 6, 2016

Evangelization

The St. Ferdinand Men's Club has been reviewing the four signs of a Dynamic Catholic from the book by Matthew Kelly. I was supposed to do a brief presentation at our February meeting, but it got bumped due to a full schedule. Since I'm not sure if it will get rescheduled or not, I thought I would convert it into a blog post.

The first sign we covered was prayer. We covered it first because it is the first sign in the book, and because I feel it is the basis for everything we do as Catholics. The next sign I was going to cover is evangelization. I skipped ahead because I think this is the toughest of the four signs, and I think it is one of the most critical for our parish at this time.

What is evangelization? Fundamentally, evangelization is sharing our faith with others. It is being open to opportunities to talk about our faith, our faith journey, and our practice of the faith. Evangelization is also about sharing our faith with our faith community (parish) and helping to bolster our fellow parishioners.

When I want to understand how to evangelize, I turn to the saints. The first saint I look to is St. Rose Philippine Duchesne. She is the dedicated religious that founded St. Ferdinand school and helped bring Catholicism west of the Mississippi river. She evangelized by working for the poor, building schools to teach the faith, and by supporting the missionaries in any way she could.

Another person I look to for help understanding evangelization is Fr. Pierre De Smet. He was a Jesuit missionary in America, whose "home base" was St. Louis. He was instrumental in establishing missions in Florissant, MO, Kansas, and Oregon. He made great strides converting Native American tribes by learning their language, understanding their customs, and adapting his approach to their particular needs. Fr. De Smet's peaceful approach to evangelization earned him the respect of most of the Native American tribes west of the Mississippi.

Stories of holy people moving thousands of miles from home to start missions and teach poor kids are exciting and romantic. They make evangelization seem intimidating for most ordinary people. The key is to understand that St. Rose and Fr. De Smet had particular callings that spoke to their characters, allowing them to do these things. Most of us are called to evangelize in simpler ways.

St. Rose, despite her accomplishments starting schools, was most known for her prayer life. She was known by the Native Americans as the Woman-Who-Prays-Always. Her contemporaries were convinced of her holiness because of her diligence in prayer.

Fr. De Smet gained the respect of the Native Americans he worked with in several simple ways. He learned their language and customs, helped broker peace between tribes, and treated them with respect. His success came from simply living as a Christian.

So, who should evangelize? The short answer is: EVERYONE! We should all feel called to share our faith with others. If we have truly embraced Christianity and its way of life, we should be eager to share it with others.

How should we evangelize? First and foremost, we should evangelize through the example of our lives. We should live as Christians are called to live by Jesus Christ. That example was compelling enough to draw thousands to the church in the days immediately after the Ascension. It is good enough to work today.

We are also called to evangelize by telling our story. A great way to to get people curious about the faith is to share with them what drives you in your faith. The compelling personal story goes a long way to drawing people to the Lord.

A critical way we evangelize is by supporting our faith community. My cousin always signs his emails with the tag line "Keep the faith." I used to think it was a catchy platitude, but now I see the brilliance of it. Keeping the faith is difficult, and it needs the support of a strong faith community. By participating in our faith community, we bolster the faith of others and make them strong to evangelize too.

So how do we, as modern Christians, draw others to Jesus?