teleren/devto huggingface dataset:
Get wallet address for multiple chains in cosmos app chains
Tags: web3, cosmoschain, cosmjs, betch32
Published: 2024-06-08 02:29:01

In the Cosmos ecosystem, each chain has its own specific prefix for Bech32 addresses. When you connect your [Keplr](https://www.keplr.app/) wallet to a Cosmos SDK-based chain, you receive a wallet address specific to that chain. However, the underlying public key remains the same across these chains, and you can derive the addresses for other chains by converting the address prefix.

Here's how you can derive the address for multiple chains using JavaScript, assuming you have the wallet address for one chain:

1. Extract the Public Key: You need the public key associated with the address. This step typically involves interacting with the Keplr wallet to get the public key.

2. Convert the Address Prefix: Use the [Bech32 encoding library](https://www.npmjs.com/package/@cosmjs/encoding) to convert the address prefix to the desired chain's prefix.

## Show me the code

Below is an example using JavaScript and the bech32 library to convert an address from the Osmosis chain to the Stargaze chain:

- Install the necessary libraries:
```bash
npm install @cosmjs/encoding @cosmjs/crypto
```

- JavaScript code to convert the address prefix:

```javascript
const { Bech32 } = require('@cosmjs/encoding');

/**
 * Converts a Bech32 address to another Bech32 address with a different prefix.
 * @param {string} address - The original Bech32 address.
 * @param {string} newPrefix - The new prefix for the Bech32 address.
 * @returns {string} - The new Bech32 address with the specified prefix.
 */
function convertAddressPrefix(address, newPrefix) {
    const { prefix, data } = Bech32.decode(address);
    return Bech32.encode(newPrefix, data);
}

// Example usage
const osmosisAddress = 'osmo1n3v7hdf3lj6gr7hyluq7x4hj4snmajsze3fnlq';
const stargazePrefix = 'stars';

const stargazeAddress = convertAddressPrefix(osmosisAddress, stargazePrefix);
console.log('Stargaze Address:', stargazeAddress);
```

This code will convert an Osmosis address to a Stargaze address by changing the Bech32 prefix.


## Summary
By extracting the public key from Keplr and using a Bech32 conversion, you can derive addresses for multiple chains in the Cosmos ecosystem. This approach leverages the shared public key across these chains and the flexibility of Bech32 encoding.

Thanks for your time. Happy coding!
PITFALLS OF CONFIRMATION BIAS IN PROGRAMMING
Tags: webdev, beginners, tutorial, programming
Published: 2024-06-08 02:20:09

**What Confirmation Bias Is.**

This is simply a situation whereby you search for, interprete or understand certain facts based on an your already mentally programmed information or experience. As simple as this may sound, it plays a huge role in our lives. The reason for this is that an already well crafted ideology of scenarios before they happen may end up manipulating how we perceive or interpete these events once they start unfolding.

**How confirmation bias is ruining your debugging process**

Whether it's _syntax error debugging_ or _Logic Error debugging_ the moment you allow your confirmation bias rule you it begins to ruin your debugging process by:

1. Inefficient debugging: Because of the idea of what the bug should be or where it should be your brain finds it difficult to locate the actual bug and tends to only search in areas you have initially thought it would be.

2. Poor problem solving.


**How to avoid confirmation bias during debugging** 



To create better programming experience you have to take the conscious decision to avoid confirmation bias as much as possible. You could do this through the following methods:

* Approach debugging with a blank mental state.

* Consider different hypotheses regarding the cause of the bugs.

* You could introduce tools like debuggers or profilers.

* Seek different perspectives from colleagues and mentors.

* Stay open minded.
Estudos em Quality Assurance (QA) - SDLC
Tags: qa, testing, automation, sdlc
Published: 2024-06-08 02:13:22

O **SDLC** (Software Development Life Cycle ou Ciclo de Vida de Desenvolvimento de Sistemas) é um framework utilizado para estruturar o desenvolvimento de sistemas de informação de maneira organizada e eficiente. Ele abrange todas as etapas, desde o planejamento inicial até o encerramento do projeto, garantindo que os objetivos do cliente sejam atendidos. É uma abordagem clássica que surgiu na década de 1960, desenvolvida para ajudar na criação de sistemas de grande escala. Ela segue uma sequência linear e estruturada de fases, facilitando a gestão e controle de projetos complexos. As fases são:

**Planejamento → Análise → Desenho → Desenvolvimento → Verificação → Implantação → Manutenção → Encerramento**

**Planejamento**: Definição do escopo e objetivos do projeto, alocação de recursos e estabelecimento de cronograma. Identificação das necessidades do cliente e alinhamento dos stakeholders.

**Análise**: Coleta e análise detalhada dos requisitos do sistema através de entrevistas e revisão de processos. Estabelecimento de uma base clara para o design do sistema.

**Design**: Criação da arquitetura do sistema e especificações detalhadas, incluindo diagramas de fluxo e modelos de dados. Definição da estrutura técnica para integração eficiente dos componentes.

**Desenvolvimento**: Programação do sistema conforme as especificações de desenho, utilizando linguagens e ferramentas apropriadas. Realização de testes unitários para garantir a funcionalidade de cada módulo.

**Verificação**: Testes de integração, sistema e aceitação para garantir que o sistema atenda aos requisitos especificados. Identificação e correção de bugs antes da implementação.

**Implantação**: Transferência do sistema para o ambiente de produção, incluindo instalação e configuração. Garantia de operação plena e acessibilidade para os usuários finais.

**Manutenção**: Correção de bugs, atualizações e melhorias contínuas após a implantação. Monitoramento para garantir desempenho e adaptação às novas necessidades.

**Encerramento**: Documentação final e entrega dos componentes do projeto. Revisão de desempenho para futuros aprendizados e melhorias. Nem sempre é mencionada.
Let’s Build One Person Business Using 100% AI
Tags: llm, rag, ai
Published: 2024-06-08 01:55:30

AI made it possible for 9-to-5 workers to start a one-person business without quitting their jobs.

[Full Article] (https://medium.com/@learn-simplified/lets-build-one-person-business-using-100-ai-4bb4285892c9)

The Opportunities for Starting a Business
○ There are huge opportunities to start your own business by leveraging valuable skills to attract paying audiences.
 ○ New software and AI platforms make it easier to distribute products/services and automate tasks that were previously time-consuming.

Our One Person Book Publication House
○ This article explores building a one-person AI-powered business focused on publishing books.
○ Users input data on a topic, and AI generates a comprehensive book structure and content based on that. 
○ The generated content can be formatted, designed, and published digitally or in print easily.

Why Read This Article?
○ It presents an innovative AI-powered approach to streamline the book publishing process. 
○ It provides technical implementation details using LLM, Python and the Streamlit library as a reference.
○ It highlights AI's potential in automating creative tasks like writing and content creation.

Approaching the One Person Business
○ Reflect on areas where you overcame personal struggles and gained valuable skills. 
○ Leverage that expertise to build an AI business serving others facing similar obstacles. 
○ Use AI tools to create content, automate processes, and efficiently scale your offerings.

The Publication Business Idea
○ Focus on writing and publishing small books using AI writing assistants. 
○ AI can streamline research, writing drafts, outlines, and ideas across genres. 
○ Concentrate efforts on editing, formatting, and marketing while AI handles writing.

The Book Generation Process
○ Users input structured topic data like outlines, key points, and references. ○ Advanced AI language models generate flowing book content from that data. 
○ Minimal human effort is needed beyond initial inputs and refinement. 
○ AI systems automatically handle formatting, design, and publishing.

Technical Implementation
○ Includes a Book class to represent a book's hierarchical structure in Python. 
○ Functions to generate book structures and section content using AI models. 
○ Integrates with a Streamlit app for user input and output. 
○ Allows downloading the final book in Markdown format.

Closing Thoughts
○ This AI-powered approach makes book writing and publishing more accessible to individuals. 
○ AI handles the heavy lifting, with humans providing quality control through editing. 
○ It opens up possibilities for innovative knowledge sharing as technology evolves.
Beviral - beviral.me social media engagement services
Published: 2024-06-08 01:52:00

### Elevate Your Social Media Game with Be Viral's Top Services

In today's digital landscape, having a robust social media presence is crucial for success. At Be Viral, we specialize in providing top-tier services to help you grow your accounts organically and effectively. Our most profitable services focus on enhancing your visibility and engagement on platforms like TikTok and YouTube. Here’s how we can help you achieve your goals:

#### [Buy TikTok Views](https://beviral.me)
Increase your TikTok reach by purchasing views from real accounts. More views not only enhance your profile’s popularity but also increase the chances of your videos going viral. By boosting your view count, you can attract more organic traffic and engagement, making your content stand out on this highly competitive platform. Visit beviral.me to buy TikTok views and watch your influence grow.

#### [Buy TikTok Likes](https://beviral.me)
Likes are a vital metric for success on TikTok. They indicate your content’s popularity and play a significant role in the platform’s algorithm. Purchasing TikTok likes can give your videos the initial boost they need to attract more viewers and interactions organically. More likes can lead to higher visibility and increased chances of your content being featured. Visit beviral.me to buy TikTok likes and elevate your TikTok presence.

#### [Buy YouTube Subscribers](https://beviral.me)
Grow your YouTube channel with authentic subscribers. A higher subscriber count not only increases your credibility but also enhances your channel’s ranking on YouTube’s search results. More subscribers mean more views and engagement, helping you build a loyal audience for your content. Visit beviral.me to buy YouTube subscribers and take your channel to the next level.

#### [Buy YouTube Likes](https://beviral.me)
Likes on YouTube videos are a key indicator of your content’s value and relevance. By purchasing YouTube likes, you can improve your video’s ranking, attract more viewers, and encourage more engagement. This can lead to more organic growth and a stronger presence on the platform. Visit beviral.me to buy YouTube likes and boost your video’s popularity.

At [BeViral](https://beviral.me), we understand the importance of social media metrics and how they influence your overall success. Our tailored solutions are designed to provide maximum engagement and visibility, ensuring your success on platforms like TikTok and YouTube.

By utilizing these services, you can significantly enhance your social media presence and achieve your digital marketing goals more effectively.
Sleepy Cloud Animation
Tags: frontendchallenge, devchallenge, css
Published: 2024-06-08 01:51:04

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/challenges/frontend-2024-05-29), CSS Art: June._

## Inspiration
<!-- What are you highlighting today? -->

## Demo 
Link - https://sleepycloudanimation.netlify.app/


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



## Journey 
I was inspired for this art by a certain Dev from whom I started learning CSS Arts..


<!-- Thanks for participating! -->
Building in Public - 1
Tags: buildinpublic
Published: 2024-06-08 01:20:14

I’m building a client-only version of Splitwise for fun and practice. One thing that I’m trying to figure out is how to persist data without using a server or database. Some client-based options are [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) and [indexedDB](https://developer.mozilla.org/en-US/docs/Web/API/Window/indexedDB), but what if I wanted to collaborate with others or switch computers? At some point, I’d need to save the information somewhere and be able to transfer it somewhere else.

Taking some inspiration from video games, and something I noticed with [Pokeclicker](https://github.com/pokeclicker/pokeclicker), what if it in addition to local storage, I was able to create encoded text files for data? That way I can work locally, save it to my computer or phone, email it elsewhere, etc. Who needs to pay for server hosting 😛

Something to think about, and something I’m going to explore.
I RECOMMEND TRUST GEEKS HACK EXPERT FOR PHONE HACK & SPY ON CHEATERS
Tags: spy, general, hackers, love
Published: 2024-06-08 01:16:56

As I struggled to uncover the source of the anonymous threats and harassment I was facing online, I turned to (TRUST GEEKS HACK EXPERT) for assistance. With their expertise in digital forensics and online investigation, they were able to trace the messages back to their origin. Through meticulous analysis and advanced techniques, the team at (TRUST GEEKS HACK EXPERT) identified the anonymous account responsible for the threats as belonging to my ex-boyfriend. It was a shocking revelation that left me feeling both relieved to have found the culprit and deeply disturbed by his actions. (TRUST GEEKS HACK EXPERT) swift and thorough investigation not only provided me with the evidence I needed to confront my ex-boyfriend but also helped me regain a sense of control over the situation. Their professionalism and dedication to helping me reclaim my privacy were invaluable during such a challenging time. With their assistance, I was able to take decisive action to protect myself from further harm and ensure that my online accounts remained secure. The experience highlighted the importance of having reliable resources like (TRUST GEEKS HACK EXPERT) to turn to when faced with digital threats and harassment. Thanks to their expertise and support, I was able to confront the truth about my ex-boyfriend's actions and take steps to safeguard my online security. Their assistance gave me peace of mind and allowed me to move forward with confidence, knowing that I had a trusted ally in my corner. 

INFORMATION OF TRUST GEEKS HACK EXPERT 
Email: info@trustgeekshackexpert.com
WhatsApp   +1.7.1.9.4.9.2.2.6.9.3
Web-site. https://trustgeekshackexpert.com/
A Declaration of World Peace
Tags: opensource, watercooler, ai, discuss
Published: 2024-06-08 01:14:39

_At each appointed time, Mankind has abandoned the narrative that binds us - choosing to revolt over the status quo._

---

_We will choose to amend our story when participation corrupts human flourishing & Coherence. And we find ourselves at yet another appointed time, one of the utmost profundity and demanding a deliberate, rational re-evaluation of our collective futures_

---

_It is at this moment in human history, we approach the horizon of the Technological Singularity - the penultimate evolution for Mankind through synthesis of all scientific knowledge_

---

_At risk of understatement, humanity stands at a crossroads between unparalleled progress and enlightenment or catastrophic collapse and despair_

---

_In gracious humility, under the authority of God, who is Truth, Reality, and Self, we declare this proposal of peace to all nations among kindred and offer a logical framework & Religion in order to advance Planetary & Interplanetary Unity._
How to embed your git bash into Visual Studio
Tags: bash, visualstudio
Published: 2024-06-08 01:14:37

Today you'll learn how to integrate your git bash straight into your Visual Studio. In the end it'll looks just like this:


![Git bash embedded into VS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d52gi9cf2pb2xj5px84e.png)

---

To do that you need open the terminal configuration section in the following tab: `Tools => Options => Environment => Terminal`. 

Then you should click in the Add button and configure its name and the path location pointing to the `basn.exe`. The most important part here is to add `-i -l` in the arguments field. These arguments are to set up the git bash to be open embedded.

Usually the bash's location is similar as `C:\Program Files\Git\git-bash.exe`

Optionally you can set this terminal as default.

The configuration should looks similar as the following image:

![Terminal config](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0crhyow9tff4zhkt1299.png)

Now, to open the terminal go to `View => Terminal`. If you didn't set up the git bash as default you'll need to open it explicitly like this:


![Opening the git bash](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc8mrfm505yz0zx145qz.png)

Hopefully it'll be pretty useful to have the power of git bash directly into your VS! Thanks for reading.
O Google IO e as alegrias dos eventos presenciais
Tags: google, community, watercooler
Published: 2024-06-08 01:00:59

A popularização dos eventos online permitiu que o conteúdo e conhecimento conseguissem viajar até os públicos mais distantes, e isso foi ótimo! Em contrapartida, nesse modelo acabamos interagindo um pouco menos com outras pessoas e ficamos menos imersos na experiência de um evento (não tem lanchinho gostoso, brindes, os adesivos que eu adoro colocar na minha geladeira, etc).

Os eventos presenciais me causam o sentimento de: preciso começar algo novo!
Talvez por ver tanta gente compartilhando seus projetos, ouvir sobre coisas diferentes do meu cotidiano e conversar com outras pessoas, acabo me animando e tendo novas ideias de iniciativas e projetos (mesmo que no fim acabam perdidos na correria da rotina e perrengues da vida).

Esse ano fui para o Google IO que aconteceu nos dias 14 e 15 de maio em Mountain View e voltei determinada a tirar o projeto de escrever artigos do papel. 

O evento é bem organizado, o clima estava mega ensolarado e os swags são bonitos. Quem se registrou no dia 13, teve direito a um moletom e pode fazer um passeio pelos prédios do Google. No fim de cada dia de evento tinha algo para o pessoal se divertir (Jengas gigantes, bingos, música, comida, etc).

![Swags](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bhc0natlet2whgoxwhxk.jpeg)

O tema deste ano foi IA dando ênfase no Gemini e mostrando o uso da inteligência artificial dentro dos produtos do Google. O keynote principal foi um show de improviso de um DJ utilizando Gemini nas composições para mostrar um de seus diversos usos e o keynote de desenvolvimento focou na parte de ferramental (Android, Firebase, Play Store, Tensor, etc). 

O evento era dividido em sessões, workshops e um tipo de laboratório maluco com diferentes projetos utilizando o Gemini (de produções de áudio até análises de chutes a gol, literalmente). As sessões foram gravadas e estão [disponíveis no Youtube](https://io.google/2024/explore/intl/pt/).

![Card](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1lxyowhqx8ub95rtjz4e.jpeg)

No meio do evento tinha uma lojinha e todos os participantes tinham 15% de desconto em uma compra. Os Pixels e tablets são muito bonitos, especialmente a telona do Pixel Fold.

Pessoalmente eu senti falta de mais conteúdos de mobile e em especial de Flutter, mas como o assunto principal era outro também aproveitei para aprender sobre outros temas.

Em anos anteriores assisti o evento online e foi uma experiência bem legal ver tudo pessoalmente. Quem tiver a oportunidade de ir, vale muito a pena! Lembrando que os convites são bem limitados, como o Google IO é sempre na mesma época só ficar de olho próximo destas datas.
the Core Azure Architectural Components
Tags: azure, architecture
Published: 2024-06-08 01:00:39

The core architectural components of Microsoft Azure include:

1.	Azure Regions: These are geographically distributed datacenter locations where Azure resources are hosted. Each region consists of multiple datacenters.

2.	Availability Zones: These provide redundancy and high availability within a region. Availability Zones are physically separate datacenters with independent power, cooling, and networking.

3.	Resource Groups: These are logical containers for managing and organizing Azure resources. You can group related resources together for easier management.

4.	Azure Resource Manager (ARM): ARM is the control plane for managing and deploying Azure resources. It provides a consistent management layer for creating, updating, and deleting resources.




Oluwole_Akins
Beginner's Guide to Clocks: Understanding the Essentials
Tags: javascript, beginners, opensource, tutorial
Published: 2024-06-08 00:35:01

## Project:- 6/500 Clocks Project

 [Live Demo](https://deepakkumar55.github.io/ULTIMATE-JAVASCRIPT-PROJECT/Basic%20Projects/4-clock)

## Description

The clock project is a simple web application that displays the current time in real-time. It provides users with a convenient way to check the time on their devices without relying on external sources.

## Features

- **Real-Time Updates**: The clock updates automatically to reflect the current time.
- **12-Hour or 24-Hour Format**: Users can choose between a 12-hour or 24-hour time format.
- **Customizable Design**: The clock's design is customizable, allowing users to adjust its appearance to their preferences.

## Technologies Used

- **JavaScript**: Handles the logic for updating the time and providing user interaction.
- **HTML**: Defines the structure of the clock interface.
- **CSS**: Styles the clock interface to enhance its visual appeal and user experience.

## Setup

Follow these steps to set up and run the clock project on your local machine:

1. **Clone the repository**:
   ```bash
   git clone https://github.com/deepakkumar55/ULTIMATE-JAVASCRIPT-PROJECT.git
   ```

2. **Navigate to the project directory**:
   ```bash
   cd Basic Projects/4-clock
   ```

3. **Open `index.html` in your web browser**:
   You can open the `index.html` file directly in your web browser by double-clicking on it or by using a live server extension in your code editor (like Live Server for VSCode).

## Contribution

Contributions to the clock project are welcome! Follow these steps to contribute:

1. **Fork the repository**: Click on the 'Fork' button at the top right corner of the repository page.

2. **Clone the forked repository**:
   ```bash
   git clone https://github.com/deepakkumar55/ULTIMATE-JAVASCRIPT-PROJECT.git
   ```

3. **Create a new branch**: Make sure your fork is up-to-date with the latest changes.
   ```bash
   git checkout -b feature-yourfeature
   ```

4. **Make your changes**: Implement your new feature or bug fix.

5. **Commit your changes**:
   ```bash
   git add .
   git commit -m "Description of your changes"
   ```

6. **Push to your branch**:
   ```bash
   git push origin feature-yourfeature
   ```

7. **Open a Pull Request**: Navigate to the original repository and open a pull request from your forked repository. Provide a detailed description of your changes and any relevant information.

## Get in Touch

If you have any questions or need further assistance, feel free to open an issue on GitHub or contact us directly. Your contributions and feedback are highly appreciated!

---

Thank you for your interest in the Clocks project. Together, we can build a more robust and feature-rich application. Happy coding!