teleren/devto huggingface dataset:
What is Google Cloud platform?
Tags: googlecloud, gcp
Published: 2021-11-08 14:56:36

Google Cloud (also known as Google Cloud Platform or GCP) is a provider of computing resources for developing, deploying, and operating applications on the Web.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oc6tl3xco0igfarep662.png)


GCP is mainly a service for building and maintaining original applications, which may then be published via the Web from its hyperscale data center facilities

When you run a Web site, an application, or a service on GCP, Google keeps track of all of the resources it uses specifically, how much processing power, data storage, database queries, and network connectivity it consumes. you pay for each of these resources on a per-minute or even per-second basis, with discounts that apply when your services are used heavily by your customers on the Web.

###Basic Google Cloud services
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w14rmirck38t62f75nce.png)

####1. Google Compute Engine
Google Compute Engine is Google’s Infrastructure-as-a-Service virtual machine offering.  It allows customers to use virtual machines in the cloud as server resources instead of acquiring and managing server hardware. Google Compute Engine offers virtual machines running in Google’s data centers connected to the worldwide fibre network. The tooling and workflow offered by compute engine enable scaling from single instances to global, load-balanced cloud computing.

####2. Google Cloud Storage
GCP's Cloud Storage (GCS) is an object storage system, which is to say, its records maintain both the identity and the structure of any class of data given to it. Unlike a typical storage volume's file system, where each file or document is rendered as a string of digits whose location is registered in a file allocation table, object storage is an all-purpose block that's leased to consumers like space in a park-and-lock. It can hold entire organized databases, raw video streams, or matrices for machine learning models.

####3. Google Big Data
Big data systems store and process massive amounts of data. It is natural to host a big data infrastructure in the cloud, because it provides unlimited data storage and easy options for highly parallelized big data processing and analysis.
The Google Cloud Platform provides multiple services that support big data storage and analysis. Possibly the most important is BigQuery, a high performance SQL-compatible engine that can perform analysis on very large data volumes in seconds. GCP provides several other services, including Dataflow, Dataproc and Data Fusion, to help you create a complete cloud-based big data infrastructure.

####4. Google Cloud AI
Cloud AI offers various services that are needed to add Artificial Intelligence to our applications. Cloud-based machine learning, Cloud Vision API, and Cloud Speech API are some of these services.

There are more services that GCP provides click the below link to know more about **[Google Cloud Platform](https://cloud.google.com/)**
Artificial Intelligence
Tags: machinelearning, ai
Published: 2021-11-08 14:53:29

###Defination Of AI
Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. Specific applications of AI include expert systems, natural language processing, speech recognition and machine vision.
### Working Of AI
As the hype around AI has accelerated, vendors have been scrambling to promote how their products and services use AI. Often what they refer to as AI is simply one component of AI, such as machine learning. AI requires a foundation of specialized hardware and software for writing and training machine learning algorithms. No one programming language is synonymous with AI, but a few, including Python, R and Java, are popular.
In general, AI systems work by ingesting large amounts of labeled training data, analyzing the data for correlations and patterns, and using these patterns to make predictions about future states. In this way, a chatbot that is fed examples of text chats can learn to produce lifelike exchanges with people, or an image recognition tool can learn to identify and describe objects in images by reviewing millions of examples.
###Examples of AI
* Manufacturing robots
* Self-driving cars
* Smart assistants
* Proactive healthcare management
* Disease mapping
* Automated financial investing
* Virtual travel booking agent
* Social media monitoring
* Inter-team chat tool
* Conversational marketing bot
* Natural Language Processing (NLP) tools

#### Advantages of AI 
* AI drives down the time taken to perform a task. It enables multi-tasking and eases the workload for existing resources.
* AI enables the execution of hitherto complex tasks without significant cost outlays.
* AI operates 24x7 without interruption or breaks and has no downtime
* AI augments the capabilities of differently abled individuals
* AI has mass market potential, it can be deployed across industries.
* AI facilitates decision-making by making the process faster and smarter.

#### Disadvantages of AI
* AI-enabled machines incur heavy costs
* Machines lack creativity
* AI-enabled machines may kill job employments
* No emotions can be daunting at times
* AI-enabled machines do not understand ethics.
Best 3 Youtube channel for Learning DevOps
Tags: devops, resources, tutorial, beginners
Published: 2021-11-08 14:49:22

<h1><a href="https://www.youtube.com/c/TechWorldwithNana">1.TechWorld with Nana</a></h1>
<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3srq7jxwmyrlj00pvob6.png"alt="Techworld with Nana" />

#### Website:
[TechWorld with Nana](https://www.techworld-with-nana.com/)

#### About :
<li>TechWorld with Nana youtube channel is focused on Cloud and DevOps founded by @techworld_with_nana . <li>You can find beginner friendly crash course in which you will learn concepts of Docker , Kubernetes , Github Actions , AgroCD , Terraform etc from scratch.


<h1><a href="https://www.youtube.com/c/DevOpsDirective">2.DevOps Directive</a></h1>
<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hrftmpdev8ss3uoqs1oj.JPG" alt="DevOps Directive"/>

#### Website:
[DevOps Directive](https://devopsdirective.com/)

#### About :
<li>DevOps Directive youtube channel also focuses on Cloud and DevOps concepts, founded by @sidpalas  . <li>You can find beginner friendly tutorial in which you will learn concepts of Docker , Github Actions and Cloud platforms like AWS from scratch. <li> Sid also shares tips and best practices about how to build small size docker images.
<li>On DevOps Directive youtube channel you will also find talks and podcast with professionals working in Tech Industry which are hundred percent insightful to watch.


<h1><a href="https://www.youtube.com/c/Freecodecamp/">3.FreeCodeCamp</a></h1>
![FreeCodeCamp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdt8b4bbwid9p6wzq3fp.JPG)

#### Website:
[FreeCodeCamp](https://www.freecodecamp.org/)

### About
<li>On Freecodecamp youtube channel you will find numereous Devops and Cloud related tutorials and complete crash course t
<li> It doesn't focus only on DevOps and Cloud but reason to add the youtube channel in this blog is for getting started with DevOps you need to have basic knowledge of Web Development for which Freecodecamp have covered you.
I guess every web languages and framework tutorial are present on FreeCodeCamp.
<li> Freecodecamp also has amazing blogs written by amazing professional folks which you will find on there official website.
Future Plans (Outside of Cybersecurity)
Published: 2021-11-08 14:40:53

I am in pain. Paintball is fun, but it hurts. Off topic, but now we're getting back on topic. 

# Building an app
Someone asked me, "If you could build an app/website, what would you build?" This question is actually really easy for me, since I've already built my passion project, and I am rebuilding it. My idea is to have a simple website to connect people who are struggling with their mental health to professionals to help them.

## Background & Reasoning
Mental health is a topic I tend to gravitate to since I've struggled with my mental health in the past. I was a part of a team that built a website in the past as a prototype for breaking the stigma around mental health, but we did not know enough to continue on with the project. Now, I want to finally create a service to get people connected. Personally, I do not know of a single resource for finding professionals past a Google search. It seems Google SEO is the only way to find someone, and that's just not right. Just because one therapist has more links online than another, doesn't mean they are better. Don't get me wrong, any help is better than no help. But different places are better for different people. There should be a database with every single resource for people.

## The website
I'm crazy to think that I could go around and get information about every single mental health service, therapist, hotline, etc. in the world, or even this country. That's why it would be open source. I would provide the backbone and some places local to me to give examples, then the community would fill in the gaps. It's a simple design; just a page with a table and a page to suggest other places. The logic would be more complex, and there would have to be validation on any new resources. My dream is to reach across the world, but I am a builder, not a publicist.

## Roadblocks
I'm afraid that even if this website is built better than Google, it still won't get off the ground. It's tough trying to launch a new project. I've seen teams better than me scrap entire projects because they couldn't launch. It's the reason why I keep stalling on development. I can do all this work for it to just be a GitHub repo, staring at me every day until I delete it forever. 
Fun, right?
Oh, we also have the internet trolls to worry about. Anything with input is ripe for trolls to destroy. Hence why there will be no user input past suggesting new places. 

## Future
If I really had all the time in the world, and no concern for living costs, I would spend my time developing this website. It's my passion project, but it also faces many giants before it will be successful. Launch will be the first major roadblock. Also, maintenance if it ever becomes popular will be a struggle. And we're going to end the giants there so I don't become discouraged any more. 

## Cookie
I need a cookie. You do too. Go have a cookie.
Cannot import name 'TextField' from 'wtforms'
Tags: flask, errors, wtforms, textfield
Published: 2021-11-08 14:38:57

---
title: Cannot import name 'TextField' from 'wtforms'
published: true
description: Learn how to fix Cannot import name 'TextField' from 'wtforms' 
tags: flask, error, wtforms, textfield
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4czgayps3npjzuesdn1s.jpg
canonical_url: https://docs.appseed.us/content/how-to-fix/cannot-import-name-textfield-from-wtforms
---
Hello Coders!

This short article explains how to fix **"Cannot import name TextField from wtforms"** error that recently bumped after **WTForms** library update to version 3.x. For newcomers, **WTForms** is a flexible forms validation and rendering library for Python/Flask web development. It can work with whatever web framework and template engine you choose. It supports data validation, CSRF protection, internationalization (I18N). 

> *Thanks for reading!* - Content provided by **[App Generator](https://appseed.us/)**.

---

## Error Text

In case your legacy app uses WTForms without an explicit version in `requirements.txt` file (like me) the next compilation might lead to   a runtime error in case **TextField** type provided by the concerned library occurs somewhere in the codebase. 

```python
from wtforms import TextField
>> ImportError: cannot import name 'TextField' from 'wtforms'
```

The above error occurs when the `TextField` property is used with **WTForms** version `3.0` or above because the `wtforms.TextField` deprecated in favor of `wtforms.StringField`.

---

## How to fix it

> Solution 1 - Replace `TextField` type with `StringField`

Note: This solution works with WTForms 3.x and 2.x versions

```python
from wtforms import StringField
// replace all TextField usages with StringField type 
```

--- 

> Solution 2 - Use the latest stable 2.x version of WTForms

```bash
// Use 2.x version
pip install WTForms==2.3.3
```

Using an older version provides a quick fix for your codebase but is not recommended in the long run. 

--- 

## Free Sample

For this open-source sample, I've used the 2nd solution where the **Cannot import name TextField from wtforms** error is solved by freezing the WTForms version in [requirements.txt](https://github.com/app-generator/flask-datta-able/blob/master/requirements.txt) file, without a codebase update. 

- 👉 [Datta Able Flask](https://github.com/app-generator/flask-datta-able) - Source Code 
- 👉 [Datta Able Flask](https://flask-datta-able.appseed-srv1.com/) - LIVE deployment

---

![Cannot import name TextField from wtforms - Free sample for the fix.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/545s8xf4hhdhsr0p83no.gif)

--- 

> **Thanks for reading!** For more resources, please access: 

---

- [WTForms](https://wtforms.readthedocs.io/en/3.0.x/) - official documentation
- [Flask](https://flask.palletsprojects.com/en/2.0.x/) - library documentation
- Join the [AppSeed](https://appseed.us/) community on [Discord](https://discord.gg/fZC6hup) and connect to other fellow developers.
Swift Programming 101
Tags: swift, ios
Published: 2021-11-07 00:51:50

Ten years ago, in July of 2010, Chris Lattner created a folder on his computer called
Shiny, and a new computer language was born. Four years later, in 2014, that language, renamed Swift, was introduced to the public, and was greeted with a mixture of surprise and excitement — and skepticism.


<b> A complete Swift command is a statement </b>. 
A Swift text file consists of multiple lines of text. Line breaks are meaningful. The typical layout of a program is one statement. 

``` var greeting = "Hello, playground" ```

<b>The print command provides instant feedback in the Xcode console. </b>
You can combine more than one statement on a line, but then you need to put a semicolon between them:

``` print("hello"); print("world") ```
![First set of code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6x6by715xljmaznb7lck.png)

<b> Let in Swift is a constant to declare variables and cannot be reassigned. </h1>

![Code Snippets](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9qgqddswl4u2c2s5kel.png)
Our Experience at Web Summit 2021
Tags: webdev, cloud, startup, programming
Published: 2021-11-08 14:18:36

Written by Dan Parry. 

---

Every year Lisbon plays host to the world-famous Web Summit tech conference, and this year, along with over 42,000 other attendees for 128 countries the Codesphere team was there to introduce the next generation of cloud services to the community.

![websummit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r40cl0c9ghrdx3tq911.png)


The conference has always been about the people; The technologies on show are simply the tools that bring us all together. After 4 days of connecting with brilliant and insightful industry leaders, we are ready to get to work on the next steps in our plan to deliver the first truly holistic solution for startup cloud development.

---

###What did we learn?

We learned that you're probably using the cloud service provider you are because they gave you free credits right? Or better yet, you switched to your current provider because the last one ran out? We can't argue with that and we are already hard at work on a better option for our users.

Unmanageable UIs, the inability to debug, and ineffective monitoring are all part of the current reality for the CTOs and founders we spoke to, and we're happy to provide the long-awaited solution to these problems with Codesphere so our users can get back to coding.

Devs are a resourceful group and for every pain point, we discover there is a workaround in place, whether it's using different tools on top of one another or straight up switching to different providers from project to project, devs have been finding a way.

But there has to be a better way, a simple, all-in-one solution to the entire development process, and that's our goal for the future of Codesphere. After speaking with countless other attendees and exhibitors at Web Summit we are ready to get back to work building the future of cloud services.

> **"The more you know about your customers, the more you can provide them information that is increasingly useful, relevant, and persuasive"**

![web summit logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ti15ewyukl6pnqnu0e2g.jpeg)

---

A big thank you to all the fantastic and innovative people we connected with in Lisbon. Web Summit for us was about pitching to and learning from our audience, and after a long week, we have a lot of feedback and inspiration to work with.

We look forward to seeing you all next year.

In the meantime, let us know what you want to see in Codesphere to solve your dev-ops issues.

We want to get to know you, so you can get to know [Codesphere](https://link.codesphere.com/FL).

![codesphere logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ocubk8oho7asvgx4jt4z.png)

Monday also saw the launch of our brand new website that we were happy to share with the Web Summit community - [check it out here!](https://link.codesphere.com/FL)
Google Lighthouse failing with NO_LCP error
Tags: lighthouse, javascript, webdev, performance
Published: 2021-11-08 13:40:42

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/judl82cajz2jmozfsi0x.png)

Ok babies, so you've all googled REAL HARD, and all they told you was "clean your cache/go incognito mode". Thanks a lot, dude from medium.com - that was quite an insight, didn't help me, unfortunately.

You just keep staring into: 
```
Largest Contentful Paint
Error!
Something went wrong with recording the trace over your page load. Please run Lighthouse again. (NO_LCP)
``` 
scratching your head and thinking what else could have gone wrong. I'll give you a new fresh lead to check!

Run lighthouse cli against your page (its available as a docker container too, so there's no excuse no to try it). If today is your lucky day, you'll see some text, looking suspiciously RED there:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtv4tndbkisx7i264etn.png)

 
Whoopsy-poopsy, my friend! As of today, there's a still [an open bug in chromium](https://bugs.chromium.org/p/chromium/issues/detail?id=1104218#c2) that i have stumbled upon in [lighthouse github issues](https://github.com/GoogleChrome/lighthouse/issues/10869)

Animating opacity from 0 to 1, as well as animating things off-screen - might cause chrome thinking that the "Largest contentful paint" will never happen, and quit the lighthouse check.


Unlike FIRST contentful paint - there's no config to offset it. `maxWaitForFcp` - exists, `maxWaitForLcp` - doesnt. You can play with non-zero values for `pauseAfterFcpMs`, `networkQuietThresholdMs`, `pauseAfterLoadMs`, `cpuQuietThresholdMs` - all of which did not help me. 

What i did next, was searching for `opacity: 0` and `transition` in our sass files - dropping those did not help either. 

The culprit was in the in-house design library we used, that had a nifty class for react-like skeleton-animations. 

```
background-size: 400%, 100%;
animation: xxxx 6s linear infinite;

@keyframes xxxx {
  0% {
    background-position: 200% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}
```

One find-replace of all mentions of this class with "", and one rebuild later - i had my metric displayed as it should. 

Send virtual beers if that was it, i'll accept them all.
ARTIFICIAL INTELLIGENCE
Published: 2021-11-08 13:50:28

Artificial Intelligence
John McCarthy is known as the Father of Artificial Intelligence. The term Artificial Intelligence or AI was coined in the year 1956 at Dartmouth Conference.
Artificial Intelligence refers to the intelligence of machines. This is in contrast to the natural intelligence of humans. Artificial Intelligence, machines perform functions such as learning, planning, reasoning and problem-solving. Artificial Intelligence is the simulation of human intelligence but by machines. It is fastest-growing in the World of technology and innovation. AI or artificial intelligence has got many benefits in various fields. like 
AI can greatly increase the rate of work in manufacturing. Manufacture of a huge number of products can take place with AI. Furthermore, the entire production process can take place without human intervention. Hence, a lot of time and effort is saved.
Artificial intelligence is assumed a new technology, but in reality, it is not new. The researchers in the field of AI are much older. It is said that the concept of intelligent machines was found in Greek Mythology.
Advantages of AI:
1)One of the biggest achievements of Artificial Intelligence is that it can reduce human error.
2)AI can be very helpful in risky situations where humans can't reach or find difficult survival. Such as exploring the deepest part of the sea.
3)With AI, 24*7 support can be provided to the customers using chatbots as customer care.
4)It is very helpful in daily activities, such as Google Assistant Alexa, and other virtual assistant technology are helping to make our life easier
Disadvantages of AI:
1)The development and maintenance of AI systems are very expensive.
2)The dependencies of human beings on such technologies making humans lazy.
3)There is always a fear with AI that if it gets advanced, it may be harmful to humanity.
4)If inputs are not fed correctly to AI systems, then it may cause harmful results.
PYTHON and its introduction
Published: 2021-11-08 13:44:58

Python is an object oriented interpreted language thats easy to use, runs on many operating systems including Windows, Mac OSX, Linux and more. Its named after the cult comedy show Monty Python's Flying Circus. Python supports basic data types such as numbers and strings as well as more complex types like lists and dictionaries that can greatly simplify data processing. 
Python also supports several programming paradigms and can be used for procedural programming, functional programming and object oriented programming. 
Data in python is so strongly and dynamically typed, so your freed from worrying about declarations.
It is a very powerful language. One of the 3 official languages at Google. 
Creator of Python is Guido Van Rossum.
Python team decided to break compatibility when creating python 3.
Although Python 3 is similar to Python 2, they no longer guarantee that python 2 programs will work python 3 interpreter. 
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files. Python can be used to handle big data and perform complex mathematics. Python can be used for rapid prototyping, or for production-ready software development.
Python was designed for readability, and has some similarities to the English language with influence from mathematics.
Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.
A sneak peek at Tailwinds next big release - version 3.0
Published: 2021-11-08 13:39:34

The first alpha release of Tailwind CSS v3.0 was released on October 1st. Let’s take a look at all the new features and improvements that Tailwind CSS V3.0 brings to the table. This article will be updated when more information is shared during the development.

Read the full story here
https://www.themes.dev/blog/tailwind-css-version-3/