跟随,学习,进步

Stack Abuse

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

https://stackabuse.com
转到作者网站

Topological Sorting in Java

Introduction When getting dressed, as one does, you most likely haven't had this line of thought: Oh, it might have been a good idea to put on my underpants before getting into my trousers. That's because we're used to sorting our actions topologically. Or in simpler terms, we're used to


Working with Zip Files in Java

Introduction In this article I cover the basics of creating, interacting with, inspecting, and extracting zip archive files using Java (OpenJDK 11 to be specific). The code sample used in this article is in the form of a Gradle project and hosted in this GitHub repo for you to run


Debugging Python Applications with the PDB Module

Introduction In this tutorial, we are going to learn how to use Python's PDB module for debugging Python applications. Debugging refers to the process of removing software and hardware errors from a software application. PDB stands for "Python Debugger", and is a built-in interactive source code debugger with


Basics of Memory Management in Python

Introduction Memory management is the process of efficiently allocating, de-allocating, and coordinating memory so that all the different processes run smoothly and can optimally access different system resources. Memory management also involves cleaning memory of objects that are no longer being accessed. In Python, the memory manager is responsible for


Stripe Integration with Java Spring for Payment Processing

Introduction It's no lie that "everything is going digital". A lot of products never reach the shelves, but rather get sold online. With the arising number of entrepreneurs, startups, and online sales, a very high percentage of websites nowadays have a payment system, whether it's a subscription to


Spread Operator in JavaScript

Introduction In this tutorial, we'll explore one of the powerful features of the ES6 specification of JavaScript - the Spread Operator. Although the syntax is simple, sometimes the implementation is confusing if you do not understand it properly. In this tutorial, we'll demystify those three dots ... of JavaScript that does


Using Django Signals to Simplify and Decouple Code

Introduction Systems are getting more complex as time goes by and this warrants the need to decouple systems more. A decoupled system is easier to build, extend, and maintain in the long run since not only does decoupling reduce the complexity of the system, each part of the system can


Tesseract: Simple Java Optical Character Recognition

Introduction Developing symbols which have some value is a trait unique to humans. Recognizing these symbols and understanding the letters on an image is absolutely normal for us. We never really grasp letters like computers do, we completely base our ability to read them on our sight. On the other


Python Docstrings

As already pointed out in a previous article titled Commenting Python Code you have learned that documentation is an essential, and a continuous step in the process of software development. The article mentioned above briefly introduced the concept of docstrings which is a way to create documentation for your Python


Rounding Numbers in Python

Using a computer in order to do rather complex Math is one of the reasons this machine was originally developed. As long as integer numbers and additions, subtractions, and multiplications are exclusively involved in the calculations, everything is fine. As soon as floating point numbers or fractions, as well as


Spring Cloud: Distributed Tracing with Sleuth

Overview In this article, we'll introduce you to Spring Cloud Sleuth, which is a distributed tracing framework for a microservice architecture in the Spring ecosystem. In a typical microservice architecture we have many small applications deployed separately and they often need to communicate with each other. One of the challenges


Image Classification with Transfer Learning and PyTorch

Introduction Transfer learning is a powerful technique for training deep neural networks that allows one to take knowledge learned about one deep learning problem and apply it to a different, yet similar learning problem. Using transfer learning can dramatically speed up the rate of deployment for an app you are


Java String Interview Questions

Introduction Without a doubt, the String class is the most used class in Java, representing a sequence of characters, treated as an object. Given the quintessential role of Strings in virtually all Java applications, recruiters give a lot of attention to String-related questions during a job interview. When


Spring Annotations: Testing

Introduction The Spring Framework is a very robust framework, released in 2002. Its core features can be applied to plain Java applications or extended to complex, modern web applications. As it's constantly being updated and is following new architectural and programming paradigms, it offers support for many other frameworks that


Java Iterable Interface: Iterator, ListIterator, and Spliterator

Introduction While we can use a for or while loop to traverse through a collection of elements, an Iterator allows us to do so without worrying about index positions and even allows us to not only go through a collection, but also alter it at the same time, which isn't


Best JavaScript Books for All Skill Levels

Introduction JavaScript is one of the most widely used programming languages. The power of Single Page Applications gave birth to various JavaScript-based frontend frameworks/libraries like JQuery, Angular, React, etc. With the debut of Node, its popularity has reached new heights. According to the StackOverFlow developers survey 2019, JavaScript is


Python for NLP: Movie Sentiment Analysis using Deep Learning in Keras

This is the 17th article in my series of articles on Python for NLP. In the last article, we started our discussion about deep learning for natural language processing. The previous article was focused primarily towards word embeddings, where we saw how the word embeddings can be used to convert


Serverless Python Application Development with AWS Chalice

Introduction In software development, we are constantly building solutions for end-users that solve a particular problem or ease/automate a certain process. Therefore, designing and building the software is not the only part of the process as we have to make the software available to the intended users. For web-based


Creating Python GUI Applications with wxPython

Introduction In this tutorial, we're going to learn how to use wxPython library for developing Graphical User Interfaces (GUI) for desktop applications in Python. GUI is the part of your application which allows the user to interact with your application without having to type in commands, they can do pretty


Spring Annotations: Spring Cloud

Introduction The Spring Framework is a very robust framework, released in 2002. Its core features can be applied to plain Java applications or extended to complex, modern web applications. As it's constantly being updated and is following new architectural and programming paradigms, it offers support for many other frameworks that