Search code snippets, questions, articles...

A portal for programmers by programmers

Learn something new everyday and share your knowledge

Programming Feeds

Create a Login modal popup using HTML and CSS

Devsheet / March 17, 2023

Login forms are a common feature on many websites and web applications, allowing users to securely access their personal accounts and data. One way to make the login process more user-friendly is by using a modal popup, which appears on top of the existing content and provides a focused interface for entering login credentials. In this article, we will explore how to create a login modal popup using HTML and CSS, two fundamental technologies of the web. We will cover the basic structure and styling of the modal popup. By the end of this tutorial, you will have a working login modal popup that you can use on your own website or web application.

Securely hide different application URLs in a Web Application

Devsheet / March 15, 2023

In order to securely hide different application URLs in our web application, we can utilize a variety of methods. In many cases, the most effective method is to use a Reverse Proxy. This involves taking an incoming URL and relaying it to the proper application server without revealing the actual address.

10 Best Games to Play with ChatGPT

Devsheet / March 15, 2023

Welcome to the world of ChatGPT! As an AI language model, ChatGPT is always ready to engage in conversations and provide useful information to users. But did you know that ChatGPT can also play games with you? In this article, we'll be exploring the 10 best games to play with ChatGPT. Whether you're looking for a fun and easy way to pass the time, or want to challenge yourself with some brain teasers, ChatGPT is here to provide you with hours of entertainment. So, get ready to test your wits and have some fun with these exciting games to play with ChatGPT!

Evolution of ChatGPT: A Look Back at its Journey

Devsheet / March 12, 2023

ChatGPT is a natural language processing AI model developed by OpenAI in 2020. It is one of the largest language models to exist today, with a total of 175 billion parameters. ChatGPT has the ability to read, comprehend, and generate human-like text. It is capable of answering questions, providing information, and engaging in conversations with people. In this article, we will take a closer look at the evolution of ChatGPT and its journey to becoming one of the most advanced AI models in the world.

Push notifications with C#

applicDB40 / March 6, 2023

LogHive provides an SDK for C# that makes it easy to integrate the service into your application. You can download the SDK via NuGet (NuGet Package) and install it in your project. Then, all you need is a few lines of code to start pushing events to Loghive. For example, to push a new event, you can use the following code.

Create Alert Dialog in Flutter

Devsheet / February 28, 2023

An Alert Dialog in Flutter is a modal dialog box that displays important information to the user and requires their acknowledgment before they can proceed with other actions in the app. It's commonly used to show error messages, confirmations, or to get user input.

Django - invalid http_host header you may need to add to allowed_hosts

Devsheet / February 22, 2023

This error message is a security feature in Django that is designed to prevent HTTP Host header attacks. It occurs when the Host header in an incoming request does not match any of the values in the ALLOWED_HOSTS setting in your Django project's settings.

Error - Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

Devsheet / February 22, 2023

If you are getting the above error while building your Flutter project then you can the below commands to remove the error.

Error - Building wheel for backports.zoneinfo (pyproject.toml) did not run successfully [Solved]

Devsheet / February 22, 2023

If you are using Python version 3.9 or later then you can get the above error while installing packages from requirement.txt file. To resolve this error change in requiremnt.txt file as below.

Add a month to Date in Javascript

Devsheet / February 11, 2023

Adding a month to a date in JavaScript is a common task that is often used in scheduling, calendar, or date-related applications. In JavaScript, the Date object provides several methods that can be used to manipulate dates, such as setMonth, setDate, and getMonth. By using these methods, it's possible to add a specified number of months to a date and obtain the resulting date.

Web Page with 3 cards Displaying images

anandts / February 6, 2023

This code uses functional components, Card and App, to display the cards. The Card component takes in props for an image, title, and text and displays them using inline styles. The App component then uses the Card component three times, passing in different values for each card.

Convert a List of Strings to List of Integers in Python

Devsheet / January 28, 2023

Converting a list of strings to a list of integers in Python can be a useful technique for data manipulation and processing. In this post, we will explore different methods to convert a list of strings to a list of integers in Python, including using list comprehension and the map() function.

Javascript to find which DOM element has the focus

Devsheet / January 28, 2023

In JavaScript, you can use the document.activeElement property to determine which DOM element currently has the focus. This property returns the element that currently has focus, or null if no element has focus.

Create a Modal Popup Component in React

Devsheet / January 28, 2023

Creating a modal popup component in React is a great way to add a user-friendly, interactive element to your website or application. A modal popup is a dialog box that appears on top of the current screen, allowing users to interact with the content within it.

Efficiently Remove the Last Element from an Array in JavaScript [6 Methods Explained]

Devsheet / January 28, 2023

Welcome to our guide on how to efficiently remove the last element from an array in JavaScript. In this tutorial, we will be discussing six different methods that can be used to accomplish this task.

HTMX - Show loader when request is in progress

Devsheet / January 28, 2023

In HTMX, you can use the hx-get or hx-post attribute to make an AJAX request, and the hx-indicator attribute to toggle the visibility of a loader element.

HTMX - Send a Post request on Form Submit

Devsheet / January 28, 2023

To send a POST request using the HTMX library in Python, you can use the htmx.post() function. It send a POST request to the server with form data.

Convert List of Tuples to JSON string in Python

Devsheet / January 27, 2023

You can use the json module in Python to convert a list of tuples to a JSON string. We will explain it with examples in this post.

Create a tab component in React

Devsheet / January 26, 2023

Welcome to this tutorial on creating a tab component in React. Tabs are a common UI element in web applications and can be used to organize and present content in a clear and user-friendly way.

Vim - exit insert mode if ESC not working

Devsheet / January 24, 2023

If the ESC key is not working in Vim's insert mode, you can try using the "Ctrl + [" key combination instead to exit insert mode. This is because the "Ctrl + [" key combination is the default mapping for the ESC key in Vim.

Flutter run app in release mode

Devsheet / January 16, 2023

To run a Flutter app in release mode, you can use the command flutter run --release in the terminal while in the root directory of your app. This will build and run the app in release mode, which is optimized for performance and is typically used for distribution to end users.

Get Tag Name of an Element using Javascript

Devsheet / January 14, 2023

In JavaScript, the tag name of an HTML element can be retrieved using the .tagName property. The .tagName property returns a string representing the tag name of the provided element.

Email_Automation

sovbam125E8C / January 4, 2023

This Code is to be used to automatically send Emails from sheet data.

Native Video Ad Sample xml file

Devsheet / January 2, 2023

This XML file provides an example of how a native video ad can be created and encoded in XML. It includes the necessary parameters and elements needed to successfully encode a native video ad, allowing developers and advertisers to quickly and effectively create their own native video ad.

Python program to Generate a Random String

Devsheet / January 1, 2023

In Python, it is often useful to generate random strings for various purposes, such as generating unique IDs, passwords, or test data. Python provides several modules that allow you to generate random strings easily.

The Maximum Length of a Python String Explained

Devsheet / January 1, 2023

In Python, the maximum length of a string is determined by the amount of memory available to the Python interpreter. In practice, this means that a Python string can be as long as your system's available memory allows.

Python Strings: Learn How to Add Line Breaks

Devsheet / January 1, 2023

Python strings can be used to store text and data. They are useful for displaying text to users, writing messages, and other types of communication. In some cases, you may need to add a line break to your string. This article will explain how to do this in Python.

Learn to Use Python's Built-In String Functions

Devsheet / January 1, 2023

There are several built-in string functions in Python that can be used to manipulate and work with strings. Here is a list of some of the most commonly used string functions:

Check if the Java JDK is installed on Mac

Devsheet / January 1, 2023

In this post, we will explain how to check if Java JDK is installed on your MAC or not.

Loading more...