Tony Lea

Howdy, Welcome to My Blog

March 23, 2011

What is JSON?

Written by Tony Lea - 1 minute read

I'm sure if you are a web developer you have probably heard of the word JSON or JSON array. Don't be scared about the word, it's actually very simple, and just because I have to say it... It stands for Javascript Object Notation. Hope that didn't sca...

March 21, 2011

Javascript - Detecting the bottom of the page.

Written by Tony Lea - 1 minute read

When working on a project of mine, I needed to detect when a user was scrolling the page if they had reached the bottom. I tried looking for a simple solution; however, I could not find one. Well, using jQuery and a little Javascript this can easily ...

February 16, 2011

SQL Replace String

Written by Tony Lea - 1 minute read

Have you ever wanted to replace a particular part of a string in SQL and you don't want to go through the hassle of coding the query and using PHP functions to parse and replace that specific part of the string. Well, now you don't have to... There i...

January 19, 2011

How to get Youtube Thumbnail Images

Written by Tony Lea - 1 minute read

There is a very simple way to retrieve your youtube thumbnail images for a specific video. The simplest way is to go to the following URL: http://img.youtube.com/vi/VIDEO_ID/#.jpg Of course, you'll need to replace [VIDEO_ID] with your youtube video...

January 19, 2011

PHP Getting the filename and the extension from a string

Written by Tony Lea - 1 minute read

Sometimes when using php you may have a string containing a file location. In many cases (most of the time when you are manipulating images) you may want to create a duplicate or modify the filename in someway. In order to do this you will most likel...

January 18, 2011

How to make your site redirect with and without the 'www'

Written by Tony Lea - 1 minute read

Using your .htaccess you can do a lot of things, such as making SE Friendly URL's. One more great trick is the ability to redirect your site so that it always points to the www version or without. Let's say that your base URL for your site is linking...

December 15, 2010

jQuery slideUp and slideDown

Written by Tony Lea - 1 minute read

.slideUp() .slideDown() Here is a beginner tutorial on using the jQuery slideUp() and slideDown() functions. This article contains the code used to perform the jQuery slide functionality. Watch the video to be shown from beginning to end,...

December 13, 2010

jQuery 101 - The Basics

Written by Tony Lea - 4 minute read

Quite possibly one of the best things to happen to HTML since peanut butter met jelly! jQuery is one of the most popular javascript libraries in the world. There are so many cool and fun interactive features that jQuery brings to the web interface....

November 5, 2010

Creating your first WordPress Plug-in

Written by Tony Lea - 1 minute read

Wordpress is great for writing posts, adding videos, and many other of your media blogging needs. Well, when you want to extend WordPress to be 'all it can be', you may want to start diving into creating WordPress Plug-ins. Which are surprisingly eas...

October 22, 2010

Safari Overflow Hidden Problem

Written by Tony Lea - 1 minute read

There may be times when you need to hide the overflow (scrollbars) being visible on a page. You can specify to have all scrollbars hidden or the x and y scroll bars separately. When trying to hide the overflow of a project I was working on I realized...

1 2 ... 5 6 7 8 9 10 11 12 13 14