teleren/devto huggingface dataset:
How to become a Machine Learning Engineer?
Tags: machinelearning, deeplearning, python, programming
Published: 2022-07-20 11:56:22

## Step 1: Learn a Programming Language

- 
Popular Programming Language for Machine Learning
 

> 1. **Python**
> 2. **R Language**
> 3. **C++**
> 4. **Java**
> 5. **JavaScript**
> 6. **Go**
> 7. **Shell**


## Step 2: Learn Mathematics for Machine Learning

- 
Importance of Mathematics topics needed for Machine Learning

> - (15%) **Algorithm and Complexity**
>
> - (15%) **Multivariate Calculus**
>
> - (35%) **Linear Algebra**
>
> - (25%) **Probability and Statistics**
>
> - (10%) **Others**

- Having a basic understanding of **Probability and Statistics** is important when it comes to mastering Machine Learning.


## Step 3: Learn Core Machine Learning Algorithms

- Supervised Learning
- Unsupervised Learning
- Reinforcement Learning

**1. Supervised Learning Algorithm :**

> - Regression
> - Decision Tree
> - Random Forest
> - Classification




**2. Unsupervised Learning Algorithm :**

> - Clustering
> - Association Analysis
> - Hidden Markov Model





**3. Reinforcement Learning Algorithm :**

> - Supervised & Unsupervised
>
>  - Regression
>  - Decision Tree
>  - Random Forest
>  - Clustering
>
> - Categorical
>
>  - Classification
>  - Association Analysis
>  - Hidden Markov Model


## Step 4: Learn the basic Libraries for **Mathematics & Data Handling**

- TensorFlow
- Keras
- PyTorch
- Scikit-learn
- Pandas
- NumPy
- Spark
- NLTK
- Theano
- mxnet



## Step 5: Learn Deep Learning

- Deep learning is **a subset of machine learning**, which is essentially **a neural network with three or more layers.**


- These neural networks attempt to simulate the behavior of the human brain albeit far from matching its ability allowing it to “**learn**” from large amounts of data.


- While a neural network with a single layer can still make approximate predictions, additional hidden layers can help to optimize and refine for accuracy.


- **Deep Learning Applications :**

> - Law enforcement
> - Image Recognition
> - Financial services
> - Customer service
> - Healthcare
> - Automatic Machine Translation


## Step 6: Start Working on Projects


- **Machine Learning Projects Ideas :**

 - Amazon Product Review 
 - Sentiment Analysis
 - Hate Speech Detection
 - COVID-19 Vaccine Analysis
 - WhatsApp Chats Analysis
 - Dogecoin Price Prediction
 - Social Media Ads 
 - Classification
 - Spotify Recommendation System
 - Bankruptcy Prediction Model
 - Instagram Algorithm
 - Netflix Data Analysis
Can I share GitHub copilot like Netflix account?
Tags: discuss, githubcopilot, share
Published: 2022-07-20 11:53:24

Let's be honest, we all at some point in time have shared the Netflix account with Family or Friends.

So, I am wondering if the same can be done with GitHub [Copilot](https://github.com/features/copilot) too?

Use case: For a hobby project with my two friends, it may turn out to be helpful.
Welcome Post
Tags: beginners, programming, python
Published: 2022-07-20 11:50:32

I am writing to connect with Python Django Developers.

Hi I am Saad Fareed python Django Developer i am working from last 3 years in backend engineering,data science and data analysis 

I have successfully designed, developed, and supported Web Applications in my career.

I strive continually for excellence.

I have good Leadership skills and am a Team Player.

With a BS degree in Computer Science, I have a comprehensive understanding of the full lifecycle of software development projects.

I also have experience in learning and applying new technologies as appropriate.

Let's Connect guys
Next.js Dynamic Routes and getServersSideProps occur error while export
Published: 2022-07-20 11:45:19

Actually I am new in Next.js and face such error that I never face before! I am doing my next project where I use getServerSideProps to fetch data. And it was a dynamic route ([id].js) The problem occur when I hit the build command to deploy the tiny project on my hosting.

This is my next [id].js file –

```
import React from 'react'
import Related from './related';

export default function id(props) {
  return (
    <div>
    <div className="card">
        <div className="card-title">{props.data.title}</div>
        <div className="card-body">{props.data.body}</div>
    </div>
    <Related sendData={props.allData}/>
    </div>
  )
}

export const getServerSideProps =async (ctx)=>{
    const {params} = ctx;
    const res = await fetch(`https://jsonplaceholder.typicode.com/posts/${params.id}`)
    const data = await res.json()

    const allRes = await fetch('https://jsonplaceholder.typicode.com/posts/')
    const allData = await allRes.json();
    return{
        props:{
         data, allData
        }
    }
}
```


And this is the error –


```
Build error occurred Error: Export encountered errors on following
 paths: /blog/related at C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\export\index.js:395:19 at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Span.traceAsyncFn (C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\trace\trace.js:79:20) at async C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\build\index.js:1094:21 at async Span.traceAsyncFn (C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\trace\trace.js:79:20) at async C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\build\index.js:971:17 at async Span.traceAsyncFn (C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\trace\trace.js:79:20) at async Object.build [as default] (C:\Users\Hridoy\Desktop\demo blog\newapp\node_modules\next\dist\build\index.js:64:29)
```


If you want to see the full code on github, this is here – [GitHub Repo](https://github.com/NoorBhuiyan/dynamic_route_error)

And Brother, can you help me by suggesting a better process for data fetching !
How to generate /sitemap.xml route in Remix framework
Tags: remix, typescript, sitemap, seo
Published: 2022-07-20 11:26:24

According to **google.com** 
> A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines like Google read this file to crawl your site more efficiently.

First of all we are going to need the help of this very powerful package named **Remix SEO**. So, install it by using the following command.
```javascript
npm i @balavishnuvj/remix-seo
```

Then make a new file named `sitemapRoutes.server.ts` within our app/ directory. After creating the file paste the following code there.

```typescript
import type { EntryContext } from "@remix-run/node";
import { generateSitemap } from "@balavishnuvj/remix-seo";

const siteUrl =
  process.env.ENVIRONMENT === "production"
    ? "https://yourProductionWebsiteUrl.com"
    : "http://localhost:3000";

type Handler = (
  request: Request,
  remixContext: EntryContext
) => Promise<Response | null> | null;

export const otherRootRoutes: Record<string, Handler> = {
  "/sitemap.xml": async (request, remixContext) => {
    return generateSitemap(request, remixContext, {
      siteUrl,
    });
  },
};

export const otherRootRouteHandlers: Array<Handler> = [
  ...Object.entries(otherRootRoutes).map(([path, handler]) => {
    return (request: Request, remixContext: EntryContext) => {
      if (new URL(request.url).pathname !== path) return null;

      return handler(request, remixContext);
    };
  }),
];

```
That's it for the `sitemapRoutes.server.ts` file. Now head to the `entry.server.tsx` file in the app/ directory and make the following changes there:

```diff
import type { EntryContext } from "@remix-run/node";
import { RemixServer } from "@remix-run/react";
import { renderToString } from "react-dom/server";
+ import { otherRootRouteHandlers } from "./sitemapRoutes.server";


- export default function handleRequest(
+ export default async function handleRequest(
  request: Request,
  responseStatusCode: number,
  responseHeaders: Headers,
  remixContext: EntryContext
) {
+  for (const handler of otherRootRouteHandlers) {
+    const otherRouteResponse = await handler(request, remixContext);
+    if (otherRouteResponse) return otherRouteResponse;
+  }
  const markup = renderToString(
    <RemixServer context={remixContext} url={request.url} />
  );

  responseHeaders.set("Content-Type", "text/html");

  return new Response("<!DOCTYPE html>" + markup, {
    status: responseStatusCode,
    headers: responseHeaders,
  });
}
 ```
and now you're done! Congratulations you did it ;)
Now you just have to goto `http://localhost:3000/sitemap.xml` link and you'll see the sitemap generated like this:


![sitemap.xml](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eho33j3h9lbxax9vmdmk.png)
Welcome to the TestClub!🤜🤛
Tags: testing, beginners, programming, tutorial
Published: 2022-07-18 14:58:09



👉Our mission is to demystify development so more testers know how to switch.
👉We also demystify testing so developers could write better software.

I have been thinking for a long time what is a true purpose of my blog and I think it's the best one.

I started my career as a self-taught web developer in a company nobody will ever know about, then I became a test engineer in a largest IT service provider in Belarus and Ukraine, then I became test automation architect and even a manager for a short while to finally find myself Senior Software Engineer in one of the most exciting companies out there. I am also pursuing masters degree in computer science now.

I made my fair share of learning and career mistakes and got quite a lot of interesting and useful (though sometimes painful) experiences.

I believe I can help the community by sharing those lessons learned so you don't have to learn them hard way.

Interested? Then feel free to follow me.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/adw68msyjeke6604lanx.png)
Wednesday Links - Edition 2022-07-20
Tags: java, jvm, junit, testing
Published: 2022-07-20 11:21:19

Better way to display test name in Junit5 (30 sec)📛
https://twitter.com/maciejwalkowiak/status/1549345112131600389

The test task in Gradle (8 min)🧪
https://www.youtube.com/watch?v=YJjNQJSaFww

A New Approach to Incremental Compilation in Kotlin (6 min)🪜
https://blog.jetbrains.com/kotlin/2022/07/a-new-approach-to-incremental-compilation-in-kotlin/

Spring Boot Testing: MockMvc vs. WebTestClient vs. TestRestTemplate (8 min)⚔️
https://rieckpil.de/spring-boot-testing-mockmvc-vs-webtestclient-vs-testresttemplate/

Git 2.37.0 - git push without set upstream origin (30 sec)🥊
https://twitter.com/JI/status/1546948817462800384
How to fix QuickBooks printer issue 20?
Published: 2022-07-20 11:09:55


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5bokd30axoukr06igoik.jpg)Came across QuickBooks printer not active error and don’t know what can be done? Well, if that is the case then reading this post will help you eliminate the issue from its root cause. Talking about this error, the printer [quickbooks error code 20](url=https://www.qberrorsupport.com/quickbooks-printer-not-activated-error-20/) not is active. Occurs when a user try to install or upgrade to a newer Windows version. It can be caused if the KEY_CURRENT_CONFIG\Software key is deleted. As a result of this issue, the users are not able to publish or send the invoices and payslips which leads to inconvenience. To know the steps to fix the issue along with the factors causing it, make sure to read the post till the end, or contact us at +18445210490
What Factors Cause QuickBooks Error Code 20?
The below factors can trigger this error in QuickBooks:
•	Elimination/deletion of the ‘HKey_current_config\software’ key. 
•When the multiple QuickBooks versions are installed in the computer. 
•QuickBooks application isn’t compatible with the PDF driver & operating system.

**Steps to [reinstall QuickBooks to fix the issue]
(url=https://hostdocket.com/reinstall-quickbooks-windows-using-clean-install/) **

The user can perform the below steps related to clean installing QuickBooks and try to eliminate this issue. 
•The very first step is to close your QuickBooks and all the running programs on your systems.
•After that head to Control panel.
•Find programs (Apps) & features option.
•The next step is to click on Programs & Features.
•Also, locate the QuickBooks and click on the Uninstall option.
•The next step is to uninstall and Reinstall QuickBooks on your server computer - Screenshot
•The user is then required to install a fresh copy of QuickBooks version that is compatible with your system.
•After the re-installation process gets complete, the program along with the printer will work again.
•Reboot the system 
•In case the issue is with PDF converter only, then it is advised to uninstall the old driver and install a compatible driver with your operating system.
After implementing the steps above, it is expected that the reader might be able to eliminate the error code 20 from its root cause. However, if the user isn’t able to, then in that case, contact our [QuickBooks support](url=https://www.qberrorsupport.com/contact/) team at +18445210490 and they will provide you with instant support and assistance. We are a team of technically sound QuickBooks professionals who work round the clock to provide immediate support and assistance. 

**Read Also:** [qbdbmgrn not running on this computer](url=http://qbsenterprisesupport.com/qbdbmgrn-not-running-on-this-computer/)
Why JSON format is used as standard format in REST API?
Tags: json, hosting, api
Published: 2022-07-20 10:59:58

JSON is a standard format for data exchange that is both human and machine readable. It is used in many REST APIs because it provides a way to structure data that can be easily parsed by computers. JSON is also easy for humans to read, making it a good choice for interoperability between systems. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hqo8wvv0rokjg9lqmn6e.png)
 
There are a few different ways to represent data in JSON. The most common way is to use key-value pairs, where each key is associated with a value. This is similar to how data is represented in a dictionary. 

Another way to represent data in JSON is to use arrays. Arrays are lists of values, where each value can be of any type, including another array.

JSON can represent four different types of values: strings, numbers, booleans, and null. 

Strings are represented by enclosing them in double quotes. Numbers can be represented as integers or floating point values. Booleans are represented by the keywords true and false.

## So, Why JSON Format?

1. JSON is a lightweight data-interchange format that is easy for humans to read and write.

2. JSON is an open standard format that is used by many programming languages to serialize data.

3. JSON is easy to parse and can be used in many different programming languages.

4. JSON is a self-describing format that can be used to transmit data between systems.

5. JSON is used as the standard format for data in many REST APIs.

6. JSON is a versatile format that can be used for many different purposes.

7. JSON is a great way to exchange data between systems.8. JSON is an efficient way to store data.

9. JSON is a simple way to represent data.

10. JSON is a great format for data exchange.

[StaticSave](https://staticsave.com/) can be used to host your JSON code by pasting the JSON code online. This service provides a simple way to share your JSON code with others. 

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

Create a JSON file for your project and simply paste your code into the editor and click on the "Submit to Save" button.

Also Read: [Importance of JSON in REST API](https://staticsave.com/blog/importance-of-json-in-rest-api)
Cancel This App Update, Dammit!
Tags: watercooler, career, opinion, rant
Published: 2022-07-20 10:47:53

My morning routine hasn't changed over the years. I'll scan [serializer.io](https://serializer.io/), get [the kids ready](https://dev.to/solidi/five-more-minutes-5b7d), work out, eat breakfast, shower, and flip open the work notebook. Then I'll be a few goddamned minutes late to the first team meeting of the day.

## I'm the Sucker
Apps that connect to others have little regard for my time. They [like to do sh*t](https://medium.com/@solidi/apps-doing-sh-t-f5ffa72140db), working as intended. I'm late because of a random dice roll from the updating gods. They decided it was my time to watch a slow-moving progress bar as my manager waited in silence. Or it's simply Monday. Then the app will crash. I'm stuck in a loop.

***I'm late. It's a bad look.***

When I arrive, I'll apologize for my tardiness, being infuriated by the snag. I was *really* a minute early, but I knew no one believed me. My reputation bank account has lost coin.

These apps enjoy finding random suckers like me at their morning launch. A long-tailed update isn't the first nor last that will steal my time. I'm dumb for taking the abuse.

Then I'll contemplate. As [a person who develops software](https://dev.to/solidi/what-is-an-engineering-manager-anyway-4and), it doesn't need to be this way. What is the problem with updating the app after I leave a meeting? Or execute when signaling the app's close when the day is over? Stay outside my critical path, please.*

## Update to Perfect Critical Frustration For All
I'm confident apps sap millions of hours from poor souls needing to perform *on time*. Everything is at stake when updates wag their finger—such as a critical presentation, meeting a customer, joining an interview, or failing to join a 1-on-1 where the manager is stressed-out.

As I type, an angel investor is tapping their fingers, tending to their boatloads of cash, as their high growth potential screams at the best-looking progress bar on the other side of a digital pipe.

***My point is the scheme for updating apps remains broken, and nobody cares.***

Yeah, another app is doing sh*t by disrespecting my time and probably yours. We all have been in meetings where many people sit, blissfully waiting for a stuck colleague while being paid. Some people are okay with that. Not me.

Do you know who doesn't screw around? It's the people that demand mission-critical software experiences because they are always on the critical path. Do astronauts receive updates while the rocket pushes hard to escape the atmosphere?

But we all can't be astronauts. After all my anxiety clicks and Crtl+C's, my VPN disconnects too, and I am staring into this effing stalled app update. ***Sigh***.

 ---

\* *Now happens with carrier smartphone updates! I played the "delay this update" game, then lost when I needed the phone most. It aggressively updated at the most inconvenient time, delaying meeting a family member at the airport. I could not contact him while my phone was updating.*
?Error on reloading the page in rendering
Tags: discuss, react, webdev, beginners
Published: 2022-07-20 10:35:44

I am getting a single object from an API call and when I load this works but when as soon as I reload it throws error and did not render anything and error is it did not recognizes data.picture.large larger property

 
```
import './App.css';
import a from 'axios'
import { useEffect, useState } from 'react';


function App() {

  const [data,setData] = useState({})

  useEffect(()=>{
    a.get("https://randomuser.me/api/")
    .then(res=> setData(res.data.results[0]))
    .catch(err=>console.log(err))
  },[])

  console.log(data);

  return (
    <div className="App">
      <img src={data.picture.large}/>
      <h1>{data.gender}</h1>
    </div>
  );
}

export default App;

```
Netcat pivot relay
Tags: netcat
Published: 2022-07-20 10:17:55

---
title: Netcat pivot relay
published: true
description: post exploitation technique.
tags: netcat
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
The idea is that you are redirecting traffic from a port not controlled by the firewall (40) to one that is controlled by the firewall (23),ie you want to send something to the port closed by the firewall. To do this, once you have access to the destination machine, you are going to raise a netcat service listening for 23.

```
> nc -lvp 23
listening on [any] 23 ...
connect to [127.0.0.1] from localhost [127.0.0.1] 42662
hello
redirecting traffic from port 40 that will be outside the control of the firewall to port 23 that will be controlled by the firewall

```

Then, on another machine or on the same vulnerable machine, you are going to create a file of special characters (pivot) that will serve as a stack where to send the exploit

````
man mknod
NAME
mknod - make block or character special files
...


> mknod pivot p
```

Create the bridge from unfiltered port 40 to fw-filtered port 23, using the stack.
When I write to port 40, I read from the stack, when I read from 23, I write to the stack.
    
```
> nc -lvp 40 0<pivot | nc 127.0.0.1 23 > pivot
listening on [any] 40 ...
connect to [127.0.0.1] from localhost [127.0.0.1] 44386
```

Finally create the connection to the vulnerable port. 
What you write here is eventually written to the port supposedly filtered by the firewall.

```
> nc 127.0.0.1 40
hello
redirecting traffic from port 40 that will be outside the control of the firewall to port 23 that will be controlled by the firewall.
This could be some exploit to vuln port 23...

```

Thanks Santiago ;)
[1/40 things about data] It’s hard to capture reality with data
Tags: data, beginners
Published: 2022-07-20 10:08:55

Trying to recreate an accurate version of reality, no matter what that is or how simple it looks, is hard.

Another way of seeing it: modelling reality always gets complex. There are always small nuances, special conditions, things that changed, edge cases and, of course, errors (which sometimes became features).

The only models I found easy to work with and understand are the ones that reflect computer things.
PHP Error Reporting
Tags: programming, php, errors, webdev
Published: 2022-07-20 10:07:12

A PHP application produces many degrees of errors during the runtime of the content. A PHP error is an information structure that addresses something that turned out badly in your application. The Php error reporting function permits you to set the level of PHP errors revealing, when your PHP content runs, or recover the present level of PHP error reporting, as characterized by your PHP design.

The error_reporting function acknowledges a solitary parameter, a number, which demonstrates which level of reporting permitting. Passing nothing as a parameter basically returns the present level set.

## PHP.ini Configuration for Displaying All Errors

`display_errors = on`

The display_errors order should be set to “on” in the PHP ini document. This will [show all php errors](https://phperrorcode.com/error-reporting-in-php/) including punctuation or parse errors that can’t be shown simply by calling the ini_set function in the PHP code. The PHP ini document can be seen as in the shower result of phpinfo() function and is marked loaded configuration file. This order in the ini setup should be set to off, assuming the web application is underway.

## Types Of Errors In PHP

- Parse or Syntax errors
- Fatal Errors
- Warning or Alert Errors
- Notice Errors


You can see more detail about it at [PHP Error Reporting](https://phperrorcode.com/error-reporting-in-php/) By PHP Error Code.