teleren/devto huggingface dataset:
First week in a Software development apprenticeship
Tags: beginners
Published: 2023-03-12 20:28:01

Hello there, fellow developers!

I just finished my first week at Discovery Partners Institute's Software Development Apprenticeship program, and I wanted to share my experience with you.


Before we dive in, I want to clarify that this isn't a bootcamp.  Instead, it's an immersive learning program designed to teach individuals of all levels and backgrounds how to become a software developer.

The first week of the program was mainly focused on orientation and administrative work, including introductions, icebreakers, and team-building exercises. However, we also had the opportunity to learn about foundational skills, essential habits and traits that are crucial in the professional workspace.

One of the highlights of the first week was the module titled "Figuring out your why," which was an assignment designed to create a mission statement that clarifies your purpose or your why.  Your reason for choosing the path of a software developer. 

Throughout the week, we were provided with tons of resources and helpful information that will undoubtedly come in handy as we progress through the program.  We also had the opportunity to connect with industry professionals and experienced developers who were eager to share their knowledge and expertise with us.

Overall, I had a fantastic experience during my first week at the Discovery Partners Institue Software Development Apprenticeship program.  I'm excited to continue learning and growing as a developer and can't wait to see what the rest of the program has in store for me.

If you're interested in pursing a career in software development, I highly recommend checking out Discovery Partners Institute's Apprenticeship program.  Trust me, it's worth it!
SELinux Nasıl Kapatılır?
Tags: linux, selinux, centos, ubuntu
Published: 2023-03-12 20:26:25

**SELinux**, **Linux** dağıtımlarında ek bir güvenlik protokolü modülüdür.

**SELinux** mevcut olarak üç adet duruma sahiptir;

- **Enforcing**: İzinsiz bütün erişimler yasaklanır. Bu duruma aktif SELinux da denmektedir.
- **Permissive**: SELinux uyarılar verir. İlk durumun aksine bu durumda izinsiz erişim mümkündür ancak uyarı gösterilmektedir.
- **Disabled**: SELinux tamamen devre dışıdır ve uyarısız bütün erişimlere izin verilir.

Bazı durumlarda SELinux'u geçici veya kalıcı olarak kapatma ihtiyacımız olabilmektedir.

Mevcut durumu görüntülemek için;

```
sestatus
```

Eğer geçici olarak kapatmak istiyorsak terminal ekranında aşağıdaki komutu uygulamamız yeterlidir.

```
setenforce 0
```

Eğer kalıcı olarak kapatmak istiyorsak;

**CentOS** için;

```
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
sed -i "s/SELINUX=permissive/SELINUX=disabled/g" /etc/selinux/config
```

**Ubuntu** için;

```
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/semanage.conf
sed -i "s/SELINUX=permissive/SELINUX=disabled/g" /etc/selinux/semanage.conf
```

Kısacası dosya yolu değişiyor. Sadece SELINUX parametresine disabled değerini veriyoruz. Metin editörü ile açıp düzenlemek isterseniz siz bilirsiniz, ben **sed** ile iki saniye terminale komutları yapıştırıp geçiyorum.

Ha unutmadan, SELinux'u kalıcı olarak kapattıktan sonra Türk usülü bir reboot atıyorum cihaza, varsa sorunlar çözülsün diye :)
Communication in Tech (survey results)
Published: 2023-03-12 20:24:47

Communication is important, everyone will tell you that, every position will require it in the postings… but how important is it really? And, how are we communicating exactly?

A couple of weeks ago I shared a survey, today we have the results.

## About the questions

It should have been obvious the why of the questions, but here we go:

Seniority as far as we understand means that the more you have, the more you are probably gonna spend communicating. If you’re in a manager position, then all the more communicating.

Then we have how we are working. It’s maybe impossible to have face-to-face if you’re fully remote, but does that mean you only use face-to-face when in the office?

Finally, for the required questions… the probable channels of communication and how much of the time they impact.

For the optional ones… my thinking is that maybe age and gender might have some impact on how people communicate. And finally, that type of employment might also show us something (in this case, by the time of creating the survey, I was thinking more about the difference between freelancers vs employed people)

## Here are my insights

Up to this point, I had written a few weeks back and here would be where I would pick any insights but…

[As you can see…](https://docs.google.com/forms/d/1UjWdNTWXCVgYwV1RVWUh-agZAZOtaWxsANG2iUhdu4g/viewanalytics) not enough responses to try to have meaningful insight.

So, I just left it open to more answers and to check out the results. If it ever reaches any meaningful number of answers I might revisit it, but feel free to use the results any way you see fit.

If you want to share this survey: [https://forms.gle/eNtWjYh9qnxCWrJf8](https://forms.gle/eNtWjYh9qnxCWrJf8)
🎨💻 CSS Clip Path: Understanding its Benefits and Use Cases 🎨💻
Tags: css, webdev, tutorial, beginners
Published: 2023-03-12 20:21:03

## Introduction

Ready to revolutionize your web design game? CSS clip path is here to help! In this blog post, we'll explore its benefits, use cases, and practical examples to take your designs to the next level. Whether you're a beginner or a pro, let's dive into the wonderful world of CSS clip path! 

## What is CSS clip-path?

`clip-path` is a CSS property that clips an element to a specific shape, allowing us to create unique shapes, masking effects, and cut-outs on elements. It accepts various shapes like circles, polygons, and custom paths.

## Practical Use-Cases

- Custom shapes for elements
- Image masking and frames
- Creating geometric shapes
- Cut-out text effects
- Creating polygonal shapes
- Creating interactive hover effects

## Important CSS Functions for Creating Different Shapes with `clip-path`

1. `circle()`
   - Defines a circle using a shape radius and a position.

![Defines a circle using a shape radius and a position.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7m3ip6xjynm2ds103w15.png)

2. `ellipse()`
   - An ellipse is a squashed circle and acts in a very similar way to a `circle()`. Except that we have to specify two radii `x` and `y`.


![An ellipse is a squashed circle and acts in a very similar way to a `circle()`](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tzs820gwpji05pxy603i.png)


3. `polygon()`
   - Creates a polygon shape by specifying its vertices as a series of `x` and `y` coordinate points.

![Creates a polygon shape by specifying its vertices as a series of `x` and `y`](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/igiow98ft63wt5l6r1h7.png)

## Codepen Examples

Here are some Codepen examples that demonstrate the `clip-path` property and its functions:

- `circle()`: [https://codepen.io/almonteluis/pen/yLxvoeb](https://codepen.io/almonteluis/pen/yLxvoeb)
- `ellipse()`: [https://codepen.io/almonteluis/pen/ExeQvVE](https://codepen.io/almonteluis/pen/ExeQvVE)
- `polygon()`: [https://codepen.io/almonteluis/pen/LYJQjGg](https://codepen.io/almonteluis/pen/LYJQjGg)

## Conclusion

`clip-path` is a powerful CSS property that can be used to create unique shapes, masking effects, and cut-outs on elements. By using the `circle()`, `ellipse()`, and `polygon()` functions, you can create a variety of
Release 0.10.0 of stevedore - minor feature enhancement
Tags: docker, stevedore, cli, ignore
Published: 2023-03-12 20:09:51

---
title: Release 0.10.0 of stevedore - minor feature enhancement 
published: true
description: introducing use of a global, host/user based configuration file
tags: docker, stevedore, cli, ignore
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-03-05 17:27 +0000
---
I have just finalized and released [version 0.10.0](https://github.com/jonasbn/stevedore/releases/tag/v0.10.0) of the [stevedore command line tool](https://github.com/jonasbn/stevedore), to assist in handling Docker ignore files.

The most recent feature addition is the detection and use of a global configuration file.

The file should be named: `config.json` and should reside in the directory `$HOME/.config/stevedore/`. The file can contain presets for most of the common command line arguments, so these will not have to be entered upon every invocation, when jumping between projects.

Example:

```json
{
    "$schema": "stevedore-config.schema.json",
    "color": true,
    "debug": false,
    "excluded": false,
    "fullpath": true,
    "ignorefile": ".stevedoreignore",
    "included": false,
    "invertcolor": false,
    "verbose": false
}
```

The configuration can be overwritten by the local configuration file introduced in release 0.9.0 and of course the command line flags, used upon each invocation.

I have decided to follow the: ["XDG Base Directory Specification"](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). So if you want your global configuration file to reside else where, you can point to this using the environment variable: `$XDG_CONFIG_HOME`.

Do note `stevedore` does not support: `XDG_CONFIG_DIRS` at this point in time.

[As stated](https://dev.to/jonasbn/release-090-of-stevedore-minor-feature-enhancement-55kn) I am not sure I will keep the configuration file in JSON format, since it is much more suitable for data transport, so I am still considering YAML.

Feedback and suggestions most welcome. Releases should be [available for download for most platforms](https://github.com/jonasbn/stevedore/releases/tag/v0.10.0).

Or you can install using Go:

```shell
go install github.com/jonasbn/stevedore@v0.10.0
```
Linux Sunucularda Varsayılan Metin Editörünü Değiştirmek
Tags: linux, centos, ubuntu, nano
Published: 2023-03-12 20:04:41

_**Linux** sunucularda **Nano** editörü varsayılan olarak nasıl ayarlanır? **Centos** veya **Ubuntu** varsayılan **metin editörü** nasıl değiştirilir?_

Emin olun, bu soruları Google'a yazmaktan daha kısa bir şekilde çözmenin yolu var :)

### Nano Metin Editörünü Varsayılan Olarak Ayarlamak

- Terminali açın ve SSH ile sunucunuza bağlanın.
- Root dizininizde yer alan `.bashrc` dosyanızı nano ile açın.
- Aşağıdaki konfigürasyonu dosyanın en sonuna yeni satır olarak ekleyin;
  - `export EDITOR='/usr/bin/nano'`
- Profil dosyanızı aşağıdaki komut ile yeniden okuyun veya çıkış yapıp tekrar giriş yapın.
  - `source ~/.bashrc`

Eğer ZSH kullanıyorsanız dosyanız `.zshrc` olmalı. 

**Vim** metin editörü fanları gelmeden yazıyı burada sonlandırıyorum.

-,-
Error: "Unique index or primary key violation:"
Tags: jpa, hibernate
Published: 2023-03-12 20:04:10

Error due to manual insertion of values setting the primary keys in the data.sql file.

FAILURE example:
`INSERT INTO role (id, roleName) VALUES (1, 'admin'), (2, 'user');`

WORKING example:
`INSERT INTO role (roleName) VALUES ('admin'), ('user');`

Setting the ids manually only let us persist data from the last added row, all the previous ones will return you a `Unique index or primary key violation:` error. 
So, for example, if we have 3 rows added in our data.sql, only the 4th persist operation will succeed.
Help for C code
Tags: beginners, c
Published: 2023-03-12 20:03:26

I just want to make a program get current cursor position then store it in array then play reverse of event with a loop and SetCursPos function i tried some codes but still could not do it here is code: 

```
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


int main()
{
    POINT p;
    int arr[2];
    GetCursorPos(&p);
    arr[0] = p.x;
    arr[1] = p.y;

    int numPositions = sizeof(arr) / sizeof(p);
    for (int i = numPositions - 1; i >= 0; i--) {
        SetCursorPos(arr.[i].x, arr[i].y);
        Sleep(100);
}
}


```
and i tried another one too :

```
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

int main()
{
    POINT p;
    int arr[2] = {0};
    GetCursorPos(&p);
    arr[0] = p.x;
    arr[1] = p.y;
    int numPositions = sizeof(arr) / sizeof(int);
    for (size_t i = numPositions; i > 0; i--)
    {
        if (arr[i-1].x >= 0 && arr[i-1].x && (arr[i-1].y >= 0 && arr[i-1].y))
    {
    SetCursorPos(arr[i-1].x, arr[i-1].y);
    Sleep(100);
    }
    }
}




```
im confused how to do what i planned in my mind maybe there is better ways for create what i want pls help!
How to Auto-Populate the Billing Email Field in WooCommerce Checkout Page with the woocommerce_checkout_get_value Filter
Tags: woocommerce
Published: 2023-03-13 01:07:08

---
title: How to Auto-Populate the Billing Email Field in WooCommerce Checkout Page with the woocommerce_checkout_get_value Filter
published: true
date: 2023-03-12 19:51:56 UTC
tags: woocommerce
canonical_url: https://davidloor.com/2023/03/12/how-auto-populate-billing-email-field-woocommerce-checkout-page-woocommerce_checkout_get_value-filter/
---

![woocommerce](https://i0.wp.com/davidloor.com/wp-content/uploads/2023/03/Screenshot-2023-03-12-at-3.26.24-PM.png?resize=800%2C304&ssl=1)

The **woocommerce\_checkout\_get\_value** filter is a filter provided by the WooCommerce plugin for WordPress. This filter allows you to modify the value of a checkout field before it is displayed to the user during the checkout process.

The **woocommerce\_checkout\_get\_value** filter accepts two parameters:

1. $value (mixed): The current value of the checkout field.
2. $input (string): The name of the checkout field.

```
/**
 * Filter to alter the checkout field values.
 * @param $value
 * @param $input
 * @return mixed|string
 */
function filter_woocommerce_checkout_get_value( $value, $input ) {
    // if the field is the billing email field
    if ( 'billing_email' === $input ) {
        $current_user = wp_get_current_user();
	// if the current user is logged in, force the email to be the current user's email
	if ( $current_user->ID ) {
	    // get the user email
	    $value = $current_user->user_email;
	}
    }

    return $value;
}
add_filter( 'woocommerce_checkout_get_value', 'filter_woocommerce_checkout_get_value', 10, 2 );
```

In the code snippet above, we check if the current checkout field is the “billing\_email” field. If it is, the function gets the current logged-in user’s email address and sets it as the value of the “billing\_email” field. For guest users, it follows the default process of allowing them to enter the billing email field.

This is done to ensure that the user’s email address is correctly associated with the order. If you would like to hide the billing field and/or make it read-only, you can check this [post](https://dev.to/davo20019/what-is-the-woocommercecheckoutfields-filter-and-use-cases-woocommerce-13f2) where I explain how to do so with the **woocommerce\_checkout\_fields** filter.
Powershell ile RDP Port Değiştirmek
Tags: windows, remotedesktop, powershell
Published: 2023-03-12 19:45:28

RDP portunu değiştirmek için Regedit yolunu nasıl hatırlayabilirim?

Eğer benim gibi yüzlerce sunucu kuruyor veya yönetiyorsanız, RDP port değiştirmek için Regedit ve Windows Firewall üzerinden işlem yapmanız acı verici olabilir. Bu nedenle, bir powershell script hazırladım.

Powershell'i administrator olarak açın. Aşağıdaki komutları kopyalayın ve Powershell ekranına yapıştırın. Bu komutlar, RDP portu değiştirecek ve Windows Firewall için gerekli kuralları ekleyecek.

`portvalue` değişkenine dilediğiniz port numarasını yazabilirsiniz.

```
$portvalue = 3581
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue 
New-NetFirewallRule -DisplayName 'RDPPORT-TCP-In' -Profile 'Any' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue 
New-NetFirewallRule -DisplayName 'RDPPORT-UDP-In' -Profile 'Any' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue
```
Remote Desktop servisini yeniden başlatmayı unutmayın.

*_-
My Experience completing AWS Cloud Practitioner
Tags: aws, cloud, computerscience
Published: 2023-03-12 19:21:31

<!-- ✨This template is only meant to get your ideas going, so please change/add/remove these prompts as you wish! ✨ -->

####I am not going to explain what is AWS is and what is cloud computing and why someone need to prepare for the certification and how it will help in his/her career goals, if you landed on this page surely you already know cloud and AWS and have goal to do the certification.

#### First of all it is not easy, secondly it's not hard. Only thing you need to promise yourself is focus and dedication for at least 3 months. 
### Here are the steps i took to complete my AW Cloud Practitionare certification.

### 1. Create/Register account on AWS services: https://explore.skillbuilder.aws 

## 2. Complete the following course (will take you 6 hours) 
https://explore.skillbuilder.aws/learn/course/134/aws-cloud-practitioner-essentials
##  I would highly recommend #2 course before going further in this journey. Once you completed this course there are other courses you can enrol on the skillbuilder which will help you on the way.

## 3. Join following course on Udemy: 
https://fico.udemy.com/course/aws-certified-cloud-practitioner-new/learn/lecture/20587274?start=165#learning-tools

## 4. It is 14.5 hours ( 'Stéphane Maarek' ) course and it is very hands on course and it will give you in depth theoratical knowledge and practical knowledge at the same time.

## 5. After finishing #4 course you can join another course from same author 'Stéphane Maarek' where you can attempt 6 mock exams pretty close to the real exam. Keep trying them once you get 80% at least in each of them.

https://fico.udemy.com/course/practice-exams-aws-certified-cloud-practitioner/learn/quiz/4999374/results?expanded=900251726#overview

## 6. After completing all of the above courses you can register for the real exam from following link. I had choosen exam from home but you can choose what you feel better for you or as per your location and available choices. It's cost was $120 when i did in March 2023.

https://www.aws.training/Certification


## Thanks for visiting the post and reading. 

## Thanks for #Viktoria Semaan for her helpful tips.  
https://www.linkedin.com/in/semaan

## https://www.linkedin.com/in/muhammad-shamshad-habib-21791b5/

<!-- Once your post is published, it will not appear on the /t/wecoded page until an admin approves it. This is an extra step to ensure there is no abuse on this important tag. -->
ｓ　ｙ　ｌ　ｗ　エ　ｓ　ｔ　エ　エ　ｗ　オ　ｚ　ｎ　イ　ア　ｋ
Tags: codepen
Published: 2023-03-12 19:18:28

<p>ｐ　ｒ　オ　ｊ　エ　ｋ　ｔ　オ　ｗ　ア　ｎ　イ　エ　ｓｔｒ。ｗｗｗ。</p>

{% codepen https://codepen.io/sw06041981/pen/dyqdWgv %}
Symfony Chatbot with Chat-GPT (and other APIs...)
Tags: chatgpt, botman, symfony, php
Published: 2023-03-12 18:46:42

<div align="center">
  <h3>A symfony 6 Chatbot Demo using ChatGPT-3, Youtube, Giphy, WeatherStack apis...🇫🇷 🇺🇸</h3>
  <p>This is a symfony 6 Chatbot Demo by using [Botman](https://botman.io). <br>
  It can be used as Chatbot symfony 6 starter.</p>
  
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zaqe12wjgwrl4d0lx3n.png)
</div>

---
## GITHUB code
The project is here: https://github.com/jessicakuijer/ai-chatbot-ChatGPT. 

## DEMO live

[Demo deployed on Heroku](https://ai-chatbot.herokuapp.com) 
There's also a youtube video in french about it here: [Symfony Chat-GPT chatBot](https://www.youtube.com/watch?v=VhspfcfUTfM&t=473s) << 

This demo is password protected. Send me a request so I can create your credentials.  
[@jessica kuijer](https://www.linkedin.com/in/jessicakuijer/?locale=en_US)
## Install
```bash
composer install 
```
## Start
```bash
symfony serve -d
# open https://127.0.0.1:8000
```
On local (dev) environment, use mysql for your own use and then you can create admins with the command:
```bash
bin/console app:create:admin
```  
An invite in your terminal will ask for your credentials and password is hashed.

## Routes
You can access the main website and /login page only. (& /logout)  
Admins can access /chat page for using AI-chatbot.
## ChatBot Commands to test

- "hi" 
- "weather in london"
- "give me a gif mr bean"  
- "my name is john"
- "say my name"  
- "what's my name?" or "name"   
- "give me a youtube movie back to the future"
- "news trump"
- "weather in new york"
- THEN... ask for everything you want, AI chatGPT will give you answers.  🤖

## API used in POC (you have to get your own api keys as environnement variables)

[API Youtube data V3](https://developers.google.com/youtube/registering_an_application)  
[API Giphy](https://support.giphy.com/hc/en-us/articles/360020283431-Request-A-GIPHY-API-Key)  
[API OpenAI for ChatGPT-3](https://platform.openai.com)  
[API WeatherStack](https://weatherstack.com/)  
[API GNews](https://gnews.io/)  

Configure your environnement variables that you can find in services.yaml parameters and .env.local
How to easily manage your boilerplates and quickstart your projects
Tags: development, programming, boilerplates, tooling
Published: 2023-03-12 18:12:11

We as developers often need to create a brand new project which sometimes take long to setup it according to our needs and preferences.

In some cases, we have to literally spend hours configuring aux tools such as prettier, eslint, husky and so on.

To never experience that anymore, I developed a simple and powerful npm package, called [boilermanager](https://github.com/lucasvtiradentes/boilermanager), to help developers to manage their own boilerplates.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/99iegibp0r7vjrxj8r8s.gif)
Example: the above image shows this tool creating an electron typescript application with all tools configured in less than one minute

## How to use it
To use this tool, you have to install Node.js and Git.

After have those softwares installed, simple install the package globally in your computer by running this command:

```bash
npm install boilermanager -g
```

After that you can simple run any of the following options it the folder you want to create a new boilerplate project:

```bash
# you can either use "bpm" or "boilermanager"

bpm                      # will show all the nodejs default boilerplates
bpm -r [user/repository] # will show the boilerplates available in the specified repository
bpm -f [folder]          # will show the boilerplates available in the specified folder
```

## How to use it with my onw boilerplates?

I have created a [basic boilerplates repository template](https://github.com/lucasvtiradentes/boilermanager-boilerplates-template), so you can understand how to setup your own projects the way boilermanager will accept.

In general, you’ll have to:

- [Fork](https://github.com/lucasvtiradentes/boilermanager-boilerplates-template/fork) or [Copy](https://github.com/lucasvtiradentes/boilermanager-boilerplates-template/generate) this project to your github;
- Clone into your local machine and put your boilerplates according to this repository;
- Push the changes to your github remote repository, lets say it is `githubuser/yourboilerplates`
- Load your repository, by running:

```bash
bpm -r githubuser/yourboilerplates
```

## Final words

This project initially was meant to be used for Node.js related projects, but it also can be used for any other technologies. I’m even going to add Golang boilerplates (in other repository) in the future, when I become more proficient at it.

## Related


👉 If you want to check the repository source code, it is [here](https://github.com/lucasvtiradentes/boilermanager);
👉 You can also find the default boilerplates available [here](https://github.com/lucasvtiradentes/boilermanager-boilerplates);
👉 See also all [my projects](https://github.com/lucasvtiradentes/lucasvtiradentes/blob/master/portfolio/PROJECTS.md#TOC)
👉 See also all [my tutorials](https://github.com/lucasvtiradentes/my-tutorials/blob/master/README.md#TOC)