Raspberry Pi case made from cardboard, cardstock, paper or plastic

A few months ago I designed a case for my Raspberry Pi that I could cut out of cardstock with a Silhouette Cameo.

img_3670

(this case is cut out of an overhead projector slide)

 

It was inspired by the Punnet case.  Except I wanted something that didn’t require glue to assemble and was a little more compact.

img_3664

Punnet case (bottom), rev1 (middle), current design (top)

 

The Silhouette file is downloadable from my raspberry-pi-case github project.

pi-layout

I’d like to change the vent in the top to be a raspberry, but haven’t had the time to make that change yet.

 

 

Remove a stuck DVD/CD from a MacBook Pro

So, I burn a fresh CD in my MacBook Pro and it gets stuck. When I hit the eject key, it tries to come out but only pokes out a couple of millimeters before getting sucked back in.
Searching all over the internet, Mac users were useless for helping me. Everyone suggested alternate ways to eject the disc (push the eject key, command-E, drag the disc to the trash, hold down the mouse button on boot) ignoring the fact that it may be physically stuck.

Then I found the solution (queue the angelic choir)

*** Do this at your own risk. It worked the first time for me but I take no responsibility for you doing something stupid and messing up your laptop. ***

There are two levers on a slot-loading CD/DVD drive that help center a CD/DVD disc. Some CDs and DVDs have an uneven edge which can cause enough friction to prevent the disc from ejecting.
If this happens follow these steps:

1. Take a large paperclip and grasp it with one hand so that about three quarters of an inch, or 18 millimeters, extends beyond your fingers. Insert the paperclip into the CD/DVD slot about 1.5 inches, or 36 millimeters, from the left edge of the slot.
2. With the other hand, push the eject key on the keyboard to eject the disc. When you hear the disc attempt to eject, slide the paperclip to the left edge of the slot and then remove the paperclip. You should feel a little resistance from the spring loaded centering lever.
3. Once the disc has been successfully ejected, wipe the outside edge of the CD/DVD with your hands. Cleaning the edge of the disc in this way will reduce the likelihood of the disc becoming stuck again.

 

Error/Fix: ‘SSLv2_method’ undeclared here (not in a function)

When building ruby 1.9.2 on Ubuntu 11.10
Error:
ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
ossl_ssl.c:111:1: error: ‘SSLv2_server_method’ undeclared here (not in a function)
ossl_ssl.c:112:1: error: ‘SSLv2_client_method’ undeclared here (not in a function)
make[1]: *** [ossl_ssl.o] Error 1
make[1]: Leaving directory `/home/username/.rvm/src/ruby-1.9.2-p180/ext/openssl’
make: *** [mkmain.sh] Error 1

Fix:
rvm pkg install openssl
rvm install ruby-1.9.2-p180 –with-openssl-dir=$rvm_path/usr

Uninstalling Google packages from Ubuntu

So, you installed an app from Google (Chrome or Google Music Manager) but are done with it and now you want to remove any traces of the Google software…
You’d think that sudo dpkg -p would do it but Google’s a little more sneaky than that… They took the liberty of adding their repository to your machine. To remove it you need to perform the following steps.
sudo rm /etc/apt/sources.list.d/google-musicmanager.list
sudo apt-key del linux-packages-keymaster@google.com

As a side note, it doesn’t seem right that they add the repository settings with a cron job instead of at the install of the package. It seems fishy to me because if you remove their repository settings without disabling their cronjob, their settings will come back the next day. Check out /etc/cron.daily for any google files before you uninstall their package to see what they are up to.

OfficeMax Coupon Code

Another OfficeMax Coupon code. It’s good for $30 off your online purchase of $150 or more. Expires 12/17/2011

ZAH4HYK3UH8TXHBB

Please post a comment here if you use it so that others won’t waste their time trying.

Ubuntu 11.10 Oneiric Ocelot post-install checklist

Here are a few things that I typically do after installing Oneiric Ocelot…

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo dpkg -P ubuntuone-client libsyncdaemon-1.0-1 ubuntuone-client-gnome ubuntuone-control-panel libubuntuone-1.0-1 libubuntuone1.0-cil banshee-extension-ubuntuonemusicstore command-not-found ubuntuone-control-panel-gtk
sudo apt-get autoremove
sudo apt-get install gimp gimp-data-extras gimp-plugin-registry
sudo apt-get install git subversion build-essential nscd gnucash jets3t lm-sensors openjdk-6-jdk pwgen rsync wireshark

Disable the guest login:
sudo vi /etc/lightdm/lightdm.conf
add this line…
allow-guest=false

Change the default editor:
sudo update-alternatives --config editor

OfficeMax Coupon code

And another OfficeMax Coupon code. It’s good for $30 off your online purchase of $150 or more. Expires 11/19/2011

ZAG5H67D3UPJ56P6

Please post a comment here if you use it so that others won’t waste their time trying.

“Could not read chunk size:” error when checking out from subversion

I recently ran into this error part way through when checking out a large repository from subversion:

svn: REPORT of '/svn/!svn/vcc/default': Could not read chunk size: connection was closed by server (http://some.hostname.com)

Since it was a rather large repository, I’m guessing it is the size of this checkout process causing the problem. Fortunately, the fix is easy. You just have to go into the directory with the partial checkout and run ‘svn up’ In my case, I had to run it two more times to get the entire repository.

OfficeMax Coupon code

I got another one of these in the mail and won’t be using it. It’s good for $30 off your online purchase of $150 or more. Expires 9/17/2011

JCX2MYXM2GYPV4HR

Please post a comment here if you use it so that others won’t waste their time trying.