leaseweblabs.com leaseweblabs.com

Heka monolog decoder

This post is about how to use heka to give your symfony 2 application logs the care they deserve. Application logs are very important for the quality of the product or service you are offering. They help you find out what went wrong so you can explain and fix a bug that was reported recently. Or maybe to gather statistics to see how often a certain feature is used. For example how many bare metal reinstallation requests were issued...

leaseweblabs.com leaseweblabs.com

Best practices and the joy of programming

When I was about 16 years old (1996) I was programming object pascal (Delphi). In that language I wrote a calculator program to convert a number from decimal to binary. While implementing this functionality I found out that I could make this code generic, such that you could give it any base (2 for binary, 8 for octal, 10 for decimal and 16 for hexadecimal) and convert the numbers back and forth. This was an extremely satisfying...

leaseweblabs.com leaseweblabs.com

Writing a compiler in C# for pre-compiled templates

I am have written high performance web application frameworks for JavaScript and PHP. Today I decided to start a high performance web application framework in C# (on Linux using Mono). Speed and simplicity are again the goals for this MVC framework. I have read that HttpListener is very fast (comparable to NodeJS), so that seemed like a logical starting point. The framework is far from done, but one of the most interesting things I did...

leaseweblabs.com leaseweblabs.com

Chef server API integration with PHP

In this post I will show you a quick example of how you can integrate with the chef server api from php. If you don’t know chef I recommend to have a look at https://www.chef.io. Chef is a configuration management tool, similar to ansible or puppet. Chef turns infrastructure into code. With Chef, you can automate how you build, deploy, and manage your infrastructure. At LeaseWeb our infrastructure that supports our business consists...