teleren/devto huggingface dataset:
C++ if, if...else and Nested if...else
Published: 2023-03-21 04:54:46

In this tutorial, we will learn about the if...else statement to create decision making programs with the help of examples.

In computer programming, we use the `if...else` statement to run one block of code under certain conditions and another block of code under different conditions.

For example, assigning grades `(A, B, C)`
 based on marks obtained by a student.

- if the percentage is above 90, assign grade A

- if the percentage is above 75, assign grade B

- if the percentage is above 65, assign grade C

There are three forms of `if...else` statements in **C++.**

1. `if` statement

2. `if...else` statement

3.` if...else if...else` statement

**C++ if Statement**
The syntax of the `if `statement is:


```
if (condition) {
  // body of if statement
}
```
The `if` statement evaluates the `condition` inside the parentheses `( )`.

- If the `condition` evaluates to `true`, the code inside the body of `if` is executed.

- If the `condition` evaluates to `false`, the code inside the body of `if` is skipped.

**Note: The code inside { } is the body of the if statement.
**
Accelerate Your App Delivery Cycle and Reduce Time-to-Market with Custom Cloud Applications
Tags: customcloudapplicatin
Published: 2023-03-21 04:52:15

Are you looking to improve your app delivery cycle and reduce time-to-market? Suma Soft offers custom cloud application development services to help your business build scalable, secure, and reliable applications. With our Cloud App Development Services, you can benefit from:
Cloud-based apps built from the ground up with microservices architecture, integrating with major cloud services such as AWS and Azure
Migrating your existing system to the cloud for unparalleled scalability, resources, and infrastructure flexibility
Contact our experts at Suma Soft to learn more and boost your enterprise benefits. 
Website : https://www.sumasoft.com/digital/cloud-app-development-services/
Boost Your Business Growth with Suma Soft's 24x7 GCP Services: Optimize, Modernize, and Succeed in the Cloud
Tags: googlecloud
Published: 2023-03-21 04:50:25

Overcome the challenges of cloud complexity and skills gaps with Suma Soft's Google Cloud Platform (GCP) Services. With a team of over 400+ IT professionals who leverage ITIL best practices, we provide comprehensive GCP services that can help you migrate to the cloud, build new applications, or optimize your current architecture using cloud tools. Our expertise and results-oriented approach can help you take advantage of Google's global infrastructure, increase security, reduce costs, and increase flexibility. Contact us today for more information and to get started!
USPs:
Comprehensive GCP services from a team of over 400+ IT professionals leveraging ITIL best practices.
Expertise and results-oriented approach that can help you take advantage of Google's global infrastructure, increase security, reduce costs, and increase flexibility.

Contact Suma Soft today to learn how their GCP services can benefit your business.
Website : https://www.sumasoft.com/digital/google-cloud-platform-services/
Getting Started with Sentiment Analysis
Published: 2023-03-21 04:34:20

**Sentiment analysis** is a process of identifying and extracting opinions, attitudes, and emotions expressed in a text. It has become an essential tool in the field of natural language processing (NLP) and is used in various applications such as social media analysis, customer feedback analysis, and market research.

Python is a popular programming language used for data analysis and machine learning. It has a vast collection of libraries and tools that make sentiment analysis accessible to beginners. In this article, we will discuss how to get started with sentiment analysis in Python.

## Understanding Sentiment Analysis
Before jumping into the code, it is essential to understand what sentiment analysis is and how it works. Sentiment analysis involves analyzing a text document and determining the sentiment expressed in it. The sentiment can be positive, negative, or neutral.

To perform sentiment analysis, we need to first **preprocess** the text data by removing stop words, stemming, and lemmatization. After preprocessing, we can use different algorithms to classify the text into different sentiment categories.

## Installing Required Libraries
Python has many libraries that can help us perform sentiment analysis. Some of the most popular libraries are NLTK, TextBlob, spaCy, and VADER. You can install these libraries using pip, which is the default package manager for Python. For example, to install NLTK, run the following command in your terminal:

`pip install nltk`

## Loading and Preprocessing the Data
After installing the required libraries, we can load the data into Python and preprocess it. Preprocessing involves removing stop words, stemming, and lemmatization. Stop words are common words that do not carry any meaning, such as "the," "is," "a," etc. Stemming involves reducing words to their base form, such as "running" to "run." Lemmatization involves reducing words to their dictionary form, such as "went" to "go."

## Performing Sentiment Analysis
Once the data is preprocessed, we can perform sentiment analysis on it. We can use various algorithms to classify the text into different sentiment categories. Some of the most popular algorithms are Naive Bayes, SVM, and Logistic Regression.

## Evaluating the Results
After performing sentiment analysis, we need to evaluate the results to determine the accuracy of our model. We can use various metrics such as precision, recall, and F1 score to evaluate our model's performance.

## Conclusion
Sentiment analysis is a powerful tool that can help us understand the sentiment expressed in a text document. Python has many libraries and tools that make sentiment analysis accessible to beginners. By following the above steps, you can get started with sentiment analysis in Python and start analyzing text data.

Thank you for reading... have a wonderful week.
React e POO: Um guia para iniciantes
Tags: webdev, beginners, react, javascript
Published: 2023-03-21 04:27:06

O React é uma das bibliotecas JavaScript mais populares e amplamente usadas no mundo do desenvolvimento web. Ele se tornou popular por sua eficiência e flexibilidade na criação de aplicativos web de página única (SPAs). Embora o React tenha sido originalmente projetado como uma biblioteca para construir interfaces de usuário, ele também pode ser usado para criar aplicativos baseados em objetos, utilizando o paradigma de programação orientada a objetos (POO).

Na orientação a objetos, os dados e a lógica do programa são agrupados em objetos que interagem entre si. Cada objeto é uma instância de uma classe, que é um modelo para objetos com propriedades e métodos específicos. A POO permite que os desenvolvedores criem aplicativos mais organizados e escaláveis.

No React, é possível usar a POO para criar componentes personalizados. Os componentes são o bloco de construção básico do React e são usados para dividir a interface do usuário em partes menores e reutilizáveis. Cada componente pode ser pensado como um objeto que contém sua própria lógica e dados, que podem ser reutilizados em diferentes partes do aplicativo.

Para começar a usar a POO no React, é importante entender como criar componentes personalizados. Para criar um componente personalizado no React, é necessário criar uma classe que herda da classe React.Component. A classe deve ter um método render() que retorna o HTML do componente.

Aqui está um exemplo de código de um componente simples que exibe uma mensagem na tela:

```
import React, { Component } from 'react';

class MeuComponente extends Component {
  render() {
    return (
      <div>
        <h1>Bem-vindo ao meu componente</h1>
        <p>Este é um componente React personalizado.</p>
      </div>
    );
  }
}
```

Neste exemplo, a classe MeuComponente é criada e herda de React.Component. O método render() retorna o HTML que compõe o componente.

Para usar este componente em um aplicativo React, basta importá-lo e adicioná-lo ao código HTML:

```
import React from 'react';
import MeuComponente from './MeuComponente';

function App() {
  return (
    <div>
      <MeuComponente />
    </div>
  );
}

export default App;
```
Neste exemplo, o componente MeuComponente é importado e adicionado ao componente App. Quando o aplicativo é executado, o componente MeuComponente é renderizado na tela.

Embora este exemplo seja simples, é possível criar componentes personalizados mais complexos, com propriedades e métodos específicos, para lidar com lógica de negócios mais avançada. Ao usar a POO no React, é possível criar aplicativos mais organizados e escaláveis, com código reutilizável e manutenção mais fácil.

Em conclusão, o React é uma biblioteca poderosa que permite criar aplicativos baseados em objetos usando a POO. Começar na orientação a objetos no React é relativamente simples, basta criar componentes personalizados usando classes que herdam de React.Component. Com a POO, é possível criar aplicativos mais organizados e escaláveis, com código reutilizável e manutenção mais fácil.
The power of your own game community!
Tags: gamedev, community, ugc
Published: 2023-03-21 04:18:01

Building and managing a strong game community is crucial for the long-term success of a game, as it benefits game developers, publishers, and players. Here are some key reasons:

1. Retention and Engagement: A strong game community fosters engagement and retention among players, leading to increased playtime and longevity of the game. It creates a sense of belonging among players and encourages them to return to the game repeatedly.

2. Feedback and Improvement: A game community provides valuable feedback to developers and publishers, allowing them to improve the game based on the players' preferences and suggestions. It can also help identify and fix bugs and issues that may not have been noticed during testing.

3. Marketing and Promotion: A dedicated community can help with marketing and promotion efforts by creating buzz and word-of-mouth recommendations. Positive reviews and recommendations from the community can attract new players and help to expand the game's audience.

4. Monetization: A loyal community is more likely to spend money on the game, whether it be through purchasing in-game items, DLC, or other content. This can help to increase revenue and profitability for the game developers and publishers.

In summary, building and managing a strong game community can benefit all parties involved by increasing player engagement, providing valuable feedback, promoting the game, and generating revenue.

Check out https://Agora.io and its latest [Chat product](https://www.agora.io/en/products/chat/) that could help you build your own private white labeled Discord, and have your developers, players stay in the loop with each other. 

-- Extra material
- https://www.youtube.com/watch?v=sntv9QTZ9Us
- https://www.youtube.com/watch?v=jP75pclbDhU
O que é Apollo e quais suas funções dentro da programação?
Published: 2023-03-21 04:13:12

Apollo é um conjunto de ferramentas para construir e gerenciar aplicativos GraphQL. O GraphQL é uma linguagem de consulta de dados e uma estrutura para servidores criada pelo Facebook em 2012 e que, desde então, tem ganhado popularidade entre desenvolvedores de software.

O Apollo fornece bibliotecas para clientes e servidores, além de ferramentas adicionais, como o Apollo Studio, que ajudam a gerenciar e depurar aplicativos GraphQL. O objetivo principal do Apollo é facilitar a construção de aplicativos modernos que lidam com grandes quantidades de dados.

Ao utilizar o Apollo, os desenvolvedores podem definir esquemas de dados, definir consultas e receber atualizações em tempo real quando os dados mudam. Isso torna a construção de aplicativos que requerem muitas interações de dados, como aplicativos de comércio eletrônico ou aplicativos de mídia social, muito mais fácil e eficiente.

Um dos principais recursos do Apollo é o Apollo Client, que é uma biblioteca para o lado do cliente que torna a integração do GraphQL em aplicativos de frontend mais fácil. Ele gerencia o cache de dados, executa consultas e mutações de dados e fornece recursos para trabalhar com dados em tempo real.

Outro recurso importante do Apollo é o Apollo Server, que é uma biblioteca para o lado do servidor que torna a criação de uma API GraphQL fácil. Ele fornece recursos para definir esquemas de dados, resolver consultas e mutações de dados, e integrar dados de diferentes fontes.

O Apollo também oferece suporte para outras tecnologias populares, como React, Angular e Vue. Ele permite que os desenvolvedores construam aplicativos de forma modular, usando apenas os recursos necessários para o projeto em questão. Isso torna o desenvolvimento mais rápido e eficiente, além de permitir que os desenvolvedores experimentem e alterem tecnologias de forma mais fácil.

Em resumo, o Apollo é uma ferramenta poderosa para construir aplicativos modernos que requerem interações de dados complexas. Ele fornece bibliotecas para clientes e servidores, além de ferramentas adicionais, como o Apollo Studio, para gerenciar e depurar aplicativos GraphQL. Se você está construindo um aplicativo que lida com muitos dados, o Apollo pode ser uma ótima escolha para acelerar o desenvolvimento e tornar a experiência do usuário mais fluida e agradável.
Awesome Rust Projects, EP 1 (Tauri)
Tags: rust, webdev, react, javascript
Published: 2023-03-21 04:11:56

[**1. Tauri — Rust Electron Alternative**](https://tauri.app/)

> Build an optimized, secure, and frontend-independent 
> application for multi-platform deployment.

**Features:**

- **Brownfield**

> Compatibility with any front-end framework means you don't 
have to change your stack.

- **FLOSS**

> Relicensing and redistribution is possible thanks to MIT or MIT/Apache 2.0 licensing where applicable.

- **Security**

> Front-of-mind for the Tauri Team driving our highest priorities and biggest innovations.

- **Bundle Size**

> By using the OS's native web renderer, the size of a Tauri app can be less than 600KB.

- **Cross Platform**

> Bundle binaries for all major desktop platforms (mobile coming soon).


![Features](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3nymtt1sspchik6eorej.png)
How to setup your Github SSH-Keys in 3 easy steps
Tags: github, tutorial, webdev, programming
Published: 2023-03-21 04:11:16

Are you tired of having to repeatedly input your username and password everytime when you try to access github?or maybe you just want a more secure and convenient way to be authenticated when accessing your github? If your answer is yes then Secure Shell Keys(SSH-Keys) are a solution to this problem. In this blog I will be guiding you through the process of setting up SSH Keys on github 

**Step 1 : Check for existing SSH Keys**
Before you generate your SSH key, you should start by checking if you don't already have an existing key; You can do this by running the following command on your terminal:
```bash
ls -al ~/.ssh
```
If you have any existing SSH keys this command will list them,if you don't have any existing SSH keys don't worry, just follow along.

**Step 2 : Generate a New SSH Key**
If you don't have an existing SSH key, you can easily generate one by running the following command:

```bash
ssh-keygen -t rsa -b 4096 -C "your email"
```
After running this command you will be prompted to enter the file name and the passphrase for the new SSH key, you can just click enter to use the default filename(id_rsa) and the passphrase is optional if you want some extra security.

**Step 3 : Add the SSH Key to your github account**
After your SSH key has been successfully generated, you will now have to add it to your github account. Login to your github account and go to your account settings, then click on the "SSH and GPG Keys" tab; see screenshot below.

![setting up Github SSH keys](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/byofq6wgvkwv8uhejeej.jpg)
After that now click the "Add new SSH key" button and give your new SSH key a title, the title can be anything you like. Next copy the key from the "id_rsa.pub" file located in your "~/.ssh" folder and paste it into the "Key" field. The ssh folder was created when you generated your new SSH key and this is where your key is stored. Please note that the 'ssh' folder might be hidden by default,if this is the case for you just simply click on the "show hidden files" checkbox under the views tab on your taskbar:
![setting up Github SSH keys](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vu5zvgku8kavjyhx6xw0.png)
Now finally, if you successfully copied your SSH Key to your github, click the "Add SSH key" button 

**Conclusion**
SSH keys provide a secure and convenient way to authenticate your access when using github. By following the steps from this article, you will be able to easily setup your SSH keys.
App Wizard - Quick, easy & affordable mobile apps
Published: 2023-03-21 04:01:18

App Wizard makes creating a mobile app quick, easy & fun! 

Our online development framework is the world's best no-code platform and offers full-code, HTML, CSS & app.xml access. Our intuitive UI provides unparalleled content customisability—no up-front costs.

Build your app entirely for free. Subscriptions commence once you're ready to publish on the App Store. Our low-cost plans provide unbeatable value for money. 

We also provide custom app development services. Our award-winning team of specialists can deliver fully-customised, feature-packed, professional mobile apps for all types of businesses & associations.

[https://appwizard.com.au](https://appwizard.com.au)
Today I completed 2061 Solutions on Leetcode🥳🥳🥳
Tags: beginners, challenge, chiki1601, programming
Published: 2023-03-21 03:54:38



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



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jutr7kr8obgvgfsvv22e.png)
openGauss Replacing Certificates
Tags: opengauss
Published: 2023-03-21 03:06:15

Scenarios
Default security certificates and private keys required for SSL connection are configured in openGauss. You can change them as needed.

Prerequisites
The formal certificates and keys for the server and client have been obtained from the CA.

Precautions
Currently, openGauss supports only the X509v3 certificate in PEM format.

Procedure
Prepare for a certificate and a key.

Conventions for configuration file names on the server:

Certificate name: server.crt
Key name: server.key
Key password and encrypted file: server.key.cipher and server.key.rand
Conventions for configuration file names on the client:

Certificate name: client.crt
Key name: client.key
Key password and encrypted file: client.key.cipher and client.key.rand
Certificate name: cacert.pem
CRL file name: sslcrl-file.crl
Create a compressed package.

Package name: db-cert-replacement.zip

Package format: ZIP

Package file list: server.crt, server.key, server.key.cipher, server.key.rand, client.crt, client.key, client.key.cipher, client.key.rand, cacert.pem If you need to configure the CRL, the list must contain sslcrl-file.crl.

Invoke the certificate replacement interface to replace a certificate.

Upload the prepared package db-cert-replacement.zip to any path of an openGauss user.

For example: /home/xxxx/db-cert-replacement.zip

Run the following command to perform the replacement:

""
gs_om -t cert --cert-file= /home/xxxx/db-cert-replacement.zip
Restart the openGauss.

""
gs_om -t stop 
gs_om -t start
 NOTE:
Certificates can be rolled back to the version before the replacement. You can run the gs_om -t cert –rollback command to remotely invoke the interface or gs_om -t cert –rollback -L to locally invoke the interface. The certificate will be rolled back to the latest version that was successfully replaced.
Chat GPT Created Portfolio Website For Developer
Tags: chatgpt, programming, webdev, beginners
Published: 2023-03-21 03:32:00

I'm thrilled to showcase my impressive portfolio website for my developer skills and projects, which was created with the help of ChatGPT, a powerful language model. I invite you to join me on a journey through the process and witness the final outcome. This video is designed to inspire and inform both seasoned developers and beginners alike. So, let's jump right in!

{%youtube yubrisGRUOQ %}
OpenGauss common log introduction: operation log
Published: 2023-03-21 03:27:09

operation log
The operation log refers to the log generated when the database administrator uses the tool to operate the database and when the tool is called by openGauss. If openGauss fails, you can use these log information to track what operations the user has performed on the database and reproduce the failure scenario.

Log file storage path

By default, it is in the "$GAUSSLOG/bin" directory. If the environment variable $GAUSSLOG does not exist or the variable value is empty, the tool log information will not be recorded in the corresponding tool log file, and the log information will only be printed to the screen.

Among them, $GAUSSLOG is "/var/log/gaussdb/ username " by default.

Note:  If the om script is used to deploy, the log path is "/var/log/gaussdb/ username ".

Log file naming format

The log file naming format is:

tool name-log creation time.log
Tool name-log creation time-current.log
Among them, "tool name-log creation time.log" is the historical log file, and "tool name-log creation time-current.log" is the current log file.

If the log size exceeds 16MB, the current log file will be renamed as a historical log file and a new current log file will be generated at the current time when the tool is invoked next time.

For example, rename "gs_guc-2015-01-16_183728-current.log" to "gs_guc-2015-01-16_183728.log", and then regenerate "gs_guc-2015-01-17_142216-current.log".

maintenance advice

It is recommended to dump expired log files regularly to avoid a large number of logs occupying too much disk space and avoid loss of important logs.
Chat GPT Created Portfolio Website For Developer
Tags: chatgpt, developer, portfolio, website
Published: 2023-03-21 03:26:08

I'm excited to share how ChatGPT, a powerful language model, helped me create an impressive portfolio website for my developer skills and projects. Join me as I walk you through the process and show you the final result. Whether you're a seasoned developer or just starting out, this video will inspire and inform you. Let's dive in!

{%youtube yubrisGRUOQ %}