teleren/devto huggingface dataset:
Amazon Web Services
Tags: aws, cloud, writing
Published: 2022-09-18 21:47:52

Amazon Web Services Inc., is a subsidiary of Amazon aimed at providing on-demand cloud computing platforms and APIs to individuals, companies and governments on a pay-as-you-go basis. These services offered by Amazon provide distributed computing processing capacity and software tools through AWS server farms(An AWS server farm is a collection of AWS servers maintained by Amazon to supply server functionality far beyond the capability of a single machine). Amazon Elastic Compute Cloud(EC2), one of the most popular of these services, allows users to have a virtual group of computers available at their disposal through the Internet. These virtual computers are a simulation of most attributes of a real computer, like hardware CPUs and GPUs for processing; local and RAM memory; hard disk and SSD storage; a set of operating systems, networking and pre-loaded application software like web servers, databases and customer relationship management. AWS subscribers can pay for a single virtual AWS computer, a dedicated physical computer, or clusters of both.

Subscribers pay for hardware, OS, software or networking features as desired, regarding availability, redundancy, security and service options.

Amazon offers its services to its clients at a large scale computing capacity, and at a very affordable price. For this reason, AWS got 33% market share for cloud infrastructure as of 2021. These services comprise over 200 products, including storage, database, networking, analytics, application services, deployment, management, machine learning, mobile, developer tools, RobOps and IOT.
Interface segregation principle (SOLID)
Tags: solidjs, interview, angular, career
Published: 2022-08-12 22:00:00

## Motivation

Hi guys. My name is Roman Pedchenko and I am a full-stack developer. Pleased to make your acquaintance. It is my first article and I ask you do not judge it too harshly. The idea to write the article appeared after my conversation with my friend [Max Grom](https://www.youtube.com/channel/UClDDVLu0Cj_o9Y5D2ilCtdQ) and I want to say thanks him.

## Story

There are lot's of developers has an technical interview every day. Someone wants to receive a new job, someone the first one. But the problem is that you have to show your knowledge in a limited period of time which is why every answer is really important. In my humble opinion there are three types of answers. The first one is just academic knowledge. It means that you read about something but do not use it. The second one is you can describe or give an example from real world but you could not answer on the questioin what is it a principal or paradigm or pattern. And last but not least it is to combine the first and the second. Not only you know how to use it but also what you use. As you probably guess that the third 
one amplifyes your position on an interview as a really good developer.

I bet everyone it does not metter you are a candidate or an interviever to prepare for the interview repeats **SOLID** principals. In addition to that I beleive that everyone tryes to use it every day but when someone asks could you explain them and gives some examples. It is always so dificult. In this article I will touch only one letter from abreviation but I hope it helps you to be more convincied.

## Letter I
If you open wiki you will easily figure out that 
> The interface segregation principle (ISP) states no code should be forced to depend on methods it does not use.ISP splits interfaces that are very large into smaller and more specific ones so that clients will only have to know about the methods that are of interest to them.

I hope it sounds really easy to understand but as I wrote  above not only teoretical knowled but also the examples where do we use it and here there are lots of people to get stuck. And here's a hint. It is easier than learning the definition itself. If you are a Angular developer that you are lucky person. Every time and every day when you create a component and add some hooks to component you use it. 

```
export class AppComponent implements OnInit, OnDestroy {
  ngOnInit() {
  // some logic
  }
  
  ngOnDestroy() {
  // some logic
  }
}
```
As you can see we have to implement two interfaces in order to that hooks start to work and that's all. And oddly enough I believe that this answer will show you that at least you know the letter **I** from SOLID.

Thank you and break a leg at a job interview.
Efficiently read files in a directory with Node.js opendir
Tags: node, javascript, tooling, typescript
Published: 2022-08-12 23:14:24

_Originally [published on my blog](https://danawoodman.com/writing/efficiently-read-files-in-directory-with-opendir)._

---

Recently I had to scan the contents of a very large directory in order to do some operations on each file.

I wanted this operation to be as fast as possible, so I knew that if I used the standard [`fsPromises.readdir`](https://nodejs.org/api/fs.html#fspromisesreaddirpath-options) or [`fs.readdirSync`](https://nodejs.org/api/fs.html#fsreaddirsyncpath-options) which read every file in the directory in one pass, I would have to wait till the entire directoy was read before operating on each file.

Instead, I wanted to instead operate on the file the moment it was found.

To solve this, I reached for `opendir` (added `v12.12.0`) which will iterate over each found file, as it is found:

```typescript
import { opendirSync } from "fs";

const dir = opendirSync("./files");
for await (const entry of dir) {
	console.log("Found file:", entry.name);
}
```

[`fsPromises.opendir`](https://nodejs.org/api/fs.html#fspromisesopendirpath-options)/[`openddirSync`](https://nodejs.org/api/fs.html#fsopendirsyncpath-options) return an instance of [`Dir`](https://nodejs.org/api/fs.html#class-fsdir) which is an iterable which returns a [`Dirent`](https://nodejs.org/api/fs.html#class-fsdirent) (directory entry) for every file in the directory.

This is more efficient because it returns each file as it is found, rather than having to wait till all files are collected.

Just a quick Node.js tip for ya 🪄


---

_Follow me on [Dev.to](https://dev.to/danawoodman), [Twitter](https://twitter.com/DanaWoodman) and [Github](https://github.com/danawoodman) for more web dev and startup related content_
AWS API Gateway + Lambda + CloudFormation - A complete flow
Tags: aws, beginners, devops, api
Published: 2022-08-13 04:31:00

Lot of time we see that Companies provide Online Lab Environment to their customers. But how these labs can be provisioned via REST API call. I worked 6 months in a company to build the whole environment & this blog is just a small overview of that idea.

- Link: https://medium.com/geekculture/provision-resources-in-aws-using-your-own-rest-api-cc54b390a71f

Note: All my blogs are free to read.
HOW TO SET UP A LOCAL NETWORK BETWEEN YOUR LINUX VM(KALI) AND MY LOCAL WINDOWS USING SAMBA
Published: 2022-08-14 17:59:00

Very excited to post my knowledge on this here as I had ran into this problem a few times while trying to access my local files in Windows into Linux(both in my Ubuntu and Kali Linux machines). The beauty of learning is that you learn new things that have already been solved. So let's get into it:

The Samba software package can also be used to communicate Linux servers and clients with Windows and MAC clients using Microsoft SMB.

PS: This breakdown assumes that you already have a Linux machine or have it set up as a Virtual Machine and are currently in the terminal 

## **1. Update your system**
_sudo apt update_

## **2. Install Samba on your system**
_sudo apt install samba_

(press ctrl+z to opt out)

## **3. Check the status of Samba**
_sudo systemctl status smbd_

## **4. Create the shared directory**
_sudo mkdir /home/mytutorialdirectory_

## **5. Create full permissions for the directory**
_sudo chmod 777 /home/mytutorialdirectory_

## **6. Add the directory**
_sudo useradd mytutorialdirectory_

## **7. Setup a password for Samba (set up something that you can easily remember here)**
_sudo smbpasswd -a mytutorialdirectory_

## **8. Setup smb.conf**
_sudo nano /etc/samba/smb.conf_

or if you prefer vim as a text editor

_sudo vi /etc/samba/smb.conf_

_scroll to the bottom and add_
_[mytutorialdirectory]_
_(2 spaces)path = /home/mytutorialdirectory
(2 spaces)browseable = yes
(2 spaces)valid users = mytutorialdirectory
(2 spaces)read list = mytutorialdirectory
(2 spaces)write list = mytutorialdirectory
(2 spaces)guest ok = no_
(press ctrl+x then y ,then enter to opt out and save)
## **9. Shows the changes that you made in the smb.conf file **
_sudo testparm_

## **10. Restart the Samba service and view status**
_sudo systemctl restart smbd_

_sudo systemctl status smbd_

## **11. Access the Linux directory on Windows**
Go back to your Windows local machine , press the windows icon key+R
Enter your Linux machine's IP address(you can find this by entering IP address in your Linux terminal and copying the inet IP address) and press enter

SUCCESS
You can now see your shared file
Blazor vs. Wisej.NET
Tags: webdev, dotnet, csharp, productivity
Published: 2022-08-15 17:27:14

Looking for an alternative to Blazor for enterprise web development? In his latest article, Jon Hilton discusses his experience in developing with Wisej.NET:
[Read the full article on CodeProject](https://www.codeproject.com/Articles/5339509/Wisej-NET-vs-Blazor)
Ball Catcher: Part 2 | Create a hard real-time system, across multiple electronic boards with Luos.
Tags: opensource, microservices, tutorial, luos
Published: 2022-08-16 15:37:50

A few days ago, a new video about the ball catcher appeared on our Youtube channel!

In this video, we created the drivers for the sensor and solenoid, then attempted to hit the ball, using Python.

{% embed https://www.youtube.com/embed/DPsEWQ1Yol4 %}

We also integrated the project with a mechanical setup.

This video is the second in a series, explaining the real-time aspect of Luos.
Server Setup on CentOS 7
Tags: centos
Published: 2022-08-17 02:51:00

Bismillah...

We will installing useful applications on CentOS 7.

**Docker**
We will use snap package to install Docker. But first we required to install Snap first on our server.

```
sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
```
[reference](https://snapcraft.io/docs/installing-snap-on-centos)

After done installing Snap. We reboot our machine `sudo reboot`. After that, we can continue install Docker from Snap package.

```
sudo snap install docker
#Now we have successfully installed Docker. We can test it as root
#optional
#Running Docker as normal user
sudo groupadd docker
sudo usermod -aG docker $USER
#after this above steps, require us to relogin
sudo snap disable docker
sudo snap enable docker
```
[reference](https://snapcraft.io/docker)

Now we are done installing Docker.

**NodeJS**
We will use snap package to install NodeJS.

`sudo snap install node --classic`

**Java 8**

```
sudo rpm --import https://yum.corretto.aws/corretto.key 
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
sudo yum install -y java-1.8.0-amazon-corretto-devel
```
[reference](https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html)

**Maven**

```
wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz -P /tmp
sudo tar xf /tmp/apache-maven-3.6.0-bin.tar.gz -C /opt
sudo ln -s /opt/apache-maven-3.6.0 /opt/maven
sudo vi /etc/profile.d/maven.sh
```

_maven.sh_
```
export JAVA_HOME=/usr/lib/jvm/jre
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}
```

```
sudo chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh
```
[reference](https://linuxize.com/post/how-to-install-apache-maven-on-centos-7/)

**Gitlab Runner**

```
# Download the binary for your system
sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64

# Give it permissions to execute
sudo chmod +x /usr/local/bin/gitlab-runner

# Create a GitLab CI user
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash

# Create symlink
sudo ln -s /usr/local/bin/gitlab-runner /usr/bin/gitlab-runner

# Install and run as service
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start

```
Get an A+ with our Law Homework Help
Tags: lawhomeworkhelp, onlinehomeworkhelp, education, students
Published: 2022-08-18 05:47:57


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g93clzcitct62kwj8h9l.png)Law may be an immense subject. Henceforth, law aspirants got to encounter far more struggles as compared to the domain of different students. Within the entire learning journey, you've got to subsume educational activities like lawsuits, contracts, legislation, negotiations, memos, and analysis. Imagine the struggles that square measure related to these activities. Additionally, the foremost difficult part of any law assignment is accessing valid analysis materials, citing links, and writing the assignment as per the format and also the links. The guiding directions and also the rubric facilitate cannot arrest the event of hysteria. The **[law homework help](https://www.lawhomeworkhelp.com/)** facilitates offers is the sole answer to avoid such dire crisis moments. The net assignment facilitates we offer are at a very lower rate. [law homework help](https://www.lawhomeworkhelp.com/migration-law) square measure forever thought of as united as the foremost difficult assignments. The explanation is its content. This assignment’s content includes cases, mention of sensible experiences, history of the actual law, etc. Even a second mistake will drastically amend your prospect of marking high marks! Isn’t it a sorrow to lose marks thanks to such folly? With an Associate in professional by your facet, you simply ought to sit back and relax. Contact the United States to induce additional details on the law homework help to facilitate service.

**Types of Law Homework**

- . Constitutional Law Homework Help
- . Corporate Law Homework Help
- . Migration Law Homework Help
- . Contract Law Homework Help
- . Criminal Law Homework Help
- . Civil Law Homework Help
Clear Cart and Sessions for WooCommerce
Tags: woocommerce, clear, cart, plugins
Published: 2022-08-18 09:22:00

[WooCommerce clear cart](https://woocommerce.com/products/clear-cart-and-sessions-for-woocommerce/) allows store owners to clear carts and sessions automatically after a defined time period. Store owners can clear cart sessions in periods of minutes, hours, and days.

Key Features of WooCommerce clear cart are

1. Clear cart and sessions after specified minutes, hours, or days
2. Enable empty cart button on the cart page for customers
3. Customize text and color of clear cart button
4. Redirect users to the shop page or any custom URL after clearing the cart
Free Shipping Bar for WooCommerce
Tags: woocommerce, shipping, bar, plugins
Published: 2022-08-18 10:09:27

Give maximum exposure of your free shipping deals with the [WooCommerce Free shipping bar](https://woocommerce.com/products/free-shipping-bar-for-woocommerce/). You can display the bar across all page of the store. It shows real time progress bar and remaining price of purchase to avail free shipping.

Key Features of Free Shipping bar plugin is 

1. Add ‘Free Shipping’ bar
2. Limit the bar to specific countries
3. Use multiple shipping bar styles
4. Offer discounts on all shipping methods
5. Customize text and color
6. Position the bar
7. Project the bar on mobiles as well
8. Enable progress bar for free shipping
9. Customize display messages on the bar
10. Display bar on a specific page
11. Progress bar display with delays and disappear
12. Let your customers close the bar

**For more details checkout** https://woocommerce.com/products/free-shipping-bar-for-woocommerce/
Is MIT xPRO Legit
Tags: mit, xpro, legit, ismitxprolegit
Published: 2022-08-18 11:59:50

The simple answer to the question ” Is MIT xPRO Legit ?” is yes. One of the top coding Bootcamp platforms, MIT xPRO, offers online learning courses to fill the skills gap in developing technological fields. Data engineering, software development, and cybersecurity are all topics covered in MIT xPRO’s online learning courses. Reviews of MIT xPRO are generally favourable, with most students praising the programs. 

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

Read more at :
https://hecodesit.com/is-mit-xpro-legit/
GNU bash
Tags: linux, opensource
Published: 2022-08-19 06:47:24

GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.

A star (*) next to a name means that the command is disabled.

 job_spec [&]                            history [-c] [-d offset] [n] or hist>
 (( expression ))                        if COMMANDS; then COMMANDS; [ elif C>
 . filename [arguments]                  jobs [-lnprs] [jobspec ...] or jobs >
 :                                       kill [-s sigspec | -n signum | -sigs>
 [ arg... ]                              let arg [arg ...]
 [[ expression ]]                        local [option] name[=value] ...
 alias [-p] [name[=value] ... ]          logout [n]
 bg [job_spec ...]                       mapfile [-d delim] [-n count] [-O or>
 bind [-lpsvPSVX] [-m keymap] [-f file>  popd [-n] [+N | -N]
 break [n]                               printf [-v var] format [arguments]
 builtin [shell-builtin [arg ...]]       pushd [-n] [+N | -N | dir]
 caller [expr]                           pwd [-LP]
 case WORD in [PATTERN [| PATTERN]...)>  read [-ers] [-a array] [-d delim] [->
 cd [-L|[-P [-e]] [-@]] [dir]            readarray [-d delim] [-n count] [-O >
 command [-pVv] command [arg ...]        readonly [-aAf] [name[=value] ...] o>
 compgen [-abcdefgjksuv] [-o option] [>  return [n]
 complete [-abcdefgjksuv] [-pr] [-DEI]>  select NAME [in WORDS ... ;] do COMM>
 compopt [-o|+o option] [-DEI] [name .>  set [-abefhkmnptuvxBCHP] [-o option->
 continue [n]                            shift [n]
 coproc [NAME] command [redirections]    shopt [-pqsu] [-o] [optname ...]
 declare [-aAfFgiIlnrtux] [-p] [name[=>  source filename [arguments]
 dirs [-clpv] [+N] [-N]                  suspend [-f]
 disown [-h] [-ar] [jobspec ... | pid >  test [expr]
 echo [-neE] [arg ...]                   time [-p] pipeline
 enable [-a] [-dnps] [-f filename] [na>  times
 eval [arg ...]                          trap [-lp] [[arg] signal_spec ...]
 exec [-cl] [-a name] [command [argume>  true
 exit [n]                                type [-afptP] name [name ...]
 export [-fn] [name[=value] ...] or ex>  typeset [-aAfFgiIlnrtux] [-p] name[=>
 false                                   ulimit [-SHabcdefiklmnpqrstuvxPT] [l>
 fc [-e ename] [-lnr] [first] [last] o>  umask [-p] [-S] [mode]
 fg [job_spec]                           unalias [-a] name [name ...]
 for NAME [in WORDS ... ] ; do COMMAND>  unset [-f] [-v] [-n] [name ...]
 for (( exp1; exp2; exp3 )); do COMMAN>  until COMMANDS; do COMMANDS; done
 function name { COMMANDS ; } or name >  variables - Names and meanings of so>
 getopts optstring name [arg ...]        wait [-fn] [-p var] [id ...]
 hash [-lr] [-p pathname] [-dt] [name >  while COMMANDS; do COMMANDS; done
 help [-dms] [pattern ...]               { COMMANDS ; }
Create Node.js Project Using Command Line
Published: 2022-08-19 11:50:00


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

👋 Hi Everyone,
Publishing my node.js template in a command-line format. Everyone can easily be creating a node.js application structure using a single line command.

Features:
--------------
📌 ES6+ configuration (Babel)
📌 Better error handling
📌 Clean code structure
📌 Google authentication (Passport strategy)
📌 Email authentication with OTP verification (Sent mail using Google Gmail)
📌 Implement MFA using speakeasy
📌 MFA QR code images stored in Cloudinary
📌 Forgot Password via mail
📌 Modern data validation using Joi
📌 Forgot password mail template
📌 OTP validation mail template
Download and usage
--------------------------------
`𝗖𝗼𝗺𝗺𝗮𝗻𝗱: npx nano-app project-name
Example: npx nano-app nodejs-api`

**Source Code**: https://github.com/jinnatul/nano-app

[Demo Video](https://www.youtube.com/watch?v=kjZwb23Oln0)

NB: If you have any queries or suggestions, please write a comment.

Facebook: https://www.facebook.com/morol1957
Linkedin: https://www.linkedin.com/in/morol1957
Twitter: https://twitter.com/jinnatul_md
Github: https://github.com/jinnatul
Where do I start
Tags: redishackathon, javascript, programming, devjournal
Published: 2022-08-19 16:29:48

First of all, I am doing well and I hope you are doing better. The first I heard about Redis, was a discussion about caching. This is the first time that I have added caching to my application.

This year, I came across this article 

{% post https://dev.to/devteam/announcing-the-redis-hackathon-on-dev-3248 %} 

by the dev team.

The above article details what and how you should go about the project to submit and what to include.

So, I took one of my API, Nodejs apps, and added caching to it. The speed did improve a lot after the first request and I liked it. Bear in mind that this is the first time that I have included it in my application, from a first person's perspective.


So from a MongoDB database application without caching, [arms-without-redis-for-caching](https://github.com/Otumian-empire/ARMS/tree/arms-without-redis-for-caching) to one with caching, [integrate-redis-for-caching](https://github.com/Otumian-empire/ARMS/tree/integrate-redis-for-caching).

Now, I am going to use the Redis-stack to work above project without MongoDB. You can find this project here:

{% embed https://github.com/Otumian-empire/ARMS-redis %}

Hackathons are fun. I get to learn a new concept and see what awesome projects others have built.
Javascript Tagalog - String startsWith Method
Tags: javascript, tagalog, pinoy, startswith
Published: 2022-08-19 22:27:00

**Ano ngaba ang String startsWith method sa Javascript?**
Yung startsWith method sa javascript is titignan niya if yung string ay nag-uumpisa sa string na binigay mo as an argument sa method tapos mag re-return siya ng **Boolean value** (true or false)

---

**Pano gamitin:**
**First Argument** - yung string na gusto mong i search sa unahan
**Second Argument** (optional) - kung sang index siya mag-uumpisa mag search (**default is 0** which is yung start ng string)

![Javascript Filipino Tagalog Philippines String Array Method](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tkrasmij9in1hm8rq9ac.png)

Return Value niya is yung **boolean** ( True or False ) depende if yung string is nag-i istart sa binigay mong string.

---


**More tagalog Javascript Learning Resources:**
https://javascript-methods-in-tagalog.vercel.app/