teleren/devto huggingface dataset:
Top 5 IDE's Every Developer Should Use!
Tags: ide, topide, developer, 007lakshya
Published: 2020-12-15 03:41:36

Hi! Here I'm Going to tell you the top 5 IDE's Every Developer Should Use..

1) Visual Studio Code.
    Visual Studio Code is a Awesome IDE for Any Major Programming 
    Language That's Why I've kept it on the first, In this Emmet 
    is also Supported. You can download it from here- 
    https://code.visualstudio.com/

2) Pycharm.
    This is the best Ide for Beginners and Professionals Using 
    Python. From It's name only it shows that it is mainly made 
    for python, but It also supports some other Languages but not 
    all. In pycharm Emmet is also Supported. It is made by the 
    Jetbrains Company Which is Awesome. You can download it 
    from here- https://www.jetbrains.com/pycharm/

3) Adobe DreamWeaver.
    This is the IDE Advanced Web Developers, but beginners can 
    also use it as it has many built-in templates in it so that 
    any developer can use that templates. We can also write our 
    own code in it. It does not support emmet but it has a thing 
    made by adobe as it is like emmet also. This is very old but 
    good IDE, Many People says that it is dead
    but it is not like that so this is a very nice IDE. This is 
    made by Adobe Company. You can download is from here- https://www.adobe.com/in/products/dreamweaver.html?sdid=SYBNM4HY&mv=search&ef_id=CjwKCAiAt9z-BRBCEiwA_bWv-	BrHxKQvQbl4EoQfJvdgH3cuZ0yq3_Vmi9BUOtEJZGtaMc4_FFJuQxoCRf4QAvD_BwE:G:s&s_kwcid=AL!3085!3!	473191823898!e!!g!!adobe%20dream%20weaver!221165948!17525447708&gclid=CjwKCAiAt9z-BRBCEiwA_bWv-		BrHxKQvQbl4EoQfJvdgH3cuZ0yq3_Vmi9BUOtEJZGtaMc4_FFJuQxoCRf4QAvD_BwE

NOTE => This all is my own research and I've made it by own don't think that it is a promotion of some Company.... All These 	 IDEs are used by me many times and I also like that IDE's and think that they're the best that's why I've written this.

HOPE THAT EVERYONE WILL LIKE THIS ARTICLE WRITTEN BY ME AND OF COURSE LIKE AND SHARE THIS TO THEIR FRIENDS AND FAMILY!
THANK YOU AND HAVE A NICE DAY!
Basics of Socket Screw
Published: 2020-12-15 03:40:04

Hexagon socket head screw is also referred to as hexagon socket bolt, cup head screw, and hexagon socket screw. According to the hardness, bearing force, and yield strength of the screw wire, there is a grade classification of the hexagon socket head bolt, that is, the grade of the hexagon socket bolt and the grade of the hexagon socket bolt. For different products, different grades of hexagon socket bolts are required. All the hexagon socket bolts have the following grades: according to the grade strength, the hexagon socket bolts are divided into ordinary and high strength. The common hexagon socket bolt refers to grade 4.8, and the high strength hexagon socket bolt refers to grade 8.8 or above, including grade 10.9 and grade 12.9. More different <a href="https://www.cnclathing.com/guide/different-types-of-screws-and-their-uses-understanding-wood-screws-machine-screws-and-more-cnclathing">types of screws</a> and their uses are available on CNCLATHING.

**Performance requirement**
1. The nominal tensile strength of bolt material is 400MPa;
2. The yield strength ratio of bolt material is 0.6, and the nominal yield strength of bolt material is 400 × 0.6 = 240mpa.
After heat treatment, the material of high strength bolt with a performance grade of 10.9 can reach the following requirements:
1. The nominal tensile strength of bolt material reaches 1000MPa;
2. The yield strength ratio of bolt material is 0.9, and the nominal yield strength of bolt material is 1000 × 0.9 = 900MPa.

The head of the socket head bolt is eccentric and skewed, which may cause serious problems. For example, judging from the appearance of the product, it is not beautiful on the whole. It is also eccentric, it is easy to cause the production tool punching needle easy to break. The most serious problem will lead to a series of problems, such as the breakage of the hexagon bolt.

**Technological process**
1. Drill holes according to the square diameter of the inner hexagon to meet the requirements.
2. The inner hexagon is upset with a cold upsetting machine.
3. A single piece can be punched out with a hexagon punch and a hammer.

**Uses**
Similar to the countersunk screw, the head of the screw is embedded in the machine parts, and the connection strength is greater, but the screw must be assembled and removed with the corresponding specification of the hexagon wrench. Generally used in various machine tools and accessories.
How to get motion sensor value from AirPodsPro.
Tags: airpodsmax, airpodspro, swift, ios14
Published: 2020-12-15 03:11:38

# Introduction.

Do you use AirPods Pro's spatial audio reproduction technology called Spatial Audio?

I haven't been able to use it as much as I'd like, because I don't get to wear AirPodsPro as much as I'd like due to my remote work.


So, in order to use my unused AirPodsPro.
I will write an article on how to get the motion sensor value to play with it.

The code for this article is [here](https://github.com/tukuyo/AirPodsProMotionSample).

# Requirements

 - Xcode : 12.0+
 - iOS : 14.0+
 - AirPods Pro / Max(The necessary sensors are included, so it should work.)

# Describe the purpose of use in Info.plist
Using CoreMotion, so add it to Info.plist.


![https___qiita-image-store.s3.ap-northeast-1.amazonaws.com_0_595030_7ac4ff49-eba1-8f65-c0f7-95eadf1ddcc3](https://dev-to-uploads.s3.amazonaws.com/i/7ck4ti2ocghdcoxs7r0f.png)
 

# Implementation

```swift
import UIKit
import CoreMotion

class ViewController: UIViewController, CMHeadphoneMotionManagerDelegate {

    //AirPods Pro => APP :)
    let APP = CMHeadphoneMotionManager()

    override func viewDidLoad() {
        super.viewDidLoad()

        APP.delegate = self

        guard APP.isDeviceMotionAvailable else { return }
        APP.startDeviceMotionUpdates(to: OperationQueue.current!, withHandler: {[weak self] motion, error  in
            guard let motion = motion, error == nil else { return }
            self?.printData(motion)
        })
    }

    func printData(_ data: CMDeviceMotion) {
      print(data.attitude)            
      print(data.gravity)             
      print(data.rotationRate)        
      print(data.userAcceleration)    
      print(data.magneticField)       
      print(data.heading)             
    }

}
```

In the above code, we need to do some processing when the AirPods are plugged in or not plugged in.
When you run it, you will see the data retrieved in the output.

# Conclusion
I've pushed the above code to GitHub.
I've also added a sample code.
You can clone it and use it if necessary.

<a href="https://github.com/tukuyo/AirPodsProMotionSample"><img src="https://github-link-card.s3.ap-northeast-1.amazonaws.com/tukuyo/AirPodsProMotionSample.png" width="460px"></a>
free web tutorial with source code
Tags: html, css, javascript, codenewbie
Published: 2020-12-15 03:03:55

Hello guys in this tutorial we will share with you over 100+ free web tutorial with source code, here you can learn HTML CSS and JavaScript.
<h2>CSS Animation free web tutorial with source code</h2>
01: <a href="https://blog.stackfindover.com/pure-css-character-walking-animation-tutorial/" rel="dofollow">Pure CSS Character Walking Animation Tutorial</a>
02: <a href="https://blog.stackfindover.com/css-water-wave-background-animation-effects/" rel="dofollow">CSS Water Wave Background Animation Effects</a>
03: <a href="https://blog.stackfindover.com/happy-diwali-lamp-animation/" rel="dofollow">Happy Diwali Lamp Animation</a>
04: <a href="https://blog.stackfindover.com/advanced-button-hover-animations/" rel="dofollow">Advanced Button Hover Animations</a>
05: <a href="https://blog.stackfindover.com/broken-image-animation-by-hammer/" rel="dofollow">Broken Image animation by hammer</a>
<h2>JavaScript free web tutorial with source code</h2>
01: <a href="https://blog.stackfindover.com/page-scroll-indicator-with-html-css-javascript/" rel="dofollow">Page Scroll Indicator with Html CSS & JavaScript</a>
02: <a href="https://blog.stackfindover.com/javascript-character-count/" rel="dofollow">JavaScript character count</a>
03: <a href="https://blog.stackfindover.com/how-to-generate-qr-code-using-javascript/" rel="dofollow">How to generate QR code using JavaScript</a>
04: <a href="https://blog.stackfindover.com/complete-javascript-form-validation-2020/" rel="dofollow">Complete JavaScript Form Validation 2021</a>
05: <a href="https://blog.stackfindover.com/tour-tabbing-html-css-and-jquery/" rel="dofollow">Tabbing like stack overflow</a>
<h2>Matrix rain free web tutorial with source code</h2>
01: <a href="https://blog.stackfindover.com/matrix-rain-animation-with-message/" rel="dofollow">Matrix rain animation with message</a>
<h2>Animated Slider free web tutorial with source code</h2>
01: <a href="https://blog.stackfindover.com/accordion-slider-with-background-animation/" rel="dofollow">Accordion slider with background animation</a>
02: <a href="https://blog.stackfindover.com/responsive-slider-with-blur-effect-using-swiper-js/" rel="dofollow">Responsive slider with blur effect using swiper js</a>
03: <a href="https://blog.stackfindover.com/image-comparison-slider-using-html-css-javascript/" rel="dofollow">Image comparison slider using Html CSS & JavaScript</a>
These are some free web tutorial with source code</a>
<a href="https://blog.stackfindover.com/" rel="dofollow">For more like voice command animation</a>
Set up MongoDB with node.js :
Tags: mongodb, database, webdev
Published: 2020-12-15 02:36:19

# __What is MongoDB :__
It is a general purpose document based NoSQL database . Build for scalable application .

# __What is Mongoose :__
* mongoose is a __object document mapper (ODM)__ used for storing and managing data in form of objects .
* Which makes our code more simpler to write than the MongoDB native driver .  

# __What is mongod:__
__Mongod__ is the demon for MongoDB which performs background management operations and actively listening for the incoming request on port __2701__.

# __What is mongo shell :__
This is the command line utility for performing __CRUD__ operations on command line . 

# __What is NodeJS :__
Node.js is a backend framework for building backend web application .

```npm i mongoose ```
add this URL for the database connection 
```mongoose.connect("mongodb://localhost:27017/(name of your db)", {useNewUrlParser:true, useUnifiedTopology: true});```
### Create the __schema__ of our db
```js
const newSchema = mongoose.Schema({
   name : String,
   rating : Int
});
```
### Create a new mongoose model the singular version of our db .
```js
const Post = new mongoose.model('Post', newSchema);
```
### Create a new __Document :__
```js
const Post_a = new Post({
name : "Dev post",
rating : 7
});
```

### save the new value into the database 
```js
Post.save();
```

* If you want to upload data into the cloud then you could upload to __MongoDB__ atlas which is a __database as a service__ . 

{% link https://dev.to/rahulku48837211/connect-mongodb-atlas-and-upload-data-4kd9 %} 

# __Thank You For Reading__ 🤖🤖🤖
Need help regarding self-hosted WordPress (installing plugins, FTPS?, markdown editor, backup?)
Tags: wordpress, digitalocean, help, sysadmin
Published: 2020-12-15 02:11:44

So, I now again revisited self-hosted WordPress on DigitalOcean, _but now I started from base Ubuntu image, not pre-installed droplet._ This is in hope of installing multiple WordPress per Droplet.

```sh
# adduser $MYNAME and login as $MYNAME first

sudo apt install php7.4 mysql-server certbot python3-certbot-apache
sudo mysql_secure_installation
sudo ufw allow ssl
sudo ufw allow in "Apache"
sudo certbot --apache
sudo crontab -e
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
sudo apt install php7.4-zip php7.4-mbstring php7.4-gd php7.4-curl php-imagick imagemagick php7.4-xml
```

Now, I got my WordPress. However, some of the things are currently missing.

- Installing plugins in the first place.

![FTP needed](https://dev-to-uploads.s3.amazonaws.com/i/cn5hr5rlu1rhzozpu11u.jpg)

Yes, I did `ufw allow ftp`, `ufw allow ftps`; but it didn't work.

- Plugin for Markdown editor, without having to connect to WordPress. (Do I have to avoid Jetpack and Akismet?)
- How I do export posts, so that I am not locked in to WordPress?
    - Yes, I must be able to read and modify it without WordPress at all.
Anyone really practically use Firestore?
Tags: help, firebase, nosql
Published: 2020-12-15 01:52:05

Compound index CREATION is too slow. I can swear that compound index creation itself too around 30 seconds, compared to almost instant in DexieDB or PouchDB; and not so slow in MongoDB.

And there was no existing data at all.

API is severely limited compared to MongoDB.

Also, the cost is easily not free. And it isn't even released into production yet.

![Firebase usage](https://dev-to-uploads.s3.amazonaws.com/i/fesisg5uyo3s37gbyu0h.png)
Memory Management and Degree of Multiprogramming | Operating System - M05 P01
Tags: linux, beginners, tutorial, devops
Published: 2020-12-15 01:45:04

**This is a multipart blog article series, and in this series I am going to explain you the concepts of operating system. This article series is divided into multiple modules and this is the fifth module which consists of 26 articles.**

_In this article we are going to know about memory management in operating system and degree of multiprogramming._

### Memory management
- Memory management in operating system means that it is a method/ functionality to manage different types of memory.
- Mainly memory management is method of managing primary memory or RAM.

<!-- Image will come here -->

![Untitled Diagram.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1607996534213/Vd3gtzd6a.png)

### Degree of multiprogramming
- CPU is not connected with secondary memory directly because the speed of secondary memory is very low in comparison of CPU.
- All the process/ programs are present in secondary memory, in order to execute them we have to load them in RAM
- From RAM they will be sent to CPU and get executed.
- This is called degree of multiprogramming.
- Multiprogramming means, try to place more and more processes from secondary memory to primary memory. Because then only the utilization of CPU will be at satisfactory level.
- If we increase the number of process in RAM than CPU utilization will be more and degree of multiprogramming will be also high.

_So this was a brief explanation of memory management and degree of multiprogramming in an operating system. Hope you liked it and learned something new from it._

If you have any doubt, question, quires related to this topic or just want to share something with me, than please feel free to contact me.

### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)
December 14th project update
Tags: bootstrap, webdev
Published: 2020-12-15 01:48:20

---
title: December 14th project update
published: true
date: 2020-12-15 01:43:28 UTC
tags: bootstrap, webdev
canonical_url: http://blog.bootstrap.surf/december-14th/
---

 ![December 14th](https://images.unsplash.com/photo-1549125861-6521eb82c520?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwxMTc3M3wwfDF8c2VhcmNofDIwfHxzZXJ2ZXJ8ZW58MHx8fA&ixlib=rb-1.2.1&q=80&w=2000)

hello everyone, thought i'd give y'all a bit of an update on our project.

i have currently stopped all work on bootstrap.surf for a bit. i am currently refreshing and re-enhancing my skills with html and css so i can put my full potential into this project.

if you're new from dev.to, check out the rest of our blog at [blog.bootstrap.surf](http://blog.bootstrap.surf/).
RPA
Tags: rpa
Published: 2020-12-15 01:34:42

# RPA (Robotics Process Automation)

Nowadays, You find a long repository of technologies and makes us wonder, what should I use to satisfy my need. 

Although I don't come to offer you the Holy Grail, I do come to tell you about a way to enter this world of technology. Speaking more specifically about manual task replication.

The market offers us a very simple way to do it and this is through an RPA (Robotics Process Automation). There are several alternatives to incursion such as BluePrsim, Automation Anywhere, UiPath, RocketBot and etc.

And what is special about these tools? Each of them will help us in their own way to replicate the tasks that we perform repetitively. And here we will find more questions:
* What is a repetitive task?
* From what moment should I start using it?
* Is it really what I require for business?
* Is it very expensive to implement all this?

We will solve each of these questions later, for now I invite you to click on the following URL and try one of these tools:

[UiPath](https://www.uipath.com/company/about-us)

Meanwhile I will continue to prepare that it is of quality and usefulness to solve these and more questions that may arise, as well as include a demo of its function, how to share my experience in this branch of work and if you wish to share one or another tip.
Amazon ECR - Lifecycle Policy Rules
Published: 2020-12-15 01:34:18

[Lifecycle policies](https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html)
>- Amazon ECR lifecycle policies enable you to specify the lifecycle management of images in a repository.
- A lifecycle policy is a set of one or more rules, where each rule defines an action for Amazon ECR.
- The actions apply to images that contain tags prefixed with the given strings. This allows the automation of cleaning up unused images, for example expiring images based on age or count.
- You should expect that after creating a lifecycle policy the affected images are expired within 24 hours.

**Usecase:** 
- A project will have multiple branches to develop features, admin will setup pipeline jobs to trigger build and deploy for any commits to any branches.
- Application is compiled and then packed into a docker image in order to push it to Amazon ECR (Elastic Container Registry). This will lead to thousands of images stored in ECR, so the images (except ones with tag release) should have life cycle to reduce cost of ECR

####Example of setting life cycle policy rule for an ECR repository (it depends on how the image is tagged)

**Rule 1** Remove images with prefix integration-* after 3 days, these images are created in integration branches and they are tagged eg. integration-api-1234
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qumv9eqt34jfx0mt8gws.png)

**Rule 2** Remove images with prefix develop-* after 5 days
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/jeekghgskkw3fe508fx3.png)

**Result**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/70i3fhvqvqgmdtjglbo4.png)
web dev. journey pt. ii
Tags: webdev, html, css
Published: 2020-12-15 01:33:17

heya everyone!

i have decided to move away from codecademy, since it didn't seem like a full-fledged learning system without paying for their pro plan. it seemed enticing but too expensive for what it is.

i have moved to learning along with [the odin project](https://www.theodinproject.com/courses/foundations)'s foundations course. so far, it looks excellent.

from now on, i'll provide updates in the comments, rather than editing the post.
For Loop | Shell Scripting 
Tags: linux, bash, beginners, tutorial
Published: 2020-12-15 01:11:47

**This is a multipart blog article series where I am going to explain the concepts of shell scripting and how to write a shell script in Linux, UNIX or Mac based systems. You can also follow this tutorial blog using windows but for that you have to install a bash from.**

_In this article we are going to understand for loop in shell scripting._

1. The syntax for loop. There are many ways to write the for loop.
    - First way
        ```shell
        for <variable_name> in 1 2 3 4 5 . . N
        do
            command1
            command2
            command3
        done
        ```
    - Second way
        ```shell
        for <variable_name> in file1 file2 file3
        do
            command1 on $<variable_name>
            command2
            commandN
        done
        ```
    - Third way
        ```shell
        for <variable_name> in $(Linux-Or-Unix_Command_Here)
        do
            command1 on $<variable_name>
            command2 on $<variable_name>
            commandN
        done
        ```
    - Forth way
        ```shell
        for (( EXP1; EXP2; EXP3 ))
        do
            command1
            command2
            command3
        done
        ```
2. We can give the range to iterate like this `{1..10}`. Here the range is from `1` to `10`
3. If we want to specify increment than we can do that in this way `{1..10..2}`. Here the range is from `1` to `10` and increment will be of `2`
4. You can use the above methods only if your bash version is above `4.0`. You can check you bash version by this command `echo ${BASH_VERSION}`

[Reference code file for this article]( https://github.com/rahulMishra05/shell-scripting/blob/main/video19.sh)

_So this was a brief introduction of for loop. Hope you liked it and learned something new form it._

If you have any doubt, question, quires related to this topic or just want to share something with me, than please feel free to contact me.
 
### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)
Until Loop | Shell Scripting
Tags: linux, bash, beginners, tutorial
Published: 2020-12-15 00:41:57

**This is a multipart blog article series where I am going to explain the concepts of shell scripting and how to write a shell script in Linux, UNIX or Mac based systems. You can also follow this tutorial blog using windows but for that you have to install a bash from.**

_In this article we are going to discuss about until loop._

1. Until loop are slightly different from while loop.
2. Syntax of while loop and until loop is same, but the functionality wise both are opposite. 
3. Syntax of until loop
    ```shell
    until [ condition ]
    do
        command1
        command2
        command3
    done
    ```
4. The difference between while loop and until is that, in while if the condition is true than only commands get executed. While on the other hand in the, until loop if the condition is false then only commands will get executed.

[Reference code file for this article]( https://github.com/rahulMishra05/shell-scripting/blob/main/video18.sh)

_So this was a brief explanation about until loop. Hope you liked it and learned something new from it._

If you have any doubt, question, quires related to this topic or just want to share something with me, than please feel free to contact me.

### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)