Day 4 out of 5 of my “A Script A Day” challenge. Day 4: ConvCurrency, a simple currency converter using WebServiceX.net’s currency conversion web API.
Day 3’s script: `whatis`: A wikipedia summary lookup. It’s operation is pretty straightforward, you give it a search to do and it’ll perform the lookup for you. If you hit a redirect it should follow it, at least as of time of writing this. (Edit whatis_extract.xsl in the resources directory if it breaks.) (more…)
Continuing along, day 2’s task was to get stock quotes. Usually a pretty simple task once you find a data source to use. I settled on using YQL to query Yahoo Finance. This one has a few requirements (wget, hexdump, xsltproc) as bash is a bit limited.
I had an idea for a programming self-challenge. From Monday, Sept 1st to Friday, Sept 5th: I’ll write a new script each day. The goal should be simple enough to solve in one day, but not so boring I’d feel dumb writing about making it. I’ll likely be sticking to business logic type goals, as I don’t actually enjoy algorithmic challenges as much. Now if a practical goal requires a decent algorithm, then so be it.
Have you ever wanted to encrypt a script so that it could only be run with the correct password? Chances are… probably not. However, in the off chance that you have, and your script is perfectly happy being piped through it’s interpreter (* See note below), then this script might work for you. I make no guarantees or claims about how secure it might be, and it requires openssl to be installed to work. You can view the code or download it yourself at my BitBucket repo for Script Encrypt. (more…)
Wanna check it out? Click this friendly little link here: Touhou Music DB