We'd like to help you with your project.

We're based in St. Louis, MO, and we specialize in Drupal/web development (website, module and theme development), mobile app development, and event photography.

Find us on Facebook | Twitter | Google+

Midwestern Mac, LLC

Below, you can read through the latest blog posts from Midwestern Mac, LLC. We blog about Macs, Drupal, web development, app development for the Mac and the iPhone, and whatever else suits our fancy!

Running a Windows XP VM in Parallels (Mac) from a USB Flash Drive

Submitted by Jeff Geerling on January 17, 2012 - 5:40pm

I thought I'd post my experience here, for the benefit of others, because I couldn't find a whole lot of information about this specific use of an external USB flash drive.

I have a MacBook Air with a dainty 128GB SSD drive, so I try to keep large files that I rarely use on external drives. I have plenty of external USB and FireWire storage (over 6 TB), and running VMs in either Parallels or VMWare Fusion works great (very highly performant) off any of these external drives.

  • Read more about Running a Windows XP VM in Parallels (Mac) from a USB Flash Drive
  • Jeff Geerling's blog
  • Add new comment

Moving Comments into a Block - Drupal 7

Submitted by Jeff Geerling on January 4, 2012 - 2:04pm

Most of the time, Drupal's convention of printing comments and the comment form inside the node template (node.tpl.php) is desirable, and doesn't cause any headaches.

However, I've had a few cases where I wanted to either put comments and the comment form in another place on the page, and in the most recent case, I asked around to see what people recommended for moving comments out of the normal rendering method. I found a few mentions of using Panels, and also noticed the Commentsblock module that does something like this using Views.

However, I just wanted to grab the normal comment information, and stick it directly into a block, and put that block somewhere else. I didn't want Views' overhead, or to have to re-theme and tweak things in Views, since I already have a firm grasp of comment rendering and form theming with the core comment display.

So, I set out to do something similar to this comment on drupal.org (which was also suggested by Jimajamma on Drupal Answers).

  • Read more about Moving Comments into a Block - Drupal 7
  • Jeff Geerling's blog
  • 3 comments
  • Add new comment

Sending emails to multiple receipients with Amazon SES

Submitted by Jeff Geerling on January 2, 2012 - 3:50pm

After reading through a ton of documentation posts and forum topics for Amazon SES about this issue, I finally found this post about the string list format that helped me be able to send an email with Amazon SES's sendmail API to multiple recipients.

Every way I tried getting this working, I was receiving errors like InvalidParameter for the sender, Unexpected list element termination for the error code, etc.

  • Read more about Sending emails to multiple receipients with Amazon SES
  • Jeff Geerling's blog
  • Add new comment

Using apachebench (ab) with Drupal 7 to load test site with authenticated users

Submitted by Jeff Geerling on December 24, 2011 - 12:36am

apachebench is an excellent performance and load-testing tool for any website, and Drupal-based sites are no exception. A lot of Drupal sites, though, need to be measured not only under heavy anonymous traffic load (users who aren't logged in), but also under heavy authenticated-user load.

Drupal.org has some good tips for ab testing, but the details for using ab's '-C' option (notice the capital C... C is for Cookie) are lacking. Basically, if you pass the -C option with a valid session ID/cookie, Drupal will send ab the page as if ab were authenticated.

Instead of constantly going into the database and looking up session IDs and such nonsense, I have a simple script, which is quite revised from the 2008-era script originally from 2bits that worked with Drupal 5, which will give you the proper ab commands for stress-testing your Drupal site under authenticated user load. Simply copy the attached script (source pasted below) to your site's docroot, and run the command from the command line as follows:

  • Read more about Using apachebench (ab) with Drupal 7 to load test site with authenticated users
  • Jeff Geerling's blog
  • 3 comments
  • Add new comment

Posting to Facebook: Use a service or DIY via the Open Graph API?

Submitted by Jeff Geerling on December 15, 2011 - 11:33am

For a very long time, for my simple Catholic News Live fan page on Facebook, I was using RSS Graffiti to post new stories to Facebook (usually in batches of 3-5). RSS Graffiti is super-easy to set up, and it simply ties into your existing site's RSS feed to post new stories from your site to Facebook.

However, after I redesigned the Catholic News Live website in Drupal 7, I decided I'd take a few extra minutes to rework the site's social integration for Twitter and Facebook (I was using HootSuite for Twitter postings—a batch of 5 stories per hour maximum—and RSS Graffiti for Facebook.

People who followed both accounts weren't engaging, liking, or even sharing/retweeting stories too much. The twitter account was doing okay, because Twitter doesn't seem to hide tweets from other users as much as Facebook likes hiding certain posts (especially those from automated apps like RSS Graffiti).

spacer
Other graphs, like the shares, likes, etc. are similarly aligned.

  • Read more about Posting to Facebook: Use a service or DIY via the Open Graph API?
  • Jeff Geerling's blog
  • Add new comment

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • next ›
  • last »
spacer