We’re hiring again!

Posted by & filed under Hiring.

We're hiring! Common Media is looking for a new front-end developer. We're a web development and consulting shop with a healthy mix of new and ongoing projects, and our HQ is located in downtown Greenfield MA, in newly renovated post-industrial space. Standards-based HTML/CSS and jQuery development experience is necessary. Drupal theming experience would be a definite plus, as would experience with implementing responsive templates. We're looking for someone with genuine enthusiasm for the presentation Read more [...]

Migrating content from an older version of a site

Posted by & filed under Drupal.

I recently was given the task of taking over a project to enhance a Drupal 7 site with several new features and bug fixes. Unfortunately, the work had gotten stalled due to the departure of the person who was working on it, and as a result the live site had gotten several months ahead of the development version. A number of views had changed, panels had been introduced, blocks created, some content types had been modified, in addition to some new modules, both contributed and custom. My initial Read more [...]

What to do when CiviCRM contacts get out of sync with Drupal users

Posted by & filed under CiviCRM.

I do not know what causes values for user ids in the civicrm_uf_match table to get out of sync with Drupal user ids, but I've seen it happen on a couple CiviCRM sites. The solution we have found has been to edit the value of uf_id in the civicrm_uf_match table to match the corresponding Drupal user's user id (matched based on the email address). Finding and fixing those manually can be a bit of a pain, so I worked out the the following query which joins civicrm contacts to Drupal users based on Read more [...]

Cloud hosts, Apache, and server names

Posted by & filed under System Administration.

It's easy to get a LAMP-type host running on a cloud service like Rackspace or Amazon S3, but it's important to get some of the networking infrastructure configured properly to make things run more smoothly up front. Rackspace will give your new server a "hostname" which matches the name you assigned when you created the machine, like "newsitestaging". Unfortunately, this leads to errors with Apache. The errors generally look like this: $ sudo service apache2 restart * Restarting web server Read more [...]

Using custom entity view modes

Posted by & filed under Drupal.

On a recent website redesign project for Harvard University's American Repertory Theater, our specification required a number of views of content where the individual nodes appear in a consistent tiled design. Usually the grid was two tiles wide, but sometimes one, and sometimes three. The individual rows in these views could be pulled from any of a number of content types. And each content type could have different fields. But they must all appear in these views with a consistent styling, dimensions, Read more [...]

How to serve multi-site Rails apps (and use Pow to make it EASY)

Posted by & filed under Mac OS, Ruby on Rails, System Administration.

It's possible to have a single Rails app serve multiple domains. That is, http://domainA.com and http://domainB.com are both served by the same Rails app. One of the major hurdles in doing this is being able to view all of the sites that the Rails app is serving within the Development environment. One way to accomplish this is to configure your Rails app to accept a passed variable when running the Rails server. The site can be specified when running the rails server, like this: site=domainB Read more [...]

Setting up your git repo

Posted by & filed under Git.

Using github is fun but sometimes you need your own private repo area. This really is simple and your computer can be the repo just as easily as a server out in the internet. Make sure you have git installed (obvious but good to mention it). Also you need a way to connect to the machine, I will cover machines running SSH and just a local machine to local machine repo as well. Now SSH into the machine you want to load the repo on and make a directory, for example: mkdir testsite.git Now cd Read more [...]

iPhone and iPad emulation on your Mac to test websites

Posted by & filed under Mac OS.

Maybe I am missing the obvious but this was not that easy. I had this set up on an older mac but now with Lion and the latest XCode (which you get from the App store) I could not easily load the iPhone emulator to test my local websites. What I did eventually after clicking some magic button in XCode and figuring out it already contained the simulator was to open up Finder and go into Applications then right click on XCode and choose "Show Package Content". Now you can browse this "package" as Read more [...]

Ruby wrapper for Citrix GoToWebinar REST API

Posted by & filed under Ruby on Rails.

Update, 12 June 2012: There is an official gem now underway to offer similar functionality, so that is probably now the preferred way to add GoToWebinar functionality to your site. We've been working on integrating certain functionality of Citrix's GoToWebinar product with Tabb Forum. Our previous work for several clients using the excellent Hominid gem for the MailChimp API led us to look for a similar Ruby-based wrapper for Citrix's REST API for GoToWebinar, but we didn't find anything. Undaunted, Read more [...]