Live stream video from drone (via Raspberry Pi)

Introduction Situational awareness is essential in the operation of autonomous drones, with live video streaming being a key component in achieving situational awareness. In this guide, part of a series focused on building a 4G-connected autonomous drone, I detail a practical solution for setting up a live video stream from a drone to a Ground Control Station (GCS). This guide is particularly aimed at those who are looking to build custom drones using a Raspberry Pi as a companion computer....

2024-01-18 · 8 min · Wil Boayue

Java automatic resource management

You might have seen this example from The Java Tutorials. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 public class CopyBytes { public static void main(String[] args) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { in = new FileInputStream("xanadu.txt"); out = new FileOutputStream("outagain.txt"); int c; while ((c = in.read()) !...

2013-09-13 · 2 min · Wil Boayue

Using npm behind a corporate proxy

On a recent assignment, I needed to install npm behind a corporate proxy. I had already set the environment variables HTTP_PROXY and HTTPS_PROXY. Other command line utilities, like ruby gems, recognized these environment variables. Npm did not. After some googling, I found the following way to configure the proxy for npm. npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 If you need to specify credentials, they can be passed in the url using the following syntax....

2013-06-14 · 1 min · Wil Boayue

Ruby performance patches

There are several ruby performance patches, like the falcon patches, that may improve the performace of your application. I use rvm and was pleased to learn that rvm supports compiling ruby with several of these performance patches. Using rvm with the railsexpress patch, I saw a 20% reduction in the time required to run the test suite for a large rails project. Here is how you can install ruby with the railexpress patch using rvm....

2013-03-02 · 1 min · Wil Boayue

Setting Ubuntu time zone

You will eventually get tired of looking at UTC timestamps in your server log files. https://help.ubuntu.com/community/UbuntuTime has a detailed guide for setting the time zone on your server and synchronizing it’s clock. Here are the commands I used to set my time zone and synchronize my clock on Ubuntu 12.04.1 LTS. Set time zone sudo dpkg-reconfigure tzdata Synchronize clock sudo apt-get install ntp

2012-12-04 · 1 min · Wil Boayue