C++/Go Packed Structures Part 1
Now, this is a mess. Imagine you have this kind of structure in C++: struct __attribute__((packed, aligned(1)))) packed { char a; char *b; int c; }; This tells the compiler…
Now, this is a mess. Imagine you have this kind of structure in C++: struct __attribute__((packed, aligned(1)))) packed { char a; char *b; int c; }; This tells the compiler…
In the previous post, I wrote about a wrapper that could be compiled and linked into a Go program which accessed a shared/dynamic library. I'm going to follow up with…
Imagine you only have access to a library (.a) and its header (.h) file. You can see the functions and their signatures, but you just can't figure out how to…
Why was it so difficult to take and serve an image from the Raspberry Pi's camera when I visit a web page? I've found myself driving home unsure of whether…
I had a hell of a time getting this to work. Here's how I did it. Let's write a small library in C++. // mysum.h #ifdef __cplusplus // extern "C"…
A tidy way of using a custom field in Planning Center to drive specific label data.
Once we've coded, uploaded, and tested our Lambda function from within the AWS Lambda environment, it's time to take our tests external. For this, we'll need to install the AWS…
In the previous section of this tutorial, we set up a WSL build environment in Windows for Rust, adapted code, and compiled + packaged a binary ready for upload to…
Let it be known that the existing tutorials are all poor and lack thoroughness. They're fine if you already have experience cross-compiling Rust AND working with AWS Lambda. I intend…
A compilation-ready source for this article can be found here. I designed a struct in Rust which contains various bits of file information. Presented here is a stripped down version…