Dynamically setting an image as the header image on a WordPress theme

I’m working on an interesting project using a Raspberry Pi Zero W computer with the Pi Camera module. Basically the idea is to take scheduled periodic photos via the Pi Zero and camera and then upload them to a WordPress site and then set the latest photo as the Header Image.

There was one thing that took me a little while to figure out and that was how to set the desired image as the header image in WordPress, I struggled to find anything whilst Googling so I thought I’d quickly write up a post about it.

Continue reading “Dynamically setting an image as the header image on a WordPress theme”

Dreamweaver CC Public Beta

Adobe have just opened up a public beta of a revamped version of Dreamweaver offering a lot of improvements and useful features for modern web development.

Dreamweaver’s had it’s share of flack over the years and not all unwarranted, but this new beta looks to shed some of the baggage of its 19 year history with a refreshed user interface and a new code editor based on the Brackets codebase. For someone like me who spends most of the time in code view (and who has split their time between Brackets and Dreamweaver for the last year or so) there’s some nice new features in there that make it a more compelling environment for code-first users.

Continue reading “Dreamweaver CC Public Beta”

Cutting the TV cord

I’ve been a Sky customer for several years now and I’ve enjoyed the service overall, but as my (and many other’s) viewing habits have changed I have watched less and less live TV broadcasts so the value of Sky’s TV package to me has declined. I can’t remember the last time I watched anything that wasn’t either recorded via Sky+ or just viewed on demand from either Sky Movies / Sky on Demand, Netflix, Amazon Prime Video or Youtube.

Continue reading “Cutting the TV cord”

Descent: Underground

I used to love playing the original Descent games back in the 1990’s so I was pretty stoked to see this Kickstarter project for a prequel game.

If you’ve never played Descent then it’s basically you in a spaceship flying around inside some mines inside a planet / asteroid, it can get quite disorientating as you can rotate in all directions but it was a great multi-player shoot-each-other LAN game :)

Continue reading “Descent: Underground”

Check Dropbox CLI / dropbox.py status via cron / bash script

I’ve been using the command line (CLI) version of Dropbox on my Centos 6.5 server as an offsite backup and it has been working well, the recent 1TB storage upgrade makes this a decent backup option.

One problem I’ve been having is that sometimes the Dropbox process seems to die, I tried several different scripts to keep track of the status of dropbox via the dropbox.py python scripts but I eventually found this bash script to work. I’ve set it as an hourly cron job in /etc/cron.hourly and it’s working well so far.

Continue reading “Check Dropbox CLI / dropbox.py status via cron / bash script”

Animated gif of XKCD’s Philae probe Comet Landing cartoon

XKCD’s daily cartoon covered the Rosetta / Philae comet landing that took place on 12 November 2014 with a great continously updating cartoon throughout the day.

As all of XKCD’s cartoons are available under a Creative Commons licence I thought it would be good to make an animated gif of all of the frames, so here it is:

XKCD 1446

You can also see all the frames over on xkcd1446.org where someone has made an interactive version where you can page through all the frames.

XKCD is licensed by Randall Munroe under a Creative Commons Attribution-NonCommercial 2.5 License so all original credit goes to him, I just thought it would be good to have an animation of it and that’s why Creative Commons licences are awesome!