teleren/devto huggingface dataset:
What's new in NodeJS 19?
Tags: node, news
Published: 2022-12-01 04:22:49

NodeJS is one of the most influential things to happen in the field of web development.

A backend development environment built on Chrome's V8 engine (yes, fast like the Lamborghini)
<img src="https://media.giphy.com/media/5YayOGiDo5vItN379Q/giphy.gif" alt="man riding lamborghini" />

But, did you know a new version has been released recently.
And it is NodeJS v19.

So, what are some of the features that have been introduced?
Let's look at them one by one.

## 1. `node --watch` 
If you have created a server using NodeJS, you might be familiar to Nodemon.
A library used to listen to live updates in the code and restart the server as needed. 

Previously NodeJS did not have this functionality. But with the gaining popularity of Nodemon, this was not far. 
NodeJS v19 comes with the (experimental) flag `--watch` that provides the same functionality of Nodemon.
```javascript
node --watch index.js
```
## 2. HTTP(S)/1.1 KeepAlive by default

Starting with this release, Node.js sets keepAlive to true by default. This means that any outgoing HTTP(s) connection will automatically use HTTP 1.1 Keep-Alive. The default keep-alive duration is 5 seconds.

Enable keep-alive will deliver better throughput as connections are reused by default.

## 3. Stable Web Crypto
Chances are that you are familiar with Web3 and Blockchain. A native API exists that allows script to use cryptographic primitives in order to build systems using cryptography.
Use `globalThis.crypto` or `require('node:crypto').webcrypto` to access this module.

## 4. Dependencies - V8 10.7
The V8 engine is updated to version 10.7, which is part of Chromium 107. This version includes a new feature to the JavaScript API: `Intl.NumberFormat`.

Intl.NumberFormat v3 API is a new TC39 ECMA402 stage 3 proposal extending the pre-existing Intl.NumberFormat.

## 5. NodeJS v18 going LTS
You might not know this but even versions of NodeJS are major releases, so the last major release NodeJS V18 is being given Long Term Support(LTS).

<img src="https://media.giphy.com/media/12XDYvMJNcmLgQ/giphy.gif" alt="support"/>

Also, since v19 is an odd version, the features are currently experimental.
Free Review Copies of "React.js — Key Concepts" Book.
Published: 2022-12-01 04:21:35

Packt is planning to publish "React.js — Key Concepts" this year.
As part of our marketing activities, we are offering free digital copies of the book in return for unbiased and honest feedback in the form of a reader review.

Here’s what’s included in the book:

Build modern, user-friendly, and reactive web apps

1. Create components and utilize props to pass data between them
2. Handle events, perform state updates, and manage conditional content
3. Apply styles dynamically and conditionally to create a modern UI
4. Use advanced state management techniques such as React’s context API
5. Utilize React router to render different pages for different URLs
6. Understand key best practices and optimization opportunities

If you feel you might be interested in this opportunity, please comment below or can connect with me on LinkedIn

https://www.linkedin.com/in/ankurmulasi/

[Please note: I would appreciate people from the US, but this is not mandatory.]

Thanks and Regards,

Ankur Mulasi

Acquisition Editor @ Packt Publishing
After 6 months of learning to code, I had some paying customers from my products.
Tags: programming, codenewbie, webdev
Published: 2022-12-01 04:20:27

Hello everyone, I’m Ann ✌️.

I've had a long-time interest in programming, but with a 9-to-6 Mon through Fri work schedule, I was just physically tired and had no time for learning new things. 

So, I decided to take a break to travel and do what I love. I considered it an award after five years of relentlessly working for corporates.<br />
## My journey began in June 2022.

I started learning JavaScript, HTML, and CSS from online sources such as FreeCodeCamp, Udacity, etc., along with helpful guidance from my mentor (my boyfriend 😊). 

To avoid boredom, I always find a project to practice every lesson. Then, my first product was released, [makecohort.com](https://www.makecohort.com/) - a free-to-use tool that helps people create cohort analyses from CSV files.

![Cohort analysis created by makecohort.com](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u0rtsfd9o22dgxigda4g.png)<br />

## My second product.

One day in late Aug, my boyfriend suggested me find an idea to tap into the current trend of AI. After the first try using Stable Diffusion and DALL-E, I was hooked. I thought I could make a product that helps people pick their app icons without knowing how to create prompts or code.

I then turned my learning path to React, Next.js and a bunch of new things I had never ever worked with (databases, webhooks, APIs). Honestly, I was having trouble understanding the concepts of React. Even now, I'm still a bit vague about some of its Hook features 😅.

After one month of frustration, I finally launched the first version of [candyicons.com](https://www.candyicons.com/), which offers AI-generated app icons. I recently added some features like custom favicons and app icon generators.

![CandyIcons homepage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/le3n6p0h495dtjsk0nzs.png)<br />
 
## What I've achieved so far ~

- Some paying customers on [candyicons.com](https://www.candyicons.com/) 🥳

> _The moment when I had my first sale_
{% embed https://twitter.com/_ann_nguyen/status/1587280142493134848?s=20&t=xegD-ourf-Eu407zG5mNZA %}



- An ongoing deal to sell a clone of [makecohort.com](https://www.makecohort.com/) to a company.

![Email title of a company wanting to buy a clone of makecohort.com](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/at6m2ttzr7btj3ejv8dz.png)



- Valuable skills and knowledge.

JavaScript, HTML, CSS, React, Next.js, mySQL database, working with APIs, payment flow setup, .etc. I don't want to overstate it, but these things are precious to me 😅.<br />

## Wrap-up

I feel so happy when I look back at my journey. It was daunting yet fun at the same time when diving into the world of programming. As a code newbie, I love hearing your feedback on my products. That would be a huge help to me in improving 😻.

Thank you so much for reading!

P.S: My Twitter is [@_ann_nguyen](https://twitter.com/_ann_nguyen). If you’re on Twitter too, let’s connect 🤗.
আসসালামু আলাইকুম🤗
Tags: firstpost
Published: 2022-12-01 04:16:16

এটা জাস্ট একটা পোস্ট 
মুলত পরীক্ষা করার জন্য,  আমার প্রথম পোস্ট 
ধন্যবাদ❤️
Alternatives to YouTube & TikTok
Tags: socialmedia
Published: 2022-12-01 04:00:00

# Alternatives to YouTube & TikTok

YouTube & TikTok are some of the most widely used video platforms in the
world -- YouTube was created on 2005 February 14, while TikTok was
created back in September 2016 and hit the scene a couple of years
later. In this blog, we walk you through the alternatives to these two
popular video platforms.

## What is YouTube & TikTok?

For most of you reading this blog, the answer to what these two
platforms are and what they do will be pretty obvious -- one platform is
a video-sharing service that allows all users to watch, like, share,
comment on videos and upload their own while TikTok is more known for
its ability to provide its users with an ability to create and quickly
share short videos in a mobile-suitable format of 1080x1920.

When people use YouTube, they're looking for all sorts of things from
tutorials to trailers of certain movies whereas when they use TikTok,
they're mostly simply looking for a distraction for a couple of minutes
to get through their day.

Both platforms are unique in that they provide their users with the
ability to create and share content that has different formats and
captures the interest of different audiences.

## Alternatives to YouTube & TikTok

Here are a couple of alternatives to both video-uploading services:

A frequent alternative to YouTube is Dailymotion which was amongst the first platforms to offer videos in 720p or Vimeo which is famous for providing services for both free and paid customers and for their tools suitable for video creation, editing, and other things as well as Facebook Watch or Twitter Video where users can watch videos without leaving these social media platforms.
An alternative to TikTok on the other hand would be Instagram which is one of the most famous free social media platforms used to share photos and videos with your social circle, as well as Dubsmash which is known for its ability to provide users with selfie-like videos.
Users also use Clash which was formerly known as Vine – it’s known as a video platform offering its users to gain “sustainable support” in regards to following, engagement, and money flow.

A frequent alternative to TikTok is obviously YouTube Shorts, and the same is true vice versa as well. YouTube Shorts were created as a direct alternative to TikTok -- we presume because YouTube has noticed its growth.

Each of the aforementioned alternatives to YouTube and TikTok have their
own upsides and downsides -- we hope that you've enjoyed reading this
blog and it provided you with some information you didn't know before,
stick around and follow us on [Twitter](https://twitter.com/breachdirectory), [LinkedIn](https://www.linkedin.com/company/86936300/), and [Facebook](https://www.facebook.com/profile.php?id=100039106196326) for more
interesting blogs, and until next time!
Cara jualan Netflix di Shopee
Tags: jualan, netflix, shopee
Published: 2022-12-01 03:56:10

Cara jualan Netflix di Shopee memang banyak dicari oleh para pengguna. Tentunya ada beragam paket yang tersedia di aplikasi tersebut. Sehingga Anda bebas memilih paket mana yang tepat untuk nantinya dibeli. Maka dari itu, Anda bisa memperhatikan bagaimana cara untuk menjualnya.

Maka dari itu, pihak pengguna pun bisa memperhatikan metode berjualan yang bisa mereka lakukan. Agar nantinya bisa menciptakan hasil terbaik saat akan berjualan paket dari Netflix dalam aplikasi shopee.

Source : https://kontenbisnis.id/cara-jualan-netflix-di-shopee/
7 Black Box Testing Techniques That Every QA Should know ( Explained with demo)
Tags: tutorial, webdev, beginners, programming
Published: 2022-12-01 03:38:14

Become a Automation Rockstar : https://thetestingacademy.com


Black-box testing is a method of software testing that examines the functionality of an application without peering into its internal structures or workings. This method of test can be applied virtually to every level of software testing: unit, integration, system.


{% embed https://youtu.be/9sVcvyCaCU8 %}

Decision table testing.
All-pairs testing.
Equivalence partitioning.
Boundary value analysis.
Cause–effect graph.
Error guessing.
State transition testing.
Use case testing

-------------------------------------------------------

👪 Join our Community - http://bit.ly/learntesting2019


✅ Automation Community - https://thetestingacademy.com


🐦Follow us on Twitter  - https://twitter.com/itstechmode


📖 Like us on Facebook - https://www.facebook.com/scrolltest


🎤  Listen to our Podcast - https://anchor.fm/thetestingacademy


-------------------------------------------------------

#automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest
🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka


✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1


✅Programming Java -
https://bit.ly/learnjava2020-p1


✅Test Automation - 
https://bit.ly/learnautomation2020


✅API Testing - 
https://www.learnapitesting.com


✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com
Maximum Width of Binary Tree - with null count
Tags: javascript, leetcode
Published: 2022-12-01 03:29:13

[Maximum Width of Binary Tree - with null count](https://leetcode.com/problems/maximum-width-of-binary-tree/)

```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 widthOfBinaryTree = function (root) {
  let max = 0;
  const queue = [[root, 0]]; // [node, index]

  if (!root) return 0;

  while (queue.length) {
    const len = queue.length;
    let first = queue[0][1]; // 1st idx
    let last = queue[len - 1][1]; // last idx

    for (let i = 0; i < len; i++) {
      const [node, idx] = queue.shift();
      const subIdx = idx - first; // normalize index to handle Big numbers
 // print console to see how normalize works
      // console.log(i, idx, first, idx-first,  subIdx * 2 + 1,  // subIdx * 2 + 2)

      if (node.left) queue.push([node.left, subIdx * 2 + 1]); // find next left idx & node
      if (node.right) queue.push([node.right, subIdx * 2 + 2]); // find next right idx & node
    }

    const width = last - first + 1; // add 1, 0-index based
    max = Math.max(max, width);
  }

  return max;
};


```
Effectiveness of short-term goals
Published: 2022-12-01 03:17:23

I remember this one advice about long and difficult climbs: it explained how that only concentrating on the summit, your mind would begin to doubt your ability to reach it, and you will be more prone to failure. You can nearly always complete the climb if you look only a few steps ahead, far enough to escape any obstacles.

The key is to stay focused on the task at hand, only looking up to ensure that you are on your path to meet your final goal. This is one of the most important advices I have worked on that short-term goals are the only perfect way to achieving long term goals and I make sure my team and others benefit from it too.
One of the most important aspects of goal-setting is to set SMART (Specific, Measurable, Ambitious, Realistic, and Time-bound) goals, whilst keeping them short-term as component of a bigger goal. You'll be able to keep up to the tempo, racing from one objective to another reaching your long-term goals faster and more effectively.
 
These are my 3 top tips to set short-term goals.
More Focus.
Short-term goals help you focus and direct your efforts. You have a clear idea of what you want to accomplish and when you want to accomplish it, which boosts productivity and motivation.
Planning daily and weekly allows you to focus on what you need to do to reach your goal while screening out the rest. Focusing more on little goal-oriented activities might help you feel less stressed, minimize your activity list, and better organize your day. These are attainable goals that will make you feel like you're progressing.
Self-Confidence
Setting goals is effective when you have a specific, quantifiable end goal in mind that is both interesting and encouraging. You must be emotionally driven as well as intellectually invested in order to attain your goal. You will feel fantastic about accomplishing it. Setting and achieving goals increases one's self-confidence and self-esteem.
Reduces procrastination
Procrastination might prevent you from reaching goals in life and in business that are essential to you. Short-term goals make it easier to stop procrastinating since they are more attainable.  You are less prone to postpone when you have a particular goal to achieve that feels reachable. Rather than procrastinating and spending too much time pondering what you should do, write it down so you have a purpose and a road to follow.

Setting short term goals has motivated me constantly to achieve my bigger goals and I stand where I am today because of it.

[Parenting Issue Counselling](https://www.hopequre.com/service/parenting-issue-counselling-online)
[Conduct Disorder Treatment](https://www.hopequre.com/service/conduct-disorder-counseling-online)
The Principle shift-Left
Published: 2022-12-01 03:12:10

As I go through my Cloud DevOps journey, I'm continuously on the hunt to learn more. Today I leant the concept of "Shifting Left' as a Software/DevOps Engineer.

The principle of "Shift Left" is to move a task that is traditionally done at later stages of a process/cycle and instead do that task in the earlier stages.

When we apply this to the software development cycle:
Plan->Design->Develop->Test->Deploy

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



We know traditionally, testing is done at the later stages, which can lead to delays for deployment as errors/issues are caught rather late in the stages. To increase efficiency and overall effectiveness of each stage, we can "Shift Left" for testing to detect or prevent errors/defects/issues earlier in the development cycle.

This concept is to improve quality by moving tasks to the left as early in the lifecycle as possible.
Informal Learning of Programming Online: a Survey
Tags: 100daysofcode, codenewbie, learning, survey
Published: 2022-12-01 03:10:14

> Online learners are alone in front of numerous learning challenges. I did a survey to understand these challenges. See link bellow. 

No one argues the difficulty of programming, the prevalence of the trial-and-error approach, and the necessity for self-directed learning. Although we have a wealth of information online that permits self-directed learning, but learners still starving for guidance and to get help from peers; this is not surprising; learning is not only by watching and reading resources; there is a part that fulfilled and grow by observing a peer model to show us what we can possibly be successful at. An in-depth understanding of programming learners on social media is still limited ,especially for novices and non-CS majors, who learn for various reasons.  

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

 In order to get an initial understanding of the informal learning experience, I did a survey; the initial findings so far show that employed people are the most motivated learners to pursue informal learning online because it is relevant to their jobs. Also, Reddit users were the most willing to help in the surveys. A small number came from Twitter, Telegram and WhatsApp. Twitch and Discord users did not participate at all.  

If you feel this project (which still it its early stage) is interesting, find the links below and thanks in advance!



link to the [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=yRJQnBa2wkSpF2aBT74-h7Pr4AN75CtBmEQ1W5VUHGpUMThaSTFZRjY1R1RGTTI3OE8yR09aNFAzVi4u)
Or 

SurveyCircle [link](https://www.surveycircle.com/en/HQK87Z/)
How schema sync works in Bytebase
Tags: mysql, database
Published: 2022-12-01 03:05:34

## What is Schema Synchronization?

Schema synchronization can calculate the difference between two database schemas, and generate the SQL statements representing the diffs. Thus, people do not need to write the migration SQL statements by hand.

## Overview
Bytebase has supported MySQL schema synchronization since [v1.8.0](https://www.bytebase.com/changelog/bytebase-1-8-0). Below is the workflow.


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

## Schema Diff Engine
### SQL AST
Bytebase first dumps the database schema and converts them into [abstract syntax tree (AST)](https://en.m.wikipedia.org/wiki/Abstract_syntax_tree) via the parser.


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

### Diff on SQL AST
Bytebase then walks through the ASTs for both database schemas and compares two corresponding entities (which may not exist) from ASTs. The following chart shows a simple example:


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

### Handle Dependencies
Objects and operations in a database have dependencies, such as the need to ensure that a table exists before adding a column. The following subsections show how Bytebase handles these dependencies.

**Dependencies between different objects**
There are many dependencies between database objects, like constraints depending on indices and columns, and columns depending on the table. We need to deal with them according to the topological order. The creating order must follow the below list, and the deleting order should follow the reverse order:

1. Table
2. Column
3. View
4. Index
5. Constraint

Function, trigger, and procedure will not be validated at creation time, so we can create them anywhere after deleting the origin one.

**Dependencies between different operation types**

Also, we should sort dependencies among operation types. Below lists the order:

1. New node creation, like adding a new column.
2. In-place node updates, like changing an existing table definition.
3. Deletion triggered destruction node updates. Because we cannot update some nodes in-place like indexes, we should drop the original one and create the new one instead.
4. Addition triggered destructive node updates.
5. Node deletion.

### Deparse
Finally, we get the processed ASTs, we convert them back to SQLs.

### Recap

- Convert SQLs to ASTs.
- Compare the ASTs to generate diff result AST nodes.
- Adjust the ordering of result AST nodes to keep safe orders.
- Convert diff result AST nodes to SQLs.

## Learn more
You can follow [our docs](https://www.bytebase.com/docs/change-database/synchronize-schema) to learn more about using synchronizing schema.
Release 0.4 Planning
Published: 2022-12-01 02:12:09

Hi everyone,

This week I have chosen to work on the [Astro Reactive Library repo](https://github.com/ayoayco/astro-reactive-library) for release 0.4. I chose this repo because I have been contributing to it for the last couple of months and I am familiar with the project. I will be working on two issues:

1. [generate a favicon.ico for our apps](https://github.com/ayoayco/astro-reactive-library/issues/216)
This issue looks to update the favicon logo to match the current logo that they are using.

2. [chore: create script for updating RELEASE.md before PR](https://github.com/ayoayco/astro-reactive-library/issues/148)
This issue looks to update any RELEASE.md files when a developer changes a package. The script will ask the developer what is the scope of the PR they are making and what changes they made to a package and write to the appropriate RELEASE.md file.

The first issue seems straightforward to me, but the second issue I chose is a little more open-ended. I plan to first create a basic implementation and iteratively add more features to the script to make it more comprehensive and convenient for the developers.