teleren/devto huggingface dataset:
ReductStore Client SDK for C++ v1.3.0 with Labels Support
Tags: news, cpp, database, reductstore
Published: 2023-02-22 21:53:43

We are excited to announce the release of [ReductStore Client SDK for C++ v1.3.0](https://github.com/reductstore/reduct-cpp/releases/tag/v1.3.0)! This release includes support for the ReductStore API v1.3.0 with labels and content type.

<!--more-->

## Labels

Since ReductStore v1.3.0, you can attach labels to data when writing and querying. Labels are key-value pairs that can be used to classify and categorize data. For example, you might use labels to store metadata about a record, such as its md5 sum or class.

```cpp
auto [bucket, err] =  client->CreateBucket(kBucketName);

IBucket::Time ts = IBucket::Time() + std::chrono::microseconds(123109210);
std::string blob = "some blob of data";
bucket->Write("entry",
    IBucket::WriteOptions{
        .timestamp = ts,
        .labels = IBucket::LableMap({"label1", "value3"}),
    },
    [&blob](auto rec) { rec->WriteAll(blob); 
});

```

This labels can be used to filter the results of a query:

```cpp
auto err = bucket->Query("entry", ts, ts + us(3), 
    IBucket::QueryOptions{.include = IBucket::LabelMap({"label1", "value1"})},
    [&all_data](auto record) {
        std::cout << record->ReadAll() << std::endl;
    }
);

```

## Content Type

You can now specify the content type of the data you are writing to the ReductStore database. This could be useful for example when you are writing a file to the database and want to store the file extension as the content type or keep information about the image format.

```cpp
bucket->Write("entry", I
    Bucket::WriteOptions{
        .content_type = "image/png",
    },
    [&blob](auto rec) { rec->WriteAll(image_as_blob); }
 );
```

Read more about labels and content type in the [ReductStore documentation](https://docs.reduct.store/). 

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)!
Polaris bank code 2023
Published: 2023-02-22 21:16:04

[https://www.bankfanz.com/polaris-bank-transfer-code/](https://www.bankfanz.com/polaris-bank-transfer-code/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)

https://plaza.rakuten.co.jp/polarisbankcode1/diary/202302220000/
https://peatix.com/user/16084166/
https://www.provenexpert.com/polaris-bank-code-to-check-balance-20237/
https://www.producthunt.com/@polarisbank010
https://www.divephotoguide.com/user/polarisbankcode10
https://wakelet.com/@Polarisbankcodetocheckbalance116
https://vocal.media/authors/polaris-bank-code-to-check-balance-fa3yk40d1c
https://www.lifeofpix.com/photographers/polarisbank10/
https://seedandspark.com/user/polaris-bank-code-to-check-balance-8
https://rosalind.info/users/Polarisbankcode10/
http://phillipsservices.net/UserProfile/tabid/43/userId/201419/Default.aspx
https://app.roll20.net/users/11659374/polaris-bank-code-to-check-b
https://speakerdeck.com/polarisbankcode10
https://social.msdn.microsoft.com/Profile/Polaris%20bank%20code%20to%20check%20balance%202023%2010
https://camp-fire.jp/profile/polarisbank10
https://plazapublica.cdmx.gob.mx/profiles/Polarisbank10/activity
https://www.metal-archives.com/users/polarisbankcode10
https://storium.com/user/polarisbankcode10
https://trabajo.merca20.com/author/polarisbankcode10/
https://www.intensedebate.com/people/Polarisbank10
https://www.mifare.net/support/forum/users/polarisbank10/
https://pinshape.com/users/2579911-polaris010
http://foxsheets.com/UserProfile/tabid/57/userId/121880/Default.aspx
https://www.kompasiana.com/polarisbankcode10
https://www.credly.com/users/carl-johnson.a5677bb3/badges
https://www.myminifactory.com/users/polarisbankcode10
https://www.sqlservercentral.com/forums/user/polarisbankcode10
https://www.longisland.com/profile/polarisbankcode10
https://guides.co/a/carl-johnson
https://myanimelist.net/profile/Polarisbank10
AWS Cloud Quest: Automation with CloudFormation Study Note
Tags: aws
Published: 2023-02-22 21:11:59

This is the DIY challenge of the Automation with CloudFormation in AWS Cloud Quest.


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



### DIY Steps:
1. Change CloudFormation `RoboticStack` template to launch **t2.small** EC2

```
Resources:
  RobotAppServer:
    Type: 'AWS::EC2::Instance'
    Properties:
      InstanceType: t2.small
      ImageId: ami-087c17d1fe0178315
      SecurityGroups:
      - !Ref RobotAppSecurityGroup
  RobotAppSecurityGroup:
    Type: 'AWS::EC2::SecurityGroup'
    Properties:
      GroupDescription: Enable SSH access via port 22
      SecurityGroupIngress:
      - IpProtocol: tcp
        FromPort: '22'
        ToPort: '22'
        CidrIp: 0.0.0.0/0
  RobotS3Bucket:
    Type: 'AWS::S3::Bucket'
    DeletionPolicy: Delete
```
Smart Contracts and Blockchain: A Powerful Combination
Tags: blockchain, programming, devops, react
Published: 2023-02-22 20:51:46

Smart contracts are self-executing contracts with the terms of the agreement between buyer and seller being directly written into lines of code. These contracts allow for the automation of business processes, eliminating the need for intermediaries and increasing efficiency and transparency.

Blockchain technology is particularly well-suited for smart contracts due to its immutable and decentralized nature. By storing smart contracts on a blockchain, parties can be assured that the terms of the contract cannot be tampered with or altered.

One of the most popular blockchains for smart contracts is the Ethereum blockchain, which has its own programming language, Solidity, specifically designed for creating smart contracts. These contracts can be used for a variety of purposes, such as decentralized finance (DeFi) applications, supply chain management, and voting systems.

In the DeFi space, smart contracts are used to automate financial transactions such as lending, borrowing, and trading without the need for intermediaries such as banks or brokerages. These contracts are executed automatically when certain conditions are met, such as the receipt of a certain amount of cryptocurrency or the passage of a certain amount of time.

In supply chain management, smart contracts can be used to track the movement of goods and ensure that they meet certain quality standards. By storing this information on a blockchain, all parties in the supply chain can have access to the same information, increasing transparency and efficiency.

Finally, smart contracts can be used to create more secure and transparent voting systems. By storing votes on a blockchain, it is virtually impossible for the results to be tampered with or altered, ensuring the integrity of the election process.

In conclusion, smart contracts and blockchain are a powerful combination that can be used to automate business processes, increase efficiency and transparency, and create new business models. While there are still technical and regulatory challenges to be overcome, the potential benefits of this technology are significant and are likely to be felt across a wide range of industries in the years to come.
Blockchain Technology: An Update on the Latest Developments
Tags: blockchain, web3, devops, webdev
Published: 2023-02-22 20:45:08


Blockchain technology has come a long way since its inception as the backbone of the cryptocurrency industry. Today, blockchain is being explored and implemented in a variety of industries, from supply chain management to voting systems, and has the potential to transform the way we interact with data and each other.

One of the most significant developments in the world of blockchain is the rise of decentralized finance (DeFi). DeFi is a term used to describe financial applications built on top of blockchain technology that operate without the need for intermediaries such as banks or brokerages. These applications, which include decentralized exchanges, lending platforms, and stablecoins, have gained popularity in recent years due to their transparency, security, and accessibility.

Another important development in the world of blockchain is the increasing use of non-fungible tokens (NFTs). NFTs are unique digital assets that are stored on a blockchain and are used to represent ownership of a particular item, such as a piece of art or a collectible. NFTs have gained popularity in the art world and have been sold for millions of dollars at auctions.

In addition to these developments, there have also been significant advances in the underlying technology of blockchain. For example, the Ethereum blockchain, which is the most widely used blockchain for DeFi and NFTs, is undergoing a major upgrade known as Ethereum 2.0. This upgrade will introduce new features such as staking, which allows users to earn rewards for holding and validating the blockchain, and sharding, which will increase the scalability and efficiency of the blockchain.

However, blockchain technology is not without its challenges. One of the biggest challenges facing the industry is the issue of scalability. As more users and applications are added to the blockchain, the network can become congested, leading to slow transaction times and high fees. To address this issue, developers are exploring new scaling solutions such as layer-two protocols and sidechains.

In conclusion, blockchain technology has come a long way since its early days as the backbone of cryptocurrencies. Today, blockchain is being explored and implemented in a variety of industries and has the potential to transform the way we interact with data and each other. While there are still challenges to be overcome, the rapid progress being made in the development of blockchain technology is exciting and holds great promise for the future
The Rise of Augmented Reality: A Game-Changing Technology
Tags: programming, gamedev, react, writing
Published: 2023-02-22 20:32:14

Augmented Reality (#AR) is a technology that has been gaining traction in recent years and is set to change the way we interact with the world around us. AR involves overlaying digital information onto the physical world, creating a blended environment that enhances our sensory experiences.

The most well-known application of AR is in the gaming industry, where popular games such as Pokemon Go and Ingress have captivated audiences by integrating digital characters and objects into real-world settings. But the potential uses of AR extend far beyond entertainment.

One area where AR is already being used is in industrial settings, where workers can use AR-enabled devices to overlay digital instructions and data onto their physical workspaces, increasing productivity and reducing errors.

Another promising application of AR is in education, where AR-enabled textbooks and educational materials can provide students with immersive, interactive learning experiences that enhance their understanding of complex concepts.

The healthcare industry is also exploring the use of AR in surgical procedures, where surgeons can use AR-enabled devices to overlay digital images onto the patient's body, providing real-time guidance and enhancing precision.

However, the development of AR technology is not without its challenges. One of the biggest obstacles is the need for more advanced hardware, such as lightweight and comfortable AR glasses that are suitable for everyday use.

Despite these challenges, the potential benefits of AR are so significant that many tech giants, including Apple, Google, and Microsoft, are investing heavily in the technology. As AR technology continues to evolve, we can expect to see even more innovative and transformative applications in the years to come.

In conclusion, AR is a game-changing technology with a wide range of potential applications in entertainment, education, industry, and healthcare. While there are still technical challenges to be overcome, the rapid progress being made in AR development makes it an exciting area to watch.
Quantum Computing
Tags: webdev, javascript, react, writing
Published: 2023-02-22 20:24:17

Quantum computing is a type of computing that uses quantum mechanics to perform operations on data. It takes advantage of the strange and counterintuitive properties of quantum mechanics, such as superposition and entanglement, to perform calculations that are impossible with classical computers.

Classical computers use bits, which can be either 0 or 1, to represent information. Quantum computers, on the other hand, use quantum bits, or qubits, which can be in multiple states simultaneously. This property, known as superposition, allows quantum computers to perform many calculations at once, making them exponentially faster than classical computers for certain types of problems.

Another important property of quantum mechanics is entanglement. When two qubits are entangled, their states become linked, even if they are separated by large distances. This property allows quantum computers to perform certain calculations faster than classical computers.

Quantum computing has the potential to revolutionize a wide range of fields, from cryptography to drug discovery. One of the most promising applications of quantum computing is in the field of optimization. Many real-world problems, such as scheduling and routing, are very difficult for classical computers to solve. Quantum computers, however, are particularly well-suited for optimization problems and can potentially provide faster and more efficient solutions.

Another area where quantum computing could have a significant impact is in cryptography. Quantum computers can potentially break many of the encryption schemes that are currently in use, leading to a need for new, quantum-resistant encryption methods.

Quantum computing is a rapidly advancing field with the potential to revolutionize many industries. While the technology is still in its early stages, researchers around the world are making rapid progress in developing and improving quantum computers. As these computers become more powerful, they will likely have a profound impact on many aspects of our lives, from how we communicate to how we solve complex problems.
"Having a Growth Mindset": CodeNewbie Podcast S23E2
Tags: podcast, codenewbie, beginners, career
Published: 2023-02-22 20:18:27

Hey y'all! If you didn't know— we at DEV run an incredible and supportive organization called [CodeNewbie](https://dev.to/codenewbieteam), run by our wonderful @codenewbiestaff. We also run a killer podcast.

In Season 23 Episode 2 of the CodeNewbie Podcast, @saronyitbarek talks about challenging ourselves to learn with [Tanya Reilly](https://twitter.com/whereistanyae), Senior Principal Engineer at Squarespace. 

Listen to the episode [here](https://www.codenewbie.org/podcast/having-a-growth-mindset)

Tanya Reilly is a Senior Principal Engineer at Squarespace. Before Squarespace she spent 12 years in Site Reliability Engineering at Google. She is originally from Ireland, but is now an enthusiastic New Yorker. Tanya likes raspberry pi, coding on trains and figuring out how systems will break.

- [Listen on Apple Podcasts](https://podcasts.apple.com/us/podcast/s23-e2-having-a-growth-mindset-tanya-reilly/id919219256?i=1000601083917)

- [Listen on Spotify](https://open.spotify.com/episode/1c3N28l2IeFGiy8uCEpF6g?si=ec7b5d5b09204760)

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 💜
Solving 'mvtnorm' R Package installation error Ubuntu 22.04 or Later
Published: 2023-02-22 20:14:11

> /bin/bash: line 1: gfortran: command not found
make: *** [/usr/lib/R/etc/Makeconf:192: mvt.o] Error 127
ERROR: compilation failed for package ‘mvtnorm’
* removing ‘/home/ranit/R/x86_64-pc-linux-gnu-library/4.2/mvtnorm’
Warning in install.packages :
  installation of package ‘mvtnorm’ had non-zero exit status The downloaded source packages are in
	‘/tmp/RtmpQwQ3lR/downloaded_packages’

Solution is run the command below to install gfortran in your 
`
sudo apt install gfortran
`

and then run
`
 install.packages("mvtnorm")
`

I hope that helps. Thanks <3
Protecting Your Digital Assets: Cybersecurity Best Practices for Developers
Tags: cybersecurity, devops, security, opensource
Published: 2023-02-22 20:13:28


As a developer, you play a critical role in protecting your organization's digital assets from cyber threats. From malicious code injections to social engineering attacks, hackers are constantly searching for vulnerabilities to exploit.

In this article, we'll explore some of the best practices you can implement to improve the security of your applications and data. Here are some key tips:

Use Strong Authentication: Implement multi-factor authentication (MFA) to protect your accounts and ensure that even if your passwords are compromised, your accounts remain secure. Additionally, use password managers to generate and store strong, unique passwords for each account.

Keep Your Software Up-to-Date: Ensure that your software is always running the latest version and that all security patches are applied promptly. Vulnerabilities in software are a major attack vector for hackers, and keeping your software up-to-date is crucial for protecting against these attacks.

Implement Secure Coding Practices: Follow secure coding practices such as input validation, output encoding, and proper error handling. Additionally, ensure that your code is free of vulnerabilities such as SQL injection, cross-site scripting (XSS), and buffer overflow.

Protect Sensitive Data: Use encryption to protect sensitive data both in transit and at rest. Ensure that all communications are encrypted using protocols such as HTTPS, and that sensitive data is stored in encrypted databases or file systems.

Train Your Employees: Your employees are often the weakest link in your security chain. Train them on how to identify and avoid phishing attacks, how to recognize and report suspicious activity, and how to follow secure practices such as password hygiene.

By following these best practices, you can significantly reduce the risk of a cyber attack and protect your organization's digital assets. Stay vigilant, stay informed, and stay secure.
TIL. Built/Debugged a Horoscope App
Tags: ruby, rails, beginners
Published: 2023-02-22 20:04:00

Today, i debugged a Horoscope type of application. it was interesting but not? the interesting part for me was how challenging it felt when reading the code at first, i was almost splitting my head open to the open where i felt anxious until i took a step back and took a breath then came back to it with a fresh set of eyes and i was able to flow through it with ease.
How to use LINQ in C#.NET Effectively?
Tags: csharp, dotnet, computerscience, programming
Published: 2023-02-22 19:39:29

Looking to learn LINQ and use it effectively in C#.NET?

Checkout my latest blog on this topic and grow your knowledge.

[Learn LINQ in C# - Part 1](https://techartifacts.com/linq-in-c-sharp-part-1/)
AWS Cloud Quest: Resource Governance Study Note
Tags: aws
Published: 2023-02-22 19:18:11

This is the DIY challenge of the Resource Governance in AWS Cloud Quest.


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



### DIY Steps:
1. Add rule `s3-bucket-versioning-enabled`
2. Enable versioning on `config-bucket-###`
Top 10 Array Methods in JavaScript
Tags: javascript, beginners, webdev, programming
Published: 2023-02-22 19:13:04

JavaScript arrays are one of the most commonly used data structures in the language. Arrays are a powerful and flexible tool that can be used to store and manipulate data in a variety of ways. Here are the top 10 array methods in JavaScript along with examples of how they can be used:

## 1. push()

The push() method adds one or more elements to the end of an array and returns the new length of the array.

Example:

```
const array1 = [1, 2, 3];
array1.push(4);
console.log(array1); // [1, 2, 3, 4]

```

## 2. pop()

The pop() method removes the last element from an array and returns that element.

Example:

```
const array1 = [1, 2, 3];
const lastElement = array1.pop();
console.log(lastElement); // 3
console.log(array1); // [1, 2]

```

## 3. shift()

The shift() method removes the first element from an array and returns that element.

Example:

```
const array1 = [1, 2, 3];
const firstElement = array1.shift();
console.log(firstElement); // 1
console.log(array1); // [2, 3]

```

## 4. unshift()

The unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.

Example:

```
const array1 = [1, 2, 3];
array1.unshift(4, 5);
console.log(array1); // [4, 5, 1, 2, 3]

```

## 5. slice()

The slice() method returns a shallow copy of a portion of an array into a new array object.

Example:

```
const array1 = [1, 2, 3, 4, 5];
const array2 = array1.slice(1, 3);
console.log(array2); // [2, 3]

```

## 6. splice()

The splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements.

Example:

```
const array1 = [1, 2, 3, 4, 5];
array1.splice(2, 1, 6);
console.log(array1); // [1, 2, 6, 4, 5]

```

## 7. concat()

The concat() method is used to merge two or more arrays into a new array.

Example:

```
const array1 = [1, 2, 3];
const array2 = [4, 5, 6];
const newArray = array1.concat(array2);
console.log(newArray); // [1, 2, 3, 4, 5, 6]

```

## 8. filter()

The filter() method creates a new array with all elements that pass the test implemented by the provided function.

Example:

```
const array1 = [1, 2, 3, 4, 5];
const filteredArray = array1.filter(num => num > 2);
console.log(filteredArray); // [3, 4, 5]

```

## 9. map()

The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.

Example:

```
const array1 = [1, 2, 3];
const mappedArray = array1.map(num => num * 2);
console.log(mappedArray); // [2, 4, 6]

```

## 10. reduce()

The reduce() method applies a function against an accumulator and each element in the array to reduce it to a single value.

Example:

```
const array1 = [1, 2, 3, 4, 5];
const reducedValue = array1.reduce((accumulator, currentValue) => accumulator + currentValue);
console.log(reducedValue); // 15

```

These are the top 10 array methods in JavaScript. There are many other methods available that can help you manipulate arrays in different ways. Understanding these methods will help you write more efficient and concise code.
Idempotent
Tags: idempotent
Published: 2023-02-22 19:09:44

---
title: Idempotent
published: true
description: The correct pronunciation of the word "idempotent"
tags: idempotent, idempotent, idempotent
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h8luivsexs73w26aykar.png
---

[idempotent](https://youtu.be/csInNn6pfT4?t=812)
 
 
 
 
 
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opdxe3y93bvmffkpl1m3.png)