teleren/devto huggingface dataset:
Google's Updated Algorithm
Tags: algorithms, browser, ai
Published: 2024-05-28 20:50:15

I thought that this was an interesting topic to look into because of Google's status as a tech giant. Google is widely known for its technological innovations and is the most frequently used browser so I wanted to look into the changes it was making. This also gives me an idea of Google's functionality and external factors affecting its engine.

Google is the leading company when it comes to web browsers so I wanted to blog about the incoming changes to its engine and the impacts they will bring. As of late, Google started implementing AI into its search engine to generate a response for users. While this may be beneficial to the users, this is a huge setback for businesses relying on Google's engine, effectively putting many people out of business. Thomas Germain's article _Google just updated its algorithm. The Internet will never be the same_ presents the pros and cons of Google's search engine. It also makes me understand how Google is being used from a corporation's point of view, providing me insight on how it is currently being used.

AI was Google's solution in weeding out insignificant search results by corporations. As it turns out, Google has received discordance on the web traffic received by users as they are being led to websites that provide little information as a way for corporations to gain revenue off of said traffic. This led to many users doubting the web browser's search engine optimization, resulting in Google's development of their personal AI. 

While AI did help solve issues regarding web traffic, it also brought new issues to Google's search engine optimization. Consequently, various companies were receiving less traffic and losing revenue. I had never understood Google's reasons for developing AI up until I had read this blog and this development fascinates me. It helps me to understand AI's emerging impacts in the technology industry.

This post was heavily inspired from:
Germain, T. (2024, May 25) Google just updated its algorithm. The Internet will never be the same
Retrieved from: [https://www.bbc.com/future/article/20240524-how-googles-new-algorithm-will-shape-your-internet]
#1208. Get Equal Substrings Within Budget
Published: 2024-05-28 20:29:24

https://leetcode.com/problems/get-equal-substrings-within-budget/description/?envType=daily-question&envId=2024-05-28

```js

/**
 * @param {string} s
 * @param {string} t
 * @param {number} maxCost
 * @return {number}
 */
var equalSubstring = function(s, t, maxCost) {
    let n = s.length, start = 0, currCost = 0, maxLen = 0

    for (let end = 0; end < n; end++) {
        currCost += Math.abs(s.charCodeAt(end) - t.charCodeAt(end))

        while(currCost > maxCost) {
            currCost -= Math.abs(s.charCodeAt(start) - t.charCodeAt(start))
            start++
        }

        maxLen = Math.max(maxLen, end - start + 1)
    }

    return maxLen
};

```
Django: Admin
Tags: webdev, python, django
Published: 2024-05-28 20:26:53

From: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Admin_site

See my `locallibrary/catalog/admin.py`

https://github.com/Samuel-Lubliner/local-library-django-tutorial/blob/main/locallibrary/catalog/admin.py

# Django admin application

- Allows creating, viewing, updating, and deleting records using models.
- Simplifies testing models and data during development.
- Useful for managing data in production environments.
- Recommended only for internal data management.
- Dependencies needed: [Django Admin Documentation](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/).
- Register models to add them to the admin interface.
- Configure the admin area for better display.
- Create a new "superuser."

## Registering models

Register models in `/django-locallibrary-tutorial/catalog/admin.py`. This is the simplest way of registering models with the site.

##  Creating a superuser

A superuser account has full access to the site and all needed permissions using `manage.py`.

- Log into the admin site with a user account that has Staff status enabled.
- View and create records with permissions to manage all objects.

In the same directory as `manage.py` run:

`python3 manage.py createsuperuser`

Restart the development server to test the login:

`python3 manage.py runserver`

## Logging in and using the site

Open the /admin URL and enter the superuser credentials. The GUI allows you to view models and edit field values.

## Advanced configuration

List views and detail views provide greater customization

Find a reference of the admin site in the docs: https://docs.djangoproject.com/en/5.0/ref/contrib/admin/

## Register a ModelAdmin class

Comment out the original registrations. Then Define a `ModelAdmin` class and register it with the model. See: https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#modeladmin-objects

## Configure list views

Use `list_display` to add additional fields to the view. See more at https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display

## Add list filters

To filter displayed items, list fields in the `list_filter` attribute.

## Sectioning the detail view

To add sections, refer to: https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets

## Inline editing of associated records

For inline editing of associated records, refer to: https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.inlines

Declaring inlines

- `TabularInline` (horizontal layout) https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.TabularInline

- `StackedInline` (vertical layout, default) https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.StackedInline
Ibuprofeno.py💊| #112: Explica este código Python
Tags: python, spanish, learning, beginners
Published: 2024-05-28 20:00:00

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```py
print(bool(-100), bool(100))
```

👉 **A.** `True`, `True`
👉 **B.** `True`, `False`
👉 **C.** `False`, `True`
👉 **D.** `False`, `False`

---

{% details **Respuesta:** %} 

👉 **A.** `True`, `True`

En Python los tipos de datos booleanos descienden del tipo de datos de los números. Entonces El posible representar tanto `True` como `False` como valores numéricos, donde: `True` equivale a `1` y `False` equivale a `0`.

Ahora bien, tenemos una peculiaridad con los números que sean diferentes de `1` y `0`. 

Todos los numeros enteros que sean diferentes de `0` serán considerados como `True` (incluidos los valores negativos), **solo** el valor `0` equivale a `False`.

En nuestro ejemplo `-100` infiere a `True` por mas que sea negativo porque es diferente de `0` y `100` también infiere a `True` por las mismas razones. 


{% enddetails %}
Rise of headless CMS in modern web development
Published: 2024-05-28 19:20:54

One trend that is becoming increasingly popular among both developers and content creators in the ever changing field of web development is the headless CMS (Content Management System). The presentation layer and content management system are traditionally tightly coupled by content management systems (CMSs) like WordPress or Drupal, which limits flexibility and frequently leads to bloated codebases. Headless CMS, on the other hand, offers a more streamlined and adaptable method of content management by severing the connection between the frontend presentation layer and the backend content repository.

## Support for many frontend frameworks 

Technology is one of headless CMS's main benefits. Because they are no longer limited to a particular frontend stack, developers can select the tools that best suit the needs of their projects. Headless CMS can easily interface with a variety of frontend technologies, offering unmatched flexibility and scalability, whether it's a static site generator like Gatsby or a contemporary JavaScript framework like React or Vue.js.

Moreover, headless CMS makes it easier to create omnichannel experiences. Developers may effortlessly distribute content across several platforms, including websites, mobile applications, Internet of Things devices, and even nascent technologies like voice assistants and augmented reality gadgets, by keeping content stored apart from the presentation layer. This improves the customer experience overall by allowing businesses to retain consistent branding and messaging across many mediums.

Improved performance is one of headless CMS's main advantages. Headless architecture speeds up content delivery and lowers server load by doing away with the requirement for server-side HTML generation. Better SEO rankings, quicker page loads, and eventually higher user engagement and conversion rates are the outcomes of this.

Additionally, headless CMS gives content producers access to a more user-friendly and simple interface for content management. Authors can concentrate on creating excellent content without having to worry about the underlying technical difficulties of web development when content creation and display are kept clearly apart. In addition to increasing output, this encourages cooperation between developers and content producers, which benefits the team as a whole.

Finally, the emergence of headless CMS signifies a paradigm change in contemporary web development, providing developers and content producers with previously unheard-of levels of performance, scalability, and flexibility. Headless CMS will surely be a major factor in determining how content management and delivery on the web are shaped in the future as companies continue to embrace digital transformation.

Techxpert provides the facility for web development. For more information, visit [techxpert.io](https://techxpert.io/).
Seeking Advice on Designing a WordPress Site for Surah Yaseen and Using PHP Scripts
Tags: wordpress, php, webdev, javascript
Published: 2024-05-28 19:05:01

I hope you're all doing well. I'm currently working on designing a website for Surah Yaseen using WordPress. I wanted to get some insights and advice from this knowledgeable community regarding the design aspects.

Specifically, I'm considering whether to incorporate PHP scripts into the site. Could you please share your thoughts on the following:

**Design Recommendations:** What are some best practices for designing a religious content-focused website like [Surah Yaseen](https://surahyaseen.net/) in WordPress?

**PHP Scripts:** Should I use custom PHP scripts for enhanced functionality? If so, what are some common use cases or benefits of doing so?

**Plugin Suggestions:** Are there any WordPress plugins that you recommend for a site like this, especially for optimizing performance, security, and user experience?

Your insights and suggestions would be greatly appreciated. Thank you in advance for your help!
El patrón de diseño Result
Published: 2024-05-28 19:00:59

El patrón de diseño Result (también conocido como Either o Outcome) es una técnica que se utiliza para manejar resultados exitosos o errores en una operación. A menudo se emplea en lenguajes funcionales y se está volviendo más popular en C# debido a su utilidad en el manejo de errores y resultados.

**¿Qué es el patrón Result?**
El patrón Result se basa en la idea de que una función puede devolver un valor exitoso o un error. En lugar de lanzar excepciones, el patrón Result devuelve un objeto que contiene información sobre el resultado o el error. Esto permite un manejo más explícito y controlado de los posibles resultados.

**Implementación en C#**
Aquí hay un ejemplo de cómo implementar el patrón Result en C#:

Definición de la clase Result:

```
public class Result<T>
{
    public T Value { get; }
    public bool IsSuccess { get; }
    public string ErrorMessage { get; }

    private Result(T value)
    {
        Value = value;
        IsSuccess = true;
    }

    private Result(string errorMessage)
    {
        ErrorMessage = errorMessage;
        IsSuccess = false;
    }

    public static Result<T> Success(T value) => new Result<T>(value);
    public static Result<T> Failure(string errorMessage) => new Result<T>(errorMessage);
}

```

**Uso del patrón Result**

```
public Result<int> Divide(int dividend, int divisor)
{
    if (divisor == 0)
        return Result<int>.Failure("Cannot divide by zero.");

    return Result<int>.Success(dividend / divisor);
}

// Ejemplo de uso
var result = Divide(10, 2);
if (result.IsSuccess)
{
    Console.WriteLine($"Resultado: {result.Value}");
}
else
{
    Console.WriteLine($"Error: {result.ErrorMessage}");
}

```
**Ventajas del patrón Result**
Proporciona una forma más explícita de manejar resultados y errores.
Evita el uso excesivo de excepciones.
Facilita el flujo de control en situaciones de manejo de errores.

**Consideraciones**
Asegúrate de documentar claramente los posibles resultados y errores en tus funciones.
Utiliza el patrón Result cuando sea apropiado, no aplicarlo en exceso.


> **Alexis Vega**, Desarrollador de [Baufest](https://baufest.com/nosotros/)
Link đăng nhập 188bet chính thức 2024
Published: 2024-05-28 19:00:14

https://139.59.43.58/88bet/ Link vào nhà cái 188bet 2024✔️Đăng ký 188bet✔️Nạp tiền 188bet ✔️Tải App 188bet
https://188bet13959.zohosites.com
https://hashnode.com/@188bet13959
https://hackmd.io/@188bet13959
Database Design for Store Management Platform in LARAVEL
Published: 2024-05-28 18:47:21

I am working on the database design for a store management platform and need some advice on the best approach to structure my tables user, user_platform, user_store, especially concerning user roles and Users.

Here is what I am trying to achieve:

Platform Management Users: I need a table to manage users who have access to the platform's management interface. These users are independent of the stores and can create roles and other users with different permissions within the platform.

Store Owners and Staff: When a store owner signs up, they become the admin of their store by default. This store admin can also create roles and manage other users specific to their store.

How can I design these tables ?

Any guidance or examples would be greatly appreciated!

Thank you!
Congrats to the The AWS Amplify Fullstack TypeScript Challenge Winners!
Tags: devchallenge, awschallenge, amplify, fullstack
Published: 2024-05-28 18:40:42

WOW! We are so impressed with everyone that submitted to [The AWS Amplify Fullstack TypeScript Challenge](https://dev.to/challenges/aws). From file syncing services to music exploration apps to pet shop software, our DEV team of judges were overwhelmed by the number of high quality submissions we received.

We hope all participants are feeling proud of what they accomplished and what they learned, regardless of whether or not they won. This was truly a tight competition. 

## Congratulations To…

### Overall Prompt Winner

Congratulations to @sidjs and @shivamsharma1 for a tremendous application which used all the integrations of the Feature Full category, while producing a truly delightful and useful experience.

This app delivers an AI-augmented experience with great UI and is a remarkable demonstration of what can be accomplished with Amplify.

{% embed https://dev.to/sidjs/echodiary-ai-powered-diary-with-aws-amplify-i9a %}


### Additional Prize Category Winners

**Connected Components:**

Congratulations to @travislramos for their silky-smooth budgeting app, making tremendous use of Connected Components to deliver a delightful user experience.

{% embed https://dev.to/travislramos/finance-budgeting-app-with-aws-amplify-gen2-4ilg %}

**Feature Full**

Congratulations to @maludecks for an awesomely creative and brilliantly executed submission **Voicemailer.io**, a fun and interactive demonstration of Amplify and all the components of this challenge.

This was an application which needed to use all categories of the Feature Full submission to deliver the full user experience.

{% embed https://dev.to/maludecks/bringing-voicemails-back-to-life-with-amplify-gen-2-27en %}

Our three winners will receive the following prizes:

**Prompt Winner (1)**
- $1,500 USD Gift Card or Equivalent
- Exclusive DEV Badge
- A gift from the [DEV Shop](https://shop.forem.com)

**Additional Prize Category Winners (2)**
- $750 USD Gift Card or Equivalent
- Exclusive DEV Badge
- A gift from the [DEV Shop](https://shop.forem.com)

**All Participants** with a valid submission will receive a completion badge on their DEV profile.

## Our Sponsor
We want to give a big shout out to AWS Amplify for organizing this challenge with us. @aspittel and team were an absolute delight to work with. Follow their org to keep up-to-date with AWS:

{% embed https://dev.to/aws %}

## What’s next?

New challenges launch on Wednesdays! Follow the challenge tag so you don’t miss any announcements:

{% tag devchallenge %}

Thank you to everyone who participated! We hope you had fun, felt challenged, and maybe added a thing or two to your professional profile. See you next time!
🗞 Rapyd Developer Newsletter: May 2024 💳 👛 Card Provisioning for Digital Wallets + Rapyd API Request Signatures in Java
Tags: rapydnews, payments, fintech, java
Published: 2024-05-28 18:36:36

[**API Changelog**](https://docs.rapyd.net/en/api-changelog.html) | [**Product Changelog**](https://docs.rapyd.net/en/product-changelog.html)

Hey, fellow developer. See the latest insights, updates, and tools to streamline your processes and elevate your payment solutions. Here's what we've got lined up for you:

---

[**Rapyd API Request Signatures in Java**](https://community.rapyd.net/t/rapyd-api-request-signatures-in-java/59290)
Learn to access all payment methods for a specific country via the Rapyd API in Java, covering credential creation, signature generation, and HTTP request sending.

[**How to Reverse a Withdrawal**](https://community.rapyd.net/t/how-to-reverse-a-withdrawal-with-rapyd-a-developers-guide/59292)
Learn how Rapyd's POS API can help you quickly reverse failed transactions and ensure your customer's funds are secure.

[**Digital Wallet Provisioning**](https://docs.rapyd.net/en/digital-wallet-provisioning.html)
Provision Rapyd issued cards to digital wallets such as Apple Pay and Google Pay. Use the Rapyd API to embed card-provisioning features in your application.  

[**Rapyd Ranked**](https://www.linkedin.com/posts/rapydpayments_rapyd-ranked-as-top-cross-border-payment-activity-7189246799348473858-gRC1)
For the fifth consecutive year, Rapyd has been recognized by FXC Intelligence as a leading player in cross-border payments, underscoring our dedication to facilitating global commerce and enabling businesses to succeed worldwide. 

[**Merchant Settlement Report**](https://docs.rapyd.net/en/merchant-settlement-report.html)
A new version of the Merchant Settlement Report has been released. Use reports from your Client Portal account to get the latest insights into your business's settlements and transactions.  

[**Closing a Virtual Account**](https://docs.rapyd.net/en/deleting-a-virtual-account.html)
Managing your virtual accounts has never been easier. Use the Rapyd API to close unused virtual accounts. 

---

Do you have ideas for improving this newsletter, or do you wish to contribute an article or join a panel? Let us know by responding. 

Thanks for reading, 
Drew, McKay, and the entire Rapyd team
How to Pass Data Between Components in React
Tags: tutorial, react, programming, learning
Published: 2024-05-28 18:36:02


in React, passing data between components is a common task. You often need to share data from a Parent component to child component using props (short for "properties").

## What are Props? ##
you can think of props as arguments that you send to a function, but in this case  sending them to a component.

##Example: Passing data from Parent to Child ##

1. `Create Parent Component`

```
import React from 'react';
import ChildComponent from './ChildComponent';

function ParentComponent() {
  const message = "Hello from the Parent Component!";

  return (
    <div>
      <h1>This is the Parent Component</h1>
      <ChildComponent message={message} />
    </div>
  );
}

export default ParentComponent;
```

2.`Create Child Component`

```
import React from 'react';

function ChildComponent(props) {
  return (
    <div>
      <h2>This is the Child Component</h2>
      <p>{props.message}</p>
    </div>
  );
}

export default ChildComponent;

```
💥BounceBIT trading is now available on WhiteBIT, ByBIT, KuCoin and other CEXs
Tags: cryptocurrency
Published: 2024-05-28 18:34:56



🔥BounceBIT Coin ($BB ) is a cryptocurrency designed to facilitate decentralized, peer-to-peer transactions with enhanced security and speed. It leverages blockchain technology to offer low transaction fees and scalability, aiming to provide a robust alternative to traditional financial systems. Users can utilize Bouncebit Coin for various applications, including online purchases, remittances, and as a store of value.

👉BounceBit is listed on several cryptocurrency exchanges. The top exchanges for trading BounceBit include Bybit, WhiteBIT, Binance, LBank, Bitget, and KuCoin​. These platforms offer various trading pairs and options for BounceBit, making it accessible for users looking to trade or invest in this cryptocurrency.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eqrw32hmde7pzemi3gtt.png)
🔥 Ethereum Price Prediction as ETH Approaches $4,000 Level – Here is the Next Key Level to Watch
Published: 2024-05-28 18:01:32

📉 After nearly touching $4,000 on Monday, Ethereum (ETH) pulled back slightly on Tuesday to around $3,850. Despite a 1% dip due to Bitcoin wallet jitters from Mt Gox, Ethereum remains on an upward trend, boosted by last week’s SEC approval of Ethereum ETFs.

📊 The SEC approval is a historic moment, expected to drive demand similarly to Bitcoin ETFs, offering investors easy ETH exposure. Bernstein predicts Bitcoin and Ether ETFs will reach a $450 billion market cap, with $100 billion in inflows in the next 18-24 months. Ethereum, still 21% below its 2021 highs, has room to grow compared to Bitcoin’s 8% gap from its peak.

🚀 Much of Ethereum's underperformance stemmed from regulatory uncertainty, with fears of SEC labeling it a security. The recent ETF approvals alleviate this uncertainty, opening potential for a catch-up trade and outperformance relative to Bitcoin.

📈 The next key level for Ethereum is $4,100, with a potential rise to 2021 highs of $4,900. Breaking past prior highs could see Ethereum enter price discovery, potentially reaching $11,000 to $15,500 if it mirrors its 2020-2022 bull run Fibonacci extensions.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kb91mvovfl0hhd0w9npt.png)
Save The Date Graduation Ceremony
Tags: graduation, memories, classof2024, momentsinhistory
Published: 2024-05-28 17:51:26

You're Invited To Join Us On This Friday May 31st 2024 For Graduation Ceremony For The Class Of 2024 Please share with others.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/97cn2zsey9vbkusy2vod.jpg)
Error in Javascript
Tags: javascript, testing, errors, numbers
Published: 2024-05-28 17:48:15

Hey everyone, I was creating a simple program to give me output (sum of every digit of the value given by user) but the problem is, whenever user is giving a value more than 10 digits so the program gives wrong output. Here's the program:-

let n=566;
s=0;
while(n>9){
 while(n>0){
 r=n%10;
 n=n/10>>0;
 s+=r;
}
if(s<10){
 console.log(s);
}else{
 n=s;
 s=0;
}
}

Input : 566 
Output : 5+6+6= 17....1+7= 8
8 is final output

Input : 987654324567
Output : 9+8+7+6+5+4+3+2+4+5+6+6= 66....6+6= 12....1+2= 3
3 should be final answer but it's giving me 7