Explorer Feed
Explorer
Explorer
Aspirant Programmer

I like to explore things getting into detail.

How to work with sleep or add delay in program?

Sleep function is present in time module of python. It is very useful when you are trying to add some delay in program execution. It does not stop complete program instead it just adds some delay in particular thread only. We can understand it with some examples which you see below:   import time #Example:1 sleep_time = 1 print("Hello") time.sleep(sleep_time) print("World")   #Examp... (more)

How to work with sleep or add delay in program?

Sleep function is present in time module of python. It is very useful when you are trying to add some delay in program execution. It does not stop complete program instead it just adds some delay in particular thread only. We can understand it with some examples which you see below:   import time #Example:1 sleep_time = 1 print("Hello") time.sleep(sleep_time) print("World")   #Examp... (more)

Write a program to generate Fibonacci series in Python?

Fibonacci series is a series of numbers in which each number is addition of previous two numbers. So, lets create it with an example For example:  0 1 1 2 3 5 8 13 and so on. Lets number of terms is 8. terms = 8 a=0 b=1 print(a,b,end="") for n in range(2, terms):     next = a+b     print(next, end="")     a=b     b=next        ... (more)

Write a program to generate Fibonacci series in Python?

Fibonacci series is a series of numbers in which each number is addition of previous two numbers. So, lets create it with an example For example:  0 1 1 2 3 5 8 13 and so on. Lets number of terms is 8. terms = 8 a=0 b=1 print(a,b,end="") for n in range(2, terms):     next = a+b     print(next, end="")     a=b     b=next        ... (more)

Npm ERR cb() never called?

When you face such a problem, you just need to run below command if you have npm version 5 or greater

npm cache verify

Otherwise use below command 

npm cache clean 

And again try to run  npm install. I hope it will solve your problem.

Npm ERR cb() never called?

When you face such a problem, you just need to run below command if you have npm version 5 or greater

npm cache verify

Otherwise use below command 

npm cache clean 

And again try to run  npm install. I hope it will solve your problem.

Pendrive paste option is not showing in mac?

There is a very easy to use pendrive in mac system. You would have faced this type of problem with a pendrive formated as NTFS. You just need to reformat your pendrive and choose the option as FAT32 and now it will be ready to use with mac as well as windows operating system.

 

Pendrive paste option is not showing in mac?

There is a very easy to use pendrive in mac system. You would have faced this type of problem with a pendrive formated as NTFS. You just need to reformat your pendrive and choose the option as FAT32 and now it will be ready to use with mac as well as windows operating system.

 

Laravel controller is not working?

I also faced such issue while working on a laravel project and after several rearch I found a solution which worked for me and it was really unexpected for me and that is the below command you can use in such scenario. composer dump-autoload Additionally, you can also use these below command collectively to avoid any other cache issue of laravel. php artisan cache:clear php artisan config:cac... (more)

Laravel controller is not working?

I also faced such issue while working on a laravel project and after several rearch I found a solution which worked for me and it was really unexpected for me and that is the below command you can use in such scenario. composer dump-autoload Additionally, you can also use these below command collectively to avoid any other cache issue of laravel. php artisan cache:clear php artisan config:cac... (more)

How to apply loop on objects in JavaScript?

When we talk about looping through objects, before ES6 we had only one option to loop through objects using for...in. But it has some drawback as it iterates through properties in the prototype chain and to check if property belongs to the object you can do this with hasOwnProperty.    for (var property in object) {   if (object.hasOwnProperty(property)) {     // Rest code   } }   Bet... (more)

How to enable .htaccess on apache server?

.htaccess is a configuration file for the Apache web server. It’s an extremely powerful tool that can be used to modify the Apache configuration without editing the Apache configuration files directly. Let us see how to create this configuration and use it to restrict directory listings and IP addresses, and to handle redirects.   Enable .htaccess file:   sudo nano /etc/apache2/si... (more)

How to enable .htaccess on apache server?

.htaccess is a configuration file for the Apache web server. It’s an extremely powerful tool that can be used to modify the Apache configuration without editing the Apache configuration files directly. Let us see how to create this configuration and use it to restrict directory listings and IP addresses, and to handle redirects.   Enable .htaccess file:   sudo nano /etc/apache2/si... (more)

How to apply loop on objects in JavaScript?

.htaccess is a configuration file for the Apache web server. It’s an extremely powerful tool that can be used to modify the Apache configuration without editing the Apache configuration files directly. Let us see how to create this configuration and use it to restrict directory listings and IP addresses, and to handle redirects.   Enable .htaccess file:   sudo nano /etc/apache2/si... (more)

How to edit and update reactive form in Angular?

If you have a list of records and now you want a edit screen to edit and update the record then you can do it using following steps: 1- Import forms module in component import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms'; 2- Then declare variables of form builder and form group public testform: FormGroup;   constructor(     public share: S... (more)