teleren/devto huggingface dataset:
A little bit of knowledge about ReactJS.
Tags: react, javascript, webdev, beginners
Published: 2022-10-19 08:09:05

**Q1. What is NPM?**
NPM or “Node Package Manager” is the default package manager for JavaScript run time environment node.js.

**Q2. What is Yarn?**
Yarn is a JavaScript package manager created by Facebook. Yarn stands for Yet Another Resource Negotiator. It provides similar functionalities as NPM. It is an alternative to NPM when installing, uninstalling, and managing package dependencies from the NPM registry or GitHub repositories.

**Q3. What is CLI?**
CLI is a command line program that accepts text input to execute operating system functions.

**Q4. What is NPX?**
NPX stands for Node Package Executor. It is a new addition to NPM version 5.2.0 or higher. NPX helps you to execute one-off commands. With NPX, you can run/execute packages from the NPM registry without installing them to your project dependencies.

**Q5. What is a module and package in JavaScript?**
A module is a single JavaScript file that has some reasonable functionality. A package is a directory with one or more modules inside of it and a package.json file that has metadata about the package.

**Q6. What is WebPack?**
Webpack is a tool that lets you compile JavaScript modules, also known as module bundlers. Given a large number of files, it generates a single file (or a few files) that runs your app.

**Q7. What is a dependency?**
A dependency is some third-party code that your application depends on. Just like a child depends on its parent, your application depends on other people's code. A piece of code becomes a true dependency when your own application cannot function without it.

**Q8. What is create-react-app?**
Create React App is a comfortable environment for learning React and is the best way to start building a new single-page application in React. It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production.

**Q9. What is <React.StrictMode>?**
React StrictMode is sort of a helper component that will help you write better react components, you can wrap a set of components with <React.StrictMode>

**Q10. What is reportWebVitals()?**
Create React App includes a built-in tool for measuring the real-life performance of your app. It is called reportWebVitals() and it measures a set of metrics that aim to capture the user experience of a web page.
Free Resource to Learn Javascript- JSAyushThakur
Tags: javascript, beginners, webdev
Published: 2022-10-19 07:46:13

####   Original Tweet From  [@JSAyushThakur](https://twitter.com/JSAyushThakur)
{% embed https://twitter.com/JSAyushThakur/status/1577641385557364737 %}
Average Salary of Javascript Developer is ~ $96K

Here are, 19 Websites to build up your JavaScript Skills

###1️⃣ Freecodecamp


🔗 https://t.co/BTGwJSm7qj ![Twitter Image 1](https://pbs.twimg.com/media/FeTj27BaEAcOgKE.jpg) 

###2️⃣ JavaScript30


🔗 https://t.co/kVFnuSbz6M ![Twitter Image 2](https://pbs.twimg.com/media/FeTkB_LaEAAxPYW.jpg) 

###3️⃣ CodeMentor


🔗 https://t.co/YNxaDg4zWf ![Twitter Image 3](https://pbs.twimg.com/media/FeTkLaIaAAIeTNY.jpg) 

###4️⃣ Educative


🔗 https://t.co/wvffCL4FWy ![Twitter Image 4](https://pbs.twimg.com/media/FeTkYGSaAAAN7zC.png) 

###5️⃣ JavaScript. info


🔗  https://t.co/YJ1XPZLEDz ![Twitter Image 5](https://pbs.twimg.com/media/FeTkilVacAA8prR.jpg) 

###6️⃣ Codecademy


🔗 https://t.co/cPOWFCiDFM ![Twitter Image 6](https://pbs.twimg.com/media/FeTkp7haUAEVsY6.jpg) 

###7️⃣ Sololearn


🔗 https://t.co/I6B5GCwa4W ![Twitter Image 7](https://pbs.twimg.com/media/FeTk07oakAAJRI0.jpg) 

###8️⃣ Tutorial Republic


🔗 https://t.co/htMKhgo5vw ![Twitter Image 8](https://pbs.twimg.com/media/FeTlCz0aYAEuLh4.jpg) 


###9️⃣ Learn JavaScript

🔗 https://t.co/dhvvO22Qiq ![Twitter Image 9](https://pbs.twimg.com/media/FeTlLr3agAEZKU2.jpg) 


###🔟 edx

🔗 https://t.co/3pUYnfr3lx ![Twitter Image 10](https://pbs.twimg.com/media/FeTlZnFaYAMsAcP.jpg) 


###1️⃣1️⃣ MDN Docs

🔗 https://t.co/RWavFO41MQ ![Twitter Image 11](https://pbs.twimg.com/media/FeTlmqOakAAnWh9.jpg) 


###1️⃣2️⃣ Codecombat

🔗 https://t.co/eCJpZycYaM ![Twitter Image 12](https://pbs.twimg.com/media/FeTlzlkaYAoJzHj.jpg) 


###1️⃣3️⃣ Dev Docs

🔗 https://t.co/gpLYms5qOU ![Twitter Image 13](https://pbs.twimg.com/media/FeTmP6QagAIcY5T.jpg) 


###1️⃣4️⃣ Coursera

🔗 https://t.co/RkYYeXvFvt ![Twitter Image 14](https://pbs.twimg.com/media/FeTmXcuaUAAf-eJ.jpg) 


###1️⃣5️⃣ JSDoc

🔗 https://t.co/zSty4n3Bh6 ![Twitter Image 15](https://pbs.twimg.com/media/FeTmg16acAAUAc9.jpg) 


###1️⃣6️⃣ Dev. to

🔗 https://t.co/6aYQuMT1QX ![Twitter Image 16](https://pbs.twimg.com/media/FeTmqbCaMAAQmvV.jpg) 


###1️⃣7️⃣ Hackernoon

🔗 https://t.co/F535krypJI ![Twitter Image 17](https://pbs.twimg.com/media/FeTmx0EagAAaIPi.jpg) 


###1️⃣8️⃣ JavaScript Weekly

🔗 https://t.co/PAtBBc2MFV ![Twitter Image 18](https://pbs.twimg.com/media/FeTm_WzacAAgbiO.jpg) 


###1️⃣9️⃣ Udemy

🔗 https://t.co/ZSMKNQs7Kw ![Twitter Image 19](https://pbs.twimg.com/media/FeTnLuRaAAE1kEK.jpg) 

Thank you for reading the thread ☺️

If you like it then do give the first tweet a RETWEET 🙌

https://t.co/utuNzy860h 



##### Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
Learn JavaScript Default Parameters🔥 - ajaysharma_dev
Tags: javascript, webdev, beginners, programming
Published: 2022-10-19 07:42:27

####   Original Tweet From  [@ajaysharma_dev](https://twitter.com/ajaysharma_dev)
{% embed https://twitter.com/ajaysharma_dev/status/1577621859339747328 %}

It is one of the features of ES6.

When a JavaScript function is called with fewer than the declared number of arguments, the missing values are set to 'undefined.’

Sometimes this is acceptable, but other times it is preferable to provide the argument a default value. 

Let's learn the default Parameter with examples. ![Twitter Image 1](https://pbs.twimg.com/media/FeTWtgsXwAAxaXS.jpg) 

think what will happen if we will not provide the value ![Twitter Image 2](https://pbs.twimg.com/media/FeTWtrAXgAA6fiM.jpg) 

Here, now we can set the default parameter ![Twitter Image 3](https://pbs.twimg.com/media/FeTWt2aXwAMOOIK.jpg) 

It also allows default parameter values in the function declaration ![Twitter Image 4](https://pbs.twimg.com/media/FeTWuCMXoAA2Dit.jpg) 

If you enjoyed reading this thread, please do the following: 
1. Like the thread❤️
2. Retweet the first tweet.🔃
3. Follow me and enable notifications: ✅
[@ajaysharma_dev](https://twitter.com/ajaysharma_dev)
Thank you for reading all the way through. 



##### Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
Preliminary Go Language for Beginners
Tags: go, programming
Published: 2022-10-21 10:46:50

---
title: Preliminary Go Language for Beginners
published: true
date: 2022-10-19 07:32:36 UTC
tags: #go #golang #programming
canonical_url: 
---

[Go](https://go.dev/) is the programming language that was Invented and backed by Google and is now used by many companies and programmers worldwide.

There aren't any use-case limitations with Go to build something as you can build anything with it, But it's mostly used for CLI Tooling, Network Services and APIs, Web applications and DevOps.

The Go Language is known for the following features:

- Performance
- Built-in Concurrency Support
- Safety
- Garbage Collection
- Scalability
- Portability / Cross Platform 
- Binary Generation
- Standard Library and Package Management
- Built-in Testing Support

The language is not intended for replacement of any other languages like C, C++, Python, Rust or any other as these languages have their own beauty and places in the market and people who adopted them for a long time.

Let's dive into installation and Basic Go Code.

### Installation

#### Download Go

Download the Go archive from [official site](https://go.dev/dl/) as per your choice. Here, I'm using Linux so the rest steps are accordingly.

Go to the downloaded directory and run this command from the terminal.

```
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz

```

This will remove the old installation of Go and extract the downloaded version to the `/usr/local` directory.

#### Add PATH

Edit `.bashrc` file and `sudo nano .bashrc`add PATH and save.`export PATH=$PATH:/usr/local/go/bin`

Check the installed version of GO with the following command.

```
go version
// go version go1.19.2 linux/amd64

```

### Demo

Create a `demo` project directory and go inside the directory.

```
mkdir demo && cd demo

```

Run the below command to enable Dependency tracking in your project.

```
go mod init example/demo

```

This will create a file named `go.mod` with the below content.

```
module example/demo

go 1.19

```

This file is generally used to manage internal and external dependencies, which stay within the project.

Create _init.go_ file with your favourite text editor,

```
nano init.go

```

and paste the below code and save.

```
package main

import "fmt"

func main() {
    fmt.Println("First program of GoLang!")
}

```

#### Explaination

**package main** : It declares the `main` package, which may contain all sub-functionality within the same directory linked to this file.

**import "fmt"** : Importing `fmt`, one of the standard library packages of Go, which contains functionality for console output and text formatting.

**func main()**: Defining `main()` function, which by default called first when program get executed, similar like main in C/C++.

#### Running Go Code

To run the Go program execute the below command in the terminal and see Output.

```
go run .
// First program of GoLang!

```

### Conclusion

I hope you enjoyed this article. Stay tuned and subscribe for more Go Language posts and other useful tutorials.
Why is my Yahoo Spam Filter Not Working?
Published: 2022-10-19 07:32:22

A number of factors can cause [Yahoo Mail Spam Filter Not Working](https://www.emailtechnicalsupport.us/blog/yahoo-spam-filter-not-working/) error. They are listed below.
 1- The inbox will receive all messages with an empty character if you construct a filter without any rules (i.e., an empty filter). If this filter is applied on top of other filters, it will nullify their rules and send all emails to the inbox.
 2- All the rules are applied via a filter. The filter won't function as you want it to if the email doesn't adhere to one of the rules.
Wednesday Links - Edition 2022-10-19
Tags: java, jvm, spring, graalvm
Published: 2022-10-19 07:27:20

Observability with Spring Boot 3 (15 min)🔍
https://spring.io/blog/2022/10/12/observability-with-spring-boot-3

GraalVM JIT and Native Image becoming part of OpenJDK! (30 sec)🚀
https://twitter.com/graalvm/status/1582441450796900354

Design distributed lock with Redis (8 min)🟥
https://medium.com/@bb8s/design-distributed-lock-with-redis-e42f452cb60f

Kill all processes that match the name (30 sec)☠️
https://github.com/nisrulz/terminal-utils/commit/897c30db8f9c2816be257a55f85f012b37d1ffd2

RabbitMQ: A proven message broker for asynchronous communication (4 min)🐰
https://nurkiewicz.com/89
My first experience with Vala
Tags: vala, beginners
Published: 2022-10-19 07:11:17

This article is a short resume of my first experience with [Vala](https://vala.dev/).

## What is Vala 

Vala is an object-oriented programming language with a syntax very similar to C#.
The compiler could produce a native binary or generate C code.

The current version is 0.56, meanwhile I used the 0.54.1.

The language was born in 2006 and although it hasn't reach the version 1.0 it's used in a lot of GNOME applications and it's the main choice for implementing application in Elementary OS. 

## Why Vala

I'm interested in the creation of GTK applications for Linux.
The possibilities I found to reach this goal are:

* Use C, but I used it only for an exam in my first university years. I was afraid to not reach a concrete result in a short time.
* Use Python, probably the simple solution, but I was interested in creating a native application.
* Use Go, but my perception was that the GTK libraries for Go were immature and incomplete.
* Use Rust, but I was intimidated by the steep learning curve.

So I decided to explore Vala because:
* it's a language created by the GNOME Foundation with the scope to permit the implementation of native GNOME (so GTK) application at a high level.
* it's well integrated with GTK libraries so it permits to be immediately operative.

## First impressions

Some considerations after this short experience.

I have to admit that it has been not so easy to reach my goal. I think that a lot of problems and slowness has been caused by my inexperience in developing desktop applications in general.

The official Vala documentation is [valadoc.org](https://valadoc.org).
I found the ecosystem of libraries around the language still immature: it's not easy to found information or examples (and often when you find something it's pretty old). There isn't a standardization of the documentation of the libraries. This fact doesn't help a newbie.

Looking some examples implemented in Python, it helped me a lot to understand how to use notifications and how to implement an indicator (the main part of my little experiment).

In the next future I'm going to try again to implement other simple applications using Vala.


## Pommy

Pommy is a simple timer to measure an activity duration. It's an indicator staying in the notification bar and it notifies you the end of the activity session.

It takes inspirations from [gtk-pomo-indicator](https://github.com/abo-abo/gtk-pomodoro-indicator), a Python application I used for years to break my daily routine into work sessions, following some concepts from the pomodoro tecnique.

Pommy is released under GPLv3 and it is available [here](https://github.com/mirkoperillo/pommy).
15 Tips For WHY CASH APP CLOSED MY ACCOUNT Success
Tags: javascript
Published: 2022-10-19 06:50:51

Why Cash App Closed My Account and how to fix.Cash App's client service can reopen your closed account if it's closed. When your record gets closed, what happens? If your [Cash app account closed](https://cashapphone.com/blog/why-cash-app-closed-my-account), at that point you won't have the option to do any action on Cash App. To begin sending and getting the cash you have to return your closed Cash App account. How to gain admittance to a closed Cash App account with a telephone number? You can gain admittance to your old Cash App account with a telephone number. You have to include other data like your ledger number and charge or Cash app card subtleties.
10 Things You Need To Know Before you Start Learning Programming
Tags: javascript, webdev, programming, beginners
Published: 2022-10-19 06:50:19


As someone who wants to learn how to code, you may feel excitement and anxiety. Excitement because coding is an in-demand skill that can lead to lucrative job opportunities, and anxiety because learning how to code can be overwhelming.

![Image learn coding today](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esnbewyi3rw7dddutplk.jpeg)


Don’t worry-we’re here to help. This article will give you a crash course on everything you need to know before you start learning to program. By the end of this article, you’ll have a solid understanding of what coding is, what it’s used for, and what you need to do to get started.

Find the full article here: [https://www.u-code.online/10-things-you-need-to-know-before-you-start-learning-programming/](https://www.u-code.online/10-things-you-need-to-know-before-you-start-learning-programming/)


![Image 10 Things You Need To Know Before you Start Learning Programming](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3k7urmoxf1mh2j79gfyu.jpeg)


Share 10 Things to Know Before Coding Recap
12 YouTube Channels That Will Change Your Life And Mindset - UpSkillYourLife
Tags: youtube, productivity
Published: 2022-10-19 06:49:44

####   Original Tweet From  [@UpSkillYourLife](https://twitter.com/UpSkillYourLife)
{% embed https://twitter.com/UpSkillYourLife/status/1582290120492740608 %}


###1/. 
TEDx is an international community that organizes TED-style events anywhere and everywhere -- celebrating locally-driven ideas and elevating them to a global stage. 

{% embed https://youtube.com/user/TEDxTalks %}


###2/. 
The School of Life shares ideas on how to understand ourselves better, improve our relationships, take stock of our careers and deepen our social connections. 
{% embed https://youtube.com/user/schooloflifechannel %}

###3/. 
Improvement Pill is dedicated towards conveying important ideas to those who are willing to change. 

{% embed https://youtube.com/channel/UCBIt1VN5j37PVM8LLSuTTlw %}



###4/.
Big Think helps you get smarter, faster. Get actionable lessons from the world’s greatest thinkers &amp; doers. 
 {% embed https://youtube.com/c/bigthink %}

###5/.  
Minimalist lifestyle, self development, habit change and filmmaking 
{% embed https://youtube.com/user/blackboxfilmcompany %}

###6/. 

FightMediocrity creates book summaries and works with the best authors and thinkers of our time. 
{% embed https://youtube.com/user/phuckmediocrity %}

###7/. 
FarFromAverageOF provides animated videos that will help you become far from average! 
{% embed https://youtube.com/c/FarFromAverageOF %}

###8/. 

Charismaoncommand helps you learn how to be more confident, how to make people laugh, how to be more likable - basically everything about exuding charisma. 

{% embed https://youtube.com/c/Charismaoncommand %}

###9/.
NavalR to learn how to get rich, conquer the mind, how innovation works etc., 
 {% embed https://youtube.com/c/NavalR %}

###10/.
Skillopedia provides you with insights of those skills that are more critical than ever as individuals struggle to find meaningful ways to remain competitive and be productive 
 {% embed https://youtube.com/c/skillopedia %}



###11/. 
Realmenrealstyle teaches you to use style as a weapon to get what you want out of life. 
{% embed https://youtube.com/c/Realmenrealstyle %}

###12/.
AbsoluteMotivationthought-provoking yet actionable content that will exercise, stimulate and expand your mind &amp; consciousness through practical techniques and wisdom that you can integrate into everyday life. 
 {% embed https://youtube.com/c/AbsoluteMotivation %}
Thanks for reading. 

Follow ([@UpSkillYourLife](https://twitter.com/UpSkillYourLife)) for more threads on Skills, Habits, Psychology and Technology. 



#### Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
Getting Started with the Angular MultiSelect Dropdown
Tags: webdev, angular
Published: 2022-10-19 06:44:51

Learn how easily you can create and configure the Syncfusion Angular MultiSelect Dropdown using the Angular CLI. In this video, you will learn how to add the Syncfusion Angular MultiSelect Dropdown component to an Angular application. You will see how to populate JSON data and remote data sources and how to set a custom height and width for the pop-up, as well as how to sort the data source items.

_Product overview_: https://www.syncfusion.com/angular-components/angular-multiselect-dropdown

_Download example from GitHub_: https://github.com/SyncfusionExamples/getting-started-with-the-angular-multiselect-dropdown

{% youtube 2NcGJkpX9mQ %}
Black Friday Tarjoukset Finland
Published: 2022-10-19 06:36:09

Black Friday -tarjoukset voimassa! Kerää kuumimmat säästömme ennen kuin ne katoavat. Black Friday -tarjoukset tarjoavat uskomattomat hinnat, joita asiakkaat odottavat...

## Kuinka monta prosenttia alennetaan Black Fridayna?

Keskimäärin myymälöiden alennukset putoavat noin 20 prosentin alennusalueelle kiitospäivän viikolla ja nousevat noin 37 prosentin säästöihin kiitospäivänä ja mustana perjantaina. Online Black Friday -tarjoukset seuraavat perässä keskimäärin 34 prosentin alennuksella.

kassa viralliset tiedot [black friday tarjoukset](https://www.smarket.info/p/black-friday-tarjoukset-marraskuuta-2022.html)

## Kuinka kauan Black Friday -alennukset kestävät?

Black Fridayta seuraa suoraan Cyber Monday 28. marraskuuta 2022. Teknisesti ottaen Black Friday päättyy heti kun Cyber Monday alkaa. Parhaat alennukset rajoittuvat yleensä näihin kahteen päivään (ja niiden väliseen viikonloppuun); Jotkut tarjoukset pysyvät kuitenkin voimassa seuraavan viikon loppuun asti

## Miten Black Friday -myynti sujui tänä vuonna?

Verkkomyynti on kasvanut alustavien tietojen mukaan noin 5 % edellisvuodesta ja myymälämyynti lähes 40 % vuodentakaiseen verrattuna. Tämä online-kasvu on huomattavaa, koska se on Mastercardin mukaan yli 85 prosentin verkkomyynnin kasvun yläpuolella Black Fridayna vuonna 2020.
Count Complete Tree Nodes
Tags: javascript, leetcode
Published: 2022-10-19 06:26:34

Given the root of a complete binary tree, return the number of the nodes in the tree.

According to Wikipedia, every level, except possibly the last, is completely filled in a complete binary tree, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h.

Design an algorithm that runs in less than O(n) time complexity.

 

Example 1:
Input: root = [1,2,3,4,5,6]
Output: 6


```js
/**
 * Definition for a binary tree node.
 * function TreeNode(val, left, right) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.left = (left===undefined ? null : left)
 *     this.right = (right===undefined ? null : right)
 * }
 */
/**
 * @param {TreeNode} root
 * @return {number}
 */
var countNodes = function(root) {
    let result = [];
    
    function inOrderTraversal(node){
        if(node === null){
            return null;
        }
        inOrderTraversal(node.left);
        result.push(node.val)
        inOrderTraversal(node.right);
        
    }
    inOrderTraversal(root);
    return result.length
    
};
```