Red Crackle Blog

How to install Varnish 3 from source on Ubuntu 12.04

Recently we had to install Varnish from source so that we could compile it with some additional modules. Here are the steps to install Varnish 3 from source on Ubuntu 12.04:

1) Clone Varnish source from git.

git clone https://github.com/varnish/Varnish-Cache.git

2) Change into the cloned directory.

cd Varnish-Cache

3) Checkout branch 3.0 from git and pull the latest content of this branch.

How to put a breakpoint in a dynamically loaded javascript

Using Firebug or Chrome DevTools, It's very easy to put a breakpoint in a JS that is loaded during page load. But if you are loading a JS dynamically after the page load, it's not that simple. Today I learned a nice trick to make it easier to put a breakpoint in such a javascript using Chrome DevTools. Here are the steps:

1) At the bottom of the JS file that is being loaded dynamically, add the following line:

3 Tips To Help Choose The Right CMS Platform

It is difficult to choose the right CMS solution for your business. There are a lot of platforms available out there. And you will have to do a lot of research as part of your homework. This article raises some thought provoking questions on the points to ponder over before choosing the right CMS solution for your business.

Do you really need a CMS? What are the objectives you wish to seek through the CMS? These are some of the pointers discussed in this article. Use this article as a reference to find the right CMS.

5 Fun Facts About Drupal

Drupal has a rich history that dates back to more than a decade. Launched in 2001 by Belgian Dries Buytaert, Drupal was born as a message board. The application then went through a series of life-changing sequences to reach where it has today.A fact that helped Drupal immensely is the decision to make it an open source project. This brought in the involvement of a wide community of developers. Check out the fun facts provided in the article to get to know Drupal better! You will definitely enjoy the facts provided in this fun article!

How To Set Different Page Titles For The Same URL?

In a recent project, we had to implement functionality where the page title changes according to values submitted in the form. Since the page titles in our website was handled using meta tags, the challenge was that even when the form was submitted, the title of the page remained the same with only the query parameters changing.

In this post, I will show you how to add different titles for a page with the same URL.

How to optimize a Drupal View so that it uses INNER JOIN instead of LEFT JOIN

In a recent project, we needed to show a list of 5 most recently updated users. To do this, we added a Unix timestamp field “User Updated” to the user object and created a simple view with required fields and ordered by User Updated field in descending order. Here is how the view looks like.

The problem was that the site had over 80,000 users and it took over 1.10 seconds to execute this view’s SQL query every time.

How to show comma-separated taxonomy terms in Drupal

By default, Drupal displays taxonomy terms with a space in between. Here is an example of an Article node created with two taxonomy tags tag1 and tag2 in Drupal's standard installation profile.

In this blog post, I will show you how to render taxonomy terms in a comma-separated format. Moreover, if the label is enabled, then it will also appear in the same line before the taxonomy tags. Here is how the tags will look once we are done.

 
Ready to get started?REQUEST A QUOTE