Article
Reversing a string isn't uncommon in development, and fairly popular for entry-level interview questions. With JavaScript, we have many ways to reverse a string. We can use a combination of string's split() method as well as array's reverse() and join() methods (since strings are ultimately arrays of characters). We can...
Guest Contributor
The square root of a number is a very common mathematical function used in all aspects of science - physics, mathematics, computer science, etc. Square roots of numbers and expressions are very frequent in formulas in all matters of science, and especially in the way we represent reality - by...
We commonly need and want to know more about the files and directories that we are working with. Most people know one of the ways, which is simply to Right Click > Properties on the wanted folder or file to view their properties. Though, for the moore terminal-savvy, here's how...
All Software Engineers that rely on external/third-party services or tools over HTTP would like to know whether their requests have been accepted, and if not - what's going on. Your role as an API developer is to provide a good experience for your users, and amongst other things -...
Thymeleaf is a templating (server-side rendering) engine used by many Java software engineers within Spring-based web applications. An important feature of any web application is the support for dynamic URLs and path variables within those URLs. Most REST APIs extensively use path variables to specify the IDs of elements they're...
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...
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 wih an external library, let's go ahead and import it into our Kotlin project. If you're using Maven, simply include the commons-csv...
© 2013-2023 Stack Abuse. All rights reserved.