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
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: *** [] Error 1

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

“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 (

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.