跟随,学习,进步

Stack Abuse

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

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

Git: Add New Remote to a Repo

In the Git version control system you're able to push and pull code from any number of remote repositories. This is beneficial for when you want to pull in updates from someone else's fork of a project, for example. Or you may just want to have a way to link


Web Browser Automation with Selenium and Java

Introduction Several tools can drive the web browser the way a real user would do like navigating to different pages, interacting with the elements of the page and capturing some data. This process is called Web Browser Automation. What you can do with web browser automation is totally on your


Introduction to OpenCV with Python

Introduction In this tutorial, we are going to learn how to use OpenCV library in Python. OpenCV is an open source library which is supported by multiple platforms including Windows, Linux, and MacOS, and is available for use in multiple other languages as well; however, it is most commonly used


Run-Length Encoding

In this article we'll go over how the run-length encoding algorithm works, what it's used for, and how to implement its encode and decode functions in Python. Run-length encoding (RLE) is a very simple form of data compression in which a stream of data is given as the input (i.


Git: Create a New Branch

In Git, and most other VCS tools, branching is one of the main constructs that really make it useful for software development. These branches are almost like a new copy of your code at the current state, which can then be used to develop new code. For example, whenever you


Building a Todo App with Flask in Python

Introduction In this tutorial, we are going to build an API, or a web service, for a todo app. The API service will be implemented using a REST-based architecture. Our app will have the following main features: Create an item in the todo list Read the complete todo list Update


Introduction to Phaser 3: Building Breakout

Introduction Game development is a unique branch of software development that can be as rewarding as it is complex. When thinking of creating games, we usually think of an application to install and play on our computers or consoles. The HTML5 spec introduced many APIs to enable game development on


Multiple Linear Regression with Python

Introduction Linear regression is one of the most commonly used algorithms in machine learning. You'll want to get familiar with linear regression because you'll need to use it if you're trying to measure the relationship between two or more continuous values. A deep dive into the theory and implementation of


Mathematical Proof of Algorithm Correctness and Efficiency

Introduction When designing a completely new algorithm, a very thorough analysis of its correctness and efficiency is needed. The last thing you would want is your solution not being adequate for a problem it was designed to solve in the first place. In this article we will be talking about


Concurrency in Python

Introduction Computing has evolved over time and more and more ways have come up to make computers run even faster. What if instead of executing a single instruction at a time, we can also execute several instructions at the same time? This would mean a significant increase in the performance


Getting Started with Python's Wikipedia API

Introduction In this article, we will be using the Wikipedia API to retrieve data from Wikipedia. Data scraping has seen a rapid surge owing to the increasing use of data analytics and machine learning tools. The Internet is the single largest source of information, and therefore it is important to


How to Send Emails with Node.js

Introduction Email is one of the most used tools for communication in web applications because it helps you reach your users directly, build your brand, or send general notifications. So, you are thinking about sending emails from your next great Node.js application. You are in the right place! In


Working with PDFs in Python: Inserting, Deleting, and Reordering Pages

Introduction This article is part three of a little series on working with PDFs in Python. In the previous articles (see part 1 and part 2) we gave an introduction into reading PDF documents using Python. So far you have learned how to manipulate existing PDFs, and to read and


Creating and Importing Modules in Python

Introduction In Python, a module is a self-contained file with Python statements and definitions. For example, file.py, can be considered a module named file. This differs from a package in that a package is a collection of modules in directories that give structure and hierarchy to the modules. Modules


Predicting Customer Ad Clicks via Machine Learning

Introduction Internet marketing has taken over traditional marketing strategies in the recent past. Companies prefer to advertise their products on websites and social media platforms. However, targeting the right audience is still a challenge in online marketing. Spending millions to display the advertisement to the audience that is not likely


The Python String strip() Function

In this article, we'll examine how to strip characters from both ends of a string in Python. The built-in String type is an essential Python structure, and comes with a built-in set of methods to simplify working with text data. There are many situations in which a programmer may want


The Python zip() Function

In this article, we'll examine how to use the built-in Python zip() function. The zip() function is a Python built-in function that allows us to combine corresponding elements from multiple sequences into a single list of tuples. The sequences are the arguments accepted by the zip() function. Any number of


Spring Cloud: Turbine

Overview In this article, we'll introduce you to Spring Cloud Netflix Turbine. It aggregates multiple Hystrix Metrics Streams into one, so that it could be displayed into a single dashboard view. To give a small introduction to Hystrix. In a microservice architecture, we have many small applications that talk to


Image Recognition in Python with TensorFlow and Keras

Introduction One of the most common utilizations of Tensorflow and Keras is the recognition/classification of images. If you want to learn how to use Keras to classify or recognize images, this article will teach you how. Definitions If you aren't clear on the basic concepts behind image recognition, it


Asynchronous Tasks in Django with Redis and Celery

Introduction In this tutorial I will be providing a general understanding of why celery message queue's are valuable along with how to utilize celery in conjunction with Redis in a Django application. To demonstrate implementation specifics I will build a minimalistic image processing application that generates thumbnails of images submitted