HTML and CSS Validation has been the center of an intense debate for years; some web developers believe that validation is pointless since many of the specs change on various DOCTYPE’s and DTD’s, while others believe that your website is not truly valid and accessible unless you are in 100% compliance with whatever DOCTYPE you use. I will not begin to pretend that I can fairly and accurately mitigate both sides of this argument, what I want to do is take a look at it from a different perspective.
Archive for the ‘Code Bin’ Category
Setting an ‘Active’ Class for Dynamic Navigations in WordPress
I recently got a project that required a really dynamic navigation. The client wanted the ability to add and remove pages at will with no interaction from a developer. This is generally a pretty simple request, but the client has a very specific set of style guidelines. Here is a php function that I wrote to do the job.
Self Clearing Input Fields With Javascript and Prototype
I wrote this little script to just create some self clearing input fields. Its pretty simple but it does the job.
Last Tweet – A PHP Twitter Class
Sometimes doing something simple should be just that, simple. Thanks to Twitters excellent restful API, I am easily able to grab my last tweet plus some bonus data about my account and display it on my website. So Here it is, simple and clean.
LSCOLORS in OSX Snow Leopard, For Dummies
So after cruising the web for a few hours trying to find ‘dummy’ style documentation on changing colors in terminal using .bashrc, I finally stumbled across a site that got me half way there. After playing around a bit I found a few little tricks and things that no one really likes to share. So here it is.
Date Squashing with PHP and CodeIgniter
I was working on a little attendance tracking system today and I used PHP and some native CodeIgniter functions to get it to play nice with my APP. I’m using one of my favorite new scripts CalendarView to pass the dates into this function from a simple form post.
How to detect and avoid browsers with Javascript
I am going to go ahead a regurgitate what everyone has been saying for years now, that IE6 is just well past its prime and its time to retire it. This has been beaten death time and time again, so I am not going to list all the reasons why we should drop it, I am just going to tell you how to make sure that users with IE6 are properly handled on your site.
PHP Mailer Stuffs FTW
It took me almost 5 hours to find a solution to this one simple problem. I don’t know why this is not more clearly documented, but I figure I will post it up here for everyone to see. Im sure spam mailer people will love it.
YouTube API – XML Feed Ripper
I created this tool because I could not find a tool that met my needs. I wanted a simple feed extraction tool that would just post up some dynamic content from YouTube. It turned into a class which is actually pretty easy to use.






