Latest Questions and Answers

How to create a Snapshot in Azure?

A snapshot is a full, read-only copy of a virtual hard disk (VHD). You can use a snapshot as a point-in-time backup, or to help troubleshoot virtual machine (VM) issues. You can take a snapshot of both operating system (OS) or data disk VHDs. Create a snapshot of a VHD: If you want to use a snapshot to create a new VM, ensure that you first cleanly shut down the VM. This action clears any pr... (more)

How to create a VM from a VHD/Disk in Azure?

There are several ways to create a virtual machine (VM) in Azure: If you already have a virtual hard disk (VHD) to use or you want to copy the VHD from an existing VM to use, you can create a new VM by attaching the VHD to the new VM as an OS disk. You can create a new VM from the VHD of a VM that has been deleted. For example, if you have an Azure VM that isn't working correctly, yo... (more)

What is the difference between OS Disk and Data Disk in Azure?

Data disk: A data disk is a managed disk that's attached to a virtual machine to store application data, or other data you need to keep. Data disks are registered as SCSI drives and are labeled with a letter that you choose. Each data disk has a maximum capacity of 32,767 gibibytes (GiB). The size of the virtual machine determines how many data disks you can attach to it and the type of sto... (more)

How to automate taking snapshots in Azure?

Automate taking snapshot in azure manual and automated. Script that will require to put in runbook: $resourceGroupName = 'ABC'  $location = 'eastus'  $vmName = 'VM-Name' $datetime = Get-Date -Format "MM-dd-yyyy-HH-mm" $snapshotName = 'Snapshot-' + $datetime   # Ensures you do not inherit an AzContext in your run... (more)

How to install free SSL using DNS challenge (apply on all subdomains) on ubuntu server?

To configure free SSL on website domain, there are few steps need to follow and require you to have access of below: - Domain management panel like route53 in AWS, DNS zone in azure etc where you can go and create a txt record. - Server terminal access so that you can login and make some change in apache configuration file to specify certificate path Once you have these access, now foll... (more)

How to automate free SSL renewal on Azure Load Balancer/Appication Gateway?

To generate and automate free SSL certificate on application gateway of load balancer, you need to go through below steps: - Create a storage account - Create a public container and two folders inside ".well-known / acme-challenge" to upload tokens - Create Automation account and then create "Run As Account" - Create runbook with the large script we have already - Install "ACME-PS" and "ACM... (more)

What is Azure DevOps?

Azure DevOps provides developer services for allowing teams to plan work, collaborate on code development, and build and deploy applications. Azure DevOps supports a collaborative culture and set of processes that bring together developers, project managers, and contributors to develop software. It allows organizations to create and improve products at a faster pace than they can with traditio... (more)

What is Swap Memory in Linux / Ubuntu?

Swap is a portion of hard drive storage that has been set aside for the operating system to temporarily store data that it can no longer hold in RAM. This lets you increase the amount of information that your server can keep in its working memory, with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data.... (more)

How to send email using PHPMailer in laravel?

Many PHP developers need to send email from their code. The only PHP function that supports this directly is mail(). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments. Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adher... (more)

How to solve mysql query error when using table name in capital letter?

In MySQL, databases correspond to directories within the data directory. Each table within a database corresponds to at least one file within the database directory (and possibly more, depending on the storage engine). Triggers also correspond to files. Consequently, the case sensitivity of the underlying operating system plays a part in the case sensitivity of database, table, and trigger names. ... (more)

How to start with Azure Functions in Azure Server?

In this article, you use Visual Studio Code to create a Python function that responds to HTTP requests. After testing the code locally, you deploy it to the server less environment of Azure Functions. Reference: https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python ... (more)

What is logic app practical example, Send alert to slack?

Azure Logic Apps is a cloud-based platform for creating and running automated workflows that integrate your apps, data, services, and systems. With this platform, you can quickly develop highly scalable integration solutions for your enterprise and business-to-business (B2B) scenarios. As a member of Azure Integration Services, Azure Logic Apps simplifies the way that you connect legacy, moder... (more)

What is cloud server?

Please watch the video below to have complete understanding of cloud servers.

What is Azure Logic Apps?

Azure Logic Apps has been explained in the video below:

What is azure functions?

Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs. Instead of worrying about deploying and maintaining servers, the cloud infrastructure provides all the up-to-date resources needed to keep your applications running. Azure function has been explained in the video below: ... (more)

How to create a server on AWS EC2?

You can watch this video to see how to create a linux server on AWS EC2. We have explained all important sections which are required to create a apache web server so you can host your website on this server. It is very easy to get a server ready on aws.    ... (more)

How to implement Google Login in Jenkins?

We have a very easy steps to implement Google Login in Jenkins. In Jenkins by default we have an admin user authentication enabled but we can establish the user authentication from the Global Security section. We have to create users for team members and it maintains all user in its own database. We can also configure Jenkins with Google login using OAuth. So, if you are leveraging G... (more)

How to copy data from S3 to Azure blob using AzCopy?

AzCopy is a command-line utility that you can use to copy blobs or files to or from a storage account. This article helps you copy objects, directories, and buckets from Amazon Web Services (AWS) S3 to Azure Blob Storage by using AzCopy. You will need below authorizations to get this work done: 1- To authorize with the Azure Storage, use Azure Active Directory (AD) or a Shared Access Sig... (more)

How to copy files/folders from EC2 to S3 bucket?

To perform these operation you will need to follow step below: Create an IAM role with S3 write access or admin access     https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html Map the IAM role to an EC2 instance     https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html Install AWS CLI in EC2 instance     https://docs... (more)

How to import and Export large Database in MySql using command line?

You just need to login to your server where mysql is installed and start using below commands. It is very easy and capable to export and import huge databases quickly. Export Database:     mysqldump -h localhost -u root -p database_name > export_file.sql Export Database and Exclude Some tables:     mysqldump -h localhost -P 3306 -u root -p --ignore-table=table1 --ignore-table=tab... (more)

How to transfer/migrate a repository to a user account or organization in Github?

Transferring a repository:     - You can transfer repositories to other users or organization accounts. When you transfer a repository to a new owner, they can immediately administer the repository's contents, issues, pull requests, releases, project boards, and settings. Prerequisites for repository transfers:          - When you transfer a repository that you own to anothe... (more)

What is Organization and Team in Github?

Organizations: Organizations are shared accounts where businesses and open-source projects can collaborate across many projects at once. Owners and administrators can manage members access to the organization's data and projects with sophisticated security and administrative features. You can create more than one organization as per your need. Organizations includes:     Unlimite... (more)

How to add an existing project to GitHub repository?

These are the steps you an follow to connect/add an existing project with remote github repository. - Initialize the local directory as a Git repository. git init -b featured_branch - Add the files in your new local repository. This stages them for the first commit. git add . - Commit the files that you've staged in your local repository. git commit -m "First commit" Add the U... (more)

How to create droplet / server on digitalocean?

It is very simple to create and setup a web server on digitalocean droplets. You can refer to instructions illustrated in video to get it done. ... (more)

How to create an image of Linux VM in Azure?
How to attach a Data Disk to a Linux VM in Azure?

1- Go to the Azure portal to find the VM. Search and select Virtual machines. Choose the VM from the list. In the Virtual machines page, under Settings, choose Disks. 2- On the Disks pane, under Data disks, select Create and attach a new disk. Enter a name for your managed disk. Review the default settings, and update the Storage type, Size (GiB), Encryption and Host ca... (more)

What is the AWS CLI ( Command Line Interface )?

What is AWS CLI and what we can do using it?

How to Copy file / folder from EC2 to S3 and vice-versa?

You can copy any file or folder from EC2 to S3 and from S3 to EC2. This can be done easily using AWS CLI command. To check whether you have installed AWS CLI or not use below command aws --version Output will be something like: aws-cli/2.1.29 Python/3.7.4 Linux/10 botocore/2.0.0 If not already installed use below command to install it. sudo apt-get install awscli  on Linux termi... (more)

How to check whether laptop has SSD or HDD hard disk?

It is very easy to check whether our laptop had SSD or HDD hard disk. You just need to search in window taskbar "Defragment" and click on "Defragment and Optimize Drives" option. You will see below window opened:     You can see under "Media Type" it shows SSD or HDD.  ... (more)

How to start with Node Js?

Node.js is an open-source and cross-platform JavaScript runtime environment. It is a popular tool for almost any kind of project! A Node.js app runs in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking and generally, libraries in Node.js are written using non... (more)

How much time does it take to be expert in Selenium?

Selenium is a popular open source web based test automation tool. This online course is a step by step guide to learn Selenium Concepts. You all must be wondering that why Selenium is in demand? Why Selenium professional enjoys the perks of a good salary? Moreover, it is important to know the reasons attached to learn Selenium. All these questions are genuine and can pop up in anybody’s mind.... (more)

What is the difference between tree and graph data structure?

Tree and Graph both are data structure to store data different format. Due their structure one is called tree and the other one is called graph. We can understand their differences from below table: There are many other differences but these are some of them.... (more)

How to stop others to post on your facebook page?

To stop people/visitor publish their posts on your page, you can do this from facebook page settings. It is required sometime to make your page more secure from unwanted posts by others. Lets see the the steps to disable this permission from page settings. Follow below steps:   - Go to your facebook page - Go to left sidebar on bottom  - Click on "Settings" - Click on "Vis... (more)

Apache Invalid command 'ProxyPass'?

If you are using Linux Ubuntu operating system and have setup apache web server. In some case if you get the error mentioned in question description and want to solve it, for that you just need to install proxy module and restart apache and it will solve your problem. Below are the steps to solve this issue: sudo a2enmod proxy sudo a2enmod proxy_http sudo systemctl restart apache2 Hope... (more)

What is Facebook Business Suite?

  With Facebook Business Suite (Pages Manager), you can access and manage the tools your business needs to thrive across your Facebook Page and Instagram account, simplified and in one place. Use this app to:  Create, schedule, and manage posts and stories to your Facebook Page and Instagram account. Facebook Business Suite lets you manage all of your connected accounts across Faceb... (more)

Free video editing software for desktop?

There are numerous computer-based totally enhancing software programs available for corporations seeking to create promotional films. The largest gain of loose video modifying software programs for computers is they have a tendency to have greater functions than most cellular video enhancing apps. If you are looking to edit your promotional video pictures on a finances, Look at our list of free... (more)

How to Become a Successful Youtuber?

In the back of each well-known vlogger is a protracted journey of struggle and hard paintings. There are investments you want to make, strategies you want to observe, and greater earlier than you even create your first video. Being a YouTuber seems like a amusing and rewarding profession. You simply make motion pictures on subjects that you like and make money off of them, proper? But, beco... (more)

Bank ATM cash withdrawal rules 2021?

As per the new order from the RBI, the interchange charge that banks can charge on automated Teller Machines (ATM) will see a growth of Rs. 2 from August 1, 2021. Note that, the RBI had elevated the interchange rate  in June from Rs 15 to Rs 17, while for non-monetary transactions the price was raised from Rs 5 to Rs 6. This fee is being charged through the banks to customers processing the bills... (more)

How to generate a cohort using python?

You can create a cohort to do analysis for your business repetitive customers and can make necessary decisions accordingly to improve customer retention for your business. Example below will generate the cohort which can be seen in attached image. You need to keep the csv file in same folder with python file to avoid any error.     import pandas as pd import numpy as np import mat... (more)

How to read and compare value of one csv with other csv in python?

We are giving a complete code example of reading csv and picking value from one csv and reading other csv file to compare the value. You can implement any logic to perform on values of csv files. Below is the example of using core csv module instead of using external package/module of python: import csv #Open files fb_csv = open('first.csv', newline='', encoding='utf-1... (more)

How to do web scrapping using python?

Scrapping is a very interesting topic but serious as well. Because it is not a legal work until website owner allows you to scrap it so if you are doing it, will completely be your responsibility. I'm going to show you how you can scrap a website and store it in a csv file. You can save it into database as well its up to your choice. There are various ways to scrap but I have come with Bea... (more)

What is Git Stash?

When you have been working on part of your project and things are in a messy state and you want to switch branches for some other work. The problem is that you don’t want to do a commit of half done work so you can get back to this point later. In such situations git stash command is very useful. Stashing takes the your modified tracked files and staged changes and saves it on a stack of ... (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)

Npm ERR cb() never called?

Try

npm update chokidar

the older versions aint compatible with Node v14 and above

 

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)

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 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)