Posts Tagged ‘fun’

Use PHP to find your mobile browser January 11th, 2010 by Sheldon Lendrum

I needed a quick way to include different files based on the if the visitor to a site is on a mobile device or a regular browser/computer.
Every browser has a user agent depending on the operating system, browser and system.
below are some common use agents, they can be found by echoing the server variable HTTP_USER_AGENT

< [...]

Facebook Pirate Style April 28th, 2009 by Sheldon Lendrum

With the Millions of users on Facebook, there is a need for lots of different langauges, but did you know that you can view your facebook in Pirate English! It will change the whole site in to Pirate English, even the notification emails you receive.
It is Easy to turn on, and easy [...]

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 [...]

Javascript Password generation and strength testing. November 5th, 2008 by Sheldon Lendrum

While working on an online school application I came across the need to users to be able to change their passwords, I wrote a quick and dirty random pass script, then decided to see if I could figure out how hard it would be to test the strength of the entered password.
Ryan Stemkoski [...]

Mountain Bike Event 1 September 1st, 2008 by Sheldon Lendrum

So, you who know me, know I am pretty darn lazy. So in Saturday I got a call from my sister at 7:30am wanting me to go riding with her, as her friend was sick. I was like “Hell No !”, but she managed some how to talk me [...]

Clean Dynamic Directory Listing with PHP August 4th, 2008 by Sheldon Lendrum

This here is a quick couple of functions to dynamically display files from any given directory.
It allows you to display it is a nice format with/out the files extension.
Pretty simple, but comments/suggestions/ bugs are very much welcome!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
< ?php
 
// DIRECTORY DISPLAY USING GLOB AND A CLEAN PATH OUTPUT.
// IF ALL PERIMATORS ARE EMPTY WILL SCNA [...]

Building a Completely Dynamic site using text files, PHP and no mySQL. August 3rd, 2008 by Sheldon Lendrum

I spent a fair amount of time trying to help people on PHP forums such as webdeveloper.com : Sheldon and one thing I see on a regular basis is over complex systems for basic site structures with people who at this stage don’t have enough knowledge of PHP to build a secure structure.
Now don’t get [...]

Moving On August 1st, 2008 by Sheldon Lendrum

I live now in greater Auckland. Kauakapakapa. its about 1 hour/ 1 1/2 hours north from the CDB ( Central Business District) I grew up in Kaukapakapa, Went to school in Helensville, Moved to Auckland City for 2~3 years, Moved back to kauakapakapa, Got married, brought a house [...]