teleren/devto huggingface dataset:
Why we JsonProperty For Mapping of data With Example
Tags: webdev, programming, csharp, aspdotnet
Published: 2023-06-21 15:27:20

JsonProperty is an attribute in C# (and other programming languages) that allows developers to control the mapping between property names and JSON keys when serializing or deserializing objects. It is often used in conjunction with JSON frameworks such as Newtonsoft.Json.

Here's an example to illustrate the usage of JsonProperty:

Let's say we have a class called `Person` that represents a person with various properties like `Name`, `Age`, and `EmailAddress`. We want to serialize an instance of this class to JSON, but we want the JSON key for the `EmailAddress` property to be named "email" instead of "EmailAddress".

```csharp
using Newtonsoft.Json;

public class Person
{
    public string Name { get; set; }
    
    public int Age { get; set; }
    
    [JsonProperty("email")]
    public string EmailAddress { get; set; }
}
```

In the example above, we have decorated the `EmailAddress` property with the `[JsonProperty("email")]` attribute. This attribute tells the JSON serializer to use the key "email" instead of "EmailAddress" when serializing or deserializing JSON.

Now, let's serialize an instance of the `Person` class to JSON:

```csharp
Person person = new Person
{
    Name = "John Doe",
    Age = 30,
    EmailAddress = "johndoe@example.com"
};

string json = JsonConvert.SerializeObject(person);
```

The resulting JSON would be:

```json
{
    "Name": "John Doe",
    "Age": 30,
    "email": "johndoe@example.com"
}
```

As you can see, the `EmailAddress` property was serialized as "email" in the JSON due to the `[JsonProperty("email")]` attribute.

JsonProperty can also be used during deserialization, allowing you to map JSON keys to property names. This way, you can handle cases where the JSON key differs from the property name in your.

JsonProperty is used to control the mapping between property names and JSON keys during serialization and deserialization, providing flexibility in working with JSON data.
Decorators in Rust
Tags: rust, python, decorators
Published: 2023-06-21 15:24:07

Code:
```Rust
// Define the macro.
macro_rules! log_function {
    ($f:ident($($arg:expr),*)) => {{
        println!("Calling function: {}", stringify!($f));
        $f($($arg),*)
    }};
}

// Some function for demonstration.
fn add(x: i32, y: i32) -> i32 {
    x + y
}

fn main() {
    // Use the macro.
    let result = log_function!(add(5, 7));
    println!("Result: {}", result);
}
```

Output:
```Bash
Calling function: add
Result: 12
```

Rust may not come with built-in support for Python-esque decorators, but that doesn't mean we can't engineer our own! With the might of Rust's macro system at our disposal, we demonstrate how to craft a Python-style decorator using the `log_function!` macro. 

This above inventive piece of code logs function names just before they spring into action. The `add` function serves as the stage for this cross-linguistic performance, highlighting the extraordinary fusion of Python's elegant simplicity and Rust's high-octane performance within a single, harmonious codebase.
How to fix set-output command in GitHub Actions?
Tags: github, php, pipeline, testing
Published: 2023-06-21 14:41:17

How to fix the deprecated set-output command in GitHub Actions? Well, this video covers exactly this! With PHP Composer cache as a user-case 😊


{% youtube https://youtu.be/dT1d72OR_iw %}

If you receive the GitHub Actions log messages "*The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files.*"

Further information on the GitHub blog post https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

- And on the official actions/cache@3 documentation page where an example is given: https://github.com/actions/cache/blob/main/examples.md#php---composer


#### Repos I will walk you through this video to replace the deprecated `set-output` for the following GitHub repositories

- https://github.com/pH-7/Html2Text/blob/main/.github/workflows/test.yml
- https://github.com/pH-7/CuteLinkNames/blob/main/.github/workflows/test.yml
- https://github.com/pH-7/eu-vat-validator/blob/main/.github/workflows/test.yml
📢 Uplifting Black Technologists: Spotlight on Black Girls CODE
Tags: juneteenth, blacklivesmatter, community, career
Published: 2023-06-21 15:07:36

---
title: 📢 Uplifting Black Technologists: Spotlight on Black Girls CODE
published: true
description: In this post, we shine a spotlight on Black Girls Code!
tags: Juneteenth, blacklivesmatter, community, career
series: Celebrating Black Tech Initiatives
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lcad4jb9zu6d0ykbjvz2.jpg
---
In honor of Juneteenth, we’re uplifting initiatives and organizations that center Black and African-American technologists. Black Lives Matter, and we celebrate these orgs for their contributions toward creating futures for Black people and African-Americans while shaping our industry for the better.

In this post, we shine a spotlight on [Black Girls Code](https://wearebgc.org/)!

For more than a decade, Black Girls CODE has been tirelessly opening doors to education and technology for thousands of Black and brown girls aged 7-17. Their mission is more than just teaching coding; it's about narrowing the digital divide for young girls of color and sparking a love for technology that can change the face of STEM.

With 14 chapters in cities across the United States, and a thriving chapter in South Africa, the organization has a broad footprint. Each chapter meets approximately once a month to learn and grow together through a variety of STEM-based enrichment activities. These range from engaging workshops and inspiring panels to thought-provoking film screenings and exciting tech company tours.

As we celebrate Juneteenth, we stand in solidarity with Black Girls CODE in their mission. By empowering underrepresented communities, we work together towards building stronger economies and more equitable societies. This is the true embodiment of democracy — the creation of diversity and inclusion that offers a seat at the table for everyone.

We invite everyone in the DEV Community to join us in celebrating and supporting the tireless efforts of Black Girls CODE, this Juneteenth and every day. 

Visit their [events page](https://wearebgc.org/events/) to participate in or support their upcoming activities. For those who are able, consider making a contribution on their [donation page](https://wearebgc.org/donate/). Your donations will help fund workshops, programs, and provide resources that are vital in supporting these young, aspiring technologists. 

Let's be the change we want to see in our tech industry – diverse, inclusive, and equitable for all. Your support could very well ignite the spark that inspires the next generation of tech innovators. Together, we are creating stronger economies and more equitable societies.

Happy Juneteenth!
Data Quality Checks
Tags: data, dataquality, datascience
Published: 2023-06-21 14:50:29


Dataquality checks you need to keep in mind while validating your data, ensuring it is reliable, and can be trusted before reporting or performing analysis:

1. Data Completeness - check whether the data has all required data fields and check missing values.
2. Data Consistency - make sure data is uniform across different sources
3. Data Accuracy - compare the correctness of the data with already known or expected values.
4. Data Timelines - check whether the data is up-to-date within expected timelines.
5. Data Relevance - is the data relevant to the business or its requirements and does it meet its purpose.
6. Data Integrity - is the data logically consistent and adhering to the defined business rules in place.
#data #dataengineering #dataanalytics #dataintegrity #datascience #dataengineers #datascientists #dataanalysts


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/59zd953o5g1kcv7w997g.png)
"Navigating Layoffs with Intention": CodeNewbie Podcast S24E7
Tags: podcast, career, codenewbie, beginners
Published: 2023-06-21 14:48:27

In our seventh episode of Season 24 CodeNewbie Podcast, @saronyitbarek talks about recalibrating after layoffs and strategizing to be more selective with new job opportunities with [Natalie Davis](https://twitter.com/codeFreedomRitr). 

{% embed https://www.codenewbie.org/podcast/navigating-layoffs-with-intention %}

Natalie Davis is a software engineer by trade and a curious person by nature. After deciding to step away from her extensive retail career, Natalie took the first steps in her tech journey by graduating from an 18-month long bootcamp. Natalie landed her first engineering role with Foxtrot while still in school, but has since held roles with Netlify and Post. Natalie is also currently seeking employment!

- [Listen on Apple Podcasts](https://podcasts.apple.com/us/podcast/s24-e7-navigating-layoffs-with-intention-natalie-davis/id919219256?i=1000617823401)

- [Listen on Spotify](https://open.spotify.com/episode/6w6fbjTLETfQGR53ZpbN04?si=d9f101a98b004d8d)

Or, listen wherever you normally get your podcasts!

***

**Make sure to subscribe to the CodeNewbie podcast if you haven't yet!**

Happy coding! We hope you enjoy this season of the CodeNewbie Podcast 💜
adding a new file to a DevC++ project
Tags: beginners, cpp, programming
Published: 2023-06-21 14:21:44

When I create a new project, sooner or later I will want to add in some .h and .cpp files to the project. Selecting new file adds a file into the project and it's name is untitled1!  Looking around at the properties menu and everything else that I could find, I still could not find any way of renaming the useless default name of the new file that I added to the project. One work around that I found is to create a new .txt file and rename it, and then add the empty renamed file into the project. I could also remove the untitled file from the project, then rename it to what I need, and then add this one into the project. There should be a simple way to rename the untitled file so I won't have to go through this fiasco!
syd / wt1v
Rút Tiền M88
Published: 2023-06-21 14:06:57

Rút tiền M88 siêu nhanh và đơn giản
Rút tiền M88 là một trong những dịch vụ nổi bật nhất của công ty cá cược hàng đầu tại châu Á, nơi bạn có thể chơi các trò chơi casino và thể thao phổ biến nhất trong làng cá cược. Rút tiền bằng link M88 cung cấp cho người chơi một dịch vụ rút tiền siêu nhanh và cực kì dễ dàng từ tài khoản của mình. Để rút tiền tại M88, bạn có thể thực hiện theo các bước hướng dẫn dưới đây để nắm rõ thông tin cũng như cách thức thực hiện nhanh nhất. Quá trình rút tiền sẽ diễn ra trong vòng vài giờ đồng hồ. Với dịch vụ rút tiền M88, bạn sẽ dễ dàng thực hiện các giao dịch tài chính và tận hưởng những khoản tiền thu nhập từ việc thắng các trò chơi mình đã tham gia.
#ruttienm88
Website: https://m88v.com/rut-tien-m88/	
ĐC:        Số 24 Tình Quang, Tinh Quang, Long Biên, Hà Nội, Việt Nam
SĐT:       0362453298
Email:    contact@m88v.com
https://www.dwell.com/@ruttienm88
https://pubhtml5.com/homepage/tpsor/preview
https://bbpress.org/forums/profile/ruttienm88/
http://uid.me/ruttienm88#
https://www.bitchute.com/channel/jrTPQOrHOtnr/
https://micro.blog/ruttienm88
https://www.beatstars.com/ruttienm88/about
https://myanimelist.net/profile/ruttienm88
https://www.lifeofpix.com/photographers/ruttienm88/
Take Advantage of Reactive Programming with RxJS
Tags: angular, rxjs, webdev, javascript
Published: 2023-06-21 14:06:02

One of the most powerful features of Angular is its integration with RxJS, a reactive programming library. By leveraging RxJS, you can greatly enhance your Angular applications with reactive and asynchronous capabilities.

Here are a few tips to make the most out of RxJS in Angular:

1. Use Observable Data Streams: Instead of relying solely on traditional event-based programming or manual data manipulation, utilize Observables to create data streams that emit values over time. This allows you to easily handle asynchronous operations and update your UI accordingly.

2. Leverage Operators: RxJS provides a wide range of operators that enable you to transform, filter, combine, and manipulate data streams. Familiarize yourself with common operators like map, filter, mergeMap, and switchMap to efficiently process and transform data.

3. Utilize Angular's Built-in RxJS Features: Angular incorporates RxJS extensively throughout its framework. Take advantage of features like the async pipe, which automatically subscribes and unsubscribes from Observables, simplifying the management of subscriptions and memory leaks.

4. Understand Subjects and BehaviorSubjects: Subjects and BehaviorSubjects are useful constructs in RxJS for creating and broadcasting values to multiple subscribers. Subjects act as both an Observable and an Observer, while BehaviorSubjects retain the most recent value and emit it to new subscribers.

5. Combine Angular Forms with RxJS: Angular's reactive forms module pairs well with RxJS. You can utilize Observables to handle form validations, dynamically update form controls, and perform form-related operations.

By harnessing the power of RxJS in your Angular applications, you can create more responsive, scalable, and maintainable code. Explore the documentation, tutorials, and examples provided by the Angular team and the RxJS community to deepen your understanding and unlock the full potential of reactive programming in Angular.
Process and Memory architecture in PostgreSQL
Tags: postgres, apacheage, bitnine, apache
Published: 2023-06-21 14:05:58

The architecture of **PostgreSQL** is such that it is a client/server type relational database management system and has a multi-process architecture that runs on a single host.

A **PostgreSQL** server is a collection of several processes cooperatively managing one database cluster that contains the following types of processes:

- A **postgres server process** is a parent of all processes related to a database management system.

- Every single **backend process** is responsible for managing all queries and statements that are generated by any connected client.

- Different **background processes** help with processes of each feature for the database management system.

- The **replication associated process** is responsible for performing the streaming replication process.

- Lastly, the **background worker process**, can work on any processing that is demanded by the users.


A **postgres server process** starts up by executing the _pg_ctl_ command with the start option. Next, it allocates shared memory, begins various background processes, starts a few other necessary processes and waits for a connection request from any online clients. A backend process is started whenever it receives a connection request from a client.


A **backend process** starts by the postgres server process and handles all queries issued by a connected client. It uses a TCP connection to communicate with the client and then terminates when the client is disconnected. As a backend process is allowed to only operate a single database, the client has to specify explicitly the database they want to use when connecting.

Now let's talk about the memory architecture of **postgreSQL**.

The memory architecture of postgreSQL can be classified into two major classes:

- Local memory area - this is assigned by each backend process for its own use.

- Shared memory area - this is used collectively by all the processes running on a PostgreSQL server.


In addition to these, PostgreSQL also allocates various memory areas as mentioned below:

- Sub areas for the various access control mechanisms.

- Sub areas for various background process e.g. autovaccum and checkpointer.

- Sub areas for transaction processing such as two-phase-commit and save-point.

This was a short summary of the memory and process architecture of PostgreSQL.
Typing test model
Tags: codepen, javascript, beginners, news
Published: 2023-06-21 13:43:00

<h1>Basic Typing Test Model</h1>

<p>This is a Simple Typing Accuracy tester that calculates your typing speed for 15 seconds or else you can also set your timer. It calculates your accuracy and typing speed in seconds, it is still a basic model of the typing test model, I think you guys like this, please have a look and share your thoughts. </p>

{% codepen https://codepen.io/safikumar00/pen/jOQrJwj %}
Google Unit Converter Clone - first time posting!
Published: 2023-06-21 13:38:55

[Google Converter Clone](https://mini-goog-converter.vercel.app/)

Hello Dev.to!

This is my first time posting to this community and I'm very excited to see how I can engage everyone's experience here.

I've been practicing writing my JavaScript, HTML DOM, and TailwindCSS lately and feel like I've made a lot of strides in my experience regarding it.

It was suggested to me to post my latest practice here to get feedback from the community, and see if anyone has any pointers I should be aware of for future practice!

Please let me know your thoughts, and I'll respond as quickly as I can. 

Thank you.
Exploring the Role of NFTs in Play to Earn Gaming Revolution
Tags: webdev, beginners, programming, python
Published: 2023-06-21 13:29:49

In recent years, the concept of Play to Earn (P2E) games has gained significant traction in the gaming industry. P2E games offer players the opportunity to earn real-world value through their in-game activities. One technology that has played a vital role in the rise of P2E games is Non-Fungible Tokens (NFTs).

NFTs are unique digital assets that can represent ownership or proof of authenticity for various virtual items, such as characters, weapons, skins, or in-game properties. These digital assets are stored on a blockchain, ensuring their scarcity, security, and immutability. NFTs have revolutionized the gaming landscape by providing true ownership and enabling the seamless transfer of virtual assets between players.

In Play to Earn game development, NFTs serve multiple crucial roles. Firstly, NFTs enable players to truly own their in-game assets. Unlike traditional games where players merely have temporary or limited rights over their virtual items, NFTs empower players with true ownership and control. This ownership extends beyond the game itself, allowing players to trade, sell, or even use their NFTs across multiple platforms.

Moreover, NFTs enhance the player experience by introducing rarity and uniqueness to in-game assets. Players can acquire rare or exclusive NFTs that hold significant value within the game's ecosystem. These unique assets can provide various advantages, such as enhanced abilities, special abilities, or access to exclusive content. The scarcity and desirability of these NFTs create a thriving player-driven economy, where players can buy, sell, or trade their assets with other participants.

Additionally, NFTs provide developers with new monetization opportunities. By creating and selling NFTs, game developers can generate revenue while also incentivizing players to engage further with the game. NFT sales, auctions, and marketplaces can drive community engagement, as players actively seek out valuable assets or participate in the creation of limited-edition collectibles.

Furthermore, NFTs foster a sense of community and collaboration among players. Players can form guilds, alliances, or groups to collectively achieve goals or participate in shared experiences. NFTs can serve as badges or tokens of recognition for these group achievements, creating social connections and reinforcing player loyalty.

In conclusion, NFTs have revolutionized the **[Play to Earn NFT game development](https://maticz.com/play-to-earn-game-development
)** landscape by introducing true asset ownership, enhancing player experiences, offering new monetization avenues for developers, and fostering community engagement. As the popularity of P2E games continues to soar, the role of NFTs will remain pivotal in shaping the future of gaming, transforming how players interact, earn, and own virtual assets. choose the right **[Blockchain Solution provider](https://maticz.com/enterprise-blockchain-development)** and gamer developer to maker your game more effective.
How to Learn SEO (Complete Roadmap)
Tags: seo, blog, knowledge
Published: 2023-06-21 13:26:33

First of all, you will know what SEO is and then slowly move towards the topic. And very important thing, can you learn from SEO by yourself? You must read this post till the end only then you will know how you can learn SEO from yourself. And what are its benefits. Let's start. What is SEO? SEO is nothing but a type of rule. Which we have to follow and become SEO expert. So there are basically two types of SEO. One is on page SEO and the other is off page SEO. There is a difference in both. [How to Learn SEO (Complete Roadmap)](https://www.regularupdates.tech/2023/06/how-to-learn-seo-complete-roadmap.html)
lixi889
Published: 2023-06-21 13:20:41

Nhà Cái Lixi88 Đẳng Cấp Với Đủ Loại Hình Xổ Số, Game Cá Cược
Nhà cái Lixi88 ngoài sự nổi bật ở giao diện màu đỏ khá chói thì đây còn là sân chơi cá cược hàng đầu tại châu Á được nhiều cược thủ đánh giá cao. Tại đây, bạn sẽ dễ dàng tìm kiếm mọi thể loại game, xổ số hay cá cược thể thao theo sở thích của mình với chế độ trả thưởng cao. Cùng với chính sách bảo mật tốt, được Tổ chức cờ bạc Philippines cấp phép nên anh em hãy yên tâm khi giải trí và tham gia cá cược tại Lixi88. 
#lixi88 #linklixi88  #applixi88 
Website: https://lixi889.com/ 
ĐC:        262 ĐƯỜNG LÊ THỊ RIÊNG, KP6, TỔ 1, Quận 12, Thành phố Hồ Chí Minh, Việt Nam
SĐT:       0366953247
Email:     contact@lixi889.com 
https://www.reddit.com/user/lixi889 
https://www.tumblr.com/lixi889 
https://vimeo.com/lixi889 
https://www.linkedin.com/in/lixi-lixi-51298a27b/ 
https://twitter.com/lixi889 
https://www.youtube.com/@lixi889/about 
https://www.facebook.com/lixi889/ 
https://lixi889.com/ 
https://www.quora.com/profile/Lixi889 
https://soundcloud.com/lixi889 
https://social.msdn.microsoft.com/Profile/lixi889