Zachary Logo

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

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.

Read More »

The PSR-1/PSR-2 Analogy

I agree with Phil Sturgeon's statement about the recent comments on the recent Nettuts+ article on the PSR standards proposed by the PHP-FIG. In light of these shallow comments, I'd like to highligh another industry's standards over method and content. That industry is writing and the standards they impose upon themselves come in a number of formats.

Read More »

How to Install ImageMagick on SLES 11 for Typo3

One of the things you immediately find out about Typo3 is that it uses ImageMagick, a server based image modification tool, to handle thumbnail creation, image resizing, and more. ImageMagick gives Typo3 some great features, but only if you have it installed correctly. Here is a quick guide to installing ImageMagick on SUSE 11 for Typo3.

Read More »

The Redesign: a Starting Point for the Solo Higer-ed Developer

I was recently reading a blog post on Higher Ed Solo—Redesigning an .edu site – by yourself?—and got to thinking a lot about what it takes to redo a .edu site from top to bottom. For me, that starts at the core of the site: programming and CMS adoption. I want to talk about one aspect of why re-designing, re-building, or adopting a new CMS might not be as horrible of a mess as people think.

Read More »

Disable Submit Button On Form Submission

Web developers don't use this trick every day, but it can be very useful. When you want to prevent users from mashing the submit button on a form, use this little JavaScript OnSubmit snippet to help you out. All the magic happens on the form tag.

Read More »

How to Get the Value of a gtk.TextView in Python

There doesn't seem to be many good, easy explanations on the Internet about how to get the value of a gtk.TextView widget. So, here are the two little lines of code for this simple task.

Read More »

Unboxing the Raspberry Pi

This week I was blessed to have a Raspberry Pi show up at my doorstep. After waiting up until 11:00pm MST (6:00am in London) to get on the waiting list a while back, my Pi has finally made its way home. And to be honest, I'm not entirely sure how I'm going to use it.

Read More »

Android: Target a TextView

In order modify one of it’s properties like, for example, the text it contains, Android developers often rely on targeting views in order modify one of their properties. The small code example in this post targets a view with the ID of humidity and appends some text to it.

Read More »

Diablo 3 Wordpress Theme

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.

Read More »

Review: PhoneGap Beginner's Guide (Packt Publishing) by Andrew Lunny

PhoneGap Beginner's Guide is the most informative source of information I've seen/read about PhoneGap. It is a great resource for learning all the nuances that go into making native PhoneGap applications on mobile devices. If you are looking to use PhoneGap, it would be a good idea to start with this book. It really is a comprehensive yet easy-to-read book on using PhoneGap.

Read More »

Post Data to a Remote Server (Cross-domain) with jQuery in PhoneGap

Android and iPhone apps built with PhoneGap are (because of PhoneGap's nature) compiled code, and because this compiled code is not a browser, you can execute cross-domain requests. In this short tutorial, I'll provide some sample code for sending a POST request to a remote server.

Read More »

Upload a File to a Remote Server with PhoneGap (revised for version 1.5.0)

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.

Read More »

How to Add a www Resolve to Apache for Better SEO

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" (woorank.com). So, if you don't resolve your www, you are harming your SEO performance.

Read More »

How to Configure Apache to Use htaccess Files

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.

Read More »

Setting a GET Parameter as a Variable in Typoscript

Recently I had a problem that, in spite of many "support leads" on other sites, was hard to figure out. All I wanted to do was reference as GET parameter in a URL as a variable in Typoscript. After many failed attempts, I found a solution to my problem. So, for future reference, and for all others who may be struggling with this problem, here is a solution.

Read More »

Parse PHP in HTML Pages on GoDaddy Hosting

Sometimes it is helpful, mainly to avoid broken links, to make sure your html files (with a .htm or .html extension) can parse PHP. On GoDaddy hosting, this threw me for a loop.

Read More »

.eduGuru: Organizing a Higher-Ed Online Media Stream

I'm very happy to see my post "Organizing a Higher-Ed Online Media Stream" on .eduGuru. Thank you to Kyle James for letting me guest write for one of the best .edu blogs on the internet!

Read More »

A Better PHP Upload and Rename Script

An earlier post of mine provides a fairly good example of a PHP script that renames a file as you upload it to a server. In this post, I've decided to take another look at that type of script and make it easier to use. I'm going to break the code you'll need into two parts: the HTML and the PHP.

Read More »

Build a Basic Authorize.net Payment Form

Getting a payment form that works can be tricky. But once you figure it out, you have the form as a reference forever. I'd like to show you how to build a basic Authorize.net payment form using HTML and PHP. Luckily, Authorize.net does a very good job providing documentation to web developers, making this form creation process very easy.

Read More »

Actionscript 3.0 SoundChannel Position Pause Bug

I spent my entire morning today trying to discover why I couldn't get a pause function to work properly on an actionscript 3.0 mp3 player. I came to find out that a very significant bug exists in actionscript that keeps channel.position (part of SoundChannel) from reporting the correct position location of a stopped mp3.

Read More »

Parse Yahoo Weather Data XML with PHP

I've looked at parsing weather data with PHP before, but I've found that using Yahoo's weather service it more stable and flexible. Luckily PHP has some excellent built in functions to parse complex XML.

Read More »

Force SSL / https on Typo3's Backend

Sometimes it is appropraite to secure Typo3's backend login page and editing pages. This is done very easily in your server's .htaccess file.

Read More »

Wordpress, Godaddy, and Permalinks

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.

Read More »