Article
Oftentimes, we need to redirect users to another website or another web page on the same site. There are several ways to redirect which include JavaScript redirection, server-side redirection, and HTML meta refresh redirection. Redirection is basically a mechanism to send users to another URL address. The motivation to use...
Guest Contributor
In this guide, we'll take a look at how to use Python's PyQT framework to develop a Graphical User Interface (GUI) for a desktop application in Python. Popular Python alternatives for developing a GUI include Tkinter, Kivy, PySimpleGUI, and wxPython. Note: As of writing this tutorial, PyQt6 is the latest...
In this tutorial, we'll take a look at how to parse Datetime with parsedatetime in Python. To use the parsedatetime package we first need to install it using pip: $ pip install parsedatetime Should pip install parsedatetime fail, the package is also open-source and available on GitHub. Convert String to Python's...
In this article we'll be taking a look at how to read and write CSV files in Kotlin, specifically, using Apache Commons. Apache Commons Dependency Since we're working with an external library, let's go ahead and import it into our Kotlin project. If you're using Maven, simply include the commons-csv...
In this tutorial, we'll take a look at how to check if a list contains an element or value in Python. We'll use a list of strings, containing a few animals: animals = ['Dog', 'Cat', 'Bird', 'Fish'] Check if List Contains Element With...
It is imperative to carry out server-side validation when building applications - especially client-facing applications. The reason being, one can never rely on the user’s input alone; as these inputs sometimes contain bogus/malicious data. Client-side validation is a great way to sift through most of the input, but...
Dictionaries are one of the most used data structures in all of software development, and for a good reason. They allow us to store our data in neat key, value pairs, which in turn gives us the ability to, on average, access our data in O(1) time. While using...
Currency is a very important part of our modern world. So, it's equally important for us to be able to properly express it in Java. In this tutorial, we'll go over how to format numbers as currency Strings in Java. Format Number as Currency String Here's how you can easily...
Selecting a random element or value from a list is a common task - be it for randomized results from a list of recommendations or just a random prompt. In this article, we'll take a look at how to randomly select elements from a list in Python. We'll cover the...
© 2013-2024 Stack Abuse. All rights reserved.