teleren/devto huggingface dataset:
Choosing the Right Tool for Graph Analysis: NetworkX vs. Apache Age
Published: 2023-09-22 14:31:26

## Introduction:
Graph analysis has become increasingly important across various fields, like social network analysis, machine learning, and big data analytics. When it comes to analyzing graph data, you have two open-source options to consider: NetworkX and Apache Age. In this blog post, we'll explore these two libraries, highlighting their unique features and helping you decide which one suits your needs.

## Section 1: Meet NetworkX
In this section, we'll introduce NetworkX and break down what it does, why you'd use it, and what it can't do in plain language. We'll delve into its core abilities, like creating and tinkering with graphs, studying network structures, and visualizing networks. We'll also touch on its limitations, such as its reliance on a single machine's memory and its single-threaded nature.

## Section 2: Introducing Apache Age
Here, we'll introduce Apache Age and get into the nitty-gritty of what it offers, when to consider it, and where it falls short. We'll explain its main strengths, like being a distributed graph database and computation engine, supporting a graph query language, and handling large-scale graphs. We'll also discuss its limitations, including its status as a relatively new library with a smaller user base.

## Section 3: Contrasting NetworkX and Apache Age
This part will be all about the showdown between NetworkX and Apache Age. We'll dive into the technical distinctions, like how they handle and process graphs, their scalability, and their support for query languages. We'll also explore the differences in their intended use cases, with NetworkX being a versatile library and Apache Age tailored for large-scale graph analysis within relational databases.

## Section 4: Making the Right Choice
Here, we'll provide practical advice on picking the right library based on your specific needs. We'll talk about situations where NetworkX shines, such as when dealing with small to medium-sized graphs. Conversely, we'll highlight cases where Apache Age excels, like when tackling massive graphs or working with relational databases.

## Conclusion:
In summary, NetworkX and Apache Age are both valuable tools for graph analysis, each with its own set of strengths and limitations. By grasping their differences, you'll be well-equipped to make an informed decision, selecting the library that best aligns with your unique requirements. Whether you're tackling small or colossal graphs or need to tackle intricate graph queries, there's a library out there to help you achieve your objectives.
Creating a key vault and adding a Secret in Azure
Tags: azure, azureportal, keyvault, secret
Published: 2023-09-22 14:30:52

1. Login to azure portal.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ivfzcds88n8284bzcj0b.png)

2. Search for Key vault on the search menu.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7rt7toxodeoshlsm391g.png)

3. Click on create.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8zqauxzk0x5mqppb0n1f.png)

4. Set the required parameters i.e name, region etc.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03rjnl93x3imhwvsanni.png)

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

6. Click on Review and Create.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4lwzob8pivzf7hyg26vm.png)

7. After confirming that there are no issues with the key vault, click create.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g0ero3z938q2xnnx78f8.png)

8. Now to create the secret, go to the newly created key vault and select secrets from the objects blade.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4asjdhb4yxx5fncqktbc.png)

9. Click on Generate/Import.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i059yfgeik3jgtsr9kxx.png)

10. Set the name of the secret and its contents.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/citbzkaxzkvysqso28xt.png)

11. There are optional settings that could be adjusted if you wish to do so.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1eq7irl6hil6hf0v5mo.png)

12. Click create.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pwg9mq16og1qnnuoxxht.png)
After Detailer (ADetailer) Effect On Stable Diffusion XL (SDXL) DreamBooth Training
Published: 2023-09-22 14:17:39

Hopefully a full tutorial coming soon on https://www.youtube.com/SECourses - I will show and explain all settings

Currently workflow and all experiments (66 full trainings) I have done to find best parameters shared here : https://www.patreon.com/posts/very-best-for-of-89213064

Stable Diffusion XL (SDXL) DreamBooth 160 epoch - 13 images (a pretty poor and repeating dataset)

Prompt : Masterful, high-resolution full-body photograph of an (ohwx man:1.1), stylishly donning sunglasses. With (cinematic grading:1.3) and (dynamic lighting:1.4), this image should capture the subject's charm and charisma in a movie-like atmosphere


No negatives



After Detailer (ADetailer extension) Settings

(1st pic) Adetailer is off

(2nd pic) Adetailer on, default settings except denoise is set to 0.5

(3nd pic) Adetailer on, default settings, denoise 0.5 and the prompt is "photo of ohwx man"


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


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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dywvxh9gkinq1lieualo.png)
Introduction to Computer Networking
Tags: ethicalhacking, computerscience, computernetwork, vapt
Published: 2023-09-22 14:14:16

1) What is Computer networking?
-> Computer Networking is referred to as the process of connecting various computing systems and devices so they may communicate with one another.

2) What are the different types of connections in Computer Networks?
-> Connection-oriented Network
-> Connection- less network

https://binfintech.com/an-introduction-to-computer-networking/
How to create Resource Groups in Azure Portal
Tags: azure, resourcegroups, azureportal
Published: 2023-09-22 14:08:18

1. Login to azure portal.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps6vjghh9oepfs4n0gr7.png)

2. Using the search menu, type in Resource Group.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6hqsum1jq4so6wbdnhe9.png)

3. Click on create as shown below.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/me7bcf98dhpwgdh3m91b.png)

4. Input the required parameters for the Resource Group such as;
Region etc.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e26m2lghqu5dxr3s9rzm.png)

5. Click on Review and Create. This takes to you the review page.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l2sitifmzg64zh6mwyex.png)

6. Click on create and wait for the deployment process to finish, after which the Resource Group should have been created
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oe9v7nk6y8noiqbk7ht2.png)
Company Registration |GST Registration | Trademark Registration
Tags: company, india, stratup, tax
Published: 2023-09-22 13:48:59

Setupfiling.in is an online leading platform for company registration, GST registration, trademark registration, income tax return filing, income tax audit, ROC return filing, and other tax and compliance management services. They are a one-stop-shop for all your business needs.
Explore More about Our Services >>>  [WEBSITE](https://setupfiling.in/)
Task 2
Published: 2023-09-22 13:40:45

Testing  design technique & examples :
Test design technique :

1. Boundary value analysis:
 This technique is usually done in black box testing , used to test the Boundary values where the Input values falls under Boundary.

Eg :

Take the data of person who age is falling between 30 to 40.

where , A= 30 & B = 40 .( A is considered as minimum value & B is considered as maximum value ).

The in valid input  are 29 ,41 & valid input are 30,31,39 & 40.

2 . Decision Table testing :
This technique to test various condition with different set off input.

Formula 2^n : 2^2 = 4 valid output.

Eg :  To login Application 

  condition 1 : User should have an existing account.
  condition 2 : User should have valid password
  

Inputs     1  2  3   4
username - T  F  T   F
password  -T  T  F   F

1 - User should have valid user name & password.
 Output : User will be able to login.
2 - User should have invalid user name & valid password.
 Output : User will not be able to login.
3 - User should have valid user name & invalid password.
 Output : User will not be able to login.
4 - User should have invalid user name & invalid password.
 Output : User will not be able to login.

3. Use case testing 

This technique is done by designing team , where the all valid input where all the action will be displayed in diagram.

Eg : How to book a train ticket.
                                  login to portal
                                  
                                  Look for seat
                                  
 Train reservation app ---       confirm the seat & coach

                                  Add passaenger details

                                  Make payment

4. LCSAJ - linear code sequence and Jump testing , falls under white box testing where it helps us to cover the code , based on the test case.
Scanner em Java
Tags: java, programming, beginners, braziliandevs
Published: 2023-09-22 13:26:21

O **Scanner** é uma classe em Java que permite ler entrada de dados do teclado ou de outras fontes, como um arquivo. Ele é muito útil quando você deseja que um programa interaja com o usuário, pedindo que ele insira informações. Vou explicar isso com exemplos simples em Java.

Primeiro, você precisa importar a classe Scanner no seu programa:

```
import java.util.Scanner;
```

Aqui está um exemplo simples de como usar o Scanner para ler uma variável do tipo inteiro (número inteiro) digitada pelo usuário:


```
import java.util.Scanner;

public class ExemploScanner {
    public static void main(String[] args) {
        // Crie um objeto Scanner para ler a entrada do teclado
        Scanner scanner = new Scanner(System.in);

        // Solicite ao usuário que insira um número inteiro
        System.out.print("Digite um número inteiro: ");

        // Use o Scanner para ler o número digitado pelo usuário
        int numero = scanner.nextInt();

        // Exiba o número inserido pelo usuário
        System.out.println("Você digitou o número: " + numero);

        // Não se esqueça de fechar o Scanner quando não precisar mais dele
        scanner.close();
    }
}
```

Neste exemplo, o programa pede ao usuário para inserir um número inteiro, lê a entrada do teclado usando scanner.nextInt(), armazena o valor em uma variável chamada numero e, em seguida, exibe o número de volta ao usuário.

Você pode usar o Scanner de maneira semelhante para ler outros tipos de dados, como números de ponto flutuante ou strings. Basta usar os métodos apropriados, como nextDouble() ou nextLine(), em vez de nextInt(), dependendo do tipo de dado que você deseja ler.
Hacktoberfest: Entenda o que é e por que vale a pena participar
Tags: hacktoberfest, hacktoberfest23, braziliandevs, programming
Published: 2023-09-22 13:21:27

Eae gente bonita, tudo bem com vocês? Hoje eu resolvi voltar com os posts em português para falar um pouco sobre um evento que rola todo ano chamado [Hacktoberfest](https://hacktoberfest.com/).

# Que evento é esse?

Bom o [Hacktoberfest](https://hacktoberfest.com/) é um evento inspirado no Oktoberfest conhecido como o festival da cerveja e é originário da Alemanha, esse evento ocorre todo ano no mês de outubro e nele o pessoal se junta para beber muita cerveja.

# O que é o Hacktoberfest

Bom, o [Hacktoberfest](https://hacktoberfest.com/) um evento criado pela [Digital Ocean](https://www.digitalocean.com/) que é uma empresa de tecnologia que fornece serviços de nuvem. A ideia do evento ao invés de beber cerveja é incentivar a comunidade a contribuir com projetos Open Source durante o mês de outubro.

# Porque eu deveria participar?

Participar do [Hacktoberfest](https://hacktoberfest.com/) pode ser uma ótima experiência para você, ainda mais caso esteja no início de carreira e aqui vão alguns motivos:

* **Você vai ler código de outras pessoas:** Para poder contribuir com um projeto você vai precisar ler o código de outros programadores para entender e fazer o que precisa ser feito e nisso você aprende bastante lendo código dos outros e entendo como outros projetos que **não foram feitos por você** funciona.

<br/>
* **Você vai criar o seu primeiro Pull Request:** Caso você nunca tenha trabalhado, você vai precisar aprender a criar um branch e criar um Pull Request e passar pela experiência de ter um PR revisado até estar pronto para ser mergeado que é uma coisa extremamente comum no dia a dia de um desenvolvedor.

<br/>
* **Entender a importância do Open Source:** Você vai descobrir o quão importante é o Open Source para a vida do desenvolvedor vendo diversas bibliotecas que você usa no seu dia a dia ali disponíveis para você contribuir e melhorar elas. Quem sabe até adicionar aquela feature que você acha que está faltando nela.


Bom listei os pontos que julguei mais importantes para se participar do evento e espero que tenha te motivado a pensar nisso.


------

Se chegou até aqui, me segue la nas [redes vizinhas.]  (https://bento.me/cmsdev)
<img src="https://media.giphy.com/media/D08aklo5n0hi5PJyZw/giphy.gif" />
Binary Search Explained
Tags: computerscience, programming, algorithms
Published: 2023-09-22 13:02:45

## Introduction

Binary Search is a searching algorithm where the sorted array is repeatedly split into two halves to find the item. It is implemented in two ways:
- We can use a While loop 
- Use Recursion.

## Explaination


![Binary Search](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vqovxkxy4sdqa0lte8pq.png)

Here, we can see our sorted array. Which is:
[1,2,3,4,5,6,7,8]
 0 1 2 3 4 5 6 7 - Indices of the items

We have Four Values.
- Start (0)
- End (length - 1 E.g. 8 - 1 = 7)
- Mid ((Start + End) // 2) - Floor Division
- Target (in our example: 6)

So, if the value of middle is equal to the target, then return the middle index.

If the target is greater than the middle index, then, change the start index to 1 more than the middle index. i.e. mid + 1.
Else, change the end index to 1 less than the middle index.

From our example, We can see that in the starting array. The target is on the right side. So, the start index is 1 more than the middle index.

We repeat the process of modifying either the start or end index and check our middle index is equal to the target until the start index is greater than end index, if it is that condition. Then, We aren't able to search our item in our array.

## Conclusion

I hope you understand this explanation of Binary Search Algorithm. Happy Coding!
AI Assistant Blob
Tags: codepen
Published: 2023-09-22 13:00:20

``<p>Inpiration <a href="https://dribbble.com/shots/6546603-AI-Assistant" target="_blank">https://dribbble.com/shots/6546603-AI-Assistant</a></p>

{% codepen https://codepen.io/aaroniker/pen/YoqNRB %}
Cheap AI Chess!
Tags: codepen
Published: 2023-09-22 12:56:24

<p>A wonderful opportunity to beat a computer at chess!</p>

<p>Play against a friend, a totally random AI, or wager money as it plays against itself. I'm sure there are still bugs in here but hey, happy new year.</p>

{% codepen https://codepen.io/petrastore/pen/MWZQKXq %}
#11 Example of Views & View Groups in android | Android Studio Tutorial | SoftwareTechIT
Tags: android, programming, java, beginners
Published: 2023-09-22 12:45:00

{% embed https://www.youtube.com/watch?v=-49-SSp30Zg&list=PLmwJLue37PZfiGUAwQ6uhh5bbYkeFUOpj&index=11&ab_channel=SoftwareTechIT %}

Subscribe Channel SoftwareTechIT 
And Visit:- https://SoftwareTechIT.com
More Here:- https://home.softwaretechit.com
Buy Anything From Here :-https://shop.softwaretechit.com

{% embed https://softwaretechit.com/example-of-views-view-groups-in-android-android-studio-tutorial-softwaretechit/ %}

Questions:- 
What is views and view groups in android ?
Why We Use views and view groups in android studio?
How to Create views in android?
How to Create view groups in android ?
How We Create Android views and view groups?
What is android views and view groups?
What does android views and viewgroups use?
What is An views and viewgroups?
How to Code views and viewgroup?
how does android views and viewgroups work ?

Download Our App:- https://play.google.com/store/apps/details?id=com.softwaretechit
Read More Here :- https://softwaretechit.com/top-10-quetions-on-ai-and-chatgpt-ai-tool-can-ai-is-new-future-of-world/
https://softwaretechit.com/what-is-chatgpt-develope-chatgpt-11-things-you-can-do-with-chatgpt/
Watch Other Video:-https://youtube.com/shorts/7MmZi6GHizM?feature=share
🌎 Website :- https://softwaretechit.com
📰 Blog:- https://blog.softwaretechit.com
🛒 Shopping :- https://shop.softwaretechit.com 
📑 Product Review :- https://productsellermarket.softwaretechit.com
🔎 Business & More:- https://golbar.net/
🏡 https://home.softwaretechit.com

💬 https://instagram.com/softwaretechit

LeetCode Playlist :- https://www.youtube.com/playlist?list=PLmwJLue37PZeATQcUaHddx4-TJ5cjkT0t
Angular Project Playlist :- https://www.youtube.com/playlist?list=PLmwJLue37PZfQTgu-AXNee3EDj7oIlqeh
Android Playlist :-https://www.youtube.com/playlist?list=PLmwJLue37PZcEUyMLhaa3jnfyq3lETiSe
Python Flask Project Playlist :- https://www.youtube.com/playlist?list=PLmwJLue37PZdqqr9wj6c5uY2iXQsSVxZK
Java Project Link :- https://www.youtube.com/playlist?list=PLmwJLue37PZcvpGWO8tjlFzXCRS7FDfwA
Installation Tutorial Playlist :- https://www.youtube.com/playlist?list=PLmwJLue37PZeRGo1hOc3Mh4QcHVSIKQ9Y
Kali Linux Installation:- https://youtu.be/7uqH2om9itY

Thank You... #softwaretechit #2023 #tech
Electron Testing Best Practices: Testing Main and Renderer Code with Jest
Tags: electron, jest
Published: 2023-09-22 12:39:37

Electron is a great tool to create desktop applications.

## Electron Basics

Electron consists of three parts: main process, renderer processes, and preload.

You only have one main process that is responsible for launching windows, controlling tray icons, and handling APIs that are only available for node, and not for web or Chrome.
The main process is a node process.

The preload lets us expose some node API to the renderer process.

The renderer process is attached to a Window, and it runs like JavaScript in the browser.

## Testing both Main and Renderer code
The main code is a node code, and the renderer code is a browser code.
So we need a way to tell Jest to use different testing environments for each test.

There are two possible approaches to solving this

### Using docblock

```jsx
/**
 * @jest-environment jsdom
 */
```

You can set the default test infra to use node, and in each renderer test file, you add this docblock to change the test environment.

The problem with this approach is that some developers can forget, and get some weird bugs hard to solve.

### Using Jest Multi-Project-Runner

We can use Jest Multi-Project-Runner in a single repository, and modify each project to have their own configuration.

Let's see how to have 2 projects, one for main and another for renderer:

jest.config.js
```jsx
module.exports = {
  projects: [
    '<rootDir>/jest.main.config.js',
    '<rootDir>/jest.renderer.config.js',
  ],
}
```

jest.main.config.js
```jsx
module.exports = {
  testRegex: '((\\.|/)(main.spec))\\.(js|ts|tsx)?$',
  testEnvironment: 'node',
}
```

jest.renderer.config.js
```jsx
module.exports = {
  testRegex: '((\\.|/)(renderer.spec))\\.(js|ts|tsx)?$',
  testEnvironment: 'jsdom',
}
```

Using testRegex to match different testfiles we can turn the test environment explicit:

any `*.main.spec.ts` will use node environment
any `*.renderer.spec.ts` will use jsdom environment


## Wrapping Up

You can use existing tools to adapt to your new use cases.
Jest multi-project runner is versatile and can also be used in a single repo to test different codes and requirements.

You can use the same approach to test nextjs backend, and frontend code, and also SSR and Server Components.

---
Woovi
[Woovi](https://www.woovi.com) is a Startup that enables shoppers to pay as they like. To make this possible, Woovi provides instant payment solutions for merchants to accept orders.

If you want to work with us, we are [hiring](https://woovi.com/jobs/)!

---

Photo by <a href="https://unsplash.com/@jrkorpa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Jr Korpa</a> on <a href="https://unsplash.com/photos/iTFu87JYsr4?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Migrating static redirects from Gatsby Cloud to Vercel
Tags: vercel, gatsby
Published: 2023-09-22 12:37:42


Since Gastby Cloud [is being discontinued](https://www.netlify.com/blog/taking-gatsby-to-new-heights-embracing-adaptability-and-openness/) in favor of Netlify's offering, I was looking for a new home for my personal website, which was hosted using Gatsby Cloud's free tier.

The suggested migration path logically led to Netlify, but since I already hosted some other sites via Vercel, I wanted to try that option first. Luckily, Vercel [has](https://vercel.com/docs/frameworks/gatsby) built-in support for Gatsby.

The migration was mostly a simple matter of linking my GitHub repository to a new Vercel project, bulk-copy-pasting environment variables, and clicking "Deploy", however, there was just one thing didn't work out-of-the-box: **static redirects**.

I couldn't find specific migration documentation on this, but it wasn't hard to figure out either. Hence this short writeup!

## Recap: redirects in Gatsby Cloud

Redirects in Gatsby Cloud were made available through the plugin [gatsby-plugin-gatsby-cloud](https://github.com/gatsbyjs/gatsby/tree/db41d1356c527cf4028142050978accd4abb1e9a/packages/gatsby-plugin-gatsby-cloud). In your `gatsby-node.{js,ts}`, this plugin interacted with the [`createRedirect`](https://www.gatsbyjs.com/docs/reference/config-files/actions/#createRedirect) action. Wildcard replace rules were also supported:

```js
exports.createPages = ({ actions }) => {
  const { createRedirect } = actions

  createRedirect({
      fromPath: "/posts/*",
      toPath: "/articles/*",
  })

}
```

## Static redirects in Vercel

In contrast to Gatsby Cloud, Vercel does not seem to automagically transform `createRedirect` calls during the SSG build stage into runtime redirections.

Instead, Vercel **understands a configuration file called `vercel.json`** in the root of your repository, which can be used to configure Vercel's build & runtime behavior for a static site.

It also allows you to specify redirects, including wildcard replacement rules. The example above can be encoded as follows in [`vercel.json`](https://vercel.com/docs/projects/project-configuration):

```json
{
  "redirects": [
    {
      "source": "/posts/:path*",
      "destination": "/articles/:path*"
    }
  ]
}
```

## So, to migrate:

1. Transform the format of your rules into Vercel's JSON format ([see docs](https://vercel.com/docs/projects/project-configuration#redirects)). If you have many rules, you can use tools like VSCode regex search/replace, multi-cursor editing, or GNU sed to automate this process.
2. Put those rules in `vercel.json` at the root of your repository.
3. Remove all traces of `createRedirect()` from your code, remove `gatsby-plugin-gatsby-cloud` from your `gatsby.config.js`, and remove the plugin package using your package manager.

That's all there is to it!