teleren/devto huggingface dataset:
Taming one of the trickiest business concepts
Tags: development, beginners, productivity, business
Published: 2023-09-23 11:30:32

Imagine this: You're a fast self-study person. You often don't take any courses because you're faster on your own. 

You saw a course for free and started doubting whether it's worth taking it since it's free. 
You decided to give it a try.
In the middle of it, you realize that it's too slow for you, but you kind of want to finish it. After all, it's free, so you're not losing anything, right?

Turns out you might be!
Welcome to the world of opportunity costs!

We only have a single physical place we could be in, and we can only do a single thing at a time. When we choose to be somewhere or do something, we're at the same time choosing not to be somewhere or do something else. That's the hard truth.

This concept seems simple, but I often find it tricky to remember and actually apply in the wild. The things that we don't see are so close to non-existence... But at the same time, they are actually something we could be doing! 

When calculating the costs, it's not only time, money, workforce, effort, and items to take into account but also what else we could be doing with the same resources. Asking this question could sometimes provide incredible insights and lead to a significant breakthroughs.

While choosing to stay in a free unproductive course, you're at the same time might be losing the ability to learn the subject faster. So, in the end, it costs you more.

Now, head up, look around, and ask: What can you stop doing now to start doing something better instead?
Async and Await function in JavaScript Promises
Tags: javascript, programming, api, learning
Published: 2023-09-23 11:17:38

**This async/await** syntax makes working with promises more straightforward and readable, especially for handling asynchronous operations in a more synchronous-looking way.

Promises are a way in JavaScript to handle asynchronous tasks, like fetching data from a server or reading files. They help you work with code that doesn't run in a predictable order. 

> A promise is like ordering food ,it represents something that will be delivered in the present , future or never/cancelled.

Example:


```
const fetchuserData = new Promise(function(resolve,reject){
  setTimeout(() =>{
    const data = {username :"maktub", password:"football"};
    resolve(data);
  }, 2000);
});

// Now, we can use the async/await syntax to work with promises more easily.

async function getUserData() {
    try {
        console.log("fetching user data");
        const user = await fetchuserData;
        console.log("user data", user);
    } catch (error) {
        console.error("Error", error);
    }

}

getUserData();
console.log("request in progress");
```




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

**Here's how the code works step by step:**

1. The fetchUserData function returns a promise. Inside the promise, there's a setTimeout function that simulates a 2-second delay. After the delay, the promise is resolved with a JavaScript object containing user data (in this case, { username: "maktub" , password :"football" }).

2. The getUserData function is defined as an async function. This allows you to use the await keyword inside it.getUserData is an async function that uses await to wait for the promise to resolve. It makes the code look more like synchronous code, even though it's asynchronous.

3. When you call getUserData, it logs "Fetching user data..." and then waits for the promise to resolve before logging the user data.

4. The last console.log line runs immediately, showing that the code doesn't block while waiting for the promise.

5. If there were any errors during the promise resolution (for example, if you had used reject instead of resolve), the code would jump to the catch block and log the error message.
How to Print Hello World in Go: A Beginner's Guide
Tags: go, beginners, tutorial
Published: 2023-09-23 11:02:23

## Introduction

This post will guide you through printing the universally beloved "Hello, World!" message in Go. But before we dive into the code, let's provide a brief introduction to the Go programming language:

Go, also commonly referred to as Golang, emerged in 2009 as a statically typed, compiled programming language developed by Robert Griesemer, Rob Pike, and Ken Thompson at Google. Although it shares syntactical similarities with C, Go incorporates memory safety, garbage collection, structural typing, and CSP-style concurrency.

Go is a modern and versatile programming language, purpose-built for simplicity, efficiency, and reliability. Its capabilities span across various domains, including web development, distributed systems, command-line tools, and more.

If you've already set up your Go environment on your system, feel free to follow along. If not, don't worry; we'll also discuss setting up your Go environment.

## Writing Your First Go Program

Let's embark on the journey to print everyone's favorite:

```plaintext
Hello, World!
```

### Create a Directory

Begin by creating a new directory for your Go project, giving it a name of your choice. For this example, we'll call it `hello-world`.

```bash
mkdir hello-world
```

Navigate into your newly created directory:

```bash
cd hello-world
```

### Create a Go File

Inside your project directory, create a new file named `main.go`. You can use any text editor or integrated development environment (IDE) to create and edit the file.

### Hello, World Program

Within the `main.go` file, insert the following code:

```go
package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}
```

Remember to save the file. That's all there is to it.

## Running Your Go Program

1. Open the terminal, either within your IDE or using your system's built-in terminal.

2. To execute the program, utilize the `go run <filename>` command.

```bash
go run main.go
```

You should see the following output:

```plaintext
Hello, World!
```

Congratulations! You have successfully run your first Go program, printing the timeless "Hello, World!" message. This marks the beginning of your exciting journey into the Go programming language.

Stay tuned for more Go tutorials and exploration. Happy coding! 😊
When and how to use mergeMap
Tags: rxjs, angular, webdev, programming
Published: 2023-09-23 10:53:49

If a developer uses Angular without knowing the power of RxJS the code can turn into a huge mass very fast.

When the inner observable needs a value from the outer observable, we can and must use mergeMap!

As a result, we not just gonna have nicer and more readable code, but we can follow the async pipe pattern.
It has also performance advantages if the outer event triggers twice then the first execution will be canceled.

## With mergeMap
![with mergeMap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqbr7gah2d3ra4m3nv4x.png)



## Without mergeMap
![without mergeMap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nsfnchdz1e8o34ues8tb.png)

I am a Full-stack [Angular, Java] contractor/freelancer developer, if you would like to contact me here is my [website](https://pallagijoe.com/) ! 

You can find me on [LinkedIn](https://www.linkedin.com/in/jozsef-pallagi/) as well.
AZ-900 Exam Dumps: Tips for Effective Azure Learning
Tags: javascript, webdev, tutorial, beginners
Published: 2023-09-23 10:52:19

5. Review the Exam Content: 
Review the exam content to make sure you understand the topics that are covered. Pay special attention to any topics that you are unfamiliar with or struggle with. 
6. Utilize Online Resources: 
There are many online resources that can help you prepare for the AZ-900 exam. AZ-900 Passing Score These can include online forums, videos, tutorials, and study guides. AZ-900 Passing Score Utilize these resources to supplement your preparation and practice. 
7. Ask Questions: 
If you have any questions, do not hesitate to ask. Reach out to a mentor, teacher, or colleague who is knowledgeable about the exam to help you review any topics that you are struggling with. 
8. Get Enough Rest: 
Make sure you are well-rested before taking the exam. You should get at least 8 hours of sleep the night before the exam to ensure that you are mentally and physically prepared. 
9. Don’t Stress: 
Don’t let yourself become overwhelmed with stress. Take a break if you are feeling overwhelmed and try to relax. 
10. Don’t Give Up: 
Don’t give up if you don’t pass the exam on your first try. Most people need to take the exam multiple times before they pass. Keep studying and practicing and you will eventually pass the exam.

Unlock Best Exams with Our Exclusive Offer! >>>> https://examtopicsfree.com/microsoft-exam-dumps/az-900-passing-score/
(error: Entry Point Not Found) The procedure entry point could not be located in the dynamic link library
Tags: help, cpp
Published: 2023-09-23 10:27:58

I'm new to CodeBlocks and just tried to install and use it after i can't uses Visual Studio/Visual Studio Code because it to lag for my computer. All seems to going well, i did follow the tutorial on this site:
https://bobi911.com/set-up-sfml-with-codeblocks-step-by-step-tutorial/
But when it went to last step is open the project i created and i did it too but it doesn't show like on tutorial and it show this:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jz3meaili5k1q42sfsal.png)
I did try some solutions like **searches on google** or **asks for help on Discord** but it seems doesn't works anymore
Academic Insights for SY0-401 Exam Mastery
Tags: books
Published: 2023-09-23 10:17:54


We offer the most convenient way to prepare and pass your CompTIA Security+ certification exam by providing practice tests with following featu
Avoid the hassle of monthly fees
While everything is free on Exam Topics Free, we know some of you just want more! We don't do a subscription business here! All you need is a simple payment of $29.99 per year for premium access. What is included? 365[url=https://examtopicsfree.com/comptia-exam-dumps/sy0-401-braindump/]SY0 401 Braindump[/url]  days of premium access to your selected exam materials. Finish SY0 401 BRAINDUMP and keep coming back for more knowledge long after exam day.

So where do I register?
Getting premium access to our exams is quick and easy! Simply follow these simple steps and you'll be certified in no time.
Click Here More Info: https://examtopicsfree.com/comptia-exam-dumps/sy0-401-braindump/
Concentration Exercises For Students
Tags: englishcoachingcentreinchennai
Published: 2023-09-23 10:09:31

Focusing on one thing requires giving undivided attention, but children often struggle with concentration. To enhance their focus and memory, parents can provide **[concentration exercises for students](https://www.sugsar.com/)** from the brain training institute. Professional trainers work with kids to improve learning speed and academic performance across all subjects. For crucial topics, the **[maths tuition in Chennai](https://www.sugsar.com/maths-centre-of-excellence.html)** offers top-notch training, nurturing essential skills in children. With this support, kids can become fast learners and achieve excellent marks in their studies.
Apache Kafka: Quickstart: Binary Deployment in Windows
Tags: kafka, windows, installation, java
Published: 2023-09-23 09:59:26

## Introduction
Windows installation guide for _https://kafka.apache.org/quickstart_



##Step 1: Downloading the Application

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



- Official download page - https://kafka.apache.org/downloads
- Choose the latest version:  kafka_2.13-3.5.1.tgz (Current)


##Step 2: Installation
- Extract the Downloaded file (.tgz) with any file archiver like [7zip](https://www.7-zip.org/download.html)
- After extracting you'll get a TAR File (.tar), Again extract the TAR file.


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



## Step 3: Configuration
- Update **server.properties**
    - Create new Directory - _C:\tmp\kafka-logs_
    - Update _**log.dirs**=C:\\tmp\\kafka-logs_

- Update **zookeeper.properties**
    - Create new Directory - _C:\tmp\zookeeper_
    - Update *_*dataDir**=C:\\tmp\\zookeeper_


## Step 4: Running the Kafka Application
#### Kafka with ZooKeeper
- Start Zookeeper Server

>_.\bin\windows\zookeeper-server-start.bat config\zookeeper.properties_

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


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


- Start Kafka Server

>_.\bin\windows\kafka-server-start.bat config\server.properties_

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


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


## Step 5: Create Topic
- Topic name: quickstart-events

>._\bin\windows\kafka-topics.bat --create --topic quickstart-events --bootstrap-server localhost:9092_


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


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


## Step 6: Producer: Write some events to topic

>_.\bin\windows\kafka-console-producer.bat --topic quickstart-events --bootstrap-server localhost:9092_

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


## Step 7: Consumer: Read the events

>_.\bin\windows\kafka-console-consumer.bat --topic quickstart-events --from-beginning --bootstrap-server localhost:9092_


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



## Step 8: Stream messages

- Add a message in _Producer_ console from Step 6

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


- Message is streamed to the _Consumer_ console from Step 7

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q69svto8au54ins39bf5.png)
DESCRIBE THE TESTING TECHNIQUES WITH EXAMPLES:-
Tags: testing
Published: 2023-09-23 09:47:36

1) BOUNDRY VALUE ANALYSIS :-
                           
                    Boundary value analysis is used for developing test cases to the boundaries, which separates the continious range of inputs. The boundaries are identified this part of technique, then the test cases are written.

types;-
       * Lower boundary cases
       * Upper boundary cases
       * On boundary cases
Example:-
       hdfc Account opening age is 18 to 65yrs

# Minimum -1 = 18-1 --->17----is invalid
# Min,Min+1,Max,Max-1 --> 18,19,65,64 ---> is valid
# Max +1 ---> 66---> is invalid

2) Decision table testing:-
                         Decision table is one of the testing design technique, which will help us system behavior with various set of inputs. This technique is be also called [cause and effect table], as it captures the driving factor [cause and inputs data] and the captures the effect [output] in the tabular format.

Ex:-
    *Naukri Website resume upload functionality and have some conditions,
         * File size <2mb
         * Supported file format JPG,PDF,DOC,PNG
so our system (application) should be accept this kind of documents only, if both conditions are satisfied else if system throw error.

3) Use Case Testing:-
                  * Use case testing is a process of defining the actions done by the actors/Users on the system(software) and the responses of the system for the corresponding action. Use case testing is a software testing technique helps to identify test cases which covers the entire system on a transaction by transaction basis from start to end. But transaction by transaction i means,
     For every action on the software done by the ACTOR/USER, there's a reaction from the software(system).

Ex:- Go to Anna University results page functionality,
     1.go the website
     2.enter registration number 
     3.click submit 
     4.waiting for loading and searching your details
     5.see your results

 Let's see how we can write use case tests for this scenario 
 A called ACTOR 
 S called SYSTEM 

1. A - Enter valid registration number and click on submit
2. S - Validate the registration number and displays the results
3. A - If submitted INVALID registration number 
4. S - System throws an error message " Invalid registration number"
Create and delete Digital Ocean droplet with curl
Tags: digitalocean
Published: 2023-09-23 09:46:30

Assumed you have already get the Digital Ocean API key and SSH key.

```bash
digitalocean_token="<your API key>"
ssh_key="<your ssh key fingerprint>"
```

## Create a droplet

Let's create a droplet. You can find values of available regions, size, distro images from https://slugs.do-api.dev/

```bash
droplet_name="<your droplet name>"

region="nyc1"
size="s-1vcpu-512mb-10gb"
image="ubuntu-22-04-x64"

# Create droplet
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
-d '{"name":"'"${droplet_name}"'","region":"'"${region}"'","size":"'"${size}"'","image":"'"${image}"'","ssh_keys":["'"${ssh_key}"'"],"backups":false,"ipv6":false,"monitoring":false}' \
"https://api.digitalocean.com/v2/droplets"
```

## Get droplet status

We can get the status and wait until it becomes `active`.

```bash
curl -s -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
"https://api.digitalocean.com/v2/droplets?name=${droplet_name}" | jq -r '.droplets[].status'
```

## Get the IP address

After it is provisioned, we can get the public IP address.

```bash
droplet_ip=$(curl -s -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
"https://api.digitalocean.com/v2/droplets?name=${droplet_name}" | jq -r '.droplets[].networks.v4[] | select(.type == "public") | .ip_address')

# Login to droplet
ssh -i "${your_ssh_key_path}" root@${droplet_ip}
```

## Delete droplet

After we've done with the droplet, delete it to prevent from charging money.

```bash
# Get droplet id
droplet_id=$(curl -s -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
"https://api.digitalocean.com/v2/droplets?name=${droplet_name}" | jq -r '.droplets[].id')

# Delete droplet
curl -s -X DELETE \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
"https://api.digitalocean.com/v2/droplets/${droplet_id}"

# It should return no droplet details if it is deleted
curl -s -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${digitalocean_token}" \
"https://api.digitalocean.com/v2/droplets?name=${droplet_name}"
```
Bejbi.com: Revolutionizing Parental Support
Published: 2023-09-23 09:42:25

In today's fast-paced society, parenting comes with its unique set of challenges and surprises. From the moment of birth, each day is a distinct journey, filled with unexpected joys and discoveries. In this remarkable phase of life, reliable information and the support of fellow parents and experts can work wonders. Hence, Bejbi.com emerges as an invaluable source of knowledge, not just offering information, but also inspiring and uniting a community of parents.

Child Development at Your Fingertips:

Bejbi.com is a virtual compendium of knowledge regarding the stages of child development. From the first moments after birth to the fascinating preschool years, the platform not only provides precise information but also assists in interpreting it within the context of one's own family. Here, you'll find answers to questions about your child's developmental stages, as well as inspirations for activities that not only entertain but primarily support intellectual and emotional growth.

Creative Play as a Developmental Tool:

Bejbi.com is not just a place for ready-made advice but, above all, a source of ideas for creative play. Thanks to expert suggestions, everyday situations transform into unique opportunities to stimulate a child's curiosity and creativity. From simple manual activities to interactive games, Bejbi.com aids in creating exceptional moments with your child.

Expert Advice for Parents:

In today's information-saturated era, it's challenging to find reliable sources. Bejbi.com collaborates with experts in pediatrics, child psychology, and education to provide not only theoretical knowledge but, more importantly, practical advice based on the latest research and experiences. This allows parents to feel confident in making crucial decisions regarding their child's health and development.

Parenting Challenges and Community:

Bejbi.com is not just a source of knowledge, but primarily a community where parents share their experiences and support one another. It's a place where you can find understanding and assistance in difficult times, but also celebrate both small and big parenting victories. Through the discussion forum, everyone has a chance to be heard and listen.

Informed Decision-Making in Childcare:

Bejbi.com also offers practical tools that help parents make decisions regarding childcare. Product comparisons, expert reviews, and recommendations from other parents make it easier to choose what's best for your little one. As a result, everyday life is filled with a sense of awareness and satisfaction, and parents feel more confident in their role as guides in their child's development.

Conclusion:

Bejbi.com is more than just a website; it's a center for parental support. It's a space where you'll find knowledge, inspiration, and support from fellow parents and experts. Together, as a community of parents, we shape the future of healthy and happy parenthood. We encourage you to visit Bejbi.com and join this exceptional community!

https://www.bejbi.com/