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

Questions and Answers

Answer written - Angular Js
author
,
Fond of IT

If you face above issue while executing the ng serve  command, you can install the package as dev dependency. This is introduced in latest version of Angular 6.0.

 npm install --save-dev @angular-devkit/build-angular  

I faced the same issue and it resolved my problem and hope it will resolve your's too.

Answer written - Angular Js
author
,
Fond of IT
First of all I would like to introduce about Angularjs and Angular. First version of angularjs is called as Angularjs but later versions are called only Angular so this is the difference. To start with Angular, you must have node.js installed in your system that should be Node.js 10.9.0 or later version and you can get the latest version from nodejs.org You also need to have installed npm packag... (more)
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)