teleren/devto huggingface dataset:
How to Develop a Noise Reduction Function
Tags: java, programming
Published: 2022-05-25 07:16:54

## Background
It's now possible to carry a mobile recording studio in your pocket, thanks to a range of apps on the market that allow music enthusiasts to sing and record themselves anytime and anywhere.
However, you'll often find that nasty background noise creeps into recordings. That's where HMS Core Audio Editor Kit comes into the mix, which, when integrated into an app, will cancel out background noise. Let's see how to integrate it to develop a noise reduction function.

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

## Development Process

### Making Preparations
Complete these [prerequisites](https://developer.huawei.com/consumer/en/doc/development/Media-Guides/config-agc-0000001154009063?ha_source=hms1).

### Configuring the Project
1) Set the app authentication information via an access token or API key.

- Call **setAccessToken** during app initialization to set an access token. This needs setting only once.

```
HAEApplication.getInstance().setAccessToken("your access token");
```

- Or, call **setApiKey** to set an API key during app initialization. This needs to be set only once.

```
HAEApplication.getInstance().setApiKey("your ApiKey");
```

2) Call the file API for the noise reduction capability. Before this, the callback for the file API must have been created.

```
private ChangeSoundCallback callBack = new ChangeSoundCallback() {
    @Override
    public void onSuccess(String outAudioPath) {
        // Callback when the processing is successful.
    }
    @Override
    public void onProgress(int progress) {
        // Callback when the processing progress is received.
    }
    @Override
    public void onFail(int errorCode) {
        // Callback when the processing failed.
    }
    @Override
    public void onCancel() {
        // Callback when the processing is canceled.
    }
};
```

3) Call [applyAudioFile](https://developer.huawei.com/consumer/en/doc/development/Media-References/haenoisereductionfile-0000001191086911#section147681019155614) for noise reduction.

```
// Reduce noise.
HAENoiseReductionFile haeNoiseReductionFile = new HAENoiseReductionFile();
// API calling.
haeNoiseReductionFile.applyAudioFile(inAudioPath, outAudioDir, outAudioName, callBack);
// Cancel the noise reduction task.
haeNoiseReductionFile.cancel();
```

And the function is now created.
This function is ideal for audio/video editing, karaoke, live streaming, instant messaging, and for holding online conferences, as it helps mute steady state noise and loud sounds captured from one or two microphones, to make a person's voice sound crystal clear. How would you use this function? Share your ideas in the comments section.
I created a platform where you can solve React challenges (https://reactchallenges.live) 🚀 (PWA)
Tags: javascript, react, webdev, css
Published: 2022-05-25 07:02:29

The main idea is to create something similar to (Leetcode ,FreeCodeCamp) and challenging problems to solve. There will be more frameworks available, but currently, only React is in the scope.

Link: https://reactchallenges.live (No Registration required)

100% free, no premium accounts or limited functionality 😎

- Embedded IDE, code-sandbox. You can write code directly in the browser.
- Challenges are categorised based upon the topics and hooks.
- Every challenges has sample output with image in gif format.
- Most of the questions were previously asked interview questions from reputed companies.

20+ React challenges. More challenges will be added soon, but I need to hear feedback from you 🙂.

Three types of challenges: solve a task, fix a bug, or optimise the code.

3 difficulty levels: beginner, easy, medium.

Solutions - Every challenge has some reference solution and community discussion form will be added soon to share and discuss solutions.

Connect with me over LinkedIn to collaborate and for mock interviews :
👉🏻 https://www.linkedin.com/in/mvskiran/
First post on dev.to! Connect with me?
Tags: beginners, career, design, devjournal
Published: 2022-05-25 06:26:32

Hey ~~Devveleppers?~~!
~~Def Leppard?~~
Hey Devvers!

Hello!... I'm new here.
Brand new.


I'm Jack. 
I am a Software Development student at Western Governors University. 

I grew up coding and loved it, but I didn't take it far enough. 
I recently transitioned into IT and I currently work in a Support role. 

I am working on transitioning again into a QA Automation role, and beyond, as far as this journey takes me. 

Thank you for this community, and thank you in advance for being a resource and a place where I can learn and ~~devvelep~~ develop myself.

I am open to connecting with each of you and I look forward to all the great things ahead!
<center>
✌✌





[Connect with me!](https://bit.ly/3wNi9GT)

{% embed https://bit.ly/3wNi9GT %}




[LinkedIn](https://www.linkedin.com/in/jacktneely/)

[Work Smarter](https://discord.gg/bRYuzwyDSE)
(My Discord Server)

[GitHub](https://github.com/JackTNeely)

[Reddit](https://www.reddit.com/user/JackTNeely)

[Codewars](https://www.codewars.com/users/JackTNeely)

[Stack Overflow](https://stackoverflow.com/users/18601100/jack-t-neely)

[Twitter](https://twitter.com/jacktneely)

---

Thank you!


</center>
How Do I implement Web Scraping With NodeJS
Published: 2022-05-25 06:28:51

Hello everyone,

I have a task to scrape an instagram URL (https://www.instagram.com/{username}/?__a=1) and get the graphql data it returns. I've tried few methods some worked and later on stopped working.
Please if you know any 100% working method, i'll be happy to learn.

Thank you
best text editors theme
Tags: theme, texteditor, vscode, jetbrains
Published: 2022-05-25 06:28:00

## Atome(text editor) best thems
**UI theme**
	

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

-East end 
![East end](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q8357qxo7hzmne1kdxiv.png)
**Syntax theme**

- 	East end notebook
- 	East end 
- 	Predawn
- 	Solarized Dark
- 	Solarized Light

**font family**


[Hack](https://github.com/source-foundry/Hack/archive/v3.003.zip)
This is one of the most customizable fonts of all. It has 1,573 glyphs, and you can change the details of each one yourself.
![Hack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4vkvavsn3nxvg90bwst4.png)




[Anonymous Pro](https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1_002.zip)
with this font never mistake 0 from O.
![Anonymous Pro](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qql0pv6gnyzaubfnxftx.png)



## Jetbrains IDE or text editors best themes
**UI theme**
      

- Green lite theme
![Green lite theme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/udez37bm5tky5u2u27rh.png)

- CodelyTV Theme

![CodelyTV Theme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zy5c9ofg3psrj5sza43x.jpg)


**font family**

[Fira Code Font](https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip)
![Fira code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w8l4v9iyjy6sqf1whriw.png)
## Visual Studio Code best theme
**light theme**

- Eva light
![Eva light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yipq3pz42op9hhdejxhj.png)
- Quiet light 
![Quiet light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1uf9jsmz49gpi8sxhcn.png)
- Seafoam-pastel-light
![Seafoam-pastel-light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50ia5lczvkg6o4b9hjlo.png)
- Solarized light
![Solarized light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0a7gl8pjdveb4w30gkco.png)
- Ayu Light
![Ayu Light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6e7gr3tohzz6krq1fr9g.png)

**dark theme**

- Atom one dark
![Atom one dark](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pb9oo8uy6plcnsq75n2d.jpg)
- Ayu Mirage
![Ayu Light](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6e7gr3tohzz6krq1fr9g.png)

**font family**

[Inconsolata](https://github.com/google/fonts/tree/master/ofl/inconsolata)
compressed and clear.
![Inconsolata](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c3zaf1qvzk3ucd6w2799.png)

what is your favorite?
First commit!
Tags: javascript, webdev, beginners, programming
Published: 2022-05-25 06:26:15

<h1>Hey there everyone!</h1>
<p>I'm Tanishq Kaushal, a budding and aspiring web developer, currently I'm polishing my JavaScript skills and getting better at design patterns and writing clean code.
This is my first post in dev.to and I'm glad to be here among such wonderful and supporting developers!</p>

Since I'm new to this platform, let me give out my portfolios and contact details for collaboration and projects!

✏️<a target=_blank href = "https://tanishqkrk.github.io/tanishqkrk-portfolio/">My Portfolio!</a>
🐈‍⬛<a target=_blank href = "https://github.com/tanishqkrk">My GitHub!</a>
🐤<a target=_blank href = "https://twitter.com/TanishqKaushal">My Twitter!</a>
📷<a target=_blank href = "https://instagram.com/tanishqkrk">My Instagram!</a>

<b>Make sure to check out my resume and comment your review!</b>
Big data training in chennai
Published: 2022-05-25 06:21:29

Become a master in data processing by enrolling in our Big Data Training in Chennai. Our experts have meticulously designed Big Data Certification Course that is coherent to the industries around the world. We equip our learners with various big data tools used for performing big data processing over the tremendous data of the organization. 

Enjoy 15+ hands-on practices on the industry-standard Big Data Course Curriculum along with job support in our Big Data Training Institute in Chennai.

Big Data is the latest buzzword of the tech industries as it gives the ability to process data that are structured, semi-structured, and unstructured that are gathered by organizations.

 Our Big Data Course in Chennai equips you with organizational requirements like optimizing business processes, improving science and research, improving the healthcare sector, enhancing results for financial trading, and so on.

In today’s business, big data is considered the future as it provides greater access to massive volumes of data that allows the organization to obtain more insights. 

It is adopted by global companies as it gives an increased performance, and greater revenue, and rapidly evolving. Top companies are recruiting certified professionals to work on their large amount of data and all they require is certified Big Data Engineers. 

Enroll in our Best Big Data Training in Chennai that helps professionals to bridge the skill gap in global industries.

Visit: https://www.softlogicsys.in/big-data-hadoop-training-in-chennai/
Must know — Container Security Constructs: Namespace, SecComp, Control Groups, SELinux
Tags: containersecurity, security, eks, aws
Published: 2022-05-25 06:14:31

![Container Security Constructs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gbykxkady2n7a4erd3o7.png)

## SELinux
SELinux (Security-Enhanced Linux) is a mandatory access control system for processes. Linux kernel uses SELinux to protect processes from each other and to protect the host system from its running processes. Processes run as a confined SELinux type that has limited access to host system resources.

Condition that brings SELINUX into action. Check or configure file /etc/selinux/config for possible SELINUX values:

- SELINUX=disabled or
- SELINUX=enforcing or
- SELINUX=permissive

## Seccomp
Seccomp stands for secure computing mode.
#####The seccomp() system call operates on the Secure Computing       (seccomp) state of the calling process.
_*Man page definition_

Seccomp limits how processes could use system calls. Seccomp defines a security profile for processes, whitelisting the system calls, parameters and file descriptors they are allowed to use. SecComp defines which system calls should and should not be allowed to be executed by a container. It restricts the calls a process/continer able to make from userspace into the kernel.

## Namespaces
The kernel can isolate specific system resources, usually visible to all processes. This is done by placing the resources within a namespace. Inside a namespace, only processes that are members of that namespace can see or utilize those resources. Namespces help apply security restrictions to containers. Below mentioned are major 7 namespaces that help achieve boundaries and restrictions:

- Cgroup — Cgroup root directory
- IPC — Inter Process Communication, POSIX message queues
- Network — Network devices, stacks, ports, etc.
- Mount — Mount points
- PID — Process IDs
- User — User and group IDs
- UTS — Hostname and NIS domain name

## Control groups (cgroups)
Control groups partition sets of processes and their children into groups to manage and limit the resources they consume. Control groups place restrictions on the amount of system resources that processes can use. Those restrictions keep one process/container from using too many resources on the host.

CGroups Options(Examples):
- — cpu-shares
- — cpuset-cpus
- — memory-reservation
- — kernel-memory
- — blkio-weight (block IO)
- — device-read-iops
- — device-write-iops
Are your Tests Necessary and Useful?
Published: 2022-05-25 06:05:20

---
canonical_url: https://davidadamojr.com/are-your-tests-necessary-and-useful/
title: Are your Tests Necessary and Useful?
description: Some automated tests are unnecessary and problematic. Here are five questions to ask yourself about each test you write.
---
Some automated tests are unnecessary or problematic. 

For each automated test you write, ask yourself:

- Does this test offer any additional test coverage that is not already addressed by some other existing test?

- Which defect(s) do I expect this test to find or prevent?

- When this test fails, would I be able to easily determine what went wrong based on the test execution report?

- Can I reduce the scope of this test so that it integrates fewer components during its execution?

- Am I testing a private method directly? If so, can I modify my test or refactor my code and test through a public method instead?

Each test should exist for a good reason, and not merely to tick a box in a checklist. The effectiveness of your testing is dictated primarily by the quality of the tests you have. The number of tests that you do or do not have matters much less than you think.
4 Job Search Tips for New Software Engineers
Published: 2022-05-25 06:02:10

---
canonical_url: https://davidadamojr.com/jobs-for-new-software-engineers/
title: 4 Job Search Tips for New Software Engineers
description: Entering the job market as a new Software Engineer can be challenging. Here are some job search tips for new software engineers.
---
Entering the job market as a new Software Engineer can be challenging. Here are some job search tips for new software engineers.

# Take LinkedIn Seriously

Fill out your LinkedIn profile as best you can.

I have applied directly to many jobs outside of LinkedIn. However, all the jobs I have received and accepted so far, except one, originated from my LinkedIn profile.

# Avoid Consulting Companies

For your first job, avoid consulting companies if you can. Get a job at a company that is building and selling its own software products.

Many consulting companies move people between customer projects frequently. This project instability often creates an unfavorable environment for mentorship and skill/career growth.

# Consider Lesser-Known Companies

Do not limit your job search to well-known multinational companies.

Many lesser-known software companies do great software engineering work and provide fair compensation. Be on the lookout for these hidden gems.

# Learn Python

Learn Python, particularly for coding interviews.

Many interviewers understand Python’s relatively simple syntax. With Python, you can get more done in less time and with fewer keystrokes compared to programming languages like Java and C/C++. The time savings add up quickly in a coding interview.

There are many more useful tips that may improve your job search experience. However, the four tips in this post are some important things to consider as you begin your job search.
General Troubleshooting 🎯
Tags: raspberrypi, beginners, hardware, programming
Published: 2022-05-25 05:36:34

## General Trouble shooting

https://elinux.org/R-Pi_Troubleshooting

## Two massive problems with Pis: Power supplies and SD cards

### Power supplies

The all Pis released before the Pi4 require 5 volts to run correctly. It's easy to find a 5V USB charger, however the USB cable and the Pis ciruitry cause a slight drop in voltage resulting in under voltage which can cause SD card corruption amongst other things.

#### Solutions

1. Get a high quality short USB cable to reduce the voltage drop. Low quality materials have a higher resistance, as does a longer cable. 
2. Get a high quality or purpose built power supply for the Pi, it can accept up to 5.25V (10% tolerance) and will reduce the voltage to the required 5V on board. The [official website](https://www.raspberrypi.org/documentation/hardware/raspberrypi/power/README.md) says the Pi requires 5.1V and 2.5A for all Pis before Pi4 which is a Type-C connector and requires 3A

### SD cards 

Using an old SD card (especially one previously used in a phone) can waste a lot of time.

The card will be slower and is more likely to have errors than a new card.



## Common issues

https://circuitdigest.com/article/top-10-common-issues-while-using-raspberry-pi
Default setup - Display IP on startup 🌐
Tags: raspberrypi, python, beginners, tutorial
Published: 2022-05-25 05:34:10

## Display IP on startup

Show IP address on startup (for connection via SSH)
1. Create "`display_ip.py`"

2. Run this command to install the modules

   ```$pip install urlopen socket json```

3. Run this command to open the cron jobs file

  ```$ sudo crontab -e ```

  Add this to the cron jobs file. (Sleep for 1 minute to allow the internet to connect)

``` bash
@reboot /bin/sleep 60; python3 /home/pi/display_ip.py
```

### Addendum

File: ***display_ip.py***


``` python
#!/usr/bin/python3

from urllib.request import urlopen
import json
import socket

from tkinter import *
import sys
import os

if os.environ.get('DISPLAY','') == '':
    print('no display found. Using :0.0')
    os.environ.__setitem__('DISPLAY', ':0.0')


rootWindow = Tk()
rootWindow.title('IP Addresses')

hostName = Label(rootWindow, font = ('TkFixedFont', 20),)
hostName.grid(sticky = W, row = 1, column = 0, padx = 10, pady = (20,10))
localIP = Label(rootWindow, font = ('TkFixedFont', 20))
localIP.grid(sticky = W, row = 2, column = 0, padx = 10, pady = (20,10))
publicIP = Label(rootWindow, font = ('TkFixedFont', 20),)
publicIP.grid(sticky = W, row = 3, column = 0, padx = 10, pady = (20,10))

ip = urlopen('http://httpbin.org/ip').read()
ip = ip.decode('utf-8')
ip = json.loads(ip)
testIP = "8.8.8.8"
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect((testIP, 0))
ipaddr = s.getsockname()[0]
host = socket.gethostname()

localIP.config(text= "LAN:  " + ipaddr)
publicIP.config(text="WAN:  " + ip['origin'])
hostName.config(text="Host: " + host)

rootWindow.mainloop()
```
Show specific values of languagetool API on specific word on Textarea
Tags: php, programming
Published: 2022-05-25 05:33:28

Hi,
I’m using Languagetool API and trying to make a grammar & spellchecker by using PHP. I can highlight or color the first letter of wrong word. The problem is that I’m getting all suggestion values from API json array once. I want to show specific array replacement based on ‘offset’ parameter below specific word. Not al together.
API has replacement values according to offset parameter e.g. 0, 3, 6
By this loop I’m calling all values from inside matches → replacements → values.

```
foreach ($json2['matches'] as $key=>$val) {       //getting inside matches all arrays
      foreach ($val['replacements'] as $new=>$qwe) {     //all replacement arrays
            echo '<input type="button" value="'.$qwe['value'].'">';    //all values
      }
}
```
This is how Its showing on my context-menu.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7wkqnp919ijd19tr4q0.PNG)
I want to get the wrong word from textarea by its index position and show appropriately only its specific replacement array.
Seeking Guidance.
My JSON File:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgw1n53wcfkmeekbv14y.PNG)
Raspberry Pi tips 🥧
Tags: raspberrypi, python, beginners, productivity
Published: 2022-05-25 05:23:01

# Using a Raspberry Pi

## Background

I have used various Raspberry Pis since 2015, and during that time I've learnt a lot. Yet, I somehow manage to forget vast swaths of important information each time which results in hours of lost time due to making the same mistakes and having to relearn.

Table of contents:
- [Unix commands](https://dev.to/kevinjm/unix-commands-lf5)
- Default setup [(display the IP on startup)](https://dev.to/kevinjm/default-setup-display-ip-on-startup-4o6b)
- [General troubleshooting](https://dev.to/kevinjm/general-troubleshooting-2hid)

Cover image from [Raspberry Pi Ltd](https://www.raspberrypi.com/)
VS Code Tip of the Week: The Timeline Panel
Tags: vscode, git, vscodetips
Published: 2022-05-25 04:49:38

I was on vacation so this week’s tip is coming in a little late. The [Timeline panel](https://code.visualstudio.com/updates/v1_44#_timeline-view) is your friend.

Shoutout to Wes Bos on the Twitters for this gem.

{%embed https://twitter.com/wesbos/status/1528840885940649985 %}

Happy VS Coding!

Thanks to [Adrian Hernandez](https://unsplash.com/photos/7BcHkouw6Uc?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink) for making this [photo available freely on Unsplash](https://unsplash.com/photos/7BcHkouw6Uc?utm_source=twitter&utm_medium=referral&utm_content=creditShareLink).
Renew letsencrypt cert and import to Spring project
Tags: letsencrypt, cert, springboot
Published: 2022-05-25 04:21:49

Renew cert
`certbot renew`

Or if you want to force renew
`certbot renew --force-renew`

```
[root@server ~]# certbot renew --force-renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/yourdomain.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for yourdomain.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all renewals succeeded:
  /etc/letsencrypt/live/yourdomain.com/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
```

- Go to `/etc/letsencrypt/live/yourdomain.com`
- Convert the keys to PKCS12 using OpenSSL 

```
$ openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out keystore.p12 -name tomcat -CAfile chain.pem -caname root
```

- Enter your password for the key
The file keystore.p12 with PKCS12 is now generated in /etc/letsencrypt/live/yourdomain.com.

Make sure your server ssl key-store is pointed to the location your .p12 key created

```
server.port: 8443
security.require-ssl=true
server.ssl.key-store:/etc/letsencrypt/live/example.com/keystore.p12
server.ssl.key-store-password: <your-password>
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: tomcat
```