Mar 27, 2012 ·
1 minute read
javascript
If you have a staging copy of your site anywhere then you might not bother copying over your entire catalogue of product images etc. You might decide to drop in absolute URLs for those images so that they are pulled from live. However you really don’t want absolute URLs in your code and you certainly don’t want that to go live because it just adds unnecessary bloat. A nice trick you can do here is make a change to your staging site as follows.
Read On →
Mar 21, 2012 ·
1 minute read
hosting
Easily deploy PHP applications to the Amazon Web Services infrastructure allowing you to take advantage of an easily scaled flexible cloud based system. Furthermore there is Git based deployment so your version control workflow can hook directly into deployment for speed and convenience. This does really look attractive. The Angry birds store recently launched on Magento using Varnish and Amazon Web Services and it runs very fast indeed. Perhaps the days of expensive dedicated hardware are really numbered.
Read On →
Mar 20, 2012 ·
1 minute read
php
Static analysis is the process of parsing and searching through code without actually running it. It is the equivalent of someone opening your code base in their IDE and reading through it in detail. RIPS is a tool I have just come across for doing PHP static analysis. You just need a working Apache stack etc for it to work which any PHP dev is going to have. http://rips-scanner.sourceforge.net/
Mar 12, 2012 ·
1 minute read
portfolio
We have recently launched a clean, clear and simple web site for local architects SDM architecture who are based in Baildon near Shipley, Bradford and Leeds. The brief was a clean web site that Stephen the owner can easily manage with his own content showcasing his work and attracting new clients. All in all the project was a big success with a very rapid turnaround. Stephen said “you have been very helpful and I have appreciated everything you have done for me”.
Read On →
Mar 8, 2012 ·
1 minute read
netbeans
One of the features that I was previously unaware of in Netbeans is its ability to automatically generate common class methods. This post is a quick guide of how this works for future reference. To get the system to work, first load up a php class. For this example I’m going to be extending the Magento Product Model. This basic class can be seen here, with a couple of extra properties added.
Read On →
Mar 3, 2012 ·
1 minute read
magento
If you are developing a Magento store and you would like a method you can call to completely clear everything out that might be cached or indexed etc then you will like this little snippet: public function flushEverything() { Mage::app()->getCacheInstance()->flush(); Mage::getModel('core/design_package')->cleanMergedJsCss(); Mage::getModel('catalog/product_image')->clearCache(); $indexer = Mage::getSingleton('index/indexer'); /* @var $indexer Mage_Index_Model_Indexer */ foreach($indexer->getProcessesCollection() as $process){ $process->reindexEverything(); } } This flushes the cache storage, removes merged JS/CSS files, flushes the product image cache then loops through each index and reindexes.
Read On →