Full-stack web applications developer

Welcome to my blog

As I discover new things in my field and solve troublesome problems, I will attempt to document my finds here.

Request specific URLs in Django

September 17, 2015, Arthur Pemberton0 Comments

Do you have a need to use different URL pattern sets based on specifics of an HTTP request? Recently, I needed to choose from a predefined URL pattern (ie. URLConf module) based on the domain name of the request, ie. HTTP_HOST. The URL patterns themselves are not dynamically set, just dynamically chosen.
Read More

Changing the “Archive Title” used by WordPress

July 21, 2015, Arthur Pemberton0 Comments

If you are using an SEO plug-in with WordPress, you may have changed the <title> of one or more of your archives pages. However, the theme you are using is probably making use of the get_the_archive_title() WordPress function to get the title that is used in, for example, the <h1>.
Read More

Google Apps DNS Entries

June 10, 2015, Arthur Pemberton0 Comments

Every now and again I find myself having to rebuild DNS entries for a client who has Google Apps hosted email. Googling for the appropriate queries gets me there, but in a round about fashion, so I’ve decided to collect the relevant pages here.

Read More

Loading posted JSON

April 24, 2014, Arthur Pemberton0 Comments

If you’re using jQuery, and have an entire JSON document document that you would like to post to Django, the correct way to do it is not through a separate variable, but by posting the actual JSON.
Read More

Problems seeking in Chrome’s HTML5 media player

April 2, 2014, Arthur Pemberton0 Comments

If you are serving dynamic binary content via your web application with rudimentary code (eg. simple HttpContext.BinaryWrite) you may find that when utilizing audio or video Chrome does not allow fast forwarding/seeking ahead. This is because Chrome relies strictly on the ability to request byte ranges to supply this functionality. This is done with the Accept-Range HTTP response header.
Read More

Varying Django Settings By Environment

October 21, 2013, Arthur Pemberton0 Comments

If you’ve progressed beyond the exploration phase in your Django journey, you’ve probably come to the point where, at the least, you would like to use one database during your development, and another, once published to your production system. You may even want to

Read More