This post is a little rough, and is intended both as a memory aid for myself and as an example for anyone else who needs to know this stuff. I’ve recently decided to push toward x86_64 support in my toy/research OS project, and needed to build a GCC cross compiler for that target. In myContinue reading “Using GCC as cross-compiler with x86_64 target”
Java’s default methods (introduced back in Java 8) are one of those features that solve the intended problem reasonably well, while at the same time allowing all kinds of nasty code and weird inheritance stuff when used in a general-purpose kind of way. Indeed, they’ve been the subject of a ton of posts and theContinue reading “Generate less bytecode with default methods”
We all love to use mocks in our Java tests, right? Add the usual mock framework to your test dependencies, sprinkle a few mock, when and thenWhatever calls in to your code, and happy days. You’re able to test things in isolation, and as an added bonus ensure your code is actually calling the stuffContinue reading “Mocking v2.0”
TL;DR – We built a Wifi-capable four-way mains socket using a NodeMCU ESP8266 development board, some relays, and the Arduino libraries (but not their hardware). We coded it in C++, which you’ll find on GitHub.
In the meantime, I’ve also started work on porting (if that’s the right word) Curb to FFI, with a view to moving away from the existing C code.
As I mentioned in my previous post, I’m now working on Curb again, and currently on Windows. Back in 2006 when I wrote the original Curb, I wouldn’t go near a Windows box for religious reasons, and the project has never officially supported the platform. There are plenty of bugs and posts around about peopleContinue reading “Building Curb on Windows”
Way back in 2006, after reading on ruby-talk about people’s problems using libcurl with Ruby, I put together a basic C extension to replace the (by-then-unmaintained) bindings that already existed. Little did I know then that it would end up being some of the most popular open-source code I’ve written. In time, pressures of family,Continue reading “I’m back on the Curb team!”
Just a quick note to say that the blog is now back online, but sadly missing quite a few posts that were lost by my old webhost. The last post I’ve been able to restore is from almost two years ago, when I was just starting out on the drone project. Here’s a quick summary ofContinue reading “Blog Reboot”
Because I like experimenting with things, and because I love cool toys, I’ve decided the time is right to build myself a drone quadcopter…
I’ve lately been doing some work with the (awesome) Unity game engine, prototyping a 2D platformer using version 4.3’s new 2D mode, and as part of that I needed to create some sprite-sheets for game-related animations and the like. As I’ve mentioned before, my tools of choice for graphical work are Inkscape and The GIMP,Continue reading “Spritesheets Revisited – Game sprites with Inkscape + Gimp”