Concatenate Binaries and Strings in Erlang Concatenating strings and binaries in Erlang can get ugly quick. Let's make it easier.
Creating Your First Chrome Extension We all have our favorite web browser with our favorite extensions loaded, but have you ever considered writing your own? In the past few months I've created a couple extensions to suit my own needs. Here's what I've learned!
Evaluating a string of code in Erlang at runtime Did you know that Erlang has the ability to read in a string representing a line of code to execute at runtime? It can parse it out, evaluate it and return the value. Let's see how... Evaluating Simple Expressions At its most basic, we can just read any
Comparing Two Objects for Equality in C# It's common to compare two objects in C# for equality, such as for a save operation. Let's take a closer look at how we define what equal means.
Connecting an Analog Joystick to the Raspberry Pi One of the best things about the Raspberry Pi is its GPIO pins. They’re just sitting there, waiting to be connected to all kinds of interesting peripherals so your Pi can interact with the world around it. We can send alerts, attach sensors, and even plug cards like the
Creating a Flickering Candle Using an RGB LED on the Raspberry Pi After getting PWM (pulse-width modulation) to work with an RGB LED last week, I was trying to think of what else I could do with an LED that demonstrated changes in color as well as intensity. I’m not sure why – maybe it was because we lost power in our
How to Use Pulse Width Modulation (PWM) on an RGB LED and the Raspberry Pi If you buy a kit with random LEDs, wires, switches, etc, you’re likely to end up with one or two of those funky little LEDs that appears to be white, and has 4 wires instead of 2. I had set mine aside and made a mental note to figure