teleren/devto huggingface dataset:
Why data-driven decision matters
Tags: tutorial, experiment, agile
Published: 2021-07-16 09:04:15

> **“If we have data, let’s look at data. If all we have are opinions, let’s go with mine.”** 
>
> **― Jim Barksdale**

Businesses often make decisions based on opinion rather than facts. Why? I think it is mainly due to 3 main reasons:

1. **Bias** - If I think A, most certainly my users/clients also think A
2. **Speed** - Planning, experimenting, analysing takes time and resources
3. **Risk** - Experimenting imply risk of something going wrong

Let me elaborate I little more on this reasons:

#### Bias

> By following an empirical approach, we ensure that product changes are not driven by the most opinionated and vocal Netflix employees, but instead by actual data, allowing our members themselves to guide us toward the experiences they love.
>
> [**―**The Netflix Tech Blog](https://netflixtechblog.com/its-all-a-bout-testing-the-netflix-experimentation-platform-4e1ca458c15)

Couldn't say it better. But also keep in mind that [change is the only thing that it's constant](https://www.goodreads.com/quotes/336994-the-only-thing-that-is-constant-is-change--). So keep measuring even after your experimentation has finished, since what was true 2 years ago might not be true today.

#### Speed

Making a decision just for the sake of moving fast can backfire, as making a mistake can cause a greater delay than running an experiment to make a data-driven decision. 

#### Risk

You need to be very careful how you run your experiments, as doing something wrong can cause your customers to lose money, and consequently, you can lose customers and trust. This could lead managers to avoid making "big" changes and trying new things or simply trying *only* things that can be done "safely". 

### Experimentation

Making experimentation easy and safe will increase innovation. Also, keep in mind that It's all about feedback and validating hypothesis. You can't get feedback until it's in your customer's hands.

Having barriers on innovation will have an impact on how fast your company grows. How to approach these issues? First, don't be afraid of your customer's feedback, use it to guide your product evolution. Second, **make experiments safe and easy to measure**, which will lower the effort required to gather data to make informed decisions.

How do we do that? Having technology and mechanisms that allow you to:

1. Run your experiments on a small subset of customers. That will allow you to test your hypothesis but also reduce the impact of any possible issue on your experiment.
2. Monitor all relevant KPI. That allows you to have an eye on how the experiment is going and knowing if something is wrong at any given moment.
3. Make it easy to turn off any ongoing experiment. If you notice any undesired result from your metrics, you will be able to stop it before it has a greater impact on your customers.

Don't forget that simplicity is key for this to succeed. So avoid burying this under heavy processes and try to keep them as lightweight as possible, so engineers don't feel discouraged to run experiments.
Tech, hope and inspiration – Wunderer takeaways from WebSummit 2020
Tags: websummit
Published: 2021-07-16 08:43:38

Just as with the New Year resolutions, great #conference #takeaways should be revised from time to time. Why not take a moment and read through #Wunderer learnings from #WebSummit2020? They might be helpful and inspiring for your future projects ;)
Read article by our Eeva Ojanen here: https://bit.ly/3eomuYH
Titanic Survival Prediction
Tags: python, machinelearning, sourcecode, logisticregression
Published: 2021-07-16 07:52:12

Hello Everyone, I have recently written a blog on " Titanic Survival Prediction using Machine Learning", which contains full explanation and its source code. If anyone is looking for a beginner friendly Machine Learning project, this might be the right one. Please do give it a read.
 https://www.analyticsvidhya.com/blog/2021/07/titanic-survival-prediction-using-machine-learning
Sofia - Free Admin Dashboard Template built with React and Bootstrap
Published: 2021-07-16 07:51:45

Free and open-source admin dashboard template built with React v17.0.1 and Bootstrap v4.6.

This dashboard is an initial version (containing only few components) of our future release of Sofia React Admin. It is built on the top of React 17, so it well supported along the web. You can easy customize template by changing SCSS variables. All paddings and colors are in _variables.scss file.
# Features
Sofia React Template is a great template to quick-start development of SAAS, CMS, IoT Dashboard, E-Commerce apps, etc. Lite version of a Sofia React includes following features and pages:

- React v17
- Bootstrap v4.6 & SCSS
- React Router v5
- React Hooks
- Mobile friendly responsive layout
- Recharts and Apexcharts chart libraries
- Simple login / logout
- Error page
- Styled Bootstrap components like buttons, badges, labels, etc
- Create-react-app under the hood

![alt text](https://reactjsexample.com/content/images/2021/07/2021-05-26-at-13.15.29-1024x594.png "pAGE")
# Pages
We have implemented some basic pages, so you can see our template in action.

- Dashboard sample
- Typography page
- Tables page
- Notifications page
- Charts page
- Icons page
- Map page
- Login page
- Register page
- Error page
![alt text](https://reactjsexample.com/content/images/2021/07/2021-05-26-at-13.15.17-1024x596.png "sofia")
LIVE DEMO : https://flatlogic.github.io/sofia-react-template/#/template/dashboard

GITHUB : https://github.com/flatlogic/sofia-react-template
# Quick Start
1. Get the latest version
You can start by cloning the latest version of Sofia React Template on your local machine by running:
 
```python
$ git clone https://github.com/flatlogic/sofia-react-template.git
$ cd path/to/app
```
2. Run yarn install
This will install both run-time project dependencies and developer tools listed
in package.json file.

3. Run yarn start
Runs the app in the development mode.

Open http://localhost:3000 to view it in the browser. Whenever you modify any of the source files inside the /src folder,
the module bundler (Webpack) will recompile the
app on the fly and refresh all the connected browsers.

4. Run yarn build
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
How to Run Postgres Database in cmd/Terminal
Tags: postgres, database, cmd, terminal
Published: 2021-07-16 07:33:18

Hello programmers, as we know to run database we need a DBMS software, so i am going to tell you all we how to run database in cmd for window or terminal for mac.

let get start

## open CMD/Terminal

go to bin folder into database folder and then write code :

`psql -h localhost -p 5440 -d database_name -U user_name`

> -h for host 
> -p for port
> -d for database
> -U for user 

![Run database in window](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81pvofct6zsxkgh69mbo.png)
Java/ Copy Cell Range in Excel
Tags: java, excel, api, free
Published: 2021-07-16 07:12:45

Copying and pasting content within or between documents is one of the most common operations in our daily work. This article will introduce how to copy a cell range within a worksheet or between two worksheets in a single Excel document by using Free Spire.XLS for Java.

**Installation (2 Method)**
**1#** Download the [Free Spire.XLS for Java](https://www.e-iceblue.com/Download/xls-for-java-free.html) and unzip it, then add the Spire.Xls.jar file to your project as dependency.
**2#** You can also add the jar dependency to maven project by adding the following configurations to the pom.xml.
```xml
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.xls.free</artifactId>
        <version>3.9.1</version>
    </dependency>
</dependencies>
```

**Copy a cell range within a worksheet**
```java
import com.spire.xls.ExcelVersion;
import com.spire.xls.Workbook;
import com.spire.xls.Worksheet;

public class CopyRow {
    public static void main(String[] args) {

        //Create a Workbook instance
        Workbook wb = new Workbook();

        //Load a sample Excel file
        wb.loadFromFile("C:\\Users\\Administrator\\Documents\\input.xlsx", ExcelVersion.Version2013);

        //Get the first worksheet
        Worksheet sheet = wb.getWorksheets().get(0);

        //Copy a cell range within a worksheet
        sheet.copy(sheet.getCellRange("A1:G1"),sheet.getCellRange("A16:G16"),true);

        //Save the document
        wb.saveToFile("CopyRangeWithinSheet.xlsx", ExcelVersion.Version2013);
    }
}
```
![Cpoy Within](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cjzlk6e98fysyn2alk1k.jpg)

**Copy a cell range from one worksheet to another**
```java
import com.spire.xls.ExcelVersion;
import com.spire.xls.Workbook;
import com.spire.xls.Worksheet;

public class CopyRow {
    public static void main(String[] args) {

        //Create a Workbook instance
        Workbook wb = new Workbook();

        //Load a sample Excel file
        wb.loadFromFile("C:\\Users\\Administrator\\Documents\\input.xlsx", ExcelVersion.Version2013);

        //Get the first worksheet
        Worksheet sheet1 = wb.getWorksheets().get(0);

        //Get the second worksheet
        Worksheet sheet2 = wb.getWorksheets().get(1);

        //Copy a cell range from sheet 1 to sheet 2
        sheet1.copy(sheet1.getCellRange("A1:G1"),sheet2.getCellRange("A1:G1"),true);

        //Save the document
        wb.saveToFile("CopyRangeBetweenSheets.xlsx", ExcelVersion.Version2013);
    }
}
```
![Copy to](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cfntqart62qbzmtlpzrj.png)
How to make to top using 5 lines of jQuery
Tags: css, jquery, javascript, html
Published: 2021-07-16 06:47:46

Sometimes we find it hard to make a back to top button. And sometimes confused in many lines of code didn't understand what the error about is. Today we are going to make back to top functionality in 5 lines of jQuery. 

GitHub:
{% github nishthaneeraj/Back-to-top-in-jQuery/ no-readme %}
Live Demo: https://nishthaneeraj.github.io/Back-to-top-in-jQuery/
Codepen:
{% codepen https://codepen.io/Yashodhararaje/pen/eYWNKMe %}

First, Make a footer with the id of footer or anything meaningfull
```html
<footer class="page-footer  p-3 footer text-center" id="footer"> Back to Top

</footer>
```

Second, add some CSS (not compulsory but let's do it i have also added bootstrap in it 
read this first 
{% link nishthaneeraj/how-to-libraries-and-framework-in-codepen-321e %})

```css
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

* {
  margin: 0;
  padding: 0;
}
body {
  background-color: #eec0c6;
  background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%);
  color: #002999;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
.footer {
  background: #002999;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
footer {
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
}
/* Custom Scroll Bar */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #00d9bf;
  border-radius: 5px;
}
```
 
Then, finally add JS
First add the jQuery link 
( if you are using a code editor then add into the HTML file in the bottom after your script.js
jQuery Link: https://code.jquery.com/jquery-3.3.1.min.js
Or
If you are using codepen add in is section if you don't know read this post:
{% link nishthaneeraj/how-to-libraries-and-framework-in-codepen-321e %}) 
```javascript
//Get the button:
const footer = document.getElementById("footer");

$("#footer").on("click", function () {
  $(window).scrollTop(0);
});

```

Explanation: 
First Getting the Button
```javascript
//Get the button:
const footer = document.getElementById("footer");
```
next adding Event Listener (Click Obviously) to it
then reseting the scroll value to 0
```javascript
//Get the button:
$("#footer").on("click", function () {
  $(window).scrollTop(0);
});
```

That's it

Happy Coding 😃. 
Bye 👋 have a good day 😊
ExpressJS application generator
Tags: node, javascript
Published: 2021-07-16 06:31:57

## Introduction

Hello and welcome to my 2nd post, this post is to share how you can streamline your files and folder for Express application generator. With Express application generator, you can have your files and folder up in no time. And make sure you have the basic knowledge for setting up backend file and folder such as npm init to make server.js file as this is just a tool to help simplify the process of setting up express files and folder

## Installation steps

In the project directory, you can run:

### npx express-generator

and you will have the folder and files as below
 .
├── app.js
├── bin
│   └── www
├── package.json
├── public
│   ├── images
│   ├── javascripts
│   └── stylesheets
│       └── style.css
├── routes
│   ├── index.js
│   └── users.js
└── views
    ├── error.pug
    ├── index.pug
    └── layout.pug

7 directories, 9 files


After the files and folder has been created, run below command
### npm install
this will install all require dependency package from package.json 

### npm start
to run the express file


### Conclusion 

For anyone who is interested to dive in ExpressJS without headache to create new model, controller and routes. I recommend use express generator to get a grip of how the files and folders are structured. From there you can get familiar on how ExpressJS works
3 Ways to Give Better Feedback
Tags: feedback, management, leadership, reviews
Published: 2021-07-16 06:24:16

Giving feedback to your peers can be extremely difficult if you do not plan it right. Thankfully, there are a set of tools that can drastically improve those skills.

## 1: Use the proper format

"Your pull requests are really annoying to review!" is not feedback that is easy to accept or easy to act on. It is very confronting and blaming and thereby switches the focus away from solving the problem.

Instead, feedback should follow an observing formula:

Observation of behaviour + impact of the behaviour + question or request = actionable and specific feedback.

The formula turns the feedback from something blaming into: "Over the last three weeks, I've noticed that you have created large pull requests without any descriptions or instructions. This more than doubles the review time needed and has led to five production bugs. Can you help me understand why you prefer these large pull requests?"

## 2: Negative feedback should be given with a growth mindset

To ensure that people can use negative feedback, you must give it with a growth mindset. If the negative feedback does not have the goal of helping your colleague grow in that particular area, then it is not valuable feedback.

## 3: Do not deliver it as a script

It might seem like a good idea to write down the feedback and read it to your colleague, but it will often come off as ungenuine. Feedback is about being present and listening, not delivering a presentation. 

With these three steps, you can easily take your feedback skills to the next level.

---

## References
Huston, Therese; Let's Talk: Make Effective Feedback Your Superpower

Hogan, Lara; Resilient Management
HTML tags | footer
Tags: html, tags, footer
Published: 2021-07-16 06:22:12

It is used to **define a footer** for a document or section. Usually includes information about the author, copyright, contact, sitemap, links to related documents, etc.

Can be repeated within the same document but cannot be used within `<header>`, `<address>` or another `<footer>`.

If it contains information about the author, this should be inside an `<address>` that in turn goes inside the `<footer>`.

It does not contribute to the outline of the document.

It has an **implicit ARIA role** `contentinfo`, or none if it is a descendant of an `<article>`, `<aside>`, `<main>`, `<nav>` or `<section>` or of an element with role `article`, `complementary`, `main`, `navigation` or `region`.

To maintain compatibility with older browsers you can use the redundant formula of `<footer role="contentinfo">`.

- Type: *block*
- Self-closing: *No*
- Semantic value: *Yes*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer) | [Support](https://caniuse.com/mdn-html_elements_footer)
The 10 most in-demand roles in the Information Security domain
Tags: security, insights, career, cybersecurity
Published: 2021-07-16 06:16:46



We thought it would be interesting to go deeper into the analytics part of running our InfoSec job board – in the most privacy focused way for our users, of course. So here we are now starting to expose some of our aggregated internal job data in a systematic fashion through a simple REST API with a list of generalized job titles that are posted on [infosec-jobs.com](https://infosec-jobs.com/).

The cool thing with this is that we are able to see what’s popular in terms of the roles employers are hiring for most often in the Cyber Security space.

Our “methodology” here is quite simple: we’re primarily counting the occurence of job titles over the last 12 months, cleaned and adjusted for certain specialties that some companies like to do, e.g. inventing their own stuff that’s not being used by anyone else or adding crazy super-specific details to a vacancy title and so on. We also left out many titles with indicators regarding seniority or other requirements as we already have dedicated attributes for these. More on that probably in a future post.

So here it is, our current (as of June 2021) top list of the ten roles in Information Security with the highest demand from employers on our site:

1. Security Engineer
2. Application Security Engineer
3. DevSecOps Engineer
4. Cloud Security Architect
5. Cloud Security Engineer
6. Information Security Engineer
7. Cyber Security Analyst
8. Product Security Engineer
9. Information Security Manager
10. Security Analyst

If your interested in the raw JSON data you can find the endpoint here: [https://infosec-jobs.com/api/list-job-titles/](https://infosec-jobs.com/api/list-job-titles/)

The results there are updated every 6 hours, although it won’t really change that much anytime soon. And if it does we’ll maybe write about it 😉

We also use all the job titles from that list for our brand new salaries survey to have a “standardized” selection of positions to choose from and attach salaries to. You can check out the survey – and the resulting dataset being released in the public domain – here: [https://salaries.infosec-jobs.com/](https://salaries.infosec-jobs.com/)

*This post appeared first on [https://insights.infosec-jobs.com/the-10-most-in-demand-roles-in-the-information-security-domain/](https://insights.infosec-jobs.com/the-10-most-in-demand-roles-in-the-information-security-domain/)*
Learn PYTHON in ONE Week!
Tags: python, codenewbie, webdev, devops
Published: 2021-07-16 06:16:30

Want to learn one of the most powerful and trending programming language within one week.

Yes, you read it right you can learn Python within a week if you have dedication you can.
Just follow the below path.

Here is the path to learn **Python** in just 1 week.

So let's start with day by day.

##DAY 01

#Basic Concepts(3 hours)

 Variables
 Display Output(Print command)
 Take user input(input command)
 Conditionals statements

##DAY 02

#4 Basic Concepts(3 hours)

 List(index, append, remove)
 for loop
 while loop
 function

you can learn basics from here -- 
[Python Basics](https://www.w3schools.com/python/default.asp)

##DAY 03

#Simple coding problems(5hours)

 Convert miles into Kilometers
 Calculate Simple Interest
 Find largest number in the list
 Check a number is  prime or not
 Sum of all digits in a number
 Reverse String (check palindrome)
 Calculate age
 Build a simple Calculator

##DAY 04

#Data Structures(3 hours)

 Stack and Queue
 Dictionary
 Tuples

you can learn DS from here -- 
[Learn Data Structures](https://www.geeksforgeeks.org/data-structures/)

##DAY 05

#OOP(4 hours)

 Object
 Class
 Method and Constructor
 OOP-Inheritance

for this you can watch YouTube videos

##DAY 06

#Algorithm(4 hours)

 Binary Search
 Bubble Sort
 Selection Sort

one of the best Algorithm course I came across--
[Learn Algorithm](https://youtube.com/playlist?list=PLDN4rrl48XKpZkf03iYFl-O29szjTrs_O)

##DAY 07

#Projects(6 hours)

 Build a web Crawler
 or a news aggregator
 or a simple game using pygame

**Voila!!** You made it you are now **Junior Python developer.**
So, that's it for now hope you find it useful.
Now its all depends on you how you give effort on it. Its not about learning in 1 week it's monthly or even yearly process but atleast you can start from here.
Best of luck!!
How to Load JSON Data to a Flutter DataGrid
Tags: flutter, dart, grid, webdev
Published: 2021-07-16 05:14:23

Learn how easily you can load JSON data to a Syncfusion [Flutter DataGrid](https://www.syncfusion.com/flutter-widgets/flutter-datagrid "Flutter DataGrid"). This video explains how to add a Syncfusion Flutter DataGrid to a flutter application, fetch the JSON data from an online source and convert it to a list collection. It also explains how to create the rows using the DataGridSource class using the created list collection, and then bind the rows to the DataGrid.

Example project: https://bit.ly/2U4v4oy

SYNCFUSION FLUTTER DATAGRID
-------------------------------------------------
Product overview: https://www.syncfusion.com/flutter-widgets/flutter-datagrid

Documentation: https://bit.ly/3hAwaRM

API documentation: https://bit.ly/2Qw1JBa

Examples—GitHub: https://bit.ly/3cG5f57

{% youtube r-zRls96sb4 %}