Skip to main content

Engineering & Code

This category consolidates various technical fields to include: Computer, Electrical Engineering, Engineering, Computer Security, and Physics.

Sampling Exploration

[mathjax] I needed to review the Nyquist–Shannon sampling theorem. The coolest thing about Nyquist is that it expresses the sample-rate in terms of the function’s bandwidth and leads to a formula for the mathematically ideal interpolation algorithm. What is sampling? Sampling is nothing more than converting a signal into a numeric sequence. Shannon states: If […] read more

Practical Cutting Stock Problem

Warning. This post is for an audience of close to zero. My technical friends will find this pretty basic, and my non-technical friends will find this too technical. Welcome to the middle space that I occupy between these two worlds. I wanted to build this series of retaining walls to replace the overgrown ivy and […] read more

WordPress Automatic Updates

If you want to get WordPress to accept automatic updates and are running your own server, you want the flexibility to not go through these steps every time an update arrives. You also want good security. I had to do this recently on several sites and thought I would share my notes. read more

WordPress Theme Development

I’ve started to get much more serious about WordPress themes. For me that means making them from scratch instead of modifying someone else’s theme. Traditionally, I just purchased a template and modified it. Now I’m starting to work with good designers and working from scratch. read more

Radiant to WordPress Conversion

First I had to backup my database from Heroku — so I created the database in PostGresSQL. heroku pgbackups:capture curl -o latest.dump `heroku pgbackups:url` pg_restore --verbose --clean --no-acl --no-owner -h localhost -d booher_blog latest.dump Armed with that and the handy Induction I then needed to get my data into a format easily imported by WordPress. […] read more

Find corrupted images

So I deleted all my pictures, and I restored them which resulted in a bunch of corrupted images; thousands of corrupted images. To fix this, I wrote the following script in MATLAB using the image processing toolbox: // insert blog here Using matlab I tried to determine what a corrupted image is. First when using […] read more

Removing Images of a certain size

I had a bunch of bogus images in my directory and I was going through and manually deleting them. I wised up a little bit and thought I would write a quick script. While it ran, I thought I would share with you. I had: 25760 images and probably about 15,000 of them were bunk. […] read more

Import Access Data into Excel (via VB and ADO)

I had a lot of data in MySql in a rails application, but I moved to Mongo on a new application and wanted to give the client a nice archive of excel files for each client. It has been a long time since I’ve worked with visual basic, but it came back quickly. I was […] read more

Radar parameter estimation

[mathjax] Here we tackle what a Radar needs to accurately measure a target’s position, size and motion. (This is nothing new, just a placeholder for some of my notes.) First of all, everything depends on $SNR$, and the parameter estimation happens in the main computer of a Radar. The theoretical rms error of a measurement […] read more

Render CSV in Rails

First I read the docs at: rubydoc.info to understand how FasterCSV is now in the ruby standard library. Then, I set up the following code: https://gist.github.com/tbbooher/1700200 This gives me a pretty flexible solution to render csv, but I’m really interested to see if this is a good way to go. Your comments are appreciated. read more