teleren/devto huggingface dataset:
Cach lam tra sua Socola moi nhat 2021
Tags: cachlamtrasuasocola, cachnautrasuasocola, cachphatrasuasocola, congthuctrasuasocola
Published: 2021-09-30 02:25:29

6 Cách làm trà sữa socola thơm ngon, đơn giản nhất tại nhà 2021

Trà sữa socola từ lâu đã trở thành thứ đồ uống quen thuộc. Hương vị ngọt ngào của socola kết hợp cùng vị thơm, béo ngậy của trà và sữa tạo nên một món đặc trưng có mặt ở  hầu hết các quán trà sữa. Cách làm trà sữa socola thật ra cũng không quá khó mà phần nào đó còn rất đơn giản. Trong bài viết này, bạn hãy cùng Abar.Vn đi tìm hiểu 7 công thức pha chế trà sữa socola được dùng nhiều nhất bạn nhé.

cách nấu trà sữa socola
Nội dung bài viết

    1. Dụng cụ chung cho các cách nấu trà sữa socola
    2. Cách làm trà sữa socola phổ biến nhất
        2.1. Nguyên liệu làm trà sữa socola
        2.2. Hướng dẫn cách nấu trà sữa socola
    3. Cách làm trà sữa socola bạc hà
        3.1. Nguyên liệu làm trà sữa socola bạc hà
        3.2. Hướng dẫn cách pha trà sữa socola bạc hà
    4. Cách làm trà sữa socola trân châu
        4.1. Nguyên liệu làm trà sữa trân châu socola
        4.2. Hướng dẫn cách làm trà sữa trân châu socola
    5. Cách làm trà sữa socola kem Cheese
        5.1. Nguyên liệu trà sữa socola kem Cheese
        5.2. Hướng dẫn cách làm trà sữa socola kem cheese
    6. Cách làm trà sữa socola bằng Milo
        6.1. Nguyên liệu làm trà sữa socola Milo
        6.2. Hướng dẫn cách pha trà sữa socola Milo
    7. Cách làm trà sữa socola chuối
        7.1. Nguyên liệu cần chuẩn bị
        7.2. Hướng dẫn cách làm
    8. Các loại Topping thích hợp dùng kèm với trà sữa socola
        8.1. Trân châu
        8.2. Thạch rau câu
        8.2. Đào miếng đóng hộp
        8.4. Pudding socola
    9. Video hướng dẫn cách nấu trà sữa socola liên quan
    10. Địa điểm mua nguyên liệu nấu trà sữa socola uy tín.

1. Dụng cụ chung cho các cách nấu trà sữa socola
Active Tab When Open with Url-Tab Shareable
Tags: tutorial, javascript, bootstrap, jquery
Published: 2021-09-30 02:25:00

In this case, in one page having bootstrap tabs, the problem arises when the user wants to share content based on the tabs has has opened (not the first tab which is usually the default).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/45ocqbsw297bkp1x9hd9.png)

### Purpose
Open destination tab when open window with url

### Prerequire
- Bootstrap; js tab function
- Jquery and javascript

### Script
To activate the tab, first create an `activeTab` function with a known pattern name parameter. After that I just activate the function. Note: In this part important to understanding js tab in Bootstrap!

```js
//<1>
    function activaTab(tab){
          let someTabTriggerEl = $('.nav-tabs button[data-bs-target="#nav-' + tab + '"]')
          let tab = new bootstrap.Tab(someTabTriggerEl)
          tab.show()
    };
```
Before executing `activeTab` function, I need to fetch all tab items with jquery selector with class attribute `tag-tab`. The html tab item is as follows `<span id="audio" class="tab-tag">Audio</span>` , then performs a query with the condition that the id attribute is the same as `tagUrl`, which is obtained from the split url with the split attribute ` #`, e.g. `http:/website.org/page.php#audio`.

```js
//<2>
    // get URl
    let curentUrl = window.location.href;
    var tagUrl = curentUrl.split("#")[1];
    
    // query tab to active function <1>
    var arrTag = $('.tab-tag');
    if (typeof tagUrl !== "undefined") {
      arrTag.each(function(){
          let tagSpesific = ($(this).attr('id'));
          if (tagSpesific == tagUrl){ 
            activaTab(tagUrl);
          }
      });
    }

```

***Done***
Using Typescript in a Node Project
Tags: typescript, javascript, node, programming
Published: 2021-09-30 02:12:52

I've been in the software industry for more than 15 years, most of that time, from one way or another, I always have to use javascript for the frontend or backend, but always feels I'm missing something, the language is not excellent enough to apply the uncle Bob suggestions, for example defining interfaces.

For that reason and a lot more, I've decided to move forward and start to use typescript in all my professional work, that reason can be a post itself, but in this post, I going to explain how you can create an Express Application using typescript from the beginning.

##Let's get started.

First of all, we have to create a brand new project using yarn but if you prefer you can use Npm, that is completely up to you.

```
mkdir ts-node-app

cd ts-node-app

yarn init -y
```

### Adding the necessary dependencies 

In first place we will add express.

```
yarn add express
```

Now we will add the support for typescript. in order to do that let add some other dependencies.

```
yarn add typescript ts-node @types/node @types/express --dev
```

typescript is installed as a dev dependency because all your code will be compilated into vanilla js, the that dependencies will be unnecessary once you build your application


### Let's configure your app to use typescript.

To start using  typescript in your project is not enough to install it as a dependency; you have to create a configuration file called tsconfig.json; in this file, there are a lot of configurations the most of that commented, to understand this file, please check this [Link](https://www.staging-typescript.org/tsconfig)	 

to create the tsconfig.json you can use npx

```
npx tsc --init
```

### Now we are ready to write code using Typescript.

let's create a simple server using express and typescript.


```
import express from "express";

const app: express.Application = express();

app.get("/", (request: express.Request, response: express.Response) => {
  response.send("Hello World");
});

app.listen(3000, () => {
  console.log("Listening on port 3000");
});

```

### Building the app.

Now we are in position to build the app, so we will create a build and start scripts in package.json

```
"scripts": {
    "build": "tsc --project ./",
    "start": "node ./build/app.js"
  },
```

### Github Repo

I've put a complete version of code in my github account, here is the [Link](https://github.com/esaraviam/node-typescript-boilerplate)
Nestjs #cli #nest g res in a specific folder
Tags: node, typescript, nestjs
Published: 2021-09-30 02:11:29

#PARA CREAR UN RESOURCE CRUD RESTAPI en una ruta especifica

Si tenemos nuestro source en la carpeta modules
POR *SI QUEREMOS ORGANIZAR LOS MODULOS EN DIRECTORIOS DENTRO DE MODULES*
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19mj5ri9aytpk6ly3jsh.png)



Si tenemos nuestro source en la carpeta modules
simplemente haciendo:
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3snuua48dt7ewuy7t2l4.png)
indicando 
**nest g res 'nombre de resource[module]>'  'path [donde agregar el soruce]'**


usando el comando anterior entonces se crea el CRUD RESOURCE EN EL PATH INDICADO.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ca1nsw9rkas6rn28t3mc.png)
Utiliza los mixins en tus break points
Tags: sass, css, frontend, spanish
Published: 2021-09-30 01:53:59

Los media querys son una forma de acomodar nuestro sitio web para diferentes dispositivos. 

Con la utilización de SASS en cada ves más proyectos se vuelve necesario simplificar el proceso de declaración de nuestros breakpoints y para esta tarea se utilizan los mixins, los cuales son una porción de código que podemos reutilizar en esas partes que se hacen repetitivas.

Para definir los mixins vamos a colocar tres break points los cuales son:

Moviles:  767px

Tablets: mínimo 768px, máximo 999px

Desktop: 1280px

pasamos a la declaración creamos un nuevo archivo `.scss` y en este dejaremos el siguiente código:

![mixins.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vxtzg3u4g4uifc5e6q1q.png)

ahora importaremos este archivo  en nuestro scss de la siguiente forma:

`@import '../../utils/mixins.scss';`

ahora lo vamos a utilizar definiendo nuestros estilos para los diferentes dispositivos

![definicion.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atubau602mgjjjmk71a4.png)

Y con esto ya tendríamos implementado nuestros break points de una forma más practica y sencilla de utilizar.

Espero te ayudara este post.

Gracias por leer, nos vemos en la próxima.
React Series - #1 [ Intro ]
Tags: react, javascript, beginners, 100daysofcode
Published: 2021-09-30 01:04:27

I've decided to dive into React and will be making a blog-series on react as I learn it.

`Note: Take a look at `[this](https://dev.to/hareom284/javascript-fundamentals-before-learning-react-1mkl) `post first to get a feel of some JavaScript syntax that is used in React.`

React is a popular JavaScript library used mostly in building user-interfaces.

Let's have a look at what a React application(not really an app) looks like:

First, To setup a simple react-environment, make sure node-js is installed, then open the terminal and navigate(in-terminal) to a directory where you would like the react-project to be in then write this command in the terminal
```npx create-react-app name-of-project```

This will use a package "create-react-app"( used for generating react projects ) to generate a react project in a folder "name-of-project". It downloads the react library along with some other dependencies and useful tools, then sets up a template for a project.

With the react environment successfully setup there should be a couple of folders like 'public, src, node_modules'.
`public: holds static files like the html files`
`src: holds the react source code we're working on`
`node_modules: holds dependencies of the project`

Delete the files in 'src' folder and then create a fresh js file in there called 'index.js' and we can begin to code in React.

Copy this code snippet into the js file :
```Js
import React from 'react';
import ReactDOM from 'react-dom';

const App = () => {
  return (
    <div>Hello World!</div>
  )
}

ReactDOM.render(<App />,document.querySelector('#root'));
```

First we're importing the react and react-dom library and assigning it to a variable "React" and "ReactDOM".
`react-dom library allows react to interact with the DOM.`

We define a React Component using arrow function syntax which returns what looks like a HTML div tag with the string "Hello World!" but in reality is just JSX (Javascript XML) which is used with React to describe what the UI should look like.

JSX doesn't have to be used but it makes things better and more readable, the non-JSX equivalent of the code is:

`React.createElement("div", null, "Hello World!");`

which might not look bad when we replace the JSX code with it, but when you start writing more complex code, it can potentially mess up the beauty of your code.

Then we use the react-dom to render the react component we created inside a div with "id" of 'root'. The app component is wrapped in JSX syntax which is better than having to write something like `react.default.createElement(App, null)`.

`Note : The HTML file that contains the div is in the 'public' folder`

Run `npm start` in the react project folder to run your project, it will open the page in your browser.


Thanks for reading this short blog, Drop a follow to be informed when I drop the continuation of this post
Url Button in Apply Filter will Change by Parameter Filter Choice
Tags: tutorial, javascript, bootstrap, jquery
Published: 2021-09-30 00:58:54

When I create a filter, and have multiple categories, I decide to fetch some and the rest in the bootstrap modal. The problem is that I want the modal filter to work like in [archive.org](archive.org) where the user selects first and then applies the filter to the page.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rgh2wlrtoyh6dbrri7k.png)

### Purpose
Change __Applay Filter__ url for summit with various categories choice.

### Prerequire
- Javascripts; `function`, `for`
- jQuery; selection and `onclick` features

### Script
Pada buttom apply filter menggunakan id berpola applyName dan juga menyertakan nilai url terkait `<buttom id="applyTag" url="http://www...>" ` yang kemudian akan di handle script berikut.
```js
//<1>
$('#applyTag').on('click', function () {
   goUrlFilter('tag', this);
});
```
Dimana fungsi `goUrlFilter` akan mengubah parameter url yang dimiliki buttom sesuai dengan kategori yang di check, tentunya dalam fungsi akan mengambil setiap kategori yang memiliki parameter `name=tag` di tag inputnya.
```js
//<2>
function goUrlFilter(paramName, address){
  var markedCheckbox = document.getElementsByName(paramName);
  var url = $(address).attr('url');

  for (var checkbox of markedCheckbox) {
    if (checkbox.checked){
      url = url + '[' +  checkbox.value + ']';
    }
  }
   window.location.href = url;
};
```
Untuk kasus filter yang banyak, untuk menjalankan fungsi, saya perlu sedikit trik, dengan menambahkan class `btnApply` pada setiap buttom applay, kemudian baru melakukan query untuk menjalankan script `<1>`.

```js
//<3>
let btnApply = $('.btnApply');

btnApply.each(function(){
      let idApply = $(this).attr('id');
      let nameApply = idApply.split('apply')[1].toLowerCase();
      $(`#${idApply}`).on('click', function () {
         goUrlFilter(nameApply, this);
      });
});

```

 ***Done***
React Series - #1 [ Intro ]
Tags: react, javascript, beginners, 100daysofcode
Published: 2021-09-30 00:23:51

I've decided to dive into React and will be making a blog-series on react as I learn it.

`Note: Take a look at `[this](https://dev.to/hareom284/javascript-fundamentals-before-learning-react-1mkl) `post first to get a feel of some JavaScript syntax that is used in React.`

React is a popular JavaScript library used mostly in building user-interfaces.

Let's have a look at what a React application(not really an app) looks like:

First, To setup a simple react-environment, make sure node-js is installed, then open the terminal and navigate(in-terminal) to a directory where you would like the react-project to be in then write this command in the terminal
```npx create-react-app name-of-project```

This will use a package "create-react-app"( used for generating react projects ) to generate a react project in a folder "name-of-project". It downloads the react library along with some other dependencies and useful tools, then sets up a template for a project.

With the react environment successfully setup there should be a couple of folders like 'public, src, node_modules'.
`public: holds static files like the html files`
`src: holds the react source code we're working on`
`node_modules: holds dependencies of the project`

Delete the files in 'src' folder and then create a fresh js file in there called 'index.js' and we can begin to code in React.
The distinction between "testing" and "checking"
Tags: testing, manualtesting, testautomation
Published: 2021-10-06 12:05:37

---
title: The distinction between "testing" and "checking"
published: true
date: 2021-09-30 00:00:00 UTC
tags: testing,manualtesting,testautomation
canonical_url: https://jhall.io/archive/2021/09/30/the-distinction-between-testing-and-checking/
---

I remember reading a blog post several years ago (link long since forgotten) which introduced me to the distinction between the concepts of “tests” and “checks.” The summary of this distinction can be found in posts like [this one](https://www.satisfice.com/blog/archives/856):

> **Testing** is the process of evaluating a product by learning about it through experiencing, exploring, and experimenting, which includes to some degree: questioning, study, modeling, observation, inference, etc.

> **Checking** is the process of making evaluations by applying algorithmic decision rules to specific observations of a product.

These are clearly two different types of activities. They deserve a distinction. Although I’m not a fan of these terms (more on that another day), you should be aware of the distinction, and the different connotations these terms can carry with certain people, especially if you hang out in QA or Tester circles,

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Copy text to the system clipboard on click with JavaScript
Tags: javascript, tutorial
Published: 2021-09-29 23:19:09

In this short tutorial I’ll be showing you how to add copy to clipboard functionality when a button is clicked using JavaScript. This comes in handy within web apps when you need to copy a large string of text or when using touch screen devices.

Let get started by setting up some HTML:

```html
<input
  type="text"
  id="key-txt"
  value="1seWYeywqmTnqv7a5FC6LkD2vsdEx6jXOwqkmhLN"
  size="45"
  readonly
/>
<button id="key-btn">COPY</button>
```

We can now begin the JavaScript functionality starting with declaring variables for the text and button element:

```javascript
const keyTxt = document.getElementById("key-txt").value;
const keyBtn = document.getElementById("key-btn");
```

Next we’ll add a click event listener to the button:

```javascript
keyBtn.addEventListener("click", async () => {
  if (!navigator.clipboard) {
    alert("Copy functionality not supported");
  }
  try {
    await navigator.clipboard.writeText(keyTxt);
  } catch (err) {
    console.error("ERROR", err);
  }
});
```

First we’re checking if the browser supports the `navigator.clipboard` which is part of the Clipboard API that provides the ability to respond to clipboard commands (cut, copy, and paste) as well as to asynchronously read from and write to the clipboard. If the browser does support `navigator.clipboard` the text is written to the clipboard.

That’s all for this tutorial, it should be noted that similar functionality could also be written using `document.execCommand()` however that method is no longer recommended as browsers drop support for it.
Gerando chave SSH - Github
Tags: github, git, ssh, hacktoberfest
Published: 2021-09-29 22:42:10

Para vincular um repositório local (git) à um repositório remoto (github) sem a necessidade de fornecer as credenciais a cada atualização, é possível adicionar a máquina local via SSH.

## Setup

Este tutorial é baseado no sistema operacional Linux.

## Gerando chave SSH

No terminal, utilize o ssh-keygen para gerar uma chave pública com as credenciais desejadas.

```console
gustavo@linux:~$ ssh-keygen -t rsa -b 4096 -C "seu_email@mail.com"
```

Será criada uma nova chave ssh, utilizando o email fornecido.

```
> Generating public/private rsa key pair.
```

Será exibida uma mensagem para definir um arquivo onde a chave será salva. Por padrão, o sistema define ~/.ssh/id_rsa como o local para o arquivo, basta pressionar enter.

```
> Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter]
```

O próximo passo é definir uma senha. Caso deseja não utilizar senha, basta deixar vazio e pressionar enter.

```
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]
```

É possível checar, no próprio terminal ou em algum editor de texto, a chave criada.

```console
gustavo@linux:~$ cat ~/.ssh/id_rsa.pub
```

## Adicionando chave ao Github

Após a criação das chaves SSH, é hora de adicioná-las ao Github.

Na página de configurações

![github home settings](https://i.ibb.co/TRmmbGN/github-home-settings.png)

Vá para a sessão de "*SSH and GPG Keys*"

![github profile ssh](https://i.ibb.co/SBhVjv2/github-profile-ssh.png)

E, crie uma nova chave (*New SSH key*)

![github ssh keys](https://i.ibb.co/qkDgLdm/github-ssh-keys.png)

Basta definir um título, a sua escolha, copiar e colar a chave gerada na sessão anterior (~/.ssh/id_rsa_pub).

![github add new key](https://i.ibb.co/Lrz8G4Z/github-add-new-key.png)

*tip:* É legal ter títulos que remetam de alguma forma à máquina que está sendo utilizada, e a sua finalidade (home, work...).

## É isto

Por fim, se o processo foi executado corretamente, já deve ser possível fazer **git pull** e **git push** da máquina local para o repositório remoto.

## Autor

[Gustavo Dias A.](https://www.linkedin.com/in/gustavo-dias-alexandre-543568157/)

## Referências

* [Github Help](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent)
* [Willian Justen](https://www.youtube.com/playlist?list=PLlAbYrWSYTiPA2iEiQ2PF_A9j__C4hi0A)
Stealth Connected Fitness Start-Up Hiring a Senior Full-Stack iOS Developer
Tags: ios, swift, hiring, startup
Published: 2021-09-29 22:40:21

Hi - I am new to the forum, and I apologize ahead of time if this post is unkosher in any way. 

One of my partners, an early-stage Stealth Connected Fitness company targeting strength and holistic wellness, is looking to make one of their most critical engineering hires.

In this role, you will have the opportunity to be responsible for spearheading the development of their category-leading application and architecting their cloud infrastructure from the ground up.

My partner is backed by some of the world's best investors & operators, including Tribe Capital, Courtside Ventures, Naval Ravikant, Jeff Fagnan, and founders/execs from Glossier, Molekule, Bonobos, Caraway Home, Overtime, The Athletic, the NBA, UFC, and more.

We are open to remote (the US or Canada), offering an attractive salary + equity comp package.

If you are energized by the combination of fitness & technology, the opportunity to improve people's health & wellness, and the impact you can make in the early days of a startup going after a massive opportunity, we'd love to talk to you!

Job Description and where you can apply: https://www.linkedin.com/jobs/view/2737946853/?refId=HQTHk%2FHlShaZFOug8%2BbK2w%3D%3D

Thanks for taking the time to review!
Day 462 : Never Say Never
Tags: hiphop, code, coding, lifelongdev
Published: 2021-09-29 21:47:39

_liner notes_:
- Professional : Pretty chill day. Only had one meeting and it was to see if we can take the hackathon project I did from concept to reality. I signed up for an early access program and reached out to some folks so we'll see what happens. Other than that, I worked on an upcoming blog post.

- Personal : So I was saying in a previous post that I wasn't sure if I could get this framework to do what I needed for my side project. Never say never. I made some really good progress and was able to communicate between the front end and the service worker. With that out of the way, I can move on to the next thing that builds on that for my side project. Got to watch an episode of "Boruto". Heard that my father's laptop was getting really slow, so I ordered a pretty well reviewed Chromebook. He doesn't really do any too intensive, so I think a Chromebook will work for him. We'll see. Supposed to be delivered tomorrow. 

![A stream in Grimsel Pass, Switzerland with a lot of rocks and patches of grass in it winding between large mountains.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8rw60xjkijek3v3vt2my.jpg)

It's Wednesday, so a new episode of Marvel's "What If...?" is out. Going to watch that and maybe an episode of "Boruto". Also want to go through some tracks for the radio show. Going to see if I can get the other functionality needed for my side project working. The Bluetooth keyboard space bar for my Chromebook has been acting up recently and the tablet has been getting a little slow. May be time to get another Chromebook. It's been a couple of years I think since I got this one. Maybe just use it as a tablet. Keeping my eye out.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube U0eS3zC3Jco %}
Starter Full Stack App with Next JS Using Redux 😍
Tags: nextjs, react, node, redux
Published: 2021-09-29 21:15:56

# Starter Full Stack App with Next JS Using Redux

Boilerplate for creating fullstack apps using following technologies:

### Frontend Technologies:

- Next js
- Redux

### Backend Technologies:

- Node.js
- MongoDB
- Mongoose

The frontend and the backend are completely independent of each other.

Github : https://github.com/saidMounaim/starter-nextjs