teleren/devto huggingface dataset:
IBM Auto AI Predict Early Stage Diabetes - Part 1
Published: 2021-05-02 14:56:54

# Introduction 
What is `diabetes` ? diabetes is a serious condition where your blood glucose level is too high. There are two main types, Type 1 and Type 2. They're different conditions, but they’re both serious[[1][1]]. About 422 million people worldwide have diabetes, the majority living in low-and middle-income countries, and 1.6 million deaths are directly attributed to diabetes each year. Both the number of cases and the prevalence of diabetes have been steadily increasing over the past few decades[[2][2]].

<figure>
  <img src="https://www.who.int/images/default-source/departments/ncds/diabetes/whd2016-diabetes-infographic-v2-page-1.png?sfvrsn=a5638d91_2">
  <figcaption>diabetes infographic from WHO</figcaption>
</figure>

The American Diabetes Association (ADA) released new research on March 22, 2018 estimating the total costs of diagnosed diabetes have risen to $327 billion in 2017 from $245 billion in 2012, when the cost was last examined.

This figure represents a 26% increase over a five-year period.

The study, Economic Costs of Diabetes in the U.S. in 2017, was commissioned by the ADA and addresses the increased financial burden, health resources used, and lost productivity associated with diabetes in 2017. The study includes a detailed breakdown of costs along gender, racial, and ethnic lines, and also includes a breakdown of costs on a state-by-state basis[[3][3]].


<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rhxg6si0sbg6vylyzm0j.png">
  <figcaption>Diabetes Cost Infographic from diabetes.org</figcaption>
</figure>

As you can see in the infographic above, the price to treat diabetes is very expensive,and because of that it's easier for us to prevent this diabetes, than to get one of it, if we can detect if we got diabetes, we can go to the nearest doctor to get an advice on how to stop the diabetes, so that the diabetes doesn't get to the critical stage, one of the solution to that is using machine learning, we need to get the data of the patient that has an early stage diabetes then put it into machine learning model to check if we got one or no, that way we can prevent the diabetes to be spread even more. We can use tools like IBM Auto AI to achieve that, IBM Auto AI is a really simple tool to create machine learning model to be deployed into a web service and then we can get the prediction out of it to create that let's go to part 2.


[1]: https://www.diabetes.org.uk/
[2]: https://www.who.int/health-topics/diabetes#tab=tab_1
[3]: https://www.diabetes.org/resources/statistics/cost-diabetes
Write a text with a color gradient
Tags: webdev, css, tutorial, tip
Published: 2021-05-02 14:48:10

Today I offer you a CSS tip. In CSS, gradients are very popular, they allow a clean and pretty design. It also happens that we want to use the "color" property to apply a gradient to a text, unfortunately at the moment this feature is not supported by web browsers. That's why I propose you a simple tutorial to apply a linear gradient to a text.

You can see below the final result:
{% codepen https://codepen.io/clement-gaudiniere/pen/RwKXWMg %}


To do this, we will use "webkit" extensions. First of all we will add "`-webkit-background-clip`" which will allow to apply a gradient to the text. 
[Learn more... ](https://developer.mozilla.org/fr/docs/Web/CSS/background-clip)


Then we will add this property: "`-webkit-text-fill-color`" which allows to define the color used to draw the content of the letters. 
[Learn more... ](https://developer.mozilla.org/fr/docs/Web/CSS/-webkit-text-fill-color) 

Finally, we will apply the gradient with the property: "`background`", which is a fundamental property of CSS.

The complete code : 

``` html
<!DOCTYPE html>
<html>
  <head>
    <style>
      h1 {
       font-size: 72px;
       background: -webkit-linear-gradient(350deg, #22c1c3, #fd2df5);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       text-align: center;
      }
    </style>
  </head>
 
  <body>

    <h1>Text Gradient </h1>  

  </body>
 
</html>
```
Tips For Developers Who Want To Build A SAAS Startup
Published: 2021-05-02 14:38:49

Having built Proxies API and made it to 100 paid users for the first time in my startup life, I tried to compile a list of tips for other developers like me who might be thinking of starting something on their own.

Developers are a different beast, and the advice here may not apply to anyone who is not a developer and is a normal human being. 😀

Pick an idea you have used. When you start a startup one of the persistent problems you face is that you don't relate to the problem. If you are not a parent, its almost impossible to relate to any conversations that parents have about their troubles. You just don’t. This lack of empathy in a startup setting adds up to a huge disadvantage and will never allow you to be fully confident in what you are doing.
2. Pick an idea you have already paid for: If you have ever paid for a service, think very carefully about that. Can you code it yourself if you give yourself a few months? It is because developers don’t pay for shit. If an app forced you to do that, then there must a real need for that app.

3. Don’t pick something that needs a pretty UI: My product Proxies API is an API. I can get away with almost no UI. It is such a relief that I don’t have to work with a designer. I find that I am 4 to 5 times faster when I don’t have to deal with UI stuff.

4. Don’t pick anything that you need in-person sales for. Marketing is a developer’s friend. I realized this only later in my life. In-person sales are very weird for the developer personality. My advice. Don't do it. Learn how to market instead.

5. Pick something that is a self-serve model: People signup for a trial and decide to pay or not pay based on their trial experience. This is a beast that you can conquer. You don’t want to be going around talking to actual humans. It is not for us.

6. Try writing: If you can code and write, you will win the world. The whole success of Proxies API is based on constant improvements to code and a little bit of consistent writing over time.

7. Keep it real: Be clear on your motivations. I know that developers are not motivated by the prospect of making millions. But they are excited by the promise of financial freedom. So I was clear on my motivations when starting Proxies API — I didn’t want it to make me millions. I wanted it to give me financial freedom by earning what I earned in my day job. I didn’t need a penny more. By being clear about it, you are not living someone else’s life but your own, and it will give you the necessary fuel to keep going.

Have fun.

The author is the founder of Proxies API the rotating proxies service.
Flutter run error 
Tags: flutter, android, gradle, vscode
Published: 2021-05-02 14:34:47

I am try to use command flutter run in VScode to build app in emulators on android studio but its showed like this .... help me please to fix its.

thank you.
 
Using hardware rendering with device sdk gphone x86. If you notice
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on sdk gphone x86 in debug mode...
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
A problem occurred configuring root project 'android'.                  
> Could not resolve all artifacts for configuration ':classpath'.       
   > Could not resolve com.android.tools.build:gradle:4.1.0.            
     Required by:                                                       
         project :                                                      
      > Could not resolve com.android.tools.build:gradle:4.1.0.         
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 14s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        16.3s
Exception: Gradle task assembleDebug failed with exit code 1
Regular Expressions Notes
Tags: javascript, tutorial, beginners, devops
Published: 2021-05-02 14:23:56

Regular expressions are patterns that help programmers match, search, and replace text.
In these upcoming posts, you'll learn how to use special characters, capture groups, positive and negative lookaheads, and other techniques to match any text you want.

#### Using the test method
* Regular expressions are used in programming languages to match parts of strings. You create patterns to help you do that matching.
* Let's say you want to find `the` word the in the string `The dog chased the cat`, you could use the following regular expression: `/the/`. Notice that quote marks are not required within the regular expression.

* JavaScript has multiple ways to use regexes. One way to test a regex is using the `.test()` method. The `.test()` method takes the regex, applies it to a string (which is placed inside the parentheses), and returns `true` or `false` if your pattern finds something or not.
* Ex:
```
let myString = "Hello, my name is Randy.";
let myRegex = /Hello/;
let result = myRegex.test(myString)
```
```
console.log(result); will display true
```

#### Matching Literal Strings
Above, you searched for the word `Hello` using the regular expression `/Hello/`. That regex searched for a literal match of the string `Hello`. Here's another example searching for a literal match of the string `Randy`:
```
let myStr = "Hello, my name is Randy.";
let myTestRegex = /Randy/;
let result = myTestRegex.test(myStr);

console.log(result); will display true
```
* Note: Any other forms of Randy will not match. For example, the regex /Randy/ will not match randy or RANDY.


#### Matching a Literal String with Different Possibilities
* You can search for multiple patterns using the `alternation` or `OR` operator: `|`. This operator matches patterns either before or after it. For example, if you wanted to match the strings `yes` or `no`, the regex you want is `/yes|no/`.
* You can also search for more than just two patterns. You can do this by adding more patterns with more `OR` operators separating them, like `/yes|no|maybe/`.
* Ex:
```
let petString = "Alan had a pet dog.";
let petRegex = /dog|cat|bird|fish/;
let result = petRegex.test(petString);

console.log(result); will display true;
```
* Your regex petRegex should return false for the string Emma has a pet rock.
```
let petString = "Emma has a pet rock.";
let petRegex = /dog|cat|bird|fish/;
let result = petRegex.test(petString);

console.log(result); will display false;
8 Amazing Library For Your Next Project
Tags: javascript, webdev, beginners, productivity
Published: 2021-05-02 14:18:27

Hello,

How are you all Today I have written this post about the 8 amazing Library every developer know there are many new & easy use Libraries. I hope you like this also comments about your thoughts. also For more content follow me on Instagram  [@developer_nikhil27](https://www.instagram.com/developer_nikhil27/).

1.three.js for animation

[Three.js](https://threejs.org/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2cdwtrop83l5z4yuqhy.png)

2.Awesome Notifications For Amazing Notification

[Awesome Notifications](https://f3oall.github.io/awesome-notifications/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f7f2ln6dbpekwz1a2y5k.png)

3.Scroll Reveal - Animation 

[Scroll Reveal](https://scrollrevealjs.org/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5k4swyxfj8mtre9dckyk.png)

4.Vivus For SVG Animation

[Vivus](http://maxwellito.github.io/vivus/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmf3tckotqwzbq8ojepw.png)

5.Anime Js - Animation

[Anime JS](https://animejs.com/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/np75esim0szxxu8kyyow.png)

6.CSS Camera - For Fun

[CSS Camera](https://woodneck.github.io/css-camera/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5grxic0rfpxld04o3r4i.png)

7.AOS - Animate On Scroll Library

[AOS](http://michalsnik.github.io/aos/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zi0kw0r00h3lbb19nsz.png)

8.Chart.js - JavaScript charting

[Chart Js](https://www.chartjs.org/)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7i4t3x9ymmcke8a3f77q.png)


If you want to more support me then buy me a [coffee](https://www.buymeacoffee.com/nikhilbobade27).

Thank you!
V.0.6.5
Published: 2021-05-02 14:09:18

**Ajout des clans**

* Vous avez votre propre mine qui se regenere !
* vous pouvez payez des clans via le discord (pour le moment)
* Améliorer le claim de votre clan (améliorer la mine, etc..)
* Gérer vos guerres, alliances
* Combattez des factions (PVP,PVE) négocier des réductions !

**/!\ EVENT PVP /!\**

* Conquérir des zone
* gagner des combats
* Gagner des point warzone
* Détruire des factions joueur
Axios demo
Tags: node, javascript
Published: 2021-05-02 14:04:07

Offical Axios website: https://zetcode.com/javascript/axios/
get_req.js
```javascript
const axios = require('axios');
axios.get('http://localhost:3210/hehe/haha').then(resp => {
    console.log(resp.data);
}).catch((reject)=>console.log(reject));
```
get_req_async.js
```javascript
const axios = require('axios');
async function makeGetRequest() {
  let res = await axios.get('http://webcode.me');
  let data = res.data;
  console.log(data);
}
makeGetRequest();
```
basic_api.js
```javascript
const axios = require('axios');
async function makeRequest() {
    const config = {
        method: 'get',
        url: 'http://webcode.me'
    }
    let res = await axios(config)
    console.log(res.status);
}
makeRequest();
```
head_req.js
```javascript
const axios = require('axios');
async function makeHeadRequest() {
  let res = await axios.head('http://localhost:3210/hehe/haha');
  console.log(`Status: ${res.status}`)
  console.log(`Server: ${res.headers.server}`)
  console.log(`Date: ${res.headers.date}`)
}
makeHeadRequest();
```
Http in webmanager frontend POST:
```javascript
const { data } = await this.$http({
  url: '/common/resource/delete',
  method: 'post',
  data: idList
})
if (data.code === "200") {
  that.$message("删除成功")
} else {
  that.$message("删除失败")
}
```
Http in webmanager frontend GET:
```javascript
    async getUserInfo () {
      const { data } = await this.$http({
        url: this.$http.adornUrl('/sys/user/info'),
        method: 'get',
        params: this.$http.adornParams()
      })
      if (data && data.code === 200) {
        this.loading = false
        this.userId = data.user.userId
        this.userName = data.user.username
      }
    }
```

```javascript
const { data } = await this.$http({
            url: this.$http.adornUrl('/sys/user/password'),
            method: 'post',
            data: this.$http.adornData({
              password: this.dataForm.password,
              newPassword: this.dataForm.newPassword
            })
          })
          if (data && data.code === 200) {
            this.$message({
              message: '操作成功',
              type: 'success',
              duration: 1500,
              onClose: () => {
                this.visible = false
                this.$nextTick(() => {
                  this.mainTabs = []
                  clearLoginInfo()
                  this.$router.replace({ name: 'login' })
                })
              }
            })
          } else {
            this.$message.error(data.message)
          }
```
```javascript
async getFirstList (page) {
      const { data } = await this.$http(
        {
          url: '/content/page/list',
          type: 'get',
          params: {
            page: page,
            limit: 10
          }
        }
      )
      this.firstPannelPaginationSize = data.data.totalCount
      this.firstPannelPaginationNum = page
      this.firstPannelTableData = data.data.list
    },
```
Advice for new web designers
Tags: beginners, webdev, career, help
Published: 2021-05-02 12:13:10

Hi, how are you? I'm 15 years old and have always been into technology. Web design & development is something that's always interested me, and I have always messed around with it creating multiple html, CSS and JavaScript projects. I recently started using WordPress and made my first website for a relative, after that I got a few more bookings, and now I have five websites for my portfolio. I was wondering, as a beginner, if any of you had any advice for a beginner starting out with web design & development. How do you get inspiration for the design and UI of a website? How did you find your first clients? I'm open for any advice you can share! 😏

For my websites, I use WordPress, Elementor, I also often add some coding to my websites just to spice things up and to do things you can't usually do with Elementor.

Here is my website if you want to check it out: https://echocreations.co.uk
Although the mobile view still isn't finished as I have been too busy with my first few clients websites.

Thanks so much!
DW Global Media Forum 2021 Telah Dibuka
Tags: berita, accelerationprogram, startup
Published: 2021-05-02 13:43:36


Forum ini mempertemukan para profesional media dan pembuat keputusan dari politik, masyarakat sipil, budaya, bisnis dan sains dari seluruh dunia untuk bertemu, berdiskusi dan mengeksplorasi solusi.

# Fokus GMF

Global Media Forum 2021 tahun ini merupakan yang ke-14 kalinya dan secara umum akan membahas topik:

*   **Kecerdasan berita** - Bagaimana alat pintar dapat mendukung pekerjaan di ruang berita?
*   **Keragaman** - Bagaimana AI dapat membantu meningkatkan kesadaran tentang #bias dan #diversity?
*   **Sensor internet** - Bagaimana kita dapat mendeteksi penyensoran dan penghentian online serta menciptakan mekanisme dan pengamanan yang lebih baik untuk memastikan kebebasan berbicara?
*   **Mission Impossible?** - Bagaimana kita dapat memastikan komunikasi politik yang benar dan tepat di era kekacauan?
*   **Propaganda dan infodemik** - Bagaimana perusahaan media dapat melawan misinformasi dan disinformasi, dan dengan demikian mempertahankan kepercayaan?

Salah satu fokus GMF 2021 adalah menangkal berita hoaks yang makin gencar disebarkan oleh orang-orang tidak bertanggungjawab.

# Pendaftaran & Pelaksanaan

Setelah melewati tahap aplikasi awal, panitia akan memilih startup yang paling potensial untuk mengikuti program inkubasi selama tiga hari, yang dijadwalkan berlangsung secara digital sesaat sebelum Forum Media Global, yaitu pada 9-11 Juni.

Program inkubasi ini mencakup tiga hari pelatihan profesional dan persiapan untuk promosi terakhir menjelang DW Global Media Forum. Pada akhir periode ini, startup yang bersaing akan mempresentasikan proyek mereka dan juri ahli internasional dari DW akan memilih empat startup yang akan memasuki tahap final.

Para peserta yang berhasil masuk babak final akan mempresentasikan startup mereka melalui siaran langsung di platform digital resmi DW sebagai penyelenggara Global Media Forum.

Timeline

Batas Pendaftaran Aplikasi                      | May 15, 2021

Program Inkubasi                                         | June 9-11, 2021.

Pitch Day (@[GMF](mailto:GMF) 2021)                             | June 14, 2021

Presentasi Pemenang @GMF 2021        | June 15, 2021

# Pembicara

Beberapa pembicara yang akan tampil pada GMF 2021 diantaranya Angela Merkel (Kanselir Federal Jerman), Maria Ressa (wartawan ternama Filipina dan CEO situs berita Rappler), Jessica Zucker (Product Policy Manager di Facebook), Nas Daily (Vlogger), Philip Howard (Professor for Internet Studies di Oxford) dan masih banyak lagi.

[Daftar Global Media Forum 2021](https://docs.google.com/forms/d/e/1FAIpQLSfSi-vV5\_Tz6Xv7QZv3fhI5upO04NxvTguVVvRbiNP2jgoJHw)

*Originally published at [MauCariApa.com](https://maucariapa.com/dw-global-media-forum-2021-telah-dibuka/) on May 02, 2021.*
Qu'est-ce que vous aimeriez lire en français sur dev.to ?
Tags: french, tutorial, beginners
Published: 2021-05-02 13:27:35

---
title: Qu'est-ce que vous aimeriez lire en français sur dev.to ?
published: true
description: 
tags: #french, tutorial, beginner
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4t4wwil2kfy702raqxge.jpeg
---

Bonjour,

J'aimerais ajouter du contenu francophone sur dev.to

Je me demande donc qu'est-ce que vous aimeriez le plus lire.

- Tuto Javascript?
- Tuto PHP?
- Tuto Python?
- Tuto Ruby on Rails?

Aussi, que niveau ?

- Des tuto de base ?
- Des tuto intermédiaire ?
- Des tuto avancé ?

Voter svp en laissant un commentaire.

J'attend votre feedback.

Au plaisir,

Eric, Le Codeur

PS: N'oubliez pas de cliquer 'follow' si vous ne voulez rien manqué de mes futures post!
Copy venv from one folder to another and still be able to use it?
Tags: python, todayilearned
Published: 2021-05-02 13:10:12

If you have ever copied the python virtual environment folder from one location to another and faced problem using it, this article will help you understand how you can solve this problem.

Let us first create a folder, named example and then create a virtual environment and install `flask` using `pip`

```cmd
$ mkdir example
$ cd example
$ python -m venv venv
$ source venv/bin/activate
$ pip install Flask
```
Now you have a virtual env with flask installed.

After doing this python sets an environment variable `VIRTUAL_ENV`, let us check its value.
```
$ echo $VIRTUAL_ENV
/home/username/example/venv
```

We will now move this `venv` folder to some other folder.
```cmd
$ mkdir example2
$ mv venv/ example2/
$ cd example2
$ source venv/bin/activate
```

Now let us check the value of `VIRTUAL_ENV` variable
```cmd
$ echo $VIRTUAL_ENV
/home/username/example/venv
```
Wow, this is strange. *I have moved the folder but still the value of `VIRTUAL_ENV` variable is the same?*
This is because when you create the virtual environment, the location is hardcoded based on current directory.
You can check this inside `activate` file we have previously used to activate the virtual environment.
You will find something like VIRTUAL_ENV='/home/username/example/venv'.

The solution for using the virtual environment at the new location is simple. Just change this path in all program inside `venv/bin` directory to the new path :-)
Please don't do it manually!!!
Use tools like `sed` on unix or similar tools for the same.

Example using sed:
```cmd
$ old_path='/home/username/example/venv'
$ new_path='/home/username/example/example2/venv'
$ cd venv/bin/
$ sed -i "s|$old_path|$new_path|g" *
```

The last command is replace in-place the value of old_path with new_path. `*` signifies all files in current directory(not exactly, but for this example consider it). Make sure you run this command while present in `venv/bin` folder.

After doing this reactivate the virtual env.
```cmd
$ source venv/bin/activate
```

And voila!

Reference:
1. For `sed` command used: https://stackoverflow.com/questions/10309968/sed-search-and-replace-strings-containing