Cardinal Peak logo placeholder

RAII in C

In my last post, I talked about resource management, and how RAII, Resource Acquisition is Initialization, is important in C++ because of the guarantees it provides. In this post, I’ll show how we can make the same guarantees in C. In C++, RAII provides a solution to resource management and the issues arising with exceptions.…

Details
Howdy Pierce

Banksy Had Inside Help

Today’s discussion at Cardinal Peak involved Banksy’s latest stunt. In case you missed the news, a print of one of Banksy’s most famous street murals, “Girl With Balloon,” appeared to destroy itself only seconds after it was auctioned by Sotheby’s for a record sum of $1.4M. Shortly after the destruction, Banksy posted an Instagram video…

Details

RAII Introduction

RAII, or Resource Acquisition is Initialization, is a programming idiom that originally came out of the C++ community. However, it’s a powerful approach that can be used in many languages, including old-fashioned C. In this blog post, I’ll introduce the RAII concept and examine the guarantees it provides in C++. A subsequent post will demonstrate…

Details
Howdy Pierce

IoT Temperature Monitoring

Cardinal Peak just completed the initial phase of an interesting IoT project that was slightly afield for us. Six months ago, a volunteer for the Emergency Family Assistance Association, a food bank in Boulder, asked me to develop a solution to track temperatures inside freezers and refrigerators. Embarrassingly, we haven’t done much pro bono work…

Details
Howdy Pierce

Where There Is No Vision…

I was disappointed in CES this year. Aside from minor tweaks, virtually everything on display in 2018 was also on display in 2017. Although I did see the world’s first “mixed reality dimensional guidance device,” I’m not sure what it is, but with that name I want it! Evidently, I’m not the only one whose…

Details

Amazon Web Services re:Invent 2017

Amazon Web Services’ re:Invent is a massive and fast-growing event. Estimates for this year’s attendance range between 40,000 and 50,000 people, and it was sold out nearly two weeks before the first day. This year there are over 1000 breakout sessions covering a dozen or more tracks, as well as workshops, certification classes, hands-on labs,…

Details

Innovating With iZotope

We recently completed a really cool project with our friends at iZotope. For those who have never picked up a guitar and dreamed of being the next Tom Petty, iZotope designs award-winning audio products and technologies for musicians, music producers and audio post engineers around the world. In a nutshell, they develop the software that…

Details
Howdy Pierce

Negative Zero

My wife brings up the following story any time she wants to make the point that I’m pedantic: When one of my daughters was in second grade, her math teacher told the class that any number divided by zero was one. I dashed off an impassioned email to the teacher, insisting that the result had…

Details