Published by Jonathan Weatherhead

Jonathan Weatherhead is a code scientist, software developer, internet enthusiast, gadget fanatic, hobbyist photographer, and fun-lover extraordinaire. He has received a Bachelor of Computer Science and math minor from Carleton University and his areas of interest include web-driven applications, Object Oriented architecture and language paradigms.

Website
http://planetjon.ca

HTTP 404 response causes forced downloads to fail

An interesting gotcha that I stumbled across recently, sending a 404 response code with a download forced by Content-Disposition: attachment will fail but inline content will still be displayed. This behaviour was tested in both Chrome and FireFox. Of course the appropriate response code should always be sent; this 404 response code was being sneaked in by WordPress and led to hours of frustration.… Read the rest

How to embed a youtube video to start play at a specific time in WordPress

After some fiddling and frustration in trying to embed a Youtube video to play at a specific time with the WordPress oEmbed shortcode, I feel that it’s worth showing what worked for me. [youtube http://youtube.googleapis.com/v/1Qclu5ve7YY?start=121] For this format you put the video code after the /v/ and put your start time as a query parameter ‘start’ in seconds.… Read the rest