PHP-FPM – ondemand spawner mode

In the old, polish version of this blog, there are several posts about nginx server and PHP configuration. These entries are outdated now, but I will be writing them again in english soon. Meanwhile, today I would like to briefly share information on the ondemand mode in PHP-FPM. I have to used it and think it’s the best solution for most configurations.

Continue reading “PHP-FPM – ondemand spawner mode”

Stop procrastination with StayFocusd

Concentration is not an easy art and sometimes causes a lot of problems. This is especially noticeable visible during remote work, where we decide what and when we do it. Sometimes work is big and we looking for… something else. One moment on Facebook, one moment on YouTube, maybe we check news on Twitter and buy something on eBay? Yes, we know that – it’s a problem of procrastination. We can do anything, but not what we should. How can we deal with it? There is one, nice extension for browser called StayFocusd. And it works.

Continue reading “Stop procrastination with StayFocusd”

Zend Framework – create custom view helper

Zend Framework is not as popular as Symfony, but it’s also nice and have a lot of nice features. One of them is view helpers – classes and objects which we can use in templates to make specific thinks. Zend has few build-in helpers, for example to use absolute app directory, set or receive HTML doctype, use partials templates or use authentication data. Sometimes we can (or maybe should) create our view helper to avoid repetition of the code. It’s simple, let’s try.

Continue reading “Zend Framework – create custom view helper”