Passing variables from JavaScript to a server side language like PHP is a common task at the heart of many Ajax applications. Since the variable will be passed as either post data or a query string, it's important to encode the variable such that it can be decoded correctly...
blog
Small tips to Optimize your day PT II (drush, drush make and installation profiles)
by Joseph Smith
One of the inherent weaknesses of Drupal is the setup time involved to get a project up and running. D7 has remedied this somewhat by adding many commonly used contributed modules to core, but the issue of setup/maintenance time does not stop there. ...
CUT DOWN ON GLOBAL VARS BY USING JQUERY TO QUERY THE DOM
by Joseph Smith
After writing some proof of concept code and showing it to a co-worker a while back. He pointed out a weakness, which, is something I have gone back and seen that I have repeated in multiple places. This weakness / faux pas of mine is not using Javascript (specifically...
Small tips to Optimize your day PT I (phpMyAdmin and FTP are slow)
by Joseph Smith
If your reading this, you've probably witnessed how long it can take to transfer files via FTP (current standard was adopted in October 1985). Your FTP client will tick away the seconds of your life while you patiently wait 20-30 minutes for that 50 MB folder worth of...
Using MAMP Mysql from the command-line
by Joseph Smith
While attempting a DB export from a Drupal site via drush, I hit an obvious problem. OS X's mysql and MAMP's mysql are not equal. to access MAMP's mysql from the command line (and drush), you can create a .my.cnf file in your home directory and save the...
Some Email Template Tips
by Joseph Smith
Recently, when creating an Email Template for Designer Pages, I killed a few perfectly good moments banging my head against the wall trying to figure out what i was doing wrong. The Scenario: Using litmusapp...
remedy git-upload-pack or git-receive-pack command not found errors when you have limited access to your server
by Joseph Smith
Is your shell unable to locate your git-upload-pack or git-receive-pack when working with a remote repo on shared hosting? When a client's host (Hostmonster) recently upgraded from openSSH4 to openSSH5, it locked us out of pushing/pulling via GIT with "git-upload-pack:...
Create a New York Subway / MTA-style Train Stop list using CSS3 and Javascript
by Joseph Smith
As a New Yorker, I pretty much have a love/hate/love relationship with the MTA. However, from a design perspective, I do really like the work that has been put into the new cars. There are multiple interactive maps, video screens, and current stop indicators that make...
Remove the Firefox outline on anchor, button and :focus elements
by Joseph Smith
Mozilla gets most things really, really right. However, one of the minor annoyances is the outline that Firefox places on every <a>, ...
CSS Resets
by Joseph Smith
A good CSS reset file is one of the most helpful things you can have in your front-end arsenal. Debugging cross-browser CSS issues will be a much, MUCH simpler process It will save you from having to explicitly redeclare things like ...
