1 comments - Friday the 29th of August, 2008 at 9:07am
Robert Kern of www.robertkern.com has found this great article about Project Management and the view from a web developer written by Brandon Ching. I think it is a great article.
0 comments - Monday the 25th of August, 2008 at 7:51pm
2008 Olympix
Now, I didn't watch that much of the Olympics, I watched a few events NZ were in, the Evers-Swindell sisters win gold and that about it.
Its not that i don't support NZ, or any other country, but i'm just not that much in to sport or the olympics that I could sit and watch that much TV.
New Zealand did quite well for such as small country, New Zealand got nine medals - our best since Seoul 20 years ago.
How ever, of the few sports I did watch and the 3 minutes max of the beach…
1 comments - Sunday the 24th of August, 2008 at 10:17am
Today it was wet, wet and horrible. There was Thunder, lightening and heavy rain. It was Yuck! Not as bad as it has been many times this winter, but Yuck!
So, being bored out of my mind, and trying to give me internet a break over the weekends, I decided to go for a walk. As part of my plan to get myself fit, loose the beginning of my beer gut and build up a little muscle in my lazy self I am going to walk, the occasional push-up and/or sit-up, and eat the less occasional healthy meal.
I dressed…
0 comments - Sunday the 24th of August, 2008 at 9:15am
Backing up your site and files is a Must, and many servers have back-up options available to them. But one thing that is forgotten far too often when backing up your site, is backing up your database.
With a blog, like this and most wordpress blogs, the only part of the site to regularly change is the database. The site itself rarely changes other than the few uploaded photos.
Every Post, Comment, Trackback, registration all modifies the database. I like to take mywordpress DB from this online Blog, and dump in to my local copy so I have content, and…
1 comments - Wednesday the 20th of August, 2008 at 6:04am
This is a free WordPress theme available for download.
Is it a Clean, 2 Column Layout with a Left side Navigation / Sub Navigation. The Sub navigation uses Mootools to appear, and will display Posts under their Categories.
It has support for Gravatars and Widgets, includes the Header PSD and is fully xHTML and CSS Valid all for free!
Download: [download#3]
0 comments - Wednesday the 20th of August, 2008 at 2:50am
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 inline ADSL spliters
Child-like Interface
Navigation structure is confusing.
Digging Deeper:
There is no default User/Password, So once I found out my default router IP from my Network Preferences I access the interface via Safari, http://192.168.1.254
The…
0 comments - Tuesday the 19th of August, 2008 at 1:28am
I have just launched my site with a theme that I have made myself completely from scratch.
It uses multiple colour sets and some 'grunge' style imagery. Let me know how you like it, and if you come across any bits and pieces that aren't working.
The site uses CSS 2/3 and xHTML code, with a heavily modified version of Wordpress 2.6.02.6.1
I have made all hacks to Wordpress 99.9% upgradable so should be good to go with upgrading to the newly released WP 2.6.1. was simple.
I hide all CSS and JS with some simple PHP code and have…
1 comments - Thursday the 7th of August, 2008 at 4:05am
I have had a concern brought to me that using .inc files is a security issue, people can access the xxx.inc file directly and read the full file contents.
While I agree, this can be fixed with a rule in your .htaccess file that will send a 403 Forbidden response to all requests .inc files. I personally like using .inc file extensions for include files rather than .php as there files do not and should not be run directly. To use .php over .inc this section explains what to change.
Download an update from the main SimpleSite post ~ http://sheldon.lendrum.co.nz/building-a-completely-dynamic-site-using-text-files-php-and-no-mysql_187/03/…
1 comments - Tuesday the 5th of August, 2008 at 7:32am
This is a follow up to a previous post http://sheldon.lendrum.co.nz/clean-dynamic-directory-listing-with-php_206/04/ that will Dynamically display the files in a set directory.
In this version the files can be ordered by the date that they were last modified. I will also explain how to order both Ascending and Descending by the date the file was created also.
Example Usages:
< ?php
// EAMPLE USAGE
// SHOWS THE 10 NEWEST .php FILES IN A UNORDERED LIST
echo("". direcotryList("10","./",".php","","\n") ."");
// SHOWS ALL JPG IMAGES AS THUMBNAILS
echo(direcotryList("","./images/",".jpg","\n"));
?>
< ?php
// DIRECTORY DISPLAY USING GLOB SORTNG BY LAST MIDIFIED FILE DATE.
// IF…
16 comments - Monday the 4th of August, 2008 at 11:10am
When writing a post, I don't often write it all in one go, then before I publish it, I save it and preview it, generally more than once.
WordPress has 2 Great ( or not ) features, Auto-Save, and Revisions.
When writing my last post Clean Dynamic Directory Listing with PHP I have some example code wrapped in <pre> tags and WordPress auto-validates code, which is a handy feature, but not here where I was trying to enter my example.So after several saves, and eventually getting in to my mySQL database to fix it and seeing that for hat this…
5 comments - Monday the 4th of August, 2008 at 8:40am
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!!
< ?php
// DIRECTORY DISPLAY USING GLOB AND A CLEAN PATH OUTPUT.
// IF ALL PERIMATORS ARE EMPTY WILL SCNA DEFAULT DIRECTORY
// '$path' => PATH TO DIRECOTRY TO SCAN
// '$ext' => FILES EXT, IF YOU WANT OT ECLUDE IT, OR ONLY SCAN FOR ONE TYPE OF FILE
// '$start' => APPEND TO START OF OUTPUT LINE EG: '' OR…
1 comments - Sunday the 3rd of August, 2008 at 9:13pm
Do you have an image or images that people are using on their site, Not giving you the credit for your artwork and using your bandwidth?
With a simple .htaccess on your Apache server you can prevent Image HotLinking.
In your Images Directory, or in your mail web root if you have multiple image areas create a .htaccess file. If you already have one, we can just append the following code in to that.
Insert this in to your file.
RewriteEngine On
# REPLACE lendrum\.co.nz WITH YOUR DOMAIN NAME
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?lendrum\.co\.nz/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]…
1 comments - Sunday the 3rd of August, 2008 at 12:00pm
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 on a mac, try this at home....
osascript -e 'say "Sheldon is Awesome!" using "Cellos"'
1 comments - Sunday the 3rd of August, 2008 at 10:31am
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 me wrong, their not stupid, and I'm for sure not the greatest !
So, tonight, a sunday evening, nothing on the tele, and less of a social life lately it seams. I have spent 2 hours building a completely dynamic flat file web structure.…
0 comments - Friday the 1st of August, 2008 at 9:58am
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 in Helensville, marriage broke up, whore ran off, moved back to kaukapakapa. Spent 8 months in the USA, came back to Kaukapakapa.
Did you catch all that ? Thats a lot of moving backwards and forwards to kapkauakapa!
My Plan.
6 years ago: Become a Qualified Carpenter, create websites as a side…
0 comments - Friday the 1st of August, 2008 at 9:20am
Wellington... I have only been there once. It was a flying weekend once, oh maybe... God... 5 years ago. and really its wasn't a flying weekend, so much as a fucking boozy weekend - partly landing in Wellington...
For a one way town, I am looking to go head down there...
2 comments - Friday the 1st of August, 2008 at 6:59am
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 everywhere, These is stuff thats needs to be sorted, and only few counties are doing it.
While the speed of internet access is a problem. The other issue is overpopulation. The growing number of people connecting more and more PCs and other gadgets is fast using up the…
1 comments - Friday the 1st of August, 2008 at 1:00am
Tremor the Free Wordpress Theme by Quake Media.