teleren/devto huggingface dataset:
Advantages and disadvantages of vulnerability
Published: 2023-05-17 13:45:40

I'm Leilla Carmene NTIRAMPEBA and now is about vulnerability. I think there are many disadvantages of being vulnerable than its advantages.
For, I  understand vulnerability because we have two vulnerable, mean me and my mother, my mom is handicapped and I have chronic anemia which made our life so hard, just imagine we don't have another source of income but we must hire a housemaid to help us just in case we are all sick and what makes us struggle the most is when it comes on the regime, buying drugs which Unhcr is not offering so based on my experience being vulnerable lead to depend on someone else or something else even though there are some benefits of being vulnerable some of them are receiving monthly money for food, and especially in Unhcr the vulnerable has high chance of resettlement.
So I think those are some of the advantages and disadvantages of being vulnerable.
How to show React js tooltip on choice field hover?
Published: 2023-05-17 13:28:05

I have a choice field, I want to show selected text when hover on control as tooltip. because when I select the value from choice field that do not show full text because of text length is big and control width is small. Below is the code
Note - I have PnP as well on the page- 
import { DialogType, Label, Tooltip } from 'office-ui-fabric-react';

`<div className={styles.fourColumn}>
  <select className={styles.ddlFormControl} 
  id="additionalFundingVal" value={this.state.additionalVal} 
  onChange={this.handleChange} name="additionalFundingVal">
           {this.state.additionalArray.map((type) =>
           <option value={type}>{type}
           </option>)}
         </select>
</div>`
Composition Api Vs Options Api
Tags: vue, beginners, programming, webdev
Published: 2023-05-17 13:27:25

The **Composition API** in Vue 3 is a new way of organizing and reusing logic in Vue components. It provides a more flexible and modular approach compared to the Options API used in Vue 2.

Here are the main differences between the Composition API and the Options API, along with their pros and cons:

## Composition API:
**- Pros:**
  1. Modularity: The Composition API allows you to encapsulate and reuse logic in individual functions, making it easier to understand, test, and maintain your code.
  2. Better code organization: The Composition API promotes a more structured and declarative coding style by grouping related code together.
  3. Improved TypeScript support: The Composition API has better TypeScript integration with features like type inference, composition-specific types, and better autocompletion.
  4. Composition functions: You can create custom composition functions that encapsulate reusable logic, promoting code reuse and reducing duplication.

**- Cons:**
  1. Learning curve: As the Composition API introduces a new way of thinking and structuring code, there is a learning curve involved, especially for developers already familiar with the Options API.
  2. Potential complexity: In complex scenarios, the Composition API can lead to more verbose code if not structured properly. It requires careful design to avoid unnecessary nesting and keep code maintainable.

## Options API:
**- Pros:**
  1. Familiarity: The Options API has been around since Vue 2, so developers who have experience with Vue 2 will find it more familiar and comfortable to use.
  2. Flatter structure: The Options API promotes a flatter structure, making it easier to locate and modify component options in smaller scale projects.

**- Cons:**
  1. Code organization: In large-scale applications, the Options API can lead to more scattered and less modular code, making it harder to understand and maintain.
  2. Limited TypeScript support: The Options API in Vue 2 had limited TypeScript support compared to the Composition API in Vue 3, which provides more powerful TypeScript features.

Overall, the Composition API offers more flexibility, modularity, and improved TypeScript support, making it a preferred choice for larger and more complex projects. However, for smaller projects or developers who prefer a simpler approach, the Options API can still be a viable option.

Read about migrating from option Api to composition Api [here](https://levelup.gitconnected.com/vuejs-3-migrating-from-options-to-composition-api-e8a765e57b8d)

 [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/wadizaatour)
Array-Driver
Tags: npm, module, javascript, array
Published: 2023-05-17 13:25:23

🎉 Array Driver is here! 🚀

Hello connections! I'm thrilled to introduce you to an incredibly useful npm package that will revolutionize your development process and save you precious time. 🕒

Have you ever found yourself wishing for built-in array methods to effortlessly delete or update values, especially when working with arrays of objects in a NoSQL database like MongoDB? 🔄 We've all been there! Dealing with arrays and managing updates can be challenging, especially with additional application logic beyond database queries. But fear not, because Array Driver is here to save the day! 💪

Array Driver provides a comprehensive set of utility functions designed to streamline array operations, allowing you to effortlessly modify, delete, select, validate, and perform various other tasks. It's a true game-changer! ⚙️

Whether you're a backend developer working with complex data structures or a frontend wizard creating stunning UI listings, Array Driver will become your go-to tool for all things array-related. 🖥️

But here's the exciting part: I created Array Driver! 🙌 It was a thrilling journey full of opportunities to learn and grow. And let me tell you, documenting every feature was no easy task! 😅

So, don't wait another moment! Explore the powerful capabilities of Array Driver and take your array manipulation skills to the next level. Check out the documentation for more details and start supercharging your development today! 💡

https://github.com/JunaidOfficialNow/array-driver#readme

Feel free to reach out with any questions or feedback. Let's unlock the true potential of arrays together! 🚀
5 dicas de segurança cibernética para quem quer ficar protegidos no mundo digital
Tags: braziliandevs, security
Published: 2023-05-17 13:20:11

Você já parou para pensar na quantidade de informações pessoais que você armazena em seus dispositivos eletrônicos? Senhas, fotos, documentos importantes - tudo está lá, acessível com apenas alguns toques na tela. Mas você já considerou como proteger essas informações contra ameaças cibernéticas? A segurança cibernética é algo que todos precisam levar a sério

Aqui estão alguns tópicos importantes para ajudá-lo a proteger suas informações online:

# Senhas fortes e exclusivas

- Escolha senhas fortes e exclusivas para cada uma de suas contas
- Use uma combinação de letras maiúsculas e minúsculas, números e símbolos
- Evite palavras óbvias ou informações pessoais
- Considere o uso de um gerenciador de senhas confiável para armazenar e gerar senhas seguras

# Autenticação em dois fatores

- Adicione uma camada extra de segurança à sua conta, exigindo uma segunda forma de autenticação além da senha
- Considere o uso de um código enviado por SMS ou um token gerado por um aplicativo
- Certifique-se de ativar essa opção em todas as contas que oferecem suporte a ela

# Configurações de privacidade

- Esteja sempre ciente das informações que você compartilha e com quem você compartilha
- Evite publicar informações pessoais sensíveis em redes sociais ou sites públicos
- Verifique sempre as configurações de privacidade em todas as suas contas para garantir que apenas as pessoas que você deseja possam ver suas informações pessoais

# Ameaças cibernéticas

- Fique atento a possíveis ameaças cibernéticas, como phishing e malware
- Nunca clique em links suspeitos em e-mails ou mensagens de texto
- Certifique-se de ter um software antivírus atualizado e ativado em seus dispositivos eletrônicos para protegê-los contra malware e outros ataques cibernéticos

Em resumo, a segurança cibernética é uma responsabilidade de todos nós. Certifique-se de escolher senhas fortes e exclusivas, ativar a autenticação em dois fatores sempre que possível e estar ciente das informações pessoais que você compartilha online. Com essas práticas simples, você pode proteger suas informações pessoais e manter-se seguro no mundo digital.
Decoding Run Levels in Linux
Tags: linux, beginners
Published: 2023-05-17 13:19:54

Introduction:
In the realm of Linux, run levels serve as vital tools for managing the operating system's behavior during startup and daily operations. They dictate which services and processes are active at different stages of the boot process. This beginner's guide aims to demystify run levels in Linux, unraveling their significance and practical usage.

What are Run Levels?
Run levels in Linux represent distinct operating states of the system. Each run level encompasses a specific configuration of services and processes that should be active at a given time. By controlling the run level, you can manage how your system behaves during startup and regular usage.

Understanding Common Run Levels:
In Linux, run levels are typically denoted by numbers ranging from 0 to 6, each indicating a specific state. Here's an overview of the commonly used run levels:

Run Level 0 (Halt): This run level completely shuts down the system, powering off the machine.
Run Level 1 (Single User): In this minimal state, only one user has access, providing a basic command-line interface for essential system maintenance tasks.
Run Level 2 (Multi-User without Networking): Similar to run level 3 but without network services enabled.
Run Level 3 (Multi-User with Networking): This run level allows multi-user mode with full network capabilities, facilitating simultaneous login for multiple users.
Run Level 5 (Graphical User Interface): Activating this run level brings forth a visually appealing graphical desktop environment, offering an interactive interface for users to engage with the system.
Run Level 6 (Reboot): This run level restarts the system, shutting down all processes and initiating a system reboot.
Changing Run Levels:
To switch between run levels on a Linux system, you can leverage commands like init or systemctl depending on your Linux distribution. For instance, to transition to run level 3 (multi-user with networking), employ the command sudo init 3 or sudo systemctl isolate multi-user.target.

Configuration Files:
Each run level's behavior is influenced by configuration files housed in specific directories. On older Linux systems, run level configurations are defined in the /etc/inittab file. On modern Linux distributions employing systemd, run levels are managed via systemd targets and unit files located in /etc/systemd/system/.

Customizing Run Levels:
System administrators possess the liberty to customize run levels to suit specific requirements. By modifying the run level configuration files, you can enable/disable specific services or even define new run levels featuring custom configurations.

Run Levels vs. systemd Targets:
Recent Linux distributions have transitioned to systemd as the default initialization system. systemd replaces traditional run levels with the concept of targets, which provide more fine-grained control over the system's behavior. However, understanding run levels remains crucial for service management and troubleshooting system issues.
The Navigator Clipboard API in JavaScript
Tags: javascript, webdev, programming
Published: 2023-05-17 12:59:06

The [navigator.clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard) is a new API in modern browsers that provides an easy way to interact with the clipboard, allowing users to copy and paste formatted or plain text content. In this article, we'll explain how you can use the navigator.clipboard API in JavaScript to interact with the clipboard.

First, let's understand what the navigator.clipboard API offers. The API provides two methods: `readText()` and `writeText()`. 
The `readText()` method allows you to read the content of the clipboard as text, while the `writeText()` method allows you to write text to the clipboard. 

Both methods return a Promise that resolves when the operation is completed. 

Here's an example that shows how to read the content of the clipboard:

```javascript
const readTextFromClipboard = () => {
  navigator.clipboard.readText()
    .then(text => {
      console.log('Clipboard content: ', text);
    })
    .catch(err => {
      console.error('Failed to read clipboard contents: ', err);
    });
};

```
As you can see, we call the navigator.clipboard.readText() method and then wait for the Promise to resolve. Then, we log the content of the clipboard to the console. 
Now let's look at how to write text to the clipboard:

```javascript
const writeTextInClipboard = () => {
  navigator.clipboard.writeText('Hello, world!')
    .then(() => {
      console.log('Text copied to clipboard');
    })
    .catch(err => {
      console.error('Failed to copy text: ', err);
    });
};
``` 

This code calls the `navigator.clipboard.writeText()` method and passes it the text we want to copy to the clipboard. 
Just like with the `readText()` method, we wait for the Promise to resolve and then log a confirmation message to the console. 

As they both return a Promise, it means that you can also use `async/await` with it, so you can rewrite the above function like this:

```javascript
const writeTextInClipboardAsync = async () => {
  try {
    await navigator.clipboard.writeText('Hello, world!');
    console.log('Text copied to clipboard');	
  } catch (error) {
    console.error('Failed to copy text: ', error);
  }
};
```

It's important to note that the **navigator.clipboard API** is relatively new, and legacy browsers like IE don't support this API, but if you don't need to support those browser, then you are ready to go and use it.
You can check the support table on [Can I Use](https://caniuse.com/mdn-api_navigator_clipboard).

You can use the following code to check if the clipboard API is supported:

```javascript
if ('clipboard' in navigator) { 
  console.log('Clipboard API is supported!'); 
} else {
  console.log('Clipboard API is not supported!');
}
```

In conclusion, the **navigator.clipboard API** is a useful addition to modern web browsers, providing an easy way to copy and paste content. By using the `readText()` and `writeText()` methods, you can interact with the clipboard and enhance the functionality of your web applications.
React top latest feature
Tags: react, javascript, webdev, devops
Published: 2023-05-17 12:58:13

1. React Hooks: Hooks were introduced in React 16.8 as a way to use state and other React features without writing a class. They allow you to reuse stateful logic between components, enabling a more functional approach to building React components.

2. Context API: React's Context API allows you to share data across a component tree without passing props manually at every level. It provides a way to manage global state or share data that needs to be accessible by multiple components.

3. React.memo(): This is a higher-order component that memoizes the result of a component rendering. It allows you to optimize the performance of functional components by avoiding unnecessary re-renders when the component's props haven't changed.

4. React.lazy() and Suspense: React.lazy() is a built-in function that allows you to lazily load components, which means they are loaded only when they are actually needed. Suspense is a component that enables you to handle loading states while waiting for the lazy-loaded components to load.

5. Concurrent Mode: Concurrent Mode is an upcoming feature in React that aims to improve the responsiveness and performance of React applications. It allows rendering and updating components asynchronously, enabling smoother user experiences and better handling of complex UI interactions.
About PlugBay
Published: 2023-05-17 09:32:50

Welcome to PlugBay, the leading global advertising and empowerment platform that revolutionizes the way businesses connect, hire, and advertise without the need for internet connectivity, smartphones, or call/SMS credits. Our innovative yearly membership subscriptions empower three key actors, enabling them to access our real-time services seamlessly.

At PlugBay, we understand the significance of the informal sector and its vital role in driving economic growth. As a part of the Emplug Ecosystem, PlugBay is dedicated to serving the needs of the informal sector by providing them with opportunities to thrive and succeed. Our platform aligns with the Emplug Vision, which aims to build a working nation by implementing impactful programs that visibly reduce unemployment and underemployment.

## Upgrade:

We empower businesses by offering them a platform that transcends traditional advertising methods. With PlugBay, businesses can reach their target audience directly, even without an internet connection. By eliminating the reliance on smartphones and call/SMS credits, we ensure that businesses can connect with potential customers effortlessly and cost-effectively.

For individuals seeking employment opportunities, PlugBay offers a game-changing solution. Through our platform, job seekers can access real-time job listings and connect with hiring businesses, all without the need for internet access or a smartphone. We believe that everyone deserves equal access to employment opportunities, and PlugBay makes this a reality by bridging the digital divide.

Furthermore, PlugBay's commitment to empowering the informal sector goes beyond connecting businesses and job seekers. We provide comprehensive support and resources to help informal workers enhance their skills, improve their livelihoods, and achieve long-term success. By leveraging our platform, individuals in the informal sector can gain access to training programs, mentorship opportunities, and valuable resources that empower them to take charge of their professional growth.

At PlugBay, our mission is to create a world where technology and opportunities are accessible to all, regardless of their digital connectivity or socioeconomic status. We believe that by enabling businesses, connecting job seekers, and empowering the informal sector, we can drive positive change and contribute to building a working nation.

Join PlugBay today and become a part of our global community that values inclusivity, innovation, and empowerment. Together, let's reshape the future of advertising and create a more equitable society for all.
Soft skill tips for a Technical Interview
Tags: reactnative, interview, programming
Published: 2023-05-17 12:44:25

Hola hola,

As a Corporate Software Trainer, I’ve conducted hundreds of technical interviews. 

Some of these interviews were coding exercises and others were solely focused on soft skills. 

At THT, I’ve interviewed and onboarded dozens of contractors. 

Here are my list of tips if you’ve got a technical interview coming up:

## Be yourself and trust yourself
Your background is unique and you should use that to your advantage. People (interviewers) judge based on your confidence. This is the time where you can really sell yourself as someone who can exist in meetings and collaboration sessions. 

## Relax
You’ve been working hard. Let your hard work subconsciously carry you through the interview. The more you approach the interview as a conversation the better. 

## Give detailed answers
When you’re asked a question, run with the answer. Talk through your different thoughts and ask questions so that your answer remains relevant. What we don’t want is for you to spend 45s answering the wrong question. That’s 45s of the interviewer wishing you gave them a second to interject. 

Spend too little time answering a question and you’ll leave the interviewer wanting more - they’ll treat this as a sign of you not having the experience or great soft skills. 

## Extend the small talk
You may hate small talk but it’s the only opportunity during a technical interview where you can ask questions about the interviewers life. People love talking about themselves and their experience so take this time to learn about the individual in front of you. Aim to hype them up as much as possible. 

## Summary
Technical interviews can be intimidating and stressful. But, they can also be fun and insightful. 

Relax the shoulders, hold your chin up high, and keep pushing forward. 

If they don’t like you as a candidate, FTBs. 

- Matt
WP CLI Commands
Published: 2023-05-17 12:40:50

---
title: WP CLI Commands
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-17 12:34 +0000
---

This is a list of the WP CLI commands. As I test it out, I am updating the lists here.

## WP Core <command>

The [`wp core`](https://developer.wordpress.org/cli/commands/core/) command helps to download, install, update, and manage WordPress installation.

## Delete the core updater lock option

wp option delete core_updater.lock

## Update WordPress to Specific version forcefully

wp core update --version=<version-number> --force

For example : `wp core update --version=6.1.1 --force`, this will update to the WP 6.1.1

## Display the WordPress version

wp core version

## Checks for WordPress updates via Version Check API.

wp core check-update

## Update the WordPress database

wp core update-db

## wp theme <command>

The [`wp theme`](https://developer.wordpress.org/cli/commands/theme/) helps in managing themes, including installs, activations, and updates.

## Update multiple default themes from wordpress.org

wp theme update twentynineteen twentytwenty twentytwentyone twentytwentytwo twentytwentythree

## Delete older default themes

wp theme delete twentysixteen twentyseventeen

## Update all themes

wp theme update --all

## Install the new default theme

wp theme install twentytwentyone

## wp theme search

The [`wp theme search`](https://developer.wordpress.org/cli/commands/theme/search/) searches the WordPress.org theme directory.

### Example

`wp theme search photo --per-page=6`

## wp theme get

The [`wp theme get`](https://developer.wordpress.org/cli/commands/theme/get/) Gets details about a theme.

### Example

`wp theme get twentytwentythree --fields=name,title,version`

## Reference:
[WP CLI Commands](https://github.com/kipmyk/WP-CLI-Commands)
The new frontier of coding accessibility
Published: 2023-05-17 07:23:09

As someone who is new to coding, so new I have not completed my boot camp at the time of writing this, I have high hopes for the present and near future of the coding industry. Though I'm hesitant to say the future looks spotless.

When I say accessibility, I'm referring to how plentiful the educational tools and courses are for those without degrees in computer science, or the requisites to attain said degrees. With the new found saturation of both coding positions, and the new found saturation of coding education comes a lot of good. Plenty people have access to the tools needed for a fruitful and fulfilling career, depending on your predilections. However, this can also lead to a downfall, or crash, in the market, the coding jobs of today could require less specialized skill, the courses that claim to offer said skill could become too plentiful and infested with scam courses, inadequate lessons or inadequate standing in the industry, leading to many people wasting their money to do something which was supposed to give them a fulfilling career.

At this point, what I described above has not happened yet, but there have been many crashes over the years, and this may be just another bubble that will either pop violently or deflate slowly. Only the future can conform.