teleren/devto huggingface dataset:
Can you say you are an Expert?
Tags: productivity, discuss, explainlikeimfive
Published: 2023-02-21 14:37:21

- One of the greatest dilemmas people face is knowing when to call themselves an expert. Well there are many criterias which includes the **_quality of experience, one's assertive confidence, and their ability to communicate clearly._**

- Experts, to some level, are able to establish a **_roadmap_** for gaining expertise. 

- It's also important to consider one's **rapport** with their peers or subordinates and well they **conduct** themselves socially and how well their responses/behavior are accepted by others. I can call it social acceptance rate. 


- Other things to consider include the **_target audience_**, **_improvement rate_**, and _**contribution to the community**_. 

- Experts are those who have a deep knowledge of their subject matter, demonstrate intensity in their thoughts, are vocal in sharing their knowledge, and frequently revise their knowledge to stay current.

- Becoming an expert is a continuous process that requires dedication and ongoing learning.
 
- It's important to set goals and strive to improve in all the areas mentioned above to establish oneself as an expert in a given field.

- One's persistence and consistency in performance can help anyone become an expert. Later, Recognition follows.

- The belief that expertise can only be attained through a significant investment of time is a common misconception. Unfortunately, this myth has discouraged many individuals from pursuing their passions and developing their skills.

- You can never be late to learn anything, thats for sure.

- Quality, not quantity, is what matters. 
It's sad that the myth of time has become so overwhelming that some people give up before they even start.


As Kang (Marvel fans will know this) rightly said, "Time isn't what you think it is... We can shape it..."**

Well thats pushing us into whole new topic. So period.

Whats your thought? Do you want to be an expert? If yes, in what?
📢Stop adding API_KEY to tutorials. Do this...
Tags: api, tutorial, coding, webdev
Published: 2023-02-21 14:20:17

---
title: 📢Stop adding API_KEY to tutorials. Do this...
published: true
description: 
tags: API, tutorial, coding, webdev
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wjehbpkg4zduxf8tdlkx.jpg
---
There are so many tutorials out there that add API_KEY to code.

And some other people now use their keys. Don't do that again.

📢 Do this instead 👇

```js
const API_NAME = "myAPI";
const API_KEY = prompt ("Enter your API_KEY:");
```
This gives you the chance to test your code and learners can create their API_KEY to test it.

Note: This is only for the browser 👋.

You can further explain the normal way to do it and why you do it that way not to confuse learners.

Thank me later 🤩.
How to deploy a Django Docker container to Elastic Beanstalk
Tags: django, aws, docker
Published: 2023-02-21 13:44:28

You can easily deploy your Django application to Elasticbeastlk (EB) by following these simple steps.

Note, while creating your application, add
Also ensure you have the Elastic Beanstalk cli 'eb' installed on your local machine.

```
0.0.0.0
```

to your ALLOWED_HOSTS in your application settings.py, also add this line
```
import os
live = os.getenv("LIVE")
```
Add "live" to your ALLOWED_HOSTS too, we will update it with the URL elastic beanstalk will provide us later.

Create a file with the list of requirements for the application to run by running 
```
pip freeze > requirements.txt
```

Create your Dockerfile
```

# the base image to run your application
FROM python:3.8.10-slim

# setup environment variable
ENV DockerHOME=/home/app/webapp

# set work directory
RUN mkdir -p $DockerHOME

# where your code lives
WORKDIR $DockerHOME

# set environment variables

# this ensures that the Python interpreter doesn’t generate .pyc files, we don't need them
ENV PYTHONDONTWRITEBYTECODE 1
# this will send python output straight to the terminal(standard output) without being buffered
ENV PYTHONUNBUFFERED 1

# install dependencies
RUN pip install --upgrade pip

# copy the whole project to your docker home directory.
COPY . $DockerHOME
# run this command to install all dependencies
RUN pip install -r requirements.txt
# port where the Django app runs
EXPOSE 5000
# start the server on port 5000, this is what EB listens for
CMD ["python", "manage.py", "runserver", "0.0.0.0:5000"]

```

On your local machine, you can test your EB deployment by running
```
eb inti -p docker _application_name_
```
and run it with 
```
eb local run --port 5000
```


To deploy the application, run
```
eb create _environment_name_
```
and follow the prompts

When you are done, use
```
eb open
```
to open the application

If this tells you to add the URL to ALLOWED_HOSTS, copy the URL and add it to "software" with the name "live" (as we mentioned above) in "configuration" under the environment tab like so.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hibf6xach8pjm4uns0lo.png)
Breaking barriers: Understanding women's underrepresentation in the tech industry!
Published: 2023-02-21 13:34:40

Why are women underrepresented in the tech industry? This is a question that has puzzled many people, as the industry continues to be dominated by men. Despite efforts to promote diversity and inclusivity, women are still vastly outnumbered in tech-related fields. But why? I’ve thought about it too, and here goes the easiest five ways to explain it.

Gender stereotypes, the way our culture frequently equates technical expertise with masculinity, and the way women are frequently dissuaded from pursuing jobs in occupations that are typically perceived to be dominated by males. The lack of female role models! Women may be less likely to pursue careers in tech if they do not see people who look like them in positions of leadership or influence. Unconscious biases can also play a role in perpetuating gender disparities in tech. Studies have shown that people may unconsciously associate men with technology and leadership, while women are associated with more supportive roles. A big one leading to women dropping off the industry is workplace culture. Women may face discrimination or harassment, and may be excluded from important networking and career advancement opportunities. The fifth being lack of access to education and training to women. They may be less likely to pursue education or training in tech-related fields due to systemic barriers, such as lack of access to resources or gender bias in education.

Addressing these factors requires a multifaceted approach that involves education, policy change, and cultural shifts. Some strategies that can help increase the representation of women in tech include promoting diversity and inclusivity, providing access to education and training, increasing the visibility of female role models in the industry, and working to eliminate unconscious biases and discrimination in the workplace. It's crucial that we continue to promote diversity and inclusivity in the tech industry. This means creating more opportunities for women to learn and grow in tech-related fields, as well as supporting initiatives that encourage women to pursue careers in the industry. Let's celebrate the achievements of women in tech and continue to work towards a future where gender equality is the norm.
How to deploy a Spring-boot jar file to ElasticBeanstalk
Tags: java, elasticbeanstalk, aws, spring
Published: 2023-02-21 13:17:13

Cloud has made procuring environments and deploying applications to them a lot easier than it used to be, providing us with different cloud deployments models like IaaS, Paas and Saas. Today we will look at the AWS ElasticBeanstalk, a PaaS (Platform as a Service) that provides us with a ready environment to deploy our applications.

Elastic beanstalk nginx listens on port 5000 so, ensure to make your application listen on port 5000 by adding 

```
server:
   port: 5000
```
to your application.yaml file or by adding the key "SERVER_PORT" and the value "5000" to the software tab in the configuration tab of your environment on the elastic beanstalk.


After developing your Spring-boot applications, run

```mvn install```

Go to aws' elastic beanstalk website and create a new application
* enter the application’s name
* choose "java" as the platform and choose the java version your application is running on.
* click on "Upload your code" to select your packaged jar file and wait for the application to be deployed.

You can now click on the application URL provided by elastic beanstalk to access your application
What is smart outstaffing, and why should you use it?
Tags: webdev, hiring, writing, management
Published: 2023-02-21 13:04:38

Smart outstaffing or smart staffing is a modern approach to IT outsourcing focused on a more efficient way to collaborate with remote teams. Like conventional outstaffing, it includes hiring and managing developers. However, with the smart method, the customer acquires not just people with the set of necessary competencies, they also get access to the entire expertise of the contracting company. The emphasis is on the knowledge of not just one specialist but of a whole group that has relevant experience in many areas.

[Read more in the article.](https://evrone.com/smart_outstaff)
How to review, test and validate mobile app sourse code online without exposing it to be stolen?
Published: 2023-02-21 13:01:44

I have a native android and IOS app developed for me by a conmpany and I want to recieve the source code from them. I want some third party external developers to help me in recieving the sourse code, reviewing and testing it to make sure that it is perfect and complete and that nothing remain with the company that developed it. I want an online way to do that without loosing the control on my code or exposing it to be stealed.

I would like also to know what is the best online hosting service that can host, run, edit, modify and custmize my app and its source code.
How to Boost Your Website's SEO with Guest Posting
Tags: programming, webdev, beginners
Published: 2023-02-21 12:45:46

How to Boost Your Website's SEO with [Guest Posting](https://trendsler.com/)

Want to improve your website's SEO and get more traffic? Guest posting can be a powerful strategy to increase your online visibility and drive targeted visitors to your site. In this article, we'll show you how to effectively use guest posting to enhance your website's search engine rankings and attract a wider audience. From finding the right blogs to pitch to crafting compelling content, Trendsler covers everything you need to know to get started. Don't miss out on the benefits of guest posting for your SEO strategy! 
5 Ways to Boost Your Website's Traffic"
Looking to drive more traffic to your website? Check out these 5 effective strategies for boosting your website's traffic and getting more eyes on your content.
The Ultimate Guide to SEO for Beginners"
Description: "New to SEO and not sure where to start? Our comprehensive guide will walk you through the basics of search engine optimization and help you improve your website's visibility in search results.
Why Social Media Marketing is Essential for Your Business
In today's digital landscape, social media marketing is a must for any business looking to succeed online. Learn why social media marketing is so important and how you can use it to grow your brand.ss
How to Write Compelling Blog Posts That Drive Traffic
Struggling to create blog posts that capture your readers' attention? Our tips and tricks will help you write compelling content that drives traffic to your website and keeps your readers engaged.
How to enable Authentication in mongodb ?
Tags: mongodb, beginners, database, programming
Published: 2023-02-21 12:42:03

Lets learn how to enable authentication in a local installation of mongodb. 

Note: *These steps are to be done on a linux OS*

1. Start mongodb deamon
`$ sudo systemctl start mongod`

2. Connect to mongodb using shell
`$ mongosh`

3. Use admin database
`$ use admin`

4. Create new user. Replace USER_NAME & USER_PASSWORD with the values that you want.
`$ db.createUser(
... {
... user: "USER_NAME",
... pwd: "USER_PASSWORD",
... roles: ["readWriteAnyDatabase"]
... }
... )`

5. Exit shell
`$ exit`

7. Modify the configuration file to enable authentication
`$ sudo nano /etc/mongod.conf`

8. Uncomment security option and add authentication. The previous content will be 
`#secutiry`

9. There are 2 spaces before the `authorization: enabled` line. Save using `Ctrl+X`, confirm using `Y` and `Enter`. After updating configuration it will look like this.
`security:
  authorization: enabled` 
10. Restart mongod
`$ sudo systemctl restart mongod`

11. Verify the deamon is running and status is active
`$ sudo systemctl status mongod`

12. Connect to mongoDb using shell.
`$ mongosh -u "USER_NAME" -p "USER_PASSWORD" --authenticationDatabase "admin"`

If everything is correct it will connect to the default test database. To verify whether authentication is working use `$ exit` command and try to connect to mongoDb using 
`$ mongosh` and list databases `$ show dbs`. It will return an error saying "MongoServerError: command listDatabases requires authentication".
Cryptoland. Part 0: Types of addresses on KLYNTAR — post-quantum, multisig, tbls, ed25519 🔥
Tags: klyntar, crypto, web3, blockchain
Published: 2023-02-21 12:35:29

> _**NOTE:** This is the short paraphrase taken from MasteringKlyntar book. Read it [here](https://mastering.klyntar.org/)._

## Intro
Hello folks👋 After a short break, we’re again here. Working on plan for articles that we’re going to publish, we’ve decided to split it into series.

This is the first article related to cryptography on KLYNTAR. The set of articles under such title will be called Cryptoland, so if you see this label — you can be sure that something interesting is waiting for you.

To warm up, we want to tell you about type of addresses on KLYNTAR, because that’s what you as users have to deal with very often to interact with KLY ecosystem. Let’s get it started!

_**> By the way, today we present just a short intro. We’ll discuss more in details in the next parts of Cryptoland set of articles**_

Traditionally, read this article on our Medium blog😉

{% embed https://klyntar.medium.com/cryptoland-part-1-types-of-addresses-on-klyntar-post-quantum-multisig-tbls-ed25519-981277963ced %}
Still Refactoring : Developer diaries
Published: 2023-02-21 12:35:29

Part 1 :[Developer Diaries : Refactor Code!! Noooo.. :'(  ](https://dev.to/afrinc/refactoring-no-i-don-t-want-to-touch-it-76l)

But wait, the code is never truly done,
New features and updates are always on the run.
We need to keep it clean, and agile too,
And that means refactoring, through and through.

It's not just a one-time task, you see,
It's a constant process, like a busy bee.
We must embrace it, with open arms,
And never let our code come to harm.

We need to stay alert, and vigilant too,
To catch the bugs before they ensue.
Our users deserve the best, it's true,
And we must deliver, it's what we do.

So let's not shy away, from the task at hand,
Let's refactor our code, and take a stand.
We'll be the ones, who make a difference,
And deliver software with elegance.

And as we go about our daily grind,
Refactoring our code with our heart and mind,
We know we're making a lasting impact,
And that's something to be proud of, in fact.

So here's to all the developers out there,
Who refactor their code with care,
Your efforts may go unnoticed, it's true,
But we know that you're making a difference, through and through!
Python List Comprehension: With Examples
Tags: beginners, programming, coding, developer
Published: 2023-02-21 12:35:13

Working with arrays can be a bit of a pain in most languages.

If you want to make changes to an array you need to use a FOR loop, a bit like this one:

```python
fruits = ["apple", "banana", "grape", "mango", "pear", "raspberry"]
new_fruits = []

for x in fruits:
  new_fruits.append(x + "s")

print(new_fruits)
```

All we wanted to do was add an “s” to the end of each of the words in the array but to do that we had to create a new array and then a loop to add the letter to each of the words.

## Replacing FOR Loops with List Comprehension
Thanks to the power of List Comprehension in Python, there is a much better way of doing this, which will save you a lot of time and code.

```python
fruits = ["apple", "banana", "grape", "mango", "pear", "raspberry"]
fruits = [fruit + "s" for fruit in fruits]
print(fruits)
```

The second line contains the Python List Expression which is doing exactly the same thing as the previous example.

We no longer need a new array as we can just overwrite the previous array.

If you want to create your own Python List Expressions then you can use the following formula.

```python
new_list = [expression for item in array if condition == True]
```

## Using Conditionals in List Comprehension
You can see in the formula above that we can also use conditionals in our expressions.

Let’s say we are upset by the fact that “raspberrys” isn’t actually a word. We can add a conditional to a statement that will filter this word out.

```python
fruits = ["apple", "banana", "grape", "mango", "pear", "raspberry"]
fruits = [fruit + "s" for fruit in fruits if fruit != "raspberry"]
print(fruits)
```

We can also include conditionals at the start if we want to replace certain entries:

```python
fruits = ["apple", "banana", "grape", "mango", "pear", "raspberry"]
fruits = ["raspberries" if fruit == "raspberry" else fruit + "s" for fruit in fruits]
print(fruits)
```

## String Manipulation
Given that strings are nothing more than character arrays we can also use List Comprehension to manipulate text.

Say for example we had the following piece of text and we wanted to add the spaces back in:

ILikeSpellingFruitPluralsIncorrectly

Normally we would need to loop through each letter looking to see if it is upper case or not and add in a space.

```python
text = "ILikeSpellingFruitPluralsIncorrectly"

text = "".join(
	[ i if i.islower() else " " + i for i in text ]
)[1:]
print(text)
```

Which prints out: `I Like Spelling Fruit Plurals Incorrectly`

## Final Thoughts
List Comprehension is a powerful way of doing simple FOR loops and array manipulations without needing to write a lot of code.

As Uncle Ben said to Peter Parker, “With great power comes great responsibility”. List Comprehension is great for simple expressions to make your code cleaner, but take caution if you are writing complicated loops in this way.

Even if it takes a few more lines of code, it is always better that your code is easier to understand than concise.
Coders ft. ChatGPT
Tags: coders
Published: 2023-02-21 12:28:23

In dark basements they dwell,
Lost in code, with stories to tell,
Their eyes fixed on glowing screens,
Living out their digital dreams.

With fingers that dance across the keys,
They build the world as they please,
And in their code, there's a joke or two,
Hidden away, just for me and you.

They speak in languages we don't understand,
With acronyms that seem quite grand,
And if we ask what they're up to,
They'll reply with "It's just tech voodoo."

They work long hours, through the night,
Forgetting to eat, forgetting to sight,
Their love for code is like a flame,
And they'll never be quite the same.

They have their quirks, that's for sure,
Like drinking Red Bull to stay secure,
And when they get a new keyboard,
It's like Christmas, we're all quite floored!

But despite their oddities, we can't deny,
That coders are just plain awesome, oh my!
They build the apps we all rely on,
And in the end, their code is the bomb!
How to Revolutionize Your Business Operations with DronaHQ: A Deep Dive into the Platform
Tags: webinar, lowcode, nocode, appdevelopment
Published: 2023-02-21 12:10:19

Are you curious about low code app development platforms? Join us for our upcoming webinar on "Mastering DronaHQ: A detailed platform walkthrough".

This webinar is perfect for anyone looking to gain an in-depth understanding of the features and capabilities of DronaHQ. Our expert speaker will guide you through a comprehensive overview of the platform, exploring all its tools and functionalities.

Learn how to build, test, deploy, automate, manage and improve GTM for your digital projects with DronaHQ

Register now and save your spot: https://www.dronahq.com/detailed-platform-walkthrough-dronahq/
How to build a data pipeline on AWS
Tags: aws, tutorial, computerscience, programming
Published: 2023-02-21 12:08:02

AWS is a powerful tool and a great application is to use it to create data pipeline to collect, process, and analyze large amounts of data in real-time. Using a combination of AWS services, we can create a data pipeline that can handle a number of use cases, including data analytics, real-time processing of IoT data, and logging and monitoring.

The key components to build a data pipeline are:

1. Amazon Kinesis
2. Amazon Glue
3. Amazon S3

Developing a data pipeline on AWS might seem complex, but through this blog I aim to help you understand it and help you build a data pipeline on your own.
Let's look at a guided step-by-step process of creating an AWS data pipeline.

## Amazon Kinesis
Amazon Kinesis enables to create a stream of data that can be read and processed in real-time. It is a fully managed service that makes it easy to collect, process, and analyze streaming data.
Code to create a new stream and put data into a Kinesis stream using the AWS SDK for Python

{% embed https://gist.github.com/DrishtiJ/ca9ab6039cbce49ada1e248281391ae8 %}

## AWS Glue
AWS Glue is a fully managed extract, transform, and load (ETL) service that helps to prepare and load data for analytics.
Using Glue, we can create a job to read data from Kinesis stream and write it to an S3 bucket.

Code to create a Glue job using the AWS SDK for Python

{% embed https://gist.github.com/DrishtiJ/1a228cf74c64506291d706ee7a1dab2d %}

## AWS S3

AWS S3 is a fully managed object storage service to store and retrieve any amount of data, at any time, from anywhere on the web.

S3 is designed for 99.999999999% (11 9's) of durability, and stores data redundantly across multiple devices in multiple facilities. This makes it an ideal solution for use cases such as data archiving, backup and recovery, and disaster recovery.
Code to create an S3 bucket using the AWS SDK for Python

{% embed https://gist.github.com/DrishtiJ/623e35db501cc3d3a4542bcb14da0d4a %}

Additionally Amazon Redshift can be used to run complex queries on your data, and generate insights and reports in near real-time.
AWS ETL Glue can be used for data cleaning, filtering, and transformation tasks on your data, and load it into a target data store, such as Redshift.

Building a data pipeline on AWS is a powerful way to move data efficiently, and with the right tools and techniques, it can be done quickly and easily. With the AWS services you can build robust, scalable, and cost-effective data pipelines that can handle a wide variety of use cases.

Thank you for reading. If you have reached so far, please like the article

Do follow me on [Twitter](http://twitter.com/drishtijjain) and [LinkedIn](http://linkedin.com/in/jaindrishti/) ! Also, my [YouTube Channel](http://youtube.com/drishtijjain) has some great tech content, podcasts and much more!