teleren/devto huggingface dataset:
Schema-Less Nedir ?
Published: 2023-03-05 22:08:15

"Schema-less", yani "şemasız" terimi, NoSQL veritabanlarındaki veri modelleme yaklaşımını tanımlamak için kullanılır. Bu yaklaşım, ilişkisel veritabanlarında kullanılan şema (schema) kavramına karşı gelir.

İlişkisel veritabanlarında, veriler belirli bir şemaya göre yapılandırılır. Bu şema, verilerin türünü, sınırlarını, ilişkilerini vb. tanımlar. Veriler bu şemaya göre tablolarda saklanır ve bu tablolar arasında ilişki kurulabilir.

NoSQL veritabanlarında ise veriler şemasız (schema-less) olarak saklanabilir. Bu, verilerin yapısal olarak önceden belirlenmemiş olması anlamına gelir. Bu veritabanlarında veriler, JSON veya BSON gibi belgelere (document) benzer bir yapıda saklanır. Bu belgeler, ilişkili verilerle birlikte depolanabilir ve kolayca güncellenebilir, silinebilir veya yeniden yapılandırılabilir.

Schema-less yaklaşım, veri modellemeyi daha esnek hale getirir ve verilerin daha kolay yönetilmesine olanak sağlar. Ancak, verilerin belirli bir şemaya uygun olmadığı için, veri bütünlüğü ve veri doğruluğu konularında bazı zorluklar ortaya çıkabilir. Bu nedenle, NoSQL veritabanları genellikle ölçeklenebilirliği ve hızı artırmak için kullanılırken, ilişkisel veritabanları daha katı bir veri yapılandırması gerektiren uygulamalar için daha uygundur.
Test coverage: did you set Xdebug's coverage mode?
Tags: pestphp, testing, phpunit, php
Published: 2023-03-05 21:43:20

---
title: Test coverage: did you set Xdebug's coverage mode?
description: PestPHP test coverage, enabling the coverage mode with Xdebug
tags: PestPHP, Testing, PHPUnit, PHP
published: true
---

If you are using PestPHP and during the execution of your tests with the coverage option, you are receiving the message:

```
Unable to get coverage using Xdebug. Did you set Xdebug's coverage mode?
```

you should check one of these three things:
- checking the Xdebug configuration;
- setting the XDEBUG_MODE environment variable;
- adjusting the PHPUnit configuration file.


## Check the Xdebug configuration

My first suggestion is to check your Xdebug configuration in the  php.ini file:

```
[xdebug]
zend_extension="xdebug.so"
xdebug.mode=develop,debug,coverage
xdebug.start_with_request = yes
```
With the `xdebug.mode` parameter, you must check the presence of the  `coverage` value.

## Set the XDEBUG_MODE parameter

An alternative way to instruct Xdebug to use the coverage mode is using the `XDEBUG_MODE` environment variable.
You can set the environment variable and launch tests in the one command line:

```
XDEBUG_MODE=coverage ./vendor/bin/pest --coverage
```

## Set the coverage section in the phpunit.xml file

If the previous two solutions (which are very similar) didn't work, you could check the PHPUnit configuration.
PestPHP, under the hood, uses the great tool PHPUnit. Yes, as PHP developers, we are lucky to have the best open-source tools for software development.
So the PHPUnit configuration reflects and influences the PestPHP execution.
For coverage operations, in the PHPUnit configuration, you should use the `coverage` section.
In the `coverage` section, make sure that you are including the right directories (where your source code is located). So, for example, if you have your source code in `src/` directory, check if you have the `coverage` section with the proper `include` in the `phpunit.xml` or `phpunit.xml.dist` file:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">

    ... other configuration settings ...

    <coverage processUncoveredFiles="true">
        <include>
            <directory suffix=".php">./src</directory>
        </include>
    </coverage>
</phpunit>
```

If you had the "`Unable to get coverage using Xdebug`" issue, let me know if these solutions work for you.
Understanding PipEnv
Published: 2023-03-05 21:42:55

1. **pipenv introduction:** https://dev.to/mr_destructive/pipenv-pythons-official-package-management-tool-4coo

2. **pipenv short introduction:**https://dev.to/nyartech_/use-pipenv-to-create-a-bug-free-virtual-environment-54i2

3. **pipenv using custom scripts:** https://dev.to/elanorigby/i-love-pipenvs-custom-script-shortcuts-156k

4. https://dev.to/okeeffed/the-abcs-of-pipenv-and-python-package-management-183i

5. **Sync pipenv.py to setup.py:** https://dev.to/ddobrinskiy/reproducible-environment-in-nbdev-with-pipenv-4h05

6. **Getting Started with pipenv:** https://dev.to/raghavxk/how-to-get-started-with-pipenv-obl

7. https://dev.to/cindyachieng/pipenv-the-new-python-packaging-tool-179n

8. **Setting up development environment with pipenv :** https://dev.to/davidshare/setting-up-a-python-development-environment-with-pipenv-3lfj

9. **High level list of package managers in Python :** https://dev.to/gillarohith/package-managers-in-python-206j
Streamline your edge computing workflows with ReductStore, now available on Snap
Tags: news, database, tutorial, reductstore
Published: 2023-03-05 21:22:55


Using snap, users can now easily install and manage ReductStore on various Linux distributions.

Snap is a universal package manager developed by Canonical, the company behind Ubuntu Linux. It allows developers to package their applications and dependencies into a single package that can be installed on any Linux distribution that supports snap, without worrying about different packaging formats and dependency conflicts.

<!--more-->

To install ReductStore using snap, first make sure that `snapd` is installed on your system. You can install `snapd` on Ubuntu and other Debian-based distributions using the following command:

```
$ sudo apt install snapd
```

Once `snapd` is installed, you can install ReductStore using the following command:

```
$ sudo snap install reductstore
```

This will download and install the latest version of ReductStore from [the snap store](https://snapcraft.io/reductstore).

After the installation is complete, you can see the database running as a service:

```
$ snap services reductstore
```

Once installed, users can access the database through the built-in web console by opening their browser and navigating to http://localhost:8383.
Alternatively, they can use the [Reduct CLI](https://cli.reduct.store) for more advanced management and querying of the database.

Moreover, you can manage ReductStore's settings using the `snap set/get` commands:

```
$ snap get reductstore
$ snap set reductstore log_level=DEBUG
$ snap logs reductstore 
```

I hope you find this release useful. If you have any questions or feedback, don't hesitate to reach out in [Discord](https://discord.gg/8wPtPGJYsn) or by opening a discussion on [GitHub](https://github.com/reductstore/reductstore/discussions).

Thanks for using [ReductStore](https://www.reduct.store)!
JavaScript Tutorial Series: Manipulating elements part 2.
Published: 2023-03-05 21:20:09

In this post we're going to talk about four more methods that will help you manipulate the `DOM`. 
_There's a huge number of methods/properties that helps you manipulate the `DOM`. Not all of them are mentioned, but only the important or commonly used ones._

## prepend
The `prepend()` method places a group of Node objects or DOMString objects before a parent node's first child.

```HTML
<ul id="list">
  <li>first item</li>
  <li>second item</li>
  <li>third item</li>
</ul>
```

![HTML list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkx7lri6ow5itmmviw33.png)

```JavaScript
const list = document.getElementById("list");

const item = document.createElement("li");

item.textContent = "fourth item";

list.prepend(item);
```

![prepend method](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0bs78erw2og3gfpj02pr.png)

As you can see, the element we created using JavaScript is placed before the first child of that list.

## append
The `append()` method inserts a number of Node objects or DOMString objects after a parent node's final child, 

```HTML
<ul id="list">
  <li>first item</li>
  <li>second item</li>
  <li>third item</li>
</ul>
```

![HTML list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkx7lri6ow5itmmviw33.png)

```JavaScript
const list = document.getElementById("list");

const item = document.createElement("li");

item.textContent = "fourth item";

list.append(item);
```

![append method](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y3mrl2f8qii4lkefskep.png)

## replaceChild
The `replaceChild()` method is used to replace a parent node's child.

### Syntax

```JavaScript
parentNode.replaceChild(newChild, oldChild);

```
Using the example above we're going to replace the first item of the list.

```HTML
<ul id="list">
  <li>first item</li>
  <li>second item</li>
  <li>third item</li>
</ul>
```

![HTML list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkx7lri6ow5itmmviw33.png)

```JavaScript
const list = document.getElementById("list");

const item = document.createElement("li");

item.textContent = "new child item";

list.replaceChild(item, list.firstElementChild);
```

![replaceChild method](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11kvwzdawp83brfu93hx.png)

## removeChild
The `removeChild()` method is used to remove a child element from a node.

### Syntax
```JavaScript
parentNode.removeChild(childNode);
```
Using the same example, we're going to remove the first element in the unordered list.

```HTML
<ul id="list">
  <li>first item</li>
  <li>second item</li>
  <li>third item</li>
</ul>
```

![HTML list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkx7lri6ow5itmmviw33.png)

```JavaScript
const list = document.getElementById("list");
list.removeChild(list.firstElementChild);
```

![removeChild method](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e5lspot8ehr3bqxf2kn6.png)
Atomic Design System
Tags: design, webdev, productivity, frontend
Published: 2023-03-05 21:15:01

**The Atomic Design System** is a methodology for designing digital products based on a hierarchy of complex components organised into stages, where changes at any stage affect the subsequent ones.

In this article, I will introduce you the elements that make up the Atomic Design System.

##Atoms
These are the basic components of the Atom design system and components of the entire design system. These include properties such as colours, fonts or shadows.


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

##Molecules
These are simple-to-use elements, such as buttons, checkboxes or badges, which are made up of connected atoms.


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

##Organisms
They are complete user interface components that form the basic backbone of the entire system design of a given product.


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

##Templates
These are the equivalent of models in atomic design. We combine prepared organisms with grey-scale elements that are not yet ready, you can think of it as a kind of preview. We do this to create a tangible product that can be presented to the business teams.


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

##Pages
Pages are built from templates and populated with real content that we pass on to developers so that they become a functional product.


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

##For Developers
You can also create and develop your user interface components and create your documentation through the storybook of the atomic designs created by your design team. You can even enable your test team to test these user interface components.


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

##Installing Storybook with React and Typescript
You can create a Storybook + React + Typescript project in a simple way with the following command lines. For more information about developing user interface components with Storybook, please visit https://storybook.js.org/docs/react/get-started/introduction.

First, we’ll create a React + Typescript project.
`npx create-react-app my-app --template typescript`

Then we will set up the Storybook within this project.
`npx sb init`
Redirect u.s.w: so, als würde man auf zwei phiysikalische Seiten zeigen lassen
Published: 2023-03-05 20:23:11


Also Die Idee - zwei Adressen zu bedienen - m.a. also so, als würde man auf zwei phiysikalische Seiten zeigen lassen.

Da wären dann auch zwei Seiten "beschaltet" 

unter diesen (technischen) Prämisse gilt: wenn ich zwei phys. Seiten beschalte u. gewissemaßen von außen dann da drauf zeigen will.

dann kann der Weg so sein: 

**Schritt 1:**
ich leg für beide Domains beim DNS-Server einen A record mit der IP-Adresse, des Servers an (oder einen A record für die erste und einen CNAME record mit Verweis auf die erste für die zweite)

**Schritt 2:**
Danach geh ich weiter und trag dabnach die Domains in die Webserver-Konfigurationsdatei meiner Webseite ein (bei Nginx z.B.
server_name foo.meinedomain.com foo.anderedomain.com).

**Ziel:** Bei diesem Verfahren, da gibtet im Grunde dann eigentlich keine Weiterleitung (mit anderen Worten - kein "redirecten", sondern dieselbe Webseite ist einfach unter beiden Domains direkt erreichbar.

Das ist der "way to go". Der A-Record ist die Haupt-Domain, die wird als Servername im Webserver eintragen. Jede weitere Domain (C-record) wird als Alias eingetragen.

**Darüber hinaus**:  das können natürlich auch mehrere werden.


darüber hinaus - **allgemeine Einsichten in die Technik des Redirects:**
Es gibt verschiedene Möglichkeiten, um auf einem Webserver Redirects einzurichten. Hier sind einige der gebräuchlichsten Optionen:

**301-Redirects:** 301-Redirects sind dauerhafte Redirects, die darauf hinweisen, dass eine Seite oder URL dauerhaft an eine neue Adresse verschoben wurde. Diese Art des Redirects ist sehr nützlich, um Besucher auf die richtige Seite umzuleiten und um sicherzustellen, dass Suchmaschinen die neue URL indexieren.

**302-Redirects:** 302-Redirects sind temporäre Redirects, die dazu verwendet werden können, Besucher auf eine temporäre URL zu leiten, während die ursprüngliche Seite gewartet wird. Diese Art des Redirects ist nützlich, wenn eine Website vorübergehend offline ist oder aktualisiert wird.

**Meta-Redirects:** Eine andere Möglichkeit, Redirects zu implementieren, besteht darin, einen Meta-Tag im HTML-Code der Seite einzufügen. Dieser Meta-Tag leitet die Besucher der Seite auf eine andere URL um.

**JavaScript-Redirects:** Eine weitere Möglichkeit, Redirects einzurichten, besteht darin, JavaScript-Code auf der Seite zu verwenden, um Besucher auf eine andere URL umzuleiten.

**.htaccess-Redirects:** Mit .htaccess-Dateien können Sie eine Vielzahl von Redirects auf Ihrem Webserver einrichten. Diese Dateien können direkt auf dem Server gespeichert werden und ermöglichen es Ihnen, Umleitungen basierend auf verschiedenen Bedingungen zu konfigurieren, wie zum Beispiel dem Browser des Benutzers, dem Referer oder der IP-Adresse.

**Fazit: **Es ist wichtig, die richtige Art des Redirects zu wählen, um sicherzustellen, dass Besucher und Suchmaschinen die gewünschten Seiten finden und indexieren.
How Books Can Change Your Entire Life, The Power Of Reading
Tags: bookreading, selfdevelopment, productivity, developmentlife
Published: 2023-03-05 20:19:17

In today's digital age, reading books may seem like a thing of the past. However, the benefits of reading cannot be overstated. Not only does it improve your knowledge, but it also enhances your cognitive skills and can even improve your mental health.

> Hello Everyone, I’m Md Arfan Khan. A Professional UI/UX designer & Web Developer. And In this article, I'll discuss some of the benefits of reading books and why you should make it a habit.

#### Enhances Vocabulary:

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


Reading books is a great way to improve your vocabulary. Exposure to different types of writing styles and genres can expand your vocabulary and help you improve your writing skills.

#### Boosts Brain Function:

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

Reading books can help in boosting brain function. Studies have shown that reading can help improve memory, concentration, and focus. It also enhances critical thinking skills and creativity.

#### Reduces Stress:

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

Reading books can be a great stress reliever. It can help in reducing stress levels and promote relaxation. It provides an escape from the daily hustle-bustle of life and helps in calming the mind.

#### Improves Mental Health:

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

Reading books can have a positive impact on mental health. It can help in reducing symptoms of anxiety, depression, and other mental health disorders. Reading can be a great form of therapy and can provide a sense of comfort and solace.

#### Helps in Developing Empathy:

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

Reading books can help in developing empathy and emotional intelligence. It can expose you to different cultures, lifestyles, and experiences, which can help in developing a deeper understanding and appreciation for others.

In conclusion, reading books is a habit that should be cultivated by everyone. It not only enhances knowledge but also has numerous other benefits for mental and emotional well-being. So, pick up a book today and start reading!

> By the way, If you’re interested in UI/UX design or web development services, feel free to reach out to me. As a professional UI/UX designer and web developer, I am always happy to help. And don’t forget to [follow me on social media ](https://linktr.ee/onlinearfan)for more blogs like this.
Scan S3 bucket to find Sensitive data with Macie
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-03-05 20:13:34

[64/100] #100DaysOfCloud Today, I created an S3 bucket and added a text file containing sensitive data and then used Macie to scan it.

Amazon Macie is a data security service that uses machine learning (ML) and pattern matching to discover and help protect your sensitive data.

<u>Use cases:</u>
- Strengthen your data security posture
 - Discover sensitive data across your S3 environment to increase visibility and automated remediation of data security risks.

- Discover sensitive data for compliance
 - Schedule data analysis to certify that sensitive data is discovered and protected.

- Protect sensitive data during migration
 - During data ingestion, determine if sensitive data has been appropriately protected.

- Increase visibility for business-critical data
 - Automatically and continually monitor all your sensitive data stored in S3 buckets.

You can try do it by yourself by following the steps from the link below: [GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/064/Readme.md)
Cpasbien Site Officiel 2023
Published: 2023-03-05 19:49:08

Cpasbien, Un des sites de torrents en français le plus populaires de France, et l’un des meilleurs. Obtenez des films, des séries, de la musique, des jeux vidéo pour consoles et PC, des ebooks… tout ça en français.

Allez sur Cpasbien: [Cpasbien Site Officiel 2023](https://www.cpasbien.fun/)
Pin Save on Fantom - Fantom Q1 Devpost Hackathon submission
Tags: javascript, blockchain, nextjs, webdev
Published: 2023-03-05 19:48:30

Pin Save: decentralised Pinterest

Pin Save is a decentralized image, video sharing and content aggregation platform where users can not only control the content but also the platform itself.

{% embed https://youtu.be/m55EWFlZW3s %}

Problem

Currently monolithic web applications retain ownership of user content and stifle the adoption of decentralized technology.

A user could use Open Sea to publish the content, however the obstacles are significant:

Only a very small fraction of collections get to the homepage.
The content publishing process requires confidence and experience in web 3.
Feedback and engagement metrics related to content are reflected mostly in price movement.
In addition, there is a lack of an alternative platform in the ecosystem to provide users with an ability to create, share, moderate and discuss decentralized posts.

Solution
The decentralized feed reinforces the discovery of content and feedback.
Decentralized Identity (ERC-725), which provides anonymity and data protection.
Upgradeable, resilient, and more open decentralized storage.
Smart contracts to securely serve web experiences directly to users.

Submission Link on Devpost: https://devpost.com/software/pinsav3

Try it out
 GitHub Repo - https://github.com/dspytdao/PinSave-EVM
 evm.pinsave.app - https://evm.pinsave.app/
 ftmscan.com - https://ftmscan.com/address/0x3c046f8E210424317A5740CED78877ef0B3EFf4E#tokentxns

About Dspyt Channel:
We are Data Science with Python DAO
Homepage: https://dspyt.com
GitHub DAO Page: https://github.com/dspytdao
The Power of Generative Adversarial Networks (GANs) in creating realistic digital images!
Tags: ai, webdev, machinelearning, news
Published: 2023-03-05 19:34:07


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z0j89tp1nhijn1c878pq.jpg)
_I know most of us have been seeing a lot of AI Generated Realistic Images out online, by the big tech companies and small ones,but do you know how it works 🤔_

Let’s talk about the Power of Generative Adversarial Networks (GANs) in creating realistic digital images!

1. GANs are a type of neural network that are trained to generate new data that is similar to a dataset of existing data. This is done by training two neural networks, a generator and a discriminator, against each other.

2. The generator creates new images, and the discriminator tries to determine if the generated images are real or fake. As the training progresses, the generator gets better at creating images that can fool the discriminator

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

3. This technique has been used to create realistic digital images of everything from faces to landscapes, and even entire scenes from movies

4. One of the most impressive examples of GANs in action is the creation of ultra-realistic digital humans. This could have a wide range of applications, from video games to virtual assistants to virtual reality experiences

5. GANs also have the potential to revolutionize industries such as fashion and interior design. By creating digital images that are indistinguishable from photographs, GANs could be used to create virtual clothing and home decor collections, reducing the need for physical samples

6. GANs are not without their limitations, however. They can be difficult to train, and the generated images can still have flaws that reveal them to be fake. But as the technology continues to develop, we are likely to see more and more realistic and impressive images generated by GANs

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

7. Overall, GANs are a powerful and exciting tool for creating realistic digital images, and we are only just beginning to scratch the surface of what is possible with this technology

8. If you love this content and wants more of tech related content, please support it by commenting, giving it a like and following my page, I will really appreciate ☺️. I post informative post on Web Development, Programming, Tech news and more in-between 💯