Upgrading WordPress Breaks All My Links!

Recently, I wrote about moving a wordpress blog from one domain to another. Whilst transferring my girlfriends blog to another domain I noticed her blog was out of date. So I decided to update to wordpress 3.1 before I moved it. Bad choice, a simple rule to making changes in programming is this, “Make one change at a time and

Moving a WordPress Blog to a New Domain

I’ve had to move many WordPress blogs from one domain to the next. As a result, this process has become fairly repetitious. So I thought I would share my experience. First, some disclaimers. If you don’t know what your doing, it might make sense to pay someone else to move your blog… If you’ve never run an SQL query, this tutuorial

Groove Shark Widget Trouble

For everyone out there who has had trouble getting their playlists to be recognized when they login to the grooveshark widget platform here: http://widgets.grooveshark.com/my_widgets The problem seems to be something where Grooveshark can’t pull in your account information associated with any past widget IDs. However, if your widget is still playing on your website you in luck! Requirements: Make sure

jQuery Flashlight

It’s simple really… The text is black and the background is black, so you can’t see the text, it looks blank. However, when you hover your mouse over the page, a background image with a color of white follows your mouse, giving the illusion of a flashlight on the page! Simply make an html page like this. Then give the

Goo.gl URL Shortener

Here’s a simple class for URL shortening using Google’s new URL API: <?php class GUrl { $api_url = “https://www.googleapis.com/urlshortener/v1/url?key=”; $key; function __construct ($key = “YOUR_API_KEY”) { // set up the API key if it exists $this->key = $key; } public function shortenUrl ($url) { curl_init(); // concatenate the API url curl_setopt($ch,CURLOPT_URL,$this->api_url . $this->key); curl_setopt($ch,CURLOPT_POST,1); // send the json ecoded long

Array Based Templating System

Update: After experimenting with options in array based templating engines I have discovered that it’s not practical to use PHP as the platform for this technique. The fact that PHP does not allow identical array keys means that you can’t currently implement an array based template engine with say more than one paragraph tag since the <p> is output by

Photo Study: Light

Amazing light in the kitchen this morning so I decided to whip out the ol’ D-90 and try to get better at photography! I just wanted to study the light, specifically, what adjustments I could make to alter the way the image appears. I wanted to capture the atmosphere of the room and play with the intensity of the lighting:

Ruby, Rails and CentOS with Knownhost and cPanel

This article is primarily for those hosting a VPS with Knownhost and using a CentOS/cPanel combination. However, if the server was set up correctly, this tutorial should work with any CentOS/cPanel server. Where to start? To begin, you must have atleast minimal experience with the command line interface. Users should have SSH access and know how to use it. If

Compiling From Source: Ruby 1.9.2 on CentOS

Recently I tried to upgrade ruby on my server. Installation was supposed to go something like this: cd /tmp wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz tar -zxf ruby-1.9.2-p180.tar.gz cd ruby-1.9.2-p180 ./configure make make install However, when I got to the “./configure” command, I would return a c compiler error. So I check my c compiler and it was in fact working… Then I tried

Hidden Messages in Images

There’s a technique called “steganographic encoding” where one hide’s a text message or even a whole file structure inside a seemingly normal image. We’re going to make a simple version of this! First, let’s find an image to use…I chose this self portrait I snapped while RJ was playing around with reactivision. Next, lets decide what we want in our