Beware of PHP’s list() function

If you are using list() func­tion with vari­able, like this:

$arr = array('green', 'apple');
list($color, $fruit) = $arr;

You should pay atten­tion to the order of vari­ables you assign if one of them has same name as ini­tial array. Else you’ll run into mad­ness, try­ing to find a bug…
Con­tinue read­ing

Posted in Development | Tagged , , | Leave a comment

Joomla! files and dir­ect­or­ies to ignore on versioning

After I was hired for another pro­ject of Joomla! based web­site, I real­ized that I need a list of files and dir­ect­or­ies to ignore with the stu­pid con­tent tracker. I love to keep all changes I made tracked by git. So today, I’m going to list all dir­ect­or­ies and files that are “optional” — those, which can be removed upon migra­tion and so on…
Con­tinue read­ing

Posted in Development, Joomla! | Tagged , , | Leave a comment

Sys­tem tray icon with Ruby and QT4

In my pre­vi­ous post I have showed how to cre­ate a simple sys­tem tray icon in ruby and GTK. Today, I will cre­ate exactly the same applic­a­tion but with QT4 instead of GTK… Before I star­ted this, I was full of optim­ism that it will be even easier to do this with QT. I was wrong :)) Because of some dif­fer­ences it was not as easy as I wished it to be…
Con­tinue read­ing

Posted in Development, How To's | Tagged , , , , , | Leave a comment

Sys­tem tray icon with Ruby and GTK2

Every­body knows what sys­tem tray is. My friends (Hello, big­ote and stan­islavv!) were sug­gest­ing to start using FVWM and it’s pager instead of using sys­tem tray. But I was not inspired by pager. Prob­ably because I was too lazy to try it in action for more than 1 minute. Any­way. One day I real­ized that I need some­thing to notify me via sys­tem tray icon. So today I’m going to cre­ate a simple sys­tem tray icon in ruby with GTK step by step…
Con­tinue read­ing

Posted in Development, How To's | Tagged , , , , , | Leave a comment

Another step for free­dom of CRE Loaded PCI Pro

This is a small improve­ment to pre­vi­ously released free ver­sion of CRE Loaded PCI Pro. After I was play­ing with pre­vi­ous release I found that (at least) after upgrad­ing from another ver­sion this applic­a­tion sends an inform­a­tion about your web-site at sales@creloaded.com and application@cremerchant.com which is not cool at all. So here’s another mod­i­fied ver­sion of CRE Loaded PCI Pro which is not only free as in free­dom, but also does not spies for you…
Con­tinue read­ing

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