Articles Archive for Year 2012
Zip is the most common archiving format. It is avialable on all operative systems such as Linux, Windows and Mac. However, it does not offer the best level of compression as compared to tar.gz and tar.bz2.
Tar is very common archiving format in Linux. Tar.gz is better than tar compression. And, tar.bz2 is the the best among all in the level of compression. It also utilizes the least CPU.
Here are some linux commands to change the permission of files and folders/directories.
chmod is used change the file system mode / permission of files and folders.
Here are step-by-step commands about installing apache, php, mysql, and phpmyadmin on ubuntu.
1) Open Terminal
CTRL + ALT + T
Here is PHP code to:
1) Read / Scan any directory
2) Read any file
3) Write to any file
1) Read or Scan directory
Get all files and folders inside the directory.
Three ways are shown below.
Here is a quick guide on calculating inverter and battery backup time.
There are different capacity of inverters like 200VA, 250VA, 350VA, 400VA, 450VA, 500VA, 625VA, 1200VA, etc. The capacity of the inverter should be chosen based on how much watt of appliances you power at a time.
How to convert from VA to Watts?
Here is the solution to “There are no free MBR slots on the disk” error while creating new partition on Windows 7.
Here are some ways (2 ways below) to show customer address information in registration page.
When you fill up the address fields and signup then both your billing and shipping addresses are filled up.
Here is how to enable address fields in signup page:-
Here is a quick tip on how meta tags – title, keywords and description work on Magento.
Meta information are not visible directly to end users but they are read by search engine spiders (bots). Meta tags are very important parameters for Search Engine Optimization (SEO).
In Magento, you can keep meta tags for Category, Pages and Products. I will be dealing with the meta title, meta keywords and meta description tags for Products.
This article shows how to get selected value from dropdown box when a button is clicked.
– There are multiple forms in a page.
– There is a dropdown select box in each form.
– The option value of the select box is website URL.
– There is a button type=button (not type=submit) in each form.
– User will select a value from the select box and click the button.
– I need to get the selected option value (which is website URL) and open the URL in new window.
I have created a new custom module. Now, I need to edit a default template file.
Whether you should choose Dedicated Server Hosting or Shared Hosting depends upon the web operation that you run or required.
This article shows how to add system configuration (System -> Configuration) menu with menu tab for your custom module.
Let us suppose, you have already created a local module.
It would be so easy for bloggers if there was some automatic tool to publish new blog posts on Facebook. So that, the bloggers need not have to login to Facebook and go to their Facebook Page or Profile and post about their new blog article/post everytime.
So, the solution to this dual task problem is here. Making it a one time task, i.e. you create a new blog post or update an exisiting one and it automatically get posted on your Facebook page or profile.
Varien_Object and Varien_Collection are the parent/super class for most of the Magento Models and Collections respectively.
The path for Varien_Object is lib/Varien/Object & for Varien_Collection is lib/Varien/Data/Collection.php.