My name is Jessica Barnes
I’m a Web Designer and Software Developer from Brisbane, Australia.
I am currently working for Mediaglue.

read more...

New Project – Queerly Girls and Queerly Guys

January 19th, 2010 | No Comments »

My latest personal project – a dating website!

Domains: purchased
Database structure: structured
Logo(s): designed

Lets just say I have some experience using various dating websites, and I think by now I know what works and what doesn’t. The plan is to build the ultimate gay dating website combining the best aspects of various other sites, as well as a few of my own ideas thrown in. At this stage the plan is to be a completely free website until the cost of maintaining it becomes too much and then I’ll look at my options.

Stay tuned for more!

Categories: Design, General

Force SSL by loading the same page via HTTPS

December 26th, 2009 | No Comments »

Just a simple one, I place this in a common file, and then call it at the top of each page that I require to be secured by SSL.

function force_ssl() {
    if ($_SERVER['HTTPS'] != 'on') {
        header("Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
        exit();
    }
}
Tags: | Categories: Useful Stuff

MySQL string escaping in PHP

December 26th, 2009 | No Comments »

Simple function to prepare user inputted data for inserting into a MySQL database. It simply checks if stripslashes() should be called, and then escapes the string. Basic, but handy.

function mysql_escape($string) {
    if (get_magic_quotes_gpc() == 1) {
        $string = stripslashes($string);
    }
    $string = mysql_real_escape_string($string);
    return $string;
}
Tags: , | Categories: Useful Stuff

The most useful PHP function you’ll ever use!

December 26th, 2009 | No Comments »

This is the first thing I add to any PHP based project and I couldn’t live without it..

Most people will probably understand and appreciate what this does, but for those that don’t, it simply displays the contents of an array in a very human readable way by using the <pre> tag to preserve the spacing of the print_r() command.

// Debug Array
function da($array) {
    echo "<pre>\n";
    print_r($array);
    echo "</pre>\n";
}

Enjoy!

Tags: | Categories: Useful Stuff

Bash alias to search file contents

December 26th, 2009 | No Comments »

This simple Bash alias will search the contents of every file in the current directory (and sub-directories) and return the file names. Very handy when trying to work out which file generated which HTML in large PHP based applications or when trying to find every last instance of a particular string in a bunch of config files.

# Search In Files
sif() {
    grep -EiIrl "$*" ./*
}

Either use the grep command by itself, replacing the $* with your search string for a one time use, or add this to your .bashrc file to be able to search by typing: sif search string

Tags: | Categories: Useful Stuff

My config files

December 26th, 2009 | No Comments »

For those that are interested and for my own reference…

Read the rest of this entry »

Tags: | Categories: Useful Stuff

I don’t have crappy initials!

December 13th, 2009 | No Comments »

I’ve tried so many times over the years to create a personal logo using my initials, but I was never quite satisfied with anything I created which I put down to “crappy initials”. The other day while I was messing around for the 1145th time, I realised that I have AMAZING initials, I just never noticed because I’d always tried using either both lower case, or both upper case.

new-logo

iPhone Wallpaper

1280×800 Wallpaper

1920×1080 Wallpaper

Tags: | Categories: Design, Portfolio

Jessica Barnes has a new website!

November 11th, 2009 | 1 Comment »

In my efforts to test out WordPress as a CMS I am installing it on my personal website. I’m hoping to find the best of the best plugins and possibly develop some of my own if needed.

I will also use this as a central place to store all of the useful stuff that I’ve created or come across that make my life that little bit easier.

Jess

Categories: General

Centenary Landscaping Redesign

November 3rd, 2009 | No Comments »

We weren’t quite happy with the work we originally did for Centenary Landscaping so we offered them a free redesign of their site to create something we could all be proud of.

centenarylandscaping.com.au

Tags: | Categories: Design, Portfolio

Luck Is Probability Taken Personally

January 26th, 2007 | No Comments »

Penn Jillette said “Luck is probability taken personally”.. Well actually it was Chip Denman that said it.. but whatever. That statement is so interesting, particularly because of how accurate it really is.

People rely on this mystical force called “luck” to help them through life and its generally a pretty harmless thing to do, well unless you’re into gambling. But I do find amusing the sorts of lengths people go to in order to improve their luck.

Read the rest of this entry »

Categories: Skepticism