Bread machine baguette

Baguettes are a wonderful thing, but making a proper baguette requires multiple touch-points over an extended length of time. It’s not difficult by any means, just time intensive. Since I own a bread machine I thought there must be a way to automate the dough. However the Internet does not

Read More »

Creating lesson files for Yamaha YPG-235

I recently picked up a YPG-235 off Craigslist. One of the reasons I sought it out was for the “lesson mode” (or “Yamaha Education Suite”) where it helps you learn songs by displaying the notes and pausing the song for you until you hit the notes. You can do the same with a

Read More »

Displaying a sequence of images in iPython Notebooks

You can rip a sequence of images into an mp4 and display it inline in an ipython notebook using a function like this: import matplotlib.pyplot as plt from matplotlib import animation from IPython.display import display, HTML def plot_movie_mp4(image_array): dpi = 72.0 xpixels, ypixels = image_array[0].shape[0], image_array[0].shape[1] fig = plt.figure(figsize=(ypixels/dpi, xpixels/dpi),

Read More »

Compiling OpenCV 3.1 on Ubuntu 16.04

16.04 uses gcc 5.4 by default. You’ll need to install gcc 4.9 and configure OpenCV to use 4.9 instead: sudo apt-get install g++-4.9 cmake -DCMAKE_C_COMPILER=/usr/bin/gcc-4.9 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.9 . If you have CUDA installed you may want to disable compiling the CUDA libraries as well, or else suffer another hour+ of compilation

Read More »

Accessing the OBDLink SX USB Scantool on MacOS X

The OBDLink SX is an inexpensive USB OBDII scantool marketed by ScanTool.net. It’s sold as a Windows-only scantool and comes packaged with some very simple OBDII software. Not much exists on MacOS X for CAN monitoring, but I was still curious if I could access my car through my Mac.

Read More »

Restoring a MacBook Pro with an encrypted hard drive

Hard drive encrypted using FileVault? Lost your password?  You can’t get your data back, but you can make the MacBook usable again: Start the MacBook in Target Disk Mode by holding down ‘t’ Connect the MacBook to another computer using a Thunderbolt Cable. You will be prompted for the drive’s

Read More »

Embedding images in HTML email for Outlook

#!/bin/sh echo “Content-Type: multipart/related; boundary=\”boundary-example\”; type=\”text/html\”” echo echo “–boundary-example” echo “Content-Type: text/html” echo echo “<h1>Email</h1>” echo “<img src=\”cid:image.png\” alt=\”image\”>” echo echo “–boundary-example” echo “Content-Location: CID:something” echo “Content-ID: <image.png>” echo “Content-Type: image/png” echo “Content-Transfer-Encoding: BASE64” echo base64 /tmp/image.png echo “–boundary-example–” ./email.sh | sendmail some@emailaddress.com

Read More »

Projects

Categories
Archives