Zend framework 2.0 released - now stable!

Exciting times in the php world, Zend Framework 2.0 stable has been released! Magento is currently based on the 1.x branch of Zend, and Magento 2 is aiming to be on Zend Framework 2 (ZF2) so this puts the world one step closer to Magento 2.0. The full announcement is here

Mate: Make Keyboard Calculator Button Work Again, and gedit etc.

One of the things that has not yet been fixed in mate is that the physical calculator button available on a lot of keyboards is mapped to “gcalctool” still but mate calls this “mate-calc” A quick and easy fix is to ensure you have a bin folder inside your home directory (e.g. /home/edmondscommerce/bin/ ) and run the following commands at a shell :- cd ~/bin ln -s `which mate-calc` gcalctool This means that anything that calls gcalctool will call mate-calc by default. Read On →

How to get Compiz working with Linux Mint 13 (Maya) and MATE

With the Gnome world moving on to Gnome Shell and Unity some of us are finding frustrating the lack of ability to tweak and configure afforded to us by Gnome 2. MATE has gone a long way to ensuring that we can continue to use the familiar desktop environment without the worry of using an outdated and insecure version of your favourite distribution. One such area where an immense ability to configure our DE is Compiz which is no longer compatible with Gnome Shell. Read On →

Simple Linux Backup with Backup2L

If you have incremental backup requirements but would rather avoid something heavy and perhaps over featured and complex such as Bacula then Backup2L could be just the thing. Written in BASH, it comprises only a small number of files that you can read directly to see how it works. There is a configuration file that is installed to /etc/backup2l which you will need to edit a little and then after that its just a case of running backup2l -b to initiate your backups. Read On →

Linux Bash Scripting: Force Screen if not Cron Task

If you have a long running script that is designed to run as cron but may be run manually from the terminal then you may want to enforce screen so that the process can’t be aborted by the SSH terminal being closed for whatever reason. We already blogged about how to force running as screen here. This is an extension of this that also checks for running as Cron and if so, does not force screen. Read On →

Magento: Be Careful with Magic Properties

In certain places in Magento, you can simply access the data from an object by property, but beware! For instance, in the product template the following two code snippets have the same effect :- $_qty = $_product->stock_item->stock_qty; and $_qty = $_product->getStockItem()->getStockQty(); However only the latter will work if you call it from the category view. This is because the product is not fully loaded, and even doing a $_newproductobject = Mage::getModel('catalog/product')->load($_product->getId()); will not help! Read On →