We’ve covered some other innovate uses for a cdrom drive, but this one surely takes the cake! This would be a great way to teach young children about re-purposing obsolete technology. If you want to try it for yourself, here is the script (written for a Linux machine) that is used to keep opening and closing the door:
#!/bin/sh
while [ 1 = 1 ]
do
#eject cdrom
eject#pull cdrom tray back in
eject -t
done
[via boingboing]



When I saw her hands in that position, I fully expected a QWERTY keyboard pattern to appear on her blankie.
#!/bin/sh
while [ true ]; do
#eject cdrom if closed, otherwise retract
eject -T
done
while true; do eject -T; done
I love how this code is so tiny, but does so much, It’s almost like cute code lol! I chuckle every time I see it :’)
Upgrade:
// What's Trending
Raspberry Pi Design Contest
Ten Tips for Adhesive Tape
Seventeen Sneaky Secret Hides
Lost PLA Casting from 3D Prints
I Have a (Puzzling) Dream
10 Things to Connect to Your Raspberry Pi
47 Raspberry Pi Projects to Inspire Your Next Build
Maker Faire: Day Two
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
DIY Hacks & How To’s: Get Emergency Power from a Phone Line
Resin Casting: Going from CAD to Engineering-Grade Plastic Parts
Ten Tips for Screws and Screwdrivers
Ten Tips for Better Measurement
Is it a Hackerspace, Makerspace, TechShop, or FabLab?
Makers on TV: Big Brain Theory
Arduino Announces New Wireless Linux Board
Grow: A Portable CNC Router System
Trending Topics
Get our Newsletters
About Maker Media
Subscribe
to MAKE!
Get the print and digital versions when you subscribe