Create Basic Custom Payment Method in Magento
This is the basic payment method tutorial and does not cover if there is a payment integration. First we need to decide on a unique code for the payment method, in the following example, I used the...
View ArticleHow to Create Multiple Virtual Hosts in Ubuntu
Assuming you already have installed LAMP on your Ubuntu machine, here are the steps in creating multiple virtual hosts. If Apache mod_rewrite module is not yet enabled, you can do so by typing the...
View ArticleSyntax for a Secure Copy (SCP)
SCP allows files to be copied from, to, or between different hosts. It uses SSH for data transfer and it provides the same authentication and level of security as that of SSH. Following are some...
View ArticleHow to Reduce Video Size in Ubuntu
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library. See the documentation for a complete feature...
View ArticleHow To Create a MySQL Database and Set Privileges to a User
In this tutorial, I will explain how to create a database as well as the user. Given that your have an access to the database, we are going to create a database called jungle which will be accessible...
View ArticleList of Magento Admin Form Fields
On our previous post, we learned how to create Magento Adminhtml grids. All the codes below should be written in the class Foo_Bar_Block_Adminhtml_Baz_Edit_Form (assuming it doesn’t have tabs) inside...
View ArticleMagento Custom Controller Layout
You will need some debugging techniques to get the handle of your controller. In your controller: Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles()); Output: array(5) { [0] =>...
View ArticleUbuntu Apache Error Log
tail -f /var/log/apache2/error.log Always think twice before hitting the Enter key… The post Ubuntu Apache Error Log appeared first on BryMayor.com.
View Articlegzip Compress and Remove Definer on MySQLDump
Code snippet to compress MySQLdump and remove the definer. mysqldump -uuser -p database | sed -e "s/DEFINER=[^*]*\*/\*/" | gzip > database.sql.gz cat database.sql | sed -e "s/DEFINER=[^*]*\*/\*/"...
View ArticleSend Mail from Linux Terminal in One Line
Using the default mail system of Unix: echo "I am the body." | mail -s "Thus, I am the subject." recipient@example.com The post Send Mail from Linux Terminal in One Line appeared first on...
View Article