blog

Mar 30 2011

WebDB / WebSQL Databases

by Joseph Smith

For someone needing an iOS or Android specific local database CRUD solution, this may be helpful to you, but it should be noted that this article covers a deprecated standard. Background I had to provide a one page survey for a brick and...

Feb 27 2011

Setting up Rails + Passenger on MediaTemple DV(3.5) Servers

by Joseph Smith

All commands in this walkthrough are missing the sudo prefix. Ordinarily this would likely botch your install (or commands would just bomb with permission errors). On MT DV(3.5) servers, running a command as sudo will throw the "audit_log_user_command(): Connection...

Feb 08 2011

Running rake fails with (Gem::GemNotFoundException)

by Joseph Smith

This drove me crazy for a solid few days... While following modifying a CentOS guide to set up a Rails production environment on a MediaTemple server, I kept getting damned by the following error every time I attempted to run rake ...

Jan 22 2011

Bootsrapping Drupal

by Joseph Smith

If you are using Drupal, someday you may find yourself wanting to grab or edit content in a Drupal system without actually having to go through Drupal to do it. It is easy to boostrap Drupal by doing the following. ...

Jan 04 2011

Adapt your website to allow PunchOut sessions

by Anya Petersen

birds eye view You may be interested in / pressured into becoming a punch out supplier. This means adapting your web store such that it can be a destination for a procurement system such as Ariba or Oracle iProcurement. The advantage for the buyer is that they...

Nov 04 2010

Edit your hosts file in Windows

by Joseph Smith

The location of your hosts file by version. Version(s) File Path -----------------------------------------------------------------------   Windows...

Oct 31 2010

How to update a Subversion working copy to point to a new Repo URL

by Joseph Smith

I had the occasion to shuffle around some repos that i'm currently working with, some GIT, some SVN. After moving my SVN repos, I needed to update my working copies to point to the new URL. Digging through the .svn directory in one of my working copies, it was...

Sep 05 2010

drupal_to_js() vs vanilla PHP json_encode() for conversion to JSON

by Joseph Smith

When needing to output JSON for a module I've been working on, I turned to drupal_json() and found this to be a very frustrating function to work with, as it simply doesn't seem to work. It's...

Aug 29 2010

Use JavaScript encodeURIComponent function instead of escape for your Ajax application

by Anya Petersen

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...

Jul 13 2010

Introducing 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. ...