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

Questions and Answers

Answer written - Ubuntu
author
,
Aspirant Programmer
Before doing zip or unzip a folder or files, you will need to install zip using below command if it is not already install: $ sudo apt install zip unzip Now you can use below syntaxes to create a zip of folders/files: zip -r name.zip folder zip -r name.zip folder1 folder2 zip -r name.zip /path/to/folder1 /path/to/file2 After running the command you will get a zipped file which you can keep as... (more)
Answer written - MySql
author
,
Aspirant Programmer
To update the mysql root user password you will need to follow below steps and it will be updated without any problem. 1- First stop the mysql server  sudo /etc/init.d/mysql stop 2- Now run command to start mysqld configuration sudo mysqld --skip-grant-tables &   Don't forget & sign at the end In some cases you will need to create /var/run/mysqld  first sudo mkdir -v /var/run/mysql... (more)
Answer written - MySql
author
,
Aspirant Programmer
I assume you have already a mysql user which password want to update or change. You will need to login into your mysql server with your root user which has administrative privileges. So, follow below steps and you will easily be able to update the user password: 1- Open the command shell and connect to the mysql server as root user mysql -u root -h localhost -p 2- Run command ALTER USER 'us... (more)
Answer written - Node Js
author
,
Aspirant Programmer
We have also faced such problem where we want to loop through array of objects and further get a detailed information about user from user id and add this into all objects respectively. I can explain with two examples where one works but the other does not:   1- Working example:   // Here info is the array of objects var newArr = [];... (more)
Answer written - Server
author
,
Aspirant Programmer
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
,
Aspirant Programmer
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
,
Aspirant Programmer
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
,
Aspirant Programmer

How can we differentiate between tree and graph data structure?

Answer written - Programming
author
,
Aspirant Programmer

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
,
Aspirant Programmer
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)