Sunday, February 27, 2011

Shopbot dresser plans

A few weeks ago I built a pair of 5-drawer dressers using the shopbot.
I used apple-backed MDF for one set, and pecan-backed for the other.

You can find all the sketchup, partworks and shopbot files in the .zip file on this download page. Public domain, use them however you like. Note how I use wrapper.sbp files to control the feeds, speeds and depth of cut.

I cut the whole project with a 1/4" end mill, then chamfered the sides of the drawer fronts on the table saw. Tolerancing was the trickiest part of this project for me; I kept having to trim pieces or expand slots slightly. I improved things by the second dresser, but it still may not be perfect.

I believe these are the drawer slides I got from Home Depot. They're nice and smooth once I got the tolerances right.

Friday, February 25, 2011

Using rsync to copy only certain extensions

I had a directory structure like this:
and I wanted to rsync only the .txt files to my local machine:
There are lots of search results for the topic, but most didn't work right -- rsync -vv kept telling me that my --exclude="*" rule was excluding everything. This post gives the correct details. You need to explicitly include the directories you want, or just --include='*/', then --include='*.txt', then --exclude='*'. You may end up with a bunch of empty directories; I haven't figured out how to efficiently avoid that.

Tuesday, February 15, 2011

ant 1.8 on ubuntu lucid (10.04)

UPDATE: Note the comment below which points out that you can simply "apt-get install ant1.8".

Trying to build a "Hello, World" app in Android, I built a skeletal project per Developing In Other IDEs page:

android create project \
--target 1 \
--name MyAndroidApp \
--path ./MyAndroidAppProject \
--activity MyAndroidAppActivity \
--package com.example.myandroid

After "apt-get install ant", I tried to build, but got this error:

$ ant debug
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

Android seems to want the sun version of the JDK, which I had installed earlier, but ant was pointed at the openjdk version. I fixed that error with:

$ export JAVA_HOME=/usr/lib/jvm/java-6-sun-

The next obstacle was:

$ ant debug
Buildfile: build.xml

/home/jholt/android-sdk-linux_x86/asdf/MyAndroidAppProject/build.xml:82: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1

Total time: 0 seconds

The ant 1.8 package from Maverick seems to install just fine. Don't forget the ant-optional package, or else you'll get errors like this:

$ ant build
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.8.0 in file:/usr/share/ant/lib/ant.jar
 optional: 1.7.1 in file:/usr/share/ant/lib/ant-nodeps.jar