Notepad++ CRLF instead of LF

Notepad++ CRLF instead of LF

Posted on: August 24th, 2012 by deanpugh

Recently had a problem with uploading a new php file to a server, and it turned out that Notepad++ was only adding LF to the end of each line, and not CRLF. Malay Ko Ba has the quick and easy way of fixing all your problems.

Using $_GET with php Include() function

Using $_GET with php Include() function

Posted on: January 27th, 2012 by deanpugh

Admittedly, this probably doesn’t come up alot for people, but recently I have been creating a project management system for someone and am trying to make it as user friendly as possible using all my known tricks. I want to use an Include function for php when a page loads, but this page doesn’t include […]

Auto Email Web Page Errors

Auto Email Web Page Errors

Posted on: January 23rd, 2012 by deanpugh

I nice feature that I found recently on NetTuts was a way to keep informed of error messages. We all know customers never write down error message in detail, or can remember exactly what they were doing so that you can reproduce the error message. This function allows you to display an nice alternative for […]

Get a <li> elements index value on click with jQuery

Get a <li> elements index value on click with jQuery

Posted on: December 17th, 2011 by deanpugh

Recently I needed to find out the element index of a List element when clicked. I managed to come up with the code that enabled me to do that using jQuery. First you need to set up your HTML code with an id of ‘bourne’. You don’t have to use bourne, use whatever you like. […]

Online Testing With jsfiddle.net

Online Testing With jsfiddle.net

Posted on: December 16th, 2011 by deanpugh

A website that I recently found very useful was the JS Fiddle website. It basically sets up a test area for you to try out simple bits of code, saving you the time or creating a test area. It also has the nice feature of being able to set up as different versions of HTML, […]

Linux Crash Course

Linux Crash Course

Posted on: December 8th, 2011 by deanpugh

This is a quick and very basic crash course for someone new to linux administrator. The following commands should get you through navigating files and simply finding your way around the operating system.   Help! One option that might be useful if your stuck is to follow a command with –help. This will display the […]

Windows 7 Keep On Top

Windows 7 Keep On Top

Posted on: December 7th, 2011 by deanpugh

During my reload of my machine, I come across a simple little program that I needed, and thought that it would be useful to inform my visitors of a neat little program that you might find useful. I like working on my computer with a movie or video in the background, but flicking between screens […]

Toggle Jquery UI Checkbox Array

Toggle Jquery UI Checkbox Array

Posted on: December 1st, 2011 by deanpugh

Ok, so the title may not explain what this post is about, but hopefully it covers the basics. Recently I have been rewriting a website, adding smarted code and classes. One of the new features I have added is Jquery UI. While this in itself is not new, it was new to this project. One […]

Calculations To Scale An Image

Calculations To Scale An Image

Posted on: November 9th, 2011 by deanpugh

A couple of times I have had to deal with images in my code. Recently I had a project that needed the user to upload an image, which then needed to be scaled down to fit an area. Below I detail the calculations that I used. For this demonstration we will be using an image […]

Pre Check Form Before Submit

Pre Check Form Before Submit

Posted on: November 8th, 2011 by deanpugh

Below is a script to allow you to run a precheck function in Javascript, preventing the form from submitting if you detect a problem. First, in a separate, external Javascript file, copy the below script: The above code is checking a checkbox value in the sent form to see if it has been selected. If it has, then […]