Home » Archive

Articles Archive for Year 2012

Linux »

[20 Dec 2012 | No Comment]

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.

Linux »

[10 Dec 2012 | No Comment]

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.

Linux, MySQL, PHP, Ubuntu »

[3 Dec 2012 | One Comment]

Here are step-by-step commands about installing apache, php, mysql, and phpmyadmin on ubuntu.
1) Open Terminal
- Press:
CTRL + ALT + T

PHP »

[26 Nov 2012 | No Comment]

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.

Miscellaneous »

[19 Nov 2012 | No Comment]

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?

Miscellaneous »

[12 Nov 2012 | No Comment]

Here is the solution to “There are no free MBR slots on the disk” error while creating new partition on Windows 7.
Scenario:

Magento »

[5 Nov 2012 | No Comment]

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:-

Magento »

[29 Oct 2012 | No Comment]

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.

Javascript »

[15 Oct 2012 | One Comment]

Problem:
- 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.
Solution:

Magento »

[8 Oct 2012 | 3 Comments]

Scenario:
I have created a new custom module. Now, I need to edit a default template file.
For example:-

Miscellaneous »

[5 Oct 2012 | 3 Comments]

Whether you should choose Dedicated Server Hosting or Shared Hosting depends upon the web operation that you run or required.
Shared Hosting

Magento »

[24 Sep 2012 | No Comment]

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.

Facebook, Wordpress »

[17 Sep 2012 | No Comment]

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.

Magento »

[10 Sep 2012 | 2 Comments]

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.

Humor »

[5 Sep 2012 | One Comment]

Funny English Language. You may call it as “Murder of English Language” or “Killing English Language” :)
1. Principal to student, “I saw you yesterday rotating near girls’ hostel pulling cigarette?”