Working Ninja
2018-02-24T12:40:11

Forward

You should name a variable using the same care with which you name a first-born child (xxi).

Quality is the result of a million selfless acts of care--not just of any great method that descends from the heavens. That these acts are simple doesn't mean that they …

READ MORE

2015-11-27T11:40:34

Static files for an app follow the following directory structure my_app/static/my_app and are picked up by ./manage.py collectstatic when ready to deploy. If you're wanting to use static files that span multiple apps, update your settings.py to include the following:

STATICFILES_DIRS = ( os.path.join(BASE_DIR, "project_static"), )

Temping …

READ MORE

2015-10-14T08:12:31
$('#id').on('input', fuction(){ var dInput = this.value; $('#output').text(dInput); });

READ MORE

2014-11-15T17:57:57

This post is an explanation of the Zero-configuration Web Application Debugging with Xdebug and PhpStorm wiki entry over at JetBrains.

While the instructions are pretty straight forward, I wanted to share where being a beginner had me scratching my head wondering why things weren’t working. Enjoy!

1. …

READ MORE

2014-11-03T17:55:25

There are times that you want to hide mobile specific features on desktop to avoid user confusion. Today I ran into such a case where a tel href on a phone number was being used that resulted in someone getting a 404. To hide this from desktop, I used …

READ MORE

2014-10-29T17:54:25

Lengthy title lends a lengthy reply, but it’s actually a quite simple fix. First some background information on my process that lead to the issue:

  1. Exported respective database tables from multisite install.
  2. Renamed table prefixes (e.g. from wp_7_ to wp_).
  3. Installed a fresh copy of WordPress …

READ MORE

2014-10-28T17:53:13

There’s a lot you can do to make your WordPress install more secure–some easier than others! Here are a few of the easy ones. These can be applied to a new or existing WordPress install.

wp-config.php

Salt passwords:
https://api.wordpress.org/secret-key/1.1/salt/

Salting the passwords on an existing …

READ MORE

2014-10-27T17:52:25

Was working on updating a WordPress installation from 3.4.1 to 4.0 while also pulling it out of a multisite install. I have been using Git to keep track of changes along the way (thankfully!). I ran into an upgrade issue and used the following commands to get me back …

READ MORE

2014-04-06T17:43:00

If I have my choice of workflow, here is what it currently includes (note: this is subject to change as there are tons of awesome people developing for the web):

The Cradle of Creation: The Development Server

First off, all creation and changes are made on the …

READ MORE

2014-04-05T17:40:11

Here’s the lowdown on how I setup my MAMP (Mac, Apache, MySQL and PHP) server for local web development and the steps I went through to create a development environment for a site already in production.

Configuring Apache

Apache comes preinstalled with OS X so I decided …

READ MORE