<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7053603391585347027</id><updated>2012-02-28T17:25:29.928+13:00</updated><category term='salting'/><category term='PHP'/><category term='troubleshooting'/><category term='files and folders'/><category term='encryption'/><category term='Coda'/><category term='jQuery'/><category term='MySQL'/><category term='PostgreSQL'/><category term='CSS'/><category term='Code simplification'/><category term='Flux 3'/><category term='security'/><category term='web development'/><category term='NetBeans'/><category term='NetTuts'/><category term='database'/><category term='HTML5'/><category term='rewrite'/><category term='Aptana Studio'/><title type='text'>FieldTech Application</title><subtitle type='html'>A diary of a newbie building a call system application while learning how to code using PHP.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-5643750241593998754</id><published>2012-01-31T14:04:00.003+13:00</published><updated>2012-01-31T14:04:43.900+13:00</updated><title type='text'>Moving to WordPress</title><content type='html'>I've decided to move my blog to WordPress.&lt;br /&gt;&lt;br /&gt;There is a couple of reasons for this. The first is that I don't seem to have that much control over Blogger. It's just a pretty limiting system. Second its tying into Google Plus isn't a bad thing but it does seem a bit stupid. For example creating an about page so readers can see what this blog is all about goes to a Google Pages site which doesn't get a link back to the page from the blog page. This seems ridiculous to me because a lot of readers won't know the page exists. What's the point?&lt;br /&gt;&lt;br /&gt;Wordpress also has an iPad application whereas Blogger does not. This means I can edit wherever I am without my laptop. Blogger has an iPhone/iPod Touch version but not an iPad version. I prefer to update posts on an iPad than an iPhone.&lt;br /&gt;&lt;br /&gt;The Wordpress site is here:&lt;br /&gt;&lt;br /&gt;http://fieldtechapplication.wordpress.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-5643750241593998754?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/5643750241593998754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/moving-to-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/5643750241593998754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/5643750241593998754'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/moving-to-wordpress.html' title='Moving to WordPress'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-3127778239186165232</id><published>2012-01-27T08:37:00.000+13:00</published><updated>2012-01-27T08:37:04.827+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Code simplification'/><title type='text'>Cool commands</title><content type='html'>This post is a bit stupid really but I feel that the simple things are always the best things. That's the whole point of this application in that I want to make call systems simple.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'm finding a lot of use for a couple of very simple commands which are making things so much easier.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The first little fella is:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;if (!...) {}&lt;/blockquote&gt;This blog isn't really aimed at the experienced programmers it's aimed at the beginners so the experienced are probably laughing at this post right now but I don't care.&lt;br /&gt;&lt;br /&gt;This little piece of code is proving to be quite handy for my site at the moment. I've used it like this:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;blockquote class="tr_bq"&gt;if (!$DB_Connect) {&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo '&amp;lt;META HTTP-EQUIV="Refresh" Content="0; URL=includes/create_database.php"&amp;gt;';&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp;}&lt;/blockquote&gt;&lt;/blockquote&gt;&amp;nbsp;So $DB_Connect has been defined simply as a mysql_connect statement in order to look for a dedicated user for my call centre application. If it can't connect to that database using that user then it will redirect to a page that creates the database (the script is assuming that if the user doesn't exist then neither does the database) and after the database is created the required user is created and given full permissions over the database.&lt;br /&gt;&lt;br /&gt;Seeing as the database is now created obviously new tables need to be created and thus the user is redirected to a page that sets that up for them.&lt;br /&gt;&lt;br /&gt;The second command I'm using a lot is:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;switch() {}&lt;/blockquote&gt;I use it like this:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;switch ("$userlevel") {&lt;br /&gt;&amp;nbsp; &amp;nbsp;case 0:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; include("menus/customer.php");&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp;case 1:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; include("menus/engineer.php");&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;}&lt;/blockquote&gt;And so on.&lt;br /&gt;&lt;br /&gt;This allows me to perform various actions based on whatever the user level is set to. These details are stored in the &lt;i&gt;users&lt;/i&gt; table in the MySQL database. There are five levels being customer, engineer, helpdesk, management, and admin.&lt;br /&gt;&lt;br /&gt;By using case I can call in menus specific to those users with the least amount of code.&lt;br /&gt;&lt;br /&gt;One command I use probably the most is:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;include("...");&lt;/blockquote&gt;The reason I use it so much is because it allows me to have specific files for the task. Instead of having one massive file with everything I need I have split each individual task into individual files. Some might frown on this but I'm beginning and so I need to know where things are breaking. Sure the error messages tend to point you to the right place but sometimes you only get a blank page. As I make a change and then include that file into the main page it gives me a better idea where it is broken so that I can fix it. It means I only need to check a small file instead of a massive file.&lt;br /&gt;&lt;br /&gt;Speed wise it may have its drawbacks but I can come back to that later I guess.&lt;br /&gt;&lt;br /&gt;So those are the things I'm making good use of at the moment. I want my code to be clean and readable and next person friendly so I'll probably look at that in my next post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-3127778239186165232?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/3127778239186165232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/cool-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3127778239186165232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3127778239186165232'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/cool-commands.html' title='Cool commands'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-3871578165954686633</id><published>2012-01-26T11:16:00.000+13:00</published><updated>2012-01-26T11:16:17.939+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='PostgreSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Nope, back to MySQL</title><content type='html'>The reason for looking into PostgresSQL as I mentioned was that it is included in Mac OS X Lion Server. MySQL was dropped in Lion Server but I've decided that the tools for PostgresSQL suck and it isn't warranted in spending more time learning it. MySQL it is.&lt;br /&gt;&lt;br /&gt;Look, PostgresSQL is probably a brilliant database system but it doesn't really seem to have the support it deserves.&lt;br /&gt;&lt;br /&gt;For every 1 PostgresSQL tutorial you'll find 20 MySQL and 10 of those will be awesome as opposed to the &amp;nbsp;1 PostgresSQL tutorial which will be mediocre at best.&lt;br /&gt;&lt;br /&gt;Compared to MySQL Workbench that is made by Oracle PGAdmin sucks and seems to be a big bag of hurt.&lt;br /&gt;&lt;br /&gt;The experiment failed so it's time to go back to something I know works really well. Sure it means installing a separate app but I know it works and works well and that I can get the support. I just can't say the same for PostgreSQL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-3871578165954686633?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/3871578165954686633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/nope-back-to-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3871578165954686633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3871578165954686633'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/nope-back-to-mysql.html' title='Nope, back to MySQL'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-6295048143376166012</id><published>2012-01-25T09:19:00.002+13:00</published><updated>2012-01-25T09:19:52.970+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PostgreSQL'/><title type='text'>PostgreSQL</title><content type='html'>I'm rewriting the application for use with the PostgreSQL database instead of MySQL.&lt;br /&gt;&lt;br /&gt;The reason for this is that my ultimate goal is to have my own Mac OS X Lion Server (most likely a Mac Mini Server) setup so that clients can access remotely and all that.&lt;br /&gt;&lt;br /&gt;This raised the issue of MySQL being dropped in Lion Server in favour of PostgreSQL. Yes I could download MySQL for Mac OS X and it will work very well but why run two database systems and chew through resources when one will work just as well?&lt;br /&gt;&lt;br /&gt;From what I can see there isn't really a lot of difference between the two systems when using PHP and what differences there are seem to be very minor. I guess that's the great thing when everyone bases their command set against a stalwart standard like SQL (you listening Microsoft?). Therefore I don't see any reason why it's going to take any longer to learn PostgreSQL over MySQL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-6295048143376166012?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/6295048143376166012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/postgresql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/6295048143376166012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/6295048143376166012'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/postgresql.html' title='PostgreSQL'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-7023140368252842715</id><published>2012-01-23T16:44:00.000+13:00</published><updated>2012-01-23T16:44:26.102+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='files and folders'/><title type='text'>Folders working... more or less</title><content type='html'>Ok so I've found a script that allows me to do what I need. There is a caveat though. While recursive I can't seem to get the script to create the links properly. This means I can go root then a sub folder then a file but I can't do recursive folders to create the link.&lt;br /&gt;&lt;br /&gt;There must be some way to do this but I can't work out how so what I've got I'll use for the time being. I don't really want to spend too much time on this at the moment as it is working and I've got more important aspects to look into.&lt;br /&gt;&lt;br /&gt;Security is one thing now. I need to block stuff off according to user level.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-7023140368252842715?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/7023140368252842715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/folders-working-more-or-less.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7023140368252842715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7023140368252842715'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/folders-working-more-or-less.html' title='Folders working... more or less'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-1401813798044387706</id><published>2012-01-22T22:41:00.000+13:00</published><updated>2012-01-22T22:41:29.504+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='files and folders'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Working with folders</title><content type='html'>My current project is looking at doing folder scans so as to create a documentation section for the engineers so they can access the documents when out in the field.&lt;br /&gt;&lt;br /&gt;The goal is to do a recursive directory scan in order to have sub folders for easy layout.&lt;br /&gt;&lt;br /&gt;I can do a single scan but I need to workout the recursive stuff.&lt;br /&gt;&lt;br /&gt;After that I need to workout how to have permissions based on user level to each folder. I've seen a bit about .htaccess so I'm picking this needs to be setup at some stage as well unless there is a better method.&lt;br /&gt;&lt;br /&gt;Could do with some help here if anyone is reading this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-1401813798044387706?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/1401813798044387706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/working-with-folders.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/1401813798044387706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/1401813798044387706'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/working-with-folders.html' title='Working with folders'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-8318486043298918380</id><published>2012-01-17T12:48:00.000+13:00</published><updated>2012-01-17T12:48:27.321+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>What is W3C thinking?</title><content type='html'>I love CSS. I think it is a massive step from setting options like &amp;lt;table align="center"&amp;gt; etc but it is also the most retarded implementation of anything I've seen since Windows 3.0 (I never saw 1 or 2).&lt;br /&gt;&lt;br /&gt;Take for example an issue pretty much any web developer/designer has... equal height columns. Now I did outline a fix I found here: &lt;a href="http://fieldtechapplication.blogspot.com/2011/12/css-is-bit-of-pain.html" target="_blank"&gt;CSS is a bit of a pain&lt;/a&gt;. But this sort of thing should be easy with CSS because it should be a CSS thing not a Javascript thing.&lt;br /&gt;&lt;br /&gt;Here's the mental thing. You can use:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;width: 100%;&lt;/blockquote&gt;But you can't use:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp;height: 100%;&lt;/blockquote&gt;Now I know that this is largely a mapping to window size which creates a problem with height due to the fact that the more text and images the more you go off the screen hence &lt;i&gt;height: 100%;&lt;/i&gt; isn't really going to &amp;nbsp;work as intended but it should be something that is at least resizable to 100% according to the content. At very least make &lt;i&gt;height: auto;&lt;/i&gt;&amp;nbsp;work properly. This way if both boxes are set to &lt;i&gt;height: auto;&lt;/i&gt;&amp;nbsp;then when one grows in size both grow to the same size.&lt;br /&gt;&lt;br /&gt;This would save a lot of heartache and a lot of unnecessary code to fix the problem. Of course this would also need to be actioned by the browser makers as well but it seems to me that it would be a relatively trivial implementation for them. I'm more than likely wrong on that though.&lt;br /&gt;&lt;br /&gt;Then there is padding. This one irritates me more than the equal heights thing because it is a pain to work out what is going one when designing layouts.&lt;br /&gt;&lt;br /&gt;For example, I use % for my widths to cater for those users with differing screen sizes. The problem with this when it comes to padding is not everything resizes properly. The problem with padding is I feel a perception of what padding is.&lt;br /&gt;&lt;br /&gt;To me padding is inside a box. Take a padded room in a psych ward for instance. The size of the walls don't need to be adjusted to cater for the padding, the room just gets smaller. However this is not the case with padding in CSS. If you design a box and get its position perfect than go and add padding you mess up the layout you worked so hard to get right. The reason for this is because the way CSS is defined it essentially is putting the padding on the outside of the box not the inside. Why would you put padding on the outside? It makes no logical sense.&lt;br /&gt;&lt;br /&gt;If you think of a website in the sense of a house layout where in the world would you ever put padding on the outside of a room? Why do you put padding in a room? To protect the person inside it don't you? How do you protect people in the room with padding if the padding is on the outside? You can't.&lt;br /&gt;&lt;br /&gt;It's the same with padding in a box for a website. You want the padding to apply to the inside of the box because you want the text to be free from the sides for easy readability. It's a nice thought.&lt;br /&gt;&lt;br /&gt;Take this code here:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;style&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .wrapper {&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 60%;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; border: 1px solid black;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-left: auto;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-right: auto;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .box {&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; padding: 5px;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; border: 1px solid black;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 100%;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-left: auto;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-right: auto;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="wrapper"&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="box"&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Hello&amp;lt;/p&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/blockquote&gt;&lt;blockquote class="tr_bq"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/blockquote&gt;&lt;/blockquote&gt;This all seems clean and should create a box 60% of the page with a box inside that 100% of the box. Only look at the results:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-X0WnwEdz-jk/TxS23P3KXKI/AAAAAAAAACs/AXelStnoL6s/s1600/Screen+Shot+2012-01-17+at+12.43.59+.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="27" src="http://2.bp.blogspot.com/-X0WnwEdz-jk/TxS23P3KXKI/AAAAAAAAACs/AXelStnoL6s/s320/Screen+Shot+2012-01-17+at+12.43.59+.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Notice the right hand side? Essentially instead of a box 100% of the main box you get a box that is 100% + 5px. Why? How on God's green planet does this even begin to make sense?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Never get developers to plan UI rules. NEVER.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-8318486043298918380?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/8318486043298918380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/what-is-w3c-thinking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/8318486043298918380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/8318486043298918380'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/what-is-w3c-thinking.html' title='What is W3C thinking?'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-X0WnwEdz-jk/TxS23P3KXKI/AAAAAAAAACs/AXelStnoL6s/s72-c/Screen+Shot+2012-01-17+at+12.43.59+.png' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-1513398254818876197</id><published>2012-01-16T12:10:00.000+13:00</published><updated>2012-01-16T12:10:00.836+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='salting'/><category scheme='http://www.blogger.com/atom/ns#' term='encryption'/><title type='text'>Lessons learned</title><content type='html'>Hmmm. It seems that putting a sha1 encrypted password into a database field only 32 characters in length does not work.&lt;br /&gt;&lt;br /&gt;Lesson learned.&lt;br /&gt;&lt;br /&gt;I also learned another lesson... never use a variable salt such as current date because it will never work during retrieval.&lt;br /&gt;&lt;br /&gt;Another lesson learned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-1513398254818876197?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/1513398254818876197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/lessons-learned.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/1513398254818876197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/1513398254818876197'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/lessons-learned.html' title='Lessons learned'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-3353495504110343917</id><published>2012-01-16T11:26:00.000+13:00</published><updated>2012-01-16T11:26:16.939+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='rewrite'/><category scheme='http://www.blogger.com/atom/ns#' term='NetTuts'/><title type='text'>Starting from scratch</title><content type='html'>OK, so after the misfortune of being forced to do a rewrite as opposed to choosing to do a rewrite I made a start today.&lt;br /&gt;&lt;br /&gt;I decided to attack the development differently in that I've decided to use the &lt;a href="http://net.tutsplus.com/tutorials/php/user-membership-with-php/comment-page-6/#comment-363891" target="_blank"&gt;NetTuts&lt;/a&gt; tutorial as the initial page and go from there.&lt;br /&gt;&lt;br /&gt;It is working well despite a couple of hiccups. It's now a matter of adding more security to the this page. This requires a bit more research but in the meantime I can build on top of this tutorial with the skills I've picked up so far.&lt;br /&gt;&lt;br /&gt;I have to tidy up the CSS code though. It's a little over the place but the site actually looks pretty swanky with their chosen colour scheme. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-3353495504110343917?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/3353495504110343917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/starting-from-scratch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3353495504110343917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/3353495504110343917'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/starting-from-scratch.html' title='Starting from scratch'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-4347447181687674047</id><published>2012-01-12T07:28:00.000+13:00</published><updated>2012-01-12T07:28:05.881+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='rewrite'/><title type='text'>Oops</title><content type='html'>Well my desire for a complete rewrite got a bit of a forced start yesterday.&lt;br /&gt;&lt;br /&gt;I decided it was time to rebuild my machine because over the past few months I've built up a lot of junk along the way and I was beginning to think maybe something was causing the issues with my constants file being corrupted so I backed everything up then rebuilt. Only I hadn't actually backed up my Sites folder which includes the FieldTech application that I'm building.&lt;br /&gt;&lt;br /&gt;So it's all back to square one now which is a good thing. I can now streamline things far better and look more at how to modularise stuff.&lt;br /&gt;&lt;br /&gt;I'm rethinking my choice of editor as well. NetBeans is great but I'm beginning to think that it's causing some of my issues as well so I'm thinking of going back to Coda although Coda is not without its problems either however it does play nicer with the Mac system.&lt;br /&gt;&lt;br /&gt;Here goes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-4347447181687674047?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/4347447181687674047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/oops.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/4347447181687674047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/4347447181687674047'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/oops.html' title='Oops'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-6510013341469733670</id><published>2012-01-10T16:04:00.000+13:00</published><updated>2012-01-10T16:04:29.448+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='troubleshooting'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Getting the weirdest thing happening</title><content type='html'>I don't know what's going on but I have a file that is referenced on every page and it keeps getting trashed.&lt;br /&gt;&lt;br /&gt;It's kind of annoying and I'm thinking of changing things on my site to fix the problem.&lt;br /&gt;&lt;br /&gt;As the file is required due to setting the constants for database access and other bits and pieces having this file hosed is a massive deal. Why it's happening at all is beyond me. I thought it might be something to do with having the file open in NetBeans but this isn't always the case. It's beyond me entirely.&lt;br /&gt;&lt;br /&gt;I'm thinking of another rewrite also as my code is starting to break and get cumbersome as well. I'm looking to modularise a lot of the code as there is starting to get more and more code that is doubling up. Not sure of the best way to do this though so will have a rethink.&lt;br /&gt;&lt;br /&gt;If anyone reading this (if anyone is reading this) please give me some tips because I'd love to know how to write the code better and more efficiently. Is separating into individual files a good idea or should I have just a few really long files? Be keen to hear your comments on this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-6510013341469733670?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/6510013341469733670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/getting-weirdest-thing-happening.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/6510013341469733670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/6510013341469733670'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/getting-weirdest-thing-happening.html' title='Getting the weirdest thing happening'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>142A Pioneer Rd, Spotswood, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0696864 174.0350092</georss:point><georss:box>-39.071227400000005 174.0325417 -39.0681454 174.03747669999998</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-7896156753970201071</id><published>2012-01-07T14:03:00.000+13:00</published><updated>2012-01-09T16:38:43.587+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Code simplification'/><title type='text'>Refresh of plans</title><content type='html'>&lt;br /&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;One of the things I'm learning with all this development work is that it all changes with a single wake up call. This I love.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;For example in my previous post I talked about the login page I developed for my site... well modified for my site. Well I did have a case scenario whereby if you were logged in with an account that is admin level it would redirect you to a page with admin functionality.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Today I got a clue and thought to myself why do I need to redirect to a page based on user level when I can use the case scenario to change the menu according to the logged in user? It works meaning so far I only have one page that needs to be viewed and I can tailor the page to display details according to the logged in user. Sweet.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I also changed my thinking about how I will do the menus as well. There has been a tonne of code for this small section but I figured why do I need to type so much code when I want to add a menu entry? So I hit on the idea of making the menus nothing but text files with the HTML I need to make the menu. So I went from this:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;echo "&amp;lt;legend&amp;gt;Admin Tasks&amp;lt;/legend&amp;gt;";&lt;br /&gt;echo "&amp;lt;ul&amp;gt;";&lt;br /&gt;echo "\t&amp;lt;li&amp;gt;&amp;lt;a href=\"includes/create_user.php\"&amp;gt;Create New User&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;";&lt;br /&gt;echo "&amp;lt;/ul&amp;gt;";&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;To this:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;include_once 'menus/menu_admin.txt';&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Mental eh?&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Now all I need to do when I need to update the menu is edit the text file and not worry about code on the main page.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;The only downside to all of this is there is now a lot more files. But one file for a specific function is easier to manage than a hell of a lot of code.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-7896156753970201071?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/7896156753970201071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/refresh-of-plans.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7896156753970201071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7896156753970201071'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/refresh-of-plans.html' title='Refresh of plans'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-7518325255750680657</id><published>2012-01-05T15:50:00.000+13:00</published><updated>2012-01-09T16:39:20.552+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='NetTuts'/><title type='text'>Login script done</title><content type='html'>&lt;br /&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Wow, I have to say that was a bit of a mission but we got there.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I ended up using this script:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;&lt;a href="http://net.tutsplus.com/tutorials/php/user-membership-with-php/"&gt;http://net.tutsplus.com/tutorials/php/user-membership-with-php/&lt;/a&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;But I modified it to suit my needs.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I had a couple of false starts but as I worked out what was going on I slowly modified scripts and the like in order to get things working.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I can safely say that I've proved my installation script works perfectly. :-)&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I modified the script to use switch(){} with cases in order to redirect based on user level. I'm not sure if this is a good idea or best practise but it's working at the moment so I don't really care.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-7518325255750680657?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/7518325255750680657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/login-script-done.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7518325255750680657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7518325255750680657'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/login-script-done.html' title='Login script done'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-8027658399674035684</id><published>2012-01-05T07:50:00.000+13:00</published><updated>2012-01-09T16:33:47.079+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Coda'/><category scheme='http://www.blogger.com/atom/ns#' term='Aptana Studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Flux 3'/><category scheme='http://www.blogger.com/atom/ns#' term='NetBeans'/><title type='text'>Editors</title><content type='html'>&lt;br /&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Man trying to find a decent editor is kind of a pain. I've been using Coda on my Mac for most of my development but I'm finding now I've got more into PHP that Coda is a bit limited especially when I'm working on numerous files linked together.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Flux is a great graphical editor but its code editor is pathetic and gets in the way more than it does make things faster.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I've tried Aptana Studio but it feels wrong. I can't explain it but it seems to be more convoluted than it's good for. It seems to be a typical developer application but I'm not a typical developer.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Which brings me to the app I keep coming back to. &lt;a href="http://netbeans.org/"&gt;&lt;span style="color: #087af6; text-decoration: underline;"&gt;NetBeans&lt;/span&gt;&lt;/a&gt;. NetBeans has a lot of backing behind it namely Oracle who now owns Sun. It was designed for Java development but its PHP tools are brilliant.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Adding commands is easy because it gives you the syntax for these commands and it also goes through the linked files in the document and automatically gives you names of defined contents and variables etc. For example if you created a variable called $this_is_a_variable in the file variables.php then called that variables.php folder in index.php when you start typing&amp;nbsp;$this_is_a_variable it will bring up a list including this variable name to make it easier and save time typing. This is a brilliant touch.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;All in all I really like NetBeans and even though it's a Java app not a Mac app it seems to work really well.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-8027658399674035684?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/8027658399674035684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/editors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/8027658399674035684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/8027658399674035684'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/editors.html' title='Editors'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-7137256622724275306</id><published>2012-01-05T05:30:00.000+13:00</published><updated>2012-01-09T16:31:33.597+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='web development'/><category scheme='http://www.blogger.com/atom/ns#' term='troubleshooting'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Breaks easily</title><content type='html'>&lt;br /&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I've spent two days trying to workout why my installation script doesn't work and been fixing problems then creating new ones.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;At first it was the file wasn't being created when I used:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;touch($filename);&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;But I seem to have worked that one out to be permissions issues which I fixed with:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;chmod($filename, 0777);&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Script seems to create the required file.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Then there were issues calling the created file which I'm thinking was a calling of the file before the first script that creates the file had finished executing. I'm not sure how that happened but I fixed the problem by making the call to the file the end of the creation script. It's working perfectly now.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;Then I had no end of problems inserting data into the database that the script creates only to find that the reason for it was the standard "I forgot the ; at the end of my script" scenario.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I love this sort of thing though because it helps me to find the problem, workout how to fix the problem, then make it work. As I do so I am building on top of my existing knowledge.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 13.0px 0.0px;"&gt;I'm going to create a page soon that will be a list of everything in my application so you can read the code in my pages. If you are skilled in PHP please look through them and provide me with tips and techniques for getting better performance.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-7137256622724275306?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/7137256622724275306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/php-breaks-easily.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7137256622724275306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7137256622724275306'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2012/01/php-breaks-easily.html' title='PHP Breaks easily'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7053603391585347027.post-7201402205184296345</id><published>2011-12-24T08:05:00.000+13:00</published><updated>2012-01-09T17:06:55.623+13:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML5'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>CSS is a bit of a pain</title><content type='html'>&lt;br /&gt;&lt;div style="font: 16.0px Times; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 19.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;In trying to kick this project off I decided to get the layout sorted first mostly because it's the easy part... well it would be if CSS was nice and tags that are used were actually supported.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;The issue I had was getting equal heights setup and well to say the least it wasn't as easy to do as it sounds.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;It would be quite easy to do if browsers supported percentages in the height tag e.g:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;height: 100%;&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Unfortunately they don't and so you can't get a div to fill the screen or adjust to the content size.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;A Google search provided help though and sent me to this link:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #1636ee; font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;a href="http://www.cssnewbie.com/equalheights-jquery-plugin/"&gt;The EqualHeights jQuery Plugin&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #1636ee; font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Essentially using jQuery as the base it acts like a plugin in order to make creating equal height columns easier.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Unfortuntely the documentation seems to be a bit dumb so I'll explain how I got it working a lot better than what the site showed.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;The first step is to download&amp;nbsp;&lt;a href="http://jquery.com/"&gt;&lt;span style="color: #087af6; text-decoration: underline;"&gt;jQuery&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a href="http://www.cssnewbie.com/equalheights-jquery-plugin/"&gt;&lt;span style="color: #087af6; text-decoration: underline;"&gt;EqualHeights&lt;/span&gt;&lt;/a&gt;&amp;nbsp;plugin and extract them to the javascript directory for your site. I like to have my stuff all nicely in separate folders so I know where everything is but it can be a pain when having to link back to these files.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;I also change the name of the jQuery file which generally looks like this when downloaded:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;jquery-1.7.1.min.js&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;I change this to simply jquery.js for scripting sake because you can upgrade without having to redo all your code.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Now comes the fun bit, calling the code. This is actually very simply and I'm going to show you the HTML5 way because it's simpler.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;In the &amp;lt;head&amp;gt; tags enter the following lines:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;script src="javascript/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script src="javascript/jquery.equalheights.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;These two lines call the script to be used by the page. Now you have to call the function from the EqualHeights plugin like so:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$(function(){ $('.box, .smallbox').equalHeights(100);});&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;You'll notice that in my code I have&amp;nbsp;&lt;b&gt;.box, .smallbox&lt;/b&gt;. This is where this plugin is really cool and it took me a while to work this out after having got nowhere only to get it to work but only with one class which caused all my boxes to be the same width which I did not want. It was only me playing around with the above line that I worked out you can select multiple classes which allows for multiple width columns. Simply by adding a comma between the classes in this function call will select all the classes I want to make equal height.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;So now for getting our page to do something.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;In the main HTML I did this:&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;div class="containWidth"&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;div class="container"&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="box"&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;h1&amp;gt;Field Tech: Installation&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class="smallbox"&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;h2&amp;gt;Installation Progress&amp;lt;/h2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/blockquote&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;This creates the DIVs that will be modified by the script to be equal lengths.&lt;/div&gt;&lt;div style="font: 13.0px 'Lucida Grande'; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;It's actually very simple once you get the hang of it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7053603391585347027-7201402205184296345?l=fieldtechapplication.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fieldtechapplication.blogspot.com/feeds/7201402205184296345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fieldtechapplication.blogspot.com/2011/12/css-is-bit-of-pain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7201402205184296345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7053603391585347027/posts/default/7201402205184296345'/><link rel='alternate' type='text/html' href='http://fieldtechapplication.blogspot.com/2011/12/css-is-bit-of-pain.html' title='CSS is a bit of a pain'/><author><name>Darryn Lowe</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-Xhj05QjIPZw/AAAAAAAAAAI/AAAAAAAAACE/XxHrjxIZwds/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>3 Tavistock St, Westown, New Plymouth 4310, New Zealand</georss:featurename><georss:point>-39.0740307 174.0628683</georss:point><georss:box>-39.075571700000005 174.0604008 -39.0724897 174.06533579999999</georss:box></entry></feed>
