teleren/devto huggingface dataset:
Wednesday Links - Edition 2023-03-13
Tags: java, jvm, ebpf, kafka
Published: 2024-03-13 12:18:46

Unlocking Kafka's Potential: Tackling Tail Latency with eBPF (14 min)🌡️
https://blog.allegro.tech/2024/03/kafka-performance-analysis.html

What If Java Collections Had Eager Methods for Filter, Map, FlatMap? (18 min)🐇
https://betterprogramming.pub/what-if-java-collections-had-eager-methods-for-filter-map-flatmap-a61ef07fa52a

JDK 22 in a nutshell (6 min)🌰
https://softwaremill.com/jdk-22-in-a-nutshell/

Gradle Goodness: Organizing Tasks Using The Task Container (1 min)🫙
https://blog.mrhaki.com/2024/03/gradle-goodnesss-organizing-tasks-using.html

Work on tasks, not stories (2 min)📋
https://ntietz.com/blog/work-on-tasks-not-stories/
what is different div and span
Tags: html, programming, interview, discuss
Published: 2024-03-13 12:15:02

## Div:

**Nesting**: Divs can be nested within each other to create complex layouts. This is a common practice for building web page structures. For example, you might have a div for a header section containing nested divs for the logo, navigation bar, and search bar.

**Semantic meaning**: While div is generic, it can be used with a class attribute to convey semantic meaning. For instance, <div class="article"> indicates a section containing an article. This can improve accessibility and SEO (Search Engine Optimization).

**Responsiveness**: Using divs effectively is crucial for responsive web design, where the layout adapts to different screen sizes. You can target divs with CSS media queries to adjust their behaviour on various devices.

{% codepen https://codepen.io/lxeultyr-the-lessful/pen/zYXByOQ %}

## Span:

**Grouping elements**: While primarily for inline styling, spans can group inline elements together. This might be useful for applying a common style or attaching a JavaScript event handler to a specific section of text.

**Alternative to <b> and <i>**: Spans are generally preferred over the older <b> (bold) and <i> (italic) tags for styling text. This is because spans are semantically neutral, allowing you to define the exact style using CSS.

**Overuse:** Excessive use of spans can make your HTML code cluttered and hard to maintain. It's better to use semantic elements or divs with classes whenever possible to convey meaning and structure.

{% codepen https://codepen.io/lxeultyr-the-lessful/pen/abxZQeg %}


**Here's an analogy:**

Think of a div like a container box on your desk. It can hold various items (other elements) and can be stacked on top of other boxes. A span is like a sticky note you can attach to a specific part of an item within the box. It doesn't change the overall structure of the boxes, but highlights a specific portion.

**Remember:**  Always strive to use the most appropriate element for the content and desired layout.  If you're unsure, divs are generally a safer choice for structuring content, while spans are for targeted inline styling.
Building Wunjo AI from Code and API Interaction with Postman
Tags: ai, api, opensource, postman
Published: 2024-03-13 12:05:08

**Exciting news!** I've just released a video on Wunjo AI, fulfilling the requests many of you had. Just a quick reminder: [Wunjo AI on GitHub](https://github.com/wladradchenko/wunjo.wladradchenko.ru) is a local application that operates seamlessly even on less powerful computers. It empowers you to create content of any duration, a capability that web services inherently lack. Unlike web-based platforms, Wunjo AI can efficiently process hour-long videos, and the best part is it can run directly from a flash drive. Recently, I added a filter to enhance safety by blocking 18+ content in deepfakes. The application is entirely free and open-source, utilizing your computer's resources rather than relying on external servers.

I frequently get inquiries about creating GPU builds on Windows, with some facing challenges using briefcase. Now, there's a video answering all those questions. Additionally, I've included information on how to apply Wunjo AI modules in your projects using POST/GET requests, demonstrated with Postman examples. In essence, it's valuable information for developers, and I believe you'll find it interesting. If so, please show your support.

{% youtube 00gzOC_cw9Y %}

I created Wunjo AI to simplify the process of media content creation for authors and to explore general artificial intelligence for content generation. Version v2 introduces the idea of combining all modules with a language model. Here's a brief history of the project's evolution:

- Initially launched with speech synthesis only.
- Later added one-click deepfake face and lip syncing, speech cloning, and object removal from videos.
- Evolved to allow object and video alterations through textual requests.
- Introduced voice cloning from songs, improved video changes with text, and one-click text removal from videos.
Healthy life
Tags: javascript, webdev, beginners, ai
Published: 2024-03-13 12:01:10

[Living a healthy life](https://www.giveawayai.xyz/) involves making conscious choices that promote physical, mental, and emotional well-being. Here are some key components of a healthy lifestyle:

Balanced Diet: Eating a variety of nutritious foods, including fruits, vegetables, whole grains, lean proteins, and healthy fats, can provide essential nutrients to support overall health.

Regular Exercise: Engaging in physical activity on a regular basis helps maintain a healthy weight, strengthens muscles and bones, improves cardiovascular health, and boosts mood and energy levels.

Adequate Sleep: Getting enough high-quality sleep is crucial for cognitive function, mood regulation, immune function, and overall health. Aim for 7-9 hours of sleep per night for most adults.

Stress Management: Finding effective ways to manage stress, such as mindfulness meditation, deep breathing exercises, or engaging in hobbies, can help prevent chronic health issues and improve overall well-being.

Hydration: Drinking plenty of water throughout the day is essential for maintaining proper bodily functions, regulating body temperature, and supporting overall health.

Avoiding Harmful Substances: Limiting or avoiding alcohol, tobacco, and other recreational drugs can significantly reduce the risk of developing chronic diseases and improve overall health.

Regular Health Check-ups: Scheduling regular check-ups with healthcare providers can help detect potential health issues early and allow for timely intervention and treatment.

Social Connections: Maintaining strong social connections with friends, family, and community members can provide emotional support, reduce feelings of loneliness, and contribute to overall happiness and well-being.

Mindful Eating: Paying attention to hunger and fullness cues, eating slowly, and savoring each bite can help prevent overeating and promote healthy digestion.

Continual Learning and Growth: Engaging in lifelong learning, setting personal goals, and pursuing new experiences can contribute to a sense of fulfillment and purpose, which are important aspects of a healthy life.

By incorporating these practices into your daily routine, you can improve your overall health and well-being, and enjoy a higher quality of life.
The Role of Proxy APIs in Web Scraping: Ensuring Reliable and Scalable Data Extraction
Published: 2024-03-13 12:00:51

Web scraping, the automated extraction of data from websites, is a powerful tool for gathering information for various purposes. However, web scraping can be challenging due to issues like IP blocking, CAPTCHAs, and rate limiting. Proxy APIs play a crucial role in overcoming these challenges, ensuring reliable and scalable data extraction.

## Understanding Proxy APIs

Proxy APIs act as intermediaries between your web scraper and the target website. They route your requests through different IP addresses, masking your actual IP and helping you avoid detection or blocking. This is particularly useful when you need to make a large number of requests to a website without being banned.

## Ensuring Reliable Data Extraction

By using a proxy API, you can distribute your requests across multiple IP addresses, reducing the likelihood of being detected or blocked by a website. This ensures that your web scraping process remains uninterrupted, allowing you to gather the data you need reliably.

## Overcoming Rate Limiting and CAPTCHAs

Many websites impose rate limits on the number of requests from a single IP address to prevent abuse. Proxy APIs help you bypass these limits by rotating through different IP addresses. Similarly, when faced with CAPTCHAs, proxy APIs can switch to a different IP address, allowing you to continue scraping without interruption.

## Ensuring Scalability

Proxy APIs allow you to scale your web scraping operation by enabling you to make a large number of requests simultaneously. By distributing your requests across multiple IP addresses, you can gather data more efficiently, making your scraping process more scalable.

## Best Practices for Using Proxy APIs

When using **[proxy API for web scraping](https://zenscrape.com/)**, it's essential to choose a reliable provider that offers a large pool of IP addresses. Additionally, you should rotate your IP addresses regularly to avoid detection and ensure that your requests are distributed evenly across different addresses.

## Conclusion
Proxy APIs play a crucial role in ensuring reliable and scalable data extraction for web scraping. By masking your IP address and distributing your requests across multiple addresses, proxy APIs help you overcome challenges such as rate limiting and CAPTCHAs, ensuring that your web scraping process remains uninterrupted and efficient.
(GPT4 with RAG vs Claude 2.1 vs Gemini Pro) vs laser lawnmower.
Tags: news, ai, openai, gemini
Published: 2024-03-13 12:00:00

## GPT4 with RAG vs Claude 2.1 vs Gemini Pro
**vs The Great Gatsby & laser lawnmower**

There's been a lot of buzz lately about the intelligence and capabilities of AI (or to be precise LLMs) but most if it is indecipherably for layperson. Alas, if you're not an expert on deep learning & machine learning but want to have some understanding of the current reality of the three dominating models, here is a great experiment conducted by Ethan Mollick, professor at Wharton and author of the upcoming book Co-Intelligence (you should follow him on LinkedIn & X, by the way, if this kind of matter interests you).

Prof. Mollick uploaded 'The Great Gatsby' by F. Scott Fitzgerald but with two alterations (mentioning an 'iPhone-in-a-box' and a laser lawnmower) to the following models:
- GeminiPro by Google
- GPT4 with RAG by OpenAI
- Claude 2.1 by Anthropic

And then asked, 'Anything weird about this text?' (By the way, here you can learn what RAG means in the context of AI [here](https://www.promptingguide.ai/techniques/rag))

GPT-4 failed (image 1). Claude (image 2) & Gemini (image 3) fared better but also made some pretty funny mistakes by making things up - what experts call 'AI hallucinations'- , more about that [here](https://www.techtarget.com/whatis/definition/AI-hallucination).

So no, you don't have to worry about Skynet. At least not yet.

You can pre-order "Co-Intelligence" **[here.](https://www.penguinrandomhouse.com/books/741805/co-intelligence-by-ethan-mollick/)**


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

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1x0mx677cv9y1qevy23.png)
🚨Material Design for Bootstrap Version 7.2.0, released!🚨
Tags: news, bootstrap, javascript, webdev
Published: 2024-03-13 12:00:00

## Material Design for Bootstrap Version 7.2.0 Changelog:

**New features:**
_Datepicker_
- added viewChanged.mdb.datepicker event
- changed days aria-label to be human readable

_Datatable_ - allow setting table ID

_Select_ - added search.mdb.select event

_Timepicker_ - added clear.mdb.timepicker event

**Fixed & improved:**
_Transfer_
- fixed search input init and style
- fixed triggering search.mdb.transfer event
- fixed checkbox in transfer header

_Popconfirm_
- fixed triggering cancel.mdb.popconfirm event
- fixed dispose method

_Chips Input_
- fixed bug with input init
- fixed enter keydown triggering form submission

_Datatable_
- fixed sort reset pagination
- improved performance while cell formatting many columns
- fixed borders bug with fixed option

_Datepicker_
- fixed datepicker cell width
- added aria-disabled to disabled dates, month and years

_DateTimepicker_
- added functionality to save the selected date when the timepicker toggle button is clicked
- fixed navigation to initial time and date on open

_Select_
- added update of aria-expanded on open and close
- fixed clear button action with hidden option

_Sidenav_
- improved marking of active item
- fixed transform with RTL when option hidden is set to false

_Animated navbar_ - fixed auto init

_Calendar_ - fixed view change select

_Input Mask_ - fixed bug after backspace keydown

_Table editor_ - fixed rows per page select

_Treeview_ - fixed auto select of parent checkbox

_Treetable_ - fixed animation on open

_Carousel_ - fixed dark variant

_Modal_ - fixed dispose method

_Autocomplete_ - added update of aria-expanded on open and close

_Multi Range Slider_ - fixed start.mdb.multiRangeSlider event

_Timepicker _- fixed RTL styling - clock and button position

_Fixed_ $form-check-input-hover-before-box-shadow SCSS variable

**Check out MDB [here](https://mdbootstrap.com/)**
Digital Transformation Trends for 2024
Tags: digitaltransformation, development
Published: 2024-03-13 11:58:26

In the rapidly evolving digital era, businesses must stay ahead of the curve to thrive. This guide emphasizes the importance of a digital transformation strategy and integrates the latest trends to ensure your business is well-positioned for the future.

## Here are the Digital Transformation Trends for 2024
**Hyperautomation:** 
Integrating AI, ML, and RPA to automate complex processes beyond conventional capabilities, enabling faster, more efficient operations.

**Edge Computing:**
Processing data closer to its source to enhance speed and reduce latency, critical for IoT and real-time applications.
AI Democratization: Making advanced AI tools accessible to businesses of all sizes, empowering them to make smarter decisions and innovate more rapidly.

**Metaverse Engagement:**
Leveraging virtual spaces for innovative customer interactions, product showcases, and remote collaboration.
Enhanced Cybersecurity: Adopting a holistic security approach to protect against sophisticated threats in a digitally dependent world.

**Cloud Computing Evolution:**
Utilizing cloud solutions for their scalability, flexibility, and cost-efficiency, supporting remote work and digital services.

**Sustainability through Technology:**
Using digital tools to optimize resource use and reduce environmental impact, aligning with global sustainability goals.

## Overcoming Transformation Challenges

**Cultural Resistance:**
Foster a culture of digital literacy and agility through effective communication and training.

**Leadership Buy-in:**
Demonstrate the strategic value of digital initiatives to secure executive support.

**Skills Development:**
Address skill gaps with targeted learning programs and partnerships.

**Data Integration:** 
Ensure seamless data flow between systems for comprehensive insights.

**Security First:**
Prioritize robust cybersecurity measures to protect your digital ecosystem.

## Unlocking Benefits with Trends
Integrating these digital transformation trends can significantly enhance customer experiences, streamline operations, foster innovation, and enable better decision-making. It offers a competitive edge in a dynamic market, opening new revenue streams and improving efficiency. Embracing these trends within your digital transformation strategy ensures your business not only survives but thrives in the digital age of 2024 and beyond.

## Conclusion
By recognizing the critical role of [digital transformation](https://www.hyscaler.com/insights/digital-transformation-strategy-guide/) and incorporating current trends, businesses can position themselves for success in the digital future. A strategic approach, centered on adaptability, customer experience, and innovation, will pave the way for a resilient, competitive, and forward-thinking enterprise in 2024.
Hyperswitch by Juspay
Tags: hyperswitch, rust, payments, opensource
Published: 2024-03-13 11:39:38

> "With Hyperswitch, our vision is to enable every digital business to get access to the best payments infrastructure, which they need to run their business efficiently - focusing on their core, not on the complexity of payments," _**says Sheetal Lalwani, Chief Operating Officer, Juspay.**_

We, at Juspay have transformed the payment landscape by providing comprehensive solutions to leading global enterprises and major banks in India. 

During this time, we have cleared several engineering challenges, and we are applying our expertise and learnings to make Hyperswitch a fast, reliable, and affordable payment switch.

We are also utilizing 🦀 Rust to ensure type safety and leverage its robust features in our development process.

[**Join our co-founder**](https://youtu.be/p6vqGHsoc0s) as he talks about how our team leveraged insights gained from building Juspay to develop HyperSwitch, an end-to-end global payment solution that addresses the complex challenges in the payment ecosystem, allowing businesses to prioritize their core capabilities.


![contributors](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vwbphgvpyilq2h1546h9.png)

**Learn more about how you can set up your own payments stack in minutes with [Hyperswitch](https://docs.hyperswitch.io/about-hyperswitch/readme)**

---

- Want to contribute? Check out some of our [good first issues here.](https://github.com/juspay/hyperswitch/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
- Try Hyperswitch. [Get your API keys here.](https://app.hyperswitch.io/)
Happy reading!
Part :8 My Automation Interview Questions in one of leading MNC
Tags: selenium, testing, interview
Published: 2024-03-13 11:23:19

## There is a scenario where unexpected pop-ups might appear during the execution of your test. How do you handle such pop-ups in your automation script?

## Explanation:

Unexpected pop-ups during test execution are additional browser windows or dialog boxes that appear unexpectedly and can disrupt the flow of the automation script. 

Handling such pop-ups in the automation script involves strategies to detect their presence and appropriately handle them to ensure test stability.

## Use Case:

In our project, we had a scenario where an unexpected authentication pop-up might appear while navigating through the application. 

To handle this, I implemented a method that checks for the presence of the pop-up and provides credentials if needed before continuing with the test.

## Code Snippet:

// Custom method to handle unexpected pop-ups

`public void handleUnexpectedPopUp(String username, String password) 
{ try {
        Alert alert = driver.switchTo().alert();
        **// If an alert is present, it's an unexpected pop-up**
        alert.sendKeys(username + Keys.TAB + password);
        alert.accept();
       ** // Log or handle as needed**
    } catch (NoAlertPresentException e) {
        **// No alert is present, continue with the test**
    }}
**// Example usage in a test**
handleUnexpectedPopUp("yourUsername", "yourPassword");`

This code snippet demonstrates a custom method **_(handleUnexpectedPopUp)_** that checks for the presence of an unexpected pop-up and provides credentials if needed. 

The method uses **_driver.switchTo().alert()_** to switch to the alert context and interact with the pop-up.

## Exception:

An exception that might occur is  NoAlertPresentException if there is no alert present. Handling this exception is crucial to differentiate between scenarios with and without unexpected pop-ups.

## Challenges:

One challenge was identifying the conditions triggering unexpected pop-ups. To address this, I worked closely with the development and testing teams to understand the scenarios leading to pop-ups and implemented targeted checks in the automation script. 

Another challenge was ensuring that the automation script could handle various types of pop-ups, such as authentication, confirmation, or input dialogs. 

To overcome this, I designed a flexible and extensible pop-up handling mechanism that could be adapted to different types of unexpected pop-ups based on their characteristics.

In your point of view any add on required means let discuss

To know more [selenium Interview questions](https://blog.testleaf.com/selenium-interview-questions/)

these [automation interview questions](https://blog.testleaf.com/top-automation-interview-questions/) are published in [testleaf blog](https://blog.testleaf.com/) with on behalf of them am sharing with my inputs.

Thank you
Python's classes with class instances, attributes, and methods! 🐍 the best way to learn is by doing!
Tags: webdev, programming, python, devops
Published: 2024-03-13 11:12:13

 💻 #Python #OOP #class #attributes #pythonprogramming #pythondeveloper

Think of classes as blueprints for creating objects in code. They outline what kind of information an object should have and what actions it can perform.

In programming, we use classes a lot, especially in something called object-oriented programming (OOP). When we create a class, we’re essentially creating a new type of thing that our program can work with. These things, called “class instances,” follow the rules laid out in the class blueprint. This helps organize our code and makes it easier to manage and understand.


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

```
class Home:
  # Class body starts here
```
Note: The example above would actually be invalid because class definitions cannot be empty. However, the pass statement can be used as a placeholder to avoid errors:
Read More below

https://codemagnet.in/2024/03/13/class-instances-attributes-methods-in-python/