March 2017 archive

Mar 21 2017

Simulating the Insert Key on a MacBook Pro

Apple to Ubuntu

For almost the last 20 years, an Apple laptop of one variety or another has been my main computing device. Imagine my surprise when I finally learned today that Apple keyboards don’t have an Insert key. In almost two decades I have never needed it, but that changed this morning. While working in my favorite …

Continue reading

Mar 04 2017

Testing Django Pages Containing the csrf_token Tag

Django logo

If you’ve created any forms at all using the Django web framework then you should already be familiar with Django’s CSRF middleware and the protection it provides web site’s against cross site forgery request attacks. When the middleware is active, and unless the view has this protection overridden, any form POSTed will be expected to contain …

Continue reading