teleren/devto huggingface dataset:
How To Learn JavaScript Faster
Tags: javascript, webdev, beginners, career
Published: 2022-01-19 12:59:30

### 1. Follow the 20/80 Rule

The **Pareto Principle,** or the **20/80 rule,** states that 80% of results come from 20% of the effort.

**You might be wondering, How does this apply to JavaScript?**

Well, it means that in order to build good applications you have to first focus on mastering the most important parts of the language.

- Functions
- Variables
- Conditionals
- Arrays
- Objects
- The DOM

### 2. Practice Actively

Afraid of Tutorial Hell? Just get out of it! In order to get better, you need to spend more time writing code than just watching or reading tutorials. Here’s what you need to do:

- Write code for at least one hour per day
- Don’t follow tutorials if you’re not also writing the code

### 3. Build Lots of Projects

Projects, no matter how small or big, will help you solidify your knowledge and give you hands-on practice. To learn faster, do the following:

- Come up with a list of projects, from simple to complex
- Build your project one at a time and learn by doing so
- Don’t forget to upload all your projects to GitHub

### 4. Learn how to Debug

Debugging is the developer’s best friend, your projects will surely have bugs, so you will need to be able to:

- Learn how to read error messages properly
- Get good at searching your problems on Google
- Learn how to use your IDE and Browser for debugging

---

### Let's connect 💜

You can follow me on [Twitter](https://twitter.com/MrDanishSaleem), [Instagram](https://www.instagram.com/mrdanishsaleem/) & [GitHub](https://github.com/mrdanishsaleem/)

If you like this post. Kindly support me by [Buying Me a Coffee](https://www.buymeacoffee.com/mrdanishsaleem)

![Buy Me a Coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fefzbxbnwww7tkght33w.png)
Youtube channels you should follow for web development
Tags: css, beginners, javascript, programming
Published: 2022-01-19 12:57:06

Hey, Welcome here. Today, we'll see some of the best youtube channel that you should consider following for web development. They are my favourite ones. And I guess they are amazing.

Without wasting more time, let's jump right into it.

###1 Clever Programmer

![clever programmer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtnsjijoifza532z0kdm.png)
 
Clever programmer is best channel to follow for react. He makes very good tutorial using react. He made netflix clone, slack clone, amazon clone, instagram clone and what not. Its amazing.

###2 Online Tutorials

![Online tutorials](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8anzg294ya5i64t5ppea.png)

This is the best channel on youtube for CSS tricks. Like he made so much interesting and amazing only using CSS. I learnt most of my CSS skills from him.

###3 Codewithharry
 
![Code with harry](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/loib993bzp84rjmtt29r.png)

This channel is all rounder. He makes tutorial on web development, python, c and all other programming languages. He explains very well. You can find full web development courses on this channel.

###4 Traversy media

![Traversy media](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gj1x2tikxos5ne3tnbsh.png)

Traversy media, oh he is also great. He make tutorial on web development covering whole front end and backend. Its good for full stack development.

###5 Modern Web 

![Modern web](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gzxt7tz7i23k9m9u2yo5.png) 

Well this channel is mine. I am not a big youtuber. I feel my content is awesome. Anyway why don't you check out my [channel](https://www.youtube.com/c/ModernWeb) give me feedback is it good or not. I know it don't deserve a place in this list but why not let me promote my self a bit also 😅.

Modern web makes awesome tutorials covering front end and backend and what not. You can find a lot of interesting tutorials on my channel. Below are some of my videos are 

![Videos](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60c6bzndfxkptqmnr7r5.png)

If you do like my content or any others channels content. Make sure you follow them. 

If you can subscribe and give me a feedback about my channel that will be very appreciable. 

<a href="https://www.youtube.com/c/modern_web?sub_confirmation=1"><img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jeitpawvax07cx7r9yoa.png"></a>

Thanks for reading.
Building a Rectifier Circuit
Published: 2022-01-19 12:40:05

In my projects when I need to convert AC to DC, I use already made rectifiers like the HLK-10M05 module. There are some disadvantages that come with using the module as a stand alone, the biggest being just that; it is too big. 
As an alternative, you can build a rectifier circuit into your project. The circuit works to convert AC to specified DC power. 

The components you require to make the circuit are: 

- 4 diodes whose connection converts the DC to AC without changing the voltage
- 1 Zener diode to drop down the voltage
- a smoothening capacitor to smoothen out the irregular DC voltage
- two resistors to trim the voltage output to get the exact voltage and current you need. When selecting these resistance, your target should be high current low resistance. 

With just 4 components, you make a AC-DC converter that takes up about 20mm of space. I will later update the circuit for my rectifier with an update on its functionality on my project.
can create NFT but can't Buy from marketplace, nothing happens
Published: 2022-01-19 12:37:38

Hi, I can create NFTs, they show in dashboard for the metamask account and marketplace but cannot buy, nothing happens with Buy button.

This is the code for the Buy button in the NFT box in the home page. There's nothing there to make it execute something to Buy the NFT?

```
button class="w-full bg-pink-500 text-white font-bold py-2 px-12 rounded">Buy</button
```
Real Life Examples of Pandas - Ẹ Gbà Ẹ Tọwó
Tags: python, webdev, programming, tutorial
Published: 2022-01-19 12:36:23

Some of the real life examples of Python Pandas is that it is widely used in:


1. Recommendation Systems: Netflix, YouTube or Spotify have been giving us great recommendations. This is only possible by handling a lot of data and by learning user inputs.


2. Stock Prediction: With Pandas, we can make models that will predict the Stock Market results.

3. Economics: Helps to know how the Economy is growing in various sections. Economists can use Pandas to analyze huge datasets.

### Other Uses by  [Pandas Website](https://pandas.pydata.org/docs/getting_started/overview.html) 

Pandas is fast. Many of the low-level algorithmic bits have been extensively tweaked in Cython code. However, as with anything else generalization usually sacrifices performance. So if you focus on one feature for your application you may be able to create a faster specialized tool.

Pandas is a dependency of statsmodels, making it an important part of the statistical computing ecosystem in Python.

Pandas has been used extensively in production in financial applications.

Written by  [Rasheedah](https://twitter.com/STEMInstructor_) 

If you like this article please like and share. Follow us on  [Twitter](https://twitter.com/rollademy) . Visit  [Rollademy](http://rollademy.com)  to learn more about Data Science free of charge.
Top 15 Modules 2022: Encrypt and Decrypt String Python
Tags: encrypt, decrypt, python, string
Published: 2022-01-19 12:34:51

**What is an Encryption & Decryption?**

Encryption is a process used to secure data in order to prevent unauthorized access to the information. The information is typically encrypted with a key. This is a key which is used to make the data unreadable. The person who has the key to the information is the only one who can open the data. Data can be secured with a key at a particular time or secured indefinitely. The first use of encryption is recorded in ancient history decrypt string in python during the time of the ancient Greeks string encryption in python.Encryption is the process of encoding the data using a key. The process of decryption is called decryption encryption and decryption which converts the ciphertext back into plaintext. Encryption can be broad and can be used for a variety of purposes.Encryption is the process of converting something into a code that only the intended person can decipher it. This can be done through various methods, yet the most common is the use of a key and a cipher.Encryption is the process of encoding the data, converting plain text into ciphertext, which can be decrypted back into plain text with the same key.One of the toughest challenges in IT security is choosing encryption.There are many encryption tools that can help IT professionals string encryption in python. One such tool is encrypt-and-decrypt python. It is an open source encryption tool that can be used for various purposes. The encryption tool is easy to use and encryption and decryption can be incorporated into companies’ standard encrypt-and-decrypt python.

In this article used modules are 

- Bush-Encryption

- Scryp

- Encrypter-fernet-dr

- Pyvaulty

- Cryptidy

- Cryptofy

- Xcrypt

- AES-Encryptor

- Scrypter

- Pycxx

- Riddle

- Reprypt

- Vigenere

- Picklecryptor

- AES-Everywhere 

How to use this Modules to encrypt and decrypt string using python.Click this [link](https://pystackcode.com/top-15-encrypt-and-decrypt-string-in-python/)

Copyright for this article - [https://pystackcode.com/top-15-encrypt-and-decrypt-string-in-python/](https://pystackcode.com/top-15-encrypt-and-decrypt-string-in-python/)
Top 4 Ways 2022: Python Obfuscate Source Code(Unbreakable)
Tags: python, programming, obfuscate, tutorial
Published: 2022-01-19 12:27:02

**What is obfuscation?**

As a programmer, it is important to know how to python obfuscate source code. The topic of obfuscation is not always clear-cut, but it is important to know how to differentiate between the different types of obfuscation. The most common type of obfuscation is semantic obfuscation. This is the act of using code to intentionally confuse a person by changing the meaning of a routine python obfuscate source code. This is often done in order to protect intellectual property. When developers use semantic obfuscation, it is important to follow the rules of the obfuscation technique. It is also important to be aware of how the obfuscation technique will affect the overall performance of the code. If you are preparing a large project, it is important to understand the performance and security trade-offs of each chosen obfuscation technique.To obfuscate source code, a program’s source code is compiled with a special compiler that outputs bytecode that is harder to read. By rewriting the program, obfuscating the source code makes it impossible for anyone to understand the original source code. The obfuscation process can be run at the source code level, or at the binary level. When the source code is obfuscated, it becomes harder for a human to understand. The compiler will transform a program’s code into something that is incomprehensible to people. This code is harder to read, which means it is harder for people to understand.

**Methods of Python Obfuscate Source Code:**

- Source Defender

- Nuitka

- Cython

- Oxyry Obfuscator

More Details Clearly Explained in Below this article.

Copyright for this article - [https://pystackcode.com/top-4-ways-2022-python-obfuscate-source-code/](https://pystackcode.com/top-4-ways-2022-python-obfuscate-source-code/)
My first step into the world of developing.
Tags: c, python, beginners
Published: 2022-01-19 12:17:12

When I completed my high school in 2016, I thought about what next?. I had no ambitions, no dreams (actually I haven't thought about it seriously). The thought of becoming a developer or to start learning computer science came from my love for video games. I always wondered how people make such things. I enrolled for a 2 month course after high school at the age of 16 (yeah that's a bit late to start learning about programming in these days :! ).

The course consisted of basic programming using C, Visual Basic, and also some concepts of DBs using mySQL. It was a bit difficult for me at first, but gradually I learned. 

**My first application**
Throughout the course I learned simple programming like creating programs for some of the common problems like Binary search, sorting, etc. But the highlight for me was the project I made as part of the course. It was a simple project, I am not hyping it up(hehe). I built a scientific calculator using Visual Basic. Yeah that was my first step into building something out of code.

Yep, that's pretty much it. This was the story of my entry into the wrold of developing.

How did you started developing? ;-)
Please be open to share your story too in the form of comments below.
Briefly, what is the difference between "var" and "let" keywords in Javascript?
Tags: variable, var, javascript, let
Published: 2022-01-19 12:14:56

var and let are both used for variable declaration in javascript but the difference between them is that a 'var' variable can be re-initialized while a 'let' variable can only be initialized once.

Example:
```javascript
var name = "Peter"
var name = "Peace"
console.log(name)
```
Output
`Peace`

A keyword called let was introduced in ES6, a major update to JavaScript, to solve this potential issue with the var keyword.
Once a variable has been initialized, you can not re-initialize it.

Example:
```javascript
let name = "Keza"
let name = "Gisa"
console.log(name)
```
Output 
`SyntaxError: unknown: Identifier 'name' has already been declared.
`
Day 82 of 100 Days of Code & Scrum: Learning SQL Basics First Before MySQL
Tags: 100daysofcode, beginners, javascript, productivity
Published: 2022-01-19 12:10:06

Good day, everyone!

Today was a productive day for me. I've managed to do multiple things, from finishing the content of my Writing Services page, learning more Next.js, practicing for interviews, as well as learning MySQL.

As I was learning MySQL, I decided that it would be more beneficial for me to learn SQL basic concepts first, before I work with a bigger tool like MySQL. I am going to focus on working through [SQLZoo's SQL Tutorial](https://sqlzoo.net/wiki/SQL_Tutorial) first to get a solid grasp of the principles. It's a pretty solid resource so far with easy to understand examples.

Anyway, let's move on to my daily report!

## Yesterday

I did various things, such as working on my [company website](https://www.rammina.com), learning Next.js, and picking up MySQL.

## Today

### Company Website

- finished the content for the Writing Services section.
- improved the structure of the footer (added boundary lines for different subsections).
- working on adding Terms of Use and Privacy Policy pages.

### Next.js

- continued going through [Next.js & React by Maximilian Schwarzmüller](https://www.udemy.com/course/nextjs-react-the-complete-guide/).

### Scrum

- I didn't have the time to read an article about Scrum for today.

### SQL & MySQL

- I installed MySQL and played with a few things like SELECT, WHERE, FROM, and IN.

Thank you for reading! Have a good day!

![Rammina Thank You Banner](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x9ayfxxxaz2g2hfcqbsk.png)

## Resources/Recommended Readings

- [The 2020 Scrum Guide](https://scrumguides.org/scrum-guide.html)
- [Next.js & React by Maximilian Schwarzmüller](https://www.udemy.com/course/nextjs-react-the-complete-guide/)
- [Next.js official documentation](https://nextjs.org/docs/getting-started)
- [SWR official documentation](https://swr.vercel.app/)
- [MySQL Tutorial for Beginners by Mosh Hamedani](https://youtu.be/7S_tz1z_5bA)
- [SQLZoo's SQL Tutorial](https://sqlzoo.net/wiki/SQL_Tutorial)

## DISCLAIMER

**This is not a guide**, it is just me sharing my experiences and learnings. This post only expresses my thoughts and opinions (based on my limited knowledge) and is in no way a substitute for actual references. If I ever make a mistake or if you disagree, I would appreciate corrections in the comments!

<hr />

## Other Media

Feel free to reach out to me in other media!

<span><a target="_blank" href="https://www.rammina.com"><img src="https://res.cloudinary.com/rammina/image/upload/v1638444046/rammina-button-128_x9ginu.png" alt="Rammina Logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://twitter.com/RamminaR"><img src="https://res.cloudinary.com/rammina/image/upload/v1636792959/twitter-logo_laoyfu_pdbagm.png" alt="Twitter logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://github.com/Rammina"><img src="https://res.cloudinary.com/rammina/image/upload/v1636795051/GitHub-Emblem2_epcp8r.png" alt="Github logo" width="128" height="50"/></a></span>
The easiest way to reverse a string
Tags: javascript, webdev, beginners, tutorial
Published: 2022-01-19 12:08:23


In JavaScript, we have many ways to reverse a string. In this article, I will be showing the easiest way to 

> Let's go... 🏁

### 🎉
Probably, the simplest way to reverse a string is to split string to an array, `reverse()` it and `join()`
```js
let string = "live"
string = [...string].reverse().join("")
console.log(string)
```

***
Thank you for reading, have a nice day!
- Follow me on Twitter - [@codewithsnowbit](https://twitter.com/codewithsnowbit)
- Subscribe me on YouTube - [Code With SnowBit](https://www.youtube.com/channel/UCNTKqF1vhFYX_v0ERnUa1RQ?view_as=subscriber&sub_confirmation=1)
![Have a nice day.png](https://media1.giphy.com/media/dxP4KodrzNRL91Gkyy/giphy.gif?cid=ecf05e47oy2662od7onakbpjjmfizbw8i5shlaingerfzyhk&rid=giphy.gif&ct=g)
Cover Photo by <a href="https://unsplash.com/@cdd20?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">愚木混株 cdd20</a> on <a href="https://unsplash.com/s/photos/reverse?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Android Mirroring Tool : Release ScrcpyHub v1.5.0
Tags: kotlin, android, jetpackcompose, composefordesktop
Published: 2022-01-19 12:02:14

# Introduction

ScrcpyHub is a GUI application to mirror android screen. ScrcpyHub use [scrcpy](https://github.com/Genymobile/scrcpy). [scrcpy](https://github.com/Genymobile/scrcpy) is a mirroring android command tool.

https://github.com/kaleidot725/ScrcpyHub

# Features

ScrcpyHub assists in multiple device mirroring. ScrcpyHub makes it easy to do multiple device mirroring.

- Support Windows10/11 or macOS
- Support light theme and dark theme. 🖼️
- Control mirroing (Start / Stop). 🪞
- Mirror multi android device. 📱
- Save Screenshot. 📸
- Record Movie. 🎥
- Support Tary Menu. 📥
- NEW FEATURE v1.5.0 :Support Linux. 🖥️

![demo.gif](https://res.craft.do/user/full/3a21bd0e-fe7a-39aa-73ad-b52ef24b655b/doc/6B81409B-F369-40D8-A18F-C3EB0794AE95/0198F212-64C1-4528-9DEC-A72EBEED8992_2/LcAfFELCjRs9vCPv2FArMLyGYoeIT37oGJxeO9yi1LMz/demo.gif)

# v1.5.0 New Feature : Support Linux

Support for Linux has been added in v1.5.0. Now you can use ScrcpyHub on Windows, macOS, and Linux desktop OS.

![2022-01-19 20-53-29.2022-01-19 20_56_37.gif](https://res.craft.do/user/full/3a21bd0e-fe7a-39aa-73ad-b52ef24b655b/doc/A55138D7-8E5B-4402-9E63-931F9B381135/802F9888-5D6D-42C8-AB09-4E61E542DA4F_2/nFSHjATDvbFp18jLCmNQAS9LxZHWHpsTRviF0wPoMU0z/2022-01-19%2020-53-29.2022-01-19%2020_56_37.gif)


# How to Use

## Install

Install adb and scrcpy, ScrcpyHub.

## 💻 Windows 10 / 11

1. Download [here](https://github.com/Genymobile/scrcpy#windows) and install scrcpy somewhere.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.4.0) and launch ScrcpyHub.
3. Open ScrcpyHub Preferences.
4. Input adb and scrcpy location, save settings.

## 💻 Linux(Ubuntu)

1. Download [here](https://github.com/Genymobile/scrcpy#windows) and install scrcpy somewhere.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.5.0) and install ScrcpHub.

```other
sudo dpkg -i scrcpyhub_1.5.0_amd64.deb
```

3. Launch ScrcpyHub, open Preferences.

```other
/opt/scrcpyhub/bin/ScrcpyHub
```

4. Input adb and scrcpy location, save settings.

## 💻 Mac OS

1. Install android-platform-tools and scrcpy.
2. Download [here](https://github.com/kaleidot725/scrcpy-hub/releases/tag/v1.4.0) and launch ScrcpyHub.
3. Open ScrcpyHub Preferences.
4. Input adb and scrcpy location, save settings.

```other
brew install android-platform-tools
brew install scrcpy
```

# 🔥Contact

We are working on the development [here](https://github.com/kaleidot725/ScrcpyHub).  If you have any suggestions for improvement, please contact us.
How to create and Activate the Virtual Environment for Python3 project.
Tags: python, virtualenv, shriekdj, codewithshriekdj
Published: 2022-01-19 11:53:42

In this post I will try to share how you can start to create a project with virtual environment for Python 3.

{% youtube 3RqAPxV_Ts0 %}

Get An Code Editor or 
IDE, I will suggest you to use VS Code because it's good for beginners.

Install Python 3 Programming Language.

### Create a Virtual Environment

> Open Any Terminal and run below command.
```bash
python -m venv venv
```

> Activate the Virtual Environment.

>> For Linux Based OS Or Mac-OS.
```bash
source venv/bin/activate
```

>> For Windows With CMD.
```cmd
.\venv\Scripts\activate.bat
```
>> For Windows With Power shell.
```powershell
.\venv\Scripts\activate.ps1
```
>> For Windows With Unix Like Shells For Example `Git Bash CLI`.
```bash
source venv/Scripts/activate
```
---
if any issue occurred while activating virtual environment on **windows** then go to below post.
{% post https://dev.to/shriekdj/python-venv-or-virtualenv-wont-activate-on-windows-3e2 %}
---