Articles - Page 4 of 4 - Ryan Kienstra

Dumb Computers?

By: Ryan Kienstra on: October 18, 2014  in: Programming

People often say that computers are dumb. But maybe that’s a good thing. Sometimes, you want a computer to be “smart.” Auto-correction is useful on phones. Neural networks can categorize images. But even these come from complicated instructions. If you write a complex program, a “dumb” machine should run it. It’ll do exactly what you […] Read more

Laptop Icon

Fast Local WordPress Setup

By: Ryan Kienstra on: October 16, 2014  in: Programming

Here’s a quick way to start a new¬†WordPress instance on a local server. The script below: Installs the latest version of WordPress Asks for the database name, user, and password Uses these to set up the database and wp-config.php file Puts randomly generated salts in the wp-config.php file Optionally downloads a .gitignore file Copy this […] Read more

SVN Script

WordPress Plugin SVN Script

By: Ryan Kienstra on: October 16, 2014  in: Plugins, Programming

Here is a script that I use to push my plugin files from the local development file to the plugin repository. Set your own variables at the top. Before committing, I like to check: The version numbers in main plugin file ( header and constants ) The stable tag in readme.txt ( Changelog and […] Read more

Breadcrumb Icon

WordPress Breadcrumbs

By: Ryan Kienstra on: October 14, 2014  in: Programming

Breadcrumbs at the top of the page help readers see where they are, and where they can go. One problem is that functions that automatically echo breadcrumbs make a link for each of the pages. But some pages are only placeholders. For example, if you try to click “Plugins” at the top of this page, […] Read more

Git Push Image

WordPress Git Workflow

By: Ryan Kienstra on: October 14, 2014  in: Programming

WPEngine has a full git system that lets you test on a staging server before deploying. There won’t be any downtime, and you can test all changes on a full “mirror” site. You can push code to the staging server in seconds. After testing it, deploying to production takes one click and a 30 second […] Read more

Flat Icon Typewriter

Moving From Blogger To WordPress

By: Ryan Kienstra on: October 13, 2014  in: Programming

Blogger sites migrate to WordPress well. I recently moved a Blogger site to a WordPress self-hosted site. As you would expect from Google, the code for the posts was great. After importing it in WordPress, all of the formatting was the same as on Blogger. The images and videos looked the same. You may want […] Read more

WordPress Security (For Programmers)

By: Ryan Kienstra on: October 13, 2014  in: Plugins, Programming, Security

WordPress recommends adding this line to the top of every theme file to prevent direct access: <?php defined( 'ABSPATH' ) or die( 'No direct access!' ) ; ?> Adam Onishi’s¬†book Pro WordPress Theme Development recommends adding this to the functions.php file: remove_action( 'wp_head', 'wp_generator' ) ; remove_action( 'wp_head', 'rsd_link' ) ; remove_action( 'wp_head', 'wlwmanifest_link' ) […] Read more

WordPress Security Icon

Website Security

By: Ryan Kienstra on: October 12, 2014  in: Plugins, Security

There are probably more threats to your site than you think. But some simple steps can make it safer. Limit Login Attempts Installing the WordPress plugin Limit Login Attempts is a great first step. The hosting company installs this in every site. Obscure Username When you’re setting up your site, try to make your […] Read more