teleren/devto huggingface dataset:
Demystifying the Difference: Process vs. Thread 🧵
Tags: beginners, programming
Published: 2023-11-10 10:05:38

## Understanding the Basics
To unravel the age-old interview question – "What is the difference between Process and Thread?" – we need to start with a fundamental concept: the Program.

![Process vs. Thread](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uzptni165c24cdbat8o9.png)

- **Program**
An executable file housing a set of instructions, quietly residing on disk. A program can spawn multiple processes. Take the Chrome browser, for instance, which initiates a distinct process for each tab.

- **Process**
The manifestation of a program in execution. When a program is loaded into memory and springs to life, it transforms into a process. Crucial resources like registers, program counters, and stacks are requisitioned by a process.

- **Thread**
The smallest unit of execution within a process.

### The sequential steps outlined below delineate the connection among a program, process, and thread:

1. A program encompasses a series of instructions.
2. Upon loading into memory, the program transforms into one or more active processes.
3. Upon initiation of a process, it is allocated memory and resources. A process may host one or more threads. For instance, in applications like Microsoft Word, a thread could manage spellchecking, while another thread handles the insertion of text into the document.

### Key Distinctions (Processes vs. Threads)

- **Independence**
Processes are standalone entities, while threads exist as subsets within processes.

- **Memory Space 💾**
Each process maintains its discrete memory space, whereas threads within the same process share memory.

- **Weight 🏋️‍♂️**
Processes are resource-intensive, requiring more time for creation and termination.

- **Context Switching ⏩**
Shifting between processes incurs higher costs compared to thread context switching.

- **Communication Speed 🚀**
Threads facilitate faster inter-thread communication than processes.

Grasping the subtle differences between processes and threads is essential for anyone delving into computer science. Whether preparing for an interview or seeking to enhance knowledge, this breakdown strives to illuminate the key distinctions. Happy coding! ✨👩‍💻🚀
What was your win this week?
Tags: discuss, weeklyretro
Published: 2023-11-10 10:00:00

Heyo 👋 

Hope that everybody is enjoying their weekend. 🙌 

Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉 

Examples of 'wins' include: 
- Starting a new project
- Fixing a tricky bug
- Going go-karting with friends 🏎

---

![Two dudes dressed up as Mario and Luigi. They're racing around a shopping center (possibly a grocery store) in motorized shopping cart scooters. The one dressed as Mario throws a banana and Luigi runs over it, his cart swerves out of control, and Mario fist pumps in celebration.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tboyhna7lvszfyckmiq9.gif)

---

**_Did you know we feature wins in our "Wins of the Week" email every Friday? [Subscribe to our weekly newsletter emails](https://dev.to/settings/notifications) to get wins delivered right to your inbox!_** 💌
HacktoberFest 2023
Tags: hack23contributor
Published: 2023-11-10 09:52:33

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### 🎉 Hacktoberfest 2023 Completed! 🚀
I'm thrilled to announce that I've successfully completed Hacktoberfest 2023! 🌟 This month-long celebration of open source has been an incredible journey, and I'm proud to have contributed to the global community of developers.

### 🔗 My Contributions:
During Hacktoberfest, I had the opportunity to work on some exciting projects and make meaningful contributions. From fixing bugs to adding new features, every pull request was a step forward in my coding journey.

### 🙏 Thanks to the Open Source Community:
I want to express my gratitude to the amazing open source community for being so welcoming and supportive. The collaborative spirit and the sense of shared knowledge are what make events like Hacktoberfest truly special.

Once again, a heartfelt thank you to everyone who made Hacktoberfest 2023 a memorable experience. Let's continue building, learning, and coding together!

### #Hacktoberfest #OpenSource #CodingJourney #DeveloperCommunity 🚀
Unveiling Elegance: Bin Saeed's Unstitched Collection 2023 - A Tapestry of Timeless Style
Tags: shopping, binsaeed
Published: 2023-11-10 09:49:33

In the heart of Pakistan's thriving fashion scene, Bin Saeed has once again raised the bar with its much-anticipated Unstitched Collection for the year 2023. Renowned for its commitment to craftsmanship and tradition, Bin Saeed brings forth a collection that is not just clothing but a testament to timeless style.

This year's Unstitched Collection is a celebration of the brand's dedication to quality, design, and cultural heritage. From intricately embroidered fabrics to vibrant color palettes, each piece tells a story of artistry and sophistication. The collection caters to diverse tastes, offering a range of designs that effortlessly blend tradition with contemporary flair.

One notable feature of the [Bin Saeed Unstitched Collection 2023](https://shomiofficial.com/brands/bin-saeed/) is the meticulous attention to detail. Every stitch is a testament to the brand's commitment to quality, ensuring that each ensemble not only looks exquisite but feels comfortable and luxurious. The collection offers a versatile range of options, from casual daywear to elegant evening attire, allowing fashion enthusiasts to express their unique style on any occasion.

Partnering with Shomi, a prominent fashion platform in Pakistan, Bin Saeed brings its creations closer to fashion enthusiasts across the country. This collaboration is a testament to the brand's commitment to accessibility and ensuring that the Bin Saeed Unstitched Collection 2023 reaches every corner of Pakistan.

Shomi's platform provides a seamless shopping experience, allowing customers to explore and purchase Bin Saeed's latest collection with just a few clicks. This collaboration not only enhances the reach of Bin Saeed's designs but also reflects the synergy between two entities dedicated to promoting and celebrating Pakistan's rich fashion heritage.

As the Bin Saeed Unstitched Collection 2023 takes center stage, it invites fashion enthusiasts to embark on a journey of self-expression, embracing the timeless elegance that Bin Saeed has become synonymous with. Whether you're in search of a statement piece for a special occasion or a daily ensemble that exudes sophistication, this collection promises to deliver on all fronts.

In conclusion, Bin Saeed's Unstitched Collection 2023, in collaboration with Shomi, is a celebration of Pakistan's rich cultural tapestry and a nod to the brand's unwavering commitment to excellence. This collection is more than just fashion; it's an embodiment of the traditions, stories, and elegance that define Bin Saeed's legacy in the world of Pakistani fashion.
Safari on MacOS has extra features for developers to control device settings
Published: 2023-11-10 09:37:06

Safari version 17.0 (19616.1.27.211.1) on MacOS has quite a few small features to control [device settings](https://webkit.org/web-inspector/device-settings/) that make app debugging easier.

![Safari device settings in developer tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wta3gxz2pki5zntgo9o7.jpg)

I recommend trying it out.
5 Stage BluePrint to Create a Next-Gen Mobile App in 2024
Tags: app, mobile, devops, development
Published: 2023-11-10 09:28:49

In the ever-evolving landscape of mobile app development, understanding the intricacies of each stage is key to crafting a successful and forward-looking application. Let's embark on a journey through the quintessential stages of mobile app development.

## Step 1: Planning – Building the Foundation

The foundation of any successful venture is a well-thought-out plan. In the planning stage, we lay the groundwork for the app's entire lifecycle. From defining the app's purpose to outlining features and functionalities, this stage sets the tone for the entire development process.

## Step 2: Designing – Transforming Abstract Ideas to Tangible Interfaces

Enter the realm of creativity. Designing is the phase where abstract concepts take shape. User interfaces, user experiences, and overall aesthetics come to life, ensuring your app is not just functional but also visually appealing and user-friendly.

## Step 3: Development – Coding the Vision

Coding is where the magic happens. Developers breathe life into your app by translating designs into functional code. This stage involves choosing the right technology stack, implementing robust coding practices, and ensuring the scalability and efficiency of your application.

## Step 4: Testing – Ensure Quality and Functionality

Testing is a critical phase to guarantee your app meets the highest standards. From functional testing to user experience evaluation, thorough testing ensures a seamless and bug-free experience for your users.

## Step 5: Deployment – Give the Stage to Your App

It's showtime! Deployment marks the official launch of your app. From selecting the right deployment strategy to making your app available to users, this phase requires careful consideration to ensure a smooth rollout.

## How Long It Takes: Mobile App Development Timeframe

Curious about the time it takes to develop a mobile app? We break down the timeframe for each stage, providing insights into the overall development process.

## Post-Launch Essentials: Steps to Mobile App Maintenance

Post-launch, your app requires ongoing care. Maintenance is essential for fixing bugs, introducing updates, and adapting to evolving user needs. Discover the key steps to ensure your app remains relevant and efficient.

Ready for an in-depth exploration of mobile app development? Read the full article here: https://bit.ly/47qyZfd
Resolve Routing issue on Server
Published: 2023-11-10 09:27:13

So i was facing Routing issue after deploying my React JS build on server. On local system my routing was working fine but after deploying over the server it wasn't routing on next pages.

Error Was

```
## Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occured, and the actions you performed just before this error.
More information about this error may be available in the server log.

---
Apache/2.4.52 (Ubuntu) Server at XX.XXX.X.XXX Port XXXX
```

After trying alot i have tried to create a `.htaccess` file in build folder

content you can add in `.htaccess` file

```
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /
	RewriteRule ^index\.html$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /index.html [L]
</IfModule>
```
Sự kiện thay đổi Nhà cái #Sm66 khuyến mãi tới tất cả thành viên không giới hạn trị giá phần quà
Published: 2023-11-10 09:26:38

 Sự kiện thay đổi Nhà cái #Sm66 khuyến mãi tới tất cả thành viên  không giới hạn trị giá phần quà 
Ưu đãi đặc biệt tới tất cả mọi thành viên của Sm66.com
Khuyến Mãi Nạp Đầu 100% 
Code FREE Từ 26K đến 266K.
 Nạp rút trong vòng 2 phút có tiền về tài khoản.
Link đăng ký #sm66casino dưới :
Web: https://tinyurl.com/codetrainghiem26k
Fanpage: https://www.facebook.com/linksm66
Group Tele: https://t.me/+jDpIeet-MiMwMjM1
Mail: scsm6666@gmail.com
Địa chỉ:155 Hai Bà Trưng, Phường 6, Quận 3, Thành phố Hồ Chí Minh, Việt Nam
Sđt: (+84)564274701
#SM66 #scsm66com #nhacaism66
Recovery from Cryptocurrency Scam or Frauds
Published: 2023-11-10 09:09:48

 I don't think I've had or can remember any satisfactory service like the one I got from Daniel Meuli Recovery when I contacted them through a friend's recommendation following the loss of my BTC account and over $325,000 saved on crypto. I haven't seen such a professional service and with the way the process seemed easy, it was nothing short of pure satisfaction when they eventually were able to get my money back and also gave bonus additional and professional advice on how best I can secure my account. If you face a similar problem and want help, reach out to them via Telegram @ Danielmeuli
Or WhatsApp  +.3.9.3.5.1.2.0.1.3.5.2.8
Massive outage in Australia Telecom
Published: 2023-11-10 09:04:45

⚠️Massive outage hits Australia's second-largest telecom provider, leaving millions stranded without mobile and internet services. Imagine that's happening to you! Let's explain and try to avoid it:
https://www.relianoid.com/blog/australian-network-failure-millions-of-users-affected/
#TelecomOutage #SiteReliability #RELIANOID #TelecomDisruption #NetworkOutage #TechDowntime #ServiceRestoration #SiteReliabilityEngineering #HighAvailability #TelecomResilience #TechFailures #RELIANOIDSolutions #NetworkReliability #Australia #Australiaattack #outage #vulnerabilities
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aiwmex7y3ug1o1nfsaag.jpg)
RikVip
Tags: webdev, programming, tutorial, react
Published: 2023-11-10 08:59:17

`<p><a href="https://rikvip.im/"><strong>RIKVIP</strong></a><span style="font-weight: 400;"> tự h&agrave;o l&agrave; một địa chỉ h&agrave;ng đầu cho việc chơi game c&aacute; cược tại Việt Nam. Ch&uacute;ng t&ocirc;i cung cấp một loạt sản phẩm giải tr&iacute; độc đ&aacute;o v&agrave; hấp dẫn bao gồm Casino trực tuyến, c&aacute; cược thể thao v&agrave; m&aacute;y đ&aacute;nh bạc với tỷ lệ thắng lớn. Mặc d&ugrave; mới xuất hiện tại Việt Nam nhưng cổng game đ&atilde; x&acirc;y dựng một thương hiệu mạnh mẽ dựa tr&ecirc;n uy t&iacute;n v&agrave; chất lượng của sản phẩm v&agrave; dịch vụ.</span></p>
<p><span style="font-weight: 400;">Địa chỉ: Việt Nam</span></p>
<p><span style="font-weight: 400;">Website: </span><a href="https://rikvip.im/"><span style="font-weight: 400;">https://rikvip.im/</span></a></p>
<p><span style="font-weight: 400;">#tairikvip #taigamerikvip #rikvipapk #taigamerikvipclub #rikvipios</span></p>
<p>&nbsp;</p>
<p><a href="https://www.youtube.com/@Rikvipim/channels"><span style="font-weight: 400;">https://www.youtube.com/@Rikvipim/channels</span></a></p>
<p><a href="https://www.pinterest.com/Rikvipimpro/"><span style="font-weight: 400;">https://www.pinterest.com/Rikvipimpro/</span></a></p>
<p><a href="https://twitter.com/Rikvipim"><span style="font-weight: 400;">https://twitter.com/Rikvipim</span></a></p>
<p><a href="https://gravatar.com/rikvipim"><span style="font-weight: 400;">https://gravatar.com/rikvipim</span></a></p>
<p><a href="https://rikvippro.blogspot.com/2023/11/rikvip.html"><span style="font-weight: 400;">https://rikvippro.blogspot.com/2023/11/rikvip.html</span></a></p>
<p><a href="https://www.blogger.com/profile/08407225548955085925"><span style="font-weight: 400;">https://www.blogger.com/profile/08407225548955085925</span></a></p>
<p><a href="https://www.reddit.com/user/Rikvipim"><span style="font-weight: 400;">https://www.reddit.com/user/Rikvipim</span></a></p>`
Where can I find open-source easy issues in GitHub?
Tags: opensource, github, beginners, webdev
Published: 2023-11-10 08:57:47

Hi everyone,

Probably my question is a little silly but I am a junior web developer with React and Java and I'm looking for some really easy issues in open projects, I have this problem:

**- Should I ask in the comments about that issue for someone to assign it to me? Should I then wait for him to reply?
- I searched with the advanced search on GitHub but I have difficulty finding simple projects with free issues**


Thanks a million in advance, I'm trying to get my first job and need to improve.
Dockerize an OCI Instance
Tags: oci, docker, oraclecloud, selfhost
Published: 2023-11-10 08:52:56

"Docker undeniably stands as one of the most versatile tools in any engineer's toolkit. Its utility is akin to that of a Swiss army knife, and its constant evolution through community contributions only bolsters its strength.

Deploying software with Docker on your local machine has become a breeze lately, thanks to its seamless packaging. Familiarity with your local environment makes this a convenient choice. However, when the time comes to self-host an application on a cloud provider, the landscape becomes vastly different, and a multitude of challenges emerges.

In this blog post, we will delve into the installation of Docker on an Oracle Cloud Infrastructure (OCI) instance, laying the crucial foundation for our upcoming ventures. This article is part of an ongoing series, so stay tuned for more insights and practical tips.

---
**Objective: Provision Docker Instance in OCI, with external Block volumes to cater to Docker Services**

---

1. Provision an OCI Instance. Refer [OCI Instance with External Volume](https://dev.to/paihari/oci-instance-with-external-volume-3mia)

2. SSH to the Created Instance to install Docker and Docker Compose

```
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf list docker-ce
sudo dnf install docker-ce --nobest
sudo docker -v
sudo systemctl enable --now docker
sudo systemctl status docker
sudo usermod -aG docker root
sudo systemctl disable firewalld
sudo sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
sudo docker-compose -v

```
ProFoliox – Multipage personal theme
Tags: webdev, astro, tailwindcss, programming
Published: 2023-11-10 08:47:06

ProFoliox – Multipage personal theme
Built with Astro, Tailwind CSS & MDX

See it live and learn more:
→ https://lexingtonthemes.com/info/profoliox/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9j8uqt51sa3xxh1zmabc.png)
Best UGC NET English Coaching in Trivandrum
Published: 2023-11-10 08:42:55

[Best UGC NET English Coaching in Trivandrum]
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jy37tr7vauvsy6450wwl.jpeg)(https://radianceces.com/): Join the top-notch UGC NET English coaching at Radiance Coaching, Trivandrum for comprehensive preparation.<a href="https://radianceces.com/">Best UGC NET English coaching Trivandrum</a>`
GOLD BUYERS IN BANGALORE
Published: 2023-11-10 08:41:22

[ GOLD BUYERS IN BANGALORE](https://www.imggoldbuyers.com/gold-buyers-in-bangalore-2/
): IMG Gold Buyers is a trusted name among gold buyers in Bangalore. We specialize in buying gold products and provide accurate valuations based on market rates. Whether you want to sell used or unused gold ornaments, we offer competitive prices and ensure transparent transactions. With our commitment to customer satisfaction, we provide instant payment for your gold. Visit our website at https://www.imggoldbuyers.com/gold-buyers-in-bangalore-2/ to learn more about our services.<a href="https://www.imggoldbuyers.com/gold-buyers-in-bangalore-2/">gold buyers in bangalore</a>
Migrate OneDrive to Google Drive
Published: 2023-11-10 08:20:42

Migration from one Drive to another is a common task among organizations. The reasons why users [**migrate OneDrive to Google Drive**](https://www.shoviv.com/blog/how-to-transfer-files-from-onedrive-to-google-drive/) files vary from user to user. If you want to know a perfect and effortless method to process this migration task, we advise you to read this write-up till the end. Basically, we can continue this task using the manual method, but its limitations may make the process challenging and time-consuming. Moreover, users need technical hands to understand the entire migration task manually.

Users can process this task with the help of the **Shoviv** [**OneDrive Migration Tool**](https://www.shoviv.com/onedrive-migration-tool.html). This software is a quick and effective solution to move all files from OneDrive to a Google Drive account. It offers a filter option that users can use to add or remove the desired items as per their requirements. Users can also schedule the migration task daily, weekly, monthly or at any specific date and time.

There is no issue in moving large-sized files using this professional tool. Moreover, it permits users to process various files in one tap from the OneDrive account to Google Drive. To get the complete details of how this professional tool works, kindly use its free trial version in your system.
RadiantHouse: Your Premier Source for Adhesive Labels in the UAE
Tags: promotional, stickers, labels, cashroll
Published: 2023-11-10 08:40:21

[RadiantHouse](https://www.radianthouse.com/), based in the UAE, is your trusted destination for high-quality adhesive labels. We offer an extensive range of adhesive label solutions to meet your diverse needs, from product labeling to branding and more. Our commitment to excellence ensures that you receive top-notch labels that adhere reliably and look stunning. With customization options and a wide array of label materials available, we provide solutions tailored to your specific requirements. Choose RadiantHouse for all your adhesive label needs in the UAE and experience unmatched quality and service.
Why 0 is better than NULL sometimes
Tags: sql, sqlserver
Published: 2023-11-10 08:25:31

Working with big data requires attention to details, testing, retesting, comparing data returned by the stored procedures, views, table valued functions etc. with the expected result. So understanding the core concepts of SQL is a must. 

I am currently working on a project for an insurance company and the amount of data they have is huge. One of their main functionality is having reports where they can interpret the data as they need. 

While testing something on one of their reports, I found a bug in the stored procedure that fed the report with data. They were trying to JOIN two sets of data, the left hand side contained NULL on a particular column, and the right side contained 0 on the same particular column.

While you may think that representing NULL on the right hand side was the fix to go to, this wouldn't have worked. Instead, this was  the point where I thought representing NULLs with 0s would work. I'll demonstrate below why NULL wasn't working and how representing it with 0 fixed this. 

Let's consider the following example:
LEFT hand side: 

```
VALUES (1, null), (2, 1), (3, 2)) leftHandSide(Id, fk)
```
RIGHT hand side: 

```
VALUES (null, '0'), (1, '1'), (2, '2')) rightHandSide(Id, fk)
```
I'm performing a JOIN between them:

```
SELECT * FROM 
(VALUES (1, null), (2, 1), (3, 2)) leftHandSide(Id, fk)
INNER JOIN 
(VALUES (null, '0'), (1, '1'), (2, '2')) rightHandSide(Id, fk)
ON rightHandSide.Id = leftHandSide.fk
```
And I want my result set to look like this, it won't work.

```
Id	fk	Id	fk
1 NULL NULL NULL
2	1	1	1
3	2	2	2
```

Instead I will only get the last 2 rows

```
Id	fk	Id	fk
2	1	1	1
3	2	2	2
```

When you have NULL values in a column, these will never be matched to other NULL values. This is because NULL signifies the absence of any value, and cannot be compared as they will never equal anything.

So, what I did was to represent NULL to 0 so that my result set contains the 3 rows:

```
Id	fk	Id	fk
1	0	0	0
2	1	1	1
3	2	2	2
```
by simply doing 

```
SELECT * FROM
(VALUES (1, ISNULL(NULL, 0)), (2, 1), (3, 2)) leftHandSide(Id, fk)
INNER JOIN 
(VALUES (ISNULL(NULL, 0), '0'), (1, '1'), (2, '2')) rightHandSide(Id, fk)
ON rightHandSide.Id = leftHandSide.fk
```
Lesson learned: whenever you have to deal with NULL, and you don't understand why your result set is missing some rows that you expect, think about representing NULLs to 0s.