Tag Archives: programming

SparkFun AVC build log 2015-06-14

It’s less than a week until the SparkFun AVC, so I figured it’s probably time for a quick update. There have been a lot of things I still need to get working (such as a physical start button), which is … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Sparkfun AVC Build Log 2015-03-09

I entered the Sparkfun Autonomous Vehicle Competition for the first time last year. It didn’t go as well as I had hoped, so I’m hoping to start earlier and make some changes this year. This is going to be a … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

Turn your Raspberry Pi into a radio controller for RC vehicles

Ever since I tried turning the Raspberry Pi into an FM transmitter, I had wondered if it would be possible to make it drive a radio-controlled car. It turns out that it is! With no modifications to your Pi, you … Continue reading

Posted in Uncategorized | Tagged , | 23 Comments

Using C++11 variadic templates to create a type-safe and injection-safe database interface: part 1

Introduction Prior to C++11, there was no general way in C++ to create type-safe functions that would take a variable number of arguments. C++ had inherited …, the ellipsis operator, from C that would allow a function to take a … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

Writing a simple shell using Flex and Lemon: part 2

Introduction In part 1, we created a simple parser and driver for a basic shell that supports piping and command substitution. In order to test our parser, the driver in our last part only simulated reading tokens. In this part, … Continue reading

Posted in Uncategorized | Tagged , | 5 Comments

Writing a basic shell using Flex and Lemon: Part 1

Introduction I’ve recently decided to switch one of my projects from using the Bison parser generator to Lemon. Bison is the go to standard for parser generators, but after looking into Lemon, I really think that Lemon is safer, easier … Continue reading

Posted in Uncategorized | Tagged , | 6 Comments

Rounding function for bc

bc doesn’t include a way to round floating point values to the nearest integer, but you can write one yourself. Just type this in: If you don’t feel like typing this in every time, you can add it to a … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments