I just spent thirty minutes writing and testing a shell script. This shell script searches a folder, analyzes a photograph’s geometry using mogrify, and then, if the image is square, move it to another folder. I’ve eyeballed the folder, and found three matching images. This script will take approximately twenty minutes to execute. I’m not [...]
Despite (or perhaps because of) the fact I’ve been using Linux for more than a decade, I’ve done a great job of avoiding sed. I have done my best to make up for it in the recent past by learning how to at least find and replace, either within a file or in a filename. [...]
I use a fairly basic script that formats pictures, uploads them via Dropbox, and inserts paste-ready HTML code into my clipboard. With some minor modifications this script can be used on Linux, Windows (Cygwin), or OS X. Taking a break from animating sprites, I wanted to improve this script, in order to reduce my work. [...]
I’ve consulted Imgur’s API and asked around: There does not seem to be any download limits in place. That said, my script does place nice, and you can throttle requests if you wish. Imgur’s API does include a way to just fetch a list of a user’s albums and their respective images, but I’ve spent [...]
If I see one more rectangle this morning, I will scream. Instead I am writing a very simple Imgur gallery downloader for a friend, using extant Bash utilities. #!/bin/bash wget $1 LIST=files.list mv $(ls -1 .) $LIST # Strip the file down to the actual image links. cat $LIST | grep href | grep jpg [...]
After I submitted my solution, I Googled around and found a fair deal of “lol, this one is easy!”. And, yeah, it is. Add 100 numbers together and output the first ten digits of the sum. So. Easy. C# is persnickety about numbers and handling. Out of the box, C# does not like working with [...]
Wow, my Friday nights are exciting. I wrote a short C# program that will let me estimate how much my next power bill from Airtricity will be. This is to both avoid bill shock and help me plan my budget. Over the weekend I will add the option to export the option to a .csv [...]