teleren/devto huggingface dataset:
Как установить Redis на Arch linux
Tags: redis, archlinux
Published: 2023-04-24 05:16:42

Сегодня покажу как очень просто можно установить redis на arch

```
sudo pacman -S redis
sudo systemctl start redis
sudo systemctl enable redis
```
Тут мы установили сам редис, запустили его, а после сделали так, чтобы он запускался вместе с системой
Установка Postgresql на Arch Linux
Tags: archlinux, postgres
Published: 2023-04-24 05:07:03

Простая установка postgresql на arch

```
sudo pacman -S postgresql
```
При установке postgresql он создаст нового пользователя
```
sudo -iu postgres
```
Далее инициализируем кластер баз данных

```
initdb --locale=ru_RU.UTF-8 --encoding=UTF8 -D /var/lib/postgres/data --data-checksums
```
Теперь нужно запустить его, а так же сделать так, чтобы он запускался вместе с системой

```
sudo systemctl enable postgresql
sudo systemctl start postgresql
```
Cоздадим первую бд

```
createdb названиеБд
```
Готово, у вас установлен postgresql на арче, базовый пароль root, а имя пользователя postgres по нему подключаетесь
Чтобы выйти с пользователя postgres, пропишите `exit`
MOT Recovery Concepts
Tags: opengauss
Published: 2023-04-24 04:48:27

The MOT Recovery Module provides all the required functionality for recovering the MOT tables data. The main objective of the Recovery module is to restore the data and the MOT engine to a consistent state after a planned (maintenance for example) shut down or an unplanned (power failure for example) crash.

openGauss database recovery, which is also sometimes called a Cold Start, includes MOT tables and is performed automatically with the recovery of the rest of the database. The MOT Recovery Module is seamlessly and fully integrated into the openGauss recovery process.

MOT recovery has two main stages – Checkpoint Recovery and WAL Recovery (Redo Log).

MOT checkpoint recovery is performed before the envelope's WAL recovery takes place. This is done only at cold-start events (start server). It recovers the metadata first (schema) and then inserts all the rows from the current valid checkpoint, which is done in parallel by checkpoint_recovery_workers, each working on a different table. The indexes are created during the insert process.

When checkpointing a table, it is divided into 16 MB chunks, so that multiple recovery workers can recover the table in parallel. This is done in order to speed-up the checkpoint recovery, it is implemented as a multi-threaded procedure where each thread is responsible for recovering a different segment. There are no dependencies between different segments therefore there is no contention between the threads and there is no need to use locks when updating table or inserting new rows.

WAL records are recovered as part of the envelope's WAL recovery. openGauss envelope iterates through the XLOG and performs the necessary operation based on the xlog record type. In case of entry with record type MOT, the envelope forwards it to MOT RecoveryManager for handling. The xlog entry will be ignored by MOT recovery, if it is 'too old' – its LSN is older than the checkpoint's LSN (Log Sequence Number).

Performance is the key benefit of MOT, and low latency RTO in high availability scenarios is not an exception. With openGauss 5.0 release, MOT engine includes a Parallel Recovery mechanism to achieve low RTO as per openGauss specifications.

In an active-standby deployment, the standby server is always in a Recovery state for an automatic WAL recovery process.

The MOT recovery parameters are set in the mot.conf file explained in the MOT Recovery section.
Phim | Phim Mới | Phim Hay | Phim Hot | Xem Phim Nhanh Trực Tuyến
Published: 2023-04-24 04:31:16

https://xemphim.ai/ Xem phim nhanh miễn phí chất lượng cao✔️ Xem Phim online Việt Sub✔️ Xem phim nhanh online chất lượng cao✔️✔️✔️
hotroxemphimai@gmail.com
https://www.instapaper.com/p/xemphimai
https://slides.com/xemphimai
https://www.linkedin.com/in/xemphimai/
https://solo.to/xemphimai
https://scrapbox.io/xemphimai
https://wakelet.com/@xemphimai
Interview with creator of CocoonWeaver app about safe data storage
Tags: database, privacy, security, trust
Published: 2023-04-24 04:14:54

tags:: #dataStorage #dataSafety

1. What factors made you chose to use local data storage for content? ( safety, trust, cost?)

⁠Privacy at its core. The core philosophy of the app is to enable people to be more vulnerable with themselves whilst using technology. A lot of our users see cocoonweaver as a way to self reflect, talk to themselves, decompress mental states, journal (day or dream) and even though it would be easy and inexpensive to enable backups to clouds etc, it’s the psychology of all the data being stored locally, on device, that allows our users to express themselves more freely in a deeper way, whether it’s with voice or tapping to write. In this way, in the deeper sense, cocoonweaver can be stronger in being a platform for self transformation. A safe space.

2. Which storage size provisions did you make, if any? (Think size of each file)

Our voice notes are compressed and take up very little data. Text files anyway. Storage is limited to local available storage. We are working on a longterm solution to manage space, but it is not a priority as it would require a user to use cocoonweaver for years to accumulate enough data to have any issues. Of course, people can manually delete items.

3. Was there a difference in implementing local data storage between iOS and android? ( which packages did you use, if any? Pain points in implementing local data storage between platforms ?)

⁠It’s straight forward in both platforms. Android, as always, takes a little longer.

4. Did you use a cross platform solution for development? Why or why not?

We are working on it. Why? Because people should be able to access their data on different platforms - but privacy comes first and we are working on solutions they involve decentralized communication.

[END of interview]

CocoonWeaver is a beautifully designed app and it is great help to take voice notes on the go. The app is available for free on iOS and Android. Give it a download. 

Disclaimer: This is NOT a sponsored post, this interview is just a deeper dive into the considerations one can face when making an architectural decision in data storage, making safety a top priority.
Growing your team culture
Tags: team, culture, growth
Published: 2023-04-24 04:03:51

Team culture is a collection of values, norms, and beliefs. It is the behaviours that are being rewarded, punished, and ignored. Team culture is the explicit and implicit social behaviours. It is the thousand little decisions that every person in the company makes every day. Healthy team culture is difficult and it is getting harder with the new ways of working. It requires active attention to planning and a great deal of work. 

Here are some practical ideas from the Blackmill Toolbox for you to to try with your team to grow your culture today. 

**1. Define your engineering culture**
Healthy cultures take time to evolve. It starts with acknowledging where you are now and where you want to be. Start by documenting your current reality. For example, write down how you currently collaborate and what your processes look like. What makes for a good pull request in your team? How, and when, do you deploy? What principles do you follow? Do you have coding standards? This will make the implicit behaviours in your culture explicit.

Download the full PDF at https://blackmill.co/downloads
【Unity】A script for easier scenes debugging in Unity Editor
Tags: unity3d
Published: 2023-04-24 04:00:41

## Intro
I recommend to create a script for debug at first on creating a new Unity project. It costs you at first, but the benefits will pay off over time.

This time I will write in this article how to display all scenes for debugging.

## Demo 
A script can easily display all scenes in a project, like this:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zf3so43t9m4zpwu1tpzm.png)

## Sample Code


```CS

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class DisplayDebugScene : MonoBehaviour
{
    private List<string> _sceneNameList;

    private static DisplayDebugScene _instance;

    private void Awake()
    {
        if (_instance != null)
        {
            Destroy(_instance);
            return;
        }

        _instance = this;
        DontDestroyOnLoad(_instance);

        _sceneNameList = new List<string>();
        for (int i = 1; i < SceneManager.sceneCountInBuildSettings; i++)
        {
            var path = SceneUtility.GetScenePathByBuildIndex(i);
            var sceneName = path.Substring(0, path.Length - 6).Substring(path.LastIndexOf('/') + 1);
            _sceneNameList.Add(sceneName);
            Debug.Log(sceneName);
        }
    }

    private void OnGUI()
    {
        foreach (var sceneName in _sceneNameList)
        {
            if (GUILayout.Button(sceneName))
            {
                SceneManager.LoadScene(sceneName);
            }
        }
    }
}

```


As a point of caution the script retrieves scenes other than the first in "Scene in Build". So you can create a scene for debug and attach the script.

Additionally, scene folder path should fix as "Scene".
How to Use a Custom Price Template in Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-04-24 03:56:20

Magento 2 is a famous web based business stage that gives a scope of highlights and customization choices to storekeepers. One such customization is the capacity to make a custom cost format. 

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

In this blog, we'll give a bit by bit guide on **_how to use a custom price template in Magento 2_**. With a custom cost layout, storekeepers can grandstand item costs in a way that lines up with their store's general plan, brand picture, and evaluating technique, including the presentation of level costs.

For more info, visit **_https://webguru.dev/how-to-use-a-custom-price-template-in-magento-2/
_**
The New Tailwind Plugin You'll Want On Every Responsive Project
Tags: webdev, tailwindcss, css, design
Published: 2023-04-24 03:49:47

Web designs are often polished & delivered, targeting just your largest mobile, tablet, and desktop view widths.

In the gap between design handoff and dev implementation, there's a lot of squishing that has to happen to the desktop design until it breaks into the smaller tablet layout.

Headers wrap, layout stretches vertically, designers weep, developers can't reasonably do much to help.

Until now...

![fluid-text-plugin demonstration, a screen resizes and the layout changes at specific breakpoints but the headers smoothly transition to a perfect size every step of the way](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0z4zscvixlvw3e421ipj.gif)

`fluid-text-plugin` was published earlier today on [GitHub](https://github.com/bitovi/fluid-text) and [NPM](https://www.npmjs.com/package/fluid-text-plugin?v0.0.2)

Just one Tailwind* utility class and you can specify fluid font sizes that maintain well designed headers no matter what size the screen is at. The `fluid-text-plugin` even uses your custom breakpoints automatically with zero additional setup.

<sub>* also works with UnoCSS and as a standalone utility function when no build system is available.</sub>

---

I suspect this one will get a lot of traction as it makes a well known issue, encountered on almost every project, near-trivial to fix.

Not bad for a little weekend project 🎉
Hope it helps you!

Will you be using it? 💜
Using Ruby with Conda🐍
Tags: ruby, anaconda, conda, miniconda
Published: 2023-04-24 03:45:35

There might be cases where you want to install and use Ruby with Anaconda or Miniconda. Normally, you would just use:

```
conda install ruby
```

By doing this, Ruby becomes usable. however, it will not compile gems that use native extensions. Since it is nearly impossible to use Ruby without utilizing native extensions, this method is not very practical.

Instead, you can simply install Ruby from conda-forge and install the compilers package at the same time:

```
conda install -c conda-forge ruby
conda install -c conda-forge compilers
```

This way, you can easily use Ruby within Conda environments like Anaconda or Miniconda. 

If this does not work, check `conda list` to see if Ruby other than conda-forge may have been installed.

Enjoy your Ruby life!

Reference:
https://github.com/conda-forge/ruby-feedstock/issues/44
CSS Blend Modes
Tags: css, frontend, webdev
Published: 2023-04-24 03:16:44

CSS blend modes allow you to blend overlapping pixels. There are 15 different values to choose from. Each sets how pixels interact with each other.

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


Using blend modes, we can make paper textures, color parts of an image & create duotone effects.

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


For more information and interactive example, see https://garden.bradwoods.io/notes/css/blend-modes
this is my tempo
Published: 2023-04-24 03:00:30


hhhhhhhhhhhhhhhhhhhhhhhhhhhh

> no body
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9d3tmiqaa2sr26glgrt4.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uxt1gwoiummlzmh6vrcg.png)[t](fff)
dfgdfg

1. dfgd

- fgf

1. fg

## sfdgdf

> no one
`const user = new user`

```
app.listen(`server is running on port`)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rd25ylxidj6b98r5x29p.png)
```
react-native issues: module map file not found
Tags: reactnative, issue
Published: 2023-04-24 02:09:21


## Issue
![Issue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lb8mp2di12n1iix8n4jw.png)


=> Because of XCode cache our library

## Solution
Step 1: Open Xcode
- `Product` > `Clean Build Folder`
- Close Project

Step 2: Remove node_modules and Pods
```
cd /<project-name> && rm -rf node_modules

cd /ios && rm -rf Pods
```

Step 3. Remove cache
```bash
cd /Users/<computer name>/Library/Developer/Xcode/DerivedData

rm -rf ***-cnjsxtawhwknragbiskdnvolmcxm
```

Step 4: Re-install node_module && pod
```
cd /<project-name>
yarn 

cd /ios && pod install
```

Step 5: Open Xcode
- Waiting indexing done (we still got error but after indexing everything will correct)
![XCode Indexing](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aszviie7lktxdmlsq0nn.png)


Step 6: Edit pod file
- not use_flipper
- exclude architecture arm64
```Podfile
  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  # use_flipper!() 

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
```
My New Website
Tags: react, firebase, homepage
Published: 2023-04-24 02:10:50

---
title: My New Website
published: true
description: [Pitch] about my new website, I'd like to give feedbacks about it.
tags: react, typescript, firebase, homepage
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-04-24 02:08 +0000
---

Hi Everyone 👋👋👋! Finally I implemented a satisfactory homepage in my opinion, simple, clean and objective for a dev frontend 👨‍💻, I still have a lot to work on but this is the first version [https://interaminense.dev](https://interaminense.dev). It seems simple but behind this simple screen I created an admin area where I can manage all the content I want on the page, and that's what made me most satisfied because it made it easier to maintain it.

Besides that I created it in a generic way where any dev can clone my repository and create their own website. Soon I will update readme on how to do that. Also I left here are all things I will still work on to improve this first version.

Give me feedback 🗣️🗣️🗣️, it helps me a lot. Hugs 🫶!
5 Benefits of using Terraform
Tags: terraform, devops, infrastructure, devjournal
Published: 2023-04-24 02:04:00

Terraform is a popular open-source tool for managing infrastructure as code. 

Some of the main benefits of using Terraform include:


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


## 1. Improved collaboration: 
It allows teams to define and manage infrastructure using version control, which makes it easier for multiple people to collaborate and work on the same codebase. This can help improve collaboration and reduce the risk of errors.



## 2. Version history: 
It automatically maintains a version history of your infrastructure, which makes it easy to roll back to previous versions if necessary. This can help protect against mistakes and ensure that you can recover from failures quickly.



## 3. Consistency: 
It allows you to define your infrastructure using a high-level configuration language, which means that you can specify the desired state of your infrastructure in a consistent and predictable way.


## 4. Reusability: 
It allows you to define infrastructure as modular components, which can be easily reused across multiple deployments. This can help reduce duplication and make it easier to manage your infrastructure at scale.



## 5. Portable across cloud providers: 
It is portable across different cloud providers, which means that you can use the same tools and processes to manage your infrastructure regardless of where it is deployed.


Overall, Terraform offers a number of benefits for managing infrastructure as code. It has become a mandatory tool to set up reproducible multi-cloud infrastructure.


Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more about DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
Microservice: Independent Governance #5
Published: 2023-04-24 02:00:13

The concept of Independent Governance is another fundamental principle of microservices architecture. It refers to the idea that each microservice should be managed independently, without relying on other services or the system as a whole.

This means that each development team must have the autonomy to manage its own service, without interference from other teams or departments. Each service should have its own development team, responsible for its implementation, testing and maintenance.

This approach allows development teams to be more agile and responsive to market changes, without worrying about the impact of their changes on other services. It also makes it easier for teams to manage system complexity and maintain code quality.

Furthermore, Independent Governance implies the need for adequate monitoring, log management, configuration management and version management infrastructure for each microservice. This infrastructure must be able to handle horizontal and vertical scalability of services and allow development teams to manage their services independently.

In summary, Independent Governance is an important principle in microservices architecture, as it allows development teams to be more agile and responsive to market changes, while ensuring the quality and reliability of the system as a whole.

<br />

______________[<< back](https://dev.to/israellopes/microservice-sole-responsibility-4-1720)____________________[next page >>](https://dev.to/israellopes/microservice-devops-and-automation-6-lfi)_____________

[![Texto alternativo da imagem](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ds4alkts3uxq0dsco0nv.png)](https://www.linkedin.com/in/israel-lopes-419a32189)
Mistakes you should avoid, If you are coding with your Mobile Phone
Tags: mobile, webdev, javascript, beginners
Published: 2023-04-24 01:39:35

Learning to code on a mobile device can be a challenging task, but it's not impossible. Here are some common mistakes to avoid while learning how to code with mobile:

Choosing the wrong app: There are many coding apps available on mobile devices, and not all of them are created equal. Be sure to do your research and choose an app that suits your needs and skill level.

Not utilizing the device's features: Mobile devices come with a range of features that can make coding easier, such as touchscreens, voice recognition, and stylus pens. Make sure to take advantage of these features to optimize your coding experience.

Lack of focus: Mobile devices are often associated with distractions, such as social media, messaging apps, and games. To avoid distractions, create a dedicated workspace for coding and remove any unnecessary apps or notifications from your device.

Skipping fundamentals: While mobile coding apps may offer shortcuts and pre-built templates, it's important not to skip the fundamental coding concepts. Ensure that you learn the basics of coding, such as variables, functions, and loops.

Not practicing enough: Consistent practice is key to mastering any skill, including coding. Make sure to set aside regular time for coding practice, even if it's just a few minutes a day.

Not seeking help when needed: Learning to code can be challenging, and it's important to seek help when you need it. Look for online resources, forums, and communities to help you overcome coding challenges.

By avoiding these common mistakes, you can enhance your mobile coding experience and develop the skills needed to become a proficient coder.
Say Goodbye to Job Hunting Stress: Implementing Match Logic in Contractr
Tags: webdev, javascript, programming, react
Published: 2023-04-24 01:05:08

Today on the Contractr project, I worked on implementing the logic for retrieving the liked clients' objects. As a freelancer, the signed-in user can like clients, and it's essential to be able to retrieve those objects for future matches.
It took a bit longer than I would like, but I was able to figure out the logic for how to retrieve only matches. I searched the database for the signed-in user's userID in the liked users' "likes" array and populated the match component with those people.
I was reminded once again that 80% of problem-solving is formulating the right question. It was a lot of fun to work on this part of the project, and I'm excited to continue developing it.
However, I also realized that I need to work on the front-end for the match component to provide a better user experience.
In the upcoming days, I plan to continue working on the Contractr project and improving the matching feature. Stay tuned for more updates and progress reports as I continue on this exciting path of learning and growth.
Thank you for following my journey!
Welcome aboard, tag moderators! Let's rock this community together 🚀
Tags: discuss, moderators
Published: 2023-04-24 00:49:30

Hey there, fellow tag moderator! 👋

As one of the newest members of our tag moderator team, I wanted to give you a big warm welcome to the Dev Community. We're all thrilled to be on board and can't wait to see all the amazing things we can achieve together.

As tag moderators, we play a vital role in keeping our community organized, relevant, and engaging for our members. We know that the job can be tough at times, but I'm confident that with our skills and expertise, we can make a real difference.

We're all in this together and I want you to know that we're here to support each other in every step of the way. Whether you have questions, concerns, or just want to bounce some ideas around, we're always here to listen and help.

So let's rock this community together! The community is excited to have us on board and can't wait to see what we can accomplish. Welcome to the team! 🙌

Say hello in the comment section 🎉