teleren/devto huggingface dataset:
Configure PurgeCSS with Parcel
Tags: javascript, webdev, tutorial, productivity
Published: 2024-03-06 16:28:49

### Introduction
When building modern web applications, optimizing performance is paramount. One crucial aspect is minimizing the size of our CSS files to enhance loading times. Parcel, a blazing-fast web application bundler, offers an inbuilt feature to remove unused CSS. However, in certain scenarios, this feature might not suffice. In this guide, we'll delve into configuring PurgeCSS with Parcel to achieve even greater CSS optimization.

### Why Avoid Parcel's Inbuilt Unused CSS Remover:
While Parcel's inbuilt unused CSS remover is convenient, it operates effectively when styles are imported as modules. In scenarios where styles are dynamically generated or loaded, such as with dynamic class names or third-party libraries, Parcel's remover might fall short.

### Configuring PurgeCSS with Parcel:
To harness the power of PurgeCSS alongside Parcel, we need to integrate it into our build process. Let's walk through the steps using a React.js application as an example.

#### Step 1: Install PurgeCSS and Parcel Plugin:
Ensure you have Parcel and PurgeCSS installed in your project:

```
npm install parcel-bundler @fullhuman/postcss-purgecss
```
#### Step 2: Configure Parcel to Use PurgeCSS:
Create a postcss.config.js file in the root directory of your project if you haven't already. Configure it to use PurgeCSS:

```js
// postcss.config.js
module.exports = {
  plugins: [
    require('@fullhuman/postcss-purgecss')({
      content: ['./src/**/*.html', './src/**/*.jsx'], // Adjust according to your project structure
      defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
    })
  ]
}
```
#### Step 3: Build Your Application:

Run Parcel to bundle your application for production:

```
parcel build index.html
```
Parcel will now leverage PurgeCSS to remove any unused CSS styles, resulting in a more optimized build.

### My Personal Story:
In one of my projects, I encountered a significant challenge with bloated CSS files. Despite Parcel's built-in remover, the CSS file remained excessively large. Upon integrating PurgeCSS, the file size reduced dramatically, shaving off kilobytes and enhancing the application's loading speed noticeably.

In conclusion, while Parcel offers an inbuilt solution for removing unused CSS, integrating PurgeCSS enhances optimization, especially in scenarios where dynamic styles are prevalent.

> Please do share your feedback and experiences with PostCSS in your web App. I’d love to see what you come up with!

If you found this article useful, please share it with your friends and colleagues ❤️

Read more articles on:
Dev.To ➡️ [Shivam Pawar](https://dev.to/shivampawar)
Follow me on ⤵️
🌐 [LinkedIn](https://www.linkedin.com/in/shivam-prakash-pawar/)
🌐 [Github](https://github.com/shivam-pawar)

Happy coding!
Garbage Collection Root in JAVA
Tags: java, programmers, development, performance
Published: 2024-03-06 16:14:53

## What is GC root in JAVA

The fundamental to the Garbage Collection is NOT to get rid of dead objects by identifying them, but by traversing the live object graph and garbage collect all but these live objects. This process of traversing the live object graph start from source of all object tree, called GC root.

## Why GC root matters
Heap is an area of dynamic memory allocation. JVM borrows memory from Operating System at once, based on configured settings. Hence JVM don't have to bother OS each time a new object needs to be added into memory making it faster object creation by eliminating global OS synchronization overhead. Now, when object is removed from memory, JVM doesn't give back this memory space to OS, but keep it for any future object creation. So, in short, JVM manages memory. Question is, when many objects refer to many objects, what helps JVM determine which objects are no longer needed, like where to start as very first starting point in this search? here comes GC root.
 GC start traversing all object from GC root, and mark all objects as live linked in this graph.

## Types of GC roots

![GC root Types](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzsdw9evsr8fpk4nlxxa.png)


- **Local Variables** : These are stack thread managed, and covers local variables, method arguments stored and kept alive by stack thread.
-  **Static Variables** : As these are referenced by classes, a removal of classes will remove these variables as well, so they can be consider as GC root
-  **Active Threads** : These covers all active threads in JVM, threads by definition are active objects
-  **Monitors **: To achieve true operation synchronization monitors are used, like wait(), notify() in java, these guarantee only one process will execute code inside monitors
- **Special Objects** : Example of these are exception classes, classes loaded by system classloader, which will never be unloaded or custom classloaders.
-  **JNI Reference **: java objects as a result of native calls, includes local variables, parameters to JNI methods etc

## A view from JVM's eye for GC


![view from JVM's eye for GC](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dp4qv5qgs2y76o767td3.png)
Freelancing
Tags: webdev, javascript, beginners, programming
Published: 2024-03-06 16:07:39

Freelancing refers to working as an independent contractor rather than being employed by a company or organization. 

Freelancers 
typically offer their services to multiple clients on a project basis, often working remotely. This arrangement allows for flexibility in terms of work hours, location, and types of projects undertaken.
my website:             https://digitalmarketingstrategiesbd.blogspot.com/
Wooden Whispers: DryPetal's Eco-Chic Decor Unveiled
Published: 2024-03-06 15:51:59

Step into the world of eco-chic living with DryPetal's Wooden Whispers Collection—a symphony of sustainable elegance designed to resonate with nature's own cadence. From captivating vases to organic-inspired Kenzan, discover how this collection seamlessly blends chic decor with eco-conscious practices, inviting you to surround yourself with the beauty of wooden artistry.

## Vases: Sculpting Nature's Harmony

DryPetal's Wooden Whispers Vase Collection takes inspiration from the natural world, offering an array of vessels that echo the beauty of tree branches and organic forms. Crafted from sustainably sourced wood, each vase is a sculptural masterpiece that harmonizes with the environment, turning floral arrangements into a celebration of nature's exquisite design.

## Kenzan: A Sustainable Foundation for Floral Creativity

Explore the art of mindful floral arrangement with [DryPetal's](https://drypetal.com/) Kenzan—where sustainability meets artistic expression. Crafted from reclaimed wood, these Japanese-inspired pin holders provide a foundation for creating captivating floral compositions. Let your creativity bloom while knowing that each arrangement is rooted in eco-friendly practices.

## Wooden Decor: From Forest to Functional Elegance

Immerse your living spaces in the Wooden Whispers Decor Collection, where every piece is a functional work of art. From intricately carved sculptures that bring the essence of the forest indoors to minimalist wooden trays that enhance your dining experience, each creation reflects the brand's commitment to transforming reclaimed wood into functional elegance.

## Gifts That Echo the Earth's Wisdom

DryPetal's Wooden Whispers Gift Selection embraces the essence of sustainable gifting. Thoughtful and eco-conscious, these gifts transcend material value, offering items like personalized wooden signs or plant stands that echo the wisdom of the Earth. Give a gift that not only delights the recipient but also contributes to a greener, more harmonious world.

## Sustainable Luxury: Crafting Tomorrow's Classics

DryPetal's Wooden Whispers Collection is more than decor; it's a pledge to sustainable luxury. Each piece is crafted with a focus on responsible sourcing and eco-conscious design, ensuring that your home reflects not just elegance but a commitment to the planet's well-being. Embrace Wooden Whispers, where sustainability and style converge.

## Curate Your Eco-Chic Sanctuary: Choose DryPetal

DryPetal invites you to curate an eco-chic sanctuary with the Wooden Whispers Collection. Embrace the beauty of sustainably sourced wood, where each piece is a whisper from the forest, resonating with the tranquility and wisdom found in nature. Choose DryPetal—where sustainable living meets chic elegance, and your home becomes a canvas for timeless, eco-friendly artistry.
HTML - 11. HYPERLINK | iAppTech.id
Tags: webdev, beginners, programming, tutorial
Published: 2024-03-06 15:32:49


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

Welcome to iAppTech.id! 🚀

📚 Materi:
HTML — 11. HYPERLINK pada Web, watch it!

👋 Halo, iAppTechers!
Kami adalah channel yang berfokus pada pembahasan seputar Frontend Development. Di sini, kami membawa Anda ke dalam dunia desain antarmuka, pengembangan web, dan segala hal seputar Frontend.

🔗 Playlist HTML:
https://www.youtube.com/playlist?list=PLc6PvCQzjsh_kCOlaz4ZFr8s708gNNVSv

💬 Disclaimer:
Channel ini saya buat khususnya untuk saya pribadi, dikarnakan menurut saya ketika saya belajar harus membuat konten, kenapa? karna menurut saya hal terbaik ketika belajar adalah mengaplikasikannya kembali, ditambah saya paham bagaimana jangka memori otak saya yang lama-lama tergerus oleh usia kedepannya, makanya saya buat channel ini untuk e-Library pengetahuan saya dibidang IT khususnya Frontend Developer. Ditambah saya juga mempunyai salah satu prinsip yaitu:

"Jika seorang manusia meninggal dunia, terputuslah amalnya, kecuali dari tiga hal: sedekah jariyah, ilmu yang bermanfaat dan anak shaleh yang berdoa untuknya." (HR. Muslim).

🖥️ Apa yang Akan Kamu Temukan di Sini?
Dapatkan wawasan mendalam tentang berbagai teknologi frontend, tutorial praktis, tips & trik, serta eksplorasi proyek-proyek menarik. Kami akan memandu Anda melalui dunia seru Frontend Development!

☕ Traktir Saya Ngopi:
 https://saweria.co/appardana

🔔 Berlangganan Untuk Konten Berkualitas:
Jangan lupa tekan tombol subscribe untuk tetap terkini dengan konten-konten menarik kami. Kami sangat bersemangat untuk berbagi pengetahuan dan pengalaman dengan Anda!

⏰ Jadwal Ngonten: Setiap Selasa dan Kamis, pastikan Anda tidak ketinggalan!

🤝 Mari Bergabung dalam Komunitas:
- https://www.youtube.com/c/iapptech
- https://discord.com/channels/1171443162108141679/1171443165123854421

Terima kasih telah bergabung dengan iAppTech.id. Mari bersama-sama memperkaya pemahaman kita tentang Frontend Development!

✨ Don't forget, ngopi heula… ✨

iAppTech #iAppTechId #Frontend #frontenddeveloper #programming #programmer #web #webdevelopment #Aditria #Pardana #AditriaPardana
Change behaviour of sub menu to make it sticky instead of moving
Tags: wordpress
Published: 2024-03-06 15:27:06

Hello i am trying to find a way to change behaviour of a sub menu instead of hovering out of the sub menu and dissapear it make it sticky and dissapear it only if user clicks somewhere else on the website.

Because when you move mouse out of the wide sub menu window it disappears and I have a lot of categories listed

website url https://orthopedikikinisi.gr/


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vv8dva940y25wbk51liv.png)
خطوات نحو النجاح: دليل لإدارة إعلانات جوجل وتسويق مواقع التواصل الاجتماعي بكفاءة
Published: 2024-03-06 14:56:35

`1. خطوات نحو النجاح: دليل لإدارة إعلانات جوجل وتسويق مواقع التواصل الاجتماعي بكفاءة:
2. في عصر التسويق الرقمي، أصبحت [ادارة اعلانات جوجل](https://www.rabeh.org/ar/service/%D8%B4%D8%B1%D9%83%D8%A9-%D8%A7%D8%AF%D8%A7%D8%B1%D8%A9-%D8%A7%D8%B9%D9%84%D8%A7%D9%86%D8%A7%D8%AA-%D8%AC%D9%88%D8%AC%D9%84-%D8%A7%D8%AF%D8%B2) وتسويق مواقع التواصل الاجتماعي أمرًا حيويًا لنجاح العلامات التجارية على الإنترنت. إذا كنت تسعى إلى تحقيق النجاح في هذا المجال، فإن هذا الدليل سيوفر لك خطوات عملية وفعالة لإدارة حملات التسويق عبر جوجل ومواقع التواصل الاجتماعي بكفاءة. 
3. 1.	وضع الهدف وتحديد الجمهور:
4. قبل بدء أي حملة تسويقية، يجب عليك تحديد الأهداف بوضوح وتحديد الجمهور المستهدف. اعرف من تتحدث إليه وما الذي تريده أن يحققه جمهورك من خلال حملتك.
5. 2.	ابتكار استراتيجية تسويقية متكاملة:
6. قم بوضع استراتيجية تسويقية تجمع بين إعلانات جوجل و ادارةمواقع التواصل الاجتماعي بشكل متكامل. اختر القنوات التي تناسب جمهورك وأهدافك، وضع خطة لإدارة كل منها بفعالية.
7. 3.	البحث عن الكلمات المفتاحية واستهداف الجمهور المناسب:
8. استخدم أدوات البحث لتحديد الكلمات المفتاحية الأنسب لحملتك على جوجل. كما يجب تحديد معايير استهداف دقيقة عند ادارة  مواقع التواصل الاجتماعي لضمان وصول إعلاناتك للجمهور المناسب.
9. 4.	إنشاء محتوى جذاب ومتنوع:
10. قم بإنشاء محتوى يلفت انتباه الجمهور عند ادارة مواقع التواصل الاجتماعي، بما في ذلك الصور والفيديوهات والمقالات. كما يجب تصميم إعلانات جوجل جذابة وجاذبة للمستخدمين.
11. 5.	التفاعل مع الجمهور والاستجابة للتغذية الراجعة:
12. كن نشطًا على مواقع التواصل الاجتماعي وتفاعل مع متابعيك بانتظام. كما يجب مراقبة أداء حملاتك على جوجل والاستجابة لأي تغذية راجعة من العملاء بشكل فوري.
13. 6.	قياس الأداء وتحسين الاستراتيجية:
14. استخدم أدوات التحليل المتاحة لقياس أداء حملاتك على جوجل ومواقع التواصل الاجتماعي. قم بتحليل البيانات واستخدمها لتحسين استراتيجيتك وتحقيق أقصى قدر من النجاح.
15. من خلال اتباع هذه الخطوات وتطبيقها بشكل فعال، يمكنك ادارة اعلانات جوجل والتسويق على مواقع التواصل الاجتماعي بكفاءة وتحقيق نتائج ممتازة تسهم في نجاح علامتك التجارية على الإنترنت. استثمر الوقت والجهد في تنفيذ هذه الاستراتيجيات وكن على استعداد للتعلم والتحسين المستمر لتحقيق أقصى قدر من النجاح.
16. استراتيجيات [ادارة مواقع التواصل الاجتماعي](https://www.rabeh.org/ar/service/%D8%A7%D8%AF%D8%A7%D8%B1%D8%A9-%D8%AD%D8%B3%D8%A7%D8%A8%D8%A7%D8%AA-%D8%A7%D9%84%D8%AA%D9%88%D8%A7%D8%B5%D9%84-%D8%A7%D9%84%D8%A7%D8%AC%D8%AA%D9%85%D8%A7%D8%B9%D9%8A) المتقدمة:
17. •	البحث عن المحتوى الشائع: استخدم أدوات البحث لمعرفة المواضيع الشائعة والتي تثير اهتمام الجمهور على منصات التواصل الاجتماعي.
18. •	الاستثمار في الإعلانات المدفوعة: استخدم إعلانات الترويج والتسويق المدفوعة لتوسيع نطاق وصول محتواك وزيادة التفاعل مع الجمهور المستهدف.
19. •	التفاعل مع المتابعين: قم بالرد على التعليقات والرسائل والمشاركات على مواقع التواصل الاجتماعي لبناء علاقات قوية مع الجمهور وزيادة ولاء العملاء.`
VERCEL and the Internet Computer
Tags: internetcomputer, sveltekit, vercel, icacademy
Published: 2024-03-06 14:45:32

Hello 👋 Dev.to community!

I'm excited to share with you my latest piece on **_VERCEL and the Internet Computer_**. This article shows how a SvelteKit application hosted on VERCEL can access data from the Internet Computer using Server-Side Rendering (SSR).

## Engage with Me

I'm looking forward to hearing your thoughts, feedback, or questions. Let's start a conversation in the comments below! Your insights make the dev community a richer place.

Read the Full Article Here: 
{% embed https://blog.icacademy.at/blog/vercel-ic-sveltekit-starter %}

Get the Github Repository Here:
{% embed https://github.com/samlinux-development/ic-vercel-sveltekit-2 %}

## Closing

Thank you for your time and interest. I hope this article brings value to your day and projects. Stay tuned for more content like this, and happy coding!
Smart budgeting hacks
Published: 2024-03-06 14:43:41

If you don’t have a sound budgeting plan, business expenses can mount up very quickly.

Running a business without a carefully considered budget could put you in financial trouble.

35% of companies overspent their budgets in 2020. These companies might have gone out of business without solid backup and additional funds.

What’s even sadder is that 46% of companies didn’t even create a budget for 2021.

That’s where certain smart budgeting hacks come into the picture.
Who Is Your Favourite Cricketer In India IPL?
Tags: who, favorite, cricketer, ipl
Published: 2024-03-06 14:43:09

Are you a fan of the Indian Premier League (IPL)? Searching on Google for your favourite cricketer! Yes, It’s King Kohli. Virat Kohli’s rise in Indian cricket has been nothing short of remarkable. Since making his debut for Royal Challengers Bangalore (RCB) in 2008, Kohli has become the undisputed king of the glamorous Indian Premier League (IPL). His extraordinary batting exploits and aggressive style have enthralled fans over the years. Kohli tops several IPL batting records and continues taking the cricketing world by storm with his flair, consistency, and determination. Let’s dive deep into the journey of your favourite cricketer in the Indian IPL. [Continue](https://bet.sportsx9.com/cricket/hey-google-who-is-your-favourite-cricketer/)
Don't Couple Your Deployments
Tags: devops, deploy, kubernetes
Published: 2024-03-06 14:33:00

You’ve made changes to your service and go to deploy it. Among your changes, you added a new SQS queue.

Your deployment pipeline applies the IaC changes to get you that new queue. Then, it updates your code.

Later, there’s a problem with your code, so you roll back. However, rolling back the commit will also revert your SQS queue and cause your IaC to destroy it, which you don’t want.

This is a contrived example, but I’ve seen variations of it so many times.

Another common example is Kubernetes deployments using kustomize. Typically, a directory with manifests in a repository is applied using kustomize in the pipeline.

Developers add configuration in the form of environment variables to the Deployment. A new service version is deployed and needs to be rolled back.

You want to revert the commit, but the environment variables must stay as the new version so you can’t. You can’t simply revert everything in all cases. For example, say the application’s database host changed because of an outside migration, and the old host has been torn down.

Just like with application code, don’t couple your deployments too tightly. Treat configuration as a separate deployment from application code.

---

**Join the 80/20 DevOps Newsletter**

If you're an engineering leader or developer, you should subscribe to my 80/20 DevOps Newsletter. Give me 1 minute of your day, and I'll teach you essential DevOps skills. I cover topics like Kubernetes, AWS, Infrastructure as Code, and more.
Simplify Your Web Design Process with CodePem's CSS Border Generator
Tags: css, csscodegenerator, cssgenerator
Published: 2024-03-06 14:24:14


Are you tired of spending hours tweaking CSS code to get your website's borders just right? Say goodbye to the hassle and hello to simplicity with CodePem's [CSS Border Generator](https://codepem.com/css-generator/css-border-generator)! Whether you're a seasoned developer or just starting out, this intuitive tool will revolutionize the way you design borders for your website. Let's explore how CodePem's CSS Border Generator can make your web design process smoother and more efficient.

**Effortless Customization:**
CodePem's CSS Border Generator offers a seamless way to customize borders for your website. With easy-to-use sliders and color pickers, you can adjust border thickness, style, and color to match your design preferences. Say goodbye to tedious trial and error – with CodePem's Border Generator, you can see instant previews of your changes and make adjustments in real-time.

**Streamlined Workflow:**
Gone are the days of manually writing CSS code for every border on your website. With CodePem's [CSS Border Generator](https://codepem.com/css-generator/css-border-generator), you can generate the necessary CSS code with just a few clicks. Simply select your desired border settings, copy the generated code, and paste it into your stylesheet. It's that easy! This streamlined workflow saves you time and effort, allowing you to focus on other aspects of your web development projects.

**Versatility and Flexibility:**
Whether you're designing a sleek and modern website or a playful and whimsical one, CodePem's CSS Border Generator has you covered. With a wide range of customization options, you can create borders that perfectly complement your website's overall aesthetic. Experiment with different border styles, colors, and effects to achieve the look you desire. The possibilities are endless!

**Perfect for Beginners and Experts Alike:**
Don't let the thought of CSS coding intimidate you – CodePem's [CSS Border Generator](https://codepem.com/css-generator/css-border-generator) is beginner-friendly and easy to use. Even if you're new to web development, you can create professional-looking borders for your website in no time. And for experienced developers, the advanced customization options provide endless opportunities for creativity and experimentation.

**Conclusion:**
Ready to take your web design skills to the next level? Try out CodePem's CSS Border Generator and see the difference it can make in your development workflow. With its effortless customization, streamlined workflow, versatility, and user-friendly interface, this tool is a must-have for any developer looking to design stunning borders for their website. Say goodbye to manual CSS coding and hello to simplified border design with CodePem's CSS Border Generator!
Flight slider - HTML+CSS
Tags: codepen
Published: 2024-03-06 14:21:34

This slider is a single HTML element with styling in CSS. No images and no JavaScript (apart from an inline command to update a CSS property.)

It uses:

- Custom properties
- Filters
- Container queries
- Trigonometrical functions

{% codepen https://codepen.io/SafeArrow816-/pen/VwRdNEr %}
Business Flights from Newark to Saint Martin with Travel in Style Journeys
Tags: travelinstyle, businessclassflights, flightsfromnewarktosaintmartin, newarktosaintmartin
Published: 2024-03-06 14:21:03

Are you ready to elevate your travel experience to new heights of luxury? Look no further than Travel in Style Journeys, where we redefine the meaning of first-class travel with our exclusive business-class-only flights from Newark to the breathtaking Caribbean jewel, Saint Martin.

Our meticulously curated **[flights from newark to saint martin](https://book.travelinstylejourneys.com/flights-from-newark-saint-martin)** are designed to provide you with a bespoke flying experience that surpasses all expectations. From the moment you step on board, you'll be immersed in a world of opulence and sophistication, where every detail has been tailored to ensure your comfort and satisfaction.

Sink into our VIP seats, each meticulously designed for ultimate serenity and personal attention. Whether you're seeking restful sleep or productive work time, our seats provide the perfect environment for both. With ample legroom, adjustable headrests, and intuitive controls, you'll arrive at your destination feeling refreshed and rejuvenated.

But our commitment to luxury doesn't end there. From gourmet dining options prepared by world-class chefs to an extensive selection of premium beverages, every aspect of your journey is crafted to indulge your senses and tantalize your taste buds.

Why choose Travel in Style Journeys for your business flights to Saint Martin? The answer is simple: we offer an unparalleled level of service and attention to detail that sets us apart from the rest. Our dedicated team of professionals is committed to ensuring that every aspect of your journey is flawless, from the moment you book your ticket to the moment you touch down in paradise.

And speaking of paradise, let's not forget about Saint Martin itself. This enchanting island, with its pristine beaches, crystal-clear waters, and vibrant culture, is the perfect destination for those seeking relaxation and adventure in equal measure. Whether you're indulging in world-class dining, exploring charming local villages, or simply soaking up the sun on a secluded beach, Saint Martin has something for everyone.

So why wait? Embark on your VIP hassle-free journey with Travel in Style Journeys today. Contact us at 800-899-1171 for further information and booking queries, or **[visit our website](https://book.travelinstylejourneys.com/)** to explore our exclusive collection of handpicked luxurious hotel services and discover a new realm of luxury travel experiences. Your luxury adventure awaits!