Posts Tagged ‘Technology’

Javascript URI Address Segment Selection December 15th, 2009 by Sheldon Lendrum

I use the great CodeIgniter, PHP Framework a lot, Most site’s now days I create use it. One of the many good things is that way it handles pages request’s and PHP $_SERVER['REQUEST_URI'] to find which page we are on.
Here is how it works;

http://www.sheldon.lendrum.co.nz/posts/my-segment/my-page/15/2009/12

Now the way we do things, is break the site up, based [...]

Use PHP to subStr to cut length in whole words August 5th, 2009 by Sheldon Lendrum

In work, we often output a section of content and don’t always either want the whole content, or want a quick summary;
Below is a quick piece of code that will create a quick clean summary of a full HTML page from our ( or any ) content Management System.
This doesnt actually use PHP’s substr function, [...]

IP Addressing – know your External IP April 30th, 2009 by Sheldon Lendrum

I often want to know my IP address from when I am not, when I am not at Home/Work.
I know that there are Lots of sites out there that will sett it to you, but I wanted to set my own up.
http://ip.sheldon.lendrum.co.nz/
And Even!
http://ip.lendrum.co.nz/

Safari's CSS Support for multiple backgrounds on the same Style February 16th, 2009 by Sheldon Lendrum

I was browsing just now and fond something pretty interesting, Safari supports multiple background image declarations for the same style tag.

.box {
 
background:
/* Upper-left */ url(./corners_01.png),
/* Upper-right */ url(./corners_02.png),
/* Lower-left */ url(./corners_03.png),
/* Lower-right */ url(./corners_04.png),
/* Icon */ url(./icon.png),
/* Gradient */ url(./gradient.png);
 
background-position:
/* Upper-left */ 0% 0%,
/* Upper-right */ 100% 0%,
/* Lower-left */ 0% 100%,
/* Lower-right */ 100% 100%,
/* Icon */ 0.6em 0.6em,
/* Gradient */ 0% 100%;
 
background-repeat:
/* Upper-left */ no-repeat,
/* Upper-right */ no-repeat,
/* Lower-left */ no-repeat,
/* Lower-right */ no-repeat,
/* Icon */ no-repeat,
/* Gradient */ repeat-x;
}

Torrent Downloading Laws in New Zealand ~ Update February 9th, 2009 by Sheldon Lendrum

If you download anything via torrents, you should read this article. It is a pretty clear explanation of the upcoming Torrent Laws for ISP’s and users here in New Zealand including the ‘3 Strike’ policy.
http://torrentfreak.com/code-aims-to-quell-new-zealand-3-strikes-fears-090204/
The thing about torrents is that not every one uses them to download Copyright Application, music or movies.
I [...]

New Modem – Thomson TG8585v7 August 20th, 2008 by Sheldon Lendrum

Configuring my new Thomson TG8585v7
thanks to lightning on friday night that fried my previous modem ( DLink 604t ( No big loss)), My ISP Telescum sent me a replacement. Thanks you Telescum!
Contents
First Impressions
Digging Deeper
Account Connection
Port Settings
First Impressions:

Pretty
In the box: Modem 4-port 10/100, WiFi b/g, 2m Cat5 Cable, 3m RJ11 x RJ11 Telephone Cable, 2x [...]

OSX Speech Commands August 3rd, 2008 by Sheldon Lendrum

This is a cool tip that will work on and OSX Computer.
You can get your mac to sing and swear and talk anything via a simple Shell Script.
You can even get my mac to talk… I will be able to hear what you type ( But you can’t )

Alex
Cellos

If you are [...]

IPv6 The Future! August 1st, 2008 by Sheldon Lendrum

IPv6.
Internet Protocol Version 6, The next internet lookout word.
So with a side WordPress project I have been working on ( More info and links to come ) I have been looking at IP addresses, and with this, looking in tho the SHIT state the Internet, not only New Zealand, but [...]