跟随,学习,进步

Stack Abuse

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

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

How to Send HTTP Requests in Java

Introduction Hypertext Transfer Protocol (HTTP) is an application-layer protocol, which without exaggeration, is pretty much is the backbone of Internet browsing as we know it. It's used for transferring hypermedia documents between the client and the server and is an essential part of every single web application, including any APIs


Non-Access Modifiers in Java

Introduction Modifiers are keywords that let us fine-tune access to our class and its members, their scope, and behavior in certain situations. For example, we can control which classes/objects can access certain members of our class, whether a class can be inherited or not, whether we can override a


Access Modifiers in Java

Introduction Modifiers are keywords that let us fine-tune access to our class and its members, their scope, and behavior in certain situations. For example, we can control which classes/objects can access certain members of our class, whether a class can be inherited or not, whether we can override a


Git: Merge Branch into Master

One of Git's most powerful features is the ability to easily create and merge branches. Git's distributed nature encourages users to create new branches often and to merge them regularly as a part of the development process. This fundamentally improves the development workflow for most projects by encouraging smaller, more


Python: Check if String Contains Substring

In this article, we'll examine four ways to use Python to check whether a string contains a substring. Each has their own use-cases and pros/cons, some of which we'll briefly cover here: 1) The in Operator The easiest way to check if a Python string contains a substring is


HashMap and TreeMap in Java: Differences and Similarities

The performance of a Java program and the proper use of resources are often depend on a collection a developer chose for storing data. Hence, it is very important to understand the difference between the implementations. That's why questions related to collections are in the top of interviews for Java


Python: Append Contents to a File

In this article, we'll examine how to append content to an existing file using Python. Let's say we have a file called helloworld.txt containing the text "Hello world!" and it is sitting in our current working directory on a Unix file system: $ cat ./helloworld.txt Hello world! Now assume


Overview of Async IO in Python 3.7

Python 3's asyncio module provides fundamental tools for implementing asynchronous I/O in Python. It was introduced in Python 3.4, and with each subsequent minor release, the module has evolved significantly. This tutorial contains a general overview of the asynchronous paradigm, and how it's implemented in Python 3.7.


Brief Introduction to OpenGL in Python with PyOpenGL

Introduction In this tutorial, we're going to learn how to use PyOpenGL library in Python. OpenGL is a graphics library which is supported by multiple platforms including Windows, Linux, and MacOS, and is available for use in multiple other languages as well; however, the scope of this post will be


Python for NLP: Working with the Gensim Library (Part 2)

This is my 11th article in the series of articles on Python for NLP and 2nd article on the Gensim library in this series. In a previous article, I provided a brief introduction to Python's Gensim library. I explained how we can create dictionaries that map words to their corresponding


Building GraphQL APIs with Vue.js and Apollo Client

Introduction GraphQL is a graph-oriented query language written by Facebook. In contrast to REST APIs, GraphQL introduces features that make API development more efficient and in tune with database models. GraphQL Features Unlike REST, there is only one endpoint where all requests are going to be sent to. So instead


Managing Environment Variables in Node.js with dotenv

Introduction Deploying an application requires developers to put thought and consideration into how it is configured. Many apps are deployed in a development environment before being deployed to the production environment. We need to ensure each environment is configured correctly, it could be disastrous if our production application was using


Working with PDFs in Python: Adding Images and Watermarks

Introduction Today, a world without the Portable Document Format (PDF) seems to be unthinkable. It has become one of the most commonly used data formats ever. Up to PDF version 1.4, displaying a PDF document in an according PDF viewer works fine. Unfortunately, the features from the newer PDF


Spring Security: Forgot Password Functionality

Introduction The internet is becoming more and more service oriented with more businesses and companies coming up with offerings that can be provided or accessed online. This requires users to create many accounts on many different platforms for the services that they get online. Such services range from online shopping


Introduction to Reinforcement Learning with Python

Introduction Reinforcement Learning is definitely one of the most active and stimulating areas of research in AI. The interest in this field grew exponentially over the last couple of years, following great (and greatly publicized) advances, such as DeepMind's AlphaGo beating the word champion of GO, and OpenAI AI models


Python for NLP: Working with the Gensim Library (Part 1)

This is the 10th article in my series of articles on Python for NLP. In my previous article, I explained how the StanfordCoreNLP library can be used to perform different NLP tasks. In this article, we will explore the Gensim library, which is another extremely useful NLP library for Python.


Test Driven Development with pytest

Introduction Good software is tested software. Testing our code can help us catch bugs or unwanted behavior. Test Driven Development (TDD) is a software development practice that requires us to incrementally write tests for features we want to add. It leverages automated testing suites, like pytest - a testing framework


Overview of Classification Methods in Python with Scikit-Learn

Introduction Are you a Python programmer looking to get into machine learning? An excellent place to start your journey is by getting acquainted with Scikit-Learn. Doing some classification with Scikit-Learn is a straightforward and simple way to start applying what you've learned, to make machine learning concepts concrete by implementing


Lambda Expressions in Java

Introduction Lambda functions have been an addition that came with Java 8, and was the language's first step towards functional programming, following a general trend toward implementing useful features of various compatible paradigms. The motivation for introducing lambda functions was mainly to reduce the cumbersome repetitive code that went into


Spring Cloud: Hystrix

Overview In this article, we'll introduce you to Spring Cloud Netflix Hystrix. It is a fault tolerance library, which implements the Circuit Breaker enterprise pattern - a pattern designed to prevent cascading failures. In a typical microservice architecture we have many small applications running separately. It's quite common that one