teleren/devto huggingface dataset:
Learning AWS Day by Day — Day 17 — VPC Components
Tags: aws, cloud, cloudcomputing, beginners
Published: 2024-03-26 16:20:32

Exploring AWS !!

**Day 17:

Components of VPC**

Network Interfaces, Route Tables, Internet Gateway, Network Address Translation (NAT), Security — (Security Groups and Network Access Control Lists)

**1. Network Interfaces:**
Interaction between computer and Internet Network.
Network IO happens via Network Interface Cards (NIC).
Network interface contains — Elastic IP, Public IP, Private IP, security Group.
Elastic Network Interface (ENI) — It is a virtual network interface and it contains all attributes like Private IP, Public IP, Elastic IP, Security Group, Mac address, Source/Destination check.
Network Interface can be created to an instance attached to an instance, detached from instance, re-attached to another instance.
Multiple IP address — Network Interface can have additional security IP address attached to it. IP address can be assigned to network instance attached to running or stopped instance.

**2. Route Tables:**
Route Table tells a machine network where traffic is directed.
Directions are defined by route in Route Table.
Each subnet must be associated with a route.
All VPCs come with an implicit router and main Route Table which can be modified.

**3. Internet Gateway:**
A horizontally scaled redundant and highly available VPC component that allow communication between instances in your VPC and internet.
Purpose:
created to an instance
attached to an instance
detached from instance
re-attached to another instance

**4. NAT (Network Address Translation):**
Internet cannot initiate any connection to instances via NAT.
NAT devices enable instances in Private subnets to connect to Internet and brings response back to instance.
NAT devices are created in public subnets.

**Difference between NAT Gateway and NAT instances:**
**NAT Gateway:**
Implemented with redundancy.
Supports burst up-to 10 Gbps.
Managed by AWS.
No size.
Only NACLs can be used to filter traffic.
EIP has to be associated.
**NAT Instances:**
Failover has to be managed manually using script.
Depends on bandwidth of instance type.
Managed by AWS.
Instance type and size can be selected.
Both Security group and NACL can be used.
Both EIP and Public IP can be used.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2e1cgcigsivh16gtple.png)
Introducing Map Projection in Apache AGE Open Cypher
Tags: apacheage, opensource, database, tutorial
Published: 2024-03-26 16:04:57

Apache AGE, the graph extension for PostgreSQL, continues to enhance its capabilities, bringing powerful features to the forefront of graph database technology. One such addition is the introduction of Map Projection in the Open Cypher query language. This feature significantly augments the querying capabilities, allowing users to manipulate and extract specific data elements from their graph databases with greater precision and efficiency. The implementation of map projection in Apache AGE can be found [here](https://github.com/apache/age/pull/1710)

What is Map Projection?
Map Projection in Open Cypher enables users to extract subsets of properties from nodes or relationships within a graph and project them onto a new structure. It operates similarly to a SELECT statement in SQL, allowing users to specify exactly which properties they want to include in the resulting projection. This fine-grained control empowers users to tailor their queries to extract only the relevant information needed for analysis or processing.

How to Use Map Projection:
Map Projection in Apache AGE Open Cypher is straightforward to use, integrating seamlessly into existing query workflows. Below is a basic syntax example:


![Syntax for map projection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2qpf2brmp874ym9cj5f.png)

In this example:
(n:Node) specifies the node pattern to match.
.property1 and .property2 are the properties to include in the projection.
projectedMap is the alias assigned to the projected map.

Comparison with Neo4j:
While Apache AGE's Map Projection in Open Cypher provides similar functionality to Neo4j's querying capabilities, it's important to note some differences:

- Neo4j uses its query language Cypher, whereas Apache AGE extends PostgreSQL to support Cypher.

- Both databases support map projection, but the syntax and specific features may vary slightly between implementations.

- Neo4j has a larger community support compared to Apache AGE, which may influence factors such as documentation availability and third-party tool integration.


Conclusion:
The addition of Map Projection to Apache AGE Open Cypher represents a significant advancement in the capabilities of graph database querying. By enabling selective data extraction and customization of query output, Map Projection empowers users to harness the full potential of their graph data with greater efficiency and precision. As Apache AGE continues to evolve, features like Map Projection reaffirm its position as a leading solution for graph database management and analysis.
Let’s Build a Dapp with Node.js and Koinos Pro [PART 1] Generate API Key
Tags: dapps, node, blockchain, koinos
Published: 2024-03-27 10:37:54

---
title: Let’s Build a Dapp with Node.js and Koinos Pro [PART 1] Generate API Key
published: true
date: 2024-03-26 16:03:14 UTC
tags: dapps,nodejs,blockchain,koinos
canonical_url: 
---

This is part 1 of the ‘Let’s Build on Koinos’ series where I go step-by-step on how to build a Node.js application capable of interacting with the Koinos blockchain.

For the sake of clarity, in this series, “Dapp” will refer to any application that utilizes blockchain technology. We will be creating a Dapp that can call smart contract functions created and audited by other developers.

You do NOT need to code smart contracts to harness the power of blockchain technology. Making use of existing contracts is a great way to start.

Let’s get started.

![Koinos Pro](https://cdn-images-1.medium.com/max/1024/1*2tq2jL5zDkRfeaUaRpC9lw.png)

### **Step 1: Generate API Key via Koinos Pro**

This can be done quickly with an API endpoint provided by Koinos Pro to make GET and POST json requests.

Free version available at [https://koinos.pro/](https://koinos.pro/)  
Fast account creation (5 mins)

![Koinos Pro portal for Koinos Network](https://cdn-images-1.medium.com/max/1024/1*8PSschFhf5JJZSgdEZ51Lw.png)

#### After creating an account, generate an API key.

![Mainnet API endpoint](https://cdn-images-1.medium.com/max/1024/1*Oc5Xx_YxAH_7L8FJl28XsA.png)

#### We can choose between MAINNET and TESTNET, let’s use testnet for this tutorial.

![Testnet API endpoint](https://cdn-images-1.medium.com/max/957/1*taOisov5jCYEVcyloxe15A.png)

```

https://api.harbinger.koinos.pro/jsonrpc?apikey=[your API key here]
```

Replace [your API key here] with… you guessed it, your API key!

_API Documentation:_ [https://docs.koinos.pro/api\_keys/](https://docs.koinos.pro/api_keys/)  
_Nothing we need here, but it’s a useful link with a list of API connection methods._

#### In [Part 2](https://dev.to/isaactdozier/lets-build-a-dapp-with-nodejs-and-koinos-pro-part-2-create-a-wallet-ngp) we will create a wallet and get tKoin airdropped for interacting with the blockchain.
Measuring Mobile DevOps Maturity with DORA Metrics
Tags: mobile, devops
Published: 2024-03-26 16:00:11


[![DevOps Maturity](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pawwfg3r1h2rix8pr66n.png)](https://appcircle.io/blog/measuring-mobile-devops-maturity-with-dora-metrics?utm_source=devto&utm_medium=post&utm_campaign=dora_metrics)

Discover how Appcircle transforms mobile DevOps in our latest article! 🚀 
Learn about tailored DORA metrics on Mobile DevOps 
 
Let's redefine Mobile DevOps together! 

[https://appcircle.io/blog/measuring-mobile-devops-maturity-with-dora-metrics](https://appcircle.io/blog/measuring-mobile-devops-maturity-with-dora-metrics?utm_source=devto&utm_medium=post&utm_campaign=dora_metrics)
Kubernetes All in One | Basic Necessary Skill for DevOps
Tags: webdev, devops, kubernetes, aws
Published: 2024-03-26 15:41:48

{% embed https://youtu.be/ohL_dE8ICRc %}
Kubernetes All in One | Basic Necessary Skill for DevOps

Join me on this journey to mastering DevOps. Let's get hands-on and build a strong foundation together! Don't forget to like, share, and subscribe for more exciting content. Happy coding, future DevOps!"
Desata el Poder del Amor: Amarres que Cambiarán tu Vida
Published: 2024-03-26 15:39:54

Los amarres de amor son prácticas ancestrales que buscan fortalecer los vínculos afectivos entre parejas y recuperar el amor perdido. A menudo realizados por expertos en esoterismo, estos rituales se centran en influir positivamente en las energías amorosas para restaurar la armonía en las relaciones. Además de los [amarres de amor Sioux City IA](https://amarresenchicago.com/amarres-de-amor-en-sioux-city-ia), existen otras formas de buscar orientación y apoyo en cuestiones sentimentales, como la lectura de cartas, los rituales de brujería y las prácticas de [santeria Siaoux Cyti IA](https://amarresenchicago.com/amarres-de-amor-en-sioux-city-ia). Estas opciones pueden proporcionar perspectivas únicas y herramientas para abordar desafíos amorosos con mayor claridad y comprensión.

Además, es importante tener en cuenta que mientras que algunas personas encuentran consuelo y dirección en estas prácticas esotéricas, otras prefieren buscar soluciones en terapias de pareja, asesoramiento psicológico o comunicación abierta y honesta. Cada individuo y cada relación es única, por lo que es fundamental explorar diferentes opciones y encontrar la que mejor se adapte a tus necesidades y creencias personales. En última instancia, el objetivo principal es cultivar relaciones amorosas saludables y satisfactorias, independientemente de los métodos utilizados para alcanzar este fin.
Udyog Aadhar | Udyog Aadhaar Registration | Udyog Aadhar Certificate
Published: 2024-03-26 15:35:54

[Udyog Aadhar](https://www.udyog-aadhar.com/
) is a simplified registration process designed for small and medium-sized enterprises in India. Also known as Aadhar Udyog or Udyog Aadhaar, it involves obtaining a unique identification number for businesses. The Udyog Aadhar registration is a straightforward online procedure that provides entrepreneurs with an official Udyog Aadhar certificate. This certificate serves as proof of the business's existence and facilitates various benefits, including access to government schemes, subsidies, and financial assistance. By obtaining Udyog Aadhar, businesses gain recognition and can participate in government initiatives aimed at supporting their growth. The Udyog Aadhar initiative aims to streamline the registration process for small enterprises, making it more accessible and promoting the ease of doing business in India.
Descifrando Los Secretos De Los Amarres De Amor: ¿Funcionan Realmente?
Published: 2024-03-26 15:34:39

En el mundo de la espiritualidad y las relaciones amorosas, los amarres de amor han sido un tema de debate y fascinación durante siglos. Muchas personas recurren a ellos en momentos de desesperación o en busca de soluciones para problemas sentimentales. Sin embargo, la pregunta persiste: ¿realmente funcionan los Amarres De Amor o son simplemente mitos?

Para entender mejor este fenómeno, es crucial explorar las diversas prácticas que se utilizan en el ámbito de los [amarres de amor Valparaiso IN](https://botanicavirgenmorena.com/amarres-de-amor-en-valparaiso-in/). Desde la lectura de cartas hasta la consulta con brujos, pasando por rituales asociados con la santería y la botánica, existe una amplia gama de métodos que prometen influir en el amor y las relaciones.

La Lectura De Cartas es una práctica común en la que se utilizan cartas de tarot o barajas de adivinación para obtener información sobre el futuro amoroso de una persona. Los resultados de estas lecturas pueden influir en la decisión de recurrir a un amarre de amor.

Por otro lado, los brujos han sido tradicionalmente vistos como expertos en el uso de la magia para manipular energías y influir en los sentimientos de las personas. Muchos recurren a ellos en busca de ayuda para recuperar a un ser querido o mantener una relación amorosa.

La[ santeria Valparaiso IN](https://botanicavirgenmorena.com/amarres-de-amor-en-valparaiso-in/) y la botánica también desempeñan un papel importante en los amarres de amor. Estas prácticas suelen implicar el uso de hierbas, velas, amuletos y otros objetos con propiedades místicas, con el fin de fortalecer los lazos emocionales entre las parejas o atraer el amor deseado.

A pesar de la creencia popular en la efectividad de los amarres de amor, muchos expertos cuestionan su validez y ética. Argumentan que manipular los sentimientos de otra persona va en contra del libre albedrío y puede tener consecuencias negativas a largo plazo.
BAML: A new programming language for using LLMs + a VSCode Playground
Tags: ai, opensource, news, vscode
Published: 2024-03-26 15:22:51

All we wanted was our prompts in our codebase, not on some website. Then just to see the prompts before we ran the code. Then comments inside of prompts. Then just less strings everywhere, and more type-safety...

At some point, it became [BAML](https://github.com/boundaryml/baml): a type-safe, self-contained way to call LLMs from Python and/or TypeScript.

BAML encapsulates all the boilerplate for:

- flexible parsing of LLM responses into your exact data model
- streaming LLM responses as partial JSON
- wrapping LLM calls with retries and fallback strategies

Our VSCode extension provides:

- real-time prompt previews,
- an LLM testing playground, and
- syntax highlighting (of course)

![Testing in vscode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tj1kteg2per5eyj8qmo8.png)

Here's a short BAML snippet for extracting a resume (with syntax highlighting):

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

Or in code form:
```rust
// extract_resume.baml

// 1. Define the type for the output
class Resume {
  name string
  // Use an array to get multiple education histories
  education Education[]
}

// A nested class
class Education {
  university string
  start_year int
  // @description injects context into the prompt about this field
  end_year int?
  @description("unset if still in school")
}

// 2. Define the function signature
// This function takes in a single paramater
// Outputs a Resume type
function ExtractResume {
  input (resume_text: string)
  output Resume
}

// 3. Use an llm to implement ExtractResume.
// We'll name this impl 'version1'.
impl<llm, ExtractResume> version1 {
  client GPT4
  prompt #"
    Extract the resume from:
    ###
    {// This macro injects your input param //}
    {#input.resume_text}
    ###

    Output JSON Schema:
    {// This macro prints out your schema //}
    {#print_type(output)}
  "#
}
```

The whole premise really just boils down to:
- preferring to use types, not strings
- not wanting to leave VSCode just to do some LLM testing

We also have a bunch of cool features in the works: conditionals and loops in our prompt templates, image support, and more powerful types.


We're still pretty early and would love to hear your feedback. To get started:

https://github.com/boundaryml/baml
TechnBrains: Your Go-To for Mobile App Development in New York
Published: 2024-03-26 15:22:07

Searching for [mobile app developers near me](https://www.technbrains.com/locations/mobile-app-development-new-york)? TechnBrains offers iOS and Android mobile application development services in New York, creating custom apps for businesses and entrepreneurs. Choose TechnBrains for the best user experience with our tailored mobile app services. Contact us today to discuss your project requirements!
5 Books to Learn Javscript in Depth
Tags: webdev, javascript, beginners, programming
Published: 2024-03-26 15:11:44



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


- Eloquent JavaScript: A Modern Introduction to Programming" by Marijn Haverbeke:This book is widely recommended for beginners and experienced developers alike. It provides a comprehensive introduction to JavaScript programming concepts, covering everything from basic syntax to complex topics like higher-order functions and object-oriented programming. The book also includes practical exercises and projects to reinforce learning.

- "JavaScript: The Good Parts" by Douglas Crockford:Douglas Crockford, a well-known figure in the JavaScript community, distills the language down to its most essential and powerful parts in this book. It focuses on the best practices and effective techniques for writing clean, maintainable JavaScript code. It's particularly valuable for developers looking to understand the core principles of JavaScript and how to leverage its strengths while avoiding its pitfalls.

- "You Don't Know JS" series by Kyle Simpson:This series consists of multiple books, each diving deep into different aspects of JavaScript. Written in a clear and approachable style, these books explore topics such as scope and closures, this & object prototypes, async & performance, and more. They provide in-depth insights into JavaScript's often misunderstood or overlooked features, making them essential for anyone seeking a deeper understanding of the language.

- "JavaScript: The Definitive Guide" by David Flanagan:As one of the most comprehensive references available for JavaScript, this book covers the language in detail, from its core syntax to advanced features and APIs. It serves as both a tutorial and a reference guide, making it suitable for beginners and experienced developers alike. With clear explanations and thorough coverage of topics, it's an indispensable resource for mastering JavaScript development.

- "Secrets of the JavaScript Ninja" by John Resig, Bear Bibeault, and Josip Maras:This book takes a practical approach to teaching JavaScript, focusing on techniques and strategies for writing efficient and powerful code. It covers advanced topics such as closures, promises, and design patterns, helping readers elevate their JavaScript skills to ninja-level proficiency. With insightful explanations and real-world examples, it's a valuable resource for developers looking to take their JavaScript expertise to the next level.
Resume Worth Calculator built with Next.js
Tags: resume, calculator
Published: 2024-04-08 02:45:03

---
title: Resume Worth Calculator built with Next.js
published: true
date: 2024-03-26 14:56:05 UTC
tags: Resume,Calculator
canonical_url: https://reactjsexample.com/resume-worth-calculator-built-with-next-js/
---

## Resume Worth Calculator
 ![Resume Worth Calculator built with Next.js](https://reactjsexample.com/content/images/2024/03/Code_2024-03_22-52-19.jpg)

This app estimates the dollar worth of your resume (i.e. how much money you can make with your resume).

This project is built using Next.js and the Mistral API. The content from the resume pdf is extracted by PDF.js.

![Resume Worth Calculator built with Next.js](https://reactjsexample.com/content/images/2024/03/resumeworth-demo.gif)

[View Demo](https://resume-worth.vercel.app/)[View Github](https://github.com/zaurbek-stark/resume-worth)

## Author

This project is built by Zaurbek Stark (The Codebender).
Python Selenium Architecture for WebAutomation
Tags: webautomation, python, selenium, softwaretesting
Published: 2024-03-26 14:55:53

**Introduction**

In current situation where web applications and web pages are getting advanced and complex, we are in need of efficient web automation solutions.

With several web automation architecture available today, python selenium architecture is one among them which provides simplicity and also adoption to changes.

Here, in this post we try to provide simpler explanation of how python selenium architecture works.

**Python Selenium Architecture**

It uses combination of python and selenium in a effective way that provides greater facility to automate web browser interactions.


![Flow Chart](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w9rqtxrr9biq6pz8gsey.png)

**Python Language**
Python known for its simplicity and readability, is used as scripting language which interacts and uses selenium webdriver.

**Selenium Webdriver API**

Selenium webdriver API is core of this architecture, which acts as bridge between script and browser, it helps to control actions in browser.



**Browser Driver**
To communicate with browsers, selenium depends on browser specific drivers such as chromedriver and geckodriver.

These drivers establish connection between webdriver and respective browser.

**Web Browser**
Target application of this automation is web browsers such as chrome, firefox or edge.

**Web Elements**
Webpages consists of elements such as button, input fields, links.
Selenium python architecture provides methods to locate and interact with those elements.

**Test Actions**
We perform range of actions like click, type, navigations in webpage using webdriver API.

These actions simulate real time user interactions with web page.

**Result Verification**
After performing actions , selenium validates expected outcome against actual results, which ensures functionality and correctness of web application.

**Conclusion**
In testing, selenium python architecture helps us to test workflows , improve coverage and ensures quality of web application.

It also stands tall in terms of providing powerful and flexible framework.
Debugging Code Effectively
Tags: react, devops, aws, python
Published: 2024-03-26 13:40:42

One of the most important skills for any developer is being able to effectively debug code when things don't work as expected. As a junior developer, I've been spending a lot of time debugging and have picked up some useful techniques along the way.

 **_Console is Your Best Friend_**
The browser console is incredibly useful for debugging frontend code. You can use console.log() statements throughout your code to log variable values and check the flow. This has helped me trace issues so many times.
For example, if I have a function that isn't behaving as expected, I'll add logs before and after key lines to narrow down where it's breaking.

**_Breakpoints Save Time_**
For debugging JavaScript in the browser, learn how to use breakpoints. In the Sources panel of dev tools, click on the line number where you want execution to pause. Then reload and the code will break on that line.

This allows you to step through code line by line and inspect scopes. Much better than adding dozens of logs!

**_Handle Errors Gracefully_**
Always wrap potentially error-prone code in try-catch blocks and log the error. This will help catch runtime exceptions. For example:

```
try {
  // code that may throw
} catch (err) {
  console.error('An error occurred:', err);
}
```

Proper error handling is important for robust code.
<u>https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary</u>

That covers some top debugging techniques I've found useful. In future posts, I'll discuss other tips like code organization, performance optimization, and more. Please share any other questions or feedback in the comments!
Ibuprofeno.py💊| #63: Explica este código Python
Tags: python, spanish, learning, beginners
Published: 2024-03-26 14:46:52

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```py
## Reto #63
my_dict = {"name": "John", "age": 30, "city": "New York"}

for key, value in my_dict.items():
  print(f"{key}: {value}")
```

👉 **A.** `KeyError`
👉 **B.** `TypeError`
👉 **C.** `SyntaxError`
👉 **D.**
```py
name: John
age: 30
city: New York
```

---

Respuesta en el primer comentario.