Diksha Patro

Diksha Patro

99 Articles Published

Articles by Diksha Patro

Page 10 of 10

How to define a caption for a fieldset element in HTML5

Diksha Patro
Diksha Patro
Updated on 24-Mar-2023 1K+ Views

When developing HTML forms, it is critical to offer users clear and simple information about the purpose of the form and the data being gathered. One method is to add a caption or heading to a fieldset element, which is a collection of linked form components. The caption or header gives context and information about the form components contained inside the field set, allowing users to understand what information is being asked and how to appropriately fill out the form. Approaches There are several ways to add captions to a fieldset element in HTML. Here are several possibilities − ...

Read More

How to align two navbars in bootstrap?

Diksha Patro
Diksha Patro
Updated on 17-Feb-2023 352 Views

Introduction A well-liked front-end framework for creating websites and applications is called Bootstrap. The grid system in Bootstrap can be used to align two navigation bars (navbars). To align the two navbars in Bootstrap, use the ml-auto class on the second navbar and the’ justify-content-between’ type on the parent container of the two navbars. To position, the second navbar to the right of the parent container instead, use the 'float-right' class on the navbar. Approaches The following are some typical methods for aligning two navbars in bootstrap − Using the 'container' class on the parent container of the ...

Read More

How to add image before optgroup label using Bootstrap?

Diksha Patro
Diksha Patro
Updated on 31-Jan-2023 882 Views

Introduction When building web pages using Bootstrap, it may be useful to add an image before the label of an optgroup element. This can help to visually group options within a select element and make the page more user-friendly. In this article, we will discuss adding an image before the label of an optgroup element using Bootstrap. What is an optgroup? An optgroup is an HTML element that groups related options within a select element. The optgroup element creates a label for the group of options, and the options within the optgroup are indented and visually grouped together. Syntax ...

Read More

How to start tensorflow Docker jupyter notebook?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 2K+ Views

Introduction Jupyter notebooks are useful for writing, testing, and debugging code. TensorFlow is a machine learning framework that can be used with Jupyter notebooks. In this article, we will explore how to use Docker to start a TensorFlow Jupyter notebook, which will allow us to take advantage of the benefits of both of these tools. Prerequisites Before getting started, you will need to have Docker and Docker Compose installed on your machine. You can check if it is installed using the following commands − $ docker --version $ docker-compose --version You can follow the installation instructions for your ...

Read More

How to manage secret values with docker-compose v3.1?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 3K+ Views

Introduction As developers, we frequently need to incorporate private data into our applications, including passwords, API keys, and database credentials. Not only is it unsafe to hardcode these variables into our code or configuration files, but it can also be challenging to manage and change them when necessary. Using environment variables, which let us keep sensitive data apart from our codebase and configuration files, is one method to manage secret values. In this article, we'll look at how to maintain secret values using docker-compose v3.1 and inject them as environment variables into our containers. Prerequisites To follow along with this ...

Read More

How to Improve Docker Image Size With Layers?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 425 Views

In this article, we will discuss various approaches and techniques for improving Docker image size with layers, including multi-stage builds, using minimal base images, and using base images with pre-installed packages or pre-built binaries. By following these best practices, we can create smaller and more efficient Docker images that are optimized for performance and scalability. The size of Docker images with layers can be improved using a variety of methods as given below. Methods Using minimal base images Using base images with pre-built binaries Using multi-stage builds Using base images with pre-installed packages Let us discuss these methods ...

Read More

How to Find the layers and layer sizes for each Docker image?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 8K+ Views

Introduction By using containerization, we can quickly set up and configure our deployment environments, which helps us save time and resources. With the goal of "write once, deploy anywhere" in mind, containerization can help us streamline the process of deploying modern applications, which can be complex. Finding the layers and layer sizes for Docker images In this article, we will explore how to find the layers and layer sizes for each Docker image. This can be useful for identifying large layers that may be contributing to the overall size of the image, and for determining which layers can be removed ...

Read More

How to find Docker container processes?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 15K+ Views

Introduction Docker is a powerful tool that allows developers to build, ship, and run applications inside containers. Containers are small, independent executable packages that contain all the components - code, libraries, dependencies, and runtime - that an application requires to function. One of the key features of Docker is the ability to manage and monitor the processes running inside containers. In this article, we will explore how to find Docker container processes and how to use different methods to view and manage them. Prerequisites You will need Docker installed on your computer in order to follow along with this guide. ...

Read More

How to directly mount NFS share/volume in a container using Docker Compose v3?

Diksha Patro
Diksha Patro
Updated on 17-Jan-2023 9K+ Views

Docker is a widely used tool for developing and managing containerized applications. It enables programmers to combine their applications with their dependencies into small, portable containers that are simple to set up and use on any platform. Directly mounting Network File System (NFS) shares or volumes inside a container using Docker Compose v3 is one practical Docker capability. In this article, we will explore how to use Docker Compose v3 to directly mount an NFS share or volume in a container. Method to directly mount NFS share/volume in the container using Docker Compose v3 Here are some important terms and ...

Read More
Showing 91–99 of 99 articles
« Prev 1 6 7 8 9 10 Next »
Advertisements