Allan Vest

Expert Web Development

Archive for the ‘Web Development’ Category

Seven Benefits Of A Development Site

leave a comment

Are you building web sites without first creating a separate development site? Here are seven benefits you may be missing out on:

  1. Safely make and test coding changes.
    A development site lets you safely make design, content and coding changes without affecting the live site that everyone sees. Editing a live site directly is just asking for trouble. Thoroughly testing your work for even the smallest of changes is a must. Revealing a buggy “work in progress” to the world, no matter how intermittent, just doesn’t look good.
  2. Let customers review work before going live.
    A development site allows you to privately show your customer the work that has been done before it goes live. This gives your customer a chance to make sure they are satisfied with the work. It also gives them something definitive that they can look at and use to provide feedback. A lot of times, customers have a hard time putting into words exactly what they want. By including your customer throughout the site development process, you can actually save time and money while making sure the project will meet the customer’s expectations when it is delivered.
  3. Get a competitive advantage!
    Keep an edge over your competition. Every site developer knows that there really isn’t any small five minute changes for a first time request from a new customer. Maintaining a development site after the site goes live gives you the ability to almost instantly make small changes. So, for every site that you build, keep the development site in place. This will let you quickly make those small little changes without having to eat the time of getting setup or charging for extra time.
  4. Review and quality control changes.
    A development site provides the infrastructure needed to review your work or the work of a team. By comparing the files between the development site and the live site, you can see exactly what changes have been made before publishing. After working on a site for a few days, it’s easy to forgot something. For example, a quick comparison might reveal a single line of debug code that was left on by mistake.
  5. Emergency backup insurance.
    A development site can act as an additional emergency backup to the live site in case of a disaster. Are you relying on the hosting company to backup the site? Are you really sure that the hosting company can restore the site if there is an issue? How long do you think it will take support to perform a restoration? How much time would it take to rebuild the site from scratch? This is just scary stuff. Unfortunately, the issue of safely backing up a site gets way too little attention. Disasters do happen…
  6. Customer content and data entry.
    Customers sometimes find that they want to make a substantial change to the site, but the number of changes required is just too big to implement on the live site all at one time. In this case, if the site includes a Content Management System (CMS) or shopping cart application, you can let your customer use the development site to make their changes and then publish the changes for them.
  7. Warranty your work.
    A development site allows to see what changes the client has made when you compare the live site to the development site. There are always those customers that know just enough to be dangerous.So when your customer calls and says the site is broke, you’ll know right away if someone other than yourself has changed anything. By maintaining a development site, you can confidently warranty your work knowing that you have the ability to figure out what has changed.

Written by allan

April 25th, 2011 at 9:25 pm

Posted in Web Development

How To Plan For A Computer Virus Recovery

leave a comment

Having just went through the effort to rid my laptop of a particularly nasty virus… I thought I’d share a few preventative steps anyone can use to help avoid computer viruses and make it easier to recover from one if your computer does get infected.

  1. Install anti-virus software. For Windows, you can use the free version of Security Essentials on up to 10 PCs.
  2. Install malware detection software. Do this before you get a virus in case the virus disables the ability to connect to the Internet and/or execute applications. I’m currently using the free version of Malware Bytes.
  3. Make sure that “System Restore” functionality is enabled on your PC. You can check this by going to Control Panel -> System -> System Restore. Worse case scenario, you might need to restore your computer to a previous state if it gets infected in order to get things working again.
  4. Make sure you are constantly updating your browser to the latest version.
  5. Make sure you are regularly installing Windows Updates.
  6. Make regular backups of your computer. I’m currently using an online backup service for this called JungleDisk. The service is fairly inexpensive compared to the alternative of losing everything.
  7. Another great tool is HijackThis. This tool lets you take a snapshot of your computer settings and then if your computer gets infected, you can run it again to find out exactly what the virus has changed. The trick is to create the snapshot before your computer gets infected.

Written by allan

April 8th, 2011 at 7:28 pm

Posted in Web Development

How To Stop Comment Spam

leave a comment

Comment spam is a nuisance. Here’s a simple piece of code you can add to your WordPress blog (or any web form) that stops nearly all of the spam without asking your site visitors to do anything extra. Read the rest of this entry »

Written by allan

March 28th, 2011 at 3:25 pm

Posted in Web Development

PHP & Curl on Windows

leave a comment

Today I was testing an application that is known to work under Linux and Apache to see if it functioned the same under Windows and Apache.

Turns out, the following code fetches a HTTPS pageĀ  just find under Linux and Apache, but returns nothing under Windows and Apache.

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $post_url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, $timeout);
$result_array = curl_exec ($ch);

Adding the following extra settings lets the code work on both Linux and Windows and seems to work regardless of whether the page being fetched is HTTP or HTTPS.

curl_setopt($ch, CURLOPT_SSLVERSION, 3);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

Written by allan

March 3rd, 2011 at 7:08 pm

Posted in Web Development