Red Crackle Blog

How to install a Varnish module on Ubuntu 12.04

By neerav.mehta Thu, 09/04/2014 - 19:47 Comments

Varnish has a bunch of modules providing extra functionality that don't come with standard installation. You can find them on VMODs Directory. To install any of these modules, Varnish and the module have to be compiled from source. Recently we had to install the Cookie module to parse the cookie string and use it for caching. Here are the steps:

How to install Varnish 3 from source on Ubuntu 12.04

By neerav.mehta Wed, 09/03/2014 - 19:17 Comments

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

By neerav.mehta Tue, 09/02/2014 - 06:52 2 Comments

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

By jojy.alphonso Thu, 08/28/2014 - 16:56 Comments

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

By jojy.alphonso Tue, 08/26/2014 - 11:43 Comments

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?

By neerav.mehta Fri, 08/22/2014 - 15:39 Comments

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

By neerav.mehta Wed, 08/13/2014 - 09:36 2 Comments

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.

Fixing "Integrity constraint violation: 1062 Duplicate entry 'rules_event_whitelist' for key 'Primary' error"

By neerav.mehta Wed, 08/13/2014 - 09:25 Comments

The error "Integrity constraint violation: 1062 Duplicate entry 'rules_event_whitelist' for key 'Primary'." was received by us while running a large integration test suite on a Drupal site. The error appeared randomly and it was difficult to reproduce the error when required.The article demonstrates how this error was resolved by fixing the settings.php file.

Ready to get Started?