Stack Abuse

Stack Abuse features News, articles, and ideas for software engineers and web developers.


Scheduling Spring Boot Tasks

Introduction Scheduling tasks to be performed at a later date, or repeated in a fixed interval, is a very useful feature. For example, newsletter systems or tasks which process information at a set timeframe rely on being scheduled to run at certain time points. Since Spring Boot offers several options,

Get HTTP POST Body in Express.js

Introduction In this brief article we'll be going over how to extract information from a POST body in Express.js. The HTTP protocol provides a number of ways to pass information from a client to a server, with POST bodies being the most flexible and most commonly used method to

Spring Boot Actuator

Overview In this article, we'll look into Spring Boot Actuator, which provides built-in production ready endpoints that can be used for monitoring and controlling your application. Monitoring applications may include something as simple as knowing the Health and Info to some complex data like understanding Traffic and Metrics for our

Understanding OpenGL through Python

Introduction Following this article by Muhammad Junaid Khalid, where basic OpenGL concepts and setup was explained, now we'll be looking at how to make more complex objects and how to animate them. OpenGL is very old, and you won't find many tutorials online on how to properly use it and

Object Oriented Design Principles in Java

Introduction Design principles are generalized pieces of advice or proven good coding practices that are used as rules of thumb when making design choices. They're a similar concept to design patterns, the main difference being that design principles are more abstract and generalized. They are high-level pieces of advice, often

Reading and Writing YAML to a File in Node.js/JavaScript

Introduction In last few years YAML, which stands for YAML Ain't Markup Language, has become very popular for use in storing data in a serialized manner, typically configuration files. Since YAML essentially is a data format, the YAML specification, is fairly brief. Thus, the only functionality required of YAML libraries

Introduction to Node.js Streams

Introduction Streams are a somewhat advanced concept to understand. So in this article, we will go along with some examples for a better understanding an introduce you to a few concepts along the way. What is a Stream In simple terms, streams are used to read from input or write

Coroutines in Python

Introduction Every programmer is acquainted with functions - sequences of instructions grouped together as a single unit in order to perform predetermined tasks. They admit a single entry point, are capable of accepting arguments, may or may not have a return value, and can be called at any moment during

Asynchronous Tasks Using Flask, Redis and Celery

Introduction As web applications evolve and their usage increases, the use cases also diversify. We are now building and using websites for more complex tasks than ever before. Some of these tasks can be processed and feedback relayed to the users instantly, while others require further processing and relaying of

Time Series Prediction using LSTM with PyTorch in Python

Time series data, as the name suggests is a type of data that changes with time. For instance, the temperature in a 24-hour time period, the price of various products in a month, the stock prices of a particular company in a year. Advanced deep learning models such as Long

Bubble Sort in Java

Introduction Sorting is a crucial aspect of digesting data. For us humans, it's much more natural to sort things that have something in common like the date of publishing, alphabetical order, articles belonging to an author, from smallest to largest, etc... This makes it a lot easier to comprehend the

Handling File Uploads in Node.js with Express and Multer

Introduction Users don't only consume data, they also produce data and upload it. They can send data through applications like messengers or email to specific recipients or upload files to social networks and data streaming platforms such as Facebook or YouTube. That being said, almost every interactive website today supports

Monitoring Spring Boot Apps with Micrometer, Prometheus, and Grafana

Introduction Monitoring an application's health and metrics helps us manage it better, notice unoptimized behavior and get closer to its performance. This especially holds true when we're developing a system with many microservices, where monitoring each service can prove to be crucial when it comes to maintaining our system. Based

Introduction to PyTorch for Classification

PyTorch and TensorFlow libraries are two of the most commonly used Python libraries for deep learning. PyTorch is developed by Facebook, while TensorFlow is a Google project. In this article, you will see how the PyTorch library can be used to solve classification problems. Classification problems belong to the category

Serving Static Files with Node and Express.js

Introduction In this article, we are going to a build simple app to serve static files like HTML files, CSS files, and images using Node.js and Express. Configuring the Project and Installing Express To get started, let's create a new Node.js project by running the init command in

Shell Sort in Java

Introduction Sorting algorithms are algorithms that rearrange a collection's members in a certain order. The order criteria can vary and it is typically user-defined. In practice, the order criteria is provided to the algorithm as a method that compares two objects and returns: 0: If the compared entities are considered

How to Install and Set Up MySQL Server on Windows

Introduction Relational Database Management Systems (RDBMS) are, as of 2019, still ahead of Not Only SQL (NoSQL) Databases. While this is set to change in the future with the rise of things like MongoDB, enterprise applications and legacy projects are not very likely to change their models any time soon.

Uploading Files to AWS S3 with Python and Django

Introduction In the quest to build more interactive websites, we don't only relay information to users but also allow them to upload data of their own. This opens up more opportunities and more ways that our websites can serve the end-users. By allowing users to upload files, we can allow

Building a REST API with Node and Express

Introduction In this tutorial, we are going to build a REST API to manage books with Node.js and Express. To get started with it, I assume that you have Node.js installed, you have some experience in JavaScript, and some basic knowledge of HTML and Bootstrap. For the sake

Autoencoders for Image Reconstruction in Python and Keras

Introduction Nowadays, we have huge amounts of data in almost every application we use - listening to music on Spotify, browsing friend's images on Instagram, or maybe watching an new trailer on YouTube. There is always data being transmitted from the servers to you. This wouldn't be a problem for