teleren/devto huggingface dataset:
What is the difference between ABCD Index and Scopus
Tags: webdev, research, machinelearning, learning
Published: 2023-09-05 12:41:54

**[ABCD Index ](https://abcdindex.com/blogs/how-to-publish-research-paper-in-international-journal-free)**and Scopus are both indexing platforms that provide a list of journals that meet their criteria for quality and relevance. However, there are some differences between the two platforms: 

ABCD Index:

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

ABCD Index is a free platform for journals, authors, and readers.
The platform monitors journals through automated programs, reviewer teams, and feedback from authors.

The platform provides complete details about the journal, including publisher name, number of issues, year of establishment, indexing information, web address, and citation of the journal.

The platform also provides a rating of the journal based on the current indexing dataset, review time, transaction transparency, citation of the journal, papers, etc.

[ABCD Index invites journals](https://homment.com/QJmh3MFpGz31TfWizJoz) to sign up and submit their journal to get indexing at ABCD Index platform and increase the reach of journals around the globe between the authors community.

Scopus:

Scopus is a paid indexing platform that provides a comprehensive database of scientific, technical, medical, and social science literature.

Scopus uses a complex algorithm to evaluate the quality and relevance of journals based on citation data, peer review, and other factors.

[Scopus provides a list of journals](https://webdigitalweb.com/how-to-publish-a-research-paper-in-international-journal/) that meet their criteria for quality and relevance, including information on the journal's impact factor, h-index, and other metrics.

Scopus also provides tools for researchers to track citations, analyze research trends, and collaborate with other researchers.

In summary, while both [ABCD Index](https://abcdindex.com/blogs/free-online-academic-journals) and Scopus provide a list of indexed journals, ABCD Index is a free platform that focuses on monitoring journals through automated programs, reviewer teams, and feedback from authors, while Scopus is a paid platform that uses a complex algorithm to evaluate the quality and relevance of journals based on citation data, peer review, and other factors.
Does magento 2.4 has build-in mechanisms for xss prevention or should I use my own?
Tags: php, webdev, magento
Published: 2023-09-05 12:25:09

I made my own adminhtml form as I post upon:
https://magento.stackexchange.com/q/369583/113388

But I wonder should at my model impements my own anti-xss measures or magento has their own mechanisms already implementes (like before calling the controller upon sumbission) ?
This is a rock paper scissors project made by me in languages JS,HTML AND CSS
Published: 2023-09-05 12:18:38

[Check out](https://github.com/ShivamGupta-yo/Rock-Paper-Scissors)

Welcome to the Rock, Paper, Scissors game! This simple web-based game is implemented using HTML, CSS, and JavaScript. Test your luck and strategy against the computer in this classic hand game.

**Getting Started**
To play the Rock, Paper, Scissors game, follow these steps:

Clone this repository to your local machine or download it as a ZIP file.
https://github.com/ShivamGupta-yo/Rock-Paper-Scissors.git

Open the index.html file in your preferred web browser.

Enjoy the game!

**How to Play**
Playing Rock, Paper, Scissors is easy:

Click on one of the three hand symbols (Rock, Paper, or Scissors) to make your choice.

Rock-button Paper-button Scissors-button

The computer will randomly select its choice.

The winner is determined according to the following rules:

- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
- If both you and the computer choose the same option, it's a tie!
- The game will display the result, update the scores, and you can play again.

**Features**
Simple and intuitive user interface.
Realistic hand symbols for Rock, Paper, and Scissors.
Random computer selections for a fair game.
Keeps track of the score to see who is winning.

**Contributing**
Contributions to this Rock, Paper, Scissors game are welcome! If you'd like to contribute, please follow these steps:

Fork the repository.

Create a new branch for your feature or bug fix.

git checkout -b feature-name ]

Make your changes and commit them with a descriptive commit message.

git commit -m "Add feature or fix bug"

Push your changes to your fork.

git push origin feature-name

Create a pull request to the main branch of this repository.

We appreciate your contributions!

**License**

Write Now this game is not licensed, so keep enjoying!

Enjoy the game, and have fun playing Rock, Paper, Scissors! If you have any questions or suggestions, please feel free to open an issue or reach out to us. Thanks for playing!
Interfaces or abstract classes?
Tags: php, beginners, programming
Published: 2023-09-05 12:04:47

Working with objects can be tough sometimes, especially when you don't know which structure you need to use.

For example, both abstract classes and interfaces can force other classes to implement some methods.

## Interfaces are "contracts"

Classes that implement an interface **must** implement its methods.

For example, you can ensure classes that aim to log data have the appropriate methods and behaviors.

This way, you can safely use some methods in your code, as the class implements the interface that defines the desired behavior.

Whether the term "contract" is the best one to describe interfaces is another debate. 

The problem here is to know when you should probably use an interface instead of an abstract class, and vice versa.

## Method signatures only?

Both interfaces and abstract classes can contain method signatures that must be implemented by classes that use them.

```PHP
interface LoggingInterface
{
    public function warning($message, array $context = array()): void;
}

abstract class Logging
{
    abstract public function warning($message, array $context = array()): void;
}
```

Both structures cannot be instantiated and must be implemented (interfaces) or extended (abstract classes). However, interfaces cannot have properties and functionalities (~ methods with a body).

## What's the difference, then?

PHP classes can implement several interfaces, but it's not possible to extend multiple classes.

IMHO, this is the key to understand when you should use interfaces or abstract classes.

If you need to pass some functionalities (not abstract) and properties to a group of classes, abstract classes can be beneficial. If you only want to ensure your classes will implement a specific behavior, use interfaces.

In our example above, an interface seems more appropriate, and it's not just to ensure the `warning()` method will be implemented with a specific signature.

## Use both structures to improve your code

Whether you use interfaces or abstract classes, it's usually a better approach than classic extends or big switch cases.

The code should also be more readable, as you can cut lots of `if` conditions and prevent unnecessary repetitions.

Of course, it's still possible to write bad code, but these structures can help you find your way.

Interfaces and abstract classes are very similar, but an abstract class is like a base code for your objects that can provide default implementation, so the classes that extend them are usually related.

In contrast, interfaces focus on behaviors and can group unrelated classes.
How Do Large Language Models Work?
Tags: discuss, llms, gpt3, promptengineering
Published: 2023-09-05 12:04:24

**Input Encoding:** When you provide a text prompt or query, the input text is first tokenized into smaller units, typically words or subwords. Each token is then converted into a high-dimensional vector representation. These vectors capture semantic information about the words or subwords in the input text.

**Model Layers:** The transformer architecture consists of multiple layers of self-attention mechanisms and feedforward neural networks. Each layer processes the input tokens sequentially, refining the model's understanding of the text.

**Stacking Layers:** These layers are typically stacked on top of each other, often 12 to 24 or more layers deep, allowing the model to learn hierarchical representations of the input text. The output of one layer becomes the input to the next, with each layer refining the token representations.

**Positional Encoding:** Since the Transformer architecture doesn't have built-in notions of word order or position, positional encodings are added to the input vectors to provide information about the position of each token in the sequence. This allows the model to understand the sequential nature of language.

**Output Generation:** After processing through the stacked layers, the final token representations are used for various tasks depending on the model's objective. For example, in a text generation task, the model might generate the next word or sequence of words. In a question-answering task, it may output a relevant answer.

**Training:** Large language models are trained on massive text corpora using a variant of the Transformer architecture called the "masked language model" or MLM objective. During training, some of the tokens in the input are masked, and the model is trained to predict the masked tokens based on the context provided by the unmasked tokens.

**Fine-Tuning:** After pre-training on a large dataset, these models can be fine-tuned on specific tasks or domains with smaller, task-specific datasets to make them more useful for applications.

**Inference:** During inference, when you input a query or text prompt, the model uses the learned parameters to generate a response or perform a specific task, such as language translation, text summarization, or answering questions.
Learn
Tags: beginners, opensource, codenewbie
Published: 2023-09-05 12:01:26

It can be a pain to learn sometimes, but once you learn it can also bring joy. Only wish I had had the opportunity and the interest to learn coding earlier in my life.. Better late than never. VAMOS!!

```
u = 1
while (u < 10):
   print("U are alive, life is not perfect but it is worth it")

```
How to build a BMI Calculator in Python
Tags: python, bmicalculator, beginners
Published: 2023-09-05 11:57:35

**Creating a BMI (Body Mass Index) Calculator in Python
**
BMI, or Body Mass Index, is a widely used tool to estimate whether a person has a healthy body weight for their height. It's calculated using a simple formula based on a person's weight in kilograms and height in meters. In this blog post, we will guide you through building a [BMI calculator](https://newbmicalculator.online/) in Python.

### Step 1: Setting Up Your Environment

Before you start coding, ensure you have Python installed on your computer. You can download and install Python from the official website (https://www.python.org/).

### Step 2: Writing the Code

Let's start by writing the Python code for our BMI calculator. Open your favorite text editor or Integrated Development Environment (IDE) and follow along:

```python
# BMI Calculator

# Function to calculate BMI
def calculate_bmi(weight_kg, height_m):
    bmi = weight_kg / (height_m ** 2)
    return bmi

# Function to interpret BMI
def interpret_bmi(bmi):
    if bmi < 18.5:
        return "Underweight"
    elif 18.5 <= bmi < 24.9:
        return "Normal Weight"
    elif 25 <= bmi < 29.9:
        return "Overweight"
    else:
        return "Obese"

# Input from the user
weight = float(input("Enter your weight in kilograms: "))
height = float(input("Enter your height in meters: "))

# Calculate BMI
bmi_result = calculate_bmi(weight, height)

# Interpret BMI
bmi_category = interpret_bmi(bmi_result)

# Display the result
print(f"Your BMI is {bmi_result:.2f}")
print(f"You are categorized as {bmi_category}")
```

### Step 3: Running the Program

Save the code with a .py extension (e.g., `bmi_calculator.py`) and run it using your Python interpreter. The program will prompt you to enter your weight and height, then it will calculate your BMI and categorize it as underweight, normal weight, overweight, or obese.

### Conclusion

Congratulations! You've just built a simple BMI calculator in Python. This is a basic example, and you can expand upon it by adding more features like input validation and a graphical user interface (GUI). Building small projects like this is a great way to practice Python programming and gain confidence in your coding skills.
Whatsapp Download For Pc Windows 7,8,10,11 For Free getintopc
Tags: whatsapp, downloadwhatsapp, getintopcsoftware
Published: 2023-09-05 11:42:52


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

Downloading **[Whatsapp Download For Pc Windows 7,8,10,11 For Free getintopc](https://getintopc.software/whatsapp-download-for-pc-windows-781011-for-free-getintopc/)** opens up a convenient gateway to seamless communication. As one of the most popular messaging platforms worldwide, Whatsapp Download For Pc Windows 7,8,10,11 For Free getintopc desktop version allows you to effortlessly sync your conversations and contacts between your computer and mobile device. Whether you’re typing out lengthy messages or sharing media files, the user-friendly interface ensures that staying connected with friends, family, and colleagues is as easy as a few clicks on your Windows PC.

To Download Visit our website Getintopc.software
The Brilliance of Lab-Grown Diamonds: Perfect Engagement Rings
Tags: jewels, diamonds, engagement, rings
Published: 2023-09-05 11:35:51

Lab-grown diamonds have become a popular choice for engagement rings due to their ethical and environmental advantages, as well as their exceptional quality. Here's [lab grown diamonds engagement rings](https://www.diamondchemistry.com/)  some information about lab-grown diamond engagement rings:


Eco-Friendly Choice: Lab-grown diamonds are created in controlled environments, using significantly less energy and water compared to traditional diamond mining. This makes them a more sustainable and environmentally friendly option.

Ethical Sourcing: Unlike mined diamonds, lab-grown diamonds are not associated with conflicts or unethical labor practices. They are a responsible choice for those concerned about the social implications of diamond mining.

Quality and Beauty: Lab-grown diamonds are virtually identical to natural diamonds in terms of their physical and chemical properties. They are just as beautiful, durable, and brilliant as mined diamonds, often at a lower cost.

Variety: You can find lab-grown diamonds in a wide range of shapes, sizes, and colors, allowing you to customize your engagement ring to your preferences.

Cost-Effective: Lab-grown diamonds tend to be more affordable than their mined counterparts, which means you can get a larger or higher-quality stone for your budget.

Certification: Just like natural diamonds, lab-grown diamonds can be certified by reputable gemological organizations like the Gemological Institute of America (GIA), ensuring their quality and authenticity.

Customization: Lab-grown diamonds can be set in various metal types (such as white gold, rose gold, or platinum) and different engagement ring styles to match your personal taste and style.

Durability: Lab-grown diamonds are hard and durable, making them suitable for everyday wear as engagement rings.

Low Environmental Impact: Choosing a lab-grown diamond reduces the demand for diamond mining, which has been associated with habitat destruction and water pollution.

Innovation: The technology used to create lab-grown diamonds is continually advancing, leading to even better quality and more affordable options.

When selecting a lab-grown diamond engagement ring, be sure to choose a reputable jeweler and request a certification to guarantee the quality and origin of the diamond. With their ethical and environmental benefits, lab-grown diamonds offer a beautiful and responsible choice for your engagement ring, symbolizing your commitment to a sustainable future.
Encode URL in Javascript
Tags: javascript, typescript, node
Published: 2023-09-05 11:26:33

Did you know that each website and online resource has a unique URL for its address? Uniform Resource Locators, or URLs, can appear straightforward but contain numerous components and special characters, making them truly fairly complex.



## Built-in JavaScript Encoding Functions


When It comes to encoding in JavaScript. It Gives to two functions to perform encoding **encodeURIComponent()** and **encodeURI()**.

### How to use encodeURI in JavaScript
This function is used for encoding the complete URI (Uniform Resource Identifier). A limitation of we can say feature of **encodeURI** is that it does not encode characters `~!@#$&*()=:/,;?+'` .

**Syntax:**
```
const originalURI = "https://www.dev.to/search?q=Hello dev";
const encodedURI = encodeURI(originalURI);
console.log(encodedURI);
VM249:3 https://www.dev.to/search?q=Hello%20dev

```

### How to use encodeURIComponent in JavaScript
This function is used to encode complete URL (Uniform Resource Locator) instead of URI. 

**Syntax:**
```
const originalURI = "https://www.dev.to/search?q=Hello dev";
const encodedURI = encodeURIComponent(originalURI);
console.log(encodedURI);
VM261:3 https%3A%2F%2Fwww.dev.to%2Fsearch%3Fq%3DHello%20dev
```

You can use any online JavaScript code executor, browser console, or online [URL encode](https://www.fireboxtools.com/encoding-decoding-tools/url-encode) tool to verify your encoding output.   


### Encoding vs Encryption

People frequently get confused between encoding and encryption. Although both are used to transform data but to serve different purposes and requirements. 


**Encoding:** Encoding is used to transform data into specific format without maintaining security. It is easily reversible using appropriate method. 

**Encryption:**: Encryption is used to protect data using  complex algorithms. It ensures data confidentiality and security. Encrypted data is also reversible but only with the correct decryption key.
Color Flipper
Tags: javascript, tailwindcss, 100daysofcode, beginners
Published: 2023-09-05 11:25:49

So I am Learning javascript from basic to advanced.
Today I have make a small project in javascript that is Color Flipper 
github repo :- https://github.com/faisgit/Color--Flipper
Live Link : https://color-flipper-1711.netlify.app/
$render — write React with pure JavaScript.
Tags: react, javascript, framework
Published: 2023-09-05 11:21:21

---
title: $render — write React with pure JavaScript.
published: true
description: A JavaScript library to write React with pure JavaScript.
tags: React, JavaScript, framework, js
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-05 11:18 +0000
---

I have been building a JavaScript UI library I believe is the future of React and I am excited 🤩 to tell you about it before it is released soon.

Yeah: I recreated a fully functioning online music player with $render.js: [lovePlay](codingnninja.github.io/lovePlay)

And here is the source code: [Love Play source code](github.com/codingnninja/lovePlay)

Everything is completely written in a script tag and I am currently working on its modularized version.

Check it out and let me know know what you think.

Finally, you can stay connected by watching render release [$render release](https://github.com/codingnninja/render)

[credit](github)
How do you build connections as a student?
Published: 2023-09-05 11:18:32

I'm currently a college student, I'm looking to build connections anywhere in the world so I can transition into a job or at least make it a bit easy for me to get a job, after my graduation.

I'm at a lost on what to do, I'm always down to explore communities. But I can't just seem to find one that will potentially give me opportunities in the future.

Is there anything I can do or start today that will benefit potentially benefit me in my future career? Thanks in advance!
The following code from fastapi documentation under this subtitle "Response Model encoding parameters" seems to be not working
Tags: fastapi
Published: 2023-09-05 11:11:06

```
from fastapi import FastAPI
from pydantic import BaseModel

app = FastAPI()


class Item(BaseModel):
    name: str
    description: str | None = None
    price: float
    tax: float = 10.5
    tags: list[str] = []


items = {
    "foo": {"name": "Foo", "price": 50.2},
    "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
    "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
}


@app.get("/items/{item_id}", response_model=Item, response_model_exclude_unset=True)
async def read_item(item_id: str):
    return items[item_id]

```
"""
the variable items has no effect with the path operation 
and returns the key error
"""
How to generate "uuid" in JavaScript ?
Tags: javascript, ui, webdev, react
Published: 2023-09-05 11:10:28

```
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
/**
 * Generate any string and use it everywhere
 * @param {int} the length of the string you zqnt to generate
 * @returns string
 */
function VanillaGenerate(length) {
    let result = '';
    const charactersLength = characters.length;
    for (let i = 0; i < length; i++) {
        result += characters[Math.floor(Math.random() * charactersLength)];
    }
    return result;
}
/**
 * Exemple
 */
let uuid = VanillaGenerate(21);
console.log(uuid);
```
VKpyMusic - your tool for audio VK API
Tags: vk, api, music, python
Published: 2023-09-05 11:06:31

🎵 Introducing VKPymusic: Your Ultimate Music API for Python 🚀

Hey there, fellow developers! We're excited to introduce you to VKPymusic, the ultimate music API for Python enthusiasts and music aficionados alike. 🎶

📦 **What is VKPymusic?**
VKPymusic is a powerful Python library that provides seamless access to the VKontakte (VK) music ecosystem. With VKPymusic, you can effortlessly search for music, create playlists, retrieve audio tracks, and much more, all through the VK API.

🚀 **What's New?**
We've been hard at work, and we're thrilled to share the latest updates:
- ✨ **Playlist Support:** Now you can search for, retrieve, and manipulate audio tracks within playlists.
- 📝 **Logging Integration:** We've improved code structure, variable/function names, and enhanced error handling, including the deletion of credentials in ANY situation.
- 🚧 **Code Enhancements:** A revamped structure and naming conventions for a smoother development experience.
- 🔑 **Token Management:** `get_token()` now returns the token as a string, and `save_to_config()` accepts a filename argument for config storage.
- ⚙️ **Enhanced Auth Handling:** Our `auth()` method now includes 4 NEW handlers for various scenarios.
- 🔄 **Async Awesomeness:** Introducing `TokenReceiverAsync` for async auth with async handlers.
- 🐞 **Bug Squashing:** We've fixed various bugs and potential errors for a smoother user experience.

📣 **We Want Your Input!**
But that's not all! We're eager to hear from you. We welcome your advice, recommendations, and even constructive criticism. Are there specific features you'd like to see? Any challenges you've encountered during implementation? Your feedback will help shape the future of VKPymusic!

🚀 **Get Started**
Ready to dive in? Explore VKPymusic on GitHub: [VKPymusic GitHub](https://github.com/issamansur/vkpymusic)

🎉 My First Post!
This is my first post on dev.to, and I couldn't be more thrilled to be part of this amazing community. Stay tuned for more updates, tutorials, and insights on VKPymusic right here on dev.to. Let's make VKPymusic the go-to library for all your VK music needs!

Stay tuned for more updates, tutorials, and insights on VKPymusic right here on dev.to. Let's make VKPymusic the go-to library for all your VK music needs! 🎉

Follow us for the latest news, and feel free to reach out with your thoughts. Together, we'll rock the Python music world!


#OpenSource #MusicAPI #VKPymusic #Python #DevTo #DeveloperLife