Distributed application in PHP with Apache Zookeeper

Posted by on Mar 31, 2013 in PHP Programming | One Comment
Distributed application in PHP with Apache Zookeeper

Apache ZooKeeper is the coolest technology I recently came across. I found it when I was doing a research about Solr Cloud features. I got very impressed by Solr’s distributed computing. You literately have to fire a new instance and it will automatically find its place in “the cloud”. It will assign itself to a […]

Apache2 vs Nginx for PHP application

Posted by on Mar 28, 2013 in Environment, Linux | 6 Comments
Apache2 vs Nginx for PHP application

Time is money. This somewhat shallow and overused saying fits perfectly well into any on-line business. Users are impatient and every millisecond brings them closer to leaving your website. If you’ve ever been trying to squeeze more out of hardware you must have come across Nginx (engine x). Nginx usually appears in context of PHP-FPM […]

Introduction to Test Driven Development

Posted by on Mar 22, 2013 in Test Driven Development | 2 Comments
Introduction to Test Driven Development

Yesterday I had a great pleasure to speak at Green Room about Test Driven Development. This was my first speech ever and despite the stress it was fun doing it. A warm thanks to all participants for joining us that evening and to UVD and Browser London for organising the event. I hope you’re going […]

Beginners guide to Amazon Cloud

Posted by on Mar 14, 2013 in Cloud Computing, Environment, Linux | No Comments
Beginners guide to Amazon Cloud

Everybody heard about Amazon Cloud. It has been around for a good few years. Despite its popularity not everybody had a chance to try it. Amazon tries it best to get more people on board by offering “Micro” versions of their web service for free. If you are into technology or just want a quality […]

Faker – The ultimate Lorem Ipsum for PHP

Posted by on Mar 13, 2013 in PHP Programming | No Comments
Faker – The ultimate Lorem Ipsum for PHP

From time to time we all have to work with data which doesn’t exist. The best example is web development. Front-end developers create HTML and CSS before any web content is created. The common practice is to use Lorem Impsum which proved to be effective strategy. It’s not much different with back-end programming. We need […]

Integrate PHP application with Solr search engine

Posted by on Mar 9, 2013 in Environment, PHP Programming | 2 Comments
Integrate PHP application with Solr search engine

So why do you need a search engine, is database not enough? If you create a small website it might not matter. With medium or big size applications it’s often wiser to go for a search engine. Saying that, even a small websites can benefit from Solr if you desire a high level of relevance […]

Boost WordPress performance with Varnish Cache

Posted by on Mar 2, 2013 in Environment, Linux | 3 Comments
Boost WordPress performance with Varnish Cache

Lets face it, WordPress is slow. With every request it has to go though thousands lines of code and multiple SQL queries to render a page. Very popular configuration for a WordPress site is Apache, mod_rewrite, mod_php, PHP and MySQL. It’s very good setup but can’t be consider the fastest (at least without any additional […]

How to escape double quotes in Varnish regex

Posted by on Mar 1, 2013 in Environment | No Comments
How to escape double quotes in Varnish regex

This is going to be the shortest post ever both might save hours to people who don’t know it yet. The good old fashion \” won’t work. Suggestion from the manual to use %22 doesn’t work either. Solution to this problem is regex ASCII escape “\x22″.

Simple as that but took me some time […]