teleren/devto huggingface dataset:
thiết lập môi trường để viết code C/C++ trên Windows với Code::Blocks
Tags: beginners, cpp
Published: 2023-07-19 13:35:10

**Lưu ý**: Nửa sau bài viết có hướng dẫn xử lý cái `kiếp nạn số 1` trên đường thỉnh kinh C/C++

- download bộ cài đặt hoặc bản portable theo hệ điều hành mà mình đang dùng [tại đây](https://www.codeblocks.org/downloads/binaries/) 

- mở `codeblocks.exe` và tạo 1 project mới 

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

- chọn Console application 

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

- chọn C hoặc C++ theo nhu cầu bài tập, bấm Next 

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

- đặt tên project và chọn nơi lưu 

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

- ở màn hình tiếp theo, sẽ chọn Compiler, mặc định là `GNU GCC Compiler`

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

- click Build and Run (hoặc bấm `F9`), và gặp kiếp nạn số 82, à nhầm kiếp nạn số 1, 

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

- đọc lỗi, xử lý lỗi theo [link này](https://dev.to/longtth/cach-xu-ly-loi-khong-chay5-duoc-code-c-trong-codeblocks-tried-to-run-compiler-enumerable-cmingwbingccexe-but-failed-2kio) và `F9` lại thì sẽ nhận được kết quả

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfb2zhy18dv2tpgh8frm.png)
Test post
Tags: test
Published: 2023-07-19 13:30:20

## Lorem ipsum

In publishing and graphic design, lorem ipsum is common placeholder text used to demonstrate the graphic elements of a document or visual presentation, such as web pages, typography, and graphical layout. It is a form of "greeking".

Even though using "lorem ipsum" often arouses curiosity due to its resemblance to classical Latin, it is not intended to have meaning. Where text is visible in a document, people tend to focus on the textual content rather than upon overall presentation, so publishers use lorem ipsum when displaying a typeface or design in order to direct the focus to presentation. "Lorem ipsum" also approximates a typical distribution of letters in English.
Web App Development in MINUTES
Tags: webdev, beginners, tutorial, programming
Published: 2023-07-19 13:30:00

Parmisai is an AI-powered web app development platform that can help you create web apps quickly and easily.

**[JUMP STRAIGHT TO THE AI](https://www.aiforme.wiki/ai/tools/Parmisai)**

Chat with AI to create your initial design: Parmisai's AI can help you brainstorm ideas for your web app, and it can even generate wireframes and mockups.

Customize the code to your liking: Once Parmisai has generated the code for your web app, you can customize it to your liking. You can add or remove features, and you can change the look and feel of your app.

Deploy your app anywhere: Once you're happy with your web app, you can deploy it anywhere. Parmisai supports a variety of deployment options, including Heroku, AWS, and Google Cloud Platform.

Here are some of the benefits of using Parmisai:

Speed: Parmisai can help you create web apps quickly and easily. You can go from idea to deployment in a matter of hours.

Efficiency: Parmisai's AI can help you automate many of the tasks involved in web app development, such as wireframing, prototyping, and coding. This can save you a lot of time and effort.

Cost-effectiveness: Parmisai is a cost-effective way to develop web apps. You only pay for the features you need, and you don't have to hire a team of developers.

Scalability: Parmisai can scale with your needs. As your web app grows, you can add new features and users without having to rewrite the code.

If you're looking for a way to create web apps quickly, easily, and cost-effectively, Parmisai is a great option.

Here are some use cases for Parmisai:

Small businesses: Parmisai can help small businesses create web apps to improve their customer service, marketing, or operations.

Individuals: Parmisai can help individuals create web apps to showcase their work, build a portfolio, or start a side hustle.

Nonprofits: Parmisai can help nonprofits create web apps to raise awareness, collect donations, or provide services to their constituents.

If you're interested in learning more about Parmisai, visit their website or sign up for a free trial.

**[JUMP STRAIGHT TO THE AI](https://www.aiforme.wiki/ai/tools/Parmisai)**
How to render/preview a notification for debugging
Tags: laravel, notification, debug
Published: 2023-07-19 13:09:03

You generally send notification like:

```php
$notification = (new ExampleNotification());
$user->notify($notification);
```

To Debug this and preview, you can do:
```php
$notification = (new ExampleNotification())->toMail('test@test.com');

echo $notification->render();
die();
```
Hash vs OpenStruct in Ruby
Published: 2023-07-19 12:57:13

Hashes and OpenStructs are both data structures in Ruby that store key-value pairs. However, there are some key differences between the two.

Hashes are immutable. Once a hash is created, its keys and values cannot be changed. OpenStructs, on the other hand, are mutable. This means that you can add, remove, and change the keys and values of an OpenStruct after it has been created.

Hashes are more efficient. Hashes are a simpler data structure than OpenStructs, so they are more efficient. This means that they will perform better in terms of speed and memory usage.

OpenStructs are more flexible. OpenStructs are more flexible than hashes because they allow you to define arbitrary methods on the object. This makes them more powerful, but it also makes them less efficient.

In general, you should use a hash if you need a simple, efficient data structure. You should use an OpenStruct if you need a more flexible data structure that allows you to define arbitrary methods.

Here is an example of how to use a hash:
```Ruby

hash = {
  "name" => "Wuletaw Wonte",
  "age" => 30
}

puts hash["name"] # Wuletaw Wonte
```

Here is an example of how to use an OpenStruct:
```Ruby
open_struct = OpenStruct.new(
  name: "Wuletaw Wonte",
  age: 30
)

puts open_struct.name # Wuletaw Wonte
```
As you can see, the code for using a hash and an OpenStruct is very similar. However, the OpenStruct allows you to define the name and age methods, which makes it more flexible.
Day 8: Limit api calls
Tags: javascript, day8, 100daysofcode
Published: 2023-07-19 12:30:00

## Question
Create a function called `limitCalls` that takes a function and a maximum number of calls as arguments. The function should return a closure that only invokes the original function up to the specified maximum number of times.
```typescript
function logMessage(message) {
  console.log(message);
}

const limitedLogMessage = limitCalls(logMessage, 3);

limitedLogMessage('Hello'); // Output: Hello
limitedLogMessage('World'); // Output: World
limitedLogMessage('OpenAI'); // Output: Challenge
limitedLogMessage('Extra call'); // Output: Maximum number of calls reached!
```

🤫 Check the comment below to see answer.
𝟴 𝗔𝗜 𝗧𝗼𝗼𝗹𝘀 𝗧𝗵𝗮𝘁 𝘄𝗶𝗹𝗹 𝗠𝗮𝗸𝗲 𝘆𝗼𝘂 𝗚𝗼 𝗪𝗧𝗙
Tags: webdev, ai, chatgpt, programming
Published: 2023-07-19 12:11:15

Artificial Intelligence (AI) continues to redefine the way we live and work, with groundbreaking innovations that seem straight out of science fiction. From simplifying mundane tasks to revolutionizing entire industries, AI has proven its potential to amaze and astound. In this article, we explore eight awe-inspiring AI tools that will undoubtedly make you go WTF - Wow, That's Fascinating!

💥𝟴 𝗔𝗜 𝗧𝗼𝗼𝗹𝘀 𝗧𝗵𝗮𝘁 𝘄𝗶𝗹𝗹 𝗠𝗮𝗸𝗲 𝘆𝗼𝘂 𝗚𝗼 𝗪𝗧𝗙💥 

📌**Tome.app** - Tome.app is an all-in-one knowledge management tool, empowering you to organize, store, and access your valuable information effortlessly. - https://tome.app/

📌**Boomy.com** -Make Generative music with AI - https://boomy.com/

📌**Andromo.com** - Make android apps with NO CODING - https://www.andromo.com/

📌**Hypotenuse.ai** - Let AI write your content in seconds. 
Without writer’s block. - https://www.hypotenuse.ai/

📌**Cohesive.so** - Cohesive is an AI tool for generating all kinds of content for the internet. - https://cohesive.so/

📌**StockIMG.ai** - Generate logos , wallpaper etc - https://stockimg.ai/

📌**Devfolio.io** - Make portfolio for you - https://devfolio.io/

📌**Undetectable AI** - turn your flagged AI content into high-quality writing - https://undetectable.ai/
Five Programming Tips for Beginners
Tags: tips, programming, beginners, webdev
Published: 2023-07-19 12:09:41

It’s been almost nine months since I first started learning how to code, and what a journey! Along the way, I have made countless mistakes from writing bad code to wasting time on insignificant matters. Not that I regret doing what I did, but quite the opposite of that. Everybody makes mistakes but what distinguishes us is whether we learn from them or not. In this article, I’ll give you tips to avoid repeating the mistakes I did.

**1. Pick one thing and focus on it**
In programming, It can be challenging to decide what to do. Should I do front-end or back-end? Should I do Web or App? JavaScript or Python? It can be disorienting to conclude what to pick. I would personally suggest that you start with the basics, understand how the computer works and somewhat have a general idea of how the internet operates. Once you’ve familiarized yourself with these concepts, you should learn HTML and CSS as you will most likely use these two frequently regardless of what field you pick.

**2. Don’t waste time on Tutorials**
This is without a doubt, one of the most commonly practiced mistakes beginners make. You search for a tutorial on youtube and nearly every video claims to take you from zero to hero. Well I don’t deny the possibility of this claim, it’s just that watching a programming tutorial on youtube is no different from watching ‘’how to make pizza ‘’ if you won’t attempt to cook it.
You need to apply what you’ve learned in a tutorial in a real-life project to retain the knowledge.

**3. Build Something !!**
Well, chances are you are not Linus Torvalds or Tim Berners. But I still can’t emphasize enough on building projects. It doesn’t have to be Netflix or Facebook. Just build something. This is the most effective strategy you can implement, it will make you think and challenge your brain. Don’t give up when you run into a brick wall of errors, errors are inevitable. Google possible solutions, scroll through stack-overflow, use chatGPT, and take a break but don’t give up. Once the bugs are fixed you will get the dopamine hit and even have the confidence to conquer the world.

**4. Ask For Help**
You’ll encounter obstacles and difficulties along the way. It might be programming-related, personal, or even mental. It’s always important to take good care of your well-being and not rot yourself in hell. Make sure that you do not burden yourself with matters you can’t control. Find a mentor who can guide you throughout your journey and show you the way forward.

**5. Don’t compare yourself with others**
Everyone is special in a different way. Your friends might be quicker at grasping concepts faster than you, some might be good with communication skills and land a job before you. But let that not bother you at all. Always remain consistent, sharpen your skills, and iterate over and over again until you become good at what you do.
What are the odds that you’re the future of something big??

And there you go, five tips on how to improve yourself and become a better programmer. I hope these tips will help you throughout your journey.
MongoDB: NoSQL Veritabanının Gücü
Published: 2023-07-19 12:04:30

## Giriş

MongoDB, günümüzün modern uygulama geliştirme ihtiyaçlarını karşılamak üzere tasarlanmış bir **NoSQL** (Not Only SQL) veritabanı yönetim sistemidir. İsmi "humongous" (muazzam) ve "DB" (veritabanı) kelimelerinin birleşiminden alan MongoDB, verileri belgelere dayalı bir şekilde depolar ve bu sayede geleneksel ilişkisel veritabanı sistemlerinden farklı bir yaklaşım sunar.

## Temel Özellikler

### Esnek Şema ve Alanlar

MongoDB'nin esnek şema yapısı, uygulama verilerinin hızlı bir şekilde evrim geçirmesine olanak tanır. İlişkisel veritabanlarında olduğu gibi önceden tanımlanmış bir şemaya bağlı kalmak zorunda değilsiniz. Her belge kendi alanlarını tanımlar ve bu sayede veritabanı üzerinde daha fazla esneklik sağlanır.

### Yüksek Ölçeklenebilirlik

MongoDB, dağıtık bir veritabanı yönetim sistemidir ve yüksek ölçeklenebilirlik özelliği sunar. Veritabanını bir dizi sunucuya dağıtarak yükü paylaştırabilir ve performansı artırabilirsiniz. Bu da, büyük hacimli verileri işlemek ve yüksek trafikli uygulamalarda veritabanı hızını korumak için idealdir.

### Hızlı Sorgular

MongoDB, verileri JSON benzeri belge formatında sakladığı için belge tabanlı sorgulama sunar. Bu, veritabanından daha hızlı sorgular yapmanıza ve verilere daha hızlı erişmenize olanak tanır. Ayrıca, veritabanına indeksler ekleyerek sorgu performansını daha da artırabilirsiniz.

### Güçlü Sorgu Dili

MongoDB, zengin bir sorgu dili olan MongoDB Query Language (MQL) ile birlikte gelir. MQL, belirli alanlara, değerlere, mantıksal operatörlere ve diğer sorgu özelliklerine dayalı sorgular yapmanızı sağlar. Sorgu dilinde yerleşik destek, karmaşık sorguları kolaylaştırır.

### Yedekleme ve Çoğaltma

MongoDB, verilerin yedeklenmesi ve çoğaltılması konusunda esnek seçenekler sunar. Verilerin otomatik olarak çoğaltılması, yüksek kullanılabilirlik sağlar ve veritabanı hizmetinin kesintisiz çalışmasını sağlar. Ayrıca, verilerin zaman içindeki durumlarını geri yüklemek için yedekleme ve geri alma işlemlerini destekler.

## Kullanım Alanları

MongoDB, geniş bir kullanım alanına sahiptir ve çeşitli uygulama senaryoları için uygundur. İşte MongoDB'nin yaygın kullanım alanlarından bazıları:

- Büyük Veri ve Analitik
- Gerçek Zamanlı Uygulamalar
- İçerik Yönetimi Sistemleri
- Kişiselleştirme ve Veri Analitiği

MongoDB, esneklik, ölçeklenebilirlik, hızlı sorgulama yetenekleri ve belge tabanlı veri modeli gibi özellikleriyle günümüzün modern uygulama geliştirme ihtiyaçlarına cevap veren güçlü bir NoSQL veritabanı yönetim sistemidir.
What is Event Bubbling? event bubbling in JS
Tags: javascript, tutorial, programming, development
Published: 2023-07-19 12:02:48

Event bubbling in JavaScript refers to the way events are handled and propagated through the different elements of a webpage. When an event occurs on an element, such as a button click, the event doesn't just trigger on that specific element. Instead, it also triggers on its parent elements, all the way up to the topmost element (usually the document).

Imagine a scenario where you have a button inside a div, and that div is inside another div. If you click the button, the click event will not only be detected by the button itself but also by its parent div and the outer div.

This bubbling behavior allows you to capture events at different levels of the DOM hierarchy. For example, you can have a single event listener attached to the outer div, and it will be triggered for events that occur on the button, the inner div, or the outer div itself.

Event bubbling can be useful because it simplifies event handling. Instead of attaching event listeners to each individual element, you can attach a single listener to a parent element and let the event bubble up to it. This reduces the amount of code you need to write and makes it easier to manage events.

However, in some cases, you may want to stop the event from bubbling further up the DOM hierarchy. You can use the `event.stopPropagation()` method inside an event handler to prevent the event from triggering on parent elements. This can be handy when you want to isolate the event handling to a specific element and prevent any further handling by its ancestors.

In summary, event bubbling in JavaScript refers to the propagation of events from a child element to its parent elements. It simplifies event handling by allowing you to capture events at higher levels in the DOM hierarchy.

Thank you for reading this blog, follow me on Twitter, I regularly share blogs and post on Javascript, React, Web development and opensource contribution

Twitter- https://twitter.com/Diwakar_766

Github- https://github.com/DIWAKARKASHYAP
Navigating Your Path to Global Education: Study Abroad Consultants in India are Your Trusted Guides
Tags: education
Published: 2023-07-19 11:34:53

Embarking on an exciting and transformative journey of studying abroad can be both thrilling and overwhelming. Fortunately, in India, there is a dedicated network of study abroad consultants ready to provide invaluable assistance. With a focus on Delhi, the bustling capital city, these consultants offer expert guidance to students aspiring to pursue international education.

Exploring the Wealth of Study Abroad Consultants in Delhi:
Delhi, a vibrant metropolis in India, is home to a diverse range of study abroad consultants who possess extensive knowledge and experience in guiding students through the intricate process of studying abroad. These consultants are well-versed in various universities, programs, countries, and scholarship opportunities. They play a crucial role in helping students make informed decisions about their educational journey.

[Study Abroad Consultants in India](https://universta.com/study-abroad/): Your Comprehensive Solution:
India, as a thriving hub for international students, offers a multitude of study abroad consultants beyond Delhi. These consultants provide comprehensive services, starting from assisting students in selecting the most suitable university and program to guiding them through the application process, visa requirements, financial planning, and even pre-departure orientations. Leveraging their expertise and network, they simplify the complex study abroad process, ensuring students can make the most of their international education opportunities.

Benefits of Engaging Study Abroad Consultants:
Engaging the services of study abroad consultants comes with a myriad of benefits. Firstly, these consultants possess in-depth knowledge about universities worldwide, enabling them to recommend institutions that align perfectly with students' preferences, academic strengths, and career aspirations. They offer guidance on admission requirements, standardized tests (such as the SAT, ACT, or IELTS), and scholarship opportunities, greatly enhancing students' chances of acceptance and securing financial aid. Additionally, study abroad consultants assist with visa applications, providing valuable insights into the required documentation and simplifying the entire process. With their support, students can transition smoothly from their home country to their chosen study destination.

In Conclusion:
Study abroad consultants in India, including those in Delhi, serve as trusted guides and mentors for students embarking on the exciting journey of international education. Their expertise, knowledge, and personalized guidance make studying abroad a more accessible and rewarding experience. By availing the services of these consultants, students can confidently navigate the complexities of the process, unlocking a world of opportunities in global education.
The Best Online Tools Website
Published: 2023-07-19 11:33:42

Today now you all can go and review one the best online tool website. Which is mind blowing. It has various typing tool to Magic tricks which blows your mind. You can check the links. I will share those below and comment your thoughts and experice.

[The Ultimate Love Calculator](https://webtecky.net/love-calculator)
[Urdu Typing Free](https://webtecky.net/urdu-typing)
[Malayalam Typing tool](https://webtecky.net/malayalam-typing)
[Flip a coin online](https://webtecky.net/flip-a-coin-online)
[Hindi Typing Online](https://webtecky.net/hindi-typing)
[Mind Reading Tool](https://webtecky.net/mind-reader-online)
[Voice Typing Malayalam](https://webtecky.net/malayalam-voice-typing)
[Arabic Typing Online](https://webtecky.net/arabic-typing)
If anyone can change Open Source code then how can we trust it?
Tags: opensource, beginners, programming
Published: 2023-07-19 11:07:17

---
title: If anyone can change Open Source code then how can we trust it?
published: true
description: It can be scary if one does not understand that the owner retains full control over the open source project even while others can make changes to the copies of the project.
tags: opensource, beginners, programming
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-07-19 10:46 +0000
---

One of the big advantages of Free an Open Source software is that you can study the code and change the code.

Many people attending my [training classes](https://szabgab.com/) who are not familiar with the open source development model yet are worried that **if anyone can change the code then how can we trust the code?**

I bet others who have not yet attended any of my classes also wonder about this.

The answer is simple.

There is a central place where the creator of the project (let's call her the "vendor") distributes the source code of the projects. Anyone can copy the source code from there and make local changes. Anyone can also re-distribute the changes version of the software under their own name, but only the vendor can change the code on the official distribution place of the project.

## Open Source projects on GitHub

Every Open Source project on GitHub has an owner. Only the owner and maybe a few others the owner trusts can make changes to official repository of the project.

All the other people need to `fork` the repository, make changes on their own **copy** of the project and then the need to send a **pull-request** asking the owner to integrate the proposed changes into the official repository of the project.

## Control

So the control remains with the owner and people the owner trusts.

## Conclusion

Maybe instead of saying that "anyone can change the source code" a clearer phrasing would be "anyone can change **a copy** of the source code".