Topics
  • Most Recent Stories
  • Trending Stories
  • Miscellaneous
  • Python
  • PHP
  • jQuery
  • MySql
  • Django
  • WordPress
  • CS CART
  • Ubuntu
  • JavaScript
  • React Js
  • Woocommerce
  • Server
  • Selenium
  • Programming
  • Node Js
  • Angular Js
  • Memory
  • Encryption and Decryption
  • Cryptography

Questions and Answers

Answer written - Miscellaneous
author
,
Fond of IT
If you are getting the above issue while setting up google / gmail SMTP server. You need to follow below steps it will surely solve your problem. I had also faced this issue and following the below steps resolved my problem and mail getting started to come in my inbox. 1- You need to enable 2 step verification in your google account setting  URL: https://www.google.com/landing/2step/ 2- Now cre... (more)
Answer written - PHP
author
,
A guide
We can get all child categories in PHP using recursion. Follow below example for better understanding: public function get_child($product_categories) {     $cat = array();     if(count($product_categories) > 0)     {         foreach($product_categories as $val)         {             $cat[$val['category_id']]['id'] = $val['category_id'];           ... (more)
Answer written - JavaScript
author
,
A guide
We can select any element of webpage using document.querySelector  and loop through each element having same class with forEach  function. Follow below example to understand it better:     flag = 0;     idtochoose = '';     document.querySelector('.ty-shipping-options__method input').forEach(function(node) {         console.log(node.id);         i... (more)
Answer written - jQuery
author
,
A guide
Range is something we frequently use it in websites for the purpose of filtering records like products in ecommerce webistes. Anybody can integrate it using jQuery range slider by including a jquery.js, jquery-ui.js and jquery-ui.css.  There is an example below of few lines which will guide you how to use it easily:       jQuery Range Slider             $( function() {   ... (more)
Answer written - Miscellaneous
author
,
Fond of IT
I would like to share with you guys that using a multi select field is very simple easy to integrate within forms or nay where in web page. You can refer to the below shared URL from where you can see multiple types of multi select fields which you can use as per your need: https://harvesthq.github.io/chosen/#selected-and-disabled-support You can click on downloads button and you will see three... (more)
Answer written - Django
author
,
Fond of IT
I suppose you are aware of django url.py, views.py and models.py files. So, I'm going to show you how to use python inbuilt client to integrate API in views.py file. How to import the package and use it, please see below example: #### views.py #### import requests def testapi(request):     response = requests.get("https://api.github.com/users")     response = response.json()     c... (more)
Answer written - JavaScript
author
,
Fond of IT
To apply defer on javascripts included by wordpress plugins, custom included javascripts using enqueue hook of wordpress. Suppose you have included below files as an example and how to apply defer on these files: function custom_load_these_here_scripts() {     wp_enqueue_script('cycle', get_template_directory_uri() . '/js/cycle.js');     wp_enqueue_script('magnific-... (more)
Answer written - jQuery
author
,
Fond of IT
You can set, get and delete cookie in jQuery using a jquery plugin. This plugin is very useful, easy to use in any website and get the requirement done without any hassle. Follow below steps and your are good to go: 1- Include the below library in the file and use as below mentioned. 2- Usage: Create session cookie: $.cookie('name', 'value'); Create expiring cookie, 7 days f... (more)
Question Asked - Python
author
,
Fond of IT

How to scrap web pages in python?

Answer written - Django
author
,
Fond of IT
Please find below steps to proceed work on Django, debug code and troubleshoot problems etc. $django-admin startproject mysqlweb $python manage.py startapp polls $pip install mysqlclient (for python3, when using mysql database with django) https://stackoverflow.com/questions/454854/no-module-named-mysqldb Some of these applications make use of at least one database table, though, so we need to c... (more)