Category Archives: code
Copy and Copy JSON: essential Listener hacks.
Something I’ve really wanted in the Listener for a while is the ability to right-click and copy a string to the clipboard. I’ve been working around that by having my own “>clipboard” word that places a single string argument on … Continue reading
Factoring the Luhn algorithm
I work a lot in the field of e-commerce, and have written at least two shopping carts. Anyone who has implemented any kind of payment processing probably knows about the Luhn algorithm, which is a simple test that one can … Continue reading
Sorting in Factor
So, mrjbq7′s post with words to find the maximum and minimum of a sequence of tuples got me thinking, and playing, and reading the Factor docs: all good things! I started with his test data: TUPLE: person name age ; … Continue reading
QR codes in Factor
Wow, so Factor is one of the most amazing programming languages that I’ve ever used. And I’ve used a bucketful of them in my checkered past, that’s for sure. But there’s something about using this odd little stack-based “concatenative” language … Continue reading
Django, Pinax, and Humble Pie — My talk at Refresh Augusta
Django, Pinax, and Humble Pie View more documents from phredcode. These are the slides I used for my talk at Refresh Augusta today on Pinax and Django, and how I learned to be humble and rely on other people’s code. … Continue reading
The unofficial way to uninstall DarwinPorts / MacPorts
Fed up and done with the whole mess of DarwinPorts (now known as MacPorts)? Ready to move to ArchOSX? Fire up ye terminal! % port installed | awk ‘{print $1}’ | xargs -n 1 sudo port uninstall –follow-dependents —> Deactivating … Continue reading