teleren/devto huggingface dataset:
Electronic Health Records for Schools
Tags: electronichealthrecords, schoolhealthmanagementsystem, ehrsoftware
Published: 2023-01-24 13:44:56

Electronic Health Records technology allows nurses to electronically track health incidents, district officials to access health compliance data, and parents to participate in their children' health. We collaborate with health systems and Managed Care Organizations to link students to sponsored programmes that can help them stay healthy for the rest of their lives.

Every Student's Privacy and Security
Our systems, services, and data use cases all fully comply with the Family Educational Rights and Privacy Act (FERPA) and the Health Insurance Portability and Accountability Act (HIPAA) (HIPAA). We have also signed the national Student Privacy Pledge as well as all state Student Privacy Policies.

We only collect, store, process, and distribute student personal health information to provide our Service or as allowed by an educational institution or parent.

A school nurse can use [school health records](https://www.eduhealthsystem.com/) to disseminate information to kids, families, the school multidisciplinary team, emergency personnel, other healthcare professionals, and school nurse substitutes.
Data from student health records can provide indications of student health issues that need to be addressed.
"Works on my machine", eh?
Tags: testing, beginners
Published: 2023-01-24 13:41:26

I often see "memes" from testers complaining about developers saying "it works on my machine".


However there's one thing to keep in mind here - developers are not trying to be difficult. They provide important information.


Want to know what you could do instead of getting annoyed?


Check this video!

{% embed https://www.youtube.com/watch?v=ivUo22yEmrM&t=0s %}
error in script
Published: 2023-01-24 13:38:15

can someone fix my script?? I have created this script but don't know where is the error. I only know that it is not exiting the first function
#!/bin/bash

# Script parameters
_log_file=${1:-/var/log/fichier_log}
_interface=${2:-ens18}
_ip=${3:-192.168.2.23}
_heure1=${4:-100}
# 21500
# 7100
_heure2=${5:-70}
_liste_port=${6:-"port 80 or port 443 or port 22"}
_daily_log_dir=${7:-"/var/log/daily_log"}

# fonction de capture
function capture_traffic() {
    local _duration=$1
    local _start=$(date +%s)
    while [[ $(($(date +%s) - $_start)) -lt $_duration ]]
    do
        # Capture traffic and write to log file
        tcpdump -i $_interface -n -s 0 | tee -a $_log_file
    done
    return
}

# fonction de rotation de log
function rotate_log() {
    local _timestamp=$(date +%Y%m%d%H)
    if [ ! -d "$_daily_log_dir" ]; then
        # cree le répértoire si il n'existe pas
        mkdir "$_daily_log_dir" || { echo "Erreur: la creation du repertoire a échoué" >&2; exit 1; }
    fi
    gzip $_log_file && mv $_log_file.gz $_daily_log_dir/fichier_log_$_timestamp.gz
    return
}

function principale() {
    # capture de traffic pour une durée déterminé
    capture_traffic $_heure1
    rotate_log
    capture_traffic $_heure2
    rotate_log
    logrotate -f /etc/logrotate.d/daily_log
    return
}

principale
ForgetPasses
Tags: javascript, node, npm, webdev
Published: 2023-01-24 13:36:11

I am glad to introduce you my service "ForgetPasses".
It is a passwordless authentication system for webdevelopers who do not want to code a ton of code just for a user authentication system.
On one hand ForgetPasses open source package allows users to log in to their accounts without the need for a password, using a secure, alternative authentication method. Our package also includes robust user management capabilities for companies and developers.

It is currently free to use and provides the following features:

- User management with our website or the API
- Simple to implement for everybody
- Easy to use
- Fast and Secure

Advantages of ForgetPasses are that it is easy to set up and you don't have to worry about user data. All user data is encrypted on our servers using the most secure encryption techniques. However, if you want to store them on your own servers as well, this is of course not a problem as you can easily set it up manually.

So what do you think? Is it worth trying?
https://forgetpasses.com
How to Summarize a Journal Article
Published: 2023-01-24 12:49:39

Summarizing a journal article can be a useful skill for academics, researchers, and students. It allows you to quickly and effectively understand the main points and findings of an article, without having to read the entire piece. Here are some tips on how to summarize a journal article.

Read the abstract: The abstract is a brief summary of the main points and findings of the article. It is usually found at the beginning of the article and provides a good overview of the content.

Skim the article: Before diving into the article, skim through it to get a sense of the main sections and key ideas. Look for headings, subheadings, and highlighted text to help you quickly identify the most important information.

Take notes: As you read through the article, take notes on the main points and findings. This will help you to organize the information and make it easier to summarize later on.

Identify the main argument: The main argument of the article is the central idea or thesis that the author is trying to convey. Identifying this will help you to understand the overall purpose of the article and the key points that the author is making.

Focus on key evidence: The evidence presented in an article is what supports the main argument. Pay attention to the key evidence, such as statistics, data, and examples, as they are often the most important part of the article.

Write a summary: Once you have read and taken notes on the article, it is time to write a summary. This should be a brief overview of the main points and findings of the article, focusing on the main argument and key evidence.

Revise and edit: Before submitting your summary, make sure to revise and edit it. This will help you to catch any mistakes or errors and ensure that your summary is clear and concise.

By following these tips, you can effectively summarize a journal article. Remember to be efficient and focus on the most important information. With practice, you will be able to quickly and effectively understand the main points and findings of any journal article.
GRL Journals follow all the guidelines for ethical publishing and keep the scientific community growing forever. Global Research Letters adhere to the notion of ethical practice. Therefore, we always try to stop the abuse of scientific research works. 

Publications Ethics:- grljournal.in, https://grljournals.in/index.php/publication-ethics/
Website:- https://grljournals.in/
How to Publish Paper:- Publish Paper
Check Out our Team:- Editorial Team
How to Verify Whatsapp Number via Sendchamp API
Published: 2023-01-24 13:20:20

The [WhatsApp Number Validation API](https://sendchamp.readme.io/reference/whatsapp-number-validation) allows you to validate WhatsApp number to determine if a number is active or not. 

Let’s walk through how to validate WhatsApp numbers with Sendchamp step by step so you can get on to the important steps like sending WhatsApp messages.

## **Prerequisite**

Before getting started, ensure you have:

- JavaScript knowledge and familiarity with Nodejs.
- Nodejs installed on your machine
- Sendchamp account [sign up on Sendchamp](https://my.sendchamp.com/?utm_campaign=sendchamp_developers_website&utm_medium=webl&utm_source=sendchamp_developers_website).

Navigate to your [Sendchamp Dashboard](https://my.sendchamp.com) to get your API key in the account settings section.

## Setting up your Nodejs Application

Create a `.js` file, let’s call it `index.js`, and in the file, initialize an instance with your credentials:

```javascript
const options = {
  method: 'POST',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    Authorization: 'Bearer ACCESS_KEY’
  },

```

Make sure to replace `ACCESS_KEY` with your correct public access key on your Sendchamp dashboard.

## Validate WhatsApp Number

The WhatsApp Number validation API takes only one parameter, which is the WhatsApp phone number you want to validate. 

Let’s try to hard-code a WhatsApp phone number which should start with a country code, e.g. “2349039099438” to test out the WhatsApp Number validation API:

```javascript
body: JSON.stringify({"phone_number": "2349039099438",)
};
fetch('https://api.sendchamp.com/api/v1/whatsapp/validate', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```
Let’s look at the response.

```json
{
    "code": 200,
    "data": {
        "is_valid": true,
        "phone_number": "2349039099438"
    },
    "errors": null,
    "message": "whatsapp number validated",
    "status": "success"
}
```

The response shows that the phone number was validated and active. Thanks for following up.

Join Sendchamp Slack [developer community] (https://community.sendchamp.com) for questions you might have and valuable resources.

For quicker testing, you can import our [Postman collection] (https://www.getpostman.com/collections/263a6ef74ae1cf4131ef) and test APIs on Postman
MySQL Script: 3 Easy Ways to Run SQL Commands in a File
Tags: mysql, database, dbforge
Published: 2023-01-24 13:19:22

---
title: MySQL Script: 3 Easy Ways to Run SQL Commands in a File
published: true
description: How to run a MySQL script from a file? 
tags: #mysql #databases #dbforge
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-01-24 13:13 +0000
---
Do you want to run a MySQL script from a file? Running a SQL script can be quite routine and troublesome. This article will be especially useful for novice MySQL administrators and developers - https://www.sciencetimes.com/articles/41957/20230120/mysql-script-3-easy-ways-to-run-sql-commands-in-a-file.htm
![MySQL script](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sjc1ytpiqmz273ciy12q.png)
Should Developers Specialize or Generalize?
Tags: career, beginners, webdev, codenewbie
Published: 2023-01-24 13:18:14


![what's better - to specialize or generalize?](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqbsjbb414gmsqdnkknj.png)

I dared initiating the age old debate on twitter — to specialize or generalize?

**86 replies** later I think I have a better understanding of the best course of action for me.  

My goal with this article is to summarize the discussion and present arguments people have for their choice. Hope this will help you in making an informed decision that is ideal for your career stage.

Let’s dive in! 🚀

## TL;DR
- [Poll Results](#poll-results)
- [Rationale For Specialization](#rationale-for-specialization)
- [Rationale For Generalization](#rationale-for-generalization)
- [Conclusion](#conclusion)

## Poll Results

Here’s a quick summary of the responses.

![Twitter Poll Results Pie chart](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9gpx412x32so9k2w4va.png)

Looking at the results *~45%* of developers believe that specialization is the way to go, while *~29%* are inclined towards generalization. 

While we have a clear winner, it’s important to examine the reasoning and motivations behind these responses.


## Rationale For Specialization

🔸 **More job opportunities.** Specializing can lead to more opportunities and success as a freelancer or contractor. It’s also clear to your employer what value you bring to the table. 
🔸 **Building credibility.** With specialization you build credibility by developing a deep understanding of the subject matter. It gives you the ability to solve complex problems and create innovative solutions. 
🔸 **To show expertise.**  If you are working on a specific area or technology for 3-4 years, you naturally build a reputation as an expert.

## Rationale For Generalization

🔸 **More flexibility.** With your ability to quickly understand and work with multiple technologies as a generalist, you can move into different roles and industries.
🔸 **Better adaptability.** You will easily adapt to new situations or technologies that you will encounter in your work.
🔸 **To find passion.** Generalizing at first can help in finding what you love. Something that you can focus on for a long period of time and make it your speciality.

## Conclusion

Major takeaway for me from the discussion is - there is no RIGHT answer to this question. Also, your choice can change as you will progress in career.

Having said that, share in comments what do you think — should developers specialize or generalize?

If you liked this discussion, follow me for more of these.
How To Make A Calculator Using HTML CSS And JavaScript
Tags: html, css, javascript, tutorial
Published: 2023-01-24 13:03:31

How To Make A Calculator Using HTML CSS And JavaScript

in this video we are going to learn How To Make A Calculator Using HTML CSS And JavaScript. It's very helpful project for everyone who want to work with HTML, CSS and JavaScript.

inside the video tutorial you will learn how to use HTML and CSS to design the complete calculator. Once we designed that, then you will learn how to use JavaScript to perform the operations such as addition, deletion, multiplication etc.

So, hope this video is helpful and beneficial for you.

{% embed https://www.youtube.com/watch?v=ayecUtD08oY %}
Paracetamol.js💊| #200: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2023-01-24 13:00:00

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```js
// este es el reto 200 😲
const obj = {a:5, b:7, c:9};
const cuadrado = (obj) => {
  return Object.fromEntries(
    Object.entries(obj).map(([key, value]) => [key, value**2])
  )
}

console.log(cuadrado(obj)) //❓
```

A. `{ a:10, b:14, c:18 }`
B. `{ a:25, b:49, c:81 }`
C. `{ a:undefined, b:undefined, c:undefined}`
D. `Ninguna de las anteriores`

Respuesta en el primer comentario.

---

Respuesta:
B. `{ a:25, b:49, c:81 }`

El método `Object.entries` convertirá al `obj` en una matriz donde cada item tendra 2 elmentos, una `key` y un `value`.

Como `Object.entries` regresa un arreglo, iteramos con el método `map` para hacer una tranformación y desestructurando el cada item de la matriz (que es un arreglo), elevamos al cuadrado el `value` del objeto.

Finalmente envolvemos todo en un `Object.fromEntries` que convierte el arreglo resultante en un objeto nuevamente.
JavaScript: Para que serve o comando eval?
Tags: javascript, beginners, node, webdev
Published: 2023-01-24 12:52:40

Voltando a falar novamente sobre alguns comandos do JavaScript, dessa vez eu gostaria de falar um pouco sobre o comando eval. Explicar o que ele faz, os perigos de se usar e dar exemplos de uso.

## O que ele faz?

Bom basicamente essa função recebe uma string e a interpreta como código Javascript e executa esse código. 

## Exemplo

Vamos começar com algo bem simples se formos no nosso console do navegador e escrevermos o código `alert('oi')` o comando vai ser interpretado e vai aparecer uma caixa de alerta no navegador. Porém se eu executar o mesmo código em volta de uma string  `"alert('oi')"` ele não será interpretado pelo navegador e apenas vai se repetir na linha abaixo. Agora se eu rodar o seguinte comando eval("alert('oi')") a caixa de alerta do navegador volta a aparecer, porque o comando eval pega a string passada a ele como parâmetro e executa como um código JavaScript normal.

## Casos de uso

Abaixo fiz um código bem simples de um momento que seja relevante usar o eval. Vê que para cada figura nós temos um equação diferente para calcular a área. Então posso criar uma função para fazer isso ou ter a equação no banco, mas nesse caso por algum motivo nós vamos querer ter as equações no banco. 
Então basicamente o código pega a string com a equação, substitui os seus parâmetros executa e mostra o resultado.

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


## Pontos de atenção

Apesar de ser um comando poderoso, o eval também é muito perigoso. Pois como eu disse anteriormente ele interpreta código JS, o que acaba sendo um perigo quando não usado com cautela, fazendo com que você sofra um code injection por exemplo. Abaixo alguns pontos para você pensar quando for usar o eval.

* O mal uso do eval pode levar code injection
* Fica mais dificil de debugar código, pois dentro do eval os erros não tem indicação de linha
* Dificulta a minificação do código

## Function uma alternativa para o eval

Diferente do eval o construtor `Function` cria um novo objeto `Function` assim criando funções dinamicamente, diferente do eval que executa de cara o seu código JS. E outra particularidade muito importante as funções criadas usando o `Function` executam somente no escolo global. Como o objetivo do artigo não é falar sobre esse construtor recomendo caso tenha curiosidade ler um pouco mais sobre ele nas docs da mozzila sobre o [Function](https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Function)


Muito obrigado por ler 🙃

[Links úteis](https://bento.me/cmsdev)
Secure CSRF Token Storage in Rails 7 using Encrypted Cookies
Tags: ruby, rails
Published: 2023-01-24 12:48:29

#### What is a CSRF token?

A CSRF token is a unique value that is generated by the server and stored on the client’s session. This token is included in every subsequent request made by the client, either in an HTTP header or as a hidden field on a form submission. The Rails server then compares this token against the one stored in its session store. If the token on the request does not match the one on the server, the request is considered illegitimate and is not processed.

##### Why do we need to store the CSRF token outside of the session?

The default CSRF protection in Rails stores the token in the user’s session, which is secure but may cause issues when using a cache such as Redis. This is because sessions for unauthenticated users may be created in large numbers, containing only the CSRF token, which can lead to cache thrashing and decreased performance. This may cause eviction of old sessions, which can negatively impact the overall performance of the application.

In order to solve this problem, Rails version 7 introduces a new feature where CSRF tokens are stored in an encrypted cookie rather than the session. This method is more efficient as it only stores tokens for authenticated users.

#### How to use it?

To use this feature, we need to set `config.action_controller.use_custom_csrf_token` to a lambda that returns the token to be used for the request. The lambda will then be called with the request object as an argument.

Add the below code in `config/application.rb` to use an encrypted cookie to store the CSRF token.
```ruby
config.action_controller.use_custom_csrf_token = lambda do |request|
request.cookies['csrf_token'] = Encryption.encrypt(request.session[:_csrf_token])
end
```
Publish Flutter Package on pub.dev
Tags: programming, flutter, dart
Published: 2023-01-24 12:47:48

**Preparing to publish**

When publishing a package, it’s important to follow the pubspec format and package layout conventions. Some of these are required in order for others to be able to use your package. Others are suggestions to help make it easier for users to understand and work with your package. In both cases, pub tries to help you by pointing out what changes will help make your package play nicer with the Dart ecosystem. There are a few additional requirements for uploading a package:

- You must include a LICENSE file. We recommend the BSD 3-clause license, which the Dart and Flutter teams typically use. However, you can use any license that’s appropriate for your package. You must also have the legal right to redistribute anything that you upload as part of your package.
Your package must be smaller than 100 MB after gzip compression. If it’s too large, consider splitting it into multiple packages, using a .pubignore file to remove unnecessary content, or cutting down on the number of included resources or examples.

- Your package should depend only on hosted dependencies (from the default pub package server) and SDK dependencies (sdk: flutter). These restrictions ensure that dependencies of your packages cannot become unavailable in the future.
You must have a Google Account, which pub uses to manage package upload permissions. Your Google Account can be associated with a Gmail address or with any other email address.

**Important files**

Pub uses the contents of a few files to create a page for your package at pub.dev/packages/<your_package>. Here are the files that affect how your package’s page looks:

1. README.md: The README.md file is the main content featured in your package’s page. The file’s contents are rendered as Markdown. For guidance on how to write a great README, see Writing package pages.

2. CHANGELOG.md: Your package’s CHANGELOG.md file, if found, is also featured in a tab on your package’s page, so that developers can read it right from pub.dev. The file’s contents are rendered as Markdown.
3. The pubspec: Your package’s pubspec.yaml file is used to fill out details about your package on the right side of your package’s page, like its description, homepage, etc.
Publishing your package
Use the dart pub publish command to publish your package for the first time, or to update it to a new version.

**Performing a dry run**

To test how dart pub publish will work, you can perform a dry run:



```
$ dart pub publish --dry-run
```


Hurray!! NOW FINALLY you can publish now.

**Publishing**

When you’re ready to publish your package, remove the --dry-run argument:

```
$ dart pub publish
```
You will receive and email of package published on pub.dev and u can now flex with your friends about the package u uploaded and saved developers life…

Keep sure to check out my packages and leave a suggestion:
https://pub.dev/packages/fancy_button_new
https://pub.dev/packages/fancy_field_new