01.20.2012   |   1comment

jQuery LogoContinuing the jQuery pain fun of some tips I’ve learned over the years… Read Part I Here

Don’t Abuse $(this)
Without knowing about the various DOM properties and functions, it can be easy to abuse the jQuery object needlessly. For instance:

$('#someAnchor').click(function() {
    alert( $(this).attr('id') );
});

continue reading Helpful jQuery Tricks, Notes, and Best Practices Part II”


12.16.2011   |   1comment

If there is one bad thing about jQuery, it’s that the entry level is so amazingly low, that it tends to attract those who haven’t an ounce of JavaScript knowledge. Now, on one hand, this is fantastic. However, on the flip side, it also results in a smattering of, quite frankly, disgustingly bad code (no one is immune to this). But that’s okay; frighteningly poor code that would even make your grandmother gasp is a rite of passage. The key is to climb over the hill, and that’s what we’ll discuss today. continue reading Helpful jQuery Tricks, Notes, and Best Practices Part I”


Brian,on the topic of  Linux, PHP, Tools, Web Development
11.11.2011   |   2comment

A few times in my career, I’ve had the need to test emailing in one form or another. I’ve also had the unfortunate experience of accidentally sending a test email to a real person. As you can imagine, this may cause confusion, embarrassment, lectures, and possibly the death of a small pixie or two. Fortunately, there IS a preventative measure you can take.

When it comes to mail() (as well as many other things), PHP prefers to delegate the heavy lifting to another piece of software: sendmail (or a sendmail compatible command-line mail transport agent). By default, PHP will call your sendmail binary, and pass it the entire message, after composing it from the headers and body supplied by the developer.

One of the side-benefits to this system is the ability to override PHP’s default, and seamlessly hook in your own sendmail-esque binary or script. My favorite parts of this hack, is that it doesn’t require a recompile of PHP or anything all too complicated, just a small change to your php.ini file. continue reading Sendmail in Development Environment”