teleren/devto huggingface dataset:
What Is the Idea Behind the ASP.NET Core Web API?
Tags: webdev, javascript, beginners, programming
Published: 2022-11-28 10:04:20

## What is ASP.NET Core?

The open-source and cross-platform version of the well-known web development framework ASP.NET for creating web applications on the .NET platform is called ASP.NET Core.

## What is Web API?

Let's first examine what an API is before learning about web APIs (Application Programming Interface).

An application programming interface (API) is a collection of subroutine definitions, protocols, and tools used in computer programming to create software and applications.

API, which stands for application programming interface, is a type of interface with a collection of capabilities that enables programmers to access particular features or data of an application, operating system, or other services.

As the name implies, a web API is an API that can be accessed using the HTTP protocol. It is not a technology; it is a concept. We can build Web API using different technologies such as NodeJS, Java, .NET etc. For example, LinkedIn's [REST APIs](https://learn.microsoft.com/en-us/linkedin/) provide programmatic access to read and write data, using which we can integrate LinkedIn's capabilities into our own application. 

## What is ASP.NET Core Web API?

An extensible framework for creating HTTP-based services that can be accessible in various applications on various platforms, including web, Windows, mobile, etc., is the ASP.NET Core Web API. With the exception of sending data as a response rather than an HTML view, it functions essentially in the same way as an ASP.NET Core MVC web application. The only difference between it and a webservice or WCF service is that it only supports the HTTP protocol.


![Screenshot of how asp.net webapi works](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tt7s4qwsxsgliws4dtie.png)


## ASP.NET Core Web API Characteristics

- Building RESTful services on top of the ASP.NET Core Web API is highly recommended.

- Built on top of ASP.NET Core, ASP.NET Core Web API supports the ASP.NET Core request/response pipeline.

- Different return data types are supported by the ASP.NET Core Web API. JSON, XML, and BSON format support is built-in.

- ASP.NET Core Web API maps HTTP verbs to method names.


- ASP.NET Core Web API can be hosted in IIS, Self-hosted or other web server that supports .NET 4.0+. 

- ASP.NET Core Web API framework includes new HttpClient to communicate with Web API server. HttpClient can be used in ASP.NET Core MVC server side, Windows Form application, Console application or other apps.

Thanks for reading...
**Happy Coding!**
Getting Started with the Blazor Dashboard Layout Component
Tags: blazor, webdev, csharp, dotnet
Published: 2022-11-28 09:53:52

Learn how easily you can create and configure the Syncfusion Blazor Dashboard Layout Component in a Blazor WebAssembly app. This video explains how to create a dashboard layout with multiple panels. You will also see how to configure the structure of the layout using Columns, SizeX, and SizeY properties and how to interact with the dashboard layout dynamically using drag and drop, and resizing features. 

Product overview: https://www.syncfusion.com/blazor-components/blazor-Dashboard

Explore our tutorial videos: https://www.syncfusion.com/tutorial-videos

Example Project: https://github.com/SyncfusionExamples/getting-started-with-the-blazor-dashboard-layout-component

{% youtube K6i0KU7tbLQ %}
Garden ideas with pots and gravel
Published: 2022-11-28 09:23:08

Want eco-friendly garden ideas that can stay with you for a long time? Well, great for you as we’ve created a guide that will help you use gravel for ideas. 
 
Here’s our guide on [garden ideas with pots and gravel](
https://gardenhomelife4u.com/gardening/garden-tips-garden-ideas-with-pots-and-gravel-2021/) that you can read for your home garden.
Survive AWS re:Invent by avoiding the worst air in Vegas — now with maps!
Tags: aws, reinvent, health
Published: 2022-11-28 09:11:08


Indoor air quality is underrated as a factor in health, but has received renewed attention recently due to the airborne spread of COVID-19. My first job out of school was in air pollution modeling, and I spent years studying environmental engineering. Apparently all of my time in tech made me forget that good stuff, so I headed straight into the smoke.

At my first AWS re:Invent conference in 2013, I delivered two breakout sessions, talked to so, so many people, spent lots of time walking through and in smoky casinos, and ended up sick for the entire month after. I coughed and coughed, and you don't want to see what came out of my nasal passages. Since then I've figured out how to avoid the nasty, smoky air that is the casino miasma, making the next 7 re:Invents that I've been to far more enjoyable.

Here's how you can avoid the worst of the Vegas air, in the Venetian/Palazzo casinos. The key to avoiding the casino area is to stay on the second floor--the mall and canals area--but figuring out how to stay there can be tricky.

I've annotated these maps to help you out!

1. From the Venetian towers to the Sands conference center
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/luqfh8gcc471yxesfp52.jpg)

2. From the Palazzo towers to the Sands conference center
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jytt1os03bp77fmighoc.jpg)

3. From outside there are a few options--if you're near the north end you can walk directly to the basement floor entrance of the Sands (rideshare area) and avoid all of this. Then take escalators up to the Expo area. From the various front entrances of the Venetian, enter and find your way to the second floor ASAP.

If you get lost, well, you're not alone! The Venetian/Palazzo/Sands is the largest hotel complex in the country, and casino resorts are notorious for being designed to be confusing mazes.

Most other resorts/casinos also have similar paths for avoiding smoky gambling areas. Seek these out, save your lungs. Even if you live with smokers, you'll still be better off avoiding these areas as much as possible.

If you'll be at re:Invent this year, drop me a line and let's chat! 

[shandrew has moved his social media presence to https://hachyderm.io/@shandrew ]
Beginning JavaScript: A Complete Guide For Beginners
Published: 2022-11-28 08:58:11


Hi, my name is **Ahumuza Julius Ceasar**. I am a student doing B.Tech and also currently learning web development. After a year of learning, I have decided to help and teach other newbies trying to dive into the technology. My main area of focus will be JavaScript as it is a good language for beginners to learn. So Please be able to follow my weekly blogs course on mastering JavaScript from beginner to a level I will call advanced. Let’s get started.

**What is JavaScript?**
**JavaScript** is a programming language that allows you to implement complex features on web pages . Among these include creating interactive websites, 2D and 3D graphics on a web page. JavaScript is better used along side HTML and CSS. I will assume that you have basic HTML and Css knowledge. But if you are not it would be better taking beginner courses on Free code Camp or W3C schools. A short disclaimer: JavaScript is not Java. 

**
Required Software:**
- Install Google Chrome
-Install Vs Code Or Sublime
*I will be using Vs code for this crash course
**
How To add JavaScript in an HTML file:**
-Open Vs code and create a folder
-create two files in in the folder
-One of the files named index.html and another main.js

After creating the two files add the following code snippets in those files

a**)Index.html**

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

**
What’s happening Here:**
-We created our HTML file and on line (14) we linked our external javaScript file called main.js

b)_** JavaScript file**_
Add the following code in your main.js file

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cqoipehxnbf30zeemwb5.png)
What’s happening Here:
 -We would like to display output in the console of our web browser.

**Next Steps**
-Save the two files
-Open the index.html file in your favorite browser
-Write click in the blank web page
-Choose inspect
-Go to console

You should the following output if it was successful. Congratulations, You just created your first JavaScript Program.


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


Thank You for following along, I hope this was quite helpful to some struggling beginner. I hope to cover more sections of JavaScript. Follow me on twitter **@ahumuza_ceasar**
Build side projects instead of tutorials
Tags: beginners, webdev, programming
Published: 2022-11-28 08:54:52

## Why building side projects is a better way to learn programming than following tutorials.

You want to get into programming and you started by following tutorials. They are fine in the initial days, when you are just starting out. But after you get comfortable, you have to start building projects to see more benefits.

### Here are a few reasons why building side projects is better
- When you build projects, you learn by doing and you gain practical experience that can't be gained by following tutorials.
- Building projects also forces you to think creatively and solve problems on your own, which is an essential skill for any programmer.
- By contrast, tutorials can often be too simplistic or too specific, and they don't always give you a chance to practice your skills in a real-world context.
- Projects also tend to be more engaging and enjoyable than tutorials, so you'll be more motivated to stick with them (and learning programming) in the long run.
- Building projects, leaves room for self exploration and fosters creativity.

### Benefits of side projects.

- Working on side projects can help you learn new programming concepts and sharpen your skills.
- Completing a side project can give you a sense of accomplishment and boost your confidence.
- Working on side projects can help you explore different programming languages and tools.
- Side projects can also be a great way to land your dream job or get freelance clients.
- You have something to show in a job interview.

### How to get started with building your own projects.

- Start small. You can build simple projects at first.
- Find inspiration for projects from things you're interested in or want to learn more about.
- Try to automate a manual workflow that you do everyday.
- Use online resources and Google searches to help you figure out how to build what you want.
- Build a tool that you want for yourself if it doesn't exist already. 


Are you still stuck with tutorials? Now is the time to go build something. Do you need help, feel FREE to DM me on [Twitter](https://twitter.com/SDinesh91).
How to access filtered elements in angular pipe
Tags: angular, html, codever, snippets
Published: 2022-11-28 08:49:18

To access the filtered results of the pipe just define it as a variable via the `as` keyword 

```
*ngFor="let bookmark of bookmarks | bookmarkFilter: filterText as filteredBookmarks"
```

In the full example the `bookmarkFilter` pipe filters the list of bookmarks based on some text search. Further I need to check whether the filtered results contain only one element `[showMoreText] = "filteredBookmarks.length === 1 "`, to then display the full content of the bookmark:

```html
<div class="mt-3" *ngFor="let bookmark of bookmarks | bookmarkFilter: filterText as filteredBookmarks">
  <app-bookmark-list-element
    [showMoreText] = "filteredBookmarks.length === 1 || bookmarks.length === 1"
    [bookmark]="bookmark"
    [userData$]="userData$"
    [queryText]="queryText"
    [filterText]="filterText"
    [isSearchResultsPage]="isSearchResultsPage"
  >
  </app-bookmark-list-element>
</div>
```

See it in action at [www.codever.land](https://www.codever.land):


![filter-bookmarks-results-expanding](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36n25qkbsd8laa370u7v.gif)

<hr>
The source code for [Codever](https://www.codever.land) is available on [Github](https://github.com/codeverland/codever)

<hr/>

> Shared with :heart: from [Codever](https://www.codever.dev/snippets/63806e79944cbd1faacdda84/details). Use :point_right: [**copy to mine**](https://www.codever.dev/snippets/63806e79944cbd1faacdda84/details) functionality to add it to your personal snippets collection.
Pub Sub model in golang
Tags: go, programming, github, tutorial
Published: 2022-11-28 08:42:32

created a basic pub-sub model in GO
please go thru it and let me know if any mistakes/suggestions etc

```
package main

import (
	"context"
	"fmt"
	"math/rand"
	"time"
)

var Subscribers map[string]chan interface{}

// init empty subscribers
func init() {
	Subscribers = make(map[string]chan interface{})
}

type SubscriberClient struct {
	Name string
	Ch   chan interface{}
}

func main() {

	// register clients to subscribe
	subscriberOne := RegisterClient("one")
	subscriberTwo := RegisterClient("two")

	ctx := context.Background()
	
	// initiate subscribers 
	
	// set timeout to exit the subscriber 1
	ctx, cfunc := context.WithTimeout(ctx, time.Second*12)
	
	// it will send the signal to subscriber to exit
	defer cfunc()
	go subscriberOne.sub(ctx)
	
	// set timeout to exit the subscriber 2
	ctx, cfunc2 := context.WithTimeout(ctx, time.Second*8)
	defer cfunc2()
	go subscriberTwo.sub(ctx)

	// initiate publisher

	// set timeout to exit the publisher
	ctx, cfunc3 := context.WithTimeout(ctx, time.Second*6)
	defer cfunc3()
	go pub(ctx)

	// i am just keeping ticker to send events only for 6 seconds after that it will exit the main
	// else based on use case publisher can handle this . if you are implementing this in
	// API's then no need for ticker because publisher will run until program exists
	select {
	case <-time.Tick(time.Second * 13):
		fmt.Println("main exiting")
		break
	}
}

// it will return subscriber client with name and channel to read
func RegisterClient(name string) *SubscriberClient {
	// for async we  use buffered channels
	// for sync we use unbuffered channels
	ch := make(chan interface{}, 4)

	// store it channel in our global producer list
	Subscribers[name] = ch

	// return the channel to subscriber so they can read from it
	return &SubscriberClient{Name: name, Ch: ch}
}

func pub(ctx context.Context) {
	for {
		select {
		//when to stop condition (publisher need to handle this ...)
		case <-ctx.Done():
			fmt.Println("publisher exiting")
			return

		// it will publish messages every 2 seconds
		// other way we can keep constraints when to publish
		case <-time.Tick(time.Second * 2):
			publishToAllConsumers(rand.Int())
		}
	}
}

// subscriber
func (s *SubscriberClient) sub(ctx context.Context) {
	for {
		select {
		//when to stop condition (subscriber need to handle this ...)
		case <-ctx.Done():
			fmt.Println(s.Name, "exiting")
			return
		case x := <-s.Ch:
			fmt.Println(x, " value from ", s.Name, " subscriber")
		}
	}
}

// it will publish all registered subscribers (implemented TC:-O(N)// we can enhance it further....)
func publishToAllConsumers(data interface{}) {
	for k, v := range Subscribers {
		fmt.Println("sending data to ", k)
		v <- data
	}
}

```

please follow medium for interesting things {% embed https://medium.com/@tejasai651 %}
cours de japonais
Published: 2022-11-28 08:31:12


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/afo7qrrxyp1vwpkcnq7q.png)
Apprenez le japonais en ligne où que vous soyez grâce à nos cours flexibles, abordables et interactifs. 
Nous avons une variété de cours pour tous les niveaux d'étudiants, 
de ceux qui débutent à ceux qui étudient depuis de nombreuses années.

 Nippon spirit Apprendre le japonais Le cours en ligne est le meilleur moyen d'apprendre le japonais. La série Web de ce cours
vous enseigne les bases de la langue japonaise de manière simple et amusante.


Apprenez le japonais avec le [cours de japonais en lign](http://nihongospirit.fun/)e  le plus populaire. Vous apprendrez des phrases et des expressions japonaises, 
des salutations, la culture japonaise et comment écrire l'alphabet japonais.
A brief introduction to Message Queue
Tags: systems, messagequeue, beginners, tutorial
Published: 2022-11-28 08:29:34

A message is data used when two or more parties interact. A queue is a line of things in a sequence — waiting to be looked at. Hence, a message queue is a sequential line of messages sent between applications. For a formal definition, a message queue is an asynchronous service-to-service communication used in serverless and microservices architectures. When the system is large, multiple microservices run across it and communication becomes messy. To solve the problem, a separate system — Message Queue is implemented for data communication.

The most common example of a message queue is Apache Kafka, and some others are Amazon SQS, Apache RocketMQ, JORAM, and RabbitMQ. Typically, we publish our data or the messages in them and they will automatically notify the user with data.

## Characteristics of a message queue

- Messages are stored in the queue by the producer until it is processed by the user and then deleted.

- Each message is processed once by a single user.

- Queues can be used for fault tolerance as well. If there is a service outrage, the requests can be re-tried.

- A message queue can decouple heavyweight processing, provide a lightweight buffer, batch work, or smooth the spiky workloads. The applications of modern cloud architecture are decoupled into small independent building blocks. This way, they are easy to develop, deploy, and maintain. The message queue is responsible for the communication and coordination of these distributed applications.

## Way of communication with message queue (step-by-step)

- Either create a message queue or connect to an existing one.

`msgget()`

- Write in the queue.

`msgsnd()`

- Read from the queue.

`msgrcv()`

- Perform control operations on the queue.

`msgctl()`

## Advantages of the message queue

- Communication protocols are not required.

- It can be used to quickly build new applications by reusing the building blocks.

- Improved performance

- Reliability

- Scalability

- Easy decoupling

- Rate limiting

## Conclusion

The data under the message queue are generally small and can be in any form — requests, replies, error messages, or plain information. The message stays until the user retrieves it and does something with it. Since a single message can be processed only once by a single user, a message queue is also known as “one-to-one” or “point-to-point” communications. If there is a case where the message needs to be processed by more than one user, the message queue is combined with [Pub/Sub messaging](https://dev.to/pragyasapkota/messaging-and-pubsub-1aj9) in a fanout design pattern.

**_I hope this article was helpful to you._**

**_Please don’t forget to follow me!!!_**

**_Any kind of feedback or comment is welcome!!!_**

**_Thank you for your time and support!!!!_**

**_Keep Reading!! Keep Learning!!!_**
Why Become a Full Stack Developer
Tags: fullstack, webdev, beginners
Published: 2022-11-28 08:17:36

Hey folks,
Do you want to or are you intending to become a full-stack developer? Are you unsure of the right path? If you fall into such a category, watch this video. I'm sure that all of your questions will be answered.
{% embed http://bit.ly/3u48Vov %}
Monsters the Book, Students Edition
Tags: book, students, monsterthebook, books
Published: 2022-11-28 08:16:20

Monsters the Book, Students Edition


[Monsters the Book](https://www.classesplace.com/2022/11/Monsters-the-Book-Students%20Edition.html)


Monsters the Book, Students edition is an exciting new version of the classic children’s story about monsters who live under our beds. It includes over 100 monsters from around the world, including some scary ones like vampires, werewolves, ghosts, and more!

Monsters the Book, Students Edition is a fun way for kids to learn about different cultures and countries while having fun at the same time.



[The Cat and the Fox || Story](https://www.classesplace.com/2020/08/the-cat-and-fox-story.html)

The book has been updated with new illustrations and a new introduction by author John Green.
This book was originally published in 2003 as part of the “Monsters Under My Bed” series. In 2004, it won the Newbery Medal, one of the highest honors given out by the American Library Association. Since then, it has sold millions of copies worldwide.



Monsters, Inc. is a children’s story about two kids who work at Monsters, Inc., a company that makes monsters for movies. When Sully (the main character) and Mike (his best friend) accidentally open a portal into the real world, they find themselves face-to-face with some very scary creatures. Luckily, they soon learn that there are rules to follow if they want to stay safe from the monsters.



In the original version of Monsters, Inc., published in 2001, the characters were voiced by Billy Crystal and John Goodman. Since then, the movie has become one of Pixar’s most popular films, grossing $1 billion worldwide. And now, the book has been updated with a new introduction by author and screenwriter John Green. He explains why he thinks Monsters, Inc. is such a special film and shares his thoughts on what it means to be a writer.



[What is Educational Technology in 2022 and How It Can Benefit Students](https://www.classesplace.com/2022/11/what-is-educational-technology-in-2022.html)

There's also a new chapter called "The Monster Who Lived Under My Bed" which introduces kids to the idea of monsters living under their beds.
This updated version includes over 100 monsters from across the globe, including some scary ones such as vampires, werewolves, zombies,[ and more!](https://www.classesplace.com/2022/11/Monsters-the-Book-Students%20Edition.html)
How to Choose the Fastest Amazon Repricer
Tags: repricer, asinwiser, repricing, amazonfba
Published: 2022-11-28 08:06:02

Choosing the fastest Amazon repricer is a crucial decision for online businesses. The tool should be fast enough to react to changes in the Amazon offers page. The faster it does, the higher your chances of making a sale. There are many different types of repricing tools available, and each has its own benefits and drawbacks.

The most popular type of repricing tool is the algorithmic one. These repricers use predictive algorithms to monitor the competition and make decisions for you. They're easy to use, and are a great way to give your Amazon business a competitive edge. But they can also create aggressive price wars.

A new entry to the [Amazon repricer](https://www.asinwiser.com/repricer/) scene is Aura. The tool promises to make repricing easy by using artificial intelligence. It also boasts powerful features and quick customer support response times. It offers a 14-day free trial. It's a good option for sellers who have a lot of items.

Another repricing tool is Wiser. It offers great customization and includes a predictive Buy Box algorithm. It can target specific sellers and exclude competitors. It also calculates what price you can charge to stay in the Buy Box. This is a great feature for Amazon sellers who are trying to win the Buy Box.

Another popular repricing tool is Repricer Express. It offers more features than other repricing tools. It's suitable for Amazon businesses with a lot of SKUs. It also allows sellers to create their own templates and strategies, and includes shipping charges.