teleren/devto huggingface dataset:
PHP dumb beginner looking for directions.
Published: 2023-01-19 22:44:09

Hello there,
I've just started with PHP.
I created a login system based on two other projects on GitHub.
Did not use any framework nor ajax, trying to do everything just using PHP.
The system has the following functionalities: Signup, Lost PWD, Email verification and the login itself.
Is there any good soul out there willing to take a look at the code and make some suggestions.
Any help would be really appreciated.
Thanks.
Day 677 : With
Tags: hiphop, code, coding, lifelongdev
Published: 2023-01-19 22:17:33

_liner notes_:
- Professional : Today is a day full of meetings but I was able to put some code together for a Web Component I'm working on. I'll need to refactor my demo application a little to implement the Web Component. That'll happen tomorrow. I did hear that my manager's manager's manager did a demo with the Firebase extension that I made to the company's big wigs and it all worked, so that was good. Heard people were excited about it.

- Personal : Last night, I went through some tracks for the radio show. Did more research on the libraries and integrations for my next side project. Ended the night watching "Bullet Train". That movie is wild! haha

![Large orange mounds leading up to a large mountain covered in clouds in Haleakala Nat'l Park, HI, USA](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4j7myvd5z7ea62esxruo.jpg)

Going to do a repeat of last night and go through tracks for the radio show and work on my side project. I think I may be able to start some coding to see if I can get all the pieces to work together. Then I'll need to figure out a good way to deploy the application as easily as possible.

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube -AMrEUU7DGY %}
KeyholeSoftware.Dev Releases Mobile CFSWater App
Tags: flutter, mobile, keyhole
Published: 2023-01-19 22:09:15


The [KeyholeSoftware.Dev](https://keyholesoftware.dev/) team is proud to announce the release of the mobile CFSWater application. The cross-platform mobile app is now available for free, in both the app store and the google play store for iOS and Android devices.

CFS Water is a mobile application that reports scheduled and current water release and power generations for the following Army Corp of Engineer Tailwaters:

- Bull Shoals, AR
- Tablerock, MO
- Norfolk, AR
- Greers Ferry, AR
- Beaver, AR

_Please note: These reported water levels are subject to change and may not honor estimated schedules._

[Download for iOS](https://apps.apple.com/us/app/cfswater/id1660268618)

[Download for Android](https://play.google.com/store/apps/details?id=com.keyholesoftware.cfs&hl=en_US)

CFSWater is also available as a free text message tool to access current conditions for tailwaters and streams using Corps of Engineers and USGS data. For more information, visit the KHS{Convo} [website](https://keyholesoftware.dev/convo/cfswater/) or check out other Keyhole Creations at [www.keyholesoftware.dev](https://keyholesoftware.dev/).

## Technical Information
The mobile application was developed by a team of Keyhole Software consultants using Flutter. Flutter is an open-source UI development kit that helps to build, test, and deploy cross-platform applications from a single codebase.

Written in Dart, flutter applications are built using widgets. Similar to React components, widgets describe a piece of application logic and provide element structure and separation.

The team used an API for retrieving scheduled and current water generation information and scraped data from a Core of Engineer reservoir Dam site. ​​The data is scraped from those websites through our KHS{Convo} application framework, with endpoints hosted on Heroku.

The KHS{Convo} application framework was built by the Keyhole Dev Team. It is designed as a customizable, Node-based server API, utilizing Twilio for SMS support. As both a conversation programming API and finite state machine algorithm, KHS{Convo} simplifies the conversational experience, making it easy to program mobile, SMS-based engagement with dynamic content.

As far as functionality, the app reports scheduled and current water release and power generations for Army Corp and Engineer tailwaters and streams in the midwest region. These tailwaters include Beaver Lake, Tablerock Lake, Bull Shoals Lake, Norfolk, and Greers Ferry.
Journey Of Thousand Pages
Tags: github, jekyll, product, osdc
Published: 2023-01-19 22:04:17

|OSDC Series|
| --- |
|[Thus The New Journey Begins](https://dev.to/silent_mobius/thus-the-new-journey-begins-18kp)|
|[Journey Of Thousand Pages](https://dev.to/silent_mobius/journey-of-thousand-pages-152k)|
| [Journey Journal](https://dev.to/silent_mobius/journey-journal-3dm1)|


Welcome dear reader. I am your thoughtful scribe Silent-Mobius, also known as Alex M. Schapelle.
It is possible that you have stumble one of my previous letters, dear reader, to which your "like"s and comments are always appreciated.

Today we'll take our first step in regards to create custom private landing page on one of the code management platforms, in our case [GitHub](https://github.com).

While on #OSDC weekly [assignment](https://github.com/OSDC-Code-Maven/osdc-2023-01-public#assignment-2), of creating static web sites, that has really good [tutorial](https://www.youtube.com/watch?v=OltY8JIaP-4) I was able to deploy them with [github actions](https://docs.github.com/en/actions), yet unfortunately it was not clear enough for me, as it took me __countless attempts__ to implement github static pages with Jekyll themes. Many things such as page custom layouts, custom cascading style sheets or logos are **NOT** straight forward with this system, despite fact the [site](https://zero-pytagoras.github.io) was created

## Theoretical
- When setting up github pages, only thing needed is content which you write into `README.md` file.

## Practical
- To configure the page one must set list of files and folders:
    - `__config.yml`: configuration file for theme and logos
    - `__layout`: folder where we keep the structure of the static page, usually named as `default.html`, it could be something else, yet I was not brave enough to check it.
    - `__include`: folder where we can set html pages with special structure to be included in full static page.
        - one must include the page name with `{% include page.html%}` inside `default.html` file to be included.

## Suggestive
@cameronmcnz has really good [video](https://www.youtube.com/watch?v=nDvpk3qXi0k) in regards to structure and github pages.

## Summary
We covered basic task provided at #OSDC, links of good tutorials that can help us with those questions and tasks.
Hope that it has been beneficial to you. Till next time, but until then: Do Try To Have Fun.
Destructuring Assignment and Shorthand Properties/Methods - Javascript
Tags: javascript, webdev, beginners, codenewbie
Published: 2023-01-19 22:02:56

Hey dude, how are you?!

Javascript has a lot of interesting things and I'd like to talk about two specifically!

<b>Destructuring Assignment and Shorthand Properties/Methods</b>, let's talk about it?!
___

## 📌 Destructuring Assignment
The Destructuring Assignment is a powerful syntax to unpack an array, object and create distinct variables with the value, take a look:

### ✵ Destructuring Assignment: Array

```javascript
const myTeams = ['Milwaukee Bucks', 'Golden State Warriors
'];

[myFirstTeam, mySecondTeam] = myTeams;

console.log(myFirstTeam); //Output: 'Milwaukee Bucks'
console.log(mySecondTeam); //Output: 'Golden State Warriors'

```

### ✵ Destructuring Assignment: Object

```javascript
const frontender = { 
  name: 'Renan',
  framework: 'Angular'
};

const { name, framework } = frontender;

console.log(name); //Output: 'Renan'
console.log(framework); //Output: 'Angular'

```
___

## 📌 Shorthand Properties

*Shorthand Properties* released in ES6 makes the construction of the object simpler because when we have it with a property and a value and both have the same value we can omit the "value" and just declare the property, see the example below:

#### ✵ Old mode:
```javascript
function getUserData(name, age) {
  return {
    name: name,
    age: age,
  }
}
```

#### ✵ New mode:
```javascript
function getUserData(name, age) {
  return {
    name,
    age,
  }
}
```

## 📌 Shorthand Method Names

With Shorthand Method Names we can omit the *function* word, for example:

#### ✵ Old mode:
```javascript
function getUserData(name, age) {
  return {
    name: name,
    age: age,
    createId: function () {
      // createId code
    }
  }
}
```
#### ✵ New mode:
```javascript
function getUserData(name, age) {
  return {
    name,
    age,
    createId () {
      // createId code
    }
  }
}
```
___

That's all guys! it gets more and more beautiful that we take to learn and practice! 

I hope you guys like it and enjoy the article!

If you have a question, suggestion or anything else, please leave a comment!

See you later guys!
Trend With Us!
Tags: programming, gamedev, android, beginners
Published: 2023-01-19 21:31:08

Hello my friend,

We are a team of professionals who have a special focus on trending popular Google Play apps.

We help developers to get more than ten thousand downloads of their apps on Google and also leave as many reviews and ratings as possible for their app.

If you have published an app on Google Play and have not received favorable feedback, our team has the ability to make your app trend with the best protocol by real users.✔️
Be the first with us🙏

Contact us for more information.
Telegram ID: @Shabnam_N477
email: shabnam.najafpour2018@gmail.com
Rust(y) Cargo!
Tags: rust, cargo, beginners, tutorial
Published: 2023-01-19 21:24:01

### Installing Rust & Cargo on a Windows 10 PC



The [Rust website](https://www.rust-lang.org/) offers easy ways to install Rust and its build tool and package manager, Cargo, for several different operating systems.

However, if you use a Windows 10 PC, the simplest path is to just click on the Rust site's "Install" link and choose *rustup* as recommended. Depending on whether you are using a 32-bit or 64-bit Windows PC, click on the appropriate link to download the _rustup-init.exe_ file. (*Note:* There is also a Rust download link for those who use a Windows subsystem for Linux.)     

Pay close attention to the "Notes about Rust installation" section of the "Install Rust" page. Rust will try to configure the PATH environment variable during installation. But you may need to reboot your computer, or edit the PATH, or even reinstall Rust if there is a problem.

Once installation is complete, go to a command prompt and enter the following commands in any order:

`rustc --version`

`rustdoc --version`

`cargo --version`

You should get responses similar to these:

`c:\>rustc --version`
`rustc 1.66.1 (90743e729 2023-01-10)`
`c:\>rustdoc --version`
`rustdoc 1.66.1 (90743e729 2023-01-10)`
`c:\>cargo --version`
`cargo 1.66.1 (ad779e08b 2023-01-10)`

Rust is working, so now take some time to look at [The Cargo Book]( https://doc.rust-lang.org/cargo/index.html). According to that publication:

*"Cargo is the Rust package manager. Cargo downloads your Rust package's dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io, the Rust community’s package registry. You can contribute to this book on GitHub."* 

If you happen to have an older version of Rust already installed on your Windows PC, just run the command *rustup update* to get the most-recent release. After Rust is updated, test the installation using the `--version` commands listed above.

Thanks for reading. Feedback welcome. (And yes, this is my first big try at writing something with Markdown, so I do have more to learn).
AWS Cloud Quest: Core Security Concepts Study Note
Tags: aws, cloud
Published: 2023-01-19 21:11:32

This is the DIY challenge of the Core Security Concepts task in AWS Cloud Quest.

### DIY Steps:
1. Open `SupportEngineers` User group
2. Click Attach policies
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6mknzln0jw9ryqn4uds0.png)
3. Attach `AmazonRDSReadOnlyAccess` policy
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/capy4kiulkf6nu9p7frl.png)
Un Dependabot más inteligente y silencioso
Tags: security, vulnerability, github, spanish
Published: 2023-01-19 20:56:55

Dependabot ha ido introduciendo cambios basados en los comentarios de los usuarios para centrarse en los repositorios que les interesan.

Dependabot se ha actualizado: ¡ahora no sólo es más inteligente, sino que también es más silencioso! Consigue el mismo rendimiento fiable con menos distracciones. 

> Dependabot ahora dejará automáticamente de crear solicitudes de extracción en repositorios inactivos.

Si Dependabot pull requests han sido abiertos y rebasadas, pero ninguno de estos pull requests ha sido fusionado, cerrado, o interactuado de otra manera durante 90 días, Dependabot cesará la actividad automatizada de pull request y te lo hará saber.

![dependabot pause](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k9h82496qz1zpnh6xk6a.png)
**¿Cuándo se pausará la actividad de Dependabot?**
Este cambio no afecta a las alertas de Dependabot ni a sus notificaciones posteriores. Tampoco hay cambios en las solicitudes de pull requests Dependabot solicitadas manualmente, que pueden seguir generándose desde la página de detalles de una alerta Dependabot.

**¿Cómo despierto a Dependabot?**
Una vez que usted (no Dependabot) realice cualquiera de las siguientes acciones mientras Dependabot está en pausa, se reactivará solo:

1. Fusionar un Dependabot PR
2. Cerrar un Dependabot PR 
3. Hacer un cambio en el archivo de configuración
4. Activar las actualizaciones de seguridad
5. Utilizar @dependabot comandos en PRs.

Mirando hacia el futuro, continuaremos trabajando para hacer que cada alerta y solicitud de extracción de Dependabot sea más relevante. Por favor, continúa compartiendo sus [comentarios sobre Dependabot](https://github.com/community/community/discussions/categories/code-security), ¡estamos escuchando!.
JavaScript para iniciantes: Aprendendo sobre expressões e operadores.
Tags: beginners, javascript, programming
Published: 2023-01-19 20:51:05

No decorrer de um código, é necessário o uso de lógicas e inserção de alguns dados. Talvez esteja criando uma aplicação que em alguma parte precise fazer uma comparação entre dois indivíduos, somar algum valor ou o sistema ser inteligente ao ponto de reconhecer por exemplo a adição de caractéres especiais em uma caixa de texto onde só se deveria ter nomes. Com base nisso, vamos analisar um pouco sobre o funcionamento das `expressões` e `operadores` em JavaScript, um dos pontos marcantes nessa linguagem.


Os `Operadores` utilizam símbolos especiais que indicam uma operação, como adição, subtração, multiplicação, divisão e outros. Por exemplo, o operador "+" é usado para adicionar dois números, e o operador "==" é usado para verificar se dois valores são iguais. Exemplos claros de operadores são:

- _Operadores de Atribuição_:x *= f(), x += f()	, x /= f()
	

- _Operadores de Comparação_: 3 === var1,"3" == var1

3 == '3'.(Retornaŕ `true` se tiver operantes iguais.
 
- _Operadores aritiméticos_: (restante) 12 % 5 returns 2,

(Operador Unário,tenta converter o operando em um número, caso ainda não o tenha feito.)

- _Operadores Lógicos:_ 
exp1 && exp2 (Retorna exp1 se puder ser convertido em false; caso contrário, retorna exp2. Assim, quando utilizado com valores booleanos, &&retorna truese ambos os operandos forem verdadeiros; caso contrário, retorna false.),

exp|| exp2 (Retorna exp1 se puder ser convertido em verdadeiro; caso contrário, retorna exp2. Assim, quando usado com valores booleanos, || retorna verdadeiro se qualquer um dos operandos for verdadeiro; se ambos forem falsos, retorna falso.)

!exp (Retorna falso se for um único operando que pode ser convertido em verdadeiro; caso contrário, retorna verdadeiro.)





No caso das Expressões , elas são fragmentos de código formam um valor.

Por exemplo, a expressão "6 + 6" é avaliada como 12. Entretanto, se eventualmente **não** fizer parte de uma objeto maior (variável como const z = 6 + 6), seu resultado será imediatamente descartado ( — ) , criando um problema no código por falta. As Expressões podem incluir valores literais, variáveis, operadores e chamadas de funções.


```
const status = age >= 18 ? 'adult' : 'minor';

```

Os Operadores e Expressões podem parecer parecidos a primeira vista, mas os Operadores são uma série de símbolos utilizados para fazer operações de matemática e as Expressões como dito antes, são combinações de valor em uma variável.


Com isso em mente, temos a definição sobre expressões e operadores. Eles permitem que os desenvolvedores manipulem valores e variáveis, realizem operações matemáticas e lógicas e criem aplicativos web interativos e dinâmicos. Conhecer esses conceitos e como eles são usados ​​é essêncial na criação de um código funcional e estável.
Atualizando os projetos base da Alura para React Native
Tags: reactnative, react, alura, android
Published: 2023-01-19 20:36:53

Mais uma atualização para completar a Formação React Native da @Alura . Desta vez precisei realiza a atualização do projeto do curso [React Native: utilizando Web API](https://cursos.alura.com.br/course/react-native-utilizando-web-api). A versão do Expo que estava no meu Android Emulator 

 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pbkd2ggbqm4l5uuctr1h.jpeg)
Calma Android. Tá muito brabo!


Para atualizar um projeto Expo de SDK 44 para SDK 47, siga esses passos:

Atualize o expo-cli instalado globalmente na sua máquina executando o comando `npm install -g expo-cli@latest`

Atualizei o expo no  projeto com o comando `expo upgrade`

Atualizei as dependências do seu projeto para as versões compatíveis com o SDK 47. Isso pode ser feito executando `expo install` seguido dos pacotes necessários ou editando manualmente o arquivo package.json

Verifique se o seu arquivo app.json está configurado com a versão correta do SDK. Deve ser "sdkVersion": "47.0.0"

Rodei o servidor expo com 

```
npx expo start
```

Testei no celular e no Android Studio e, voi lá, tudo funcionando corretamente!

Tenha em mente que essa atualização pode exigir algum trabalho adicional para corrigir possíveis problemas de compatibilidade, então é recomendado fazer backup do seu projeto antes de iniciar a atualização!!!

Leia a documentação!
Props: What you need to know
Tags: webdev, javascript, programming, tutorial
Published: 2023-01-19 20:33:14

Props is a very confusing and important topic in React. If you are confused about how Props work, you aren’t alone, I was in your shoes for a very long time until I was able to grasp some of its concepts. This is one topic I almost never understood, because of how confusing it could become just in a wink. It took me over a year before I was able to finally understand how it works and how to navigate myself around it. The concepts of Props aren’t something you cannot understand, you just have to be patient and attentive enough. And once understood, trust me you will feel on top of the world.

Props is a short form for properties. Props are an important concept in JavaScript, and also in React where it is most widely used. Just like in JavaScript where arguments are passed in a function, Props are used to pass information from one React component to another. The information passed is usually objects, and they are immutable; meaning, they cannot be modified or changed. Props are very important in creating dynamic applications that return some form of data. If not for Props, most of our applications would be static and uninteresting to use.

These are some important concepts to know about Props:

1. Props can be used to pass objects, arrays and functions

2. They are used to pass information from a parent component to its children. It works like rainfall, from the top component to the components below it, not vice versa.

3. The information passed is usually used in the UI of the application.

4. The information passed is read-only, and cannot be modified by any means whatsoever.

5. The information passed is used to make dynamic applications.

Now, let’s see a practical use of Props from one component to another.

This is an empty component named Accounts.js. This will be our PARENT component.

(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5sfxdkwaldy9h362a4uq.PNG)

And this is another empty component named Names.js that our props will be passed into;

(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t5kc0o5e5dj0g9aw3fo4.PNG)

In Accounts.js, Names.js is imported and initialized with the firstname and lastname props.

(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pdv1plckk91cry34bgbu.PNG)

The props in Names.js will be accessed by using the keyword props in the component name, and the data will be displayed like this below:

(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gqblk15my318y48787ro.PNG)

The output:
(https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3m9kokw8aju8qp7id48.PNG)

Hopefully, this article can help in introducing you or adding to your understanding of what Props are and how it works.

If you think this was helpful, you can Follow me and like the article. It will encourage me to write more articles like this.

Have a great day friends.
6 ideas about why learning to code is worth it
Tags: beginners, discuss, motivation, community
Published: 2023-01-19 20:23:27

## Coding as a tool of communication
As a fan of communication and foreign languages I found the reason why coding could be interesting for me as a way of communicating with computers.

## Coding as a way to freedom and saving more time
Coding is a skill that could be done from anywhere, but not only that. The code helps to create tools that are used for repeatable tasks. I think that when we can automate some repeatable tasks we gain time. We can then use it for different events in our lives than working on repeatable tasks.

## Coding has high earning potential
Coding is a skill that belongs to skills of high-income potential right now. It is not the only motivation but I think it is something that could be a pleasant result of it.

## Coding is a way to train the brain
I think that as we train muscles we also need to train our brain and this is a good way to do it 🙂 Not the only one, but one of them. 

## Coding as a way of craftsmanship
I always admired skilful craftsmen who could build things from scratch. While admiring others, I also wanted to know how to build something. I chose to learn how to build software as I see the future in it 🙂

## Coding as a tool for problem solving
This can be very useful also in every day life. Defining the problem and finding the right solution approach could be applied also in a lot of situations that we face in everyday life. Practicing this skill thanks coding is a win.

What is your #motivation and #why you think learning to code is worth it?