Helpful ENGINE

Best month to buy a car? Google Trends says November-ish

We hope this info helps you plan your next car-buying trip. We also hope you’ll keep us in mind for when you need website design and development!

Supply and demand: the lower the demand, the lower the price.

So when is the demand for cars the lowest?

According to Google Trends, people search car-related keyterms most in the summer and least in the winter, with a small spike right before Christmas.

In case you’ve never used Google Trends: it lets you look at search frequency over time for terms of your choosing. Let’s try the most obvious ones. Car and cars are huge terms, so we get pretty clear data:

Car, cars search popularity according to Google Trends -- by http://engineindustries.com

The second tier shows more volatility since these terms aren’t quite as popular, but the trend is still apparent.

Used cars search popularity according to Google Trends -- by http://engineindustries.com

This last batch is all over the place, but still fits the trend. Somebody went crazy looking to buy car late last year, though!

Buy car search popularity according to Google Trends -- by http://engineindustries.com

We were planning on buying a used car by September of this year (which seemed to be the time when most of these lined up, more or less), but after seeing this we might wait until late October. What do you think?

What are some other creative ways to use search engines to your advantage?

Having trouble targeting page titles with CSS when using Views?

Sometimes, in a Drupal-based site, I want to do something to a certain title with CSS, which is easy if the title is on a node. But what if the title is on a View? Well, I’ve used this simple snippet with success to give the title of the Views page a unique id, allowing you to target it with CSS.

In the page.tpl.php file of your theme, find the area of code where your title is set. Insert the following code above.

<?php 
 $illegal = array("'", ",", " ", "-", "/", "&", ":", ";", "|", "–", "—");
 $uniquetitleid = 'title-'.strtolower(str_replace($illegal, "", $title));
?>

Then, replace the following code (or similar):

<?php 
if ($title): print '<h1 class="'. ($tabs ? ' with-tabs' : '') .'">'. $title .'</h1>'; endif; 
?>

with this:

<?php 
if ($title): print '<h1 id="'.$uniquetitleid.'" class="'. ($tabs ? ' with-tabs' : '') .'">'. $title .'</h1>'; endif; 
?>

This code simply takes the title of the page, strips some characters, converts it to lowercase, and turns it into the unique id for the <h1> element that contains the title. Obviously, this code won’t be very helpful if your title is based on arguments – unless you are wanting to make certain argument-based titles look different for some reason. Let me know what you think.

Taming the Firefox Extensions Memory Monster

As anybody who uses browsers knows, Firefox chugs slower and slower with each precious second of use, as if it’s rolling uphill. Its memory hole puts the Ministry of Truth to shame, my friends. Many of us use two browsers because of this… Firefox’s extendability is too good to pass up altogether, but a leaner browser like Opera or Chrome is essential for regular use.

But all is not lost. Here’s a helpful list of problematic extensions to tweak, replace, or avoid. It’s a start!

Media Temple vs Mosso vs Dreamhost Speed Test

Update 3/24/2009: As Chad mentions in the comments below, the comparison here is not really fair. We’ve been building some really high-traffic sites lately, and any virtual server will hit their limits under enough load. In other words, what’s the use of having The Fastest Server in Town if it crashes when it gets super-duper-boy-band-popular?

Update 3/24/2009: Because Mosso is missing some features that we desperately need for an upcoming job, we have been forced to leave them. I wasn’t happy about this, because their service is excellent, and the speed was great. We moved to a Dedicated-Virtual 3.5 - Base plan at Media Temple. For half the price, we get less disk space, and I was thinking it would be a bit slower. I was wrong. I’ve updated the chart below to reflect Media Temple’s speed test results for the same site.

This week was a bad one to be hosting with Dreamhost. I didn’t do any real tests to count downtime, but sites were slow and even inaccessible many times throughout the week. Sometimes, these fits would only last 10 minutes, but when you host ~30 sites on the same account, you will be notified if a site is down or painfully slow.

Let me make this clear: I know that Dreamhost is a value host, and it does give a great value for the money. They basically offer no limits on anything for $10/mo. That’s crazy cheap. Therefore, I wouldn’t expect them to offer the same speed or the reliability of a $100/mo host such as Mosso. This comparison is simply to share our site load time change when I switched one very large and demanding site from Dreamhost to Mosso.

(The site I tested is a Drupal site with caching turned off. (I tested it both ways on Dreamhost, but I can’t test Mosso with caching until it builds up a bit. I’ll post those results here as well.) The site is very heavy on images, and moderately heavy on CSS and Javascript. Nothing was changed on the site between the switch. The total page load size was 408.4 KB. Load time was checked using Pingdom Tools. I tested each host 5 times and these are the averages.)

Dreamhost Load Time
16.4 seconds
Mosso Load Time
7.97 seconds
Media Temple Load Time
5.9 seconds

As you can see, Mosso Media Temple loads the site in roughly less than half the time as Dreamhost. For 10X 5X the cost, I’ll take it. As a web developer, I must be able to depend on our host. Obviously, this test only shows speed improvement, but I am speculating that downtime will also be greatly reduced (Update: Now, the downtime is only a result of the configuration of LAMP, which is frustrating as well).

Have you had a similar or not-so-similar experience? Leave a comment below.

AddToAny

Share/Save