teleren/devto huggingface dataset:
reduce() iterator
Published: 2024-02-28 02:39:57

Hello! I forgot to post a lot of my progress so far, however we have made progress. I have been starting to record myself as I go along. I heard that if you are able to teach someone else, then you are comprehending the material. Thus, I might post on here!

I have been going over array iteration! Just finished with the reduce() iterator. Below you can see the work I did. 

// Code your solution here
const batteryBatches = [4, 5, 3, 4, 4, 6, 5];

function batteryReducer(totalBatteries, currentBatch) {
  return totalBatteries + currentBatch;
}

const totalBatteries = batteryBatches.reduce(batteryReducer, 0);
Homebrew on a multi-user Mac with a silicon chip
Published: 2024-02-28 02:39:04

It's not the catchiest title, but hopefully this post will be helpful if you have a specific use case — you have a Mac with a silicon chip, you have two users that are essentially you (i.e. work and personal), and you want homebrew to be accessible on both.

This isn't an unknown situation, see [here](https://unix.stackexchange.com/questions/714796/homebrew-multiuser-on-monterey-m1).

I'll call the two users `personal` and `work` throughout this post

## install homebrew

The first step is to install [homebrew](https://brew.sh/). I installed mine on `personal`.

If you run `echo $PATH`, you should see homebrew in your path:

```bash
/opt/homebrew/bin:/opt/homebrew/sbin
```

When you run `brew` in the terminal, those paths are where homebrew lives, which is different on the Applie silicon chips than older chips.

## update other user config

In `work`, update the `.zshrc` file by adding this:

```bash
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
alias brew='sudo -Hu personal brew'
```

The first line simply adds homebrew to your `$PATH`.

Because this user doesn't have permissions for the `brew` command, you have to hardcode the values.

The second line simply aliases the `brew` command to use `sudo` to run `brew` from the `personal` user.

Then restart your shell.

After that, while logged in as `work`, you can run `brew install <PACKAGE>`, enter the password for `personal`, and then the package will be accessible to both users!

This may not be the perfect way to do it, but it worked for me.
wbtc.axl
Tags: wbtc, osmosis, token
Published: 2024-02-28 02:25:56

hi, All
i am beginner of blockchain develop.
i am studying about osmosis chain.
there are many chains including cosmos-hub, celestia, osmosis, STRD in keplr extension.
**i want to transfer wbtc.axl token on osmosis from osmoA to osmoB**.
please help me. thanks
Complete Guide: Fully Uninstalling Microsoft SQL Server 2019 from Your System
Tags: sql, tutorial, productivity, sqlserver
Published: 2024-02-28 02:12:09

Microsoft SQL Server 2019 is a flagship relational database management system (RDBMS) developed by Microsoft. It's celebrated for its robust performance, extensive features, and scalability, serving diverse data management needs across businesses. Renowned for advancements in performance, security, and analytics, SQL Server 2019 remains a pivotal tool in the realm of data management and analysis.

**Fully Uninstall for Microsoft SQL Server 2019:**

Uninstalling Microsoft SQL Server 2019 entirely from your system involves more than just removing the program through the Control Panel. To ensure a complete removal, including all components and associated files, follow these steps:

1. Stop SQL Server Services: Before proceeding with the uninstallation process, ensure that all SQL Server services are stopped. Open the "Services" application from the Windows search bar, locate any services related to SQL Server, and stop them.

2. Uninstall SQL Server: Open the Control Panel, navigate to Programs and Features, and find "Microsoft SQL Server 2019" in the list of installed programs. Right-click on it and select "Uninstall." Follow the prompts to uninstall SQL Server.

3. Remove SQL Server Instances: If you have multiple instances of SQL Server installed, you may need to remove them individually. You can do this during the uninstallation process or by using the SQL Server Installation Center.

4. Delete SQL Server Data Directories: Manually delete any data directories or files associated with SQL Server. These may include the data files, log files, and backup files stored on your system. Common directories to check include C:\Program Files\Microsoft SQL Server and C:\Program Files (x86)\Microsoft SQL Server.

5. Remove Registry Entries: Be cautious when editing the Windows Registry. Open the Registry Editor (search for "regedit" in the Windows search bar) and navigate to the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLSERVER (or any SQL Server instance name)
Delete any keys or entries related to SQL Server.

6- Clean Up Program Files: Navigate to the installation directory where SQL Server was installed and delete any remaining files or folders.

7- Restart Your Computer: After completing the uninstallation process and cleaning up any remaining files, restart your computer to ensure that all changes take effect.

By following these steps, you can perform a fully uninstallation of Microsoft SQL Server 2019 from your system, removing all components and associated files. This ensures a clean removal and frees up disk space on your computer.
Top Digital Marketing Services In Namakkal
Tags: seo, digitalmarketin
Published: 2024-02-28 01:25:34

Lime Fresh helps to reach your brand all over the world by creating Strategy according to the nature of business and Target Audience.
We specialize in digital marketing services in Namakkal, including website development, to effectively promote your brand and cater to small businesses. Trust us as the top digital marketing agency in Namakkal for all your digital marketing and web development needs
https://bit.ly/3SFtOCu
CancellationToken em aplicações .NET
Tags: cancellationtoken, dotnet, csharp, async
Published: 2024-02-28 01:24:20

O objetivo desse artigo é demonstrar como utilizar o cancellationToken em aplicações .NET através de um exemplo simples e prático.

Mas, a final o que é o CancellationToken? bem, o cancellationToken no C sharp é uma struct, responsável por propagar uma notificação informando que as operações assíncronas devem ser canceladas, ou seja, devem encerrar seus processos e liberar os recursos que estão consumindo na execução de sua tarefa.

Caso de uso
Imagine o seguinte cenário: Você tem uma API que retorna uma lista de itens X para serem renderizados em um sistema, mas a API demora alguns segundos para retornar os dados, pois ela faz algumas consultas no banco de dados e algumas validações. Agora, imagine o usuário utilizando o sistema que consome os dados da sua API e note que está demorando certo tempo para exibir as informações, então o usuário decide recarregar a página algumas vezes, mas e aí? O que vai acontecer com as solicitações que o usuário fez a cada vez que recarregou a página? Bem, é aí que entra a importância de utilizar o cancellationToken.

Imagine que nesse cenário acima não estamos utilizando o cancellationToken, logo, a cada vez que o usuário recarregar a página vai sobrecarregar mais o sistema e consumir mais recursos sem necessidade, pois a aplicação vai tentar processar todas as solicitações, mesmo que o usuário tente cancelar e pedir uma nova (no caso recarregando a página).
Agora fazendo uso do cancellationToken, a cada vez que o usuário recarregar a página vai ser lançado uma TaskCanceledException, e, assim, a operação vai ser encerrada. Com isso, não vamos sobrecarregar o servidor com requisições desnecessárias e liberar os recursos que estavam em uso.

Para um melhor entendimento, vamos ver um exemplo prático. Para isso, desenvolvi uma minimal API em .NET 7 que contém dois endPoints, nos quais um vai conter uma operação com o cancellationToken e o outro sem o cancellationToken.
Para deixar nosso exemplo simples, adicionamos um task.Delay para simular a demora que poderia ser uma integração com algum serviço externo ou uma query que busca informações na base de dados. Também adicionamos alguns logs durante a execução para ficar mais fácil o entendimento.

Segue o vídeo abaixo demostrando o projeto em execução:
https://youtu.be/gb-E1_8Q3e4?si=m54L3ohbSxAh6sHe

Note que, quando fazemos o request sem o cancellationToken, ao recarregar a página a execução continua até o fim, e quando utilizamos o cancellationToken, ao recarregar a página a execução é finalizada e os recursos são liberados.

Chegamos ao fim de mais um artigo, espero que tenha ficado claro a importância de utilizar o CancellationToken em suas aplicações web.

Abraços e até breve!
Redux reducers: not to do
Tags: redux, webdev, react, programming
Published: 2024-02-28 00:43:01

Reducers must be:
  1. **pure**: pure reducer does not mutate the state directly.
  2. **side-effect free**: reducer does not change a non-local state, nor use an external code. ex) console.log()
  3. **synchronous**: reducer does not "await" for asynchronous results. ex) HTTP request

If **side-effects & async** tasks are necessary,
  1. Use them **inside components**: via useEffect.
  2. Use **action creators**.
Senior Software Engineers are needed in BlockFills
Tags: javascript, cryptocurrency, webdev, react
Published: 2024-02-28 00:38:15

BlockFills is a crypto trading solutions and financial technology firm dedicated to the provision of bespoke end-to-end solutions to participants in the cryptocurrency market worldwide.

BlockFills is a multi-vertical company whose technology and innovation helps clients of all types in 70+ countries participate in the crypto markets via state-of-the-art solutions.

Are you an innovative engineer with bold ideas and the fortitude to see them through?

If so, please contact me: jackp.watson888@outlook.com
What are the Reasons to Hire a Gutter Repair Service in Fort Lauderdale?
Published: 2024-02-28 00:37:21

1. Expertise: Professional gutter repair services in Fort Lauderdale have the knowledge and experience to accurately diagnose gutter issues and provide effective solutions.
2. Safety: Working on gutters can be risky. Hiring a repair service ensures the job is done safely, preventing accidents and injuries.
3. Time-saving: Professionals can complete gutter repairs efficiently, saving you valuable time and effort.
4. Quality Workmanship: With a repair service, you can expect high-quality repairs that last longer and ensure proper drainage.
5. Preventive Maintenance: Regular gutter maintenance prevents costly repairs and protects your home from water damage. Hiring a service ensures your gutters remain in top condition year-round.
[](https://theguttersfactory.com/gutters-factory-fort-lauderdale/
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/adai6846y9e2i428nutf.png))
Introduction to Snowpal Podcast: Learnings from running a software startup (Part 3/3)
Published: 2024-02-28 00:16:27

This podcast episode provides an overview of Snowpal Software Development and Architecture podcast. The episode covers the company's background, the products and services they offer, and the purpose of the podcast. It emphasizes the goal of sharing learnings and shortening the learning curve for listeners. The episode also discusses the importance of continuous learning and improving skills. Additionally, it highlights the podcast's focus on live coding and interview preparation, aiming to remove fears associated with coding interviews. The episode concludes by inviting listeners to subscribe and stay updated with the podcast.

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

## Takeaways

- Snowpal offers a suite of products and services including web applications, mobile apps, APIs, and an education platform.
- The podcast aims to share learnings and shorten the learning curve for listeners.
- Continuous learning and improving skills are emphasized throughout the episode.
- The podcast covers topics such as live coding and interview preparation to help listeners feel more confident in coding interviews.

## Chapters

00:00 Introduction and Background

01:12 Overview of Products and Services

03:33 Learning and Improving Skills

04:13 Live Coding and Interview Preparation

05:25 Collaborative Podcasts and Conclusion

## Video

{% embed https://youtu.be/-4ofCdhAmwk %}

## Transcript

https://products.snowpal.com/api/v1/file/a71a5e3d-4fb0-45bf-815c-4913b5bccb39.pdf
How to enable auto-save in Visual Studio Code?
Tags: tutorial, productivity, programming, vscode
Published: 2024-02-28 00:15:38

## How to enable auto-save in Visual Studio Code?
Visual Studio Code, often abbreviated as VS Code, stands as a leading free and open-source code editor crafted by Microsoft. Praised by developers worldwide for its flexibility, rich functionalities, and expansive customization capabilities, VS Code caters to diverse coding needs. Whether you're crafting concise scripts or architecting intricate applications, Visual Studio Code offers a fluid and effective platform for coding endeavors.

Now, let's delve into how you can enable auto-save in Visual Studio Code to streamline your workflow and ensure that your changes are automatically saved without manual intervention.

Enabling auto-save in Visual Studio Code is a straightforward process:

1. Open Visual Studio Code: Launch the application on your computer.

2. Access Preferences: Navigate to the "File" menu located in the top-left corner of the editor interface. From there, select "Preferences."

3. Go to Settings: Within the "Preferences" submenu, click on "Settings" (or use the shortcut Ctrl + , on Windows/Linux or Cmd + , on macOS) to access the settings panel.

4. Search for Auto Save: In the Settings search bar, type "auto save" to quickly locate the relevant option.

5. Choose Auto Save Option: Under the "Files: Auto Save" setting, you'll find a dropdown menu with three options: "onWindowChange", "afterDelay", and "onWindowChange". Select the auto-save option that best suits your preferences and workflow:

- "onWindowChange": Automatically saves files when you switch to a different window or application.
- "afterDelay": Automatically saves files after a certain delay, which you can customize.
- "onWindowChange": Automatically saves files whenever changes are made, without any delay.


Confirmation: Once you've selected your desired auto-save option, Visual Studio Code will implement the changes immediately, and your preferences will be saved for future sessions.

By enabling auto-save in Visual Studio Code, you can focus more on your coding tasks without the worry of losing unsaved changes. This feature enhances productivity and ensures that your work is continuously backed up, providing peace of mind during your coding sessions.
Introduction to Snowpal Podcast: Software Architecture (Part 2/3)
Published: 2024-02-28 00:15:06

This podcast episode discusses the different categories and topics covered in Snowpal Software Development and Architecture podcast. The episode starts with an introduction and recap of the previous episode. It then explores the platforms where the podcast is available, namely Apple and Spotify. The conversation then delves into the various categories, including software development and architecture, Flutter, AWS, Ruby and Golang, cloud technologies, and collaborative podcasts.

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

## Takeaways

- Snowpal Software Development and Architecture podcast is available on Apple and Spotify.
- The podcast covers a wide range of topics, including software development and architecture, Flutter, AWS, Ruby and Golang, cloud technologies, and collaborative discussions.
- Listeners can find specific episodes by searching within the podcast on their mobile devices.
- The podcast features guest speakers and covers both technical and non-technical topics.

## Chapters

00:00 Introduction and Recap

00:50 Platforms: Apple and Spotify

03:09 Flutter

04:16 AWS

05:47 Ruby and Golang

06:29 Cloud Technologies

07:10 Collaborative Podcasts

## Video

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

## Transcript

https://products.snowpal.com/api/v1/file/80987cbc-e868-49bc-927a-a6450c5fb23a.pdf
Introduction to Snowpal Podcast: Software Development (Part 1/3)
Published: 2024-02-28 00:13:10

This podcast is an introduction to Snowpal Software Development and Architecture podcast. It covers various categories of podcasts, including development and architecture, collaborative podcasts, and Snowpal updates. The development podcasts primarily focus on technical topics, while the collaborative podcasts feature guest experts discussing a range of subjects. The podcast also highlights the Snowpal education platform and provides updates on courses and products. The podcast is available on multiple platforms, including Apple and Spotify.

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

## Takeaways

- Snowpal's podcast covers a wide range of topics in software development and architecture.
- The podcast includes both solo and collaborative episodes, featuring guest experts.
- The Snowpal education platform offers affordable and hands-on courses.
- The podcast is available on various platforms, making it accessible to a wide audience.

## Chapters

00:00 Introduction to the Podcast

03:17 Overview of the Podcast Categories

06:20 Development and Architecture

07:39 Collaborative Podcasts

08:59 Snowpal Updates

10:06 Topics Covered in Development Podcasts

13:03 Topics Covered in Collaborative Podcasts

15:05 Snowpal Education Platform and Updates

18:47 Conclusion

## Video

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

## Transcript

https://products.snowpal.com/api/v1/file/8dd94a51-f13c-4abb-9f78-0cc520cfe9cc.pdf
Drawing a Hex Grid in SwiftUI
Tags: programming, swift, ttrpg
Published: 2024-03-04 17:11:28

---
title: Drawing a Hex Grid in SwiftUI
published: true
date: 2024-02-28 00:00:00 UTC
tags: programming,swift,ttrpg
canonical_url: http://calebhearth.com/drawing-a-hex-grid-in-swiftui
---

Last time we put together a [custom Hexagon Shape in SwiftUI](http://calebhearth.com/dt/custom-shapes-in-swiftui). Now let’s see what it would take to make a grid filling the screen with these hexagons. This is useful for building a honeycomb or hexagonal tessellation pattern that’s visually interesting and useful for things like showing grids of photos or for overlaying on a TTRPG map.

The shape we built is a regular hexagon and has a flat top, meaning that the shape takes up less height than width. This informs the layout, but you can shift things around for a “pointy-topped” hexagon shape grid as well.

In our shape, we used size to mean the radius of the hexagon at the points, which also means that it’s the length of each side. This means that the height is 2 size and that width is 3 size. As you can see from the grid screenshot, while hexagons touch top to bottom in columns, they are staggered by 1/2 of their width in rows, touching instead at their left and right points.

This means that given a viewport height and width, we...

[Read More](http://calebhearth.com/dt/drawing-a-hex-grid-in-swiftui)
Welcome Thread - v265
Tags: welcome
Published: 2024-02-28 00:00:00

---
published_at : 2024-02-28 00:00 +0000
---
![Animated dog in a wizard Hat waving hello](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ovtroivkbu4rsqa0smix.gif)

---

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

3. Come back next week to greet our new members so you can one day earn our [Warm Welcome Badge](https://dev.to/community-badges?badge=warm-welcome)!
Why I don't branch
Published: 2024-03-01 23:30:14

---
title: Why I don't branch
published: true
date: 2024-02-28 00:00:00 UTC
tags: 
canonical_url: https://www.oliverdavies.uk/archive/2024/02/28/why-i-dont-branch
---

A few days ago, I asked [why people are still using Git Flow in 2024](https://www.oliverdavies.uk/archive/2024/02/25/why-do-people-still-use-git-flow).

I moved to trunk-based development two years ago and haven't looked back.

## Why did I do that?

Only having a single branch instead of separate `main` and `develop` branches and branches for each feature and fix is much simpler.

I don't get merge conflicts when trying to merge branches together, as everything is on a single branch.

A couple of years ago, I was working on two features for a project. I was demoing them to a client and broke my local environment when switching branches from feature A to feature B.

It was embarrassing, and it took me time to resolve the issues before I could continue working.

## Here's the thing

Working mostly on a single branch avoids merge conflicts, saves time, and simplifies my workflow.

No more confusion, merge conflicts or broken demos.

P.S. There's less than a year until Drupal 7's end-of-life date. [Plan your upgrade to Drupal 10 now!](https://www.oliverdavies.uk/drupal-upgrade)
Day 915 : Denial
Tags: hiphop, code, coding, lifelongdev
Published: 2024-02-27 23:48:13

_liner notes_:
- Professional : Did not get much done at all today. Got pulled into doing a presentation for a call tomorrow that wasn't supposed to happen for a while. So I basically spent the day trying to get info and speak with some folks to put together a presentation that will be clear enough for people to understand.

- Personal : Last night, I went through some tracks for the radio show and was so tired that I just fell asleep.

![Aerial view of Plougonvein, France with different colored (shades of green and dark red) plots of land with some clustering of houses next to the ocean with various of type of clouds in a blue sky](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4iusa3ehhm4lw2xs6jrx.jpg)

Going to finish up this presentation, because I really want to get all my points across. I think some people are in denial of the greatness that is Web Components! haha If I have time, I want to work on my side project. Back to work. Oh, also, the API I was using to generate the alt text for my image has been suspended. Awesome, which means it may effect my side project. Luckily there is another side project I can work on or another part of my current project. haha

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ihRcd8rQY-4 %}