I’ve been playing lately with virtualization technology and was struggling to understand how the hypervisors like QEMU/KVM , LXC and Docker related. So once I figured it out I decided I should write it down.
Anybody that have to work with lab at work knows the pain of connecting to them. Usually labs don’t have direct connectivity to the “regular” network and to connect to them involves a series of jumps though different machines. Just SSH connectivity is painful in those scenarios let alone port forwarding. Fortunately you can setup your
~/.ssh/config in such a way that will automate most of it, if not all.
So you tried
rvm install 1.9.3 and that fails with a cryptic
ANSI C-conforming const and volatile are mandatory… Well, here is how I solved it:
The past few pays I’ve been trying to get the MCP23018 working with the Teensy 2.0. I’m doing this to replace the firmware in my ErgoDox with my own since I can’t the the original ergodox-firmware to work. Finally I got the Teensy<->MCP23018 communication working so here is a summary of my experience.
Continuing the post about lua integration with C++. Now to more serious stuff. Let’s try to write a wrapper for a
std::list<int>. Imagine that you have a
std::list<int> in your C++ that you want to share with the Lua enviroment. So both C++ and Lua can access the list.
The solution described there, as pointed out in in the comments, is non-optimal.
Correcting the old post seemed like a lot of work so I will prefer to post something new.
If you can’t debug with
gdb on Mac OS X Mountain Lion due to
posix_spawn failed error then just run
sudo gdb or
sudo ddd instead.
EDIT This post is obsolete. It has been superseeded by this newer post
I was surprised when I searched in Google for ways of running a custom TestRunner in a
Rake::TestTask and I couldn’t find anything directly.
So after figuring out myself how it’s done I decided to share it here: