Programming
msqur.com – MSQ file sharing site
Raspberry Pi – Cross-compiling
Now that you have the hardware built and tested (although that’s not necessary), you can either use the code I’ve written-which is specific to the hardware and environment I have, or compile your own version. If you want to compile your own there are two options:
- Compile on the Pi itself
- Compile on an ARM virtual machine
- Cross-compile on a faster machine
The trade off? Compiling on the Pi is slow (very slow). The virtual machine is a marked improvement for compiling speed, but is complicated to setup. Cross-compiling is about the same difficulty as setting up a virtual machine but a bit faster and less “bulky”. So it depends. The virtual machine is nice if you have a lot of libraries you want to use, since you’ll have to compile all of them to be available for linking. If any of them have poor autoconfig support, it might be a pain to fix if you weren’t already on the target machine. But, since I just needed one or two popular libraries, I decided to setup cross-compiling from my host (x86_64) machine.
The last time I setup cross-compiling it was on Gentoo, and it wasn’t pleasant. However, after a little bit of research it looks like the crosstool-ng project is pretty popular and useful. I only had to patch one tiny thing.
Here’s the overall process:
- Install crosstool-ng
- Configure a cross toolchain with it
- Try and build the toolchain
- Use the toolchain to build your Pi code
Raspberry Pi Robot
So, a while back I gave my wife a Farscape DRD kit. I promised to make it in to a robot. How hard could it be? Well, not too bad. A little more expensive than planned, though…
Carduino 2.0 – Intel Galileo Setup
Out of the box the Galileo is setup to run sketches uploaded from volatile memory, which is really lame. I didn’t spend much time with it using the stock SPI kernel. So, an SD card is pretty much required to do any serious development with this board. This is not a bad thing (although you aren’t running in real-time anymore), since having a full OS to use has lots of advantages. Plus, this way I can automate the build process in a way I’m more familiar with.
Carduino 2.0
Updating WordPress on nearlyfreespeech.net hosts
Update Dec. 13, 2014:
These scripts are out of date. NFS has the WP-CLI installed allowing for much, much easier upgrades, backups, etc. See the repository for information.
Originally posted on Sept. 10th, 2014:
If you use NearlyFreeSpeech.net as your web host, you may have found it difficult to automate WordPress updates. I’ve made a script that does this for you. It also calls my backup and permissions fixing scripts, which I include here as well.
Beware of some notes and assumptions though:
- Assumes WordPress is installed in /home/public/ (not a subdir of it)
- Scripts are assumed to be in /home/private/
- Does not check or recover from errors
Custom Speed app update
Exporting Drupal Pages/Posts to WordPress
Python script to write a word using the word
That’s the best title I can come up with. The idea is to do this:
THISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHIS THISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHIS THIS THIS THIS THIS THIS THIS THIS THIS THIS THIS THIS THIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THISTHISTHIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THISTHISTHIS THISTHIS THISTHIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THIS THISTHIS THISTHIS THIS THISTHIS THISTHISTHISTHIS THIS THISTHIS THISTHIS THIS THISTHIS THISTHISTHISTHIS THIS THISTHIS THISTHIS THIS THIS THIS THIS THISTHIS THISTHIS THIS THIS THIS THIS THISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHIS THISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHISTHIS
With any number of alphanumeric characters. The idea comes from a reddit user posting something similar, and then my mind wandered.