Speeding Up Apache And Drupal With Varnish

Sunday, June 8, 2014 - 20:37

Varnish is a web application accelerator that provides an easy speed increase to most web applications and Drupal is no exception. It works by creating a reverse proxy service that sits in front of your web server and caches traffic that comes through it. When the page is requested, Varnish forwards the request to the web server to complete the request, the response that comes back from the web server is then cached by Varnish. This means that the next request to the same page is served by Varnish and not the web server, which results in a large speed increase.

Category: 

Print A Specific Block Of Lines From A File In Linux

Tuesday, May 20, 2014 - 21:08

If you have a large file of data that you are trying to import, or a log file you are trying to dissect then you'll rarely want to print it directly out to the screen. Using commands like more or programs like vim can make things a little easier but you still have to run through potentially thousands of lines to find the correct block.

Category: 

Connecting To A Vagrant Box Without The 'vagrant ssh' Command

Sunday, May 18, 2014 - 22:22

When Vagrant sets up a virtual machine it will set up a port on your local machine that you can use to connect to the box via SSH. By default this is usually port 2222, which Vagrant maps to port 22 on the virtual machine. All this is essentially transparent so that when you type vagrant ssh you connect to the box without any problems. Vagrant handles all of the port matching and key finding behind the scenes.

Category: 

DrupalCamp London 2014: A Review

Wednesday, March 12, 2014 - 22:48

Varnish is a web application accellerator that provides an easy speed increase to most web applications and Drupal is no exception. It works by creating a reverse proxy service that sits in front of your web server and caches all traffic that comes through it. When the page is first hit then Varnish forwards the request to the web server to complete the request. The response that comes back from the web server is cached by Varnish. This means that the next request to the same page is served by Varnish and not the web server, which results in a large speed increase.

Category: 

PHP Password Functions In 5.5

Tuesday, March 4, 2014 - 23:14

New in PHP 5.5 is a group of functions that deal with password hashing and verification. This is such a common thing for PHP applications to do that it was decided to include it into the core of PHP. They effectively solve the problem of hashing and comparing passwords that just about every PHP developer has implemented at one point or another.

There are only a few functions available but they provide all of the functionality needed to create a hash value from a password, check if the hash is valid and to check if the password hash needs to be recreated.

Category: