teleren/devto huggingface dataset:
API 101 using POSTMAN
Tags: postman, api, json, postmanapi
Published: 2024-04-27 18:13:05



Today, I had an enlightening session diving into the world of APIs using Postman, and I couldn't wait to share my learnings with you all. KRISHANU BUJARBARUAH bhaiyia, a postman student leader and frequent hackathon participant, led this session followed by MAYANK ARORA founder of soarx network. And that's how it went on...

## **APPLICATION PROGRAMMING INTERFACE**: 
1. APIs act as intermediaries between different software systems, allowing them to interact and share data in a structured manner.

2. Whether you're fetching weather data, sending emails, or integrating payment gateways, APIs make it all possible.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vm7ztiexrwuwzzvm01yl.png)

## **Getting Started with Postman**:
 Postman is a powerful API testing tool that simplifies the process of sending requests to APIs and analyzing responses.. With its user-friendly interface and robust features, even beginners can quickly get up to speed.

## **Sending Requests and Responses**:
 In Postman, sending requests to APIs is as easy as pie. You can choose the request type (GET, POST, PUT, DELETE, etc.).Postman then displays the response in a clean and structured format, making it easy to inspect.

![Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bl27kkhkzuqlzou7av11.png)
GET : This method requests the resource.
POST : This method is used to 'submit' or 'create' a resource.
PUT : This method is used to 'replace' an existing resource or 
      'create' one if not found.
PATCH : This method is used to 'modify' an existing resource and 
        is required to contain only the changes to the resource.
DELETE : As evident by it's name, this method is used to delete 
         the specified resource.

## **HANDS-ON EXPERIENCE**:
 We began with a PPT-focused introduction, and then we had a hands-on experience working with a basic API. Bhaiya kept us laughing with her constant quizzing on basic concepts.

We decided to work with the path "/joke" when using the endpoint URL, so that a random joke would appear with GET requests to the API. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o70ia3oto8d3tr694glj.png)
To learn more about these methods, I would recommend you to visit [this link](https://www.youtube.com/live/3c9krvBx3kE?si=pb8eVzi6UKbIZWbB)

In addition, the session clarified everything that could be unclear or that one might want to know about when interacting with an API in Postman, including the Parameters, Body, and Header.

The session ended after an incredible experience:(
Working with APIs is a truly enjoyable experience with Postman.

**_Create them, test them, and enjoy yourself in the process!_**
How to Print to Browser Console from Razor View Page in ASP.NET MVC
Tags: aspdotnet, webdev, javascript, mvc
Published: 2024-04-27 17:33:08

## Introduction
In an ASP.NET MVC project, communicating with the browser’s console can be incredibly useful for debugging or displaying dynamic content. While the server-side code executes on the server, sometimes you need to interact with the client-side environment, and printing messages to the browser console is a common requirement. Here’s how you can achieve this seamlessly within your Razor View Pages:

---

## Using Inline Script Blocks
One of the simplest methods to print messages from the server-side to the browser console is by embedding JavaScript code within your Razor View. This approach allows you to inject dynamic server-side values directly into the client-side script.

```
<script>
    console.log('@(Model.YourMessage)');
</script>
```
This code snippet demonstrates how to print the value of YourMessage from the server-side model to the browser console. Replace ‘YourMessage’ with the appropriate property from your model.

## Utilizing ViewBag or ViewData
If you’re not passing a model to your view, you can still print messages to the console using ViewBag or ViewData.

```
<script> 
 console.log('@ViewBag.Message'); 
 // OR 
 console.log('@((string)ViewData["Message"])'); 
</script>
```

In this example, ‘Message’ is the key you assigned in your controller to the value you want to display.

---

## Conclusion:
Printing messages to the browser console from Razor View Pages in ASP.NET MVC is a straightforward process. Whether you’re logging simple strings, values from models, or complex objects, incorporating client-side debugging and dynamic content display can greatly enhance your development experience. By utilizing these techniques, you can streamline your debugging process and improve the overall functionality of your ASP.NET MVC applications.
Building askreferral.io
Published: 2024-04-27 17:30:05

In an era where networking is key to career advancement, askreferral.io emerges as a groundbreaking solution, revolutionizing the recruitment process. This innovative B2C software platform is designed to optimize the recruiting workflow for interviewers, candidates, and recruiters alike. By enabling users to reach out to their entire relevant network—including college alumni, past colleagues, and employees at applying companies—with a single click, askreferral.io significantly simplifies and streamlines the job search and hiring process.

Progress and Current Status Since its inception, askreferral.io has successfully implemented its product, amassing a growing user base and supporting job seekers in their quest for employment. Additionally, the platform has cultivated a vibrant community of over 100,000 LinkedIn followers, further extending its reach and impact within the job market.

Inspiring Story The inspiration for askreferral.io was born out of a desire to assist individuals affected by the tech industry layoffs, particularly those in challenging visa situations. The platform’s ability to facilitate connections with potential referrers with just one click—providing essential details like resumes, coding profiles, LinkedIn profiles, and personalized pitch letters—has made it a lifeline for many seeking employment under tight deadlines.

Future Outlook In the next four years, askreferral.io aims to become the premier destination for candidates seeking jobs, referrals, and interview opportunities, as well as for recruiters in search of the most suitable candidates. The platform envisions a future where it serves as the ultimate resource for interview preparation, mentorship, and freelancer connections, revolutionizing the hiring process with zero-interview hiring for tech teams.

[askreferral.io](askreferral.io) stands as a testament to innovation in the digital age, offering a more efficient and effective way to network, seek jobs, and recruit talent. As the platform continues to grow and evolve, it remains committed to its mission of simplifying the recruitment process, making it more accessible and rewarding for all involved.

The stack we used to build this platform includes

1. bubble.io
2. Postmark
3. Azure AI API offerings.
4. byword.ai
Learning AWS Day by Day — Day 48 — Amazon DynamoDB — Part 4
Tags: aws, cloud, cloudcomputing, dynamodb
Published: 2024-04-27 17:27:50

Exploring AWS !!

Day 48:

Amazon DynamoDB — Part 4

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

Provisioned Capacity mode: autoscaling, maintains performance.

Disney+ chose DynamoDB to help with:
Utilizing multi-region replication with single digit latency to shift traffic without data issues.
Adding another region in global tables to launch in new countries.
Scaling recommendation and bookmarks with no operational overhead.
Having ability to switch between on demand and provisioned capacity mode.

Enterprise Ready: Simplify application code with ACID guarantees run transaction for large scale workloads, accelerate legacy migration.

Security:
Access controls and Encryption at Rest:
All tables encrypted in transit, at rest by default
Fully integrated with IAM
Access DynamoDB from a VPC via secure VPC endpoint

Audit logging with CloudTrail:
Capture all Control plane and Data Plane operation logs for compliance, risk and auditing.
Record table level and item level activity, trigger actions when important events are detected and analyze events and logs with Amazon Athena and CloudWatch logs Insights, Compliance aid, visibility into activity, detect data exfiltration, automate security analysis, troubleshoot anomalies, analyze permission.

Backup and Restore: on demand backups for long term data archiving and compliance.
Continuous backups for PTR(Point in Time Recovery) — last 35 days
Zero impact performance.

NoSQL workbench:
Data modeler: client side application that helps you build scalable, high performance data models.
Visualizer: Simplifies query development and testing. A rich GUI based tool that helps you visualize data models and perform DynamoDB operations.
Operation Builder: Available for Windows, MacOS, Linux

Export data to S3 for analysis and insights:
DynamoDB is not for analytics, but for transactional workloads, OLTP. So, for analytics you need to export from DynamoDB and put that data into another system. You can use Athena directly against S3 files, but this way with single hit exporting to S3 is great.

Extract Actionable Insights:
Export DynamoDB across regions and accounts to help comply with regulatory requirements and develop a Disaster recovery and Backup plan.

No impact on performance:
Zero impact

Integrate with backups:
Select a DynamoDB table with PITR enabled specify any point in 35 days and choose target S3, output in JSON and Amazon Ion.

Capital One Bank was first US Bank to go all in on the cloud:
Migrated from Mainframe to DynamoDB
Previously all application were using Mainframe sitting in middle of the physical servers they had.
Producer teams busy coming up with new mobile products for customers were often blocked by mainframe.
DynamoDB microservices give application developers unbounded scale, nimbleness and ability to rollout all new services.
[Self-Study] Microsoft Azure - Describe the benefits of using cloud services Module
Published: 2024-04-27 17:25:05

I learnt about the benefits of Cloud services, mainly:
- Scalability (Vertical and Horizontal)
- Reliability (Stability of the platform)
- Predictability 

Vertical vs Horizontal Scalability:
- Vertical scalability means increasing/decreasing the capabilities of resources such as CPUs
- Horizontal scalability means adding/subtracting the number of resources

[Achievement Link
![Achievement](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sffwclloiho0kb4k22fq.jpg)](Describe the benefits of using cloud services)
Redimensionar imagen, disco qcow2
Tags: disco, imagen, qemu, spanish
Published: 2024-05-12 23:13:30

---
title: Redimensionar imagen, disco qcow2
published: true
date: 2024-04-27 17:25:00 UTC
tags: Disco,Imagen,Qemu,spanish
canonical_url: https://www.ahioros.info/2024/04/redimensionar-imagendisco-qcow2.html
---

Hace unos días me vi en la necesidad de realizar un redimensionamiento en unas máquinas de mi laboratorio, dichas máquinas virtuales se encuentran en .qcow2 de 20G a 30G.

1.Realizar una copia de los archivos antes de hacer algún cambio.
```bash
$ cp miarchivo.qcow2 backup_miarchivo.qcow2
```
2.Vamos a redimensionar el "disco" con el siguiente comando: recuerda poner el tamaño que requieres (30G).
```bash
$ qemu-img resize miarchivo.qcow2 30G
```
3.Otra forma de hacerlo es con diciendole que incremente el tamaño que ya se tiene:
```
$ qemu-img resize disk.qcow +10G
```

Y listo! tu siguiente paso es entrar al sistema operativo y decirle que use el espacio libre nuevo, esto depende de cada Sistema Operativo que estés usando.
History and Evolution of Sports Betting in Africa
Published: 2024-04-27 16:32:48

Betting on sports is not just a way of making money or having fun, it is part of the culture and lifestyle for many people around the world. In Africa, the history of sports betting goes back a long way and is at the center of social activism and entertainment. Let's take a look at how sports betting has become an integral part of African life and how it has moved into the digital age.

Traditional Forms of [Betting Melbet app review](https://melbet-africa.org/ultimate-melbet-app-review-how-to-gamble-on-mobiles/)
In many African cultures, sports betting had its traditional forms long before the advent of digital technology. For example, in some communities, bets could be placed on the outcomes of local sporting events or even on traditional rituals related to harvest or rain. It was a way not only of entertainment but also of social connection and communication.

Influence of Western Cultures and Commercialization
Over time, the influence of Western cultures and the penetration of sports leagues and global competitions led to the commercialization of sports betting in Africa. Soccer, being a national passion for many African countries, has become a particularly popular betting subject. Bookmakers' offices and casinos have sprung up in major cities, offering players the opportunity to bet on their favorite athletes and teams.

Digital Renaissance
However, the real surge in sports betting in Africa came with the advent of digital technology. The internet and mobile apps have changed the landscape of the gambling industry, making betting more accessible and convenient for millions of Africans. Online bookmakers offer a wide range of sports betting options including soccer, basketball, tennis and other sports.

Security and Regulation
With the rise of digital sports betting in Africa, new challenges such as security and legality have also emerged. Uncontrolled operators can lead to problems with gambling addiction and fraud. Therefore, governments and regulators are beginning to take measures to regulate the sector, ensuring safety and protecting the interests of players.

The Future of Sports Betting in Africa
Sports betting will continue to play an important role in the lives of Africans, reflecting their passions and interests. At the same time, the digital renaissance of the industry presents both challenges and opportunities. With the right regulation and innovation in technology, sports betting in Africa can become safer, more convenient and more diverse for millions of players across the continent.
[Self-Study] Microsoft Azure Fundamentals: Describe cloud concepts Module
Published: 2024-04-27 17:04:07

Today, I self-studied a Microsoft Learn module on Microsoft Azure Fundamentals: Describe cloud concepts


[Cloud Module Achievement Link](https://learn.microsoft.com/api/achievements/share/en-gb/TheaSea/ET528F7P?sharingId=FEA7CC64B7C603B)


![Achievement Preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3xokov3efaqljamhjpvb.jpg)
Getting Started with Spring: Exploring Maven and JDBC
Tags: java, learning
Published: 2024-04-27 16:27:15

Hey Dev.to community! Today, I kicked off my journey into Spring development by exploring two essential tools: Maven and JDBC. Here's a beginner-friendly overview:

Maven: Explored the basics of Maven and its role in managing dependencies and project configuration in Java projects. Discussed how to set up a Maven project and add dependencies using the pom.xml file.
JDBC: Introduced the Java Database Connectivity (JDBC) API and its importance in connecting Java applications to databases. Discussed how to establish database connections, execute SQL queries, and handle database transactions using JDBC.
Overall, my exploration of Maven and JDBC has laid a solid foundation for diving deeper into Spring development, and I'm excited to continue learning and building with these powerful tools. Stay tuned for more updates! #SpringFramework #Maven #JDBC #LearningJourney
How to classify monkeys images using CNN , Keras tuner hyper parameters , and transfer learning ? (part1)
Tags: python, convolutional, transferlearning
Published: 2024-04-27 16:18:13


🎥 Image Classification Tutorial Series: Five Parts 🐵
In these five videos, we will guide you through the entire process of classifying monkey species in images. We begin by covering data preparation, where you'll learn how to download, explore, and preprocess the image data. 
Next, we delve into the fundamentals of Convolutional Neural Networks (CNN) and demonstrate how to build, train, and evaluate a CNN model for accurate classification. 
In the third video, we use Keras Tuner, optimizing hyperparameters to fine-tune your CNN model's performance. Moving on, we explore the power of pretrained models in the fourth video, 
specifically focusing on fine-tuning a VGG16 model for superior classification accuracy. 
Lastly, in the fifth video, we dive into the fascinating world of deep neural networks and visualize the outcome of their layers, providing valuable insights into the classification process

Video 1: Data Preparation Tutorial
In this tutorial we will download the dataset , make some data discovery , and prepare the images for the next phase of building the CNN model.

Link for the tutorial is here : https://youtu.be/ycEzhwiAXjY

I shared link for the code in the video description.

Enjoy
Eran

#Python #Cnn #TensorFlow #Deeplearning #basicsofcnnindeeplearning #cnnmachinelearningmodel #tensorflowconvolutionalneuralnetworktutorial
How to pass data from child component to its parent in ReactJS
Tags: reactdatatransfer, reactprops, reactstate, reactcallback
Published: 2024-04-27 16:03:33

Lifting the state up is the process by which React passes data from child to parent components. Following are the steps to pass data from the child component to the parent component:

1. **Define State in Parent Component**: Specify the state that you like to be updated in the parent component in response to an action taken by the child component.
2. **Callback Function Pass Down**: As a prop, a callback function is sent down from the parent component to the child component.
3. **Callback Invocation in Child Component**: In the child component, call the callback function that was sent down from the parent component with the appropriate data to be delivered in response to the desired action (such as a button click).

Here's a simple example to help you understand this:

ParentComponent.js:

```
import { useState } from 'react';
import ChildComponent from './Child';

const ParentComponent = () => {
  const [dataFromChild, setDataFromChild] = useState('');

  const handleDataFromChild = (data) => {
    setDataFromChild(data);
  };

  return (
    <div>
      <h1>Data from Child: {dataFromChild}</h1>
      <ChildComponent sendDataToParent={handleDataFromChild} />
    </div>
  );
};

export default ParentComponent;
```

ChildComponent.js:

```
const ChildComponent = ({ sendDataToParent }) => {
  const sendData = () => {
    const data = 'Data sent from child';
    sendDataToParent(data);
  };

  return (
    <div>
      <button onClick={sendData}>Send Data to Parent</button>
    </div>
  );
};

export default ChildComponent;
```

In this case, clicking the button in the **ChildComponent** initiates the sendData method, which in turn calls the **sendDataToParent** callback function, which receives the data you wish to transfer ('**Data sent from kid**') from the parent component. Following that, the **handleDataFromChild** function within the parent component is called for, As a result updating the state with the data obtained from the child component.
2024-04 My last weeks GitHub contributions
Tags: github, git, opensource
Published: 2024-04-27 16:00:00

I recently started to contribute on open-source projects on GitHub.

Here is the summary of the recent things I made 

_Note: click on arrow to unfold each category_


{% spoiler Some PR about [forgit](https://github.com/wfxr/forgit) improvements %}

{% embed https://github.com/wfxr/forgit/pull/389 %}

{% embed https://github.com/wfxr/forgit/pull/391 %}

{% endspoiler %}


{% spoiler Improved [sphinxdoc tooltip plugin](https://sphinx-tippy.readthedocs.io/en/latest/) extension %}

{% embed https://github.com/sphinx-extensions2/sphinx-tippy/pull/18 %}

{% endspoiler %}


{% spoiler Many code reviews %}

{% embed https://github.com/mfridman/tparse/pull/111 %}

{% embed https://github.com/mfridman/tparse/pull/112 %}

{% embed https://github.com/noborus/ov/pull/522 %}

{% embed https://github.com/noborus/ov/pull/523 %}

{% endspoiler %}


{% spoiler Many PR about typos fixing or installing GitHub actions to validate spellchecking on various repositories %}

{% embed https://github.com/Julien-cpsn/ATAC/pull/4 %}
{% embed https://github.com/Julien-cpsn/ATAC/pull/37 %}
{% embed https://github.com/mfridman/tparse/pull/113 %}
{% embed https://github.com/xhd2015/xgo/pull/21 %}
{% embed https://github.com/pls-rs/pls/pull/99 %}
{% embed https://github.com/wfxr/forgit/pull/390 %}
{% embed https://github.com/patfinder/vsx-shell-command/pull/3 %}

{% endspoiler %}

Follow me on dev.to, follow me on GitHub: [ccoVeille](https://github.com/ccoVeille)
Day 28/366
Tags: 1percentplusplus, 100daysofcode
Published: 2024-04-27 15:58:37

🚀 **Today's Learning:**

🌟 DSA

- Maximum depth of binary tree
- Check if two trees have same structure

🌟 Dev

- Virtual DOM in React

🔍 **Some Key Highlights:**

DSA

To find the maximum depth of a binary tree, you start by checking if the current node is null. If it is, return 0 to indicate the end of the branch. Otherwise, recursively calculate the maximum depth of the left and right subtrees. Return the maximum of these two depths plus 1 to account for the current node. This way, as you traverse each node, you keep track of the maximum depth encountered so far.

To check if two trees have the same structure, you start by checking if both trees are null. If they are, return true to indicate that they have the same structure. If one tree is null and the other isn't, or vice versa, return false as their structures differ. Otherwise, recursively compare the left and right subtrees of both trees. If all corresponding nodes have the same structure, return true; otherwise, return false. This way, you traverse both trees simultaneously and ensure that their structures match at each level.

DEV

In React, the virtual DOM is a lightweight copy of the actual DOM. When changes occur in a React component, instead of directly updating the real DOM, React first updates the virtual DOM. React then compares the virtual DOM with the previous version to identify the minimum number of changes needed. This process, known as reconciliation, allows React to efficiently update the real DOM by only making the necessary changes. By using the virtual DOM, React optimizes performance and provides a simpler programming model for developers, as they can work with a virtual representation of the DOM rather than directly manipulating the actual DOM.