Zend Anwar

Full stack web developer

Author: zendnwar

‘pip’ is not recognized as an internal or external command in Python

pip now comes bundled with new versions of python: Need to add the path for pip installation to system variable. By default, pip is installed to C:\Python34\Scripts\pip so the path “C:\Python34\Scripts” needs to be added the “path” variable.

Read More

XAMPP, Apache – Error: Apache shutdown unexpectedly

10:53:47 PM  [Apache]     Error: Apache shutdown unexpectedly. 10:53:47 PM  [Apache]     This may be due to a blocked port, missing dependencies, 10:53:47 PM  [Apache]     improper privileges, a crash, or a shutdown by another method. 10:53:47 PM  [Apache]     Press the Logs button to view error logs and check 10:53:47 PM  [Apache]     the […]

Read More

Fatal error: Uncaught Error: Function name must be a string in app/code/core/Mage/Core/Model/Layout.php:555

This is because you need to clarify the `$callback` variable will be called as a method (function). The original bit of code was: (file app/code/core/Mage/Core/Model/Layout.php) Now you need to replace it with this with: 1 $out .= $this->getBlock($callback[0])->{$callback[1]}(); Don’t edit the files directly – instead create a separate extension which overrides Mage_Core_Model_Layout with your own […]

Read More

Hello world script in Bash

Make a file under /mnt as helloworld vim /mnt/hellowrld #!/bin/bash echo Hello World To run this file need permission, following command make permission chmod u+x /mnt/helloworld now run your file /mnt/helloworld ======== Output : Hello World  

Read More

What is Bash Script?

Bash (Bourne-Again SHell) is a Linux and Unix-like system shell or command language interpreter.Bash scripts an extension of .sh (an.sh for example). Bash is useful when most of what you’re doing is communicating and piping between various programs (many of which are also standard). And there are many environments where bash (or at least a […]

Read More

safari browser add to cart does not work in magento

Updated the the cookie lifetime in the admin console from 3600 to 86400 and this fixed the login and the add to cart in IE, Safari and iPhone. configuration->web->session cookie management->cookie lifetime

Read More

How to disable compilation in Magento

It can be done by two: 1. From Magento admin Navigate to System > Tools > Compilation page and click on Disable button Navigate to System > Cache Management screen and use Flush Cache button. 2. Via SFTP/FTP, by editing the includes/config.php file To disable compilation in Magento, edit includes/config.php. #define(‘COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’); define(‘COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);

Read More

Magento: change to Product Name or Description not displayed on frontend

Try re-indexing data and flushing cache from Magento Admin. System -> Index Management System -> Cache Management If does not working please check following step: Please goes to Manage Attribute Select “short description”, “description” & “Name” and Scope should be changed “Global” This solved my problem.

Read More

RAID 0, RAID 1, RAID 5, RAID 10 Explaination

RAID stands for Redundant Array of Inexpensive (Independent) Disks. Please check following levels of RAIDs. RAID 0 – Striping RAID 1 – Mirroring RAID 5 – striping with parity RAID 10 (also known as RAID 1+0) – combining mirroring and striping RAID level 0 – Striping …………………… Minimum 2 disks. Excellent performance ( as blocks […]

Read More

what is active partition?

An active partition basically means that the computer will boot from this partition. We can say this is the bootable partition that contains the operating system. Only one partition on each hard drive can be set as an active partition or bootable partition. For example, if you are using Microsoft Windows the partition that contains […]

Read More