Zend Anwar

Full stack web developer

Author: zendnwar

Database connection between python & mysql

#!/usr/bin/python import MySQLdb db = MySQLdb.connect(“localhost”,”user”,”password”,”dbname” ) cursor = db.cursor()

Read More

What are the Best SEO techniques to use in 2015?

Optimize your web site page around one topic with limited keywords Create Responsive Websites design. Website should bearing an https extension URL structure should be short, descriptive & help to categorize your website. Abundant Content with a Focus on Graphics Optimize page titles Utilize proper heading tags Optimize image alt text Grow natural links Increase […]

Read More

AngularJS directives

Directive Description ng-app Defines the root element of an application. ng-bind Binds the innerHTML of HTML elements to application data.It is the automatic synchronization of data between model and view components ng-click Defines the behavior when an element is clicked. ng-controller Defines the controller object for an application. ng-disabled Binds application data to the HTML […]

Read More

PHP OPCache not enable drupal 8 installation error

Please open php.ini file and paste at bottom following code zend_extension=C:\xampp\php\ext\php_opcache.dll [opcache] opcache.enable = 1 opcache.memory_consumption = 128 opcache.max_accelerated_files = 4000 opcache.revalidate_freq = 60 ; Required for Moodle opcache.use_cwd = 1 opcache.validate_timestamps = 1 opcache.save_comments = 1 opcache.enable_file_override = 0 ; If something does not work in Moodle ;opcache.revalidate_path = 1 ; May fix problems […]

Read More

How to booting linux system?

Describing below booting system of Linux, Please check below: The stages involved in Linux Booting Process are: BIOS Boot Loader – MBR – GRUB Kernel Init Runlevel scripts  BIOS 1.)This is the first thing which loads once you power on your machine. 2.)  When you press the power button of the machine, CPU looks out […]

Read More

What is Classical relation database?

Classical relation database follow the ACID Rule A database transaction, must be atomic, consistent, isolated and durable. Below we have discussed these four points. Atomic : A transaction is a logical unit of work which must be either completed with all of its data modifications, or none of them is performed. Consistent : At the […]

Read More

What happens when existing orders are edited in the Magento admin

When an order is edited in admin, that order gets cancelled and new order with edited data is created again

Read More

How to Set Custom Title to the Success page in Magento

Copy checkout.xml file from app/design/frontend/base/default/layout/checkout.xml to app/design/frontend/default/yourtheme/layout/checkout.xml under checkout_onepage_success tag <reference name=”head”> <action method=”setData” translate=”title”><key>title</key><value>your title </value></action> </reference>

Read More

please enter a valid url. protocol is required (http // https // or ftp //) in magento instaltion

For this you need to remove the validation for the particular section. 1. Open \app\design\install\default\default\template\install\config.phtml 2. Find the textbox where the base url is entered. It will be around line no 85 with name ‘config[unsecure_base_url]‘ 3.  Remove ‘validate-url’ from its class and save the file. Replace <li> <label for=”base_url”><?php echo $this->__(‘Base URL’) ?> <span class=”required”>*</span></label><br […]

Read More

AmgularJS hello world application

<html> <title>hello world application</title> <head> <!–Load framework–> <script src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js”></script> </head> <body> <h1>Hello World Program</h1> <div ng-app=””> <span>Write here something: <input type=”text” ng-model=”name”></span> <p>Hello <span ng-bind=”name”></span></p> </div> </body> </html>

Read More