practical web design & development

Archive for the ‘Programming’ Category

Send Mail Locally on Ubuntu

I develop php backends for websites on the regular. And far to often I end up sending emails, and need to test their layouts by sending them to my primary email address. But wouldn’t it be MUCH more convenient to send them to an email address @localhost and keep my primary account clean? Well you’re [...]

In my previous post I covered a basic example of using CSS Media Queries to create a slick left menu to auto hide when the screen is smaller than 500px. This post I want to take that a step further. Lets say we want to show the navigation on landscape orientation with the ipad, but [...]

In my last post I discussed creating a method to inject values into a javascript object in a specific order. However, it was brought to my attention that natively, the javascript standard (ECMA) never specifically says this is a supported feature, and that some browsers treat this differently. So knowing that and the fact that [...]

Its probably because I’m over thinking things, but is “else return ..something..” really necessary? Think about it. Shouldn’t both of these snippets give the same result? if(a == b){ return true; } else return false; And… if(a == b){ return true; } return false; In theory as well that would be a little less file [...]

Gedit Clientside Plugin

For all of the gedit nuts out there (like myself) who develop css and javascript, I have created a gedit plugin just for you. The Gedit Clientside Plugin. This plugin can minify and beautify javascript and css. Also for javascript you jsLint is included. Finally for good measure, I threw in a gzip method as [...]