teleren/devto huggingface dataset:
Let’s Build Small AI Buzz, Offer ‘Claim Processing’ to Mid/Big Companies
Tags: llm, rag, machinelearning, genai
Published: 2024-06-13 00:18:25

Discover How AI Can Transform Businesses, Every Details Spelled Out.

[Full Article] (https://medium.com/@learn-simplified/lets-build-small-ai-buzz-offer-claim-processing-to-mid-big-companies-d589f008d724)

Artificial Intelligence (AI) is rapidly reshaping business landscapes, promising unprecedented efficiency and accuracy across industries. In this article, we delve into how Aniket Insurance Inc. (Imaginary) leverages AI to revolutionize its claim processing operations, offering insights into the transformative power of AI in modern business environments.

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


➡️ What’s This Article About?
* The article explores how Aniket Insurance Inc. uses AI to transform its claim processing.
* It details the three main workflows: User claim submission, Admin + AI claim processing, and Executive + AI claim analysis.

➡️ Why Read This Article
* Readers can see practical ways AI boosts efficiency in business, using Aniket Insurance as an example.
* AI speeds up routine tasks, like data entry, freeing up humans for more strategic work.
It shows how AI-driven data analysis can lead to smarter business decisions.


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



➡️Let’s Design: 
Aniket Insurance Inc. has implemented AI architecture that encompasses three pivotal workflows: User Claim Submission Flow, Admin + AI Claim Processing Flow, and Executive + AI Claim Analysis Flow. Powered by AI models and integrated with store, this architecture ensures seamless automation and optimization of the entire claim processing lifecycle. By leveraging AI technologies like machine learning models and data visualization tools, Aniket Insurance how business can enhance operational efficiency, and strategic decision-making capabilities.

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



➡️Closing Thoughts: 
Looking ahead, the prospects of AI adoption across various industries are incredibly exciting. Imagine manufacturing plants where AI optimizes production lines, predicts maintenance needs, and ensures quality control. Envision healthcare facilities where AI assists in diagnosis, treatment planning, and drug discovery. Picture retail operations where AI personalizes product recommendations, streamlines inventory management, and enhances customer service. The possibilities are endless, as AI’s capabilities in pattern recognition, predictive modeling, and automation can be leveraged to tackle complex challenges and uncover valuable insights in virtually any domain.
Simple way to obtain largest Number in an array or slice in golang
Tags: webdev, beginners, go, arrays
Published: 2024-06-13 00:09:08

# 🚀 Step-by-Step Guide to Find the Largest Number in an Array in Go

Finding the largest number in an array is a common task in programming. Let's walk through a simple yet effective approach to accomplish this in Go.

## 📝 Steps to Follow

### 1️⃣ Loop through Each Value
Iterate through each element of the array or slice.

### 2️⃣ Declare the Initial Largest Value
Initialize a variable `largest` with the first element of the array:
largest := array[0]

### 3️⃣ Compare the Current Largest Value with Other Numbers
Compare the current `largest` value with each element in the array.

### 4️⃣ Update the Largest Value
Whenever you find a number greater than the current `largest` value, update `largest` to this new number.

### 5️⃣ Return the Largest Value
After completing the loop, return the `largest` number.


```
func findLargestNumber(nums []int) int {
	if len(nums) == 0 {
		return 0 // handle empty slice case
	}
	largest := nums[0] // Step 2
	for i := 1; i < len(nums); i++ { // Step 1
		if nums[i] > largest { // Step 3
			largest = nums[i] // Step 4
		}
	}
	return largest // Step 5
}

```

Testing the function

```
func TestFindLargestNumber(t *testing.T) {
	tests := []struct {
		name     string
		numbers  []int
		expected int
	}{
		{
			name:     "Mixed positive numbers",
			numbers:  []int{45, 22, 68, 90, 12},
			expected: 90,
		},
		{
			name:     "All negative numbers",
			numbers:  []int{-5, -23, -1, -55},
			expected: -1,
		},
		{
			name:     "All zeros",
			numbers:  []int{0, 0, 0, 0, 0},
			expected: 0,
		},
	}

	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got := findLargestNumber(tt.numbers)
			if got != tt.expected {
				t.Errorf("findLargestNumber(%v) = %v, want %v", tt.numbers, got, tt.expected)
			}
		})
	}
}
```

Main Function
```
func main() {
	arr := []int{45, 22, 68, 90, 12}
	fmt.Println(findLargestNumber(arr)) // Output: 90
}
```


Thanks for reading.
Kindly like and share other methods you know of in the comments below.
Day 969 : keep
Tags: hiphop, code, coding, lifelongdev
Published: 2024-06-12 23:55:04

_liner notes_:
- Professional : So...no code was written today. haha I was in meetings, responding to community questions, booking a hotel room and filling out a visa. But got it all done.

- Personal : Went through some tracks for the radio show. Played around with the settings of the highlight video creator and I think I got to a good place with speed, quality and file size. Definitely went down multiple rabbit holes.


![﻿ The photo is of a mangrove forest in Ratargul Forest, Bangladesh. The green trees are growing in a flooded forest with green water. The sun is shining through the trees.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wvhlligbuglib3eajjer.jpg)

Going to go through more tracks for the radio show. I want to refactor the code for my highlight video creator to clean it up. I'll keep the settings I have now and see how they work in an actual application. I also want to work on a logo for a side project and subscribed to a drawing app that I thought would allow me to be able to sync files between all my devices. I purchased a yearly subscription to only find out that I misread the info and the files stay on the device and are not synced. Good thing there was a 7 day trial before the charge, so I cancelled. It was then that I realized that I had a drawing program that I was already paying for that syncs across devices. So yeah, hoping to get the logo done. I have a sketch, but want to clean it up. Got a late start to my evening. Going to get to work.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube MGpaitAgVgI %}
[JavaScript] Generate Unique Code
Tags: javascript, beginners, programming, github
Published: 2024-06-12 23:30:06

Script que genera código único.

El script se basa en las siguientes condiciones:

- Debe tener una longitud de 6 caracteres
- Debe empezar con las siguientes letras "M", "B", "L"
- Debe ser todo en mayuscula
- No debe contener el número 1
- No se pueden repetir
- Se deben generar 10,000 códigs en 20 archivos de texto

Ejemplo de salida:

```
B3HFHF
L8HMBA
BVQYPM
BG8L4S
B524DA
```



Repositorio: [https://github.com/JkDevArg/generate_unique_codes](https://github.com/JkDevArg/generate_unique_codes)
Api Architecture Styles using GraphQL
Published: 2024-06-12 23:22:06

Applications need data to function, these are in a database within a server
They have a client which is the view and a server where the data logic is.
both communicate through an API, the best known is REST


Graphql allow queries to be made on the client side, not on the server side, it is like doing sql on the frontend.

It can be integrated with multiple Backend programming languages ​​such as Javascript (Nodejs), Python, etc.

1.On the client it is a SQL-type query language.
2.The server is an execution environment, it processes the query.

THIS IS EXAMPLE


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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rb8k7luu9n0axw952z7.png)
Neural Networks
Tags: cschallenge, neuralnetworks, lasagna, machinelearning
Published: 2024-06-12 23:07:19

A neural network is like a lasagna. Each layer (like noodles, cheese, sauce) adds something special. The first layer takes in info (ingredients), middle layers mix and change it (cooking), and the last layer gives the final result (a yummy lasagna).
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/87bcq42twnjbwjh8gjqt.gif)
☁️Cloud Computing☁️😺
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-12 22:45:54

_This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer._

## Explainer
No more memory space on your phone to download cat memes?😿 Send your cats to Cloud! Thanks to Cloud Computing you can use someone else's resources to do so, your cat memes will be waiting for you to access them over the network anytime and anywhere. ☁️🐈

## Additional Context
Real problems call for real solutions. Jokes aside, I think this is a funny but pretty memorable analogy for explaining the concept of cloud computing.
Clean Code With AI
Tags: cleancode, ai, chatgpt, refactoring
Published: 2024-06-12 22:36:57

*Mastering Clean Code with ChatGPT and Gemini*

> TL;DR: This is my talk a at Tech Excellence on combining Artificial Intelligence and Clean Code

# Summary

How can you leverage ChatGPT, Gemini, Copilot and other assistants to write clean code? What instructions should you provide them? How do you configure them to assist you?

Code assistants were trained on datasets that were not so well curated. You often ask them for solutions that meet requirements but do not reflect good designs. However, with some instructions, you can indicate how we want them to assist you. In this way, their solutions will comply with good development practices and be customized according to your rules.

You will see concrete examples and tips to make the most of these magnificent tools by combining your creativity with all available knowledge. After watching the talk, you will be able to explain your own rules for immediate assistance in your studies, work, and more. This will enhance your professional career, preparing you for the future demands of the job market.

{% youtube 99GuXTIW0R4 %}
[Game of Purpose] Day 25
Tags: gamedev
Published: 2024-06-12 22:36:37

Today I managed to animate all of the propellers and can control them all with a single variable. Yay!

I thought I managed how to get actors of class, but it turns out I query actors in the whole world, and not in my current Blueprint. I need to make more research about it.

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


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

Until now when drone spawned the propellers all had the same rotation. Not anymore. Now, when the Drone instance is created I set a random rotation to all of them.

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


{% embed https://youtu.be/nDoTwItMYso %}
How to make Apache's CloseableHttpAsyncClient explicitly use HTTP/1 or HTTP/2
Tags: java, networking
Published: 2024-06-12 22:33:06

In this tutorial, we'll demonstrate how to explicitly use HTTP/1 or HTTP/2 in Apache's [CloseableHttpAsyncClient](https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/org/apache/hc/client5/http/impl/async/CloseableHttpAsyncClient.html), a base implementation of `HttpAsyncClient` that also implements `ModalClosable`. 

You'll need to have this dependency to your `pom.xml`:
```XML
<dependency>
    <groupId>org.apache.httpcomponents.client5</groupId>
    <artifactId>httpclient5</artifactId>
    <version>5.3.1</version>
</dependency>
```

## Deprecated Way

In earlier versions of `httpclient5`, the [HttpAsyncClientBuilder](https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.html#HttpAsyncClientBuilder--) allowed you to use `setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy)`, where you could pass in `HttpVersionPolicy.FORCE_HTTP_1` or `HttpVersionPolicy.FORCE_HTTP_2`. For example:
```Java
final CloseableHttpAsyncClient client = HttpAsyncClients
        .custom()
        .useSystemProperties()
        .setVersionPolicy(HttpVersionPolicy.FORCE_HTTP_1) //Deprecated
        .build();
```

However, in recent versions of `httpclient5`, `setVersionPolicy` is deprecated.

## Best Practice Way

Now, their documentation says that we should use [TlsConfig](https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/org/apache/hc/client5/http/config/TlsConfig.html) and connection manager methods instead. 

Here's an example:

```Java
TlsConfig tlsHttp1Config = TlsConfig.copy(TlsConfig.DEFAULT).setVersionPolicy(HttpVersionPolicy.FORCE_HTTP_1).build();
//Create a default connection manager
PoolingAsyncClientConnectionManager connectionManager = new PoolingAsyncClientConnectionManager();
connectionManager.setDefaultTlsConfig(tlsHttp1Config);

final CloseableHttpAsyncClient client = HttpAsyncClients
        .custom()
        .useSystemProperties()
        .setConnectionManager(connectionManager)
        .build();
```

I hope these examples help if you ever need to use an explicit version of HTTP for your AsyncHttpClients.
run.bash & migrate.bash - Pimpe deine .bashrc auf 🔝🔥
Published: 2024-06-12 21:56:40

## Deine .bashrc
Deine .bashrc Datei ist ein Skript, das jedes mal bei deinem Shellzugriff aufgerufen wird. Hier kannst du verschiedene Werte setzen & Dein Leben dadurch leichter machen. Wir werden am Beispiel django jetzt Skripte für dein Projekt entwickeln, die dir den Start deines Projekts erleichtern. Außerdem werden wir deinen `python manage.py migrate` Befehl in einem Container absetzen, das erleichtert dir das Leben bei einem ganz schön langen Befehl.

## Skripte anlegen
Lege bei dir in der Repository auf dem Level deines `docker-compose.yml` folgende Dateien an:
```
touch run.bash migrate.bash
chmod +x run.bash migrate.bash
```

Folgenden Inhalt brauchen deine Skripte:
`run.bash`
Hier kannst du deinen Start-Befehl mit allen Optionen einfügenIch nutze -f, wegen dem speziellen Dateinamen mit --build Baue Ich die images neu vor Containerstart
```
#!/bin/bash
docker compose -f docker-compose.development.yml up --build
```

`migrate.bash`
Mit `exec -it container_name sh -c` können wir unseren migrate Befehl absetzen. Alles in Anführungszeichen wird direkt im Container ausgeführt.
```
docker exec -it meine_app sh -c "python manage.py makemigrations && python manage.py migrate"
```

Weil wir den container namen in der `migrate.bash` nutzen, muss du jetzt noch deine docker-compose Datei anpassen:
```
services:
  meine_app:
    # wir nutzen den Container Namen in migrate.bash
    container_name: meine_app
```

## Skripte in der .bashrc hinzufügen
Füge deine Skripte deiner .bashrc (oder bei mac .zshrc) Hinzu. Die .bashrc / .zshrc befinden sich in deinem home - Verzeichnis.
```
code ~/.bashrc
vi ~/.bashrc
```

Wenn du nun "run" als App-Startbefehl nutzen willst und "migrate" als migrierbefehl, kannst du Folgendes hinzufügen:
```
# selfmade build and run scripts
alias run="./run.bash"
alias migrate="./migrate.bash"
```

Du kannst natürlich deine Skripte anders nennen, und den Befehl zum ausführen der Skripte auch... Es macht aber Sinn, wenn du mehrere Projekte starten / migrieren musst, den Befehl einheitlich zu halten.
Jetzt kannst du nämlich in jedem Projekt ein run.bash hinzufügen. Solange der name des Skriptes "run.bash" bleibt, reicht es jetzt `run` auszuführen - Deine App startet.
Du kannst den Skriptinhalt auch verändern, wenn du bei unterschiedlichen Projekten deine App verschieden Starten willst. 

Happy Coden!
Dein Ruben

[Mein Blog](rubenvoss.de)
Essentials Fear of GOd Hoodies
Tags: essentails, hoodie, trackcsuit
Published: 2024-06-12 21:21:51

[Essentials Hoodies](https://essentialsukclothing.com/essentials-hoodie/) are your go-to for comfort and style. We have versatile, cozy, and perfect hoodiess for any occasion. You can upgrade your wardrobe effortlessly with your premium collection.
Exploring Destructuring in JS
Published: 2024-06-12 21:15:32

Hello, my name is Daniel and I'm a beginner at coding. I am an active student at Flatiron School. In phase-2 we delve heavily into react and all the amazing things it can do. Today I decided to talk about Destructuring a little because it is a super simple yet amazing piece of code. Destructuring allows for a more concise and cleaner code. If I were to have code like this;

```
function EmojiButton(props) {
  return (
    <button>
      <span role="img">{props.emoji}</span>
      {props.label}
    </button>
  )
}
```

If you take a look at the code block, you will see that in some brackets there are some react components that lets us access that information we are grabbing from the `props.emoji` and the `props.label`. Destructuring can be used to clean up some of the the unnecessary words. We can do this a couple ways. One way to do it is doing a const and assigning them as variable that equal the word "props". That will allow us to go without the word props within the components. 

```
function EmojiButton(props) {
const { emoji, label } = props
  return (
    <button>
      <span role="img">{emoji}</span>
      {label}
    </button>
  )
}
```

As you can see, it looks a little nicer not having the props all over the place. Now I know it doesn't look like it's doing to much here but I promise when you start coding bigger and longer projects. It will start looking all over the place. Props will be literally everywhere. This way you can see exactly what is it's talking about in a specific piece of code instead of looking through "props" over and over again. 

Now, I prefer a different way of desctructuring and it looks like this;

```
function EmojiButton({emoji, label}) {
  return (
    <button>
      <span role="img">{emoji}</span>
      {label}
    </button>
  )
}
```

It does the same thing as the code block before however I really like the fact that it is integrated into the function itself instead of creating a const variable. It looks a lot nicer and cleaner. Now there will be use cases for both and obviously go with whichever one you feel more comfortable with. A lot of coding is preferences with how you want to go about it. Anyway, destructuring is super useful later one when you coding more than a few lines.
Learn GO: Creating Variables in GO Lang
Tags: go, beginners, tutorial, programming
Published: 2024-06-12 20:55:27

I just started learning Go and I want myself to be fully committed to it. So, I thought may be should start writing about it. It will help me to basically learn each part in some more details and will also help me to track the progress.

I won't be talking about why you should or should not use this language. I just finds this very beautiful and as I always wanted to learn a low level language.

So, let's get started with our first tutorial on how to create variables in GO.

Go is an statically typed language. Basically, we need to assign a the variable type in order to create one like we in other languages such as TypeScript and C++. 

For creating a variable in GO the syntax looks like this:

`_var_ variableName type = "value"`

For example, if I have to create a variable of string then I'd do something like this:

`_var_ myVariable string = "hola hola!!"`

However, type is not always necessary as we can also specify the type in value, like this:

`_var_ myVariable = "hola hola!!"`

As strings are in quotes which is used to define strings in a language.

Another version of creating variable is the below one. Which is quite fancy and short, and will probably makes you look like an expert.

`myVariable := "hola hola!"`

This is short declaration of a variable which is pretty useful and great.

Next we can also make creating variables more cooler 😎. By assinging several variables at once. Like this:

`var me, myGF, myWife := "programmer", "programmer", "scientist"`

Now, there are various data types in GO such as string, float, int, int8,  int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr, and so on. You read more about [GO Data Types here](https://go.dev/tour/basics/11).

There are other things in GO variables as well. Which I will be talking about in the next post, for now that's it.

If you have questions of suggestions for me to improve do let me know.!!
Estudos em Quality Assurance (QA) - Como Reportar um Bug
Tags: qa, testing, learning, testedesoftware
Published: 2024-06-12 20:14:32

**Título:** Um título claro e conciso que descreve o problema de forma sucinta.

**Prioridade:** Classifique a prioridade do bug de acordo com sua gravidade, usando escalas como P0 (crítico) a P3 (menos crítico).

**Resumo:** Uma breve descrição do bug, incluindo informações adicionais relevantes.

**Passos para Reproduzir:** Liste os passos específicos necessários para reproduzir o bug, tornando-os claros e concisos.

**Resultados Esperados:** Descreva o que deveria acontecer de acordo com os critérios de aceitação definidos no documento de requisitos de negócios (BRD).

**Resultados Atuais:** Descreva o que realmente aconteceu quando os passos foram seguidos, destacando o problema encontrado.

**Ambiente:** Especifique o sistema e as condições sob as quais o problema ocorreu, incluindo detalhes como sistema operacional, navegador, versão do software, etc.

**Logs e Evidências:** Anexe qualquer log relevante, capturas de tela, vídeos ou outros tipos de evidências que possam ajudar na compreensão e resolução do bug.


Qual ferramenta escolher?

Uma das ferramentas mais populares entre equipes de desenvolvimento é a **Jira**, devido à sua flexibilidade, recursos avançados de rastreamento de problemas e integração com outros sistemas de desenvolvimento.