Category Archives: Programming

PHP development environment with Docker

It was some time I wrote something in my blog. Since last my post I was wondering in various courses to learning about new web development technologies. Lastly I met Docker and it is awesome at least I image it … Continue reading

Posted in Linux, Programming | Tagged , , , | Leave a comment

Puppet install less compiler from wheezy backports

Recently I was building my Symfony development box with Vagrant and faced problem how to install less compiler. After some searches I decided that best(?) way to install lessc is from Debian backports. Now I had another problem, how to … Continue reading

Posted in Linux, Programming, Server | Tagged , , , | Leave a comment

[Note] How to fix php simple xml CDATA problem

Note for me how to fix simplexml_load_string or simplexml_load_file functions problem, when there is text in CDATA and its is skipped by parser. Fix can be found on Tech Thought blog article “How-To: Fix SimpleXML CDATA problem in php“

Posted in Programming | Tagged , , , | Leave a comment

Silex autoload namespaces without Composer

Currently I am working on one of my projects. For this project I am using Silex micro PHP framework, because its small fast and has all tools required for my project and uses some great libraries from Symfony2 framework. Anyway … Continue reading

Posted in Programming | Tagged , , , | 4 Comments

Symfony2 Vagrant setup

Recently I searched for good Symfony2 Vagrant setup and came up that Andreas Hucks work is most suitable for my needs. It has everything what I needed NFS setup, preinstalled phpMyAdmin, Xdebug and etc. However I installed newest Vagrant version … Continue reading

Posted in Linux, Programming, Server | Tagged , | 1 Comment

[Note] Generate NetBeans 7 getters and setters

To generate setters and getters in code just place your cursor after class parameter and hit Alt + Insert on keyboard and Generate dropdown with options will apear. Select Getter and setter.. and its done. It is strange that this … Continue reading

Posted in Applications, Programming | Tagged , | Leave a comment

Simple bookmarklet to enable xdebug profiler

Recently we had xdebug installed in our development machine. To enable xdebug profiling we must must add XDEBUG_PROFILER=1 via GET or POST. Because I am lazy like many programmers I wrote bookmarklet to add this for me 🙂 Here is … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Faster class loading in Zend Framework application

Update You can use Zend Framework 2 autoloader in Zend Framework 1 projects (via Anton, see comment #3) It is not a secret that Zend Framework class loading is very slow and cost many resources. Recently I read about Zend … Continue reading

Posted in Performance, Programming | Tagged , , , | 6 Comments

Links as buttons in Zend Framework form

In my current project I have to use link tags instead input elements for my form buttons. To do this I needed to create new form element, new helper and add helper path to my bootstrap file. First I created … Continue reading

Posted in Programming | Tagged , , , , | 1 Comment

PHP script execution time

I know there are many tutorials how to do this in PHP, but reason why I am writing this mini tutorial is one trick witch should help you a lot.  By the way, do you know that execution time is … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment