teleren/devto huggingface dataset:
Spring Boot Rest API @OneToMany
Published: 2023-03-25 18:55:27

[org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type java.util.ArrayList<com.rdutta.meanstack.meanstack.model.Company> from Object value (token JsonToken.START_OBJECT); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.util.ArrayList<com.rdutta.meanstack.meanstack.model.Company> from Object value (token JsonToken.START_OBJECT)<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 5, column: 16] (through reference chain: com.rdutta.meanstack.meanstack.model.Provider["company"])]
Hello World into HNG Internship 5.0
Tags: internship, beginners
Published: 2023-03-25 18:52:44

The Hotels.ng Internship, the biggest remote software developer program in Nigeria commenced some days ago.

It is well known for its training of upcoming software developers all over Africa through its well structured program, provision of resources and payment of basic allowance…yaay!! they give money too…Aside from that, you have the opportunity to meet and network with seasoned developers who will serve as mentors throughout the program.


Want to develop and move your career to the next level? HNG 5.0 is for you!

To join follow hng on twitter : https://twitter.com/hnginternship and follow the application process on the page.

Signup to the internship closes 1st April 2019.

You can follow me on twitter @itz_timilehin to get more news update.

Don’t forget to clap!! thanks.
How to remove a specific item from an array in javascript ?
Tags: javascript, react, frontend, webdev
Published: 2023-03-25 18:39:58

#𝐉𝐚𝐯𝐚𝐬𝐜𝐫𝐢𝐩𝐭 ✍️ 𝐩𝐨𝐬𝐭 - 6 :
👉 There are several ways to remove a specific item from the array in JavaScript. Here are few ways:

Hope this helps ✅ Do Like 👍
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4zjtly1frns8nr726y5f.JPG)

**<u>Follow us on Linkedin:</u>**
[https://www.linkedin.com/in/sai-krishna-nangunuri-bba504180](https://www.linkedin.com/in/sai-krishna-nangunuri-bba504180)
**<u>Follow us on Fb page:</u>**
[https://www.facebook.com/profile.php?id=100064154822848](https://www.facebook.com/profile.php?id=100064154822848)
UGC APPROVED JOURNAL
Published: 2023-03-25 18:37:43

Global Research Letters is an experienced publisher which aims at producing the academic and research community with the best possible open access publishing services. Our publishing solution includes journals, books, dissertations, theses, conference proceedings, abstracts, special conference issues, preprints, etc.

[(https://grljournals.in/)](https://grljournals.in/)
[(https://grljournals.in/index.php/about-us-2/)](https://grljournals.in/index.php/about-us-2/)
[(https://grljournals.in/index.php/contact/)](https://grljournals.in/index.php/contact/)
[(https://grljournals.in/index.php/editorial-team/)](https://grljournals.in/index.php/editorial-team/)
FREE-Voucher! Cybersecurity Exam
Tags: cybersecurity, tutorial, cloud, codenewbie
Published: 2023-03-25 18:35:01

FREE Exam Voucher!
(ISC)² is offering FREE access to their Certified in Cybersecurity℠ (CC) Online Self-Paced Training and Exam for anyone entering the field for the first time.


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



Here's the link to get started;
https://lnkd.in/dDRewAUE

Create an account with Pearson VUE, Select the certification: CC: Certified in the Cybersecurity.
Select your testing location and schedule your exam.
Enter the Voucher and click apply. Your total will automatically update to $0.

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


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


Exam Voucher: CC1M12312023
Self-Paced Training: https://lnkd.in/dA8TQpXn


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



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


[](https://www.isc2.org/Certifications/CC)
Looking for back-end experts to this project (Discord Project)
Published: 2023-03-25 18:04:00

---
title: Looking for back-end experts to this project (Discord Project)
published: true
description: if you are interesed, call me on Discord: nine#0007
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2023-03-25 18:04 +0000
---
Lambda X-Ray
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-03-25 18:33:50

[84/100] #100DaysOfCloud Today, I created a Lambda function that can be called via a Function URL, that queries a Dog photo API, then saves the image to an S3 bucket, and then shows the image in the browser.

## Services Covered
- S3
- Lambda
- IAM
- CloudWatch/X-Ray

You can try do it by yourself by following the steps from the link below: [GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/084/Readme.md)
Linux as an operating system by devraycodes
Published: 2023-03-25 18:05:56


The term "Linux" can also refer to an Operating System (OS) with a Unix-like interface that runs on the Linux kernel. Linux distributions such as Ubuntu and Red Hat Enterprise Linux are more recognizable examples. For instance, "Ubuntu is Linux" can be used.

The term "OS kernel" was mentioned earlier, but OS is not equal to the kernel. The term "OS" refers to a broader scope. In a very rough sense, an OS is the collection of everything that runs on the kernel or that all or most software depends on.

For example, an OS provides:

System service manager like systemd.
Shells like bash.
Standard C libraries used internally by programs written in C
Compilers for C, C++, Go, etc.
Interpreters for Python, etc.
The term "OS" is not strictly defined, so some people may argue that some items on the list above are not part of the OS.

Make matters worse, recent Linux distributions have become massive software collections that include everything from applications to middleware, in addition to the OS mentioned above.

As a side note, there is an OS called Debian GNU/Linux, which has other OS variants like Debian GNU/Hurd using the Hurd kernel and Debian GNU/kFreeBSD using the FreeBSD kernel.

Linux as a Whole Computer System
The term "Linux" can also refer to an entire computer system built on the kernel-based OS. For example, "Company X's system used to be Windows-based, but it migrated to Linux (a system built on Linux)".

Others
There's a reason why I specifically mentioned "Unix-like interface" in the "Linux as an Operating System" section. For example, Android uses the Linux kernel, but on top of that, it has a unique Android-specific software interface different from Unix-like systems. It's not incorrect to say "Android is Linux", but it's not commonly said. You might hear, "Android uses Linux" more often.

Conclusion
The term "Linux" is indeed difficult to use. When writing books or articles, it is necessary to define the terms as needed, and there is no standardized name to clearly distinguish each meaning.
[AWS DB Series] On-Prem DB Vs AWS RDS #1
Tags: aws, cloudskills
Published: 2023-03-25 17:56:19

In this blog post, we talk about AWS Relational Database Service (RDS) and why should be considered RDS as an alternative to On-prem traditional databases.

**Note-** This is a start and there will be more on the way. So subscribe/follow.

But before starting on AWS RDS, it is also necessary to discuss the traditional database system.

**Traditional Databases:**
When we start thinking about the traditional or on-prem databases worked on, a picture comes to mind where a Server (Bare Metal) with huge hardware having supported OS (Operating System) with RPM/Packages installed as recommended by the database vendor before proceeding for database installation followed by configuring. Even we know the challenges during installation till configuration to connecting applications and performance. Typically, it looks like below:

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

Now we need different teams to be involved to maintain all levels of this infrastructure starting with:
(1)	 Hardware Team
(2)	System Administrator (For OS related activities)
(3)	Database Administrator (DBA) 
(4)	Security

An important factor we definitely have to consider with this architecture is the huge CAPEX in setting up the server and administration overhead with the risk associated and a few indirect tasks.

Also, it’s important to know about different Cloud models including the responsibilities of AWS and Customers through the diagrammatic presentation below:

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

**AWS Relational Database Service (RDS):**
Amazon Relational Database Service (Amazon RDS) is a collection of managed services that makes it simple to set up, operate, and scale databases in the cloud. 

AWS RDS falls under PaaS Category i.e., blocks in RED need to be managed by the Customer and green blocks will be managed by Cloud provider AWS.

Now compare the On-Prem database discussed initially with the AWS RDS considering PaaS.

In the case of AWS RDS, many of the administrative tasks required to keep the database running smoothly will be handled by AWS RDS itself.

Having AWS RDS is definitely advantageous instead of managing own relation databases on-prem. How? We will come to know about it in a future blog post.

Ref:
   -   [AWS RDS](https://aws.amazon.com/rds/)

> **Important** - The information shared above will help you further in the future blog post in the series. This is also going to help you if you are planning for AWS Certified Database Speciality Exam as these will contain a few questions asked in the exam. Refer to details on the exam **[here](https://dev.to/ankurlibra/preparation-tips-aws-certified-database-specialty-exam-47f0)**.

In case any help is required connect me over [LinkedIn](https://www.linkedin.com/in/ankurlibra/) and [topmate.io](https://topmate.io/ankurlibra).

Please share your thoughts/feedback, which definitely matters the most to make the blog post more refined and useful.

Happy Learning and Sharing...
How to get the two maximum values from Array of Objects using reduce method javascript.
Published: 2023-03-25 17:20:25

To get the two maximum values from an array of objects using the reduce() method in JavaScript, we can follow a similar approach to the one we used for the array of numbers. However, we need to modify the reducer function to account for the fact that we are working with objects instead of numbers.

Here's an example:
`const arr = [  { name: 'John', age: 25 },  { name: 'Alice', age: 30 },  { name: 'Bob', age: 28 },  { name: 'Mary', age: 35 },];
const twoMaxValues = arr.sort((a, b) => b.age - a.age)
  .reduce((acc, curr) => {
    if (acc.length < 2) {
      acc.push(curr);
    } else if (curr.age > acc[1].age) {
      acc[0] = acc[1];
      acc[1] = curr;
    } else if (curr.age > acc[0].age) {
      acc[0] = curr;
    }
    return acc;
  }, []);
console.log(twoMaxValues); // [{ name: 'Mary', age: 35 }, { name: 'Alice', age: 30 }]`

We start by sorting the array in descending order based on the age property of the objects using the sort() method with a comparison function that subtracts b.age from a.age.

Next, we use the reduce() method to iterate over the sorted array. As before, we start with an empty array ([]) as the initial value for the accumulator (acc).

Inside the reducer function, we first check if the accumulator has less than two values. If so, we simply push the current object to the accumulator array.

If the accumulator already has two values, we compare the age property of the current object to the age properties of the objects in the accumulator. If the current object has a higher age than the second highest object in the accumulator (acc[1]), we replace acc[1] with the current object, and move the previous second highest object to the first position (acc[0] = acc[1]).

Finally, if the current object has a higher age than the first object in the accumulator (acc[0]), we replace it with the current object.

The reduce() method will return an array with the two objects with the highest age properties, which are the two objects with the highest ages in the original array of objects.

In the example above, the two objects with the highest ages are { name: 'Mary', age: 35 } and { name: 'Alice', age: 30 }, which are returned as the twoMaxValues array.

Thanks
How to get the two maximum values from reduce method javascript.
Tags: javascript, reactnative, programming, productivity
Published: 2023-03-25 17:14:57

In JavaScript, the reduce() method is used to reduce an array to a single value. It is a powerful tool that can be used to solve various problems, including finding the two maximum values from an array.

`const arr = [10, 20, 30, 40, 50];`
`const [max1, max2] = arr.reduce(([first, second], current) => {
  if (current > first) {
    second = first;
    first = current;
  } else if (current > second) {
    second = current;
  }
  return [first, second];
}, [-Infinity, -Infinity]);`
`console.log(max1); // Output: 50
console.log(max2); // Output: 40`

Here, we're using destructuring assignment to extract the first two values returned by reduce into max1 and max2. We start by initializing the accumulator to [-Infinity, -Infinity], which will be used to track the two largest numbers. We then iterate over the array, comparing each value to the two largest values found so far. If the current value is greater than the largest value, we shift the largest value to the second largest value, and set the largest value to the current value. If the current value is greater than the second largest value but less than or equal to the largest value, we set the second largest value to the current value. Finally, we return the updated accumulator, which contains the two largest values found in the array.
Master VS Code Like a Pro with These Game-Changing Extensions
Tags: vscode, webdev, javascript, tutorial
Published: 2023-03-25 17:10:50

## Live Server:

With this extension, we can automatically refresh the browser, to see the results of changes in the code.


![Liver server extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6kkd1tbt61o72uekd1ta.jpg)

## Tabnine:

This AI will help you code faster. 
It saves a lot of time and typing with it's auto-complete function.


![Tabine extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/osd3qiwdz9dt6worutxa.jpg)

## Peacock

You can distinguish multiple windows of VS Code with different colors.

Peacock lets you change the color of your VS code even if multiple instances are open.

![peacock extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k3vgztodzq99xyd9rc3n.jpg)

## VSCode Color Picker

This extension helps you to choose color from color Palette 🎨
This gives view of the color shade and generate it's code.


![color picker extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bd0ttg5t19wk74sqtxd3.jpg)

## Prettier - Code formatter

Who doesn't like beautiful format of code?
This extension will help you to format any kind of code.


![prettier extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/setyf2slrb0466c99aiv.jpg)

## Auto Rename Tag

This extension is used to automatically renames paired HTML/XML tags. 
It's really helpful when you are working on bigger projects.


![auto rename extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4x335znvvxy2gt36thx6.jpg)

## ES7 React/ Redux/GraphQL/React-N

This extension provides you JavaScript and React/Redux snippets in ES7 with Babel plugin features for VS Code


![React snippet extension](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11jfna8vjeobjjaaz750.jpg)
Get Ready to Play "Zero Kata" - The Ultimate Multiplayer Tic Tac Toe Game! 🎮
Tags: node, javascript, socketio, react
Published: 2023-03-25 16:58:26

Hey, hey, hey!👋 Are you ready to get your game on and play some "Zero Kata"? 🎮👀

This multiplayer Tic Tac Toe game is the bomb diggity, built with **Node.js, React.js, Socket.io, HTML, and CSS** to bring you a real-time gaming experience like no other!

So, here's the deal - you can create your own room or join a friend's to start playing. And trust me, once you start, you won't wanna stop! The game board updates in real-time, so you can see your friend's moves as they make them. It's like being right there with 'em, even if you're miles away! 🌍🤝

So, what are you waiting for? Get over to [https://zero-kata.netlify.app](https://zero-kata.netlify.app) and start playing "Zero Kata" like a pro!🏆🎉 And if you're curious about how the game was built, check out the GitHub repository at [https://github.com/harshilsharmaa/Tic-Tac-Toe-Multiplayer](https://github.com/harshilsharmaa/Tic-Tac-Toe-Multiplayer). But for now, let's get this party started! Wooooo! 🎉🎊🎉🎊
Jest essentials
Tags: jest, testing, javascript, beginners
Published: 2023-03-25 16:48:26

Jest Essentials:

On this post I am going to make a short explanation about jest and how to start with it as a beginner.

render: what`s render? As we also use it when rendering a component is basically that. This method will help us rendering the component on the testing side.

If we need to get an specific test-dataid, role, text, etc. we can get it by just destructuring the component.
We can get it testid, role, text and other things in order to test the component.

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


myComponent.test.tsx

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

This way we will receive that the test is incorrect because we were expecting the textContent to be 'test ttt' but it actually is 'test text'

Now we just fix it and we will see how it is correct now.
myComponent.test.tsx

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


Now we are going to talk about the 'fireEvent' element and how we can use it.

There is a lot of use for 'fireEvent' but one of the main ones it is the fireEvent.click() which is as may think to imitate a click event.

myComponent.tsx

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

myComponent.test.tsx

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

This way we are testing that the function is being called by passing it as a parameter to the component in order to test it.

If you want to learn more about jest i will highly recommend going to the jest documentation.

Hope someone found it useFul.

Lautaro.
Buzz - Offline Audio Transcription and Translation Tool Powered by OpenAI&#x27;s Whisper
Tags: opensource, programming, stackfoss
Published: 2023-06-21 21:26:36

---
title: Buzz - Offline Audio Transcription and Translation Tool Powered by OpenAI&#x27;s Whisper
published: true
date: 2023-03-25 16:37:59 UTC
tags: opensource, programming, stackfoss
canonical_url: 
---

[Buzz](https://github.com/chidiwilliams/buzz) is an open-source application that can transcribe and translate audio in real-time. It can import audio and video files and export transcripts to TXT, SRT, and VTT formats. Buzz supports the following models: Whisper, Whisper.cpp, Whisper-compatible Hugging Face models, and the OpenAI Whisper API. It is available on Mac, Windows, and Linux.

To install Buzz, you need to download the latest version for your operating system from the Buzz GitHub releases page. For macOS 11.7 and later, you can install Buzz via Brew or download and run the Buzz-x.y.z.dmg file. For Windows 10 and later, download and run the Buzz-x.y.z.exe file. For Ubuntu 20.04 and later, install libportaudio2 and download and extract the Buzz-x.y.z-unix.tar.gz file.

To start a live recording with Buzz, select a recording task, language, quality, and microphone, and click Record. The Task can be set to "Transcribe" or "Translate," Language can be set to "Detect Language" or one of the supported languages, Quality can be set to "Very Low," "Low," "Medium," or "High," and Microphone can be set to the available system microphones or the default system microphone.

Note that transcribing audio using the default Whisper model is resource-intensive. If your computer is unable to keep up with real-time transcription, consider turning on GGML inference.
Python dictionary append
Tags: python, programming, tutorial, codenewbie
Published: 2023-03-25 16:37:53

Python dictionary is a collection key value pair, unlike like python list, values in dictionary are stored and accessed using key, where in list we will use index.

In list to append a value, we can use a inbuild list method append to add a value to list.
```py
l = [1,2,3,4,5]
l.append(6)
print(l)

# Output:
1, 2, 3, 4, 5, 6
```

## Append a value to dictionary
To add a new value to dictionary, simply use the assignment operator, if the key value is not in dict, python will add a new entry. If the key is already exist in dict then it will update the value
```py
d = { "a": 1, "b": 2 }
d["c"] = 3
print(d)

# Output
{ "a": 1, "b": 2, "c": 3 }

d["c"] = 20
print(d)

# Output
{ "a": 1, "b": 20, "c": 3 }

```


### Explore Other Dev.to Articles
[Python One Line While Loop](https://dev.to/max24816/python-one-line-while-loop-4j2k)
[Read and write csv file in Python](https://dev.to/max24816/python-read-and-write-csv-file-2onh)
[Python Install Jupyter Notebook](https://dev.to/max24816/install-jupyter-notebook-1cm0)
[Python Create Virtual Environment](https://dev.to/max24816/python-create-virtual-environment-3iai/edit)
[Read and Write JSON in Python Requests from API](https://dev.to/max24816/read-and-write-json-in-python-requests-from-api-52ga)
Bigg Boss 17 Live
Tags: webdev, tutorial
Published: 2023-03-25 16:33:53

Bigg Boss 17 is a Hindi Show of reality Games, Bigg Boss 17 can be watches at voot. 
series of the show Bigg Boss 17th Season that airs At colors tv free of cost online.

[url=https://biggboss17.nl/]Bigg Boss 17 Live[/url]
Deploy a resilient monitoring stack using Terraform and Ansible: Deploy Prometheus and Grafana clusters on AWS
Tags: aws, devops, terraform, ansible
Published: 2023-03-25 16:25:48

Monitoring is a very important part of Devops for any application. Having a proper monitoring stack to monitor applications or measure performance is as important as deploying the application itself. So it becomes important for the team to maintain a resilient monitoring setup which is able to cope up with the application availability too. Thats why I started learning to deploy a HA (highly available) monitoring stack which can handle monitoring loads and stay HA.  

For more details:  

https://amlanscloud.com/monitoringstack/