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

Questions and Answers

Answer written - Server
author
,
Fond of IT
Suppose you have already a website running on http protocol with apache  ubuntu server and you want to install a free SSL in your website then  follow the below steps and this license will expire in 90 days so you  will need to renew it again:   1- First of all run following commands to activate SSL mode and webserver to listen on ... (more)
Answer written - Server
author
,
Fond of IT
I assume you have setup your apache2 server and websites is running on http protocol.  Now you want to install SSL and get your website run on https only.  For this, you will need to purchase SSL certificate from any SSL provider.  Now if you have purchased the SSL you will need to follow few steps to  complete installation on apache... (more)
Answer written - WordPress
author
,
Fond of IT
Wordpress allow us to create a rest api that can be used in application like mobile android, iOS apps or any other javascript frameworks. There is action hook "rest_api_init" which is used to create such an API in wordpress. You can understand it more exactly by below example: // Get user details by id function get_user_details(WP_REST_Request $request ) {         $id = $_R... (more)
Question Asked - Miscellaneous
author
,
Fond of IT

How can we differentiate between tree and graph data structure?

Answer written - Programming
author
,
Fond of IT

Data sctructure is how we store, organize and group the data so that it can be used efficiently. 

There are many ways of storing data in programming languages like linked list, queue, graph, tree, array etc.

Answer written - JavaScript
author
,
Fond of IT
Annotation is about specifyng type of the something like variable.  We can understand it better referring below example:   var a = 10; var b = "Hello"; var c = True;   Here javascript understand/infer the type of variable by the value being passed into it.   var a: number = 10; var b: String;   Here we have specified the type of th... (more)
Answer written - JavaScript
author
,
Fond of IT
Let us understand the requirement of using prototype first.  Suppose you have a person class and there are two properties inside it.  You have created multiple objects and now you want to add a new property into class and that should  be available in all created objects then you would require to use prototype. If you add the new property... (more)
Answer written - JavaScript
author
,
Fond of IT
You can remove duplicate items from array in javascript using below methods: 1-  Using filter function: var items = ["1", "2", "3", "1", "2", "4"]; var newArray = items.filter(function(item, index, items){       return items.indexOf(item) === index } );   2- Using core javascript logic: function removeDuplicateItems(arr) {      var tempArr = {};      for (var i ... (more)
Answer written - Miscellaneous
author
,
Fond of IT
It seems same but there is difference between parameter and argument.  Parameter is variable in the declaration of function. Argument is the actual value of this variable that gets passed to function. See an example: def test_function(abc):      return abc   // Calling the function test_function(100) Here 'abc' is parameter and '100' is argument.... (more)
Answer written - Python
author
,
Fond of IT
In python == checks equality of the value but "is" checks memory. You can refer to below example to understand it better: a = [1,2,3] b = [1,2,3] a == b returns true because all values are same in both the lists. a is b returns false because a and b are two different objects in memory. clone = b b is clone returns true because clone and b point to the same memory. I hope you understand n... (more)