Battery Monitoring System Interface

Posted by Andrew on May 17, 2012 in Code, Electric Vehicles

The front end for the battery monitoring system is really coming along. The key is creating meaningful real time graphs that allow the user to see what is going on in their battery pack. The most important two voltages are the highest cell and lowest cell because these determine how much juice can be put […]


Using AJax

Posted by Andrew on Sep 29, 2011 in Code

More and more web pages are used more as applications than just web pages. One of the best ways to do this is with the use of AJAX. Ajax isn’t a programming language but a methodology that uses existing languages such as javaScript and PHP. Using ajax allows the developer to update that web page […]


Validating Email Addresses

Posted by Andrew on Apr 18, 2011 in Code, Web Design

Validating emails in your forms can eliminate a lot of false data as well as prevent hackers from using the entry field for attacks. The best way to do this is by using regular expressions to parse through the entry and make sure that it contains characters that are valid for a normal email address. […]


Securing PHP Form Data from hackers

Posted by Andrew on Mar 19, 2011 in Code

I recently had a hacker try to gain access to our database. This attack prompted me to revisit the security placed on the site. When you use forms in your website, you have to protect them from hackers who will seek to gain access to send emails or insert spam links into your web site. […]


Tracking clicks in an email or web page

Posted by Andrew on Feb 1, 2011 in Code

Tracking the number of clicks and the URL that the user clicked on can be very beneficial in a commercial email or on a web page.  To do this we pass the actual click through a link forwarding system which does the tracking.  It works like this.  The link that is used in the email […]

Tags: ,


Reading the PHP Error File

Posted by Andrew on Dec 8, 2010 in Code

When you are working on php code its often advantageous to be able to see the error codes that are created by PHP and stored in the log file. You can view this file by using FTP and going to the log directory and opening it. This is pretty time consuming when you are debugging. […]


Posting on Facebook with PHP

Posted by Andrew on Dec 6, 2010 in Code, Web Design

Being able to post directly to a Facebook wall from PHP is a very useful tool if you need to regularly post news from your website. After a lot of trial and error and reading a lot of other incomplete posts I figured out how to accomplish the task. Getting this setup involves 3 steps. […]

Tags: ,


Creating Dynamic Content for Facebook

Posted by Andrew on Nov 10, 2010 in Code

Facebook currently doesn’t allow iFrames though this is slated for the future.  The question then is how do your insert in dynamic text content? The solution I came up with is by creating a jpg image that has my dynamic text content in it.  In Facebook, write your html for your tab and then  just […]


Caching Dynamic XML Pages with PHP

Posted by Andrew on Jun 20, 2010 in Code, Web Design

Below is a method to cach database heavy dynamic pages. In this example I was building an elaborate playlist which would be hit by lots of users. For the example I greatly simplified the query I was making so that you can see the caching method. With this method the first user to hit the […]

Tags: ,

Copyright 2010 Andrew McClary