teleren/devto huggingface dataset:
Soft Skills For Software Engineers
Tags: softwareengineer, beginners, devops
Published: 2023-04-02 11:58:16

Soft skills are becoming increasingly important for software engineers, as the industry evolves to prioritize collaboration, communication, and problem-solving over technical expertise alone. In this article, we will explore some of the most essential soft skills for software engineers and provide tips for improving them.

**Communication skills**

Effective communication is crucial for software engineers, who must work with various stakeholders, including clients, project managers, and fellow team members. To improve your communication skills, you can:

- Practice active listening: Listen carefully to others and ask 
clarifying questions to ensure you understand their needs and concerns.

- Use clear and concise language: Avoid technical jargon and explain complex concepts in simple terms that non-technical stakeholders can understand.

- Be open and transparent: Keep stakeholders informed of progress, issues, and potential roadblocks.

**Collaboration skills**

Software engineering is a team sport, and the ability to work effectively with others is essential for success. To improve your collaboration skills, you can:

- Foster a culture of teamwork: Encourage open communication and mutual respect among team members.

- Be adaptable: Be willing to compromise and adjust your approach to accommodate the needs and perspectives of others.

- Embrace diversity: Appreciate the value of different backgrounds, experiences, and viewpoints, and seek out diverse perspectives to enhance problem-solving.

**Problem-solving skills**

Software engineers must be adept at solving complex problems, both independently and in collaboration with others. To improve your problem-solving skills, you can:

- Break down problems into manageable components: Analyze the problem and identify the key components that need to be addressed.

- Develop a systematic approach: Establish a step-by-step process for solving the problem, including gathering information, brainstorming solutions, and evaluating options.
Continuously learn and improve: Reflect on your problem-solving approach and seek feedback from others to identify areas for improvement.

**Time management skills**

Software engineering projects often involve multiple tasks and deadlines, and effective time management is essential for meeting project goals. To improve your time management skills, you can:

- Prioritize tasks: Determine which tasks are most important and tackle them first.
Create a schedule: Break down tasks into smaller, manageable chunks and create a schedule that allows you to complete them on time.

- Minimize distractions: Identify potential distractions, such as social media or email, and find ways to minimize their impact on your work.

In conclusion, soft skills are critical for software engineers to succeed in today's collaborative, fast-paced industry. By focusing on communication, collaboration, problem-solving, and time management, software engineers can enhance their ability to work effectively with others and deliver high-quality software solutions.
A Gathering of revit files
Tags: revitapi, pathlib, beginners
Published: 2023-04-02 11:32:14


# Problem

I wanted to  update my Revit template based on all the Revit projects I have done previously in the past.

The challenge I encountered was that the Revit files were scattered in several folders of sub folders of subfolders. Retrieving them would be a lot harder and a tedious work.

Besides that, Some Revit files  are back-up files that are currently consuming  unnecessary storage space. Filtering through to get the latest native Revit files would be a lot harder.

Below is a script that I developed that would assist gather all Revit files in a project directory

### Scripting process

Import pathlib module

```
import pathlib
```

Establish the project directory. In this case a project directory is the root folder for all your architectural projects

```
# path to my desktop
start_path = "/mnt/d/New folder"
start_path_obj = pathlib.Path(start_path)
```

Create a new directory where you would like to store your revit files

```
# create new folder
new_path = pathlib.Path(f"{start_path}/Revit-bastards")
new_path.mkdir(exist_ok=True )
```


Defining a function that would establish if a file is a revit file, if it is a revit file will be moved to a new directory/ folder specified above


```
def check_move_files(path,new_path) -> None:
    """check if file is  png it then moves to a separate folder

    Args:
        path (Path): path of the current folder/file/directory

    """

    if path.suffix == ".rvt" or path.suffix == ".txt":
        # create a new path for the level_1 
       new_filepath = new_path.joinpath(path.name)
    
       #move files
       path.replace(new_filepath)

```


We can start scanning across for the revit files,incase we encounter a folder, we will open the folder and check for the revit files level 1....level 2....level 3

We can scan for files until the script is done.

```
# starting level
for level_1 in start_path_obj.iterdir():
    if level_1.is_file():
        check_move_files(level_1,new_path)

    # level 1
    else:
        level_1_path = start_path_obj.joinpath(level_1)
        for level_2 in level_1_path.iterdir():
            if level_2.is_file():
                check_move_files(level_2,new_path)
            #level 2
            else:
                level_2_path = level_1_path.joinpath(level_2)
                for level_3 in level_2_path.iterdir():
                    if level_2.is_file():
                        check_move_files(level_3,new_path)
```

To check the full script, checkout :
https://github.com/symonkipkemei/mover

if you encounter any challenges, feel free to leave an issue:
https://github.com/symonkipkemei/mover/issues

Thank you!!
React Native Framework
Tags: reactnative
Published: 2023-04-02 11:18:05

Hi all. I'm still new in react-native. I found out a lot of ways to do press-to-other-screen example and each using different implementation. Another example, some developer keep all components, screens, folder in src and some just ./ same directory in app.js.

My question is, is there a way the best standard of code template out there? What I mean is example Laravel. out of the box it have simple example and developer can start by following standard code, folder/files name and infrastructure.
Launch an Amazon EC2 instance
Tags: bytewise, 100daysofcode, aws, ec2
Published: 2023-04-02 10:50:01

**Step # 1:**

- Search for EC2 in the search bar of console and select the first option.

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

**Step # 2:**

- Now click on the launch instance as shown below:

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

**Step # 3:**

- Write down the name of the server you want to create i.e server01. Now scroll down a little and in the quick start section select Amazon Linux, there is subsection name Amazon machine image (AMI), there select an option of amazon linux 2 AMI as shown below:

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


**Step # 4:**

- In the key pair section select processed without key pair, it is recommended if you want to add security like private and public key to execute the application.

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

**Step # 5:**

- Now go to the Network section and click on the edit on the right side. In the type section select the HTTP option as shown below':

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

**Step # 6:**

- Now go to the advanced details and scroll down to the bottom, in the user data section, paste the code like shown below:
`#!/bin/bash`
`sudo yum update -y`
sudo yum install -y httpd
sudo yum install -y git
export META_INST_ID=`curl http://169.254.169.254/latest/meta-data/instance-id`
export META_INST_TYPE=`curl http://169.254.169.254/latest/meta-data/instance-type`
export META_INST_AZ=`curl http://169.254.169.254/latest/meta-data/placement/availability-zone`
cd /var/www/html
echo "<!DOCTYPE html>" >> index.html
echo "<html lang="en">" >> index.html
echo "<head>" >> index.html
echo "    <meta charset="UTF-8">" >> index.html
echo "    <meta name="viewport" content="width=device-width, initial-scale=1.0">" >> index.html
......
.....
echo "        </div>" >> index.html
echo "</body>" >> index.html
echo "</html>" >> index.html
`sudo service httpd start
`
**Step # 7:**

- At last review the summary on the right side and click on the launch instance. The instance will be launched successfully.
Now open the instance section and click on the server created in order to check the status, as shown below:

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

**Step # 8:**

- After some time the instance will start running. The public IPV4 DNS will be provided in order to check the instance details, like in my case I have below link:
http://ec2-3-86-106-163.compute-1.amazonaws.com/

After clicking on the above link it give below details:

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

It shows the successful creation of the instance along with the region given.
Ăn Chay Trường Là Gì? Lợi Ích Của Chế Độ Ăn Chay Trường
Published: 2023-04-02 10:25:51

Nếu bạn đang tìm kiếm một lối sống lành mạnh và đang quan tâm đến ăn chay trường, thì đây chính là bài viết dành cho bạn. Kiến Thức Ăn Chay sẽ giúp bạn khám phá tìm hiểu [ăn chay trường là gì](https://kienthucanchay.com/an-chay-truong-la-gi/)? Lợi ích và những điều cần biết về ăn chay trường để giúp bạn đưa ra quyết định thích hợp cho sức khỏe và phong cách sống của mình.
MrBestGarden.com - Your Go-To Site for Expert Gardening Product Reviews
Published: 2023-04-02 10:19:47


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

Discover the best gardening and farm products with MrBestGarden.com ✔️ Read our expert evaluations to make informed purchases ✔️Trust us for the best advice✔️

Website: https://mrbestgarden.com/
Address: 247 S Alaska St, Palmer, AK 99645, USA
Email: contact@mrbestgarden.com

Follow Me:
https://drive.google.com/drive/folders/1r9Ka3rBD4eEkqrBouop6LHggyXh4uRYd
https://docs.google.com/spreadsheets/d/1LulXSrhBfj11NMHzkpbcKwRS99U0irOxXBGm1V9rcFM/edit?usp=sharing
https://docs.google.com/document/d/1HS_-0ZR0qNdqSezqHCgfU48y6F2FAGX_hhjOLbHOdRs/edit
https://docs.google.com/presentation/d/1nPHdNi7L7OU8yhGBN_s9DZOFL3e3w2rpSWI6YselpjE/edit?usp=sharing
https://forms.gle/rXxHosExdpfdSPh67
https://docs.google.com/drawings/d/1DiwU5-QXMfaqg88WYFD9hlphGlU59f2I_QuhAHglVLI/edit?usp=sharing
https://www.google.com/maps/d/edit?mid=13zaB98ZFjesEY2qn2QIaOOCwl8bZRl0&usp=sharing
https://sites.google.com/view/mrbestgardencom
https://twitter.com/mrbestgarden
https://www.facebook.com/mrbestgarden88
https://www.pinterest.com/mrbestgarden/
https://www.instagram.com/mr_best_garden
https://www.youtube.com/channel/UCMA7ckfNKEjThhsZ_9Xo-Rg
https://www.tumblr.com/mrbestgarden
https://getpocket.com/@982T0Ajkgb407pcU93dY25ed6ep6gv1fv6fm47i5cHI9bOQS681a2t4fB77mnao8?src=navbar
https://mrbestgarden.wordpress.com/
https://mrbestgarden.blogspot.com/
https://www.blogger.com/profile/16476121383100405448
https://mrbestgarden.weebly.com/
https://www.instapaper.com/p/12227948
https://www.linkedin.com/in/mrbestgarden/
https://trello.com/u/mrbestgardenentity/activity
https://www.diigo.com/user/mrbestgarden
https://slides.com/mrbestgarden
https://solo.to/mrbestgarden.com
https://scrapbox.io/mrbestgardenent-18002415/
https://wakelet.com/@MrBestGarden514
https://pantip.com/profile/7491281#topics
https://mrbestgarden.bloggang.com/
https://heylink.me/mrbestgarden.com/
https://boosty.to/mrbestgarden
https://velog.io/@mrbestgarden
https://pbase.com/mrbestgarden/profile
https://plaza.rakuten.co.jp/mrbestgarden/
https://matters.news/@mrbestgarden
https://penzu.com/p/df7f15c2
https://profile.ameba.jp/ameba/mrbestgarden/
https://peatix.com/group/12222276/view
https://peatix.com/user/16676647
https://github.com/mrbestgarden
Graph query your data in REST API without GraphQL
Tags: graphql, api, javascript, npm
Published: 2023-04-02 10:07:37

## API-Graph
Specify exactly what you want from the API.

## Why
![why to use GraphQL](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ckxlpxcb8nvxd2m6e1ok.jpg)

Use `graph queries` in your rest API `without the need for graphQl` and `without editing any parts of your logic in the endpoints code`, it just works, but adding `one middleware` in your app.

## Installation

    npm install api-graph

## Usage

To use this package, you will need to import it and use it as middleware in your express application. Here is an example of how to use it:

```
import apiGraph from "api-graph";
import express from "express";

const user = {
  id: 1,
  name: "ahmed",
  age: 23,
  photos: [
    { id: 1, path: "img1" },
    { id: 2, path: "img2" },
  ],
};

const app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(apiGraph({ extract: "graph" }));
app.get("/", (req, res) => res.json(user));
app.listen(3000, () => console.log("server running at 3000"));
```

Then you pass what fields you want to return in body fields when you request the endpoint

```
body : { graph : "{id, name}" }
```

and that's it, only the name and id will be returned from the endpoint

## Postman
An image that showing sending a request from postman

![an image that showing sending a request from postman](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/017x69b8puo9c610yzml.png)

How it works
The imported middleware `apiGraph` which is the main function that must add to the app, it takes one parameter the extract which is the key that the server will look at when trying to get the query send from the client, and the `default` value for it is `graphQuery`. The server then gets the values from the key to parse it and extract data from the object that was passed to `res.json` function, in case no query was sent from the client then the whole data will be returned.

## Errors

- property not found in case you were trying to ask for fields in the data that are not exits.
- Parsing error in case you send an invalid query.

## Links
Feel free to take look at api-graph sites in [GitHub](https://github.com/ahmed-sudani/api-graph) and in [NPM](https://www.npmjs.com/package/api-graph)
Using AI to learn
Tags: ai, learning, programming, study
Published: 2023-04-02 09:50:01

With the development of AI, now you can have a personal mentor. You can ask any questions to learn faster anything.

## How to ask?

There are some secrets you can find out from AI yourself. Even you can ask a simple question like this:

> How do I ask questions for AI bots to learn computer programming?

## Bard response:

> Ask open-ended questions. These are questions that don't have a simple yes or no answer. They require the AI chat boat to think critically and provide a more detailed response. 

> For example, you could ask "What are the different types of programming languages?" or "What are the benefits of using a programming language?"

> Ask questions that require the AI chat boat to explain something. This could be something as simple as asking "What does this code do?" or "How does this algorithm work?" 

> Asking these types of questions will help the AI chat boat to better understand the concepts you're trying to teach it.

> Ask questions that require the AI chat boat to apply its knowledge. This could be something like asking "How would you use this programming language to solve this problem?" or "How would you use this algorithm to make this decision?" 

> Ask questions that require the AI chat boat to apply its knowledge. "How would you use this algorithm to make this decision?" Asking these types of questions will help the AI chat boat to better understand how to use its knowledge in real-world situations.

## Warning:

It's also important to be patient when asking questions of AI chat boats. They are still under development, and they may not always be able to answer your questions perfectly. However, if you provide them with clear and concise questions, they will be able to learn and improve over time.

---

**Disclaim:** I have used Bard to create this article. This demonstrate how useful the AI can be, to improving your skills in programming, when you ask the questions rigt.

---

Be happy, have fun and prosper. 🖖🏼
Quick Interview Crack (Two Pointers Technique)
Published: 2023-04-02 09:46:32

Two pointer technique is commonly used to find a specific pairs of an sorted array or update respectively. 

It is basically searching in an array using two pointers. One at the beginning and one at the end. 

Let's look at a commonly given interview problem. Suppose, an array and an integer is given and we have to find a pair from the given array which sum is equal to the given integer. 

In order to find the pair first we need to sort the array. Then set two pointers and check if sum of their value is equal to the given integer or not. If yes, return the pair. Otherwise, if sum is greater than target, decrement the end pointer else, increment the beginning pointer. End the loop if the pointers meet together. Pseudo code is given below for better understanding. 

```
array.sort()
initialising Pointer One = 0
initialising Pointer Two = size of array - 1
while pointer one is not pointer two {
    sum = sum(array[pointer one], array[pointer two])
    if sum == target {
        return array[pointer one], array[pointer two]
    } else if sum<target {
        increment pointer one  
    } else {
        decrement pointer two
    }
}
```
Time Complexity:
For sorting the given array, time complexity is O(NlogN). And searching for pairs using two pointers, O(N). 

Total time complexity: O(NlogN) + O(N) = O(NlogN)
Binance Clone App Development
Tags: binance, binanceclone, javascript, webdev
Published: 2023-04-02 09:37:07

Opris offers the best [binance clone app development solution](https://opris.exchange/binance-clone-script) with a fully-functional binance clone script and source code that can be fully customized.

Get Your [binance clone app](https://opris.exchange/binance-clone-script) with multiple crypto and fiat payment gateway integrated specially for asian countries in Android, iOS apps, and exchange Website.

[Connect to WhatsApp](https://api.whatsapp.com/send/?phone=%2B919994248706&text&type=phone_number&app_absent=0)
rdidetailing
Published: 2023-04-02 09:34:16

[coating surrey](https://www.rdidetailing.ca/about-ceramic-coating-surrey)
Are you tired of your vehicle's paint job looking dull and lackluster? Look no further than RDI Detailing Company in Vancouver! Our team of experts specializes in the ceramic coating, paint protection, paint correction, and detailing with the highest quality products. Drive away with a stunning finish that will turn heads on the road. Contact us today to schedule your appointment!
100 Days of Code: The Complete Python Pro Bootcamp for 2022 - Day 4 (Rock Paper Scissors)
Published: 2023-04-02 08:58:05

Excercise 4.1 Heads or Tails
```python
import random

random_side = random.randint(0, 1)
if random_side == 1:
print("Heads")
else:
print("Tails")
```
Exercise 4.2 Banker Roulette
```python
When running the code it will ask for a seed number. import random

List of names to use are Angela, Ben, Jenny, Michael, Chole

import random

🚨 Don't change the code below 👇
test_seed = int(input("Create a seed number: "))
random.seed(test_seed)

-Split string method
names_string = input("Give me everybody's names, separated by a comma. ")
names = names_string.split(", ")
🚨 Don't change the code above 👆

Write your code below this line 👇

-Get total items in a list using len().
num_items = len(names)

-Generate random numbers between 0 and the last index
random_choice = random.randint(0, num_items -1)

-Pick a random person to pay selected from random_choice
pay_the_bill = names[random_choice]

print(pay_the_bill + " is going to buy the meal today!")
```
Exercise 4.3 Treasure Map
```python
row1 = ["⬜️","️⬜️","️⬜️"]
row2 = ["⬜️","⬜️","️⬜️"]
row3 = ["⬜️️","⬜️️","⬜️️"]
map = [row1, row2, row3]
print(f"{row1}\n{row2}\n{row3}")

position = input("Where do you want to put the treasure? ")

-write your code below
horizontal = int(position[0])
vertical = int(position[1])

map[vertical - 1][horizontal - 1] = "X"
-write your code above
```
Project 4 Rock Paper Scissors
```python
import random

rock = '''
_______
---' _)
()
()
()
---.(__)
'''

paper = '''
_______
---' _)_
___)
_)
_)
---._______)
'''

scissors = '''
_______
---' _)_
___)
____)
()
---.(__)
'''
# Write your code below this line 👇
game_images = [rock, paper, scissors]

user_choice = int(input("What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.\n"))
print(game_images[user_choice])

computer_choice = random.randint(0, 2)
print("Computer chose:")
print(game_images[computer_choice])

if user_choice >= 3 or user_choice < 0:
  print("You typed an invalid number, you lose!")
elif user_choice == 0 and computer_choice == 2:
  print("You win!")
elif computer_choice == 0 and user_choice == 2:
  print("You lose")
elif computer_choice > user_choice:
  print("You lose")
elif user_choice > computer_choice:
  print("You win!")
elif computer_choice == user_choice:
  print("It's a draw")
```
Mortlach 12 - Whisky giành cho giới thượng lưu thế hệ mới | Avino Wines
Published: 2023-04-02 08:45:32

Chào mừng Quý khách đến với Avino Wines, nơi đem đến cho bạn những sản phẩm rượu ngoại chất lượng nhất từ khắp nơi trên thế giới. Trong video này, chúng tôi xin giới thiệu đến bạn sản phẩm Mortlach 12 - một loại whisky đẳng cấp, được sản xuất bởi một trong những nhà máy chưng cất whisky nổi tiếng nhất ở Scotland. Mortlach 12 là một loại whisky đầy mạnh mẽ, đậm đà và mang lại cảm giác đắm say ngay từ cái nhìn đầu tiên. Điểm nổi bật của Mortlach 12 là quá trình chưng cất đặc biệt và được thực hiện bằng tay, đem lại hương vị độc đáo và khác biệt so với những loại whisky khác. Nếu bạn là một người yêu thích rượu ngoại và mong muốn tìm kiếm một loại whisky đặc biệt để thưởng thức hoặc làm quà tặng cho người thân, Mortlach 12 sẽ là sự lựa chọn hoàn hảo. Với một mức giá phù hợp với chất lượng, Mortlach 12 sẽ mang đến cho bạn những trải nghiệm tuyệt vời. Hãy ghé thăm Avino Wines để khám phá thêm về Mortlach 12 và những sản phẩm rượu ngoại cao cấp khác. Chúng tôi cam kết mang đến cho bạn những sản phẩm chất lượng nhất với mức giá cạnh tranh nhất. Cùng trải nghiệm hương vị độc đáo và tuyệt vời của Mortlach 12 tại Avino Wines ngay hôm nay.
https://www.youtube.com/watch?v=JWUwtoBm4Fo