Posts in the "Code" Category

Ionic "Invalid device state" Error with Xcode 7: Solved

November 17, 2015

I've been working on an Ionic Framework project for a while now. Just recently after I upgraded to Xcode 7, however, I couldn't get a project to install on the iOS simulator. Every time I would build an emulate the project, the process would fail with an "Invalid device state" error. I tried a number of things: rebooting my machine, reinstalling Xcode, etc. What I discovered, however, was the root of this problem had nothing to do with Xcode 7, but instead with file permissions.

How to Get Stock Quotes with PHP Using the Yahoo Finance API

November 8, 2015

For as long as the stock market has been piling up data, there have been programmers looking to use that data. When you search for something like "stock price api" online, however, it can be quite hard to find a good, simple, free service for relaying stock ainformation. I've discovered a fix for that problem and it uses a little PHP and the Yahoo! Finance API.

Installing Comodo Positive SSL Certs on Apache Ubuntu 14.04

June 17, 2015

If you are looking to do basic SSL encryption on your website, I recommend using SSL certificated from Namecheap. The most basic certificate is just $9 (USD). The process of buying a certificate is easy enough, but it can be hard to find good, basic instructions on how to install the certificate.

PyroCMS Stream Search Module

November 22, 2014

I'm please to announce the release of a basic stream search module on the PyroCMS addon store. This module lets backend users search stream entires using keywords. The innovative core of this module sits on its efficient use of existing system resources. Users use, for example, a slightly modified version of the streams input form to build their search parameters. The search results respect the view options set by the stream. You can quickly find records in a stream to edit, delete, or view.

Upgrade OpenSSL on Your DigitalOcean Ubuntu 12.04 Server to Protect Against Heartbleed

April 10, 2014

This morning I tested to see if my Ubuntu 12.04 DigitalOcean server was affected by Heartbleed and what I found was this: I was running one of the compromised versions of OpenSSL. Good news: the fix is quite easy to implement.

Building a Christmas Music Light Show with a Raspberry Pi

November 22, 2013

Learn how to build your own Christmas music light show using a Raspberry Pi, a little Python, a midi-listening C script, and a whole bunch of lights.

The Easy Way to Install the MongoDB PHP Driver on Ubuntu 12.04

February 24, 2013

Having trouble installing the MongoDB PHP Driver (mongodb-php-driver) on your Ubuntu 12.04 server? Here is the easy way to get it installed.

How to Iterate Through an Array in a Shell Script (Bash)

March 21, 2012

I was recently debugging a shell script and had a hard time remembering how to iterate through an array in Bash. This post helps me remember.

Diablo 3 Wordpress Theme

February 23, 2012

In celebration of the upcoming release of Diablo 3, I'd like to announce the release of a Wordpress theme I'm calling the Diablo 3 Graveyard Wordpress Theme. I put this theme together because I was a huge fan of Diablo 2. And now, even though I don't spend much time playing nowadays, I'll install D2 from CD and play it over the Halloween weekend. It was, in fact, October of 2011 that I started working on this project, and I've just now had the time to finish and release it.

Upload a File to a Remote Server with PhoneGap

March 26, 2011

I recently started looking at PhoneGap as a way to build native smartphone applications without having to learn another programming language. The process, so far, has been going very well. I've been able to build a basic application with very little trouble. I did, however, hit a big hiccup in development when I decided to try and upload a file from a phone to a remote location. In this post, I want to explain how I was able to upload a photo from a phone, using PhoneGap (and PHP on the remote server), to a remote server.

How to Add a www Resolve to Apache for Better SEO

October 20, 2010

There is a simple way to resolve your site URLs to include the www in each address. Or drop the www from each address. Why is this important? "Redirecting requests from a non-preferred hostname is important because search engines consider URLs with and without "www" as two different websites" ( So, if you don't resolve your www, you are harming your SEO performance.

How to Configure Apache to Use htaccess Files

October 20, 2010

Getting Apache to recognize .htaccess files is a pretty easy task. All you need to do is look for where your root web directory is defined in your Apache configuration files. On Ubuntu, this location is /etc/apache/sites-enabled. Once you have located the file, just add the line "AllowOverride All" (instead of AllowOverride None) to the root directory configuration detectives.

Wordpress, Godaddy, and Permalinks

October 24, 2008

If you do a Google search on the subject, you find that people have complaints about how GoDaddy hosting works with Wordpress' permalinks function, many of whom claim one thing or another about how this tool works (or doesn't work). But I'd like to clear the air on the misconceptions. So, first let me explain some of the misconceptions surrounding GoDaddy and Worpress permalinks, then explain how you can get permalinks working on your Godaddy hosted Wordpress blog.