teleren/devto huggingface dataset:
Liman Cihaz Yönetim ile Yerel Güvenlik Duvarı Ayarları
Published: 2023-05-18 07:34:37

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili makineye sağ tıklanır ve **Güvenlik Duvarı** sekmesine tıklanır.
- Eğer güvenlik duvarı aktif olmayan durumda ise, "Güvenlik Duvarı Durumu, Cihazın güvenlik duvarı kapalı görünüyor." mesajı ekranda belirir.

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

- "Açmak için <u>buraya</u> tıklayın." yazısındaki mavi <u>buraya</u> yazısına tıklanır.
- Böylece cihazın güvenlik duvarı arayüzden açılmış olur.

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

- Sağ üstte bulunan "+" butonuna tıklanır ve İsim, IPAdresi(zorunlu değil), Portlar, Protokol, Yön, Eylem bilgileri girilir. 


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

- **Ekle** butonuna tıklanır ve güvenlik duvarı kuralı eklenir.


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

- Daha sonra 22 portundan yani SSH ile bu makineye uzaktan bağlanılmaya çalışıldığında bağlanılamadığı görülecektir.
Adding CI for projects
Tags: osdc, githubactions
Published: 2023-05-18 07:23:16

Hi all,
As part of the OSDC course, we were asked to add continues integration (CI) for an open source project.
I chose [Penn ](https://github.com/interactiveaudiolab/penn) since it have tests but didn't have any CI configured.
These are the steps to add the CI to the project:
1) Fork the project so you can edit it
2) Add an Action -> Continues integration -> Python project, which contains a good starting point for both installation and testing the repository
3) I changed the file so it would fit the installations requirement and added the pytest command like this:
# This workflow will install Python dependencies and run tests with a single version of Python for Penn repository

name: Testing Penn

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

permissions:
  contents: read

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python 3.10
      uses: actions/setup-python@v3
      with:
        python-version: "3.10"
    - name: Install dependencies
      run: |
        pip install -r requirements.txt && pip install -e .
        pip install pytest
    - name: Test with pytest
      run: |
        pytest
4) To activate the workflow, you need to select it from the Actions menu and run it manually.
That's it.. 
Cheers,
Freddy
Go SDK!
Tags: pebl, devops, cloud, go
Published: 2023-05-18 07:19:48

Release 0.0.3 now includes support for Go!

## Quick Summary

Pebl now supports projects in Go! Update to the latest CLI and [follow this guide](https://docs.pebl.io/guides/go/service) to get started.

## Longform

At pebl we often talk about creating a full abstraction layer for the cloud. And at the core of this idea is that we can provide the full set of cloud capabilities through a programmatic binding, allowing developers to encode their infrastructure as code. An important mark of whether this is feasible is by expanding the set of languages that we support.

So we are very excited to release pebl's Go SDK, meaning that you can now incorporate pebl's cloud capabilities into your Go projects!

## Short Example

The Go SDK is available as a [public package](https://pkg.go.dev/github.com/peblcloud/go/sdk).

Simply run `go get github.com/peblcloud/go` and incorporate in your app:

```go
package main

import (
    "net/http"
    "github.com/peblcloud/go/sdk"
)

func main() {
    service := http.NewServeMux()

    service.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("hello, world!\n"))
    })

    sdk.Service(service, "hey.pebl.rocks")
}
```

To run, use the familiar `pebl run` cli command at the root of the project. Note that unlike Python projects, Go projects do not require a Dockerfile!

For a more detailed tutorial of using pebl's Go SDK, check out our [guided example](https://docs.pebl.io/guides/go/service).

## Python

A short note on the Python SDK, we have expanded the set of base images available for your use! Now you can combine the desired pebl SDK version (latest is 0.0.3) with the desired Python version (3.10, 3.11, 3.12). You can find more information on our [peblcloud dockerhub](https://hub.docker.com/r/peblcloud/python).
Non-maleficence
Tags: ai, ethics
Published: 2023-05-18 07:19:03

- The principle of beneficence says “do good”, while the principle of non-maleficence states “do no harm”.

- AI ethics aims to **mitigate ethical risks**, such as discrimination and privacy, and physical and social harm, in AI applications, with a primary focus on non-maleficence.

- **Moral problems are seen as things that can be solved by technical “fixes”, or by good design alone.**

- Technical systems often ignore issues covering wider ethical and societal context that direct the control, governance and societal dimensions.

- Consider whether the city’s health care organisation should move from “reactive” to “preventive” healthcare.
    - Benefits
        - Sickness prevention has a lot of potential to improve the health and quality of life for citizens
        - Allows better impact estimation and planning of basic healthcare services
        - Potential to significantly reduce social and healthcare costs
    - Problems
        - The systems raise a number of legal and ethical issues regarding privacy, security, and the use of data
            - Where is the border between acceptable prevention and non-acceptable intrusion?
            - Does the city have a right to use private, sensitive medical data for identifying high-risk patients?
            - How is consent to be given, and what will happen to people who don’t give their consent?
            - What about those people who do not give consent because they are not able to?
        - Raises the fundamental question of the city’s role
            - If the city has information about a potential health risk and does not act upon the data, is the city guilty of negligence?
            - Are citizens treated equally in the physical and digital worlds?
            - If a person passes out in real life, we call an ambulance without having explicit permission to do so.
        - In the digital world, privacy concerns may prevent us from contacting citizens

    -  If your answer is something like “yes, the city should seek an ethically and legally acceptable way to use those methods – there are so many advantages compared to the possible risks”, you were probably using a form of moral reasoning called "utilitarianism".

Ref. : [Ethics of AI](https://ethics-of-ai.mooc.fi)
Liman Cihaz Yönetim ile Ağ Arabirimlerinin Takibi
Published: 2023-05-18 07:12:39

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili makineye sağ tıklanır ve "Ağ" sekmesine girilir.
- Fiziksel Ağ Adaptörleri, Ad, MAC Adresi ve MTU başlıkları dahilinde listelenir.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h4qva24ggb1go9vxox0f.png)
Liman Cihaz Yönetimi ile Windows Makinelerin İzlenmesi
Published: 2023-05-18 07:04:24

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili sunucunun solunda bulunan monitör logosu yeşil renk ise sunucu aktif, kırmızı ise pasif demektir.


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

- İlgili sunucunun solunda bulunan monitör logosuna tıklanır ve drop-down olarak ilgili cihaza ait işlemler gerçekleştirilip yönetilir.

- "Genel Bakış" başlığına girilir ve Ürün Adı, Üretici, İşlemci Modeli, İşletim Sistemi, Masaüstü Ortamı, Domain,Aajan Sürümü, Son Güncelleme Tarihi, CPU Kullanımı, RAM Kullanımı ve Disk Kullanımı başlıkları dahilinde linux bir makinenin izlenmesi sağlanır.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gwjp1398j1xltnoqdj9n.png)
Liman Cihaz Yönetim ile Açık Portların Takibi
Published: 2023-05-18 07:04:15

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili makineye sağ tıklanır ve **Açık Portlar** sekmesine girilir.
- Açılan ekranda Durum, Aile, Kaynak Adres, Kaynak Port, Hedef Adres, Hedef Port başlıkları dahilinde açık olan portlar listelenir.


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

- Ek olarak yeni bir port açıldığında güncelleme gerçekleşecektir.
- Bunun için ilgili makinede şu komut çalıştırılır:

```
python3  -m http.server 8888
```
- **Açık Portlar** sekmesinde port bilgisinin güncellendiği görüntülenir.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dudl32ai711rxuwhobhj.png)
Liman Cihaz Yönetim ile Servis Yönetimi
Published: 2023-05-18 07:04:05

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili makineye sağ tıklanır ve - **Servisler** sekmesine girilir.
- Sistemin servsileri, Servis Adı, Durumu ve Açıklama başlıklarıyla listelenir.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50c2es4avfmwls3gt8fs.png)
- İlgili durumu "running" olan servisin sağında bulunan durdur logosuna tıklanır ve servis durdurulur.


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

- Durdurulan, yani durumu "stopped" olan servisin aynı yerden başlat logosuna tıklanır ve tekrar başlatılır.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r4p6qxl7fy99xy1onuat.png)
Liman Cihaz Yönetim ile Uzaktan Komut Gönderme
Published: 2023-05-18 07:03:48

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.

##1. Toplu Komut Çalıştırma:

- **Araçlar** sekmesine girilir.
- Sadece belirli makinelerde komut çalıştırmak için ilgili koleksiyon seçilir.
- Tüm cihazlara göndermek için seçim yapmadan bırakılır.
- Eklenti başlığından eklenti seçilir. (ÖR: bash)
- Komut girilir. (ÖR: ip a)
- Mavi "Çalıştır" butonuna tıklanır.

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

- Sonuçlar başlığının altında Oluşturulma Tarihi ve Komut başlıklarıyla listelenir.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0cx0o5n1qq6bmuv7lwv.png)
- İlgili komut sonucunu görüntülemek için Sonuçlar listesinin en sağında bulunan ok işaretine tıklanır ve yönlendirilen sayfada sonuç görüntülenir.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gm358613gntaj9yh3a6t.png)
-  Yönlendirilen sayfada sağ üstünde bulunan "İNDİR" butonuna tıklanır.

- "Başarılı. Raporunuz indirmeye hazır." mesajı alınır.

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

- Yeşil "İNDİR" butonuna tıklanır.
- Rapor csv formatında indirilir.

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

##2. Tek Makinede Komut Çalıştırma:

- İlgili makineye tıklanır ve "Genel Bakış" sekmesine gidilir.
- Orta üstte bulunan kırmızı kapatma butonu yanındaki mavi butona tıklanır ve terminal ekrana gelir.

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

- İstenen komut çalıştırılır ve sadece böylece tekli komut çalıştırılmış olur.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36jzjgr0yxgbzibnmcr3.png)
Liman Cihaz Yönetimi ile Giriş Yapan Kullanıcıların Kontrolü
Published: 2023-05-18 07:03:37

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- **Cihazlar** sekmesine girilir.
- İlgili sunucunun solunda bulunan monitör logosuna tıklanır ve drop-down olarak listelenen başlıklardan "Genel Bakış" başlığına tıklanır.
- Gelen ekranda <u>Kullanıcılar ve Gruplar</u> sekmesine girilir.
- Giriş Yapmış Kullanıcılar sayfanın sol altında görüntülenir.

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

- Listelerin sağ üstünde bulunan arama butonlarından etiketlere göre arama yapılır.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulbmdl4ykp5m77u7ue47.png)
Liman Cihaz Yönetimi ile Linux makinelerin izlenmesi
Published: 2023-05-18 07:03:23

- Liman arayüzü açılır.
- Menüye girilir.
- Menüde sunucunun alt başlıklarında bulunan <u>Cihaz Yöneticisi</u> eklentisinin içine girilir.
- İlgili sunucunun solunda bulunan monitör logosu yeşil renk ise sunucu aktif, kırmızı ise pasif demektir.


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

- İlgili sunucunun solunda bulunan monitör logosuna tıklanır ve drop-down olarak ilgili cihaza ait işlemler gerçekleştirilip yönetilir.


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

- "Genel Bakış" başlığına girilir ve Ürün Adı, Üretici, İşlemci Modeli, İşletim Sistemi, Masaüstü Ortamı, Domain,Aajan Sürümü, Son Güncelleme Tarihi, CPU Kullanımı, RAM Kullanımı ve Disk Kullanımı başlıkları dahilinde linux bir makinenin izlenmesi sağlanır.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5r45w612m0f43xrr3ws4.png)
php-bard-api
Tags: php, bard, ai, library
Published: 2023-05-18 07:02:25

## php-bard-api
 > A package that returns Response of Google Bard through API

### Prerequisites
- PHP 8.1
- composer


### Install
 ```
 composer require pj8912/php-bard-api
 ```
### Usage 

```
<?php
require_once 'vendor/autoload.php';
use Pj8912\PhpBardApi\Bard;

$_ENV['_BARD_API_KEY'] = "Your Key";

$bard = new Bard();
$input_text = "Hello, Bard!";  // Input text for the conversation
$result = $bard->get_answer($input_text);  

// Access the result data
$conversation_id = $result["conversation_id"];
$response_id = $result["response_id"];
$factualityQueries = $result["factualityQueries"];
$textQuery = $result["textQuery"];
$choices = $result["choices"];

// reply for query 
$content = $result["content"];
print($content);
?>
```
### Github
https://github.com/pj8912/php-bard-api
If Coding Languages Were Ice Cream Flavors...?
Tags: discuss, beginners, codenewbie, watercooler
Published: 2023-05-18 07:00:00

Let's have some coding fun! If programming languages were transformed into ice cream flavors, which flavors would you associate with each language and what attributes or characteristics make them a perfect match? 

For example: If Ruby were transformed into an ice cream flavor, it might be a delightful blend of rich and smooth dark chocolate with a hint of raspberry swirl. This flavor choice represents Ruby's elegant and expressive nature, like the indulgent sweetness of chocolate combined with the vibrant and tangy essence of raspberry. 🍧

---

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more awesome discussions and online camaraderie!

*{% embed* [https://dev.to/codenewbieteam](https://dev.to/codenewbieteam) *%}*
react-native: show more, expandable animation
Tags: react, reactnative, animation
Published: 2023-05-18 06:52:20

## Problem
- Need to show more, expandable, calculate view before see it on view

## Solution
- Step 1: calculate item before animate it
   - set position to absolute.
   - set opacity to 0.
   - set measured=1 and cache it

- Step 2: use react-native-animatable to animate item

```jsx
import * as Animatable from 'react-native-animatable';
import React, {useState} from 'react';
import {Pressable, Text, TextStyle, View, ViewStyle} from 'react-native';

export const ShowMoreDemo = () => {
  return (
    <View>
      <Text>Parent Content 1</Text>
      <ShowMore>
        <Text>
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam rem
          ducimus sit ipsa eligendi, beatae tempora ullam obcaecati at ab
          consectetur ea eveniet labore non quod fugiat itaque facilis fuga?
        </Text>
      </ShowMore>
      <Text>Parent Content 2</Text>
    </View>
  );
};

const ShowMore: React.FC = ({children}) => {
  // const minHeight = 300;
  const [isShowMore, setIsShowMore] = useState(false);
  const [measured, setMeasured] = useState(false);
  const [contentHeight, setContentHeight] = useState(0);

  const [contentStyle, setContentStyle] = useState<ViewStyle>({
    opacity: 0,
    position: 'absolute',
  });

  console.log('measured', measured, contentHeight);

  return (
    <>
      <View
        style={contentStyle}
        onLayout={e => {
          if (!measured) {
            setContentHeight(e.nativeEvent.layout.height);
            setMeasured(true);
          }
        }}>
        {!measured ? (
          children
        ) : (
          <Animatable.View
            style={
              {
                backgroundColor: 'red',
                height: isShowMore ? contentHeight : 0,
                opacity: isShowMore ? 1 : 0,
              } as ViewStyle
            }
            duration={300}
            transition={['height', 'opacity']}>
            {children}
          </Animatable.View>
        )}
      </View>
      <Pressable
        style={
          {
            height: 48,
            justifyContent: 'center',
            alignItems: 'center',
          } as ViewStyle
        }
        onPress={() => {
          setIsShowMore(!isShowMore);
          setContentStyle({
            opacity: 1,
            position: 'relative',
          });
        }}>
        <Text
          style={
            {
              color: '#000',
              fontSize: 12,
              fontWeight: 'bold',
            } as TextStyle
          }>
          {isShowMore ? 'Show Less' : 'Show More'}
        </Text>
      </Pressable>
    </>
  );
};

```
Choosing the Right React State Management: Simplicity and Alternatives
Tags: react, javascript, reactjsdevelopment, redux
Published: 2023-05-18 06:50:00

**Introduction:**
React state management is a crucial aspect of building robust and maintainable applications. In this blog post, we will explore the key takeaways from a session on React state management at the Geekle React Summit and discuss the importance of choosing the simplest state management solution that suits your needs. We will also explore alternative options beyond well-known libraries like Redux.

**The Session at Geekle React Summit:**
During the session, the presenter introduced local state management and highlighted the challenges of prop drilling and global state management. Various state management options were discussed, including the Context API, Redux, Redux Toolkit, and Hook state. The emphasis was on opting for simplicity and choosing the solution that aligns best with your specific project requirements.

**Key Takeaways:**
The main takeaway from the session was the significance of simplicity in state management. Instead of always resorting to well-known libraries like Redux, it is important to consider simpler alternatives that can make developers' lives easier. The presenter emphasized that simpler solutions can often be more effective and efficient, and it is essential to evaluate different options before making a decision.

**Exploring Alternative State Management Solutions:**
In addition to Redux and the Context API, alternative state management solutions were mentioned during the session. Zustand and React Query were highlighted as examples, sparking curiosity among attendees. These alternatives offer unique features and advantages that may be beneficial for specific use cases. Exploring these options can expand your understanding of state management and provide additional tools to address different project requirements.

**Evaluating Your Needs:**
To select the right state management solution, it is crucial to evaluate your project's specific needs. Consider the complexity of your application, the scale of global state management required, and the learning curve of each solution. By asking the right questions and assessing your requirements, you can make an informed decision that best suits your project.

**Conclusion:**
Choosing the right state management solution is crucial for a successful React project. By attending sessions like the one at Geekle React Summit and considering the insights shared by experienced presenters, you can broaden your understanding of different state management options. Remember, simplicity should be a guiding principle, and exploring alternative solutions beyond well-known libraries can lead to more effective and efficient state management.

In conclusion, don't hesitate to step outside the familiar and embrace simplicity. By doing so, you can unlock the potential of simpler state management solutions and empower yourself as a React developer.
Benefits of Using a Professional Statement of Purpose Writing Service
Tags: sop, writer
Published: 2023-05-18 06:39:53

SOP professionals provide an edge to applicants by delivering personalized and tailored services, such as writing, editing, and proofreading that help applicants stand out. [Professional SOP services in London](https://www.statementofpurpose.uk/) is an invaluable resource for students because have experts SOP helpers with expertise in all academic field, knowledge of what admissions committees are looking for, and the skills to craft a compelling and impactful Statement. SOP professionals also ensure that your statement of purpose is well structured, factually accurate, and free of errors, and can help you show your best qualities and accomplishments in the best way possible.
My Weekly markdown template
Tags: productivity, career, development, markdown
Published: 2023-05-18 06:38:45

Hello,

Today, I will share with you my weekly productivity template.

In a productivity routine, consistency is key. To help me become better organized and more efficient in my work, I have started using markdown.

After a few years of using this method, I am now able to share with you my markdown weekly template.

https://github.com/flagage/Productivity/blob/771ce0a8d4dc0a312badc8e057e55391b6279567/weekly/Weekly.md

I detail my choice of tools, and if you would like more information on how I use this template, i will provide it in this post.

https://fredlagage.fr/my-production-markdown-template/

Thanks.
A memorable vacation
Published: 2023-05-18 05:57:57

Hello Everyone!
My names are SADIKI SEPT, From Mahama Alight coding class in my childhood, I get many vacations. there are vacations when I was in primary school, my parents were permitting me to visit my colleagues, Aunts, uncles, sisters, and even Grand Mothers and Grand Fathers.
When I was in secondary I continue to get vacations, I was taking trips to different sides of the country and outside in neighboring countries to visit different places of touristic attractions.
A memorable vacation in my life is when I was back in my home country in north Kivu, at the time when I was visiting cattle places and seeing how good cows which located in that place, and much milk and cheese. I understand how it is bad to be a refugee. So, this is my memorable vacation.
thank you!