teleren/devto huggingface dataset:
Django
Published: 2021-01-19 10:53:47

<h1>DJANGO</h1>
Django is a Python-based web framework that allows you to quickly create efficient web applications. It is also called batteries included framework because Django provides built-in features for everything including Django Admin Interface, default database – SQLlite3, etc. When you’re building a website, you always need a similar set of components: a way to handle user authentication (signing up, signing in, signing out), a management panel for your website, forms, a way to upload files, etc. Django gives you ready-made components to use and that too for rapid development.

<h2>Why Django Framework ?</h2>
<li>
Excellent documentation and high scalability.</li>
<li>Used by Top MNCs and Companies, such as Instagram, Disqus, Spotify, Youtube, Bitbucket, Dropbox, etc. and the list is never-ending.</li>
<li>Easiest Framework to learn, rapid development and Batteries fully included.</li>
<li>The last but not least reason to learn Django is Python, Python has huge library and features such as Web Scrapping, Machine Learning, Image Processing, Scientific Computing, etc.</li> <li>One can integrate it all this with web application and do lots and lots of advance stuff.</li>

![Educative Logo](https://blog.eduonix.com/wp-content/uploads/2018/10/Django.jpg)
## Difference between Django and Flask
| Flask  |  Django |
| - | - |
|  Python web framework built for rapid development. |  Python web framework built for easy and simple projects. |
|  Flask is WSGI framework. |  Django is a Full Stack Web Framework. |
| Flask provides support for API.  | 	Django doesn't have any support for API.  |
| Support Visual Debug.  |  No support for Visual Debug. |

![Educative Logo](https://www.mindfiresolutions.com/blog/wp-content/uploads/Flask-vs-Django.jpg)

### Basics in Django
To start the Admin Interface, we need to make sure we have configured a URL for our admin interface. Open the myproject/url.py and you should have something like −
```
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
   # Examples:
   # url(r'^$', 'myproject.views.home', name = 'home'),
   # url(r'^blog/', include('blog.urls')),

   url(r'^admin/', include(admin.site.urls)),
)
```
This is how we will setup the virtual environment 

### Online sites for Django Tutorials 
[Tutorialspoint](https://www.tutorialspoint.com/django/index.htm)
<br>
[Udemy](https://www.udemy.com/course/python-and-django-full-stack-web-developer-bootcamp/)
<br>
[Free Code Camp](https://www.youtube.com/watch?v=F5mRW0jo-U4)

These are some of the online learning platforms to learn Django
c++ vs python
Tags: python
Published: 2021-01-19 10:52:53


                  C++
C++ was developed by Bjarne Stroustrup in 1979.

 C++ code is less complex than C but more complex in contrast to python.

C++ is a compiled language.

C++ provides new operator for memory allocation and delete operator for memory de-allocation.

lower time complexity


PYTHON
Python was created by Guido van Rossum, and released in 1991.

Easier to write code.Python is an interpreted language.

Python’s memory allocation and deallocation method is automatic.

higher time complexity


c++ code:
//c++
header file(#include<iostream.h>)
using namespace std;

int main() {
  // your code goes here
  cout << "Hello World";
  return 0;
}
python code:
#python
print("hello world")
What is python?
Published: 2021-01-19 10:52:01

# WHAT IS PYTHON:
Python is an object oriented programming language.

Almost everything in Python is an object, with its properties and methods.

## WHAT IS A CLASS:
A Class is like an object constructor, or a "blueprint" for creating objects.

Create a Class
To create a class, use the keyword class:

Example
Create a class named MyClass, with a property named x:
```
class MyClass:
 x = 5
```

## WHAT IS A OBJECT:
 An object is simply a collection of data (variables) and methods (functions) that act on those data. Similarly, a class is a blueprint for that object.
Create Object
Now we can use the class named MyClass to create objects:


Example
Create an object named p1, and print the value of x:

```
p1 = MyClass()
print(p1.x)
```
Reasons why outsourcing mobile app development is good idea?
Published: 2021-01-19 10:50:38

Being incapable to get out of any work, you are traveling, is definitely a pain. Whether you want it or not, however, being able to harness the full power of the cloud from your smart-phone has led to a fast increase in productivity.
<a href="http://yoappstore.com/">Mobile App Development</a> has achieved rapid growth in the world as it is easily available to mobile users through whatever you require. This platform is perfect for developing feature-rich, fast, dynamic, attractive, and efficient apps. As a result, most business owners are adopting mobile apps.

In response to this growing need for mobile applications, mobile app development companies are providing services to thousands in a rapid manner. Some companies still prefer in-house developing apps, for various reasons, but a <a href="http://yoappstore.com/mobile-app-development-company.php">Mobile App Development Company</a> has many advantages to meet your app development needs.

<b>Top Reasons for outsourcing your Project</b>  
<b>Stronger focused knowledge:</b> Typically, the app development procedure involves various critical stages requiring deeper attention, more care, and precise knowledge. Each element is scrambling for the best digital strategy and use of modern resources, requiring expert app developers in the process who have extensive experience in the field. 
<b>Flexibility:</b> Having reliable expertise in a particular area of the application development process allows companies to choose which parts of the mobile app process to outsource.
<b>Time-saving alternative:</b> Time is of precious value for any business, and the app development process involves heavy components from building the app, scaling up the features, using the right technology to working on its UI, deploying and testing it.
<b>Ability to explore the depth:</b> Antithetic sets of info act like miracles in this business, with it becoming the key to any commercial success. The database collected by the mobile app Maker helps in moving any mobile app project to its final function.
<b>Financial comfort and affordability:</b> It does not blink as a setback when a business person insists on reducing development costs to keep their overall budget at optimal levels. Companies really look for alternatives that offer great mobile app solutions in exchange for an affordable investment.
<b>The full range of quality service:</b> If you collaborate well with a company that gives an absolute service suite of end-to-end <a href="http://yoappstore.com/services.php">App Development Services</a>, you will get to enjoy the process hassle-free. From ideation, conceptualization, discovery, development, testing, deployment, and support, you will receive the entire package so that in the end all you have to do is to wait for the finest result to come your way.
the route /email/resend returns : The GET method is not supported for this route
Tags: laravel
Published: 2021-01-19 10:46:31

After the upgrade from larave 5.8 to 6 then  to Laravel 7 , when I try to resend the password , this link `http://localhost:3000/email/resend`

return me the error bellow : 

````
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The GET method is not supported for this route. Supported methods: POST.
````

Should I create it manually ?
OOPS IN PYTHON
Tags: python, oop, object
Published: 2021-01-19 10:41:13

# What is OOPS?
## General Definition
Object-oriented programming (OOP) is a way of writing computer programs using "objects" to stand for data and methods.
### Object-Oriented Programming methodologies:
* Inheritance
* Polymorphism
* Encapsulation
* Abstraction
### Python oops concepts
Major OOP (object-oriented programming) concepts in Python include Class, Object, Method, Inheritance, Polymorphism, Data Abstraction, and Encapsulation.
## Classes 
### Syntax
Class is defined under a “Class” Keyword.
```
class class1(): // class 1 is the name of the class
```
 ## Objects:
Objects are an instance of a class. It is an entity that has state and behavior. In a nutshell, it is an instance of a class that can access the data
### Syntax
```
obj = class1()
```
### Creating an Object and Class in python:
```
class employee():
    def __init__(self,name,age,id,salary):   //creating a function
        self.name = name // self is an instance of a class
        self.age = age
        self.salary = salary
        self.id = id
 
emp1 = employee("harshit",22,1000,1234) //creating objects
emp2 = employee("arjun",23,2000,2234)
print(emp1.__dict__)//Prints dictionary
```
## Inheritance
It generally means “inheriting or transfer of characteristics from parent to child class without any modification”. The new class is called the derived/child class and the one from which it is derived is called a parent/base class.

## Polymorphism
Polymorphism is one of the core concepts in OOP languages. It describes the concept that different classes can be used with the same interface. Each of these classes can provide its own implementation of the interface. Java supports two kinds of polymorphism. You can overload a method with different sets of parameters.


## Encapsulation
Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse
Text Summarizer Experiment
Tags: php, showdev, webdev
Published: 2021-01-19 10:41:04

Another weekend, another experiment. This time I decided to dawdle around a bit with text processing.

The **actual** goal was to come up with an automatic tagging system for my personal KMS/KB project (you can read about it [here](https://0xff.nu/making-my-own-kms)) which led me down a rabbit hole of mostly fooling around with text and code as well as a little bit of research.

The automatic tagging was put on hold, but the concept and base code behind it paved the way for this little project and while this is far from being finished and/or actually usable, I managed to learn quite a bit about the process.

There exist libraries and projects that do a much better job, but using something readymade is not as fun now, is it?

[The Process](https://0xff.nu/text-summarization)
[Demo](https://0xff.nu/p/ts)
[Code](https://github.com/hxii/text_summarizer)
Do While Loop:
Tags: java
Published: 2021-01-19 10:39:56

Do while loop is used to repeat a block of statements. It is an exit control loop so, it checks the condition after executing of the statement. Do while loop consists of Test Expression and Update Expression. Since it is an exit control loop, it executes the program for at least 1 time, before execution ends.

Test Expression tests the condition and executes the statement only if the condition is satisfied.

Update Expression updates the variable loop variable by increasing or decreasing it by some value.

Example:

    // initialisation expression 
    int i = 1; 
    do { 

        // Print the statement 
        System.out.println("Hello"); 

        // update expression 
        i++; 
    } 
    // test expression 
    while (i < 6); 
The above code prints Hello 5 times.
JAVASCRIPT
Tags: javascript, java
Published: 2021-01-19 10:33:18

<h2>WHAT IS JAVASCRIPT?</h2>
JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification.

JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions. Educative Logo

<h2>WHAT IS THE USE OF JS?</h2>
JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive.
![Educative Logo](https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://coursera-course-photos.s3.amazonaws.com/83/e258e0532611e5a5072321239ff4d4/jhep-coursera-course4.png?auto=format%2Ccompress&dpr=1)

Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user.

As a multi-paradigm language, JavaScript supports event-driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM). However, ECMAScript itself does not include any input/output (I/O), such as networking, storage, or graphics facilities, as the host environment (usually a web browser) provides those APIs.
Voice search in eCommerce
Tags: voice, ux, react, webdev
Published: 2021-01-19 09:01:19

Search is a very important component for many apps and services and especially so in eCommerce.

Voice offers [many unique features](https://www.speechly.com/blog/voice-search/) that are not possible by using more traditional approaches, such as:

* Learn the language your users are using of your products
* Accessibility benefits for people who have difficulties using keyboard and mouse
* Support users on the go
* Intuitive user experience
* No need to clutter the UI with filters

Speechly is a developer tool for improving user experience with [voice user interfaces](https://www.uxmatters.com/mt/archives/2021/01/6-reasons-your-touch-screen-applications-should-have-voice-capabilities.php) and we created a demo showcasing how voice would work in a fashion eCommerce setting.

You can try the demo [here](https://fashion.speechly.com/).

Would be great to hear your thoughts! Would you use voice when browsing eCommerce sites? How would you improve the experience?

You can see a demo video of the experience below.

{% youtube xI68NT8D1m8 %}
Useful Tips to Manage Multiple Projects Simultaneously
Tags: productivity
Published: 2021-01-19 10:18:08

Managing multiple projects at once is a herculean task, and yet there is no escaping for companies in today’s competitive business scenario. As a team lead or a project manager, you must have witnessed the situation when you need to handle multiple projects at the same time. Here, project management software comes into the picture.

A user-friendly project management app or software can easily simplify organizational processes across different departments including sales, marketing, development, budget, and workflow management. It enables project managers to handle multiple projects simultaneously.

Read More : <b> <a href="https://www.taskopad.com/blog/top-tips-to-follow-for-multiple-project-management-at-the-same-time/">Top Six Strategies for Effective Management of Multiple Projects</a> </b>
The first UI Kits integrate Bootstrap 5 with Angular, React & Vue
Tags: react, angular, vue, bootstrap
Published: 2021-01-19 10:09:10

#Introduction

Since the launch of the first alpha Bootstrap 5, in MDB we have set ourselves an ambitious task. Within half a year, build UI Kits using it in the three most popular technologies. 

The situation in the world did not spoil us when we were receiving the latest information about the situation in the world we didn't know which will bring a new day. Within a few months, our team underwent a total change that ultimately led us to what we can boast about today.

![angular-react-vue](https://mdbcdn.b-cdn.net/wp-content/uploads/2019/04/a-vs-r-vs-v.jpg)

Here they are, the first UI Kits that integrate Bootstrap 5 with Angular, React & Vue. We're very hyped on this, our users also, which we can see how much interest the new packs are in the first days!

## Free MDB 5 Angular

![angular](https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/angular/about/assets/mdb5-angular.jpg)

➢ Latest Bootstrap 5 & Material Design 2.0
➢ Angular 11
➢ 500+ material UI components
➢ Super simple, 1 minute installation
➢ Detailed docs & multiple practical examples
➢ Huge and active community
➢ MIT license - free for personal & commercial use

**[DEMO & DOWNLOAD](https://mdbootstrap.com/docs/b5/angular/)**

-----

## Free MDB 5 React

![react](https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/react/about/assets/mdb5-react.jpg)

➢ Latest Bootstrap 5 & Material Design 2.0
➢ React 17
➢ 500+ material UI components
➢ Super simple, 1 minute installation
➢ Detailed docs & multiple practical examples
➢ Huge and active community
➢ MIT license - free for personal & commercial use

**[DEMO & DOWNLOAD](https://mdbootstrap.com/docs/b5/react/)**

---------

## Free MDB 5 Vue

![vue](https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/vue/about/assets/mdb5-vue.jpg)

➢ Latest Bootstrap 5 & Material Design 2.0
➢ Vue 3
➢ 500+ material UI components
➢ Super simple, 1 minute installation
➢ Detailed docs & multiple practical examples
➢ Huge and active community
➢ MIT license - free for personal & commercial use

**[DEMO & DOWNLOAD](https://mdbootstrap.com/docs/b5/vue/)**

-------------

The roadmap to our projects is well known and you can expect more important releases in the nearest future [LEARN MORE](https://mdbootstrap.com/docs/b5/roadmap/)


**Let us know in the comments how you like it! Thanks for your support!**
The divergence between SARS-CoV-2 and RaTG13 might be overestimated due to the extensive RNA modification
Tags: covid1, coronavirus
Published: 2021-01-19 10:01:44

In light of the COVID-19 pandemic, there has been much research conducted into the origins of the SARS-CoV-2 virus and similar viruses to establish a greater understanding. The researchers compare SARS-CoV-2 and RaTG13, a coronavirus found in bats, with the aim of calculating the divergence between the two strains. The Short Communication article is published as part of the Special Focus Issue ‘COVID-19: studying the global pandemic’ in Future Virology.

Aim: Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) has spread throughout the world. There is urgent need to understand the phylogeny, divergence and origin of SARS-CoV-2. Materials & methods: A recent study claimed that there was 17% divergence between SARS-CoV-2 and RaTG13 (a SARS-related coronaviruses) on synonymous sites by using sequence alignment. We re-analyzed the sequences of the two coronaviruses with the same methodology. Results: We found that 87% of the synonymous substitutions between the two coronaviruses could be potentially explained by the RNA modification system in hosts, with 65% contributed by deamination on cytidines (C-T mismatches) and 22% contributed by deamination on adenosines (A-G mismatches). Conclusion: Our results demonstrate that the divergence between SARS-CoV-2 and RaTG13 has been overestimated.
Coming to DevOps? Learn how to code
Tags: devops, code, tips
Published: 2021-01-19 09:57:20

---
title: Coming to DevOps? Learn how to code
published: true
description: Why should DevOps engeniers learn programming
tags: devops, code, tips
cover_image: https://assets.mkdev.me/posts/covers/000/000/012/original/mkdev_article.png
---
From two main ways to enter the modern infrastructure development world, the ops to dev way might be the more challenging one. One critical skill that you have to acquire coming to DevOps is how to write code. In this video, Kirill Shirinkin explains why:

{% youtube etMiQiLJY6M %}

***

*You can always hire [our mentors](https://mkdev.me/en/specializations) and learn directly from them!*
Constraints in SQLite FTS5 virtual table (unique, not null, constraints, compound)
Tags: sqlite, sql, database, fts5
Published: 2021-01-19 09:37:37

At first sight, it seems that this is impossible with FTS5, [as you cannot declare anything other than variable names and tokenization (and UNINDEXED)](https://www.sqlite.org/fts5.html).

However, this is easily solved by

1. Declare two tables, one for standard table, another for FTS5
2. Insert into the standard table first
3. Use a non-standard UPDATE statement

```sql
	INSERT INTO extra_q (id, chinese, pinyin, english, [type], description, tag)
	SELECT @id, @chinese, @pinyin, @english, @type, @description, @tag
	WHERE EXISTS (SELECT 1 FROM extra WHERE id = @id)
```

You should get an idea of how you can fit into your customization.

<small>Of course, using only one table is possible too, but it might be harder to INTEGRITY_CHECK or clean invalids / duplicates.</small>
How to Print Multiple Copies in Excel Office 365 ~ Complete Guide!!
Tags: excelpreface, excelbasics, exceltutorials, printmultiplecopies
Published: 2021-01-19 10:31:20

---
title: How to Print Multiple Copies in Excel Office 365 ~ Complete Guide!!
published: true
date: 2021-01-19 09:13:03 UTC
tags: ExcelPreface,ExcelBasics,ExcelTutorials,Printmultiplecopies
canonical_url: https://geekexcel.com/how-print-multiple-copies-in-excel/
---

In the previous post, we have seen how to [check the print preview in Excel](https://geekexcel.com/check-print-preview-in-excel/). Suppose you want to print more than one copy of your work means, what could you do? Not to worry, here we will show the simple steps to **print the multiple copies in Excel**. Let’s get started!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

## Steps to print the multiple copies:

Follow the below steps to print more than one copy of your worksheet in Excel.

- First, you need to click the **“File”** option from the **“Ribbon”**.

![File option](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/File-option.png)<figcaption id="caption-attachment-21122">File option</figcaption>

- Here, you can see the **“Print”** option. Just click it to open the print window.

![Select Print option](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/Select-Preview-option.png)<figcaption id="caption-attachment-21123">Select the Print option</figcaption>

- In the **“Print”** window, you can see the copies option on the left corner.
- Here, you can use the arrow to get the number of copies or type the number in the box.

![Print multiple copies](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/Print-multiple-copies.png)<figcaption id="caption-attachment-21186">Print multiple copies</figcaption>

## Wind-Up:

In this guide, you can get to know the steps to **print multiple copies of the data in Excel**. Hope you like it. If you have any **questions,** feel free to **comment**. Click here to know more about **[Geek Excel](https://geekexcel.com/)!! **

### Read Ahead:

- **[Excel Office 365 Print Options  [Simple Quick Steps to Print]](https://geekexcel.com/excel-office-365-print-options-simple-quick-steps-to-print/)**
- **[How to Print Only Specific, Even or Odd Pages in Excel Office 365?](https://geekexcel.com/how-to-print-only-specific-even-or-odd-pages-in-excel-office-365/)**
- **[How to Print X Number of Pages in Excel Office 365?](https://geekexcel.com/how-to-print-x-number-of-pages-in-excel-office-365/)**
- **[Quickly Print First Page of Each Worksheet in Excel Office 365!!](https://geekexcel.com/quickly-print-first-page-of-each-worksheet-in-excel-office-365/)**