teleren/devto huggingface dataset:
The Science of Success: Decoding the Motivators Behind Success
Published: 2023-02-16 08:50:47

Despite the fact that the study of success is intricate and multidimensional, there are a number of important elements that have been pinpointed as achievement catalysts.
The most crucial element is motivation.
Goal-achieving is driven by motivation, which can be either intrinsic or external.
Extrinsic motivation derives from outside sources, such as prizes or recognition, but intrinsic motivation comes from within, such as the desire to learn or develop oneself. 
Grit is another important factor.
The capacity to persevere in the face of obstacles and failures is known as grit.
It combines perseverance with enthusiasm, and research has shown that it is a powerful indicator of success.
Mentality is the third component.
It has been demonstrated that higher levels of performance are related to having a growth mindset, or the conviction that talents can be developed through hard work and perseverance.
On the other side, a fixed mindset, which is the conviction that talents are predetermined and unchangeable, might prevent people from achieving their potential. 
gratification in order to realize long-term objectives, is another important element.
It is essential to success because it enables people to concentrate on their objectives and block out distractions.
Emotional intelligence, or the capacity to comprehend and control one's own and other people's emotions, is the sixth component.
People with emotional intelligence are better able to deal with difficult circumstances, forge enduring bonds with others, and make wise choices.
The sixth aspect is networking, or the capacity to create and sustain connections with others.
Through networking, one can find new possibilities, access helpful resources and support, and boost their credibility and visibility. 
In conclusion, the science of success is a complicated and multidimensional subject of research, but there are numerous significant characteristics that have been identified as drivers of achievement.
Motivation, grit, mentality, self-control, emotional intelligence, and networking are a few of these.
Combining these elements with personal effort, devotion, and consistency are also necessary for success.
getting started with c# on linux
Published: 2023-02-16 08:35:02

**step 1**
i am using [ubuntu](ubuntu.com), which is a debian based linux distro. I installed it with:

```sh
wget -nv https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt install snapd
sudo service snapd start
sudo snap install dotnet-sdk --classic
sudo apt-get install mono-complete

```
WARNING: this will only work with debian, please find how to install c# on your linux distro.

**step 2**
next we can create a `main.cs` file. The .cs extension is c# files. here is a hello world program:

```cs
using System;

public class main {
  public static void Main(String[] args){
    Console.WriteLine("Hello, World!");
  }
}
```
this will log "Hello, World!" into the terminal.

**step 3**
compiling on linux is a bit different. In step 1 we install c#. This allows us to compile c# code. to compile we can do: `mcs main.cs` this will give us a main.exe file. Don't worry! This isn't a windows exe file because then we wouldn't be able to execute it. No, this is just a standard machine code file which we can execute by doing: `./main.exe` And done! It will output or hello world program!

**step 4**
enjoy and keep on coding.
Functional Reactive Programming: My Love-Hate Relationship 💔
Tags: functionalreactiveprogramming, frp, softwaredevelopment, codequality
Published: 2023-02-16 08:28:43

---
title: Functional Reactive Programming: My Love-Hate Relationship 💔
published: true 
description: Discover the Magic of Functional Reactive Programming 🔮 and transform the way you approach software development! Learn how our developer went from frustration with Angular + RxJS to falling in love with FRP and its ability to model your application state as a stream of events.
tags: FunctionalReactiveProgramming, FRP, SoftwareDevelopment, CodeQuality
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-15 00:17 +0000
---

As a software developer, I've always been on the lookout for new and exciting technologies to dive into. However, my first introduction to functional reactive programming (FRP) wasn't exactly love at first sight 🙈.

You see, my first exposure to FRP was through Angular + RxJS, and let's just say it was a bit of a mess 🤯. The code was bloated, the documentation was scarce, and I just couldn't seem to wrap my head around the concept.

But then, something interesting happened. I stumbled upon a talk about FRP and things started clicking! 💡 The elegant simplicity of FRP was finally revealed to me, and I was hooked! 🎉

> Here it is: [The Essence and origins of Functional Reactive Programming • Conal Elliot •YOW! 2015](https://youtube.com/watch?v=rfmkzp76M4M&feature=shares)

FRP, at its core, is a programming paradigm that allows you to model your application state as a stream of events in **continuous time**. This means that you can easily track changes in your data and respond to them in real-time. It's like having a superpower 🦸‍♀️ that makes your application more responsive, scalable, and predictable!

And while my love-hate relationship with Angular + RxJS is still ongoing 💔, I've found that FRP has revolutionized the way I approach software development. I've been able to write cleaner, more maintainable code and solve complex problems with ease 💻.

So, if you're feeling frustrated with your current development process, give functional reactive programming a try! 💪 You might just find yourself even more frustration with eventual peace once you catch up with it.

> Checkout [how FRP changed the way I do authentication](https://dev.to/dsfx3d/unleash-the-power-of-frp-for-secure-authentication-in-typescript-582l)
How to Connect Your Google Sheet to ChatGPT
Tags: ai, googlesheet, chatgpt, googleappscript
Published: 2023-02-16 08:20:30

If you're looking to leverage the power of AI to interact with your Google Sheet content, connecting your sheet to ChatGPT is a great way to get started. In this post, we'll walk through the steps required to connect your sheet to ChatGPT and start using its capabilities to answer questions about your data.

![Google sheet connected to ChatGPT](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0f6tiba1t233t784d1f8.png)



## Setting Up Google Apps Script

Before we get started with ChatGPT, you'll need to set up Google Apps Script. If you're not already familiar with Google Apps Script, you can get started with the documentation [here](https://developers.google.com/apps-script).

### Javascript code snippet
The code is available in this [GitHub gist](https://gist.github.com/jsfez/e91c1cae51c5a7d01cc96e0c36439ec1).


```
// Load OpenAI API key from script properties
const openaiApiKey = "YOUR_API_KEY";

// Load Google Sheet data
const sheet =
  SpreadsheetApp.getActiveSpreadsheet().getActiveSheet() ||
  SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
const data = sheet.getDataRange().getValues();

// Fetch response from OpenAI's completion API
function generateResponse(prompt) {
  if (!openaiApiKey) throw new Error("OpenAI API key not found.");
  const openaiUrl = "https://api.openai.com/v1/completions";
  const response = UrlFetchApp.fetch(openaiUrl, {
    method: "post",
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${openaiApiKey}`,
    },
    payload: JSON.stringify({
      prompt,
      model: "text-davinci-003",
      max_tokens: 1024,
      n: 1,
      stop: null,
      temperature: 0.5,
      presence_penalty: 0,
      frequency_penalty: 0,
      best_of: 1,
    }),
  });

  const responseData = JSON.parse(response.getContentText());
  return responseData.choices[0].text.trim();
}

function gpt(prompt) {
  const response = generateResponse(
    `${data.map((row) => row.join("\t")).join("\n")}\n\n${prompt}`
  );
  Logger.log(response);
  return response;
}
```


## Connecting Your Google Sheet to ChatGPT

To connect your Google Sheet to ChatGPT, you'll need to follow these steps:

1. Copy the code provided above and paste it into Google Apps Script.
2. Replace "YOUR_API_KEY" with your ChatGPT API key.
3. Save and execute the code.
4. Allow the necessary Google authorizations.

Once you've completed these steps, you'll be able to use the `=gpt()` formula in your Google Sheet to query ChatGPT about your sheet content. This will allow you to get intelligent responses to your questions based on the data in your sheet.

## Conclusion

Connecting your Google Sheet to ChatGPT is a powerful way to take advantage of AI to interact with your data. With the help of Google Apps Script, it's easy to set up and start using in your sheet. By following the steps outlined above, you'll be able to get started quickly and start benefiting from the power of ChatGPT in no time.
CSS3 Selectors Series - 1
Tags: css, css3, webdev, programming
Published: 2023-02-16 08:02:15

In CSS3 we have a lot of selectors which empowers the devs productivity , helps in optimisation of DOM, and usage of classes. 

One of such selector is:

## Adjacent Selectos ( + ) 

The adjacent selector in CSS is a selector that selects an element that is immediately adjacent (i.e., comes right after) to another element. The adjacent selector is represented by the plus sign (+) and is used to select the first element that immediately follows the specified element. Eg: here all p tags after H1 would get the style implemented but not the p which is coming after H2

```HTML
<div>
 <h1>About us</h1>
 <p>CSS team is proud to present you...</p>
 <h1>Profile</h1>
 <p>CSS team is proud to present you...</p>
 <h1>Team</h1>
 <h2>Subheding...</h2>
 <p>CSS team is proud to present you...</p>
</div>
```

```CSS
div h1 + p {
 color: red;
  margin-top: 10px;
}
```
## Use cases:

1. Whenever there is an text after an image you want the margin between them.

2. Whenever there is a paragraph after a h2 you want a specific style but is there is a h3 between them you want different style.


Happy Learning!!
A Nice Developer Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2023-02-16 08:00:24

---
title: "A Nice Developer Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125969479bf.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What did XHR say to AJAX when it thought it was being a Mean Girl?

___A:___ Stop trying to make fetch happen!
 -->
Redirect filtered output
Tags: bash, beginners
Published: 2023-02-16 07:59:12

Good Day Everyone!

I have a list of ASN numbers in a text file which I want to use as INPUT for the following script shared in github
https://github.com/nitefood/asn/ 


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


I want to redirect the output of every ASN number to a separate file (appending is fine) so my sample script looks as following-


`#!/bin/bash
while IFS= read -r ASN; do
    asn $ASN  >> ASN_info
    sleep 10
done < ASN_LIST
`
So, my while loop just keeps iterating without waiting to finish the redirection to the file and shows the output like below-

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

Please help to modify my silly script to redirect entire output for every ASN number from the input file.Will really appreciate the community's help :)
Azure Multi Subscription Landing Zone - 6 Tips and Solutions for Cloud Architects and DevOps
Tags: azure, terraform, devops, cloud
Published: 2023-02-16 07:45:14

Link to video: https://www.youtube.com/watch?v=FuBEMpJsK4g&t=260s

As cloud architects or/and DevOps, we are familiar with the challenges of using Infrastructure as Code (IaC) to manage our infrastructure. Maintaining updated versions of IaC templates and modules, writing comprehensive documentation, testing the reliability and consistency of IaC code, collaborating effectively with team members, ensuring compliance with security and regulatory requirements, optimizing performance, debugging and troubleshooting efficiently, and integrating with other tools are just a few of the many challenges we face every day.

It's not just about writing the IaC code, but also about ensuring that it is well-documented, tested, and versioned. This requires a lot of effort, especially when working with complex infrastructure. Keeping track of changes and ensuring that everyone on the team is on the same page can be a real headache. And that's not to mention the need to ensure that the infrastructure being provisioned is secure, reliable, and scalable. This requires the use of best practices for infrastructure design and the continuous monitoring of infrastructure for potential security risks or performance issues.

In addition, there is also the challenge of ensuring that infrastructure provisioning is cost-effective. This involves selecting the appropriate cloud provider and services and implementing cost-saving measures such as auto-scaling and resource optimization.

These challenges can be time-consuming and demanding, but they are essential to ensuring the reliability and consistency of our infrastructure. 

Here are 6 best practices that you can put in place to overcome them: 

1. Centralize the design and the Terraform code to have a faithful representation of the infrastructure
2. Improve documentation by writing and maintaining comprehensive documentation for all your infrastructures
3. Work on a collaborative platform for managing and sharing infrastructures, making coordinating changes easier and ensuring everyone is using the latest version.
4. Create standards & best practices that are automatically used at the design level
5. Integrate open-source tools when you design your CI/CD workflows to make sure that cloud infrastructures meet the necessary security and budget requirements.
6. Build self-service Infrastructures to enable other team members to easily provision infrastructure on-demand with a library of templates and modules
👨‍💻 Boost your career as a cloud architect & DevOps with these top 9 Terraform Courses & Workshops
Tags: cloud, terraform, cloudnative
Published: 2023-02-16 07:41:50

As Cloud architects and DevOps, we’re constantly looking for new tools and technologies that can make our lives easier when managing cloud infrastructures. 

As cloud technology evolves, and new cloud services and features are released constantly, one of our main challenges is to keep up with the latest developments and to ensure that we are using the most up-to-date and efficient methods for managing infrastructure resources. 

Moreover, as more organizations move to the cloud and adopt DevOps practices, the demand for professionals with experience in IaC and Terraform is likely to increase. By keeping our skills up-to-date, we can remain competitive in the job market and advance our careers.

Here are 9 free resources that you can use to build up your skills:

🔥   ▬▬▬▬▬▬  Courses/Workshops ▬▬▬▬▬▬   🔥

✅ Learn Terraform in 45 min
Learn how to manage cloud infrastructures with Terraform: https://bit.ly/3I4Qx5z

✅ Learn Terraform variables and how to use them
Learn the types of variables and how they work, how to use them, and how to use secrets: http://bit.ly/3S6MHxl

✅ Learn Terraform Modules and how to use them
Learn about Terraform modules: how to create your own, the Challenges of maintaining modules within a team, and the best practices for utilizing them: http://bit.ly/3YRuOVB

✅ Build Azure landing zone architecture
A step-by-step technical use case on how to design & deploy a hub and spoke landing zone in Azure: http://bit.ly/3Itpx1c

✅ What CI/CD means for the infrastructure
Learn about the latest trends, best practices, and real-world examples of how continuous integration and delivery can help you deliver high-quality, reliable, and secure cloud infrastructure faster and more efficiently: http://bit.ly/3lyP0Nv

🔥  ▬▬▬▬▬▬  How to  ▬▬▬▬▬▬   🔥  

✅ Work with your team on Terraform: http://bit.ly/3XB7Qki

✅ Use 3 ways to perform static analysis on Terraform code: http://bit.ly/3K9xsSi

✅ Use Infracost as a guardrail to manage cloud cost during Terraform development: http://bit.ly/40ZtxNT

✅ 3 Terraform Open Source Tools for CI/CD
Discover how you can use OPA, Terrascan and Tfsec to enforce policy as code and detect any potential vulnerabilities in your Terraform code: http://bit.ly/3Xxt8PV

▬▬▬▬▬▬ Useful Links 🔗  ▬▬▬▬▬▬
►  Documentation: https://docs.brainboard.co/
Array Methods
Tags: beginners, python
Published: 2023-02-16 07:37:51

# Array Methods

## What are Arrays?


- Arrays are the data structures which store the same data type of elements.

- The data type includes integer, float and character values.  

- Arrays can store more than one item at the same time.

- They are an ordered sequence of elements.


## Difference between array and list


- Arrays and lists are similar.

- Arrays store only items that are of the same single data type but lists can store multiple data types.

- Other properties are almost identical to each other.


## Sample codes 


- **array.array(datatype [array items])** 
    
    Initialise an array 

    ```python
    >>> import array

    >>> a = array.array('i', [1, 2, 3, 4, 5, 6]) 
    ```

- **a.typecode**
    
    Return the type of the elements

    ```python
    >>> a.typecode
    'i'
    ```

- **a.itemssize**
    
    Returns length in bytes of one array item

    ```python
    >>> a.itemsize
    4    
    ```

- **a.append(element)**
    
    Adds a value at the end of an array 

    ```python
    >>> a.append(5)

    #TO KNOW THE OUTPUT 
    >>> a
    array('i', [1, 2, 3, 4, 5, 6, 5])
    ```

- **a.count(element)**
    
    Number of occurrences of argument in the array 

    ```python
    >>> a.count(5)
    2
    ```

- **a.extend(iter)**
    
    Append items from an iterable

    ```python
    >>> a.extend([74,54,56])
    >>> a
    array('i', [1, 2, 3, 4, 5, 6, 5, 74, 55, 56])
    ```

- **a.insert(Index, element)**
    
    Inserts an element in the index

    ```python
    >>> a.insert(4, 99)
    >>> a
    array('i', [1, 2, 3, 4, 99, 5, 6, 5, 74, 55, 56])
    ```

- **a.pop()**
    
    Returns the last element and pops out the last element from an array.
    On passing an argument in the pop method it removes the element from the index. It takes the argument as an index.

    ```python
    >>> a.pop()
    56
    ```

- **a.reverse()**
    
    Reverse an array

    ```python
    >>> a.reverse()
    >>> a    
    array('i', [55, 74, 5, 6, 5, 99, 4, 3, 2, 1])
    ```
- **a.remove(element)**
    
    Removes the first occurrence of the element

    ```bash
    >>> a.remove(5)
    >>> a
    array('i', [55, 74, 6, 5, 99, 4, 3, 2, 1])
    
    ```
## Quick Overview of Array methods


|     Method       |        Function  |
| ---------------- | ---------------- |  
|a.typecode | Returns the type of element in the list |
|a.itemsize|Returns the byte capacity of the single item in the array|
|a.count()|Counts the number of occurrences in the array  |
|a.append()|Appends the value to an array|
|a.extend|Appends an array to an array|
|a.insert()|Inserts an element at the given index|
|a.pop()|Pops out the last element from the array|
|a.reverse()|Reverses the array|
|a.remove()|Removes the element from the array|
 
 
 
## References

- To search for the data type, click on the below link.
    
    [Data type](https://docs.python.org/3/library/array.html)
Boost your career as a Cloud architect & DevOps with these 9 Terraform Courses & Workshops
Tags: terraform, cloud, cloudnative
Published: 2023-02-16 07:33:26

As Cloud architects and DevOps, we’re constantly looking for new tools and technologies that can make our lives easier when managing cloud infrastructures.

As cloud technology evolves, and new cloud services and features are released constantly, one of our main challenges is to keep up with the latest developments and to ensure that we are using the most up-to-date and efficient methods for managing infrastructure resources.

Moreover, as more organizations move to the cloud and adopt DevOps practices, the demand for professionals with experience in IaC and Terraform is likely to increase. By keeping our skills up-to-date, we can remain competitive in the job market and advance our careers.

Here are 9 free resources that you can use to build up your skills:

🔥   ▬▬▬▬▬▬  Courses/Workshops ▬▬▬▬▬▬   🔥

✅ Learn Terraform in 45 min
Learn how to manage cloud infrastructures with Terraform: https://bit.ly/3I4Qx5z

✅ Learn Terraform variables and how to use them
Learn the types of variables and how they work, how to use them, and how to use secrets: http://bit.ly/3S6MHxl

✅ Learn Terraform Modules and how to use them
Learn about Terraform modules: how to create your own, the Challenges of maintaining modules within a team, and the best practices for utilizing them: http://bit.ly/3YRuOVB

✅ Build Azure landing zone architecture
A step-by-step technical use case on how to design & deploy a hub and spoke landing zone in Azure: http://bit.ly/3Itpx1c

✅ What CI/CD means for the infrastructure
Learn about the latest trends, best practices, and real-world examples of how continuous integration and delivery can help you deliver high-quality, reliable, and secure cloud infrastructure faster and more efficiently: http://bit.ly/3lyP0Nv

🔥  ▬▬▬▬▬▬  How to  ▬▬▬▬▬▬   🔥

✅ Work with your team on Terraform: http://bit.ly/3XB7Qki

✅ Use 3 ways to perform static analysis on Terraform code: http://bit.ly/3K9xsSi

✅ Use Infracost as a guardrail to manage cloud cost during Terraform development: http://bit.ly/40ZtxNT

✅ 3 Terraform Open Source Tools for CI/CD
Discover how you can use OPA, Terrascan and Tfsec to enforce policy as code and detect any potential vulnerabilities in your Terraform code: http://bit.ly/3Xxt8PV

▬▬▬▬▬▬ Useful Links 🔗  ▬▬▬▬▬▬
►  Documentation: https://docs.brainboard.co/