Simple credit card number validation with PHP

I was looking for a quick and simple PHP function that would validating credit card numbers, but the code I found was mostly clunky and sometimes just wrong. I wrote this function and it seems to work correctly. Feel free to use it and leave a comment here if it works for you.

Continue reading “Simple credit card number validation with PHP”

Toy Ingenuity

I like the little gems of ingenuity and economy of design found inside crappy toys. I was taking apart some electronic toys yesterday, as is my wont. This particular toy had a few neat mechanisms, but I thought this use of rotary encoders and cams was especially cool.

Continue reading “Toy Ingenuity”

“Idle Hands” 555 Keyboard

I made this keyboard from a $1 toy that I bought at Savers. I made some changes to the electronics including pitch control, a 555 timer circuit that adds extra resistance in secret places, a speed control for the timer, 1/4″ output jack, and a touch-contact for good measure. I fabricated the case from cold-rolled steel and acrylic.

Continue reading ““Idle Hands” 555 Keyboard”