teleren/devto huggingface dataset:
My HNG8 Internship Goals.
Published: 2021-08-18 11:40:06

The software game is a very challenging one for those of all levels as it requires constant learning.
By levels I mean be it a beginner, intermediate or advanced. Why? this is mainly because we always have new engaging problems to solve and also, the software we use are most often revised for better functionality and in turn we are able to revise our approach.
I am currently studying software engineering and this has been both very challenging and exciting. One method I use to build my skills is by engaging in programs, meetups, internships etc. This time around I have been fortunate to take part in the HNG internship.
The HNG internship is a competitive remote internship, it is one of those bridges between learning to code and being the best in the world.
My journey to HNG internship actually started with the zuri training which I successfully completed under the front-end track. The zuri training was an educative training with basic instruction to software development in general.
As a front-end developer in the HNG Internship we are of course obliged to be able to get our way around basic web tools like HTML, CSS and JAVASCRIPT. In addition to that, we are expected to know frameworks and libraries like REACT, VUE etc which will facilitate our tasks as front-end developers.
My main aim in this internship is to be able to transform any UI/UX design without any difficulty, to make a site very responsive and also add amazing functionality to a page.
Hopefully after completing my internship program , I will be able to confidently present myself as an ideal front-end developer.

To get familiar with the software development, below are some tutorial links for some essential concept to grasp when embarking on this journey.
Figma - https://www.figma.com/resources/learn-design/

Git - https://www.tutorialspoint.com/git/index.htm

Html- https://www.youtube.com/watch?v=qz0aGYrrlhU

Python- https://www.w3schools.com/python/

And also if interested in the Zuri training powered by INGRESSIVE FOR GOOD  you can checkout their site using the link below
https://training.zuri.team/
Diabetes Predictor App
Tags: flutter, python, deeplearning
Published: 2021-08-18 11:33:51

Diabetes is a disease that occurs when your blood glucose, also called blood sugar, is too high. Blood glucose is your main source of energy and comes from the food you eat. Insulin, a hormone made by the pancreas, helps glucose from food get into your cells to be used for energy. Sometimes your body doesn’t make enough—or any—insulin or doesn’t use insulin well. Glucose then stays in your blood and doesn’t reach your cells.

Here is a Flutter app that will help to predict that whether user has diabetes or not.

![about](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxp9waszm0nywecnbgfa.png)

## The prediction is based on the value of:
- Number of time pregnant
- Diastolic Blood Pressure
- Tricep skin fold thickness
- 2-Hour Serum insulin
- Body mass index
- Diabetes pedigree function
- Age

![main](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xukbzjbqtasagm68t0in.png)

## Tech Stack used:

-  Frontend
 
For frontend Flutter is used and the language that is used in flutter is Dart.

-  Backend
 
For backend Deep learning model is used which is made by using pima Indians diabetes dataset and for the interface between backend and frontend Python CGI is used.

-  Backend host

For hosting the backend AWS is used.

## Creating App

- Created about and main page in flutter code you can see in [GitHub](https://github.com/Nitesh-thapliyal/Diabetes-Predictor-App)

- Created Python CGI Script to connect server with frontend

![CGI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/613eo7w8pskxux1qipw4.png)

- Used http package in flutter for making HTTP requests, [documentation](https://pub.dev/packages/http)

```dart
import 'package:http/http.dart' as http;

var url = Uri.parse('https://example.com/whatsit/create');
var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
print('Response status: ${response.statusCode}');
print('Response body: ${response.body}');

print(await http.read('https://example.com/foobar.txt'));
```
- created model and hosted it in AWS

Now we can enter the values so that app can predict whether user has diabetes or not.

![Values](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyc0ddow8agskzu1qyxy.png)

Now as soon as we click in search icon, behind the scene values will go to server and process the values and output will be get by flutter and displayed in app.

![output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z8wv2grvgmlrcfv6dvka.png)

here you can see the output **"you have diabetes"** this output was mentioned in CGI script, flutter get the output and displayed in the app.


So that's how we can use DL model and integrate it with app.

Thank you!!
php 8 fun
Tags: php, discuss
Published: 2021-08-18 11:25:14

From all of the breaking changes introduced in PHP 8 I think the change to the comparison operator is the most intricate one:
```
// To be `true` or not to be? That is the question.
'' == 0
'' === 0
'0' == 0
'💩' == 0
'0foo' == 0
```

See the difference of evaluation in PHP 7 and PHP 8 here:
👉 https://3v4l.org/farC0

I just don't understand how it's possible that I have not encountered a bug because of it yet.

Hopefully, no sensible person is using the equality `==` operator.
Time needed to search in a list or set in Python
Tags: python, performance
Published: 2021-08-18 11:10:31

The time it takes to search an item in a `list` depends on the size of the list and the position of the item in it. While for `set` the time cost is maintained. Here, we do not consider the time needed to create the lists and sets.


```python
l100 = list(range(100))
s100 = set(range(100))
l100k = list(range(100_000))
s100k = set(range(100_000))
```


```python
%%timeit
100 in l100
```

895 ns ± 31.2 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)



```python
%%timeit
100 in s100
```

25.8 ns ± 1.56 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)



```python
%%timeit
100_000 in l100k
```

874 µs ± 22.6 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)



```python
%%timeit
100_000 in s100k
```

25.6 ns ± 0.812 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)



```python
%%timeit
1 in l100k
```

33.5 ns ± 0.589 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)



```python
%%timeit
1 in s100k
```

26.4 ns ± 1.13 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)
Training in Bangalore
Published: 2021-08-18 10:15:20

https://intellimindz.com/azure-course-in-bangalore/
https://intellimindz.com/devops-course-in-bangalore/
https://intellimindz.com/ab-initio-training-in-bangalore/
https://intellimindz.com/informatica-training-in-bangalore/
https://intellimindz.com/informatica-mdm-training-in-bangalore/
https://intellimindz.com/informatica-data-quality-training-in-bangalore/
https://intellimindz.com/ccna-course-in-bangalore/
https://intellimindz.com/guidewire-training-in-bangalore/
Rails Movie Review App
Published: 2021-08-18 09:51:34

##That's it for project three!

This morning, I've finished building out a movie review app using Ruby on Rails. Here is the link to the [git repo](https://github.com/atcarter/Movie-App-Rails-Project). I continue to use this similar movie review idea for all of my projects and it's interesting to see how the implementation of the concept changes as I learn new technologies. 

###What does it do?
To access the app, a user will need to log in/sign up for an account. There is the option to sign up through the app or use your Google account to sign in via Omniauth. Once logged in, a user can choose a movie, and submit a review that includes the number of stars (1-5), and any commentary (less than 500 characters).

There are four main models that interact in the background of the application. A Genre has many movies and has a name field. A Movie has a title, year, synopsis, belongs to a Genre, and has many Users through Reviews. A Review has a rating, content, and belongs to both a Movie and a User. Finally, a User has an email, username, password, and has many Movies through Reviews. With these associations, a user can navigate through the app and see things like all the users who watched a particular movie or all the movies that fit under a certain genre.

I also created an admin class that can not only create/edit anyone's reviews, but also create, edit, or delete genres and movie and their associated children. I decided to add an admin account once I realized that it wouldn't make sense to give any user all of those actions within the application. A user can visit every page within the app except for the pages that contain forms and all CRUD-related links/buttons are unavailable to them.

###What did the process look like?
I tried to be a bit more organized with this project than I had been in the past. For the most part I utilized Microsoft OneNote to keep track of my ideas and plans. Even as I was finding bugs and things that I wanted to change, I kept an evergreen list going so that I wouldn't forget anything. I also kept a physical journal nearby to sketch or write out any ideas that I had, both while at my desk and while away. It was especially helpful when I had ideas at work from wherever I had left off.

###Any takeaways after completing the project?
As always, having a plan and sticking to it helped the most. Whenever I felt like I might be getting too far ahead of myself, I took a look at the overall outline to recalibrate, get my bearings, and continue moving forward with the project.

This project has been the most mindful I've ever been with making meaningful commits; it even helped jog my memory when I would forget where I left off.

One thing I'm usually bad at is asking for help; I did a lot better job at asking for questions and getting that help sooner than later.

One thing I would still like to do in the future would be to utilize a movie API to retrieve the film data so that a user can search for a film they'd like to review.

Thanks for reading!
What are your best tips for starting well in a new job?
Tags: career, discuss, help
Published: 2021-08-18 09:11:35

Hello friends. I'm happy to start a new job soon 🎉 

I'm also a bit anxious. 

In the past, I had been overwhelmed by all the unknown that comes with a new job: unknown people, unknown expectations, unknown tools, unknown processes, unknown codebase, unknown libraries or even programming language, unknown unknowns.

What are some of your best tips to be more prepared to handle all of this?
How Passwords are costly
Published: 2022-11-01 06:26:06

---
title: How Passwords are costly
published: true
date: 2021-08-18 09:11:23 UTC
tags: 
canonical_url: https://mojoauth.com/blog/passwords-are-costly/
---

Passwords have become an integrated part of our lives these days. With the rising Technology sector, the average user now has 25 percent more passwords than they did before the pandemic began. According to research from NordPass, the average person has approximately 100 passwords to remember! Anyone with a computer at work and internet at home is likely to drown in the management of passwords. Organizations have to ensure the security of passwords since a lot is at stake.

[Read On](https://mojoauth.com/blog/passwords-are-costly/)
The Next Generation PHP Framework: CandyPHP
Tags: php, framework, mvc, candyphp
Published: 2021-08-18 08:51:48

Nowadays php is like an aging person but frameworks keeps it alive. Today i'm going to tell you about this new generation PHP Framework.


## What you can do with this framework?

### 📅 Ability to Set Scheduled Tasks
I guess there is no framework where you can't use CronJobs, but in CandyPHP you can set CronJobs without any presetting.

### 🗃️ Multiple Database Connections and Simple, Cachable SQL Operations
With CandyPHP, you can easily operate on many databases at the same time. With database caching you can use similar queries from cache without forwarding them to mysql. This is more useful than you think because CandyPHP updates the cache whenever there is a change in the database. 

### 🗄️ Automatic Daily Web and SQL Backups (& autoclear)
You can set Candyphp to take daily web and sql backups. 
Isn't it going to take up a lot of space on your system to make backups every day..? Of course no.
* Backups of all days in the last week are kept.
* Backups of the first day of each week in the last 1 month are kept.
* A backup is kept for the first day of each month in the last 1 year.
* In older backups, the backup of the first day of each year is kept. 

### 🌐 Multi-Language Web Pages
Again a feature in many frameworks.
But candyphp automatically loads language files according to your visitor. 

### 💨 Automatic AJAX Forms and Pages
CandyPHP uses skeletal structure for view designs. thus allowing you to easily upload content with ajax. 
Let me give an example; 

`candy.loader('a.loader',{content:"#content"});`
When you add this code to your javascript, your content will be loaded with ajax when clicking on links with .loader class. It really is that simple.

### ✉️ Sending Mail With Blade Design
It allows you to design with the candyphp blade. Moreover, you can create blade designs for mail. so you can easily design and manage your mail content with your php variables.
Goodbye text mail templates...

### ⚙️ Ability to Use Composer Packages
Composer is not required to use CandyPHP. It is more than enough to just throw the source files to your server. but you can easily integrate composer if you want.

### 🤞 Writing Async Functions
PHP can sometimes really restrict developers. Writing asynchronous functions with CandyPHP is as easy as below. moreover, you don't need to make any presets.
`Candy::async(function(){ /* code */ });`

### 🕘 Ability to Run a Past Version of the Site
You can run a past version of your website you want only for yourself.
For this, system backups must be turned on. 

### 🔥 And more... 
CandyPHP has a simpler and more useful structure than other frameworks. It has many more unique features.

If you are interested in CandyPHP, you can check it from the links below. 

https://github.com/CandyPack/CandyPHP
Making Laravel Livewire Authentication pages responsive
Tags: laravel, css
Published: 2021-08-18 08:41:04

I recently started using Laravel livewire, and I must confess it has made things easy. However, I discovered the authentication pages are not mobile responsive. Since it took me a while to figure it out, I decided to share how I resolved this little issue with the dev community.
To fix this, navigate to 'guest.blade.php' file within the 'layout' folder in your views and simply add a little bit of style to the header section:
```
        <style>
            body {
                overflow: scroll;
            }
        </style>
```
And voila, that solves it.
Thanks for reading this short post.
Create a Netflix clone from Scratch: JavaScript PHP + MySQL Day 23
Tags: php, javascript, webdev, tutorial
Published: 2021-08-18 07:42:54

Netflix provides streaming movies and TV shows to over 75 million subscribers across
the globe. Customers can watch as many shows/ movies as they want as long as they are
connected to the internet for a monthly subscription fee of about ten dollars. Netflix produces
original content and also pays for the rights to stream feature films and shows.


In this video,we will be setting up verification page

{% youtube agfU0K2_vRw %}

If you like my work, please consider
[![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm11knj7d8zwcvo150q2.png)](https://www.buymeacoffee.com/cglikpo)
so that I can bring more projects, more articles for you

If you want to learn more about Web Development, feel free to [follow me on Youtube!](https://www.youtube.com/c/ChristopherGlikpo)
Keep Your Javascript Bundle Size in Check
Tags: webperf, javascript, webpack
Published: 2021-08-18 07:34:55

---
canonical_url: https://wicki.io/posts/2021-08-keep-your-bundle-size-in-check/
---

Are you a developer who is concerned about the size of newly added libraries? Or do you want to find a culprit in a rather big Javascript bundle?

If you’re like me, then you answered yes to both questions.

In this post I’ll cover a few tools that come in handy for a **quick** analysis of bundle sizes **without changing or ejecting your build architecture**.

---

# VS Code extension: Import Cost

![import-cost](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1hftfho2vrbbdj4xi163.gif) 

Understand the cost of an import early.

This extension will display inline in the editor the size of the imported package. It supports tree shaking, so the size should be displayed correctly for a few exported functions.

With this you may spot mistakes like these:

```javascript
import moment from 'moment'; // 289.7KB
moment.now();

import { now } from 'moment'; // 0.082KB
now();
```

It’s also available for **JetBrains IDE**, **Atom** and **Vim**.

👉 https://github.com/wix/import-cost

---

# Website: Bundlephobia

![bundlephobia-moment](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8ru8f41bmh4qzsebzx4.png)

his website lets you search for libraries and display their sizes without the need to install. It shows the size of each version and even suggests alternatives to similar libraries that might be lighter—talking about a new framework or library every week.

You could also drop your package.json file and order it by size to see your biggest libraries. Personally I find this quite fun, but usually I use this tool to check bundle sizes of not-yet-installed libraries.

👉 https://bundlephobia.com/

---

# NPM: source-map-explorer

![source-map-explorer-example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bkw43aghv1b170nm2qm.png)

> Like the name suggests you need to build source maps. With modern framework CLIs it’s enabled by default in prod builds.

Useful tool for imported package visualisation in relation to their size. By clicking on the packages, you can further imspect their sizes and children.

👉 `npx source-map-explorer ./dist *.js`
👉 https://github.com/danvk/source-map-explorer

---

# Website: PageSpeed Insight / Lighthouse

If your site is already public you can use Google’s PageSpeed Insight to detect big Javascript bundles.

**Bonus**: It also includes Javascript files, that are downloaded on runtime from your ad networks, Google Tag Manager and other tools.

👉 https://developers.google.com/speed/pagespeed/insights/

Check out this tweet to see the treemap in action:

{% twitter 1400529906577162243 %}

---

Simon Wicki is a Freelance Developer in Berlin. Worked on Web and Mobile apps at JustWatch. Fluent in Vue, Angular, React and Ionic. Passionate about Frontend, tech, web perf & non-fiction books.

👉 [Join me on Twitter to follow my latest updates.](https://twitter.com/zwacky)
To let the beginners know their career goals who have opted data science.
Tags: datascience, machinelearning, bigdata, cloud
Published: 2021-08-18 07:31:44

# Data Science : To be the known, loving, trending Keyword among the student nowadays. Yes, before understanding it as a job or career, it is opted by many students.
### Data Science was the best job and was on position no. 1 from 2016-2019. But due to falling crises it has been ranked 3rd by America in 2020 with the medium salary of $118,370 per annum. Data Science is the vastly growing field and provides large number of opportunities to number of peoples.[1]

# Career Opportunities in Data Science[2]

### There are many roles in the field of Data Science

To start with the clear learning in Data Science one should know what to learn to get the perfect role in the industry. Let’s understand with your skills and interest in which data science role you are perfect in or you need to be perfect.
Skills are marked with numbers from 1-10 as their codes Programming - 
- Programming  		 -  “1”
- Business Intelligence – “2”
- Database Management – “3”
- Statistics				- “4”
- Data Wrangling 		-“5”
- Machine Learning		-“6”
- Deep Learning			-“7”
- Mathematics and Linear Algebra-“8”
- Cloud				-“9”
- Big Data				-“10”


# Roles Skills
## 1. Data Analyst 
i) Advance- 1, 2, 5
ii) Basic - 3, 4, 6, 8, 10

# 2. Data Administrator
i) Advance- 1, 3, 5
ii) Basic - 9

# 3. ML: Engineer
i) Advance- 1 , 2, 5
ii) Basic - 3, 4, 6, 8, 10

# 4. BI Developer 
i) Advance- 1 , 4, 5
ii) Basic - 3

# 5. Data Engineer 
i) Advance- 1, 3, 4, 5, 10
ii) Basic - 2, 6, 7

# 6. Data Scientist 
i) Advance- 1, 2, 3, 4, 5, 6, 7,8
ii) Basic - 9, 10

# 7. Data Architect 
i) Advance- 1, 3, 4, 6, 7, 8, 10
ii) Basic - 9

##### I personally suggest all the starting learners to have a knowledge in R/Python. Both the languages are the good source of inbuilt statistics and many data science libraries. Follow someone who has already passed the path you are going to pass. This will help you to learn in a smarter way. May be you will not do the same mistake your mentor has done.
#
### -As told to a coder, be consistent and don’t loose hope.
### -Not all businessman rides in Mercedes.
### -Good luck Scientists !

# References

[1] “Data Scientist Salary Guide - Master’s in Data Science.” https://www.mastersindatascience.org/resources/data-scientist-salary-guide/ (accessed Jun. 02, 2020).
[2] “Top 9 Job Roles in the World of Data Science for 2020.” https://www.mygreatlearning.com/blog/different-data-science-jobs-roles-industry/ (accessed Jun. 02, 2020).
Implementing Machine Learning steps using Regression Model.
Tags: machinelearning, python
Published: 2021-08-18 07:24:02

From our previous article we looked at the [machine learning steps] (https://dev.to/phylis/machine-learning-steps-cm5). Lets now have a look at how to implement a machine learning model using Python.

The dataset used is collected from [kaggle](https://www.kaggle.com/mirichoi0218/insurance/code).

We will be able to predict the insurance amount for a person.

* We start by importing necessary modules as shown:
```python
import pandas as pd
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import accuracy_score
```

* Then import the data.

```python
data=pd.read_csv('insurance.csv')
data
```
![Screenshot (37)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9trpa8wzwrf8orrgptom.png)
 

* Clean the data by removing duplicate values and transform the columns into numerical values to make the easier to work with.
```python
label=LabelEncoder()
label.fit(data.sex.drop_duplicates())
data.sex=label.transform(data.sex)

label.fit(data.smoker.drop_duplicates())
data.smoker=label.transform(data.smoker)

label.fit(data.region.drop_duplicates())
data.region=label.transform(data.region)
data

```

The final dataset is as shown below;
![Screenshot (38)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bg7snsnrg2aclwf3jq00.png)
 
* Using the cleaned dataset, now split it into training and test sets.
```python
X=data.drop(['charges'], axis=1)
y=data[['charges']]
X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.33, random_state=42)

```

* After splitting the model choose the suitable algorithm. In this case we will use Linear Regression since we need to predict a numerical value based on some parameters.

```python
model=LinearRegression())
model.fit(X_train,y_train)
```
* Now predict the testing dataset and find how accurate your predictions are.

![Screenshot (39)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x51y94yaklvpkhf40qhx.png)

* Accuracy score is predicted as follows:

![Screenshot (40)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/70dlkdegc3efkj0m4r8x.png)

* parameter tuning
Lets find the hyperparameters which affect various variables in the dataset.

![Screenshot (41)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6u4c37podaohcp8l1ckb.png)