teleren/devto huggingface dataset:
Resolving the 'android.enableUnitTestBinaryResources' Deprecation Issue in Android Gradle Plugin
Tags: android, gradle, kotlin, programming
Published: 2024-01-13 16:53:19

Introduction:
If you've encountered the error "The option 'android.enableUnitTestBinaryResources' is deprecated" while working on your Android project, you're not alone. This issue arises when using the Android Gradle plugin, and it's crucial to address it for a smoother development experience. In this blog post, we'll walk through the error and provide a step-by-step solution to resolve it.

Understanding the Problem:
The error message indicates that the option 'android.enableUnitTestBinaryResources' has been deprecated and removed from the current version of the Android Gradle plugin. The default value is now 'false', and the raw resource for unit test functionality has been removed.

Solution:
To fix this issue, you need to update your Gradle files and make a few adjustments. Follow these steps:

Search for 'enableUnitTestBinaryResources' in Gradle Files:
Start by searching for the deprecated option in your Gradle files. You can do this manually by checking each file, or you can use the search functionality by double-tapping the shift button and searching the entire project.

Comment or Remove the Deprecated Line:
Once you've located the line containing "enableUnitTestBinaryResources = true", either comment it out or remove it. This step is crucial to eliminate the use of the deprecated option.

Example (before):

gradle
android {
    // Other configurations
    enableUnitTestBinaryResources = true
}
Example (after):

gradle
android {
    // Other configurations
    // enableUnitTestBinaryResources = true  // Deprecated line, comment or remove it
}
Update Dependencies and Gradle Files:
To ensure compatibility and avoid potential issues in the future, make sure to update your dependencies and Gradle files. Check for the latest versions of the Android Gradle plugin and other dependencies in your project.

Conclusion:
By following these steps, you should successfully resolve the 'android.enableUnitTestBinaryResources' deprecation issue. Keep your project up-to-date with the latest best practices and make a habit of checking for deprecated options to ensure a smooth development process. If you encounter any other issues, don't hesitate to explore the official documentation or community forums for additional support. Happy coding!
Simplified: Free AI Instagram Ad Generator for Unbeatable Ad Performance
Published: 2024-01-13 16:43:14

Simplified's free [AI Instagram ad generator](https://simplified.com/create/instagram-ads
) is your solution to effective ad creation. With our AI-powered tool, you can create visually appealing ads that capture attention, tell your brand's story, and drive conversions.
Create compelling Instagram ads for free with Simplified's[ AI-powered ad generator](https://simplified.com/create/instagram-ads
). Our user-friendly tool enables businesses to create professional-quality ads that elevate their brand's online presence and drive results.
Elm with flex and color
Tags: elm, webdev, css, flex
Published: 2024-01-13 16:39:28

## WHAT?

Just a simple Elm sample code project using basic CSS flex and text color

## WHY?

I was just playing with Elm and wanted to share a piece of code that may be useful to others

## WHERE?

The sample code is at https://github.com/csaltos/elm-with-flex-and-color/tree/main

## WHO?

The code is based on the W3Schools, here more info about it -> https://www.w3schools.com/csS/css3_flexbox.asp
Convert complex form into html
Published: 2024-01-13 16:24:39

Hi, i have to migrate a desktop application to cloud, basically i've to rewrite many window forms in html in a Angular application (using basic html, css, bootstrap).

I need a tool to convert automatically these forms, becasuse they are a huge number and every form ha a lot of fields. Each form has 100 rows with same height, each row has different elements (lables,input,line,titles,icons) without any common schema. I've to preserve **every alignment** in the html page (for example a text input on line 3 should be aligned with another element on row 66). 
The final html shouldn't be responsive, there shouldn't any kind of wrapping, only if possibile a "zoom" on all elements where resizing the page, at some point it will appear scrollbar.
After some experiments, the only way i found to do this conversion, is mapping each form's row to a div (100vw). Then in each div, i'm evaluating different strategies:

 1. using absolute position with percentage. The only issue is that i have to specify a fixed height, is there a workaround to avoid this? Also using dynamic font-size i don't have a fixed height in all elements..

     `   <div class="container-fluid">
        <div style="height:25px; position:relative; font-size:0.8vw;">
          <div style="position:absolute;left:0%;width:12%;height:100%">FIRST TEXT</div>
          <div style="position:absolute;left:55%;width:15%;">Second text</div>
          <input style="position:absolute;left:71%;width:5%;" type="text" />
        </div>
    </div>`

 2. In each div i put a table with columns having fixed width in percentage (but it's a nightmare deal with different padding and margins in each cell)

 3. In each div i use display:grid, doing something like the previous point (but it's a nightmare deal with different padding and margins in each cell)

 4. In each div i use absolute positions and width in px, then using media queries i do a "scale" on all elements..it works but i know that is not a best practice, right? 

Which solution is better for you? Do you have other ideas to do this strange conversion?
(i exlude all stuff like grid system, flex because i have to keep the structure one to one and in source files i have only absolute coordinates without any kind of container's concept to aggregate elements)

Thanks
Gratitude for the incredible opportunity to serve as a speaker at the 19th NCR The Test Tribe On Playwright
Published: 2024-01-13 16:01:18

I wanted to express my sincere gratitude for the incredible opportunity to serve as a speaker at the 19th NCR Meetup on Playwright. Thanks The Test Tribe.

Here is The [link](https://www.linkedin.com/posts/kailashpathak_thetesttribe-softwaretesting-testers-activity-7151912461216964608-4MeL?utm_source=share&utm_medium=member_desktop) for More detail

Meeting with the amazing people who attended the meet-up was an enriching experience. The exchange of ideas and the opportunity to learn from each other was invaluable. 

I appreciate the effort and dedication that went into organizing the event, and I am grateful for the chance to contribute to the discussions.

Big Thanks to Derrick Theophilus, Ashutosh Garg, Mahesh Morya Mahesh Chikane Samarth Francis, Tushar Sharma,

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uaur6a8n3uwwmbkrhoxo.png)
Repo Wars: Mono vs. Poly - Finding Harmony in Code Management
Tags: github, git, microservices, monorepoandpolyrepo
Published: 2024-01-13 15:56:46

## Introduction
In the complex process of software development, effective version control and repository management are crucial. The technology community has long debated the advantages and challenges of using either mono-repos or poly-repos. Each approach offers its unique benefits and difficulties.

### Understanding Monorepos
Monorepos, also known as monolithic repositories, challenge the traditional model of having multiple repositories for different projects. Instead, they contain all projects and code under a single repository umbrella. This approach simplifies versioning and facilitates easier dependency management.

In simple terms, mono-repo means having 1 git repository that contains many projects.


![Mono-repo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b31wujuab4465vmmwyzb.png)



### Benefits of Monorepos:

- Centralized Versioning: By having all projects in a single repository, versioning becomes simpler, ensuring consistent and synchronized releases.
- Easier Dependency Management: Dependencies between projects are handled seamlessly within the mono-repo, reducing version conflicts and streamlining updates.
- Changes can be tracked together, tested together, and released together.

## Unveiling Polyrepos:

Polyrepos, or polyglot repositories, embrace a decentralized model where each project resides in its own repository. This approach is often favored in large organizations with independently evolving projects. 

In simple terms, Poly-repo means having one repository for each service.



![poly-repo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rmv68v2vkal7pvb6mkku.png)


### Benefits of Polyrepos:

- Isolation and Independence: Projects operate autonomously, allowing for independent versioning and releases.
- Scalability: This approach is well-suited for organizations with diverse and independent project teams.
Document Conversion APIs: A Comparative Study and Node.js Integration Guide
Tags: documentation, node, api
Published: 2024-01-13 15:53:31

Hello Dev Community 👋

Excited to share two resources I've authored on document conversion APIs:

1. Analysis of TOP Document Conversion APIs: Delve into my blog where I compare various APIs, focusing on features like file format support, conversion quality, and pricing. Perfect for those looking to choose an API that fits their project needs. [Read it here](https://apyhub.com/blog/exploring-top-document-conversion-apis)

2. Node.js Integration Tutorial: Follow my step-by-step guide to integrate a document conversion API into a Node.js application. This practical guide is filled with code snippets and clear instructions. Ideal for Node.js developers. [Check it out here](https://apyhub.com/blog/document-pdf-conversion-step-by-step-guide-nodejs-apyhub-api)

Your feedback and experiences are welcome!

Happy coding!
Switching Docker contexts between Rancher Desktop and Docker Desktop
Tags: docker, rancher
Published: 2024-01-13 15:46:44

In the fast-paced world of Docker development, having the flexibility to switch between different contexts is a game-changer. Whether you're using Rancher Desktop or Docker Desktop, the Docker CLI offers a smooth transition. In this quick read, we'll explore how to effortlessly switch between these two environments.

Switching from **Rancher Desktop** to **Docker Desktop**:

1. **Command:**
   - If you're moving from Rancher Desktop to Docker Desktop, run:

```
docker context use default
```
   - This sets your Docker context to the default, pointing to Docker Desktop.

2. **Verify:**
   - Confirm the switch with:

```bash
docker info
```
   - Ensure the output reflects the Docker Desktop daemon.

Switching from **Docker Desktop** to **Rancher Desktop**:

1. **Command:**
   - Transitioning from Docker Desktop to Rancher Desktop is as easy as:

```bash
docker context use rancher-desktop
```
   - Ensure Rancher Desktop is running before executing.

2. **Verify:**
   - Confirm the switch with:
```bash
docker info
```
   - Check for Rancher Desktop daemon information in the output.

Listing Available Contexts:

- To see all available Docker contexts, use:
```bash
docker context ls
```
  - The active context is marked with an asterisk.

Specifying Context in Commands:

- Directly specify the context in your Docker commands:
```bash
docker --context rancher-desktop run -it my_image
```
  - Replace `rancher-desktop` with your desired context.

**Conclusion:**

Effortlessly manage your Docker workflow by mastering context switching, empowering you to seamlessly transition between Rancher Desktop and Docker Desktop with just a few commands!

Happy Dockering! 🐳
Criar uma partição SWAP para uma VM Linux do Azure
Published: 2024-01-13 14:53:33

Criar Swap de forma automática em disco /mnt nas Vms do Azure.

Bom dia pessoal, venho contribuir um pouco com uma solução para um problema que temos com memória Swap para sistemas Linux em Vms do Azure quando direcionamos o arquivo Swap para o disco de recursos padrão das Vms do Azure que são montados automaticamente no /mnt.

O conteúdo desse disco é temporário. Quando uma VM é movida para outro host ou interrompida/desalocada, todos os dados gravados neste disco serão apagados.

Porém a Microsoft recomenda criar o arquivo de Swap nesse disco, agora um problema chato que sempre tinha que ficar atento é lembrar de recriar a swap manualmente quando a máquina era desligada e ligada novamente por alguma necessidade.

Pesquisando uma forma de automatizar isso na inicialização da máquina encontrei o seguinte artigo do Microsoft Learn explicando 3 formas de fazer isso de forma simples e automatizada "Por isso gosto tanto deles kkkkkkkk".

Bom o link oficial é esse: [Acesse](https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/create-swap-file-linux-vm)

Vou demonstrar aqui apenas como fazer por meio de um arquivo swap.sh conforme descrito no link acima:

1 - Criar uma partição SWAP no recurso ou caminho de disco personalizado usando scripts. 

Crie um script de criação SWAP chamado swap.sh em /var/lib/cloud/scripts/per-boot com o seguinte conteúdo:

``` 
#!/bin/sh

# Percent of space on the ephemeral disk to dedicate to swap. Here 30% is being used. Modify as appropriate.
PCT=0.3

# Location of the swap file. Modify as appropriate based on the location of the ephemeral disk.
LOCATION=/mnt

if [ ! -f ${LOCATION}/swapfile ]
then

    # Get size of the ephemeral disk and multiply it by the percent of space to allocate
    size=$(/bin/df -m --output=target,avail | /usr/bin/awk -v percent="$PCT" -v pattern=${LOCATION} '$0 ~ pattern {SIZE=int($2*percent);print SIZE}')
    echo "$size MB of space allocated to swap file"

     # Create an empty file first and set correct permissions
    /bin/dd if=/dev/zero of=${LOCATION}/swapfile bs=1M count=$size
    /bin/chmod 0600 ${LOCATION}/swapfile

    # Make the file available to use as swap
    /sbin/mkswap ${LOCATION}/swapfile
fi

# Enable swap
/sbin/swapon ${LOCATION}/swapfile
/sbin/swapon -a

# Display current swap status
/sbin/swapon -s
```

O script será executado a cada inicialização e alocará 30% do espaço disponível no disco de recursos. Você pode personalizar os valores com base na sua situação.



2 - Torne o script executável:
> chmod +x /var/lib/cloud/scripts/per-boot/swap.sh


3 - Pare e inicie a VM. Parar e iniciar a VM só é necessário na primeira vez após a criação do arquivo SWAP.

Espero que ajude! Até a próxima, fiquem com Deus.
KWOC-23 | Kharagpur Winter Of Code Project Report.
Tags: kwoc, opensource, webdev
Published: 2024-01-13 14:52:57

## What is KWOC?

Kharagpur Winter of Code (KWOC) is a 5-week long online program designed for students who are new to open-source software development. Not only does the program provide a gateway for students to get involved in open source, but it also serves as preparation for various open-source summer programs, with Google Summer of Code (GSoC) being one of them.

## About Me

Hey👋 there! I'm Ayush Talesara, a self-taught web developer currently in my third year of college. I've enthusiastically dived into React, and I'm thrilled to share my successful contributions to Hacktoberfest23 and Codepeak23. Excited to continue learning and growing in the world of web development!

## Choosing Projects

Throughout the month, a variety of projects were available to choose from, and I gravitated towards web development-based ones, especially those involving React, leveraging my expertise in web technologies. 

In particular, Digitomize and AR-Webstore caught my interest. They seemed practical, prompting me to dive into the code, understand its details, and explore opportunities to add more features.

## Overview of My Contributions

I initiated my contributions with the AR-Webstore project, addressing issues related to the misalignment of the navbar on small screens. Additionally, I implemented a hamburger button animation for an enhanced user experience. Subsequently, I refactored the code for the navbar. Shifting my focus to Digitomize, I improved the drop-down menu by adding a contest logo to facilitate better filtering of contest data.

### Contributions Details:

- **Fix The Content Not Aligned Properly, Add Contest Icons in Tags [#346](https://github.com/digitomize/digitomize/pull/346) Merged At [#349](https://github.com/digitomize/digitomize/pull/349)**

![digitomize#issue349](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yqy3r0trxraxhgifw7s.png)

- **Navbar Is Not Aligned Correctly And Hamburger Menu Is Not Working Properly [#179](https://github.com/ShwetKhatri2001/AR-Webstore/issues/179) Merged At [#181](https://github.com/ShwetKhatri2001/AR-Webstore/pull/181)**

- **Refactoring the Navbar Code [#183](https://github.com/ShwetKhatri2001/AR-Webstore/issues/183) Merged At [#184](https://github.com/ShwetKhatri2001/AR-Webstore/pull/184)**

![AR-Webstore#issue179&183](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ke49shxbmd1sxeg9p5ib.png)

> Special thanks to the KWOC team and the program for providing this excellent opportunity. Also, a heartfelt shout-out to all the mentors of the projects. 🚀
Technical solutions are written in Golang
Tags: go, backend, devops, github
Published: 2024-01-13 14:51:26

Suggest you review the common technical solutions written in **Golang** on **GitHub** Repositories I encountered to manage my daily tasks. Thus, most of the best practices are available there.

1- The **AWS** Provider allows Terraform to manage AWS resources.

[https://github.com/hashicorp/terraform-provider-aws](https://github.com/hashicorp/terraform-provider-aws)

2- The **Prometheus**, a Cloud Native Computing Foundation project, is a systems and service monitoring system.

[https://github.com/prometheus/prometheus](https://github.com/prometheus/prometheus)

3- The **imgproxy**, a fast and secure standalone server for resizing and converting remote images.

[https://github.com/imgproxy/imgproxy](https://github.com/imgproxy/imgproxy)

4- The **CoreDNS** is a DNS server/forwarder, written in Go, that chains plugins. Each plugin performs a (DNS) function.

[https://github.com/coredns/coredns](https://github.com/coredns/coredns)

5- The **Gitea**, is the Git repository manager with the easiest, fastest, and most painless way of setting up a self-hosted Git service.

[https://github.com/go-gitea/gitea](https://github.com/go-gitea/gitea)

6- The **MinIO** is a High-Performance Object Storage released under GNU Affero General Public License v3.0.

[https://github.com/minio/minio](https://github.com/minio/minio)
An alternative way to debug your Python code
Tags: python, vscode, programming, productivity
Published: 2024-01-13 14:39:53

# Rich Exception

Python developers use print(variable_foobar) or debugging feature of IDE such as VS Code to troubleshoot, but aren't there any quicker alternative ways?

`rich` package can make the exception traceback nicer; show the local variable values and extra lines of code.


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

## How to use

1. Install rich

```bash
pip install -U rich
```

2. Place the following code in the beginning of your main module.

```python
try:
    from rich.traceback import install

    install(
        console=None,
        width=200,
        extra_lines=3,
        theme=None,
        word_wrap=True,
        show_locals=True,
        locals_max_length=10,
        locals_max_string=80,
        locals_hide_dunder=True,
        locals_hide_sunder=None,
        indent_guides=True,
        suppress=(),
        max_frames=20,
    )
except Exception:
    print("Failed to set up rich traceback. Try: pip install -U rich")
```

Alternatively, to apply to all the codes you run, you may place the Python code in `sitecustomize.py` file in `site-packages` directory which can be found by running:

```bash
python -c "import sys;print(sys.path)"
```

## References

Regarding the options, see the documents:

<https://rich.readthedocs.io/en/stable/traceback.html#traceback-handler>
<https://rich.readthedocs.io/en/stable/reference/traceback.html#rich.traceback.install>
CKAD Exam Guide for 2024
Tags: kubernetes, cloudnative, ckad, guide
Published: 2024-01-13 14:25:58


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

In the year 2024, I started with good news, I had cleared my CKAD exam and I thought to share my experience to prepare and face the exam.

Background

I have done projects in the last 4 years using the k8 environments. Though I have worked on projects I thought to prepare for certification and prove I know k8. My first choice was to start CKA and decided to start CKAD first and then moved to CKA.

Materials   

1.  Mumshad Mannambeth this udemy course I have followed.
2.  KillerCode this Tutorial link
3.  K8 Documentation https://kubernetes.io/docs/home/
4.  For Network policies this repository is very useful
5.  This GitHub repository is ok but some of the content is outdated.

Prepare for Exam

Read full article in [here](https://medium.com/@sajithv/ckad-exam-guide-for-2024-9d9dddb30f35)
Abyat e bahoo pdf free download
Published: 2024-01-13 14:17:48

[HazratSultanBahu.com](https://urdu.hazratsultanbahu.com/urdu/kalam-sultan-bahu/abyat-e-bahoo-pdf-download-sultan-bahu-poetry-kalam-haq-bahoo-kalam-bahu-pdf-download-kalam-bahoo-sultan-bahoo-kalam-in-punjabi-kalam-e-bahoo-kalam-e-bahu-lyrics-sultan-bahoo-books-sultan-bahu-books/akb/1/) Publications books series is for spiritual awakening and is spirit guide to get spirituality you shall discover what is sufism in sarwari qadri sufi, All free hazrat sultan bahu books in english hazrat sultan bahoo books pdf download haq bahoo abyat e bahoo Punjabi kalam bahoo videos sultan bahu poetry TV sultan bahu books in Urdu.