Brad Lucas

Programming, Clojure and other interests

Download All Files From Url

January 12, 2018

Use wget to download a web page and all associated files.

$ wget -r -np -k

If you don't have wget and you are using a Mac use brew.

$ brew install wget

Continue reading →

Advent Of Code

December 5, 2017

After taking a month off from writing blog posts I've just found something interesting to point out. The other day I found this "Advent Calendar" idea for programmers. Each day you solve a puzzle or two to unlock the day. With twenty five days to complete it looks like an interesting activity for the month of December.

If you are curious a bunch of Clojurians are listing their solutions repos here:

Continue reading →

Gpg Signing Failed Inappropriate Ioctl For Device

November 5, 2017


gpg: signing failed: Inappropriate ioctl for device

To fix:

$ GPG_TTY=$(tty)
$ export GPG_TTY

Continue reading →

Clojure Ads.txt Crawler Reporting Site

October 19, 2017

Continuing with the Ads.txt crawler has lead to the idea to store the crawler results in a database and have them available from a web site. This post introduces the first pass as such a site with the source code available in the following repository:

Ads.txt Review

As a quick review the Ads.txt standard is one where publishers can host a simple text file with the names of authorized ad networks that have permission to sell the publisher's inventory. There is a reference Python crawler for such files and I've built a crawler in Clojure as an alternative. See this link for a series of posts about the Ads.txt specification and the development of the crawler. The crawler project is here.

Continue reading →

Heroku Keep Alive

October 18, 2017

Running a free Heroku app which falls asleep? You can use a service to ping it periodically to keep it alive.

Here is one:


Continue reading →