About a year ago, I started looking into ways to cross-compile Windows applications from within Linux. This brought me to a cool project called MXE (short for M Cross Environment). With MXE, you can use your Linux machine to generate Windows binaries without having to install any virtual machines or compatibility layers. In this post, I’ll walk you through the process of setting up MXE and turning your source code into a Windows program.
While working on the next release of PixelMaestro, I came across a problem of storing long-term data on an Arduino. I have a system in place where configuration changes are sent to an Arduino over USB as byte arrays, and as the Arduino reads the array it applies the changes. The problem is those changes disappear as soon as you restart the device. How, then, does one store persistent data without having to add an SD card or extra memory? Enter EEPROM.
In an earlier post, I explained how I used version control software to manage my creative writing documents. Since then, I’ve developed a setup that’s more transparent, easier to work with, and requires less command-line wizardry.
In an earlier post, I explored the idea of productivity gamification and how it can help increase your motivation. I’ve been testing this over the past few weeks by using an Android app called LifeRPG to track my habits, tasks, and important milestones I wanted to reach. In this post, I’ll go into detail about my LifeRPG setup and how it’s helped me stay focused in my everyday life.
Each day begins with a list of tasks I want to accomplish. Whether it’s short-term (writing a blog post) or long-term (working on a programming project), completing each task helps me feel more successful. But sometimes motivating myself can be difficult, and on some days even the simplest tasks can seem insurmountable. In this post, I’ll discuss a strategy I recently found that actually makes everyday tasks seem fun!
On today’s episode of “Adventures in C++”: sending commands between two Arduinos running the same software. Not just data, but also instructions on how to process and execute that data. Even more, these commands have to be small enough for each Arduino to package, send, receive, unpack, and execute in less than 1/10th of a second.
UPDATE: Shortly after posting this, I switched to a different method using a custom data serialization protocol, which you can learn more about here.
One of the coolest things about C++ is how flexible the language is. If you’re faced with a problem that has no apparent solution, chances are you’re just not approaching it from the right angle.
In my never-ending (and often misguided) quest to bridge the world of writing and programming, I decided to take a crucial tool from the software world and use it to manage my documents. The result: a powerful (if convoluted) system for drafting and revising documents.
This is the first public release of PixelMaestro, a C++ library for generating 2D animations!