Database connection between python & mysql
#!/usr/bin/python import MySQLdb db = MySQLdb.connect(“localhost”,”user”,”password”,”dbname” ) cursor = db.cursor()
Continue Reading#!/usr/bin/python import MySQLdb db = MySQLdb.connect(“localhost”,”user”,”password”,”dbname” ) cursor = db.cursor()
Continue ReadingOptimize 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 site speed Audit your site …
Continue ReadingDirective 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 disabled attribute. ng-hide Hides or …
Continue ReadingPlease 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 with include paths ;opcache.mmap_base = …
Continue ReadingDescribing 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 into ROM for further instruction. …
Continue ReadingClassical 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 end of the transaction, all …
Continue ReadingWhen an order is edited in admin, that order gets cancelled and new order with edited data is created again
Continue ReadingCopy 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>
Continue ReadingFor 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 ‘configunsecure_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 /> <input type=”text” name=”configunsecure_base_url” id=”base_url” …
Continue Reading<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>
Continue Reading