teleren/devto huggingface dataset:
Learn From Mistakes
Published: 2023-01-02 04:07:06


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32nm3smiqgiinfhw1u0o.jpeg)"One of the most valuable things we can do in life is to learn from our mistakes. Every mistake is an opportunity for growth and self-improvement. However, it's important to approach this learning with a growth mindset, rather than dwelling on the mistake or beating ourselves up about it.
Smart Agriculture
Tags: iot, agritech, news
Published: 2023-01-02 04:02:09

Smart Farming Robots are primarily based on Machine Learning mostly referred to as AI or Artificial Intelligence.

One example is a small Dairy Farm in Southern England, where they use smart farming Technology to monitor the cows' health. Also, they know when the cow's utter is full and send the cows to a Milking Robot.

Professor Thomas Blaha here criticises Smart Farming & says that Farmers depend too much on this Technology and pay less attention to their Livestock but, he says when Smart Farming is used properly it can be helpful in the Animals well being.

Smart Farming Technology can be used at home if you have a big room or hall you may be asking why big room or hall. Well, the answer is that this light may be harmful to your skin so it will be better if you can distance it.

One Startup helping smallholder farmers in rural areas is Lentera based in Kenya, Africa the farmers say that by using Lenteras Technology their yield has increased by up to 40%.

					
											THANK YOU!
What are your goals for 2023?
Tags: talk, watercooler, discuss
Published: 2023-01-02 03:33:50

Happy new year everybody! I hope this new year brings many good things to all of you and it may be a year where you grow as professionals and people.

Let's talk about your goals. What were your goals for last year? Did you accomplish those goals? Are they still in progress? Remember that progress, whether small or big, is still progress, and you should feel really proud of yourself! 

What are your goals for this new year? Before starting to write this article, I was writing on a notebook some of the things that I want to accomplish for this year, and I wanted to share with you some of the things I wrote:

- Start my journey in data science. I've always found this topic very interesting but never made the time to actually study. This year, as a way of making myself study, I bought a year subscrition to some data science courses.
- Travel more, both inside and outside of my country. Fun fact about myself, I've never traveled outside of my country. I want to change that this year.
- Learn more about personal finances and manage my money better.
- Write more articles in here.
- Practice more with my guitar and learn a silly skill like card tricks or playing with dices (I want to learn how to stack them in a cup).
- Read a book monthly (Open to suggestions! Let me know books that you like).
- Go to more live music events.

Let me know in the comments about some of your goals for this year!
API Testing Using Postman: Part 1 ( What is an API? )
Tags: webdev, beginners, programming, tutorial
Published: 2023-01-02 03:14:03

API testing postman: In this series of API Testing using Postman - Part 1, You are going to learn What is an API? and What is API Testing with Postman Installation and Quick Postman tool overview.  #API #APITesting #Postman #APITestingTutorials.

{% embed https://youtu.be/ISjyXzkF-4w
 %}

🎓🖥️✅  Subscribe​ to The Testing Academy Channel.
→https://www.youtube.com/c/TheTestingA...
🔔 TURN ON NOTIFICATIONS🔔 

✅ 30 Days of API Testing Challenge - https://apitesting.co/30days

✅ 30 Days of Automation Testing Challenge - https://go.scrolltest.com/automation

✅ 30 Days of Rest Assured(with Framework) - https://go.scrolltest.com/30days-rest...


You are going to learn the concepts of API, API testing, web services and HTTP Methods basics which are helpful in API testing interview questions. you will learn about everything API Testing Using Postman.

👨‍🎓✅ Join Community 1200 Automation Testers - https://sendfox.com/thetestingacademy


✅ TimeStamps 
🚀What is an API ?  👉🏼 3:35
🚀Types of API 👉🏼 4:57
🚀What is API Testing? 👉🏼 5:12
🚀Why do we perform API Testing? 👉🏼 5:58
🚀What to Test in API Testing? 👉🏼 7:18
🚀SOAP Vs REST 👉🏼 8:47
🚀What is REST? step by step. 👉🏼12.41
🚀Who uses the REST APIs 👉🏼13:04
🚀API Testing using Postman(Install Postman and Overview) 👉🏼18:09
🚀API Testing TestCases with Postman👉🏼23:00

Join Facebook Group :  http://bit.ly/learntesting2019

Website:   https://scrolltest.com

Website:   https://thetestingacademy.com

Twitter: https://twitter.com/itstechmode


Download PPT : https://bit.ly/2PhosOh


API stands for Application Programming Interface.
API is a defined set of rules, which contains clearly defined methods of communication. API helps different software components to interact with each other.

API testing involves testing the collection of APIs and checking if they meet expectations for functionality, reliability, performance, and security and returns the correct response.
API testing is used to determine whether the output is well-structured and useful to another application or not, checks the response on basis of input (request) parameter, and checks how much time the API is taking to retrieve and authorize the data too. 🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka


✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1


✅Programming Java -
https://bit.ly/learnjava2020-p1


✅Test Automation - 
https://bit.ly/learnautomation2020


✅API Testing - 
https://www.learnapitesting.com


✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com


#TheTestingAcademy
— The Testing Academy
Function declaration and Function Expression
Tags: javascript, webdev, programming, beginners
Published: 2023-01-02 02:42:51

The function expression is nearly similar to the function declaration, but there are some differences.

The function declaration is created by first declaring the function keyword, followed by a code block where we put our code to be executed.

```
Function name(parameters){
  Our code to be executed 
}

name(argument);
```

And meanwhile, the function expression can be stored in a variable, which is then used as a function.

```
Const name = function ( parameters a, parameter b){

 Our code to be executed 
};

name(argument);
```

As an expression, the semicolon is placed at the end of the code block because that is where it is expected to be.

**Hoisting** 

hoisting allows you to use functions and variables before they are declared.

This is done with function declaration but not with function expression.

Examples

```
name(argument);

Function name(parameters){
  Our code to be executed 
}
```

This is a function declaration; the code will be executed because JavaScript hoisting accepts it.

```
name(argument);

Const name = function ( parameters a, parameter b){

 Our code to be executed 
};
```

Meanwhile, because this is a function expression, the code will not run because JavaScript hoisting does not accept it. 
It’s will display undefined.

I hope this is of great assistance to someone out there.
I didn't like the way the Twitter UI looked on my smaller screen, so I made a quick extension to fix that
Published: 2023-01-02 02:31:36

Today we'll learn one of the most basic, but most powerful feature of a chrome extension... the content script. Code along with me or clone my [repo](https://github.com/MVAodhan/twitter-blue-hider) to add it to your chrome.

If you'd like to further with your extension, here are some helpful docs.

Extensions: https://developer.chrome.com/docs/extensions/
Manifest: https://developer.chrome.com/docs/extensions/mv3/manifest/
API reference: https://developer.chrome.com/docs/extensions/reference/
Service workers: https://developer.chrome.com/docs/workbox/service-worker-overview/

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

In a new directory, create a `manifest.json` file, it's the most important file of any extension and ties the whole thing together.
It's fairly self explanatory defines a content script that will run any twitter twitter path, after the page loads (as defined by `"matches": ["https://twitter.com/*"]`)

```json
{
  "manifest_version": 3,
  "name": "Twitter Blue hider",
  "version": "1.0.0",
  "description": "Simply hides the Twitter Blue button on twitter, makes the UI nicer on a smaller screens.",
  "icons": {
    "16": "twitter.png",
    "48": "twitter.png",
    "128": "twitter.png"
  },
  "action": {
    "default_icons": {
      "16": "twitter.png",
      "48": "twitter.png",
      "128": "twitter.png"
    },
    "default_title": "Twitter Blue hider"
  },
  "content_scripts": [
    {
      "matches": ["https://twitter.com/*"],
      "css": ["twitter.css"]
    }
  ]
}
```

The script simply runs the CSS in `twitter.css` and targets an a tag inside the nav with an aria-label attribute of "Twitter Blue" and sets the display to none.

```css
nav [aria-label='Twitter Blue'] {
  display: none;
}
``` 

The extension is so simple in terms of function, now lets add it to our browser. Go to `chrome://extensions/` in Chrome, Toggle on Developer Mode, click load unpacked and select the directory of your project.
Palindrome Number using Java
Published: 2023-01-02 02:21:57

Hi, this is Day 2 of  my LeetCode journey. I tried Palindrome Number problem using Java. Then, I found 2 solutions. (Of course, there are other ways to solve it.)

1. Converting integer into String
```
class Solution{
  public boolean isPalindrome(int x){
    String numSt = Integer.toString(x);
    char first = 'b';
    char last = 'o';
    int j = numSt.length()-1;
    for(int i=0;numSt.length()/2;i++){
      first = numSt.charAt(i);
      last = numSt.charAt(j);
      if(first!=last){
        return false;
      }
      j--;
    }
    return true;
  }
}
```

2. Using while loop
```
class Solution {
  public boolean isPalindrome(int x){
    int temp=x;
    int remainder=0;
    int sum=0;
    if(x<0){
      return false;
    }
    while(temp!=0){
      remainder = temp%10;
      sum = sum*10+remainder;
      temp/=10;
    }
    if(sum==x){
      return true;
    }
    return false;
  }
}
```
How to make money as a software engineer?
Tags: webdev, programming, career, beginners
Published: 2023-01-02 02:07:22

**-Full-time employment**: Software engineers can work for a company as a full-time employee and receive a salary and benefits.

**-Freelancing:** Some software engineers choose to work as freelancers, taking on short-term or project-based work from a variety of clients.

**-Starting a business:** Some software engineers choose to start their own businesses, either by developing and selling their own software products or by providing consulting and development services to clients.

**-Stock options:** Some software engineers receive stock options as part of their compensation packages, which can provide a financial return if the company's stock price increases.

**-Contract work:** Software engineers can also find contract work through agencies or as independent contractors, working on a project-by-project basis.

**-Open source contributions:** Many software engineers make money by contributing to open source projects and getting paid for their work through donations or sponsorships.

**-Teaching or training:** Software engineers who are knowledgeable about a particular programming language or technology may be able to make money by teaching or providing training to others.

**-Writing and blogging:** Some software engineers make money by writing about technical topics and sharing their knowledge through blogging or writing for online publications.

**-Productized services:** Software engineers may be able to create and sell a productized service, such as a tool or automation service that they have developed.

**-Licensing:** Software engineers may be able to license their software to other companies or individuals for a fee.


Overall, there are many different ways that software engineers can make money, and the best approach will depend on an individual's skills, interests, and goals.
Succeed in your job search for 2023
Tags: webdev, javascript, beginners, programming
Published: 2023-01-02 01:53:48

Establish what's important to you. Flexibility? Stability? Or salary? Remote work or a job that requires you to be in the office? Be clear on what you want and what are your red lines.
Reconnect with old friends and colleagues. Ask them what they have been up to, their current role and if they have any helpful career advice.
If you're already out of a job then take this time to learn new skills. Research free and affordable online courses and programs as they could open doors for you.
Be open to local and national job markets. If you're able to be flexible then it might be worth checking industries that you're not in if vacancies are available.
Introduction to Amazon Cloudfront & Build your CDN on s3 resource using AWS CDK
Tags: aws, typescript, devops, cloudskills
Published: 2023-01-02 00:47:43

**This video covers the following**

- Introduction to CDN
- Introduction to Cloudfront
- Building Cloudfront Distribution for an s3 Bucket using AWS CDK
- Deploy CDK Stack to AWS Account through CLI

{% embed https://www.youtube.com/embed/Uyccz4eVszU %}
Build a CI CD Pipeline for a Static React Website in s3 using AWS CDK
Tags: devops, react, typescript, aws
Published: 2023-01-02 00:41:06

This video will guide you build a CI-CD Pipeline for a Static React Website in s3 bucket using AWS CDK.

The CI-CD pipeline is build using CodePipeline, CodeBuild & CodeDeploy.

The CDK code is written in Typescript.

{% embed https://www.youtube.com/embed/dB4pRxaxNvs %}
Introduction to AWS CDK & Getting started in Typescript
Tags: devops, aws, typescript, cdk
Published: 2023-01-02 00:36:14

**This video covers the following topics**

- AWS Cloud Development Kit Intro and setup.
- Introduction to CDK.
- What, Why and How to use CDK.
- Prerequisites and setup for CDK.

{% embed https://www.youtube.com/embed/L1RlekpNbmA %}
Can I remove the "DEBUG" banner in Flutter?
Tags: flutter
Published: 2023-01-01 23:44:03

You have certainly seen the `DEBUG` banner shown on the top right corner of your app when developing in local host.

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

I bet you asked yourself: can I remove it? 

Yes you can! The `MaterialApp` widget has the `debugShowCheckedModeBanner`property, see [here](https://api.flutter.dev/flutter/material/MaterialApp/debugShowCheckedModeBanner.html). You can set it to `false` to remove it.

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

If it's still there, make sure [you have only one](https://stackoverflow.com/a/69790334/3630417) MaterialApp widget in your app.

Handy to take those screenshots you need to upload your app in the App store ;)
Introduce
Published: 2023-01-01 23:16:43

I am Mochammad Rizqi Azmi, called Rizqi, Age 21 years old, my hobbies are reading books and traveling. live on Jln. Ra Kartini 1B No. 27 Gresik East Java. I am a new software engineer in Surabaya and have expertise in operating basics - computer basics and programming back-end application developers. Offer expertise in writing, computation, development, and maintenance. Interested in computer maintenance and calculations.
TRPC: The Future of Fullstack Web Development
Tags: webdev, javascript, fullstack, nextjs
Published: 2023-01-01 22:12:33

Are you tired of the endless back and forth between your frontend and backend code? Are you sick of the never-ending debugging sessions trying to figure out why your API isn't working? Say goodbye to those headaches, because TRPC is here to revolutionize fullstack web development.

But what is TRPC, you might ask? TRPC stands for "Tightly-Coupled Remote Procedure Call," and it's a game-changing technology that allows for seamless communication between your frontend and backend code. With TRPC, gone are the days of manually setting up API routes and handling complicated request and response payloads. TRPC handles all of that for you, allowing you to focus on what really matters: building out the features and functionality of your app.

But that's not all. TRPC is also fully typesafe, meaning that it ensures that your code is error-free and easy to understand. No more guessing what type of data is being passed between your frontend and backend - with TRPC, you'll always know exactly what you're working with.

So how do you get started with TRPC? Lucky for you, Theo from t3.gg has created a fantastic resource for getting up and running with TRPC, as well as some other awesome technologies like Next.js, Prisma, and Tailwind CSS. Just head on over to https://create.t3.gg/ and you'll be well on your way to becoming a TRPC master.

But don't just take my word for it - give TRPC a try and see for yourself how it can revolutionize your fullstack development workflow. And a big thanks to Theo for introducing me to this amazing technology - without him, I would have never known about it!
Your journey can be tricky
Published: 2023-01-01 21:56:43

Photo by <a href="https://unsplash.com/@foxxmd?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Matt Duncan</a> on <a href="https://unsplash.com/s/photos/Journey?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
  
  
Hi there, it’s me again... Audrey!!
The  last article I wrote was about getting started in tech and this one is about telling you how tricky the journey can be. Whether you are switching careers or improving your skills, getting into tech can be a very tedious task. The first thing is that you will have a lot of information to digest. This information can be coming from various social media platforms. It could be Twitter or Facebook/Meta… You get what I mean. 

I am writing this article to let you know that there is a lot to do on your journey to becoming the successful Engineer you want to be. For instance,  you need to do the following:
Being a good engineer refers a lot to the way you interact with people or communicate with people working with you.
The way you are interested in the growth of the juniors  and willing to help them achieve it.

But at the end of the day, the journey to Software Engineering is only what you want it to be or designed it to be. But,  where can it be tricky? It becomes tricky when the amount of information we digest shapes the way we think and approach problems. It shouldn’t be so.
 
Amongst all this information, find a way to describe who you are and keep up with your values. Because, trust me, you need to be the master of your destiny and no one  else.
OAuth 2.0 - Refresh Token
Published: 2023-01-01 21:56:02

As simple as below

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

Of course you can request for a never-expired token


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

https://docs.google.com/presentation/d/1e0bWzKk5JxxGXlAvAyeWe1q8iYgY804Y6vZ-zCpRAKU/edit#slide=id.g8dca480b65_0_32
OAuth 2.0 - Grant Types
Published: 2023-01-01 21:34:49

Types are designed to the nature of different clients.

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

The typical choice for Server-side web app and mobile native app (both can store client credential: id and cecret properly):

**Authorization Code**


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

A detaied sequece diagram of what has happened:

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

https://docs.google.com/presentation/d/1CiAiuay5rd1KDDnYwOyu6ud9xk5ZetSQDOMp9DYUKjs/edit#slide=id.g8bb7b0e120_0_0


For JavaScript SPA (single page application), they should use
**PKCE - proof key of code exchange**

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

To make sure the client is the true client, in the 2nd call (use client id and auth code to exchange to an access token) to auth server, client needs to generate code_verfifier value devrived from the code_chanllenge value.

And the auth server needs to validate this request by using S235 to decode code_verfifier into code_chanllenge value to see if it matches the code_chanllenge value received in the 1st call (getting the auth code).


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

https://docs.google.com/presentation/d/1yJeYPMoPY2050cZkkBcBu1SL5Z88StV7O7fH5f_6X3A/edit#slide=id.g8b2fa1d558_0_112

To do machine to machine request (from a no-UI web server, like BFF), use:

**Client Credential**

Literally, there is no auth_code involved.

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

https://docs.google.com/presentation/d/1KEA3i0F0bhB4me1uHfXkbmuaaFeRyxo7rG0ih-MlP68/edit#slide=id.p
Establishing a learning curriculum for data science with OpenAI ChatGPT
Tags: openai, datascience, chatgpt, roadmap
Published: 2023-01-01 21:29:46

On the first day of 2023, I am, like most of my peers, struck by the possibilities that the public release of OpenAI ChatGPT holds. I already use it on a daily basis and keep on discovering new applications for it everyday.

My latest request to ChatGPT was :

« I am a back-end web developer and I would like to shift my future learning towards data science. Could you provide me with a roadmap for 4 months to become a data analyst? »

Here was its response:


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

This seems to be an excellent answer (keeping in mind that ChatGPT was fed from the web until 202). It establishes a good base roadmap, but let’s delve a little further into detail.

My next question :

« Could you write a more detailed curriculum on 4 months so I can become a data analyst ? Maybe you could inspire yourself from online courses that deliver a degree at the end. Here are some examples: Week 1 to 4 : learn SQL Week 4 to 5 : Python and NumPy Week 6 : Create a project etc »

ChatGPT’s answer :


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

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

As usual, here is a concise and relevant response. As I would also like to enrich my learning with concrete examples, I asked ChatGPT to add project ideas for each part of the curriculum.

ChatGPT’s answer :


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

So here I am with a detailed roadmap for 4 months to learn the basics of data science. I arbitrarily chose a 4 month period in order to maintain motivation and stay fresh and interested during my learning. It is obviously impossible to master such a complex subject as data science in a few months, but I remain convinced that short learning sprints are an excellent way to develop new skills as a self-taught learner without losing sight of your goals.

New and unprecedented possibilities are opening up for us. Where it would probably have taken me several hours of research to scour various articles or forums to establish a coherent roadmap, I can get a detailed plan in a few minutes thanks to ChatGPT. If it is still far from perfect and sometimes makes gross errors (yet confidently declared, beware), it is for me the most game-changing open technology of 2022.