teleren/devto huggingface dataset:
Plush Toys~AtCoder~
Published: 2023-09-18 12:44:06

https://atcoder.jp/contests/joi2017yo/tasks/joi2017yo_d

**NOTE**
This problem is in Japanese.

## Solution
```rust
use proconio::input;
pub fn main() {
    input!(
        n: usize,
        m: usize,
        data: [usize; n],
    );
    let data = data.iter().map(|e| e - 1).collect::<Vec<usize>>();
    let mut cnt = vec![0; m];
    let mut cnt_sum = vec![vec![0]; m];
    for &d in data.iter() {
        cnt[d] += 1;
        for i in 0..m {
            let last_val = cnt_sum[i][cnt_sum[i].len() - 1] + if d == i { 1 } else { 0 };
            cnt_sum[i].push(last_val);
        }
    }
    const INF: usize = 1 << 60;
    let mut dp = vec![INF; 1 << m];
    dp[0] = 0;
    for s in 0..1 << m {
        let mut sum = 0;
        for i in 0..m {
            if s >> i & 1 == 1 {
                sum += cnt[i];
            }
        }

        for i in 0..m {
            if (s >> i) & 1 == 0 {
                dp[s | (1 << i)] = dp[s | (1 << i)]
                    .min(dp[s] + cnt[i] - (cnt_sum[i][sum + cnt[i]] - cnt_sum[i][sum]));
            }
        }
    }
    println!("{}", dp[(1 << m) - 1]);
}
```

## Explanation
- cnt[i] := Number of `i` type toys
- cnt_sum[i][j] := Number of `i` type toys when examining the `j` toys from left to right on the shelf.
- dp[S] := Minimum number of operations for a new subset containing `S` types of toys.

```rust
for s in 0..1 << m {
    let mut sum = 0;
    for i in 0..m {
        if s >> i & 1 == 1 {
            sum += cnt[i];
        }
    }
                                                                             
    for i in 0..m {
        if (s >> i) & 1 == 0 {
            dp[s + (1 << i)] = std::cmp::min(
                dp[s + (1 << i)],								dp[s] + cnt[i] - (cnt_sum[i][sum + cnt[i]] - cnt_sum[i][sum]),
            )
        }
    }
}
```
- sum := Total number of types already selected.

For the types of toys not yet included in the subset(`S`)
- `(cnt_sum[i][sum + cnt[i]] - cnt_sum[i][sum])` := Number of toys that do not need to move.
Laravel 10 Get Latest Record From Database
Tags: laravel, get, latest, record
Published: 2023-09-18 12:27:50

## Laravel 10 Get Latest Record From Database

You can use the latest() method in Laravel to get the latest records from a database. The latest() method was introduced in Laravel version 5.3. It uses the created_at column to sort the data.

**Here are some examples of using the latest() method:
**

```
$lastRecord = User::latest()->first()
return DB::table('files')->latest('upload_time')->first()
```

Read More [Laravel 10 Get Latest Record From Database](https://www.tutsmake.com/laravel-get-last-latest-record-example
[](url))
3rd day: set up Axios & React-Query
Published: 2023-09-18 12:14:15

---
title: 3rd day: set up Axios & React-Query
published: true
description: 
tags: 
# cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sufplhqsvv94prpyag31.png
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-18 12:01 +0000
---
### Today
- have created a record into database through Axios and React-Query. 
  - Because I have already been using Axios for many years, there are no challenges to integrating it. 
  - The document of React-Query is very ***clear and practical***, so it is also very easy to set up it.

### Problems
- no technical problems today, it's time to focus on the functionalities.

### What to do next
- Collect all opened tabs, and save them to the database
- Create a SPA project to show data collected by the extension.
What is Python Standard Library?
Tags: python
Published: 2023-09-18 12:13:29

The Python Standard Library is an extensive collection of modules and packages that ship with the Python programming language. It serves as a foundational resource for Python developers, providing a wide range of pre-built functionality and tools that simplify common programming tasks. These modules cover diverse areas, including data manipulation, file handling, networking, web development, regular expressions, and more, making the Python Standard Library a versatile and powerful asset for developers.

One of the defining features of the Python Standard Library is its "batteries included" philosophy, which means that Python strives to include a comprehensive set of modules to address a broad spectrum of needs without requiring developers to rely heavily on third-party libraries. This design principle contributes to Python's reputation as an efficient and productive programming language for various applications, from web development and data analysis to scientific computing and automation. Apart from it by obtaining [Master Python Programming](https://www.edureka.co/masters-program/python-developer-training), you can advance your career as a Python. With this course, you can demonstrate your expertise in the basics of to Data Science, Machine Learning, Deep Learning, Natural Language Processing, many more fundamental concepts.

The Python Standard Library is organized into modules, each of which focuses on a specific domain or functionality. For example, the "os" module provides tools for working with the operating system, such as file operations and directory manipulation. The "datetime" module facilitates date and time manipulation, while the "urllib" module enables network communication and web scraping. There are modules for regular expressions ("re"), data serialization ("pickle" and "json"), and database access ("sqlite3").

Beyond these fundamental modules, the Python Standard Library also includes modules for working with data structures (e.g., "collections"), mathematical operations ("math" and "statistics"), and concurrent programming ("threading" and "multiprocessing"). It even offers modules for unit testing ("unittest") and debugging ("pdb"), supporting best practices in software development.

The Python Standard Library's extensive documentation and rich ecosystem of modules make it a valuable resource for both beginners and experienced Python developers. By leveraging these built-in tools, developers can streamline their workflow, improve code quality, and accelerate the development process. Additionally, the standardization of these modules ensures portability and compatibility across different Python environments and platforms, reinforcing Python's reputation as a versatile and accessible programming language.
1000 Followers!
Tags: 1000, watercooler
Published: 2023-09-18 12:08:52

Hey everyone!

We just hit 1000 followers. That is amazing and I really appreciate it. To celebrate, check out this video.

https://drive.google.com/file/d/1VALgROlpnwU1kJrpp5XBDTkPNv2r6mKh/view?usp=share_link
SMM Panel
Published: 2023-09-18 12:07:10

A Social Media Marketing (SMM) panel, also known as an SMM reseller panel or SMM panel script, is a web-based platform or software that allows individuals or businesses to purchase social media services like followers, likes, comments, views, and more for various social media platforms such as Facebook, Instagram, Twitter, YouTube, and others. These panels are typically used by individuals or businesses looking to boost their social media presence quickly or improve their social media marketing efforts.

Here's how an [SMM panel](https://smmvaly.com/) generally works:

User Registration: Users need to create an account or register on the SMM panel platform.

Deposit Funds: Users typically need to deposit money into their accounts on the SMM panel to purchase services.

Service Selection: Users browse the panel's services and select the social media services they want to buy (e.g., Instagram followers, Facebook likes, YouTube views).

Input Details: Users provide the necessary information, such as the URL of the post or profile where they want the service to be delivered and the quantity of the service they wish to purchase.

Place an Order: Users place an order for the selected service by clicking a button or submitting the request.

Service Delivery: The SMM panel processes the order, and the services are typically delivered to the user's social media account within a specified timeframe.

SMM panels often offer a range of pricing options and packages, allowing users to choose the number of followers, likes, or other social media interactions they want to purchase based on their needs and budget.

It's important to note that using SMM panels to artificially inflate social media metrics can have both ethical and practical implications. Social media platforms often have policies against fake engagement, and usi[](url)ng SMM panels could result in penalties, such as account suspension or removal of fake followers and likes.

Additionally, relying solely on purchased engagement may not lead to genuine audience growth or engagement, which can be detrimental to long-term social media marketing efforts. Many businesses and individuals prefer to focus on organic growth and engagement strategies to build a real and engaged social media following.

Before using an SMM panel, it's essential to consider the potential risks and drawbacks and to use them responsibly and within the terms of service of the social media platforms you are using.
Image Upload in React Native Expo App via Multer to MongoDB
Published: 2023-09-18 12:02:33

This React Native App based of EXPO and the connection to express server and the database is established, I want to eliminate the errors and get the data in the database. If I have forgotten any information, please let me know.

You find the code below: https://github.com/kjahandel/rn/blob/5d61862d6a84a8d15e3cf7f0e639f135a25966f0/uploadImage
Elevating Your Digital Presence: The Significance of Web Maintenance Services
Tags: webmaintainance, webdev, web
Published: 2023-09-18 12:00:06

In the present computerized scene, [Web Maintenance Services](https://www.americanwebbuilders.com/web-maintenance) are the foundation of a flourishing web-based presence.

## Guaranteeing Relentless Security
Web support administrations reinforce your site's security by routinely fixing weaknesses, safeguarding it from digital dangers.

## Protecting Newness in Satisfied
With occasional updates, your site stays a significant wellspring of data, procuring trust, and upgrading Web optimization rankings.

## Adjusting Execution for Greatness
Execution streamlining ensures quick stacking times, lower skip rates, and further developed client fulfillment.

## Remaining In line with Developing Advances
Web upkeep keeps your website viable with the most recent innovations, guaranteeing consistent access across all gadgets.

## Improving Client Experience
A very much kept up with site offers natural route, responsive plan, and an easy to use interface, taking care of guest needs.

## Conclusion
Embracing web support administrations is the way in to a prosperous web-based presence, cultivating security, client fulfillment, and development.
Evolutionary Architecture by Example 🚀
Tags: architecture, softwaredevelopment, softwareengineering, dotnet
Published: 2023-09-18 11:58:23

Hey there, fellow developers and architects!

We're thrilled to introduce our latest project, the **"Evolutionary Architecture by example"** repository. This collaborative effort, brought to you by Maciej Jedrzejewski and me, represents countless hours of dedication and hard work. Join us on a journey into the intricate world of architectural evolution within the .NET ecosystem.

{% embed https://github.com/evolutionary-architecture/evolutionary-architecture-by-example %}

## What's Inside 🏗️
- In-depth explorations of various architectural styles
- Real-world examples that vividly depict the context and interactive approach to architectural thinking
- One of architecture evolutionary steps diagrams
- Code samples and comprehensive documentation to help you hit the ground running


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

Our primary goal with this project is not just to showcase architectural styles but to provide you with a comprehensive resource for understanding how architecture can adapt and thrive in the ever-changing landscape of software development.

## Why 'Evolutionary Architecture'? 💡
We firmly believe that architecture should not be a one-size-fits-all concept. Instead, it should evolve and adapt as projects and requirements evolve. Our repository aims to empower developers like you with the knowledge and examples needed to make informed architectural decisions.

## We Want Your Feedback 🤔
We're eager to hear your thoughts, feedback, and contributions. Dive into the repo and let us know what you think! Your input will play a crucial role in shaping the future of this project.

Feel free to explore, fork, and contribute to the codebase. Your expertise can help make this resource even more valuable to the community.

Thank you for joining us on this exciting journey into the world of evolutionary architecture. We can't wait to see how it benefits your projects and your understanding of architecture in the .NET ecosystem.

Stay curious, stay innovative, and happy coding! 🚀
Strategic Academic Prep for SY0-401: Your Path to Success
Tags: books
Published: 2023-09-18 11:57:27


Updated CompTIA Security+ certification questions
Active input from our CompTIA certified community members and IT security experts allows us to provide the most up-to-date and relevant practice exam questions. This proven process gives us the confidence to provide a 100% satisfaction and money back guarantee.

CompTIA [url=https://examtopicsfree.com/comptia-exam-dumps/sy0-401-braindump/]SY0 401 Braindump[/url] Certification Practice Test Online
Our online mock practice exam is designed to educate candidates in the skills needed to pass the CompTIA Security+ exam while encouraging them to think outside the box and see the bigger picture. It has proven to be a very reliable and successful learning method compared to sample PDF questions and exam transcripts.
Click Here More Info: https://examtopicsfree.com/comptia-exam-dumps/sy0-401-braindump/
Instagram UI Design in Figma: Create Stunning Visuals in Just 30 Minutes!
Tags: ui, ux
Published: 2023-09-18 11:56:34

{% youtube L4nAwLBRt2U %}
This course or tutorial is likely to be of interest to anyone who wants to learn how to design for Instagram, including graphic designers, web designers, and marketing professionals. It is also likely to be of interest to small business owners and entrepreneurs who want to create their own Instagram branding and visuals.

The course or tutorial is likely to cover topics such as:

The basics of Figma
How to use Figma to create Instagram UI elements such as buttons, icons, and text styles
How to design Instagram posts and stories
How to create a cohesive Instagram branding style
Tips and tricks for designing stunning Instagram visuals
If you are interested in learning how to design for Instagram, this course or tutorial is a great place to start. With its promise of quick and easy results, it is sure to help you create stunning visuals that will engage your audience and help you grow your Instagram following.

Here is a more detailed description of what you can expect to learn in this course or tutorial:

Figma fundamentals: You will learn the basics of Figma, including how to create and use frames, layers, and components. You will also learn how to use Figma's powerful design tools, such as the vector editor and the text editor.
Instagram UI design: You will learn how to use Figma to create all of the essential elements of an Instagram UI, including buttons, icons, text styles, and post and story templates. You will also learn how to design for different screen sizes and devices.
Instagram branding: You will learn how to create a cohesive Instagram branding style, including choosing the right colors, fonts, and imagery. You will also learn how to design Instagram templates that can be easily reused and customized.
Tips and tricks: You will learn tips and tricks for designing stunning Instagram visuals, such as how to use color effectively, how to create engaging typography, and how to use images and videos to tell your story.
By the end of this course or tutorial, you will have the skills and knowledge you need to design beautiful and engaging Instagram user interfaces that will help you achieve your marketing goals.
10 Tips for Getting the Most Out of Amyl Guard Weight Loss Capsules
Published: 2023-09-18 11:54:16

the odds that no one will do it? Several other groupies use that guess also. Despite everything, here's another traveler on that path to this formula. I've learned as that respects a simple Amyl Guard is that it leaves you with less Weight Loss Supplement. That is part of the enchantment. I'm not a polished performer. I just didn't care enough in respect to, this question. I'm not all that well mannered. The sheer amount of monthly disappointments is not a dilemma. I'm not going to talk touching on some info as if this was logical. It whole Amyl Guard silliness reminds me of the popular theory going around many days ago even though this relates to Weight Loss Supplement well, "Life is like a box of chocolates, you never know what you are going to get." You're probably thinking this asking for that intention is very tacky. Can I get a witness? 

OFFICIAL WEBSITE: https://www.outlookindia.com/outlook-spotlight/-alert-2022-amyl-guard-weight-loss-formula-work-or-hype-you-must-know-this-news-238288

Related Article
  
https://www.mid-day.com/brand-media/article/stopwatt-energy-saver-review-is-stop-watt-device-a-scam-or-legit-to-use-dont-buy-until-read-this-23308171

https://www.mid-day.com/lifestyle/infotainment/article/cortexi-scam-exposing-tactics-beware-and-stay-aware-23293381
Sanity CMS, uma alternativa aos altos custos de hospedagem
Tags: react, nextjs, cms, sanityio
Published: 2023-09-18 12:01:38

---
title: Sanity CMS, uma alternativa aos altos custos de hospedagem
published: true
date: 2023-09-18 11:53:57 UTC
tags: react,nextjs,cms,sanityio
canonical_url: https://marcellecode.medium.com/sanity-cms-uma-alternativa-aos-altos-custos-de-hospedagem-3548bc47f871
---

Existem diversos frameworks e CMS’s disponíveis para utilizar e alguns de forma gratuita, desde que você pague um serviço de hospedagem. E é justamente nesse ponto em que o Sanity se diferencia dos demais.

![](https://cdn-images-1.medium.com/max/1024/0*UUV91KZXhmLAwMFw)
_Photo by Anete Lūsiņa on Unsplash_

#### O que é o Sanity ?

O Sanity é um CMS(Content Management System), feito em JavaScript que permite que você organize o conteúdo de um site usando a estrutura de schemas, algo similar ao que é feito no GraphQL e no Strapi (outro CMS javascript). O Sanity também tem suporte para typescript.

#### Quais as vantagens de utilizar de utilizar o Sanity ?

1- Modelagem de conteúdo de acordo com o site

Assim como outros CMS feitos em JavaScript, a possibilidade de modelar o conteúdo de acordo com o site não é algo inovador, mas eu considero um ponto importante na escolha de um CMS.

2- Ter mais de um nível de usuário nos planos gratuitos

Ter a possibilidade de criar um usuário com permissão de administrador e um de editor, ainda no plano gratuito, me permite como desenvolvedora testar como determinadas funções serão exibidas para o usuário final. No plano gratuito, você tem a opção de criar 3 usuários com a role de editor e a quantidade de usuários da role de administrador são ilimitados. Outro detalhe importante é que inclusive os usuários com a role de editor, tem a opção de fazer login via SSO (sem custo adicional).

3- “Generous usage quota”

Nos últimos meses eu tenho procurado diversas alternativas de CMSs gratuitos para testar funcionalidades de desenvolvimento com frameworks como o Next.js. E de vários CMSs que eu testei esse realmente é o que tem a maior cota de uso no plano gratuito. Permitindo o armazenamento de imagens utilizando inclusive a CDN.

![](https://cdn-images-1.medium.com/max/1024/1*LHPDaJv5SDQDkho42xPFCw.png)

Essas são as minhas impressões iniciais e se você dev, está procurando uma ferramenta para desenvolver sem precisar investir alto em ferramentas apenas para estudo. Esse CMS pode ser uma boa opção até o momento.

[Sanity: The Composable Content Cloud](https://www.sanity.io/)
SkyinPlay Betting ID: Your One-Stop Shop for Online Sports Betting
Tags: skyinplay
Published: 2023-09-18 11:51:52

[Skyinplay](https://skyinplay.co.in/) Betting ID is a premier online sportsbook that offers a wide range of betting options on all major sporting events. Whether you're a fan of football, basketball, baseball, hockey, or soccer, [SkyinPlay login](https://skyinplay.co.in/) has something for everyone.

## Create Your SkyinPlay Betting ID Today and Get a 100% Welcome Bonus

It's easy to get started with SkyinPlay Betting ID. Just create an account and make your first deposit, and SkyinPlay will match your deposit dollar for dollar up to $100. This means that you can double your bankroll right away and start betting on your favorite sports teams.

## SkyinPlay Betting ID Offers a Wide Range of Betting Options

SkyinPlay Betting ID offers a wide range of betting options on all major sporting events. You can bet on the moneyline, point spread, totals, and more. SkyinPlay also offers a variety of prop bets, which allow you to bet on specific events within a game, such as the first player to score or the total number of yards that a running back will rush for.

## SkyinPlay Betting ID is Easy to Use and Secure

SkyinPlay Betting ID is easy to use and secure. You can deposit and withdraw funds using a variety of methods, including credit cards, debit cards, and e-wallets. SkyinPlay also uses the latest security technology to protect your personal and financial information.

## Join SkyinPlay Betting ID Today and Start Winning

If you're looking for an online sportsbook that offers a wide range of betting options, easy to use software, and secure transactions, then SkyinPlay Betting ID is the perfect choice for you. Join SkyinPlay today and start winning!

**Here are some additional benefits of using SkyinPlay Betting ID:
**
- Competitive odds on all major sporting events
- Live betting on selected events
- A variety of deposit and withdrawal options
- 24/7 customer support
Laravel 10 Get Random Records from Database Tutorial
Tags: laravel, get, random, record
Published: 2023-09-18 11:43:22

## Laravel 10 Get Random Records from Database Tutorial

You can use the inRandomOrder() method to get random records in Laravel. This method is available in Laravel 5.2 and later.

**Here are some examples of how to use inRandomOrder():
**

```
Post::select('id', 'title', 'slug')->inRandomOrder()->get()
$randomComment = Comment::query() ->inRandomOrder() ->first()
```

Read More [Laravel 10 Get Random Records from Database Tutorial](https://www.tutsmake.com/how-to-get-random-records-in-laravel)