teleren/devto huggingface dataset:
Vertical or Horizontal Scale?
Tags: systemdesign, designsystem
Published: 2024-06-10 02:10:06

## System Design

### Horizontal Scaling or Vertical Scaling?

Hi, this is my first article in English, so I apologize for any mistakes. I'm trying to improve my English each day. In this article, I will explain some basic principles of system design for beginners.

### Scenario

Imagine that you have built software and an API. Suddenly, you get more and more users, and your application starts experiencing timeouts. You need to increase the capacity of your server. 

What is the best way to scale your server?

### Vertical Scaling

Vertical scaling involves upgrading a single machine with more resources—such as memory, processor, and disk space—instead of adding more machines.

### Horizontal Scaling

Horizontal scaling involves adding more machines to your infrastructure, increasing the number of servers rather than the resources of a single server.

### Which is the Best Choice?

It depends on various factors. Below are some good and bad points of each design:

#### Vertical Scaling

| Good Points                                    | Bad Points                |
| ---------------------------------------------- | ------------------------- |
| Consistent data                                | Single point of failure   |
| Single point of process                        | Hardware limits           |
| Small infrastructure (no need for load balancer)|                           |

#### Horizontal Scaling

| Good Points              | Bad Points                  |
| ------------------------ | --------------------------- |
| Scales well              | Potential data inconsistency|
| Resilient                | Many network calls          |
| Good for increasing users| More expensive to maintain  |
|                          | Larger infrastructure       |

As we can see, there are many good and bad points for each design. Horizontal scaling tends to have more complexity and costs but can handle more users and provide better resilience. 

Key questions to consider:
- Is data consistency very important to you?
- Can a single point of failure destroy your company?
- Are your users critical?
- Does your company have a perspective to increase users?

These considerations can help you choose the best option. Normally, in early stages of a company, vertical scaling is the best way. However, at some point, a single machine might not be enough to support your growth.

Unfortunately, there is no definitive answer to these questions—it depends on your specific situation and moment.
Expertoapk - Encuentra tus juegos y aplicaciones APK favoritos
Tags: webdev
Published: 2024-06-10 02:04:47

ExpertoAPK, es uno de los mejores sitios web para descargar aplicaciones y juegos para dispositivos Android e iOS. Compartimos los últimos archivos APK de aplicaciones/juegos y MOD APK para disfrutar de las funciones premium pagas de tus aplicaciones y jue

Website: [https://expertoapk.com/](https://expertoapk.com/)
[DAY 48-53] I Built A Pokemon Search App
Tags: beginners, learning, javascript, css
Published: 2024-06-10 02:02:45

Hi everyone! Welcome back to another blog where I document the things I learned in web development. I do this because it helps retain the information and concepts as it is some sort of an active recall.

On days 48-53, I built a pokemon search app to complete the data structures & algorithms certification project in freecodecamp.

I also built an authors page and a forum leaderboard to learn about fetch API, promises, and asynchronous programming.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xedxpkiuqgeof1y4fvon.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0j1eilvkj3k5ywbnkoz.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nd41s97py81g0k60nhsz.PNG)

In the pokemon search app, the program works by just simply inputting the name of the pokemon or its ID and then it'll output its stats, image, and types.

While building this project, I struggled in making one of the functions work and took me a while to figure it out that I almost did not complete the project.

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

The reason is because whenever I click the left and right buttons to scroll through images, the images of the pokemon duplicate. This is because my fetch API function is within the search button event listener and within my fetch API function is another event listener for the left and right buttons. This means that my code has multiple event listeners.

When dealing with multiple event listeners, I just learned that I need to remove the event listener from the left and right buttons before adding them again. This is to prevent duplicates of images which cause a visual glitch in my app.

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

Moving on, in building the authors page and the forum leaderboard, I have to be honest that I only learned the syntax of fetch API and the concept of async programming. At the end of the day, it was the pokemon search app that taught me how to apply that knowledge to code. Unguided problem solving is still king when it comes to active learning.

However, we all still need guided learning from time to time.

Personally, I use freecodecamp's courses as a way to easily learn the basics and syntax because their courses are engaging and interactive which encourages active learning. From then on, I move on to unguided problem solving.

Unlike other beginners, I don't watch tutorials unless I will code with them and change something after.

When learning a new thing, I try my best to stay away from passive learning. I always rush to actual problem solving and ask questions along the way.

It worked for me in the past when I was studying for my licensure exam in civil engineering and it’s working for me now that I am 2 months into my coding journey.

Anyways, that’s all for now, more updates in my next blog! See you there!
Trainer’s win By Press Gazette Graham Atkins Solicitor
Published: 2024-06-10 01:51:29

Racehorse trainer Paul D’Arcy has accepted substantial damages and a formal apology from the publishers of the Evening Star , Ipswich, after allegations that he behaved “unprofessionally, unlawfully and disgracefully” during the sale of colt Indian Haven. 
D’Arcy sued publishers Archant over the 4 June 2003 article, in which it was claimed that he had sold the horse without considering the interest of former international footballer Alan Brazil, who the Star claimed was the co-owner of Indian Haven.
D’Arcy’s solicitor advocate, Graham Atkins, told the High Court the article suggested that his client had “conducted himself unprofessionally, unlawfully and disgracefully” during the sale, and had acted “in flagrant disregard” of Brazil.
However, he said Brazil was never a registered owner of the horse.
He said that Archant had apologised for the damage caused and agreed to publish an apology in the Evening Star, as well as the damages and costs arising from the action. [Read more----->>>>](https://pressgazette.co.uk/archive-content/trainers-win/)
Graham Atkins Solicitor
Published: 2024-06-10 01:46:00

Graham is widely-acknowledged as a leading libel, privacy and reputation management lawyer, recognised in the media, the Legal 500, Chambers and Spears for many years. He has 30 years’ experience in his field, qualifying at Dentons, then working at media and commercial firms before founding predecessor firms Atkins Solicitors, Atkins Thomson (Top Rank Legal 500) and then continuing his work with Rob Dellow and the team at Atkins Dellow. Read more: [https://www.vevioz.com/grahamatkins](https://www.vevioz.com/grahamatkins)
Lawyer of the week: Graham Atkins Solicitor
Published: 2024-06-10 01:44:01

Graham Atkins Solicitor , a partner at Atkins Thomson, acted for President Poroshenko of Ukraine in a libel action against the BBC over allegations that £300,000 was paid to extend talks between him and President Trump The BBC accepted the claim was completely untrue, apologised and paid £50,000 damages plus. [Read more--->>>>](https://issuu.com/grahamatkins/docs/lawyer_of_the_week_graham_atkins_solicitor_who_ac)
Cherie Blair starts hacking legal case — Graham Atkins Solicitor
Published: 2024-06-10 01:37:20

Cherie Blair is a barrister and campaigner for prison reform. Cherie Blair has started legal proceedings over phone hacking, her solicitor has confirmed. 
The wife of former Prime Minister Tony Blair, herself a prominent barrister, launched a claim on Tuesday.

Mrs Blair’s [Graham Atkins Solicitor](https://atkinsdellow.com/contact/) confirmed a claim had been made “in relation to the unlawful interception of her voicemails”. She is thought to be suing News Group Newspapers, but a News International spokeswoman declined to comment. The now-defunct News of the World (NoW) was published by News Group, part of News International, which is a subsidiary of Rupert Murdoch’s News Corporation.

Various public figures have settled legal claims over hacking with News Group. Mrs Blair left Downing Street when Mr Blair resigned as prime minister in 2007.

She still works as a barrister, is a campaigner for prison reform and makes high-profile appearances — most recently at the first meeting of the International Council on Women’s Business Leadership in Washington in January, alongside US Secretary of State Hillary Clinton.

In November, Mr Blair’s former press secretary Alastair Campbell told the Leveson Inquiry into media ethics he had suspected Mrs Blair’s friend Carole Caplin of tipping off newspapers about her.

He told the inquiry: “During various periods of the time that we were in government, we were very, very concerned about how many stories about Cherie and Carole Caplin were getting out to different parts of the media.

“I had no idea how they were getting out. In relation to not just Carole, and not just Cherie, but all of us who were involved in the government at that time, all sorts of stuff got out.

“Some of it may have got out because people who were within the government were putting it out there. Perhaps. That does happen.

“But equally there were all sorts of stories where you would just sit there scratching your head thinking, ‘How the hell did that get out?’”

Since the phone-hacking allegations had emerged, Mr Campbell said he had changed his mind.

“I did at times directly accuse Carole Caplin of tipping off newspapers about what she was up to. I’ve since apologised to her for that because I now realise I was completely wrong,” he said.

BBC home affairs correspondent Danny Shaw said the legal move by Mrs Blair may have been influenced by Mr Campbell’s comments.

Our correspondent said Mr Campbell’s evidence provided an insight into concerns that newspapers always seemed to know what her engagements were and that he said he had never been able to ascertain how news of Mrs Blair’s pregnancy in 1999 was obtained by the press. [Read more ----->>>>>](https://www.bbc.com/news/uk-17133210)
Sử dụng MongoDB hiệu quả trong Nodejs
Tags: mongodb, webdev, javascript, node
Published: 2024-06-10 01:35:46

**MongoDB** là một database hướng tài liệu (document), một dạng NoSQL database. Vì thế, MongoDB sẽ tránh cấu trúc table-based của relational database để thích ứng với các tài liệu như JSON có một schema rất linh hoạt gọi là BSON. MongoDB sử dụng lưu trữ dữ liệu dưới dạng Document JSON nên mỗi một collection sẽ các các kích cỡ và các document khác nhau. Các dữ liệu được lưu trữ trong document kiểu JSON nên truy vấn sẽ rất nhanh. ![MongoDB](https://imgproxy4.tinhte.vn/_AFLmh6SdsDeF-741pmNQuTJdYFuorh2QEJWWExrgj8/w:600/plain/https://wiki.tino.org/wp-content/uploads/2021/05/word-image-954.png)

## 1. Khi nào nên dùng MongoDB?

Ví dụ như các hệ thống realtime (thời gian thực) yêu cầu phản hồi nhanh, Các hệ thống bigdata với yêu cầu truy vấn nhanh hay các hệ thống có lượng request lớn thì MongoDB sẽ là sự lựa chọn ưu tiên hơn CSDL quan hệ. Tùy theo dự án và trường hợp cụ thể để sử dụng CSDL quan hệ hay sử dụng MongoDB đem lại hiệu quả cao.

## 2. Ưu điểm của MongoDB

- Dữ liệu lưu trữ phi cấu trúc, không có tính ràng buộc, toàn vẹn nên tính sẵn sàng cao, hiệu suất lớn và dễ dàng mở rộng lưu trữ.
- Dữ liệu được caching (ghi đệm) lên RAM, hạn chế truy cập vào ổ cứng nên tốc độ đọc và ghi cao.


## 3. Nhược điểm của MongoDB

- Không ứng dụng được cho các mô hình giao dịch nào có yêu cầu độ chính xác cao do không có ràng buộc.
- Không có cơ chế transaction (giao dịch) để phục vụ các ứng dụng ngân hàng.
- Dữ liệu lấy RAM làm trọng tâm hoạt động vì vậy khi hoạt động yêu cầu một bộ nhớ RAM lớn.
- Mọi thay đổi về dữ liệu mặc định đều chưa được ghi xuống ổ cứng ngay lập tức vì vậy khả năng bị mất dữ liệu từ nguyên nhân mất điện đột xuất là rất cao.


**Xem chi tiết “Cách Kết Nối MongoDB Trong Nodejs” tại:**
 
[Cách Kết Nối MongoDB Trong Nodejs](https://devful-blog.vercel.app/blogs/cach-ket-noi-mongodb-trong-nodejs)

**Website mà mọi người có thể xem thêm nhiều bài viết blog hay về công nghệ thông tin** [Devful Blog](https://devful-blog.vercel.app/) (sẽ vô cùng hữu ích cho mọi người đấy nhé)
Lawyer of the week: Graham Atkins, solicitor who acted for Poroshenko in BBC libel case
Published: 2024-06-10 01:33:43

Graham Atkins, a partner at Atkins Thomson, acted for President Poroshenko of Ukraine in a libel action against the BBC over allegations that £300,000 was paid to extend talks between him and President Trump. The BBC accepted the claim was completely untrue, apologised and paid £50,000 damages plus legal costs. 

[Graham Atkins Solicitor](https://atkinsdellow.com/)

What were the main issues in this case?

Foreign heads of state rarely take libel action in England, so it was not straightforward. We succeeded in a preliminary hearing on meaning — the judge ruled that the broadcast and article meant the president authorised or procured a corrupt payment through a back channel to President Trump. The allegation was obviously gravely damaging, not just here, but globally. [Read more---->>>>](https://www.thetimes.co.uk/article/lawyer-of-the-week-graham-atkins-solicitor-who-acted-for-poroshenko-in-bbc-libel-case-sldjgcjw6)
How I Built My Own Personalized Google: A Step-by-Step Guide to AI Mastery
Tags: machinelearning, rag, ai
Published: 2024-06-10 01:31:51

Meet My Google: Your Own Simple, Personalized AI Search, Tailor-Made

[Full Article] (https://medium.com/ai-in-plain-english/how-i-built-my-own-personalized-google-a-step-by-step-guide-to-ai-mastery-af0eccc11883)

**What is This Article About?**
○ This article provides a step-by-step guide on building a personalized Google-like search engine using AI technology.
○ It covers the process of crawling websites, selecting relevant sites, indexing their content, and creating a natural language search interface powered by a retrieval-augmented generation (RAG) model.
○ The focus is on the steps after web crawling, such as filtering and indexing the crawled data, and building the search interface.

**Why Read It?**
○ Understand how to leverage AI and natural language processing (NLP) technologies to build a powerful search tool that can understand and respond to natural language queries.
○ Discover the power of combining different technologies like text embedding, vector search, and language models to create a sophisticated and personalized search experience.

**Let's Design**
The article describes the design of various components, including:
Index Selector, Indexer and Vector Database: Indexes the content from the selected URLs using techniques like text splitting, embedding generation, and vector storage (Chroma vector db).
Large Language Model (LLM): Integrates a large language model for understanding and generating natural language responses.
User Interface (UI)
Retrieval and Response Generation: Leverages the LLM to retrieve relevant information from the indexed data and generate coherent responses.

**Let's Get Cooking!**
○ The article provides a GitHub repository link with the code for the project. ○ It explains that the code is concise and modular, making it an excellent learning experience for exploring practical applications of AI technologies.
○ The article then breaks down the code into three main modules:
Index Selector Module: Filters active URLs from a JSON file containing web crawler data.
Indexer Module: Indexes the content from the active URLs using techniques like text splitting, embedding generation, and vector storage.
Aoogle Module: user-friendly interface

**Closing thoughts**
○ Building a personalized search engine is no longer limited to tech giants like Google, thanks to advancements in AI and NLP technologies.
○ By following the steps outlined in the article, readers can gain a deeper understanding of how search engines work and acquire practical skills in combining different AI technologies to solve complex problems.
Top Methods to Find GitHub Users
Tags: javascript, beginners, opensource, github
Published: 2024-06-10 01:14:10

### Project:- 7/500 GitHub User Finder project.

## Description

The GitHub User Finder is a web application designed to help users quickly and easily find GitHub profiles and view their details. By simply entering a GitHub username, users can retrieve profile information such as repositories, followers, following, and more. This tool is particularly useful for developers, recruiters, and anyone interested in exploring GitHub profiles efficiently.

## Features

- **Search GitHub Users**: Enter a GitHub username to fetch and display user profile information.
- **Profile Details**: View detailed information about the user including avatar, bio, repositories, followers, and following.
- **Repository List**: Display a list of public repositories with links to each repository.

## Technologies Used

- **JavaScript**: For dynamic interactions and API requests.
- **HTML**: To structure the web pages.
- **CSS**: For styling the application.

## Setup

Follow these instructions to set up and run the GitHub User Finder project on your local machine:

1. **Clone the repository**:
    ```sh
    git clone https://github.com/deepakkumar55/ULTIMATE-JAVASCRIPT-PROJECT.git
    ```

2. **Navigate to the project directory**:
    ```sh
    cd Web Scraping and API Projects/1-github_user_finder
    ```

3. **Open the project**:
    Open `index.html` in your preferred web browser to view the application.

4. **Usage**:
    - Enter a GitHub username in the search bar and click on the search button.
    - The user's profile information will be displayed on the screen.

## Contribution

Contributions are welcome! To contribute to the GitHub User Finder project, follow these steps:

1. **Fork the repository**:
    Click the "Fork" button on the top right corner of the repository page.

2. **Clone your forked repository**:
    ```sh
    git clone https://github.com/deepakkumar55/ULTIMATE-JAVASCRIPT-PROJECT.git
    ```

3. **Create a new branch**:
    ```sh
    git checkout -b feature/your-feature-name
    ```

4. **Make your changes**:
    Implement your feature or fix a bug.

5. **Commit your changes**:
    ```sh
    git commit -m "Add your feature or fix description"
    ```

6. **Push to your forked repository**:
    ```sh
    git push origin feature/your-feature-name
    ```

7. **Create a pull request**:
    Go to the original repository on GitHub and click on the "New Pull Request" button. Fill in the necessary details and submit.

## Get in Touch

If you have any questions or need further assistance, feel free to open an issue on GitHub or contact us directly. Your contributions and feedback are highly appreciated!

---

Thank you for your interest in the GitHub User Finder project. Together, we can build a more robust and feature-rich application. Happy coding!
SLOT ALLO BANK 💎 SENSASIBET77 AGEN SLOT POPULER MUDAH JACKPOT TANPA BATAS
Tags: slotallobank, agenslotallobank, sensasibet77, slotallobank5000
Published: 2024-06-10 01:08:00

💗 𝐋𝐈𝐍𝐊 𝐃𝐀𝐅𝐓𝐀𝐑 ❱❱ ([KLIK DISINI](https://heylink.me/sensasibet77.com/))
💗 𝐋𝐈𝐍𝐊 𝐃𝐀𝐅𝐓𝐀𝐑 ❱❱ ([KLIK DISINI](https://heylink.me/sensasibet77.com/))

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

Sensasibet77 - Slot Allo Bank merupakan bandar judi online resmi paling populer dan terpercaya di Indonesia, Slot Allo Bank memiliki popularitas tinggi yang menjadi incaran terbaru para pemain slot di Indonesia.

Di Agen Situs Terpercaya Sensasibet77 kamu dapat mendaftar menggunakan APK Allo Bank dimana aplikasi Allo Bank sangat membantu para pemain judi online untuk berkembang jauh lebih banyak dari sebelumnya karena slot deposit melalui Allo Bank memudahkan transaksi ketika ingin melakukan pembayaran.

Kini, orang yang ingin bermain game judi online khususnya slot tidak perlu khawatir kehabisan saldo kartu kreditnya karena aplikasi Allo Bank dapat memberikan dampak yang signifikan terhadap judi online di Indonesia.

**Cara Melakukan Registrasi Di Situs Slot Allo Bank Sensasibet77 Sebagai Berikut ini:**

- User ID Yang Diinginkan :
- Nama Lengkap :
- No HP :
- Email :
- Kode Referral ( Jika ada ) :
- Nomor Rekening :
- Atas Nama Rekening :
- Nama Bank :

Setelah data-datanya anda isi semua sekaang anda tinggal klik tombol daftar dan akun anda sudah bisa di loginkan untuk bermain slot online deposit Allo Bank Sensasibet77, ups jangan lupa untuk tranfer saldo dulu ke rekening bank/awalet sesuai dengan nomor rekening yang terdaftar di Sensasibet77 agen slot resmi terpercaya.


**FAQ - Pertanyaan Umum Tentang Agen Slot Online Sensasibet77 Deposit Allo Bank**

1. Apa itu slot deposit Allo Bank?

Slot deposit Allo Bank adalah sarana transaksi deposit dan withdraw menggunakan aplikasi Allo Bank.


2. Berapakah jumlah deposit yang diperlukan agar bisa bermain di slot Allo Bank Sensasibet77?

Untuk bermain disitus slot deposit Allo Bank sangat lah terjangkau karena minimal deposit hanya 5000 ribu saja anda sudah bisa bermain di semua jenis permainan yang ada di Sensasibet77.


3. Bagaimana cara pendaftaran di situs slot Allo Bank?

Untuk mendaftarkan akun anda di agen slot deposit Allo Bank Sensasibet77 sangat lah mudah sekali anda cukup mengikuti tutorial daftar setelah anda masuk terlebih dahulu di web Sensasibet77, anda tinggal meng klik tombol DAFTAR yang sudah tersedia di web Sensasibet77 lalu isi formulir yang telah
Reading Laravel
Published: 2024-06-10 00:58:40

Hi there. I've been working with Laravel for about 6 years now, but never read the framework code (which is expected, I think :P). Got curious about how it's written and started doing that for a few days now and it is both a fun and educational process . It requires some basic programming knowledge, but it feels really good to understand exactly how things work. I'm documenting that on youtube ([link to the first episode here](https://www.youtube.com/watch?v=YZLiH5tHqdw&t=4s)), would love to share ideas with others that might find this interesting.