teleren/devto huggingface dataset:
Appln Of Graph Theory : How I Found Perfect Gas Station Spot !
Tags: neo4j, machinelearning, ai, systemdesign
Published: 2024-03-27 00:11:36

## “Dude, Where’s My Gas Station?”, I Asked Graph Theory Once

[Full Article](https://medium.com/@learn-simplified/appln-of-graph-theory-how-i-found-perfect-gas-station-spot-world-of-ai-10f5e79cff55)
[Code](https://github.com/aniket-work/Dude_Wheres_My_Gas_Station_Asked_Graph_Theory.git)

What is this article about? 🔍
Apply Graphs & AI for Business: This article demonstrates how graph theory, AI, and a simulated city model can pinpoint the most profitable locations for a gas station.

Beyond Gas Stations: The same techniques apply to finding optimal locations for various businesses.

Why Read It? 📚
Data-Driven Decisions: Learn how to replace guesswork with calculated analysis for location-based business choices.

Technical Insights: Get a practical overview of graph algorithms ('betweenness centrality'), NetworkX, PyVis, and Neo4j.

Real-World Applications: See how this approach translates to optimizing business strategies.

The Problem ❓
Location is Key: Picking the wrong gas station spot means low visibility, less traffic, and lost profits.

The Solution 💡
Digital City Model: Build a graph representing the city with homes, offices, attractions, and roads.

Graph Algorithm Magic: Apply 'betweenness centrality' to find the busiest intersections (most potential customers).

Why You Can't Miss This ❗️
Unlocking Potential: Discover how data and innovative tech tools can revolutionize your problem-solving in any business.

Let's Go! 🚀

Code Breakdown: Get explanations of the code used to build the city graph, visualize it, and find the best gas station spots.

Closing Thoughts 🌟
The Power of Data: Witness how insights from graphs and AI can transform business decisions. Imagine the applications for any industry!
Hello world of Generative AI - how to build a RAG (Retrieval Augmented Generation) from scratch
Tags: chatgpt, generativeai, python
Published: 2024-03-27 00:07:19

Hi folks 🧙‍♂️,

In this blog post series we are going to build a system called RAG which stands for Retrieval Augmented Generation. It's considered a Hello world in Generative AI (although a bit more complex version of it :) ). 

A lot of companies are exploring Generative AI as a technology and RAG is a great starting point because you get to combine your internal company documents with large language model capabilities such as ChatGPT.

Seeing AI taking over the world by storm, we as engineers need to be familiar with the main concepts. There are many libraries out there that can build a RAG for you, but they also hide a lot of details thus why I wanted to take a different approach and build a bare-bones RAG system without any libraries - just Python and OpenAI. The main goal is to learn the concepts without getting lost in the weeds.

Here are the two blogs posts with all the code included:
[RAG from scratch - part 1](https://ninkovic.dev/blog/2024/rag-from-scratch-part-1)
[RAG from scratch - part 2](https://ninkovic.dev/blog/2024/rag-from-scratch-part-2)

Our RAG system is going to use official company documents from [Gitlab and their Handbook.](https://handbook.gitlab.com/) Here is how the final product looks like.

![RAG system over Gitlab handbook documents](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy1p2uoyjsar3ozjy97w.gif)

This is my first post on Dev.to so I'm happy to hear any feedback. I'm planning to write more around GenerativeAI, so if there is a topic you want to hear more about, please reach out.
Welcome Thread - v269
Tags: welcome
Published: 2024-03-27 00:00:00

---
published_at : 2024-03-27 00:00 +0000
---
![A dolphin swimming towards you with the text "Hey"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ezga7jfnc3d13as7ja7z.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. Share your wins from this week in our weekly ["What was your win this week?](https://dev.to/t/weeklyretro) thread.
MOST BRILLIANT CRYPTO RECOVERY EXPERT / ADWARE RECOVERY SPECIALIST
Published: 2024-03-26 23:55:42

A sense of relief and appreciation swept over me as ADWARE RECOVERY SPECIALIST confirmed that my lost Bitcoin had been added back to my wallet. My hesitation subsided, and I was overwhelmed with appreciation for the group that assisted in getting my money back. My confidence in online transactions has been greatly bolstered by the experience of having my misplaced money returned, particularly while managing cryptocurrencies. It gives me comfort to know that, despite the constantly changing digital scene, there are reputable services like ADWARE RECOVERY SPECIALIST available. My experience of losing and finding my money has given me important insights that have made me rethink my security protocols. It emphasized the significance of utilizing trustworthy wallets, safely keeping private keys, and being watchful of phishing attempts and schemes that can jeopardize cryptocurrency holdings. Diversifying storage strategies is crucial to protecting cryptocurrency assets. Some ideas include using hardware wallets, offline storage, and two-factor authentication whenever feasible. Future loss or theft occurrences can be avoided by updating security procedures on a regular basis and keeping up with emerging security risks. My experience with ADWARE RECOVERY SPECIALIST in getting my lost Bitcoin returned is a real testimonial to their skill and commitment to their work. Their prompt action and unwavering efforts to ensure the secure recovery of my monies are greatly appreciated. This experience has taught me to be grateful for the help that the digital asset ecosystem provides during difficult times, in addition to reiterating the importance of exercising attention and caution when managing cryptocurrencies. The fact that ADWARE RECOVERY SPECIALIST was able to restore the stolen Bitcoin with such skill and assistance is really appreciated. It goes to show how important it is to take precautions when securing digital assets. In addition to restoring trust in the safety of online transactions, this path of loss and rehabilitation has taught important lessons about improving security protocols for protection in the future. The fact that the lost Bitcoin was successfully restored to the wallet is evidence of the value of prompt action and knowledgeable support when it comes to cryptocurrency recovery.  Make quick contact with  ADWARE RECOVERY SPECIALIST using: Email info: Email info: Adwarerecoveryspecialist@auctioneer. net 

Telegram info: @ADWARE_RECOVERY_SPECIALIST

WhatsApp info:  ‪+1 (571) 541‑2918‬

Salutations for the day.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6v90tfafzxjk0tgc3mb.jpg)
Closures in 179 characters
Tags: frontendchallenge, devchallenge, javascript, webdev
Published: 2024-03-26 23:50:43


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

## Explainer
A closure is like a backpack with gear (variables) from a general store (outer scope) and a specialized store (local scope). Once you start hiking (function runs), you can access the gear anywhere.
It’s time to start validating your project’s configuration files as part of your CI/CD pipeline
Tags: cicd, go, testing, devops
Published: 2024-03-26 23:50:37

Configuration files are often an overlooked part of the code base but syntax errors in config files are one of the main causes of production bugs. They can also cause failures in expensive CI/CD test operations such as infrastructure provisioning or functional test execution. You don’t want to wait until late in your pipeline to discover that there is a syntax error in your configuration files.

Teams mistakenly believe that their unit tests will catch errors in configuration file syntax but that often isn’t the case. Unit tests usually avoid reading in configuration files from the file system instead opting to mock the read-in configuration with an object. Even if tests do read in the configuration files there are typically different configuration files for each environment such as dev, test, staging, and prod so you’d have to make sure to cover each file in your tests. Also for some DevSecOps tools that are heavily driven by configuration files there is no unit test suite to use to validate the configuration files.

There are a couple tools to help with this:

* [Dhall](https://github.com/dhall-lang/dhall-lang) - configuration files as code
* [config-file-validator](https://github.com/Boeing/config-file-validator) - single tool to validate the syntax of every popular configuration file type. Has a [github action](https://github.com/kehoecj/validate-configs-action) that you can integrate into an existing GitHub actions workflow (full disclosure - this is my project)

These tools can run during the lint or static analysis stages of your pipeline and make sure that simple syntax errors are caught early in the pipeline rather than later during costly testing stages or production release
Day 935 : Safe Side
Tags: hiphop, code, coding, lifelongdev
Published: 2024-03-26 23:13:40

_liner notes_:
- Professional : Had no meetings today. Got to refactor an application to solidify what I thought would happen. I just wanted to verify because that means that I'll for sure have to check for certain things regardless. Better to be on the safe side. Followed up on some community questions. Created a new repository for a set of Web Components that I'm building. I'm thinking I'm going to update to the latest framework and see how that works out. The syntax is a little different, but not too much that it'll be a blocker. I have POCs of the Web Components already done so it should be just copy and paste from that and check for any errors. I've also been thinking about how I want to provide styles for this new set. So yeah, not a bad day.

- Personal : Yo!!! Last night, I was able to get the GitHub log in working in my proof of concept! This was the first time I used this library AND a new database. Had a couple of snags but I was able to get it working. Now, the library is using an older version of the database, but it seems to be working so far. I'll wait a couple of days to see if it gets updated otherwise I may dive into the source code and see what I can do. I got it working and now I'm going to move on to the next task. I also went through some tracks for the radio show and watched a couple of "Extraordinary" episodes before calling it a night.

![The photo is of a winding road through a forest. The trees in the front are green, but the trees in the background are a mix of green, yellow, and orange. The leaves on the trees are full. The sun is shining through the trees. The road is bordered by trees and shrubs. The image is set in Seven Lakes Park, MI, USA.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h7e8h2w2aq6wy3jwzwdy.jpg)

So I'm going to work on setting up the pipeline to deploy my new side project. If I can get the basic demo application deployed, I'm going to start implementing the smaller POC's into the project little by little and refine some things and fix any issues. I'll see how far I get. Will definitely end the night watching some "Extraordinary" episodes. That show is pretty hilarious! haha

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube qMiBfx11K1c %}
AI Tutors for Beginner Web Developers
Tags: webdev, beginners, programming, ai
Published: 2024-03-26 23:06:44

In our new age of AI it, new tools are becoming available every day.  So let us make the most of them!

## Table Of Contents
* [Embracing AI for Learning](#chapter-1)
* [Troubleshooting with AI](#chapter-2)
* [Cons of AI Tutors](#chapter-3)
* [Conclusion](#chapter-4)

### Embracing AI for Learning <a name="chapter-1"></a>

In our new age of AI it, new tools are becoming available every day.  And for beginners following a “Web Dev Pathway” [“Web Dev Pathway”](https://youtu.be/PEBeBgc585w), these tools are perfect for free lessons.

{% embed https://youtu.be/bbREzyy1q-Y %}

By using [given challenge topics](https://youtu.be/7_rUfpxQaXk) as AI chat prompts, you can fast track your learning progress. This will save you many hours sifting through irrelevant links and sites.  If anything is unclear to you, simply ask the AI to explain it and your questions will be answered.  

### Troubleshooting with AI <a name="chapter-2"></a>
In addition to learning new topics, AI can also help you to find solutions for any problems you come across in your coding.  Ai will quickly provide you with a checklist of possible causes and how to address them.

### Cons of AI Tutors <a name="chapter-3"></a>
Where data is limited on a topic, AI is liable to make some mistakes.  However, resources for HTML, CSS and Javascript are abundant, making the perfect choice when learning the fundamentals of web development.

### Conclusion <a name="chapter-4"></a>
AI is outperforming all beginners’ courses for teaching to code.  Not only are they free but they also respond to your queries immediately.  So get ahead and start learning with your AI tutor today.

Happy Coding : )
How to Manage Git Branches for Jira Tickets in IntelliJ IDEA
Tags: git, jira, intellij, merge
Published: 2024-03-26 23:05:40

#### Introduction

This tutorial guides you through effectively managing Git branches for your Jira tickets using IntelliJ IDEA. This approach streamlines collaboration, tracks changes, and ensures a clean development workflow.

#### Prerequisites

- Basic understanding of Git commands
- Project connected to a Git repository (e.g., GitHub, GitLab)
- Active Jira account with a project integrated with your Git repository (optional but highly recommended)

### Creating a Branch per Jira Ticket

1. Open the Version Control (VCS) Menu: In IntelliJ IDEA, navigate to Git >.
2. Create a New Branch: Select New Branch.
3. Name Your Branch: Use a descriptive naming convention reflecting the Jira ticket. 
A common pattern is feature/<ticket-id>-<short-description>, for example, feature/ABC-123-add-user-login. This practice improves clarity and traceability.

4. Checkout the New Branch: Select Checkout to start working on your changes in the new branch. This isolates your development from the main codebase.

> Equivalent Git Commands :

```
git checkout -b feature/ABC-123-add-user-login  # Creates and switches to the new branch
```


### Making Changes and Committing

1. Code Edits: Make your code modifications related to the Jira ticket in the designated branch.
2. Commit Your Changes: When ready, go to Git > Commit or use the commit icon in the toolbar. 
3. Write a Clear Commit Message: Describe your changes concisely, often referencing the Jira ticket ID for easier tracking. A good format follows the conventional style: <type>(<ticket-id>): <short description of the change>. Example: fix(ABC-123): Implemented user login functionality.
4. Pushing Changes to Remote Repository :
Push to Remote Repository: If you're collaborating with others and want to share your local branch, go to Git > Push. Select the remote repository and the branch you want to push to (usually origin and your branch name).

> Equivalent Git Commands :

```
git add modified-file-1 modified-file-2 
git commit -m "Message"
git push origin feature/ABC-123-add-user-login
```

### Merging into main after validation


![Merge feature into main](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kbvmfxfv5iya9tdr7ar9.png)

Once you've completed work on your feature branch, received validation/testing approval, it's time to integrate your changes into the main branch. Here's how to achieve this :

Let's startby downloading the latest changes from the remote repository, then switching to the main branch for local work :

```
git fetch && git checkout main
```
Now Merge the feature branch into you main branch ! (If there is a conflict resolve it then remerge).



![Git merge with Intellij](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cy2y3um7b1o81z2phiv8.png)

Thanks for reading!
How to export collection in Postman
Tags: postman, api, tutorial, json
Published: 2024-03-26 22:51:38

At some moment in a developer’s or QA’s life, it is necessary to use Postman to test requests, monitor, and design APIs.  In this case, in my first article in this community, I would like to share how to export a Postman collection in JSON format.

Let's go!

**Exporting a collection**
To export a collection, first, it is necessary to salve your test creating a collection, by clicking "Save".

![first salve your test](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyw4t7lpuss8b7979hs1.png)

After it is created, it will be available on the left side, along with the collection name and related files.

![the collection will be available](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c5eqiwjhv8oc2r7aldlb.png)

Click on the ellipsis (...) and locate the option 'Export'.

![locate the option 'export'](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uoy5s2i6956j0cem2fcj.png)

When you select the 'Export' option, the Postman will inform you about the exported file extension, which will be in JSON format. Choose the 'Collection v2.1' option and click on 'Export'.

![select the 'export'](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uxbng5rcmqk9s7fbw28o.png)

In a moment, the file will be downloaded to your computer.

![download the json file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s30wmtnz59ywmby0bf08.png)

With it in hand, you can share it with members of your team, import collections, or even share it on **GitHub**.

Try out Postman today and explore many other features. If you found this article helpful, please leave a comment.❤️
EASIEST WAY TO UNDERSTAND HOW THE BINARY SYSTEM WORKS.
Tags: webdev, beginners, tutorial, productivity
Published: 2024-03-26 22:36:29

## INTRODUCTION
Before we even delve into binary systems, If you are confused on how the binary system works in general, just bear with me and read this blog. Don't complicate things in your head, imagine you are a 10 year old about to do some math homework by using your fingers.

So, the first question we need to ask ourselves is, 'why use Binary' in the first place. Like what is all the fuss about? I am going to make this as simple as possible.

There are so many different ways of representing numbers, we've got the 'roman numerals' which I believe, everyone knows about. The base-ten numeral system is what people naturally prefer because it is easier, and can just count it easily.

Contrarily, data is viewed by computers as a collection of numbers expressed in the base-two numeral system, or binary system. These numbers consist of just two digits: one and zero.

## HOW BINARY WORKS

Imagine for a moment that you had only two fingers to count on. You could count a zero, a one, and a two. But when you ran out of fingers, you’d need to note how many times you had already counted to two and then start over until you reached two again:



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

Every time you wrote down another pair of fingers, you’d also need to group them by powers of two, which is the base of the system. For example, to count up to thirteen, you would have to use both of your fingers six times and then use one more finger. Your fingers could be arranged as one eight, one four, and one one.

These powers of two correspond to digit positions in a binary number and tell you exactly which bits to switch on. They grow right to left, starting at the least-significant bit, which determines if the number is even or odd.

If you practice using the image illustration above, you should get a basic understanding of how binary numbers work!
HOW TO RECOVER FUNDS FROM NOVATECH FX THROUGH GEARHEAD ENGINEERS
Published: 2024-03-26 22:13:44

I am a victim of the renowned Novatech Fx pyramid scheme that did away with millions of dollars from innocent investors. I joined the platform on 11th September 2022 after giving in to the wave. I remember the last significant message was on January 24th, 2023 where the admin on the platform shared that due to the high volume of cash-out requests, investors may have to wait for payments. Ever since that date, I experienced torture trying to withdraw my money. I tried reporting the case to every law enforcement possible but they were not able to do anything about it. Instead, I was put on a list along with hundreds of other victims in California. I joined a WhatsApp group formed for Novatech victims with the aim of getting updates but months went by without any valid lead. I almost gave up until someone sent leads to a cybersecurity company called GearHead Engineers and mentioned that they have been a great help in his case. I contacted them with my details and I say it felt like a dream when they told me to wait for 12 hours and actually received my full investment into my account. I’m now sharing this hoping all victims of Novatech Fx get help from GearHead Engineers Organization. Make sure to contact them through the contact details displayed on the website.
Amarres De Amor: Herramientas Y Métodos Utilizados En Su Práctica
Published: 2024-03-26 21:59:31

Los amarres de amor son un tema que ha intrigado a muchas personas a lo largo de la historia, y detrás de esta práctica se encuentran una serie de herramientas y métodos utilizados por quienes la practican. Una de las herramientas más comunes es la Lectura De Carta, que permite a los practicantes obtener información sobre la situación amorosa de una persona, identificar posibles obstáculos y determinar el enfoque más adecuado para realizar el amarre. A través de la interpretación de cartas de tarot u otros sistemas de adivinación, se puede obtener una visión profunda y perspicaz que guíe el proceso de manera efectiva.

Otra herramienta comúnmente utilizada en los amarres de amor son los brujos y brujas. Estos practicantes utilizan sus conocimientos y habilidades en el uso de hierbas, velas y otros objetos rituales para realizar conjuros y hechizos destinados a influir en los sentimientos y emociones de una persona en cuestiones de amor. Su experiencia y conexión con el mundo espiritual les permiten canalizar energías y fuerzas para lograr resultados deseados en el ámbito amoroso.

Además de la lectura de cartas y la participación de brujos, la santería también juega un papel significativo en los . La [santeria Fort Worth TX](https://botanicaindioamazonico.com/amarres-de-amor-en-fort-worth-tx/) es una religión sincrética originaria de Cuba que combina elementos de la religión yoruba con el catolicismo. En el contexto de los amarres de amor, la santería implica la invocación de orishas o deidades yorubas para obtener ayuda en asuntos amorosos. Los practicantes de santería utilizan rituales específicos, como ofrendas de alimentos, música y danza, para comunicarse con los orishas y solicitar su intervención en la realización de un amarre de amor efectivo.

En conjunto, estas herramientas y métodos forman parte del proceso de realizar un [Amarres De Amor Fort Worth TX](https://botanicaindioamazonico.com/amarres-de-amor-en-fort-worth-tx/). Sin embargo, es importante recordar que el uso de estas prácticas debe realizarse con responsabilidad y respeto hacia el libre albedrío y los derechos de todas las personas involucradas. Si bien los amarres de amor pueden ser una herramienta poderosa para influir en los sentimientos de una persona, es fundamental considerar las implicaciones éticas y morales de su uso.