August 19, 2013 0 Comments

Some people ask about the difference between Mage::getModel() and Mage::getSingleton() in Magento. Here is the difference between these two: Mage::getModel('module/model') will create a new instance of the model object (if such object exists

August 17, 2013 0 Comments

ls -alZ /www/foler chcon -v -R --type=httpd_sys_content_t /www/folder ls -Z, --context Display security context so it fits on most displays. Displays only mode, user, group, security context and file name. chcon - change

August 14, 2013 1 Comment

UPDATE! Code moved to bitbucket: https://bitbucket.org/markoshust/syncdb/src Often times, you need to pull down an up-to-date version of Magento from your production server to your development or staging servers. This involves: Executing a mysqldump

August 14, 2013 1 Comment

Here is an example: var signupForm = new Validation(\’form-validate\’); var result = signupForm.validate(); if(result == true) { $(\’#form-validate\’).submit(); return true; } else return false; another one var signupForm = new VarienForm('signupForm', true); if

August 12, 2013 0 Comments

http://www.servermom.com/install-varnish-3-to-run-with-apache-2-on-centos-server/552/

August 12, 2013 0 Comments

Usually that comes from Selinux not giving access to the folder. do ls -alZ /var/www/ and if the html folder doesn't have the context system_u:object_r:httpd_sys_content_t, fix it with chcon chcon -v -R --type=httpd_sys_content_t

July 21, 2013 0 Comments

Game link: http://www.maning.ca/ats/memory-game/ Download Demo: http://www.maning.ca/ats/memory-game/memory-game-Demo.zip "Memory game is a card game in which all of the cards are laid face down on a surface and two cards are flipped face up over

December 3, 2012 0 Comments

PHP provides various levels of error reporting using a bit-field as follows: Error Bit Purpose E_ALL All errors and warnings (doesn't include E_STRICT) E_ERROR Fatal run-time errors E_WARNING Run-time warnings (non-fatal errors) E_PARSE

October 24, 2012 0 Comments

find . -mtime -1 | grep "php\|js" | grep -v "tmp\|cache" find -mtime -1 find modified files last day grep "php\|js" file name include php or js grep -v "tmp\|cache" file name not

October 15, 2012 52 Comments

This plugin uses an XMLHttpRequest (AJAX) for uploading multiple files with a progress-bar in FF3.6+, Safari4+, Chrome and falls back to hidden-iframe-based upload in other browsers (namely IE), providing good user experience everywhere.