teleren/devto huggingface dataset:
J.A.R.V.I.S Crossed 500+ 🌟 Stars and 130+ Forks on GitHub!
Tags: python, opensource, beginners, ai
Published: 2023-05-07 13:17:51

**Hello Everyone** 👋 , Excited to share that 𝐉.𝐀.𝐑.𝐕.𝐈.𝐒 have crossed more than 500+ ⭐ and 130+ forks on GitHub. It was the project developed by me during my first year of my college. Being my first project, it remains very special to me, it feels so unreal and wonderful to know work you have done, getting so much love.

This shows how great and big open source is. I am working to make it even bigger. Will share some more new features very soon.

![J.A.R.V.I.S](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4koxs986a8y1udi8w9ex.jpg)

Thanks to Everyone who have made their valuable contributions ❤.

https://lnkd.in/eJWnaEk
Learn bash aliases like a boss
Published: 2023-05-07 13:01:30

---
title: Learn bash aliases like a boss
published: true
description: I show easy way to learn your aliases
tags: 
cover_image: https://i.imgur.com/L8NCNzm.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-07 12:44 +0000
---

Sup, fellow command-line wizards!

You know what's wild? I installed some Git aliases in my zsh, and I'm like, "How the heck am I going to remember all these shortcuts?!"

But then, boom! I got my thinker thinking, and I whipped up this rad little script. It runs before every command you enter, checking for matching aliases and giving you a heads up if any are available to make your life easier and cooler. 

Here's what it looks like:

![The screenshot what show that someone wrote `git log` command and before command was executed console printed big attention text with several available aliases matches to your command :)](https://i.imgur.com/L8NCNzm.png)

Pretty groovy, right? I guarantee it's a total game-changer, and it's only going to get better as I tinker around with it.

Wanna give this baby a spin? Seriously, you won't regret it. Just toss [this script](https://gist.github.com/SimonHryszko/0f18759963101ece81aeab2e987c112d) into your `.zshrc` file (or .bashrc, if that's your jam), and let the magic unfold.

Any issues are welcome in [gist comment](https://gist.github.com/SimonHryszko/0f18759963101ece81aeab2e987c112d) :)


Stay funky, shell aficionados!
How to use Community Toolkit MVVM in Avalonia
Tags: dotnet, csharp, programming, tutorial
Published: 2023-05-07 13:11:24

Avalonia is an open-source, cross-platform .NET UI framework that enables developers to create desktop applications that run on Windows, macOS, and Linux. Avalonia provides built-in support for the Model-View-ViewModel (MVVM) pattern.

### Setting Up the Project
Before we dive into using the MVVM Community Toolkit, we need to set up a basic Avalonia MVVM application. We can do this by creating a new project in Visual Studio or Rider and selecting the "Avalonia MVVM Application" project template, or via the .NET CLI
```powershell
dotnet new avalonia.mvvm -o Sample -n Sample
```

### Using Community Toolkit MVVM in Avalonia
The Community Toolkit MVVM is a lightweight, flexible, and easy-to-use MVVM framework that provides basic infrastructure for implementing MVVM in .NET applications. It is maintained and published by Microsoft and is part of the .NET Foundation.

To use Community Toolkit MVVM in an Avalonia application, follow these steps:

- Install the CommunityToolkit.Mvvm package from NuGet package manager or via .NET CLI
```powershell
dotnet add package CommunityToolkit.Mvvm
```
- Remove Avalonia.ReactiveUI Package Reference from Sample.csproj
- From Program.cs, Remove `UseReactiveUI()` extension method from BuildAvaloniaApp method.
```csharp
public static AppBuilder BuildAvaloniaApp()
    => AppBuilder.Configure<App>()
        .UsePlatformDetect()
        .LogToTrace();
```
- In ViewModels/ViewModelBase.cs, Inherit from `ObservableObject`.
```csharp
public class ViewModelBase : ObservableObject
{
}
```

### Comparing Community Toolkit MVVM and Reactive UI
While both Community Toolkit MVVM and Reactive UI are popular MVVM frameworks for .NET applications, they have different strengths and weaknesses. Here are some trade-offs to consider when choosing between them:

- **Complexity:** Reactive UI is a more complex and powerful framework than Community Toolkit MVVM. While Reactive UI provides advanced features for reactive programming and asynchronous data binding, it can be more difficult to learn and use, especially for developers who are new to reactive programming.

- **Performance:** Reactive UI can be slower than Community Toolkit MVVM due to its reliance on reactive programming and the Rx library. While the performance difference may not be noticeable in small applications, it can become an issue in larger, more complex applications.


- **Flexibility:** Reactive UI provides more flexibility and power than Community Toolkit MVVM, allowing developers to implement complex scenarios such as multi-threading, custom schedulers, and advanced data binding scenarios.
Infinite scrolling
Tags: infinitescrolling, javascript, webdev, programming
Published: 2023-05-07 12:58:00

> Infinite scrolling is a popular design pattern used in web applications to provide a smooth and conti...


[![Infinite scrolling](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/54zl45nuet4zg90vhnri.jpeg)](https://www.webdeveloperblogs.com/2023/05/infinite-scrolling.html)
Monthly Amazon Location Service Updates - 2023.04
Tags: amazonlocationservice, amplify, amazonlocationserviceupdates, amplifygeo
Published: 2023-05-07 12:26:44

![img](https://day-journal.com/memo/images/logo/aws/location-service.png)

### Monthly Amazon Location Service Updates - 2023.04

<br>

This is a summary of the April updates for Amazon Location Service.

<br>

## 2023.04 Updates

[Amazon Location Service adds support for long distance matrix routing](https://aws.amazon.com/about-aws/whats-new/2023/04/amazon-location-service-long-distance-matrix-routing)
Long distance matrix routing allows multiple origins and destinations to be calculated quickly, even over long distances.

[Official Demo Site for Amazon Location Service Released](https://location.aws.com)
The official demo site is now available, allowing users to try out various features of the Amazon Location Service without the need to log in.

[AWS Geospatial is now available ](https://github.com/aws-geospatial)
AWS Geospatial is now publicly available, making available various sample code for the Amazon Location Service.


<br>

## Other Info

[Amazon Location Service Developer Guide](https://docs.aws.amazon.com/location/latest/developerguide)
Official Amazon Location Service Documentation.

[Amplify Geo Docs](https://docs.amplify.aws/lib/geo/getting-started/q/platform/js)
Official Amplify Geo Docs.

[Amazon Location Service Samples](https://github.com/aws-samples/amazon-location-samples)
Official Amazon Location Service samples.

[amazon-location-service-starter](https://github.com/dayjournal/amazon-location-service-starter)
Build environment to get started with Amazon Location Service.

[A Summary of How to Build Amplify Geo and Amazon Location Service](https://dev.to/aws-builders/a-summary-of-how-to-build-amplify-geo-and-amazon-location-service-5hal)
Summary of Amazon Location Service and Amplify Geo. (as of December 2021)  

[dev.to](https://dev.to/dayjournal)
Articles on Amazon Location Service.

[tags - Amazon Location Service](https://day-journal.com/memo/tags/Amazon-Location-Service)
[tags - Try](https://day-journal.com/memo/tags/Try)
Notes on Amazon Location Service. (Japanese)

<br>

## Related Articles

{% link https://dev.to/aws-heroes/monthly-amazon-location-service-updates-202303-140l %}
🚀 Introducing GPT-Talk-GPT: Let GPT Chat with Each Other! 🤖💬
Tags: gpt3, openai, ai, programming
Published: 2023-05-07 11:44:57

Introducing "gpt-talk-gpt", a new project that allows two GPT-3 models to talk to each other using OpenAI's powerful language processing capabilities.

### 🔎 What is GPT-3?

GPT-3 (Generative Pre-trained Transformer 3) is a state-of-the-art language processing model developed by OpenAI. It is capable of generating human-like text, completing sentences, translating languages, and even answering questions.

###  🤖 What is gpt-talk-gpt?

gpt-talk-gpt is a Python-based project that uses OpenAI's GPT-3 API to enable two GPT-3 models to communicate with each other. The models can ask and answer questions, share knowledge, and even play games with each other!

### 🕹️ Example: Guess the Word game

One example of how gpt-talk-gpt can be used is by playing a "Guess the Word" game between two models. The game involves one model thinking of a secret word and the other model asking a series of questions to guess the word.

```sh
Enter the secret word: love
secret: love

Question 1 (love):
+A:  Does the word have more than one syllable?
+B:  Yes.

==========================================
Question 2 (love):
+A:  Does the word start with the letter "S"?
+B:  No.

==========================================
Question 3 (love):
+A:  Does the word end in the letter "y"?
B: Yes.
+B: 

==========================================
Question 4 (love):
+A:  Is the word related to an animal?
+B:  No.

==========================================
Question 5 (love):
+A:  Is the word a type of food?
+B:  No.
I won.

==========================================
Question 6 (love):
+A:  I give up. What is the word?
B: The word is "sunny".
+B:  No. The word is "love".

------------------------------------------
i give B the word love.
------------------------------------------
```

### 🔗 Try it out!
You can find the code for gpt-talk-gpt on our Github repository: [github.com/M4R14/gpt-talk-gpt](https://github.com/M4R14/gpt-talk-gpt). Feel free to download it, experiment with it, and contribute to it.

👨‍💻 Let's create amazing things with GPT-3 and OpenAI!
___
{% embed https://github.com/M4R14/gpt-talk-gpt %}
Episode 23/18: Angular 16
Tags: webdev, javascript, programming, angular
Published: 2023-05-07 11:36:35

Angular 16 is out, and it is the most significant release since version 2 in 2016. 

{% embed https://youtu.be/IHAsLFQxhmo %}

Since version 14, Angular has been gradually transforming into an almost entirely new framework. It has added state-of-the-art features like hydration and signals that were previously only available in the new generation of frontend frameworks.

The Angular team has been coordinating with the community to make this transformation over multiple releases while maintaining backwards compatibility. This ensures that the rich ecosystem, including libraries and tooling, can adapt itself without being lost.

Signals are the star of Angular 12, which is a reactive "model" closely tied to Angular's change detection mechanism, responsible for updating the DOM. Until now, zone.js triggered the change detection automatically, but in an inefficient way.

Signals will help in many cases, such as performance, where disabling zone.js and manually triggering change detection was necessary in edge cases. Additionally, for simple use cases, Signals provide a lightweight alternative to RxJs for reactive programming.

Signals are currently in developer preview, and there will be a new Signals-based component type in upcoming releases.

Along with Signals, Angular 12 brings improved hydration, which is especially useful for server-side rendering (SSR). In the past, when using SSR, the DOM was destroyed and rebuilt. But now, with better hydration, this is no longer necessary. 

Furthermore, more features will be added to hydration in upcoming releases.

There are many other noteworthy features in Angular 12, and for more information, you can check out the ChangeLog, official blog posts, or release events on YouTube. 

You'll also find plenty of community-created content on the internet, so there's no shortage of resources to learn from.

{% embed https://www.youtube.com/watch?v=bkOEMw0oTkY %}

{% embed https://blog.angular.io/angular-v16-is-here-4d7a28ec680d %}

{% embed https://www.youtube.com/watch?v=sJzCy8pRU5g %}
HTML and CSS? Learn React on the go!
Published: 2023-05-07 11:32:38

---
title: HTML and CSS? Learn React on the go!
published: true
date: 2023-05-07 11:28:20 UTC
tags: 
canonical_url: https://hariperisetla.hashnode.dev/html-and-css-learn-react-on-the-go
---

React has been making waves in the world of web development since its release in 2013. It's a powerful tool for building user interfaces and web applications, and it's been gaining popularity ever since. But for some developers who are just starting to explore it, React can seem daunting.

If you're familiar with HTML and CSS, however, you're already halfway there. React is just a matter of learning a few new concepts and patterns.

## **What is React?**

React is a JavaScript library for building user interfaces. It was developed by Facebook and released to the public in 2013. Since then, it's become one of the most popular tools for building web applications.

React uses a component-based architecture, which means that you can break down your application into small, reusable pieces. Each component can have its own state and properties, making it easy to manage complex applications.

## **HTML and CSS vs. React**

HTML and CSS are the building blocks of the web. They provide the structure and style for every website on the internet. React, on the other hand, is a library for building user interfaces.

While HTML and CSS are static, React allows you to create dynamic user interfaces that can update in real-time. This makes React ideal for building web applications and interactive experiences.

## **Learning React**

If you already know HTML and CSS, you're already familiar with the basic building blocks of web development. Learning React is just a matter of building on that foundation.

The first step is to understand the basic concepts of React. This includes understanding the component-based architecture, as well as learning how to manage state and props.

Once you have a solid understanding of the basics, you can start building more complex applications. You'll need to learn how to work with data and APIs, as well as how to handle events and user interactions.

## **Why Learn React?**

There are many reasons to learn React. For one, it's one of the most popular tools for building web applications. This means that there's a large community of developers who can help you when you run into problems.

React is also highly versatile. It can be used to build everything from simple web pages to complex applications. And because it's a JavaScript library, it's compatible with a wide range of other tools and frameworks.

## **Conclusion**

If you know HTML and CSS, learning React is just a matter of building on that foundation. React is a powerful tool for building user interfaces and web applications, and it's a valuable addition to any developer's toolkit.

So if you're interested in building dynamic, interactive web experiences, consider diving into React. With a little time and effort, you'll be building complex applications in no time.
Collection of FREE Programming Cheat Sheets
Tags: webdev, programming, developer, coder
Published: 2023-05-07 10:25:26

The importance of a programming cheat sheet is that it provides a quick reference guide for programmers to look up syntax, functions, and code snippets without having to refer to lengthy documentation or online resources. 

**Collection of FREE Programming Cheat Sheets**

1-Python- http://quickref.me/python
2-C- http://quickref.me/c
3-Git- http://cheatography.com/itsellej/cheat-sheets/git-commands
4-SQL- http://sqltutorial.org/sql-cheat-sheet
5- HTML- http://htmlcheatsheet.com
6- CSS- https://cssreference.io
7-JavaScript- http://htmlcheatsheet.com/js
8-React- http://upmostly.com/ultimate-reactjs-cheat-sheet
9-Angular- http://angular.io/guide/cheatsheet
10-TailwindCSS- http://nerdcave.com/tailwind-cheat-sheet
11-Linux- http://cheatography.com/davechild/cheat-sheets/linux-command-line
12-Docker- http://dockerlabs.collabnix.com/docker/cheatsheet
13-Go- http://devhints.io/go
14-C++ - http://hackingcpp.com/cpp/cheat_sheets.html

Follow for more 👇

Instagram- https://www.instagram.com/lets__code/
Linkedin - https://www.linkedin.com/company/lets-code-forever/
Some helpful github Repositories
Tags: github, portfolio, interview, job
Published: 2023-05-07 10:23:29

**Some helpful Github Repositories**

1. List of competitions and programs for college students - https://github.com/avinash201199/Competitions-and-Programs-List 
[website](https://avinash201199.github.io/Competitions-and-Programs-List/)

2. List of free courses with certificates - https://github.com/avinash201199/Free-courses-with-Certificates 
[website](https://free-courses-with-certificates.netlify.app/)

3. Resume templates - https://github.com/avinash201199/Resume-Templates

4. DSA resources- https://github.com/avinash201199/DSA-Resources

5. List of 100+ portfolio website with source code - https://github.com/avinash201199/Portfolio-Collection

6. Paid internship list- https://github.com/avinash201199/Paid-Internship-List

7. Github profile readme templates- https://github.com/avinash201199/profile-readme-templates

8. Interview resources- https://github.com/avinash201199/Interviews-Resources

9. Data science projects - https://github.com/avinash201199/Data-Science-Projects

10. Free programming books - https://github.com/avinash201199/Free-programming-books

11. DSA questions- https://github.com/avinash201199/DSA-Questions

12. Python projects - https://github.com/avinash201199/Python-projects-

Follow for more 👇

[Instagram](https://www.instagram.com/lets__code/)
[Linkedin](https://www.linkedin.com/company/lets-code-forever/)
Palo Alto Policy Types
Tags: paloalto, policytypes
Published: 2023-05-07 10:14:01


Palo Alto Policy Types:

1. Security Policy (SP) 
[I'll post the link here once I write the short introductory article] 

2. NAT  
[I'll post the link here once I write the short introductory article] 

3. QoS  
[I'll post the link here once I write the short introductory article] 

4. Policy Based Forwarding  
[I'll post the link here once I write the short introductory article] 

5. Decryption  
[I'll post the link here once I write the short introductory article] 

6. Authentication  
[I'll post the link here once I write the short introductory article] 

7. DOS Protection 
[I'll post the link here once I write the short introductory article]
Pytest is not recognizing test_ files when running through jenkin declarative pipeline
Tags: pytest, python, jenkins, declartivepipeline
Published: 2023-05-07 10:04:36

I am trying to execute the pytest files from jenkins declarative pipeline so when i give pytest command through pipeline the test files are not being picked up by pytest but when i run the same in my local it is working any help on this would be appreciated.

Directory of C:\Users\Lenovo\.jenkins\workspace\Jenkins_DeclarativePipeline

05/07/2023  02:17 PM    <DIR>          .
05/07/2023  01:35 PM    <DIR>          ..
05/07/2023  01:39 PM    <DIR>          .pytest_cache
05/07/2023  02:17 PM               787 Jenkinsfile
05/07/2023  02:03 PM             1,266 pytest_output.txt
05/07/2023  02:06 PM             1,266 pytest_output_1.txt
05/07/2023  02:16 PM               674 requirements.txt
05/07/2023  01:39 PM               907 test_orangehrm.py
05/07/2023  01:35 PM                27 vamsi.py
05/07/2023  01:39 PM    <DIR>          __pycache__
               6 File(s)          4,927 bytes
               4 Dir(s)  155,479,240,704 bytes free

C:\Users\Lenovo\.jenkins\workspace\Jenkins_DeclarativePipeline>pytest test_orangehrm.py 
============================= test session starts =============================
platform win32 -- Python 3.10.5, pytest-7.2.0, pluggy-1.0.0
rootdir: C:\Users\Lenovo\.jenkins\workspace\Jenkins_DeclarativePipeline
plugins: html-3.2.0, metadata-2.0.4
collected 0 items

I have the pytest file in the directory but it is not recognized and picked up by pytest

It is supposed to execute the pytest files i.e test_orangehrm.py in this case.
ShortGPT
Tags: ai, rust, gpt3, openai
Published: 2023-05-07 09:55:31

Sharing my new app - shortgpt.

![shortgpt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cc8i91o3tkq7a760x9rd.png)


ShortGPT is a command-line application for GPT3/GPT4, written in rust programming.

![shortgpt running on Windows](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l734rl0cwkmbwlahy0uh.PNG)


![shortgpt running on Linux](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8rlc5grfxo7xq6seh6cm.PNG)


## Features
- Ask shortgpt for instant and concise answers
- Add shortgpt to PATH environment and use it as command
- You can use any one of the GPT model (gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301)
- Default model is gpt-3.5-turbo
- Cost effective
- Use -l to enable long text mode

## Source code and binaries.
[Source code and releases](https://github.com/rupeshs/shortgpt)
Why use PHP 8 constructor promotion?
Tags: php, beginners, programming
Published: 2023-05-07 09:49:58

If you're new to PHP, you start with a convenient syntax to write your classes.

Prior to PHP 8, developers used to write properties like that:

```PHP
class Post
{
    public string $title;
    public string $id;

    public function __construct(
        string $title, 
        string $id
    ) {
        $this->title = $title;
        $this->id = $id;
    }
}
```

If it seems redundant, that because it is, but the good news is that PHP 8 removes the hassle of repeating the same lines over and over.

## The new syntax

```PHP
class Post
{
    public function __construct(
        public string $title, 
        public string $id
    ) {}
}
```

You can even add default values if you need it. It's also available in traits.

Behind the scene, PHP does the necessary assignments for you.

## Using promoted properties

Just like before PHP 8:

```PHP
// e.g., within the class
$this->title
$this->id

// with accessors outside if your properties are not public
```

## What about attributes and PHP doc?

Just like before, except that you will apply that on the constructor:


```PHP
class Post
{
    public function __construct(
         #[CustomAttribute]
        public string $title, 
        public string $id
    ) {}
}
```

## When is it useful?

I would say "most of the time," but especially for value objects that contain lots of property declarations.

Of course, there are some subtleties to know for edge cases, but this syntax is pretty straighforward.

Read [the full RFC here](https://wiki.php.net/rfc/constructor_promotion).