The Curious Engineer

All blogs / Python

Stack Abuse

stackabuse.com

Boost your productivity with our comprehensive suite of developer tools. Convert images and data, format code, and more.

PythonJavaScript / TypeScriptAI / MLDevOps / SRE / infrastructureEngineering blogs

’15’16’17’18’19’20’21’22’23’24’25’26
Posts
554 from 23 Sep 2015 to 28 Sep 2026
Posting
monthly (6 in the last year)
Kind
magazine
Feed
https://stackabuse.com/rss/

2026 5

  1. Building a Secure Client-Server Protocol in Python: Sockets, Framing & Key Exchange
  2. Building a Developer-Friendly App Stack for 2026
  3. Building a Real-Time AI Chat Feature in Node.js Using OpenAI's Streaming API
  4. How to Set Up a Staging-to-Production Deployment Workflow for a Website
  5. AI-Powered Playwright: Building a Self-Healing CI/CD Testing Pipeline

2025 3

  1. Graph RAG: Elevating AI with Dynamic Knowledge Graphs
  2. Federated Learning Explained: Collaborative AI Without Data Sharing
  3. OTP Authentication in Laravel & Vue.js for Secure Transactions

2024 7

  1. Securing Your Email Sending With Python: Authentication and Encryption
  2. Using Proxies in Web Scraping – All You Need to Know
  3. Building Custom Email Templates with HTML and CSS in Python
  4. Changelog
  5. Gracefully Handling Third Party API Failures
  6. Simplify Regular Expressions with RegExpBuilderJS
  7. Guide to Strings in Python

2023 124

  1. Behind the Scenes: Never Trust User InputThis article is the first in a series of posts I'm writing about running various SaaS products and websites for the last 8 years. I'll be sharing some of the issues I've dealt with, lessons I've learned, mistakes I've made, and maybe a few things that went ri
  2. Guide to Heaps in PythonIn this guide, we'll embark on a journey to understand heaps from the ground up. We'll start by demystifying what heaps are and their inherent properties. From there, we'll dive into Python's own implementation of heaps, the heapq module, and explore its rich set of functiona
  3. Guide to Hash Tables in PythonWhile Python doesn't have a built-in data structure explicitly called a "hash table", it provides the dictionary, which is a form of a hash table. Python dictionaries are unordered collections of key-value pairs, where the key is unique and holds a correspondi
  4. Guide to Queues in PythonFrom storing simple integers to managing complex workflows, data structures lay the groundwork for robust applications. Among them, the queue often emerges as both intriguing and ubiquitous. Think about it - a line at the bank, waiting for your turn at a fast-food counter, o
  5. Guide to Stacks in PythonAt its core, a stack is a linear data structure that follows the LIFO (Last In First Out) principle. Think of it as a stack of plates in a cafeteria; you only take the plate that's on top, and when placing a new plate, it goes to the top of...
  6. Building Resilient Systems: Disaster Recovery Planning in Database ServicesIn the realm of database offerings, where data is the lifeblood of modern businesses, constructing resilient systems isn't just a best practice; it's a strategic imperative. Disaster recovery planning has become a cornerstone
  7. Linear Search in PythonLinear Search, also known as Sequential Search, operates by traversing through the dataset, element by element until the desired item is found or the algorithm reaches the end of the collection. Its simplicity and ease of implementation make it a go-to choice for small dataset
  8. How to Delete a File or Folder in Python
  9. Guide to Arrays in PythonArrays stand as one of the most fundamental and widely used data structures. --> An array is a structured way to store multiple items (like numbers, characters, or even other arrays) in a specific order, and you can quickly access, modify, or remove any item if you know its
  10. Guide to Sets in PythonAt a glance, they might seem similar to lists or dictionaries, but sets come with their own set of properties and capabilities that make them indispensable in certain scenarios. Whether you're looking to efficiently check for membership, eliminate duplicate entries, or perform
  11. Fix: "RecursionError: maximum recursion depth exceeded" in Python
  12. Get Name from an Email Address with JavaScript
  13. What is "export default" in JavaScript?
  14. Refreshing a Web Page Using JavaScript or jQuery
  15. Fix "ModuleNotFoundError: No module named 'pip'" in Python
  16. Python-Specific Design PatternsUp until now, we've covered Creational, Structural, and Behavioral design patterns. These foundational pillars have offered insights into crafting elegant, maintainable, and scalable Python applications. Yet, as we delve deeper into the nuances of Python, there emerge
  17. Behavioral Design Patterns in PythonWe've previously delved into Structural and Creational design patterns, and this section focuses on another vital category - Behavioral Design Patterns. This is the third article in a short series dedicated to Design Patterns in Python. Behavioral patterns are all
  18. Importing Python ModulesPython allows us to create just about anything, from simple scripts to complex machine learning models. But to work on any complex project, you'll likely need to use or create modules. These are the building blocks of complex projects. In this article, we'll explore Python mo
  19. Creating a Zip Archive of a Directory in PythonWhen dealing with large amounts of data or files, you might find yourself needing to compress files into a more manageable format. One of the best ways to do this is by creating a zip archive. In this article, we'll be exploring how you can create a zip
  20. Opening Multiple Files Using 'with open' in PythonPython provides some very convenient ways to work with file-like objects, including the with feature. But what if we need to open multiple files in this way? Your could wouldn't exactly be "clean" if you had a bunch of nested with open stat
  21. Why does Python Code Run Faster in a Function?Python is not necessarily known for its speed, but there are certain things that can help you squeeze out a bit more performance from your code. Surprisingly, one of these practices is running code in a function rather than in the global scope. In this a
  22. Manipulating CSS Pseudo-Elements ::before and ::after Using JavaScript/jQueryIn this article we'll be showing how to select and manipulate CSS pseudo-elements, specifically ::before and ::after, using JavaScript and jQuery. As a web developer, you've likely at least seen these pseudo-elements in a C
  23. The 'u' and 'r' String Prefixes and Raw String Literals in PythonWhile learning Python or reading someone else's code, you may have encountered the 'u' and 'r' prefixes and raw string literals. But what do these terms mean? How do they affect our Python code? In this article, we will attemp to demys
  24. Understanding Unique Keys for Array Children in React.jsReact.js uses a number of unique concepts that can initially seem a bit confusing. One such concept is the use of keys, particularly when working with component arrays. Why and how do we use these keys? This article aims to explain the use of u
  25. How to Copy Files in PythonWhether you're reading data from files or writing data to files, understanding file operations is important. In Python, and other languages, we often need to copy files from one directory to another, or even within the same directory. This article will guide you through th
  26. Converting Callback APIs to Promises in Node.jsJavaScript, although only single-threaded, is an asynchronous language. In the beginning, it only used callbacks for asynchronous tasks, but ES6 introduced the concept of a promise, which made these tasks much easier to work with. The problem, however,
  27. Storing Objects in localStorage/sessionStorageAs a web developer, you've likely encountered the need to persist data across different sessions or even tabs in a browser. This is where HTML5's localStorage and sessionStorage come in handy. These two web storage objects allow you to store data right i
  28. Guide to Profiling Python ScriptsEven with a "simple" language like Python, it's not immune to performance issues. As your codebase grows, you may start to notice that certain parts of your code are running slower than expected. This is where profiling comes into play. Profiling is an impo
  29. Print Circular Structures in JSON Format in JavaScriptDealing with data structures in JavaScript can sometimes be tricky, especially when we encounter things like circular structures. In this article, we'll explore what circular structures are, why they pose challenges when we try to print them in a
  30. Differences Between Python's defaultdict and dictIn Python, dictionaries are one of the most flexible built-in data types. They are great for structuring data and can help you solve a myriad of problems. But what if I told you there's a more powerful version of dictionaries that you might not have h
  31. Creating Multiline Strings in JavaScriptAs JavaScript developers, we often need to handle large chunks of text data, which may span across multiple lines. This is where multiline strings come into play. They allow you to maintain the formatting and readability of your code without compromising the s
  32. Python Naming Conventions for Variables, Functions, and ClassesPython, like any other programming language, has its own set of rules and conventions when it comes to naming variables and functions. These conventions aren't just for aesthetics or to make your code look pretty, they serve a much more
  33. Reading from stdin in PythonIn most programming languages, data can be read from various sources, like files, databases, or user input. However, one of the most common forms of input is the standard input, or stdin. This article will provide a few different ways for reading from stdin in Python, whi
  34. Hidden Features of PythonPython is a powerful programming language that's easy to learn and fun to play with. But beyond the basics, there are plenty of hidden features and tricks that can help you write more efficient and more effective Python code. In this article, we'll uncover some of these hidd
  35. Transitioning from jQuery to AngularJSIf you're an experienced jQuery developer, making the leap to AngularJS can be a bit daunting. But don't worry - this guide is here to help! We'll take a deep dive into the world of AngularJS, compare it with jQuery, and give you the tools you need to start thin
  36. The Python Magic Methods: __str__ vs __repr__Python, being a high-level, interpreted language, is known for its easy readability with great design principles. However, when you delve deeper into Python, some things may seem complex if you're coming from a language that doesn't have a similar feature
  37. Writing a Pandas DataFrame to a CSV File in PythonWorking with data is a big part of any data analysis project. In Python, the Pandas library is a powerful tool that provides flexible and efficient data structures to make the process of data manipulation and analysis easier. One of the most common d
  38. Creating a Singleton in PythonOf all the design patterns, the Singleton pattern holds a unique place. It's straightforward, yet is often misunderstood. In this Byte, we'll try to explain the Singleton pattern, understand its core principles, and learn how to implement it in Python. We'll also explor
  39. Shuffling Arrays in JavaScriptOne of the many features that JavaScript provides is the ability to easily work with arrays. An array is a special type of object that is used to store multiple values in a single variable, and in the case of JavaScript, these values do not need to be the same...
  40. Common Docstring Formats in PythonWhen you're knee-deep in Python code, comprehensive documentation can be a lifesaver (but, admittedly, the last thing you want to write). It's an important part of programming, and Python, being a highly readable and straightforward language, places great emphasis o
  41. Incompatible Type Comparisons in PythonIn Python, we often encounter a variety of errors and exceptions while writing or executing a script. A very common error, especially for beginners, is TypeError: '<' not supported between instances of str and int, or some variant. This error occurs when we
  42. The Power of Indexing: Boosting Data Wrangling Efficiency with PandasPandas is the most widely used Python library for data manipulation, and it allows us to access and manipulate data efficiently. By understanding and utilizing indexing techniques effectively in Pandas, we can significantly improve
  43. Reading and Writing JSON with TypeScriptJavaScript Object Notation (JSON) has become the de facto standard for transferring data over the web due to its light-weight structure and simplicity. When using TypeScript, a statically typed superset of JavaScript, we can leverage JSON to build more reliabl
  44. Building a Blog with Next.js and ButterCMSButterCMS is a cloud-based, API-first, headless CMS that enables you to rapidly build CMS-powered apps and websites. It has an easy-to-use dashboard for creating and managing content. It comes with a prebuilt, API-first blog engine that is SEO-optimized out-
  45. Data Integrity: How OrderedDict Preserves Key Order in PythonData integrity is a critical aspect of programming that ensures the accuracy, consistency, and reliability of data throughout its life cycle. It is particularly important when dealing with complex data structures and algorithms. By maintai
  46. Running Airflow Locally with Docker: A Technical GuideApache Airflow and Docker are two powerful tools that have revolutionized the way we handle data and software deployment. Apache Airflow is an open-source platform that allows you to programmatically author, schedule, and monitor workflows. Docke
  47. Guide to Fine-Tuning Open Source LLM Models on Custom DataI'm sure most of you would have heard of ChatGPT and tried it out to answer your questions! Ever wondered what happens under the hood? It's powered by a Large Language Model GPT-3 developed by Open AI. These large language models, often refer
  48. How to use GPUs with PyTorchGPUs, or Graphics Processing Units, are important pieces of hardware originally designed for rendering computer graphics, primarily for games and movies. However, in recent years, GPUs have gained recognition for significantly enhancing the speed of computational processe
  49. Bash: How to Delete Empty Lines Using SedRemoving empty lines from files is a common task in Linux Bash scripting. Empty lines can clutter up files and make them harder to read or process. Thankfully, the versatile sed command comes to the rescue. With its powerful text manipulation capabilities, se
  50. How to Efficiently Convert Data Types in PandasEfficient data manipulation is a critical skill for any data scientist or analyst. Among the many tools available, the Pandas library in Python stands out for its versatility and power. However, one often overlooked aspect of data manipulation is data t
  51. Order of Execution of SQL Clauses SQL is the predominant language for database queries, and proficiency in SQL is important for accurate data querying. This requires a comprehensive understanding of the sequence in which SQL executes its clauses. Debugging your SQL script effectively and creating pr
  52. Guide to Interfaces in PythonAs you likely know, Python is a dynamically-typed, object-oriented language loved for its simplicity and readability. Its unique approach to object-oriented programming is one of its many strengths. However, if you've previously worked with statically typed languages suc
  53. Efficient Data Manipulation with Apply() Function in PandasThe apply() function is a powerful tool in Python for data analysis and manipulation. It is a valuable instrument for any analyst's toolkit, as it can be seamlessly integrated with other Pandas functions and custom functions to perform compl
  54. Step-by-Step Guide to File Upload with FlaskWhether you are dealing with a social media site allowing users to upload their avatar, a cloud storage service managing user files, or an enterprise application receiving data for processing, file upload is an essential function to facilitate these intera
  55. Introduction to FastAPIIn an increasingly data-driven world, the need for effective and efficient web frameworks to build APIs has never been greater. One such framework that has been gaining popularity in the Python community is FastAPI. This powerful, modern, web framework is specifically designed
  56. Handling Duplicate Values in a Pandas DataFrameAs a data analyst, it is our responsibility to ensure data integrity to obtain accurate and trustworthy insights. Data cleansing plays a vital role in this process, and duplicate values are among the most common issues data analysts encounter. Duplicate
  57. Optimizing Models: Cross-Validation and Hyperparameter Tuning GuideMachine learning is a type of artificial intelligence that allows models to learn from data by identifying patterns in existing datasets and using them to make predictions on unseen or unknown data. Model Generalization is a crucial
  58. Simple NLP in Python with TextBlob: Parts of Speech (PoS) TaggingIn the field of Natural Language Processing (NLP), one of the fundamental tasks is Parts of Speech (PoS) tagging. PoS tagging involves assigning grammatical categories, like nouns, verbs, adjectives, etc., to words in a sentence. This
  59. How to Remove Commas from a String in PythonAmong the many tasks you may encounter when manipulating strings in Python, one common requirement is to remove certain characters from a string – in this case, commas. Commas can be found in numerous contexts, like CSV files or number representations, and
  60. Handling Task Failures in Airflow: A Practical GuideIn the world of data engineering, the unpredictability of task failures is a constant challenge. Amid the multitude of tasks we handle, a few might not go as planned for various reasons. However, it's not the end of the world, thanks to the retry m
  61. Validate Phone Numbers in JavaScript with Regular ExpressionsWhether you realize it or not, data has become a crucial part of our day-to-day lives. From ordering food online to searching for cat food, we are constantly sending and receiving data. As developers of web applications, it is our responsi
  62. Get Keys and Values from a Dictionary in PythonA dictionary in Python is an essential and robust built-in data structure that allows efficient retrieval of data by establishing a relationship between keys and values. It is an unordered collection of key-value pairs, where the values are stored under
  63. Supervised Learning vs. Unsupervised Learning AlgorithmsMachine Learning (ML) is a field of study that focuses on developing algorithms to learn automatically from data, making predictions and inferring patterns without being explicitly told how to do it. It aims to create systems that automatically
  64. Upload a File Using JavaScriptEvery webpage today is updated without reloading the page to provide users with a smooth experience. Updating a page without reloading it is only possible with the use of JavaScript, as web browsers exclusively run JavaScript as a programming language. Similarly, upload
  65. Finding Numbers in Various Data Types in PythonWhen working with Python, we often have to deal with data in the form of numbers or words. Sometimes, words and numbers are stored together, and our needs compel us to separate numbers from words. In this article, we'll explain how to define words and n
  66. How to Check if a String is Empty or None in PythonIn Python, it's often important to check whether a string is empty or None before performing operations on it. This can prevent unexpected errors and make your code more robust. But what is the most efficient and Pythonic way to do this? And what po
  67. Testing Vue.js Components with Vue Test UtilsSoftware testing is the process of evaluating and verifying that a software product or application runs successfully and performs its required tasks without any errors. Testing might seem like a waste of time to some developers, but it is important to tes
  68. Simple NLP in Python with TextBlob: LemmatizationTextBlob is a package built on top of two other packages, one of them is called Natural Language Toolkit, known mainly in its abbreviated form as NLTK, and the other is Pattern. NLTK is a traditional package used for text processing or Natural Languag
  69. Reading and Writing SQL Files in PandasWhen I started learning Data Analysis a few years ago, the first thing I learned was SQL and Pandas. As a data analyst, it is crucial to have a strong foundation in working with SQL and Pandas. Both are powerful tools that help data analysts efficiently analyze
  70. How to Remove Whitespaces from a String in PythonIn programming, data often doesn't come in a neat, ready-to-use format. This is particularly true when we deal with strings, which often need to be cleaned, formatted, or manipulated in some way before they can be used effectively. One common issue we
  71. How to Split String on Multiple Delimiters in PythonAmong the plenty of string operations, splitting a string is a significant one, offering the capability to divide a large, composite text into smaller, manageable components. Typically, we use a single delimiter like a comma, space, or a special ch
  72. Simple NLP in Python with TextBlob: Pluralization and SingularizationIn today's digital world, there is a vast amount of text data created and transferred in the form of news, tweets, and social media posts. Can you imagine the time and effort needed to process them manually? Fortunately, Natural La
  73. The Difference Between %s and %d in Python String FormattingString formatting, in simple terms, is the process of constructing a string by inserting some specific or computed data into a string placeholder. This is an indispensable tool when you're dealing with user-friendly outputs, debugging logs,
  74. Understanding SQL JOINs: Inner, Outer, Full, Left, and RightSQL joins are fundamental operations used to combine data from multiple tables based on common columns. A solid understanding of SQL joins is crucial for effective querying and data manipulation. In this article, we will explore the various
  75. How to Convert a List into a CSV String in PythonIn data-driven fields like data analysis, machine learning, and web development, you often need to transform data from one format to another to fit particular needs. A common requirement is to convert a Python list to a CSV string, which enables the s
  76. The Bias-Variance Trade-off in Machine LearningIn machine learning, the bias-variance trade-off is a fundamental concept affecting the performance of any predictive model. It refers to the delicate balance between bias error and variance error of a model, as it is impossible to simultaneously minimi
  77. Python Dictionary Comprehension: A Fast and Flexible Way to Build DictionariesDictionaries are a very powerful, Pythonic way to store data. They allow us to associate a key with a value, and access them as needed. This makes it easy to store data where, for example, we need to associate a string wit
  78. How to Change Connection Timeout in MySQLWhen working with MySQL, one important aspect to consider is the management of connection timeouts. A connection timeout is the duration a client waits for a response from the server before the connection is considered unsuccessful. In some situations, the de
  79. How to Convert Tuple Pairs to a Dictionary in PythonOne of the key aspects of Python is its ability to handle and manipulate different data structures efficiently. Among these data structures, tuples and dictionaries stand out as widely used and flexible options. Tuples are immutable, ordered collec
  80. Guide to Lists in PythonIn the world of computer science, the concept of data structures stands as a foundational pillar, holding immense significance in the way we think about, organize, store, and access data. Out of many data structures, the list is arguably one of the most fundamental and versat
  81. How to Check if a Kafka Server is RunningApache Kafka is a popular distributed streaming platform that allows you to process and store huge volumes of data in real-time. Thanks to this, it has become an important component of many modern data pipelines. With Kafka being so critical to your infrastru
  82. Introduction to DjangoDjango is one of today's most widely-used Python web frameworks. For now, we will not focus on the technical definition of a web framework - the guide includes a section dedicated to explaining what frameworks are and what they do - but rather consider the literal meaning of th
  83. How to Get the Number of Messages in a Kafka TopicOne key aspect of ensuring a well-managed and maintained Kafka cluster is monitoring the number of messages in a topic. By keeping an eye on the message count, you can ensure your system is operating smoothly and detect potential issues. There are a
  84. How to List Kafka ConsumersAt the heart of Kafka's architecture are its consumers, which read and process data from Kafka topics. Essentially, consumers are client applications or services that subscribe to one or more topics, which then fetch and process the messages published to these topics. You'
  85. How to List Available Kafka Brokers in a ClusterIn the world of distributed data streaming platforms, Apache Kafka has become the go-to choice for many developers and data engineers. It is a powerful tool that enables efficient handling of large volumes of data, making it an important component in m
  86. Implementing Other SVM Flavors with Python's Scikit-LearnThis guide is the third and final part of three guides about Support Vector Machines (SVMs). In this guide, we will keep working with the forged bank notes use case, have a quick recap about the general idea behind SVMs, understand what is the
  87. Understanding SVM HyperparametersThis guide is the second part of three guides about Support Vector Machines (SVMs). In this guide, we will keep working on the forged bank notes use case, understand what SVM parameters are already being set by Scikit-Learn, what are C and Gamma hyperparameters, and
  88. How to List All Kafka TopicsIf you've stumbled upon this article, chances are you've already been working with Apache Kafka, the open-source distributed streaming platform that has gained significant popularity for its ability to handle large-scale, real-time data processing. In this article, we'll
  89. Implementing SVM and Kernel SVM with Python's Scikit-LearnThis guide is the first part of three guides about Support Vector Machines (SVMs). In this series, we will work on a forged bank notes use case, learn about the simple SVM, then about SVM hyperparameters and, finally, learn a concept called t
  90. How to Delete a Topic in KafkaApache Kafka is a powerful, distributed event streaming platform that helps developers build scalable, real-time applications. It's a popular choice for its high-throughput, fault-tolerant, and low-latency characteristics. At the heart of Kafka is the concept of "t
  91. Purging Kafka TopicsIf you've been working with Kafka for a while, you're probably aware of the importance of properly managing your Kafka topics. As the backbone of your data streaming infrastructure, well-organized topics can keep your system running smoothly and efficiently, while ensuring that y
  92. Python Regular Expressions - Validate Phone NumbersHandling user-submitted phone numbers can be a challenging task for developers, especially considering the various formats and notations used around the world. Ensuring that these phone numbers are valid and properly formatted is crucial for any app
  93. How to Generate Random Strings in PythonRandom strings can be incredibly useful in various scenarios. You can use them to generate strong passwords, create unique identifiers, and even as valuable help in testing and validation. Python's built-in random and string modules make it a breeze to generat
  94. How to POST JSON Data Using requests Library in Python As developers, we often work with APIs or web services, and one common task is sending data in JSON (JavaScript Object Notation) format to a server. Fortunately, Python provides us with a powerful requests library, which makes HTTP requests a br
  95. How to Set the Time Zone in DjangoDjango is a popular web framework used by developers to build high-performance web applications quickly and easily. However, if you are developing a web application that needs to handle time-sensitive data, you should try to make sure you are using the correct time
  96. Rounding Decimals in PythonWhether you're working with financial data, scientific calculations, or any other type of data that requires precise decimal arithmetic, knowing how to round decimal numbers accurately can make all the difference. In Python, there are various methods for rounding digits, e
  97. How to Get JSON from a URL in PythonBeing able to retrieve data from remote servers is a fundamental requirement for most projects in web development. JSON is probably one of the most popular formats for data exchange due to its lightweight and easy to understand structure that is fairly easy to par
  98. How to Remove a Substring from a String in JavaScriptString manipulation is a crucial aspect of programming, as it involves the processing and manipulation of text data to achieve various tasks. This can range from simple tasks like formatting user input or validating form data, to more complex task
  99. DBSCAN with Scikit-Learn in PythonYou are working in a consulting company as a data scientist. The project you were currently assigned to has data from students who have recently finished courses about finances. The financial company that conducts the courses wants to understand if there are common
  100. Guide to the WHERE Clause in MySQLIf you've ever tried to query a MySQL database, you've probably heard of the WHERE clause. But what exactly is it, and why is it important? Well, think of the WHERE clause as your trusty lasso in the wild west of data. It's the part of your SQL query that...
  101. Guide to the HAVING Clause in MySQLAs you dive deeper into crafting complex MySQL queries to extract insights from your data, you'll likely come across the HAVING clause. If you're not familiar with HAVING, fear not! It's a powerful tool that lets you filter the results of an SQL query based on cond
  102. How to Compare Tuples in PythonWhat do you do when you have two or more tuples and you need to compare them? This may seem like a pretty straightforward thing to do, but when you scratch the surface, you'll find out that there's much more to it than you initially realize. Comparing tuples in Python.
  103. Guide to Tuples in PythonAs a Python programmer, you might already be familiar with lists, dictionaries, and sets - but don't overlook tuples! They are often overshadowed by more popular data types, but tuples can be incredibly useful in many situations. In this guide, we'll take a deep dive into Py
  104. Loading a Pretrained TensorFlow Model into TensorFlow ServingYou are part of a project that will use deep learning to try to identify what is in images - such as cars, ducks, mountains, sky, trees, etc. In this project, two things are important - the first one, is that the deep learning model trains
  105. Training Neural Radiance Field (NeRF) Models with Keras/TensorFlow and DeepVisionNeural Radiance Fields, colloquially known as NeRFs have struck the world by storm in 2020, released alongside the paper "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis", and are still
  106. How to Convert JSON to a Python ObjectIn the world of programming, data is often stored and transmitted in various formats to other parts of an application or other web services. To fascillitate data transfer between services written in different languages and frameworks (such as a Java backend comm
  107. Guide to the ORDER BY Clause in MySQLMySQL is a popular open-source database management system that is widely used in web applications. One of the fundamental tasks in working with MySQL is querying data from tables. The ORDER BY clause is a key feature of MySQL queries that enables you to sort the
  108. Reading and Writing CSV in BashComma-Separated Values (CSV) is a widely used file format for storing data in tabular form, where each row represents a record and each column represents a field within that record. The values are separated by a comma, which is why the format is called CSV. CSV is a po
  109. Guide to the LIKE Clause in MySQLAre you struggling to find specific data in your MySQL database? Do you spend hours scrolling through rows of data looking for specific patterns or names? If so, the LIKE clause in MySQL can be a lifesaver. The LIKE clause is a powerful tool that allows you to search
  110. Three Ways to Create Multiline Strings in PythonMultiline strings are a useful feature in Python that allow you to create strings that span multiple lines of code. They can be especially helpful when you need to create long or complex strings, such as for formatting text, writing documentation, or s
  111. Converting JSON to a Dictionary in PythonIn the world of software development, exchanging data between different systems is a common task. One popular format for data exchange is JSON (JavaScript Object Notation), which is a lightweight and easy-to-read format for data representation. In Python, JSO
  112. Loops in PythonA programming language typically consists of several types of basic elements, such as assignments, conditionals, and loops. The idea behind a loop is to repeat a segment of code that is in the body of the loop. Different kinds of loops are common. For example, loops will run: while a.
  113. Git: Rebase CommandGit's rebase is a powerful Git command that allows developers to reapply changes from one branch onto another. It is a way to modify the commit history of a branch, allowing you to change the order, content, or message of your commits. In this article, we'll dive into the details.
  114. Sending Emails in Node.js with Mailgun and ReactEmail is an essential method of business communication that is very fast, cheap, and top-free organic. When building products, emails can greatly provide your business with an effective and efficient medium to transmit various kinds of data, electronic
  115. Comparing Numbers in BashComparing numbers is a fundamental operation in many programming/scripting languages, including Bash. It allows for making decisions based on numerical values and is essential for writing scripts that can process data and perform tasks based on conditions. In Bash, comparing
  116. How to Align Images in React NativeAligning images properly is important in mobile app development because it helps create a visually pleasing and user-friendly interface. A well-aligned interface can make it easier for users to understand and navigate an app, which can lead to better engagement and
  117. Guide to Building Rest APIs with StrapiAre you a backend developer looking for a fast and easy way to set up a Node API? Or are you a frontend developer who wants to create and manage a backend using a user-friendly interface instead of coding it from scratch? Look no further, because the Strapi hea
  118. What Does "2>&1" do on the Command Line?The command line is a powerful tool for developers and system administrators. It allows them to perform tasks quickly and efficiently, without having to rely on graphical user interfaces. Understanding the basic concepts of the command line, such as redirectio
  119. How to Grep Recursively in BashGrep is a powerful tool in the Unix world that allows you to search for specific text within files or even directories. It is widely used for log analysis, code review, and many other tasks that require searching for text. In Bash, you can use grep to search for specif
  120. How to Get the Source Directory of a Bash ScriptGetting the source directory of a Bash script is an important topic for anyone who is looking to develop robust and reliable Bash scripts. Understanding how to retrieve the source directory of a script can make it easier to manage and organize your cod
  121. How to Check if String Contains Substring in BashIn Bash scripting, it's often necessary to check if a string contains a specific substring. This can be useful for validating user input, processing text data, or executing certain actions based on the presence or absence of a certain pattern. The pro
  122. Introduction to Vue ComponentsWhen developing a large application, it is always a good idea to break it down into smaller components to make the code easier to read, structure, and maintain. Most Vue beginners understand what components are at least conceptually, but they might not understand what t
  123. Pagination in Vanilla JavaScriptWhen creating a website or web application, especially if they feature a lot of templated content (such as a grid or list of items belonging to a category) - it's generally a good idea to divide it into pages to reduce the number of items that appear on the screen...
  124. Bash: Check if Directory or File ExistsIt is important to check for the existence of directories and files in Bash scripts for several reasons. Firstly, it allows the script to handle situations where the expected directories or files do not exist. This can prevent errors and unexpected behavior in

2022 180

  1. Bash: Difference Between [ and [[ Operators In bash, the [ and [[ operators are used for comparison and testing. The [ operator is an alias for the test command, which is used to check the properties of files or to compare strings or integers. The [[ operator is a more advanced version of the test c
  2. Guide to Parameter Expansion in BashIn Bash, parameter expansion is a feature that allows you to manipulate the value of a variable or to extract part of its value using a special syntax. It is often used to modify the value of a variable or to extract information from it. Parameter expansion uses a
  3. Executing Shell Commands with PythonRepetitive tasks are ripe for automation. It is common for developers and system administrators to automate routine tasks like health checks and file backups with shell scripts. However, as those tasks become more complex, shell scripts may become harder to mainta
  4. Converting Strings to datetime in PythonData can be represented in various forms - and a convenient way to represent dates and times are strings. However, to work with these dates and times in an arithmetic fashion (such as calculating time differences, adding or removing time, etc.) - we need to co
  5. Git: Merge Branch into MasterIf you're looking for a quick answer, to merge a branch into the master branch - you checkout master and merge some_branch: $ git checkout new-branch # ...develop some code... $ git add . $ git commit –m "Some commit message" $ git checkout master Switched to b
  6. Read a File Line-by-Line in PythonA common task in programming is opening a file and parsing its contents. What do you do when the file you are trying to process is quite large, like several GB of data or larger? The answer to this problem is to read in chunks of a file at a...
  7. How to Format Dates in PythonPython comes with a variety of useful objects that can be used out of the box. Date objects are examples of such objects. Date types are difficult to manipulate from scratch, due to the complexity of dates and times. However, Python date objects make it extremely easy to
  8. Extract Filename and Extension in BashThere are many reasons why you might want to extract the filename and extension of a file in Bash: To manipulate the file name or extension - You may want to extract the filename or extension in order to modify it, such as adding a prefix or suffix to the...
  9. Comparing Strings using PythonIn Python, strings are sequences of characters, which are effectively stored in memory as an object. Each object can be identified using the id() method, as you can see below. Python tries to re-use objects in memory that have the same value, which also makes comparing
  10. Bank Note Fraud Detection with SVMs in Python with Scikit-Learn
  11. Command Line Arguments in PythonWith Python being a very popular programming language, as well as having support for most operating systems and many libraries that make command-line argument processing easy - it's become widely used to create command line tools for many purposes. These tools can ran
  12. Python: Check if String Contains SubstringChecking whether a string contains a substring aids to generalize conditionals and create more flexible code. Additionally, depending on your domain model - checking if a string contains a substring may also allow you to infer fields of an object, if a strin
  13. MySQL Check if Column is NullThere are several reasons why you might want to check if a column is NULL in MySQL: To filter query results - You might want to exclude rows with NULL values from your query results. For example, you might want to get a list of all users who have provided...
  14. Print Newline in BashIn Bash, a new line refers to the end of a line of text and the beginning of a new one. When a command is executed in Bash, the output is often displayed on the terminal with each line of text ending in a new line. The new line character...
  15. Guide to Nest.js - Building a REST API with Nest and NodeAs a Node.js backend developer, you will agree that by default, Node.js is very bare bones, and makes no assumptions about what you need while building an app. As a result, you are in charge of setting up everything that you want to use across
  16. Guide to Webpack 5Back in the days when modularity in Javascript was introduced, there was no way to support modules within web browsers. To fix this issue, module bundlers such as Parcel, Webpack, and Rollup were developed. These helped to optimize multiple modules into a production-ready bundle, w
  17. Integrating MongoDB with Node.jsA robust modern-day application has a medium of storing data at its backend such as Node application which is able to work with both non-relational (such as PostgresQL, MongoDB) and relational (such as MySQL, Oracle). MongoDB is a non-relational database that is relat
  18. Lambda Functions in Python​ In Python, functions are objects: they can be assigned to variables, can be returned from other functions, stored in lists or dicts and passed as parameters for other functions. Consider, for example, the map() built-in function. Its syntax is map(function, iterable) and
  19. Upload File with Vanilla JavaScript and Loading AnimationFile upload is very ubiquitous to any web application and when it comes to uploading files and resources over the internet (on a browser), things can be somewhat stressful. Fortunately, with HTML 5, input elements which usually come with form
  20. How to convert JSON to Python ObjectPython's json library has many utilities for encoding and decoding data in JSON format. In particular, the json.load() method decodes an JSON read as a file, and the json.loads() decode an JSON read as a string. In general, when decoding JSON files, the data is co
  21. The Python Switch StatementThe switch statement is a powerful and convenient tool for controlling the flow of your program. It allows you to quickly and easily create multiple branches of code, depending on the value of a given variable or expression. It's commonly used when you need to execute diff
  22. Testing Node.js Code with Mocha and ChaiWriting unit tests is something beginners and seasoned engineers alike typically put off for later phases of development, yet - they're key to stable and robust software development. The basic premise of test-driven development (TDD) is writing your tests even
  23. Definitive Guide to Unit Testing in React Applications with Jest and React-TestingAs a developer, one of the things at the top of your list ought to be shipping bug-free code. Nothing could be worse than finding out on Thursday night that the changes you made on Monday broke the live application. Th
  24. Prevent Cross-Site Scripting (XSS) in Spring Boot with Content-Security Policies (CSPs)The security of users and their personal data while using a web application is paramount. While this guiding principle has been acknowledged even from the early stages of web development - bad actors find loophole
  25. Definitive Guide to the Random Forest Algorithm with Python and Scikit-LearnThe Random Forest algorithm is one of the most flexible, powerful and widely-used algorithms for classification and regression, built as an ensemble of Decision Trees. If you aren't familiar with these - no worries, we'll co
  26. Check if String Contains a Number in PythonWhether you're building a verification script for user input, a login form that requests users to include a character in a password - checking whether a string contains a character isn't an uncommon operation. In this tutorial - we'll take a look at the man
  27. Reading and Writing JSON to a File in PythonIn this guide, we'll take a look at how to read and write JSON data from and to a file in Python, using the json module. JSON (JavaScript Object Notation) is an extremely popular format for data serialization, given how generally applicable and lightweight
  28. Guide to Simple Email Service (AWS SES) with Spring Boot and Spring CloudAWS SES (Simple Email Service) is a simple-to-setup email sending and receiving service. It is usually difficult, finicky and tedious to manage an on-premise email system, so outsourcing the process is a popular choice. We can
  29. Guide to Exception Handling in ExpressExceptions and errors are bound to occur while users interact with any application, it is up to software engineers to choose a means to handle any error that might arise - knowingly or unknowingly. As a result, backend developers who build APIs with Express find
  30. Get Feature Importances for Random Forest with Python and Scikit-LearnThe Random Forest algorithm is a tree-based supervised learning algorithm that uses an ensemble of predictions of many decision trees, either to classify a data point or determine its approximate value. This means it can either be
  31. How to Save Command Output as Variable in Bash?In bash scripts, assigning the output of a command to variables can be convenient by storing the outputs of the commands and using them later. In this short guide, we will take a look at how you can store the output of a command as a variable in Bash. T
  32. Guide to Writing Custom TensorFlow/Keras CallbacksSuppose you want your Keras model to have some specific behavior during training, evaluation or prediction. For instance, you might want to save your model at every training epoch. One way of doing this is using Callbacks. In general, Callbacks are f
  33. Scroll to Top in Vue with Reusable ComponentsIn improving the user experience on any website with a lot of content on its web pages, it is common for frontend developers to implement a scroll-to-top functionality through a button, to make things more enjoyable and convenient for users. While users c
  34. Convert YAML Array into Java List with SnakeYAMLYAML is one of the most popular data serialization language after JSON. Therefore, it’s sometimes called as a strict superset of JSON. It has been designed for human interaction and readability right from the beginning, hence, it’s known for its simpli
  35. Calculate Distribution from Collection in JavaTurning a collection of numbers (or objects whose fields you'd like to inspect) into a distribution of those numbers is a common statistical technique, and is employed in various contexts in reporting and data-driven applications. Given a collection: 1,
  36. DeepDream with Keras and Tensorflow - Neural Networks That Hallucinate?
  37. Ignore Null Fields with Jackson in Java and Spring BootNull values arise a lot in software development, and proper handling of null values can be turned into a science in and of itself. Jackson is the de facto library for serialization and deserialization of Java objects - and a common scenario pert
  38. Java - Filter a Stream with Lambda ExpressionsJava Streams have been introduced all the way back in Java 8 in 2014, in an effort to introduce verbose Java to a Functional Programming paradigm. Java Streams expose many flexible and powerful functional operations to perform collection processing in on
  39. How to Change the Output Color of Echo in LinuxThe echo command outputs a given string to the standard output pipe, typically pointing to the terminal. Although the standard output pipe can point to other interfaces - the echo command is typically used to print and display messages in the terminal.
  40. 3D Object Detection (3D Bounding Boxes) in Python with MediaPipe ObjectronObject detection has been gaining steam, and improvements are being made to several approaches to solving it. In the past couple of years, YOLO-based methods have been outperforming others in terms of accuracy and speed, with
  41. Real-Time Pose Estimation from Video in Python with YOLOv7Object detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". From it, keypoint detection (oftentimes used for pose estimation) was extracted. Keypoints can be var
  42. Remove Punctuation From a String in JavaDuring textual processing, whether you're searching for certain words and making pattern matching rules, counting the frequency of elements, etc. - punctuation can throw a wrench in your plans. Oftentimes, you'll want to remove stopwords, punctuation, digits o
  43. Instance Segmentation with YOLOv7 in PythonObject detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". From it, instance segmentation was extracted, and is tasked with having models predict not only the label and boundi
  44. OpenCV Edge Detection in Python with cv2.Canny()Edge detection is something we do naturally, but isn't as easy when it comes to defining rules for computers. While various methods have been devised, the reigning method was developed by John F. Canny in 1986., and is aptly named the Canny method. It'
  45. Reversing a List in Java - In-Place and Out-Of-PlaceIn this short tutorial, you'll learn how to reverse a list in-place and out-of-place in Java. When performing operations on lists - you might want to consider whether the operations are done in-place (changes are enacted on the original object), or
  46. Change JSON Field Name with Jackson in JavaJackson is a very common library for handling JSON and serialization/deserialization in general in Java and Spring Boot based projects. Jackson handles property names by mapping them as they are to JSON - so propertyName in a POJO will have a corresponding
  47. Pretty-Printing JSON with Jackson in Java and Spring BootJackson is one of the most common libraries for working with serialization and deserialization in Java and Spring Boot, primarily used for parsing and converting between POJOs and JSON. Though, if you've worked with Jackson, you'll notice a di
  48. Adapter Design Pattern in PythonThe Adapter Design Pattern is a popular Structural Design Pattern used in software engineering. This guide looks at how we can implement the Adapter Design Pattern in Python. Design Patterns are template-like solutions - practically recipes for solving recurring, comm
  49. Java: Count Number of Word Occurrence in StringCounting the number of word occurrences in a string is a fairly easy task, but has several approaches to doing so. You have to account for the efficiency of the method as well, since you'll typically want to employ automated tools when you don't want to
  50. OpenCV Adaptive Thresholding in Python with cv2.adaptiveThreshold()Thresholding is a simple and efficient technique to perform basic segmentation in an image, and to binarize it (turn it into a binary image) where pixels are either 0 or 1 (or 255 if you're using integers to represent them). Typicall
  51. OpenCV Thresholding in Python with cv2.threshold()Thresholding is a simple and efficient technique to perform basic segmentation in an image, and to binarize it (turn it into a binary image) where pixels are either 0 or 1 (or 255 if you're using integers to represent them). Typically, you can use th
  52. Learning Rate Warmup with Cosine Decay in Keras/TensorFlowThe learning rate is an important hyperparameter in deep learning networks - and it directly dictates the degree to which updates to weights are performed, which are estimated to minimize some given loss function. In SGD: $$ weight_{t+1} = we
  53. How to Set Focus On Element After Rendering With ReactBy setting the focus on an element, we gently guide a user to the next expected input field, giving them a better browsing experience with less guesswork. In this article, we will learn how to set focus on an element after rendering our React app
  54. GET HTTP Request in ReactWhen developing web applications - we routinely access resources hosted on a server. Asking for, sending, or performing other operations on resources is accomplished through HTTP requests. These requests are sent from the client to a host on a server. When making HTTP reques
  55. Understanding TensorFlow's @tf.function DecoratorImproving the performance of a training loop can save hours of computing time when training machine learning models. One of the ways of improving the performance of TensorFlow code is using the tf.function() decorator - a simple, one-line change that
  56. RandAugment for Image Classification with Keras/TensorFlowData augmentation has, for a long while, been serving as a means of replacing a "static" dataset with transformed variants, bolstering the invariance of Convolutional Neural Networks (CNNs), and usually leading to robustness to inpu
  57. How to Sort a Dictionary by Value in PythonA dictionary in Python is a collection of items that stores data as key-value pairs. In Python 3.7 and later versions, dictionaries are sorted by the order of item insertion. In earlier versions, they were unordered. In this article, we'll take a look at ho
  58. Reading Files with PythonTo work with stored data, file handling becomes the core knowledge of every professional Python programmer. Right from its earliest release, both reading and writing data to files are built-in Python features. In comparison to other programming languages like C or Java, it i
  59. Reading and Writing Lists to a File in PythonPython programmers intensively use arrays, lists, and dictionaries as serialized data structures. Storing these data structures persistently requires either a file or a database to properly work. In this article, we'll take a look at how to write a list t
  60. Definitive Guide to Logistic Regression in PythonSometimes confused with linear regression by novices - due to sharing the term regression - logistic regression is far different from linear regression. While linear regression predicts values such as 2, 2.45, 6.77 or continuous values, making it a re
  61. Pose Estimation/Keypoint Detection with YOLOv7 in PythonObject detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". From it, keypoint detection (oftentimes used for pose estimation) was extracted. Object detection and k
  62. Real-Time Object Detection Inference in Python with YOLOv7Object detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". Object detection isn't as standardized as image classification, mainly because most of the new develo
  63. How to Force Update a React ComponentIn this article we'll show you how to force update a component in React.js. More specifically, we'll be giving a brief introduction to React re-renders, we'll show how to force updates in class-based components, and how to force updates in functional components.
  64. DeepLabV3+ Semantic Segmentation with Keras
  65. Object Detection Inference in Python with YOLOv5 and PyTorchObject detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". On one end, it can be used to build autonomous systems that navigate agents through environments -
  66. Don't Use Flatten() - Global Pooling for CNNs with TensorFlow and KerasMost practitioners, while first learning about Convolutional Neural Network (CNN) architectures - learn that it's comprised of three basic segments: Convolutional Layers Pooling Layers Fully-Connected Layers Most resources have s
  67. What is 'from_logits=True' in Keras/TensorFlow Loss Functions?Deep Learning frameworks like Keras lower the barrier to entry for the masses and democratize the development of DL models to unexperienced folk, who can rely on reasonable defaults and simplified APIs to bear the brunt of heavy lifting,
  68. Big O Notation and Algorithm Analysis with Python ExamplesThere are usually multiple ways to solve the problem using a computer program. For instance, there are several ways to sort items in an array - you can use merge sort, bubble sort, insertion sort, and so on. All of these algorithms have their
  69. Guide to the K-Nearest Neighbors Algorithm in Python and Scikit-LearnThe K-nearest Neighbors (KNN) algorithm is a type of supervised machine learning algorithm used for classification, regression as well as outlier detection. It is extremely easy to implement in its most basic form but can perform f
  70. Object Detection and Instance Segmentation in Python with Detectron2Object detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". On one end, it can be used to build autonomous systems that navigate agents through environ
  71. RetinaNet Object Detection in Python with PyTorch and torchvisionObject detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". On one end, it can be used to build autonomous systems that navigate agents through environmen
  72. Transformer Token and Position Embedding with KerasThere are plenty of guides explaining how transformers work, and for building an intuition on a key element of them - token and position embedding. Positionally embedding tokens allowed transformers to represent non-rigid relationships between token
  73. Get Query String Values in JavaScriptIn a URL, query string values often provide information about the request, like parameters for a search or the ID of an object you're using. If any of the business or request logic is handled in the frontend, it's important to know how to retrieve the query strin
  74. Git: Modify an Existing Commit MessageMistakes are common, we all make them. That's why they put erasers on pencils. And this is no different with tools like Git. While some changes can be difficult to undo, there is usually a way. So what if you want to modify an existing commit message? Luckily th
  75. How to Fill NaNs in a Pandas DataFrameMissing values are common and occur either due to human error, instrument error, processing from another team, or otherwise just a lack of data for a certain observation. In this Byte, we'll take a look at how to fill NaNs in a DataFrame, if you choose to handle
  76. POST HTTP Request in ReactWhen working with APIs we oftentimes want to send data to the server for processing. For example, if we have a list of to-dos and want to add to it, perhaps through a form submission, we use POST HTTP requests to send a request with a payload for processing and...
  77. Writing Files using PythonAs pointed out in a previous article that deals with reading data from files, file handling is essential knowledge of every professional and hobbyist Python programmer. This feature is a core part of the Python language, and no extra module needs to be loaded to do it prope
  78. K-Means Clustering with the Elbow methodK-means clustering is an unsupervised learning algorithm that groups data based on each point euclidean distance to a central point called centroid. The centroids are defined by the means of all points that are in the same cluster. The algorithm first chooses
  79. Definitive Guide to K-Means Clustering with Scikit-LearnK-Means clustering is one of the most widely used unsupervised machine learning algorithms that form clusters of data based on the similarity between data instances. In this guide, we will first take a look at a simple example to understand how
  80. How to Style Hover in ReactWorking with visuals is an excellent way to keep our interface interactive and to capture the user's attention. Having objects animated on our screen creates a unique experience and increases interactivity. In this article, we will learn how to style hover in React using C
  81. Resizing Images with ReactIt's always a good idea to have visuals on a website or web application because they help engage a user, but when these images are so large that a user has to scroll through, distorting the entire page, it achieves the opposite effect. In this article, we will learn how...
  82. K-Means Elbow Method and Silhouette Analysis with Yellowbrick and Scikit LearnK-Means is one of the most popular clustering algorithms. By having central points to a cluster, it groups other points based on their distance to that central point. A downside of K-Means is having to choose the number of
  83. Definitive Guide to Hierarchical Clustering with Python and Scikit-LearnIn this guide, we will focus on implementing the Hierarchical Clustering Algorithm with Scikit-Learn to solve a marketing problem. After reading the guide, you will understand: When to apply Hierarchical Clustering How to visual
  84. 5-Line GPT-Style Text Generation in Python with TensorFlow/KerasTransformers, even though released in 2017, have only started gaining significant traction in the last couple of years. With the proliferation of the technology through platforms like HuggingFace, NLP and Large Language Models (LLMs) ha
  85. Guide to String Interpolation With ReactWhen working with strings, situations may arise that require us to dynamically add a specific value into such a string so that it still returns a string, the act of doing this is referred to as string interpolation. This dynamic value could be a variable, stat
  86. Importing Images With ReactWhen developing web applications with React, we typically want to include visual elements to capture the users' interest. These visual elements could be any type of image, including JPGs, PNGs, SVGs, GIFs, and many others. In this article, we will learn how to import image
  87. How to Remove Quotes from Strings in PythonThere are several ways you can remove quotes from a string in Python. You may need to remove all quotes or just ones surrounding a string. You may also need to remove single or double quotes. In this short article, we've compiled a comprehensive list of met
  88. Guide To Vue RouterWhen developing web applications with Vue.js, unless you're building a Single-Page Application (SPA), you'll want to connect multiple pages to a landing page to allow users to navigate through them. This is known as routing. Routing is the process by which a user is navigated to d
  89. Storing to localStorage in ReactWhen developing lightweight applications - we may want to store some data. If a database is overkill - there's a great alternative: localStorage! While it doesn't replace a database for, well, database purposes, it does serve as a simple file-based storage system that
  90. Guide to Lazy Loading With ReactWhen developing large React applications, we typically use many images and videos, install third-party packages/libraries, make API calls, and do a variety of other things. That naturally increases the time it takes to load our application and results in a massive bun
  91. Loading... Animation in Vanilla JavaScriptWhen developing websites and web applications, including a loading animation can improve the user experience significantly by communicating what's going on. This engages users and keeps their attention while loading the content, and it helps users understand
  92. How to Send Headers With an Axios POST RequestAxios is an HTTP client library that is used to send asynchronous HTTP requests such as POST, GET, and DELETE to REST endpoints (mainly APIs). Some of these requests, such as GET and POST, can include headers, which provide an additional source of inform
  93. Linear Regression in Python with Scikit-LearnIf you had studied longer, would your overall scores get any better? One way of answering this question is by having data on how long you studied for and what scores you got. We can then try to see if there is a pattern in that data, and if in...
  94. Sending POST JSON Requests With AxiosAxios is a promise-based HTTP client library that makes it simple to send asynchronous HTTP requests (such as POST, GET, and DELETE) to REST endpoints, mainly APIs. In this article, we will learn how to send POST JSON requests with Axios, and how to handle both p
  95. How to Create a Loading Animation in React with react-spinnersWhen creating React applications that fetch content from external sources that take some time to load, it is always a good idea to provide a pleasant user experience by engaging users and keeping their attention with a loader, as this hel
  96. How to Create a Loading Animation in React from ScratchWhen creating React applications that fetch content from external sources that take some time to load, it is always a good idea to provide a pleasant user experience by engaging users and keeping their attention with a loader, as this helps user
  97. Guide to Vue Router RedirectsWhen developing web applications with Vue.js that have many pages and incorporate many features such as logging in, authentication, carting, as well as a good deal of CRUD applications, we will need to implement routing at some point, which involves redirecting a user fr
  98. Guide to Vue PropsVue is a JavaScript framework that allows developers to create components that are used to divide the user interface into smaller pieces, rather than building the entire UI in a single file. When using components, we may want to pass data down from the parent component to the child
  99. Guide to Interfaces in JavaInterfaces in Java are one of the basic concepts of object-oriented programming that are used quite often alongside classes and abstract classes. An interface represents a reference type, meaning that it is essentially just a specification that a particular class that impl
  100. JavaScript: How to Count the Number of Substring Occurrences in a StringWhen working with strings or large amounts of text, you are probably going to encounter situations where you need to count how many times a specific substring occurred within another string. In this article, we'll take a look at
  101. Math.sqrt - Square Root in JavaCalculating the square root of a number is one of the common operations we do in computer science. This simple mathematical function finds its use in all areas of programming - be it in algorithms or any other mathematical model we wish to represent, we'll most likely
  102. Convert Form Data to JavaScript ObjectWhen working with forms in JavaScript, you'll typically need to convert form data to a JavaScript object (JSON) in order to populate an array, database, local storage, send it to an API, or even consume the data in your application. Conversion between form data
  103. Guide to the Ternary Operator in JavaScriptA ternary operator is a three-operand operator that is supported in most programming languages, including JavaScript, Java, C++, C#, and many others. It is also referred to as a conditional operator because it is considered to be a more concise alternative
  104. How to Deploy a React App to HerokuWhen a developer creates an application, the next step is to share it with friends or the public so that everyone can access it. That process of transferring code from a development environment to a hosting platform where it is served to end users is called deploym
  105. How to Reverse String in PythonAlthough it may not be a common thing to do in any real-world scenario, reversing strings is a pretty common operation you'll face in a job interview. Especially if you are applying for a job in a programming language that doesn't have built-in methods for reversing st
  106. Count Number of Element Occurrences in JavaScript ArrayWhen working with arrays in JavaScript, we frequently encounter situations that require us to count the number of occurrences of a specific element in that array - this element could be a string, object, number, or even a boolean. In this articl
  107. Getting Started With the Vue CLIVueJS is a progressive JavaScript framework used to create user interfaces and Single-Page Applications (SPAs), and the best way to get started quickly is to create a VueJS project using the Vue CLI (Command-Line Interface). In this guide, you will learn how to instal
  108. Common String Manipulation in PythonPython is a high-level, dynamically-typed, multi-paradigm programming language - and it notably comes with a plethora of built-in tools for various tasks, lowering the amount of effort required to quickly prototype and test ideas out. Strings are one of the most c
  109. Square Root in JavaScriptWhen developing mathematical solutions, answering algorithm questions, or attempting to solve a problem, situations may arise that require us to find the square root of specific values in JavaScript. In this article, we will learn how to find the square root of a value or el
  110. Convert String to Boolean in JavaScriptSuppose we have boolean values stored in our database as strings and based on those values we want to perform some specific operation on our website/application. In that case, we have to convert those strings into boolean values before using them in logical ope
  111. JavaScript: Get Min and Max Element of ArrayWhen working with JavaScript, we oftentimes encounter situations that require us to obtain the minimum and maximum elements of an array - be it for setting boundaries for a slider or displaying the statistics to a user. In this article, we'll take a look a
  112. JavaScript: Check if Variable Is a StringJavaScript supports a variety of data types such as strings, numbers, floats, etc. A string is a collection of characters such as "John Doe". Typically, you create them by enclosing characters in double or single quotes. Alternatively, you can make
  113. JavaScript: How to Get the Number of Elements in an ArrayAn array is used to store an ordered collection of values. These values could be a combination of either the same data type or numerous data types - integers, floats, strings, boolean, objects, and lots more. Getting the number of elements in
  114. How to Remove Duplicates From an Array in JavaScriptWhen consuming APIs or retrieving data from an array, you may encounter data that repeats itself, but you only want to select the unique values. For example, assume you have an array representing a restaurant menu, as shown below. You might need to
  115. How to Get the Number of Days Between Dates in JavaMore often than not we find ourselves counting the number of days from or to a particular date. Luckily, doing just that in Java is not very hard, and there are also quite a few ways to do it. So, in this article, we'll be taking a look at how...
  116. Get Length of JavaScript ObjectObjects are used to store a set of properties, each of which can be thought of as a link between a name (or key) and a value (a collection of key-value pairs). In this guide, we will learn how to get the length of a JavaScript object. Checking the length...
  117. Guide to React ComponentA component is the probably most important concept to understand in React. It is one of the core building blocks of React that allows us to split a UI into independent, reusable pieces, making the task of building UIs much easier. All of these independent components are then
  118. How to Create a Draggable Carousel Using Vanilla JavaScriptA website's carousel or slider is an effective way to display multiple images or content in a single space. It encourages visitors to concentrate on important website content while also improving overall visual appeal by saving screen space.
  119. Guide to React Event ManagementEvents usually represent some type of interaction between the user and the app - any time a user clicks on the object, types in the input field, drag or drop some element, and so on. Therefore, each event usually requires some type of reaction from the app. Each time a
  120. Guide to Deploying a React App to NetlifyDeployment is the process of moving our code from a source control system to a hosting platform where it gets stored, and can be served as an application to end users. Typically, this is done either in the cloud or on a local server. Prior to the advent of cl
  121. Lists vs Tuples in PythonLists and tuples are two of the most commonly used data structures in Python, with dictionaries being the third. Lists and tuples have many similarities: They are both sequence data types that store a collection of items They can store items of any data type And any item is
  122. Guide to Sets in PythonIn Python, a set is a data structure that stores unordered items. The set items are also unindexed. Like a list, a set allows the addition and removal of elements. However, there are a few unique characteristics that define a set and separate it from other data structures: A s
  123. Guide to Dictionaries in PythonPython comes with a variety of built-in data structures, capable of storing different types of data. A Python dictionary is one such data structure that can store data in the form of key-value pairs - conceptually similar to a map. The values in a Python dictionary can
  124. Guide to Python's append() FunctionBasic data types in Python allow us to store a single value under a symbolic name. This roughly follows the mathematical notation of variables. In a way, a name is assigned to a value, so you don't need to remember the actual value, nor its address in computer memo
  125. Character Counter for Text Areas with Vanilla JavaScriptA character counter is a handy UI feature that displays the remaining number of characters a user can input in a text field - if a text field is bound to a relatively small input size (such as Twitter's limit on 280 characters per tweet). This
  126. Get the Current Array Index in JavaScript's forEach()An Array in JavaScript is a standardized, built-in object used to store multiple objects under the same name. In simple terms, you can look at the Array object as an array in any other programming language. It is essentially a class that encapsula
  127. Guide to JavaScript's forEach() MethodThe forEach() method is one of many that can be used to loop through the contents of an array and show each element successively. It has the distinct qualities that set it apart from other techniques of iterating over arrays, meaning it's up to you to select whi
  128. Guide to Creating Charts in JavaScript With Chart.jsData helps us tell compelling stories, data visualization is the graphical representation of information and data using graphic elements such as charts, graphs, and so on. There are a few libraries out there that can help us produce beautiful outco
  129. Graphs in Python: Breadth-First Search (BFS) AlgorithmGraphs are one of the most useful data structures. They can be used to model practically everything - object relations and networks being the most common ones. An image can be represented as a grid-like graph of pixels, and sentences can be repre
  130. Graphs in Python: Depth-First Search (DFS) AlgorithmOriginating from mathematics, graphs are now widely used data structures in Computer Science. One of the first problems we encounter when constructing any algorithm regarding Graph processing or traversal is how we represent the graph and then, how
  131. Graphs in Python: Representing Graphs in CodeGraphs in Python can be represented in several different ways. The most notable ones are adjacency matrices, adjacency lists, and lists of edges. In this guide, we'll cover all of them. When implementing graphs, you can switch between these types of repre
  132. Guide to Vue Event Handling With v-on: Mouse, Keyboard, Form and Custom EventsEvent handling is a very important concept when trying to make an interactive application. Generally speaking, an event is a signifier of an interaction between a user and our application - clicking, typing on a keyboard,
  133. Conditional Rendering/Display in Vue with v-if, v-show, v-else and v-else-ifVue.js is a simple web app framework for creating dynamic web interfaces and Single-Page Apps (SPAs). As we create these apps, oftentimes, we want to render something based on a particular criteria - this is the essence of c
  134. Redirects in React RouterIf you're a developer working on any modern web application, you're probably aware of how important it is to properly set up routing. When you browse through many React Router tutorials, you may notice that they seldom mention redirects and instead focus on how to use the Li
  135. Handling Errors With AxiosAxios is a JavaScript library that uses the Promise API to create HTTP requests with http in Node.js runtime or XMLHttpRequests in the browser. Because these requests are promises, they work with the newer async/await syntax, as well as .then() functions for promise chainin
  136. Sort Array of Objects by String Property ValueObjects are used to store a set of properties, each of which may be thought of as a relationship between a name (or key) and a value - thus, objects are a collection of key-value pairs. In this guide, we'll take a look at how to sort an Array of...
  137. Scroll to Top in Vanilla JavaScriptWhenever you have a website that prompts users to scroll down a lengthy amount - offering a button to scroll back to the top is a nice gesture! In this hands-on guide, we will learn how to make an animated HTML/CSS/JS button to scroll to the top in...
  138. How to Filter an Object by Key in JavaScriptJavaScript's Objects are not iterable like arrays or strings, so we can't make use of the filter() method directly on an Object. filter() allows us to iterate through an array and returns only the items of that array that fit certain criteria, into a new a
  139. Graphs in Python: Minimum Spanning Trees - Prim's AlgorithmA graph is a great tool for modeling relationships between objects. Graphs can model complex relationships between any number of objects in a system, which makes them ideal for representing interactions between concepts/items in areas like p
  140. Guide to JavaScript's map() MethodIterating through sequences can be used to access and display elements of the sequence - but more often than not, it's done to run an operation on each or some of the elements. Note: Applying a function to each element of a sequence, and returning the transformed re
  141. Drag and Drop in Vanilla JavaScriptThe act of picking an item or chunk of text, moving it (dragging), and then placing it (dropping) in another location is described is known as drag-and-drop functionality. Most browsers make text selections, pictures, and links draggable by default. For example, if
  142. How to Check if Key Exists in JavaScript Object/ArrayAn object in JavaScript is an unordered collection of key-value pairs (key: value). Each key is known as a property, and is a string representing a property name. If a non-string is given as the key, its stringified representation will be used. A
  143. Graphs in Python: Minimum Spanning Trees - Kruskal's AlgorithmKruskal's algorithm is one of the three most famous algorithms for finding a minimum spanning tree (MST) in a graph. MSTs are widely used to calculate optimal paths in a lot of different fields. From a post-office calculating the optimal
  144. How to Scroll to Top, Bottom or Any Section in React with a Button ComponentThe "scroll-to-top" feature is an excellent addition to any website that forces visitors to scroll a long distance before reaching the bottom of the page, since it becomes quite annoying to return back to the top.
  145. Convert String to Lowercase in PythonConverting text into a uniform case is a good starting point of any type for text processing. In this article we'll show you how to convert text to lowercase using one of the Pythons' built-in methods used to manipulate strings - str.lower(). From a top-level vie
  146. How to Get Name of Month and Day in JavaScriptDates are a regular part of our everyday lives, and we're generally aware of the day, or at least month we're in at any given point. This proves to be a great reference point for time, and displaying the name of a month or a day can help users figure...
  147. How to Build a Date Countdown With Vanilla JavaScriptA countdown timer is a virtual clock that starts (or stops) counting down from a specific date to mark the start (or finish) of an event. They're commonly used on the landing page of an e-commerce website, under-construction websites, events pages
  148. Guide to JavaScript's filter() MethodFiltering through information is one of the most important tasks that we use automation/computers for! Computers and software wouldn't be nearly as useful if we had to sift through everything manually. By extension - filtering data for end-users is a common task,
  149. Hashing Passwords in Python with BCryptStoring passwords securely should be imperative for any credible engineer. Plain text passwords are extremely insecure - you shouldn't even bother considering storing them a plain format. It's enough that someone gains view privileges on a database for an entir
  150. JavaScript: Check if an Object is EmptyObjects are used to store a collection of properties, each of which may be thought of as an association between a name (or key) and a value (a collection of key-value pairs). In this guide, we will explore many JavaScript methods on how to check if an object is
  151. Guide to NumPy Matrix SubtractionSubtracting two matrices in NumPy is a pretty common task to perform. The most straightforward way to subtract two matrices in NumPy is by using the - operator, which is the simplification of the np.subtract() method - NumPy specific method designed for subtracting a
  152. How to Set Floating-Point Precision in JavaScriptFloating-points in JavaScript have an extremely high precision, and you don't always need this precision. Additionally - your user is even less likely to want it. More often than not - we'll want to "trim" floating-point numbers by setting a
  153. How to Round Doubles/Floats in JavaScriptFloats and doubles represent floating-point numbers - numbers with decimal points. While this type is very useful for a wide variety of environments, depending on what they're used for, we sometimes want to round them to a whole number - closest whole integer
  154. How to Trim Whitespaces/Characters from a String in JavaScriptAs you aim to become a better JavaScript developer, it is expedient you understand some tricks and methods in JavaScript to save you from unnecessary hard-to-decode bugs in the future. Whenever users input string values through form field
  155. The Difference Between var, let and const in JavaScript and Best PracticesProgramming has always included the definition of data, manipulation of data, and finally displaying data. Data can be represented as bits of information that we can alter in computer programs. Since memory locations aren't ve
  156. How to Pickle and Unpickle Objects in PythonConverting an object into a savable state (such as a byte stream, textual representation, etc) is called serialization, whereas deserialization converts data from the aforementioned format back to an object. A serialized format retains all the information
  157. How to Loop and Enumerate JavaScript Object PropertiesWhen writing JavaScript code, you may need to loop through JavaScript objects and enumerate their fields/values. Unfortunately, JavaScript objects are not iterable like arrays or strings, so we can't just loop an object using map(), forEach() or
  158. How to Convert a String to an Array in JavaScriptTextual data is typically stored through sequences of characters - strings. These sequences, are ultimately, arrays, and converting between the two structures typically is both simple and intuitive. Whether you're breaking a word down into its charact
  159. Convert Numpy Array to Tensor and Tensor to Numpy Array with PyTorchTensors are multi-dimensional objects, and the essential data representation block of Deep Learning frameworks such as TensorFlow and PyTorch. A scalar has zero dimensions, a vector has one dimension, a matrix has two dimensions and
  160. Python - How to Sort List with sort() and sorted()In this short guide, learn how to sort a list in Python using the built-in sort() and sorted() functions. sort() is a method of the list class, and sorts the list in-place, returning None. sorted() is a method built into the Python namespace, and sor
  161. Axios Multipart Form Data - Sending File Through a Form with JavaScriptMultipart/Form-Data is one of the encoding types that allows files to be included in your form data before it's transferred to the server for processing. Other encoding types can be used to achieve non-file transfers: application
  162. JavaScript: How to Sleep/Wait/Delay Code ExecutionDelaying code execution/simulating a delay has various uses - pausing in a loop for displaying data, waiting for other threads in a multithreaded environment to finish (though, this doesn't replace proper asynchronous programming) or simply lessening
  163. Guide to enumerate() in Python - Easy for Loops with CountingLooping with a counter variable/index - a classic in Computer Science! Typically, you'd either explicitly define a counter variable/index, and manually increment it on each loop, or you'd use some sort of syntactic sugar to avoid this proc
  164. Split Train, Test and Validation Sets with TensorFlow Datasets - tfdsTensorFlow Datasets, also known as tfds is is a library that serves as a wrapper to a wide selection of datasets, with proprietary functions to load, split and prepare datasets for Machine and Deep Learning, primarily with TensorFl
  165. Automatically Restart Node Apps on File Change with nodemonNodemon is an open-source utility package that keeps track of the changes made to your source code and restarts your project server automatically when new modifications are made. It also offers some unique features, such as the ability to wa
  166. Integrating MySQL with Node.js ApplicationsMySQL is an immensely popular Relational Database Management System (RDBMS) - and has for a long time been a staple in any back-end engineer's toolkit, right next to PostgreSQL. With the advent of JavaScript for the back-end, via Node.js' spectacular rise i
  167. How to Loop in React JSXJavascript Syntax Extension (JSX), is a JavaScript extension developed and popularized by the React framework that allows you to structure the rendering of elements. It essentially makes it easier to write HTML code in React (describe the UI), and due to its flexibility, JSX
  168. Definitive Guide to Jackson ObjectMapper - Serialize and Deserialize Java ObjectsJackson is a powerful and efficient Java library that handles the serialization and deserialization of Java objects and their JSON representations. It's one of the most widely used libraries for this task, and runs unde
  169. How to Convert JSON to JavaScript ObjectJSON (JavaScript Object Notation) has become the de facto serialization format for REST APIs, due to the fact that it's humanly-readable, simple and small in size. It uses the same notation used to define JavaScript objects, and naturally, it's extremely strai
  170. Image Classification with Transfer Learning in Keras - Create Cutting Edge CNN ModelsDeep Learning models are very versatile and powerful - they're routinely outperforming humans in narrow tasks, and their generalization power is increasing at a rapid rate. New models are being released and benchmar
  171. How to Change Port for Spring Boot ApplicationsSpring Boot applications ship with an embedded server, and the default port for them is 8080. Whether some other service already inhibits this port, or whether you'd like to create a new microservice on a new one - in this guide, we'll take a look at ho
  172. How to Copy to Clipboard in JavaScript with the Clipboard APIThe copy/paste feature is without a doubt one of the most commonly used features in modern computing, and it refers to the process of copying/transferring text or images from one part of a computer-based application to another. Most recent
  173. Definitive Guide to Java Pairs - Working with Tuples in JavaTuples are immutable and ordered sequences of elements. In that regard, they're similar to immutable lists - however, commonly, tuples are used to represent pairs in Software Engineering. It's worth noting that they're not limited to being
  174. Guide to Getting Started with Next.js - Create a Next.js AppNext.js is an open-source JavaScript framework created by Vercel to enhance React applications with features such as Server-Side Rendering and Static Site Generation. Traditionally, React is used to create Single-Page Applications (SPAs) wh
  175. Spring Data MongoDB - Guide to the @Aggregation AnnotationMongoDB is a document-based NoSQL database, that stores data in BSON (Binary JSON) format. Like with any database, you'll routinely make calls to read, write or update data stored in the document store. In many cases, retrieving data isn't as
  176. How to Check/Select a Checkbox with jQuery - JavaScriptIn this short guide, you'll learn how to select checkbox elements on the page, and check them in JavaScript, with Vanilla JavaScript and jQuery. We'll be working with this simple checkbox setup: <h1>Check/Select Checkbox</h1> <p&g
  177. Guide to Vuex - Centralized State Management for Vue ApplicationsVuex is a library that stores data in a Vuex store, which acts as the source of data on states in a Vue application. This store contains a global state (set of properties) and functions (getters, actions and mutations) used to read and
  178. Guide to Java 8 Collectors: toSet()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in several ways; mos
  179. Programmatically Navigate Using React RouterPages on modern websites, and especially Single-Page Applications (SPAs) do not follow the traditional method of loading new pages completely whenever something changes on them. Client-Side Routing is used instead - to route towards resources to load anoth
  180. Object Detection with OpenCV-Python Using a Haar-Cascade ClassifierPython has many applications in the field of Computer Vision, typically though Deep Learning. From performing OCR on documents to allowing robots to "see" - Computer Vision is an exciting and challenging field! OpenCV is an

2021 231

  1. Count Number of Word Occurrences in List PythonCounting the word frequency in a list element in Python is a relatively common task - especially when creating distribution data for histograms. Say we have a list ['b', 'b', 'a'] - we have two occurrences of "b" and one of "a". This
  2. Parsing XML with BeautifulSoup in PythonExtensible Markup Language (XML) is a markup language that's popular because of the way it structures data. It found usage in data transmission (representing serialized objects) and configuration files. Despite JSON's rising popularity, you can still find XML
  3. How to Sort an Array by Date in JavaScriptIn this short guide, we'll cover all necessary aspects of sorting an array by date in JavaScript. The array data structure in JavaScript has a built-in sort() method, but it is not designed to be used to sort an array by date. There are a lot of different da
  4. Validate Email Addresses in Python with email-validatorWhether you are creating a registration form for your website or you just need to delete all invalid email addresses from your mailing list, you can't help but perform the process of email validation. You need to validate if an email address is
  5. How to Reverse a String in JavaScriptReversing 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, which is somewhat similar to reversing an array. We can use a combination of string's split() method
  6. Guide to Java 8 Collectors: toMap()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in several ways; mos
  7. Java 8 - Collect Stream into Unmodifiable List, Set or MapA stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collectio
  8. How to Check if Checkbox is Checked in jQuery and JavaScriptCheckboxes are one of the several types of input fields we use very commonly to allow users to interact with web pages and typically POST data to a backend, by checking any box that applies to a given situation. As opposed to Radio Buttons
  9. Guide to the Python or OperatorThe or operator is one of the three existing logical operators in Python (and, or, not), which perform a logical evaluation of the passed operands. In simple terms, when two operands are passed, it will decide whether the final value of the created logical expression i
  10. Java 8 - Difference Between map() and flatMap()While Java is primarily an Object Oriented Language, many concepts of Functional Programming have been incorporated into the language. Functional programming uses functions to create and compose programming logic, typically in a declarative manner (i.e.
  11. Java 8 Streams - Collect and Reverse Stream into ListA stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in
  12. Graph Theory and Graph-Related Algorithm's Theory and ImplementationGraphs are an extremely versatile data structure. More so than most people realize! Graphs can be used to model practically anything, given their nature of modeling relationships and hierarchies. Nature and human creators are extrem
  13. How To Get User's IP Address Using Flask?Flask is one of the most popular Python web development frameworks. It's a lightweight web framework, yet it offers a variety of built-in methods that can be used for hassle-free deployment of efficient web applications. In this guide, we will get the IP addr
  14. Guide to Java 8 Collectors: collectingAndThen()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in sever
  15. GET Request Query Parameters with FlaskQuery Parameters are part of the Query String - a section of the URL that contains key-value pairs of parameters. Typically, parameters are sent alongside GET requests to further specify filters on the operation: www.example.com/search?name=John&location=Mi
  16. How to Get and Parse HTTP POST Body in Flask - JSON and Form DataFlask is a great micro-framework for Web Development in Python, and allows you to be extremely minimal. A working REST API can be served up in seconds through a few lines of code: from flask import Flask, request app = Flask(__name__)
  17. Guide to Java 8 Collectors: reducing()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in several ways;
  18. Guide to Functional Interfaces and Lambda Expressions in JavaJava is an object-oriented language, imperative in its essence (contrasting with the declarative practice that is functional programming). Nonetheless, it was possible to apply functional principles to Java programs prior to version 8, how
  19. Java 8 Streams: Definitive Guide to partitioningBy()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in
  20. Java 8 Streams: Definitive Guide to flatMap()Mapping elements from one collection to another, applying a transformative function between them is a fairly common and very powerful operation. Java's functional API supports both map() and flatMap(). If you'd like to read more about map(), read our Java
  21. JavaScript: Check if Variable is undefined or nullundefined and null values sneak their way into code flow all the time. Whether we lose a reference through side-effects, forget to assign a reference variable to an object in memory, or we get an empty response from another resource, database or API
  22. Java 8 Streams: Definitive Guide to Parallel Streaming with parallel()Today, the Java Streams API is in extensive use, making Java more functional than ever. Thus, models like MapReduce have emerged for easier stream handling. Although these models made using streams effortless, they've also introdu
  23. Git: Guide to Solving Merge ConflictsMerge Conflicts arise when multiple agents modify the same part of a file and push their changes to a remote branch. When you attempt to merge, pull from or push to these branches - there's a conflict, and Git isn't sure which set of changes to accept and which t
  24. How to Concatenate Strings in an Array in JavaScriptData takes many forms - and lists are a very common one. Concatenating strings is a common task and there are several ways to go about it. In the same way, concatenating strings in an array builds upon that task, for each string in that array. Howe
  25. Keras Callbacks: Save and Visualize Prediction on Each Training EpochKeras is a high-level API, typically used with the TensorFlow library, and has lowered the barrier to entry for many and democratized the creation of Deep Learning models and systems. When just starting out, a high-level API that a
  26. Guide to Java 8 Collectors: averagingDouble(), averagingLong() and averagingInt()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Stream
  27. Guide to Java 8 Collectors: counting()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in several ways;
  28. Calculate Square Root of a Number in PythonThe 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
  29. Python: Count Number of Substring Occurrences in StringA substring is a continuous sequence of characters within a String. For instance, "substring" is a substring of "Find a substring within a string". Strings in Python are arrays of bytes representing Unicode characters and one
  30. Python: Validate Email Address with Regular Expressions (RegEx)Regular Expressions, or RegEx for short, are expressions of patterns that can be used for text search and replace actions, validations, string splitting, and much more. These patterns consist of characters, digits and special characters,
  31. Functional Programming in Java 8: Definitive Guide to PredicatesThe Predicate interface was introduced in Java 8 as a part of the java.util.function package. The release of version 8 marks the point at which Java adopted ample support for functional programming practices distending to include variou
  32. Guide to Java 8 Collectors: summingDouble(), summingLong() and summingInt()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams diff
  33. Python: Convert List to String with join()Data takes many shapes and forms - one of the most common data structure being lists/arrays. Strings are, essentially, sequences of alphanumeric characters. The parallel between these is apparent, and we often convert between one and the other. In this guide
  34. Guide to Java 8 Collectors: groupingByConcurrent()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in se
  35. Python: Split String into List with split()Data can take many shapes and forms - and it's oftentimes represented as strings. Be it from a CSV file or input text, we split strings oftentimes to obtain lists of features or elements. In this guide, we'll take a look at how to split a string into a list
  36. Guide to Java 8 Collectors: groupingBy()A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is streamed from. Streams differ from collections in several ways
  37. Using borb with Python to Create E-books From Project GutenbergThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was construct
  38. How to Join/Concatenate Strings in JavaScriptStrings are one of the most common data types used in software - they represent strings of characters that we parse as words. String concatenation is a pretty standard task, especially since we don't always deal with static strings. We often create string
  39. Counting Sort in JavaSorting is one of the fundamental techniques used in solving problems, especially in those related to writing and implementing efficient algorithms. Usually, sorting is paired with searching - meaning we first sort elements in the given collection, then search for something with
  40. Guide to Creating a Discord Bot in JavaScript with Discord.js v13Communicating online and staying in touch with people all over the globe has been a major promise from the dawn of the Internet - a web of communication and information. Fairly early on, applications sprung up that connected people all
  41. Easily Parse URLs in JavaScript with parse-urlParsing URLs is a common task to perform during web development, and also one that seems to be simple but can get complex. It's not often that you come across a module that makes parsing so easy that you don't have to think a lot yourself. Despite being
  42. Java - How to Print an Array in One LineJava is a type-safe, verbose language. There are advantages to this, but also some drawbacks. Namely - there's oftentimes a lot of boilerplate code and simple operations such as printing an array aren't as simple as supplying it to the println() method: int[]
  43. Integrating Matplotlib Charts in a PDF in Python With borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to
  44. Heap Sort in JavaSorting is one of the fundamental techniques used in solving problems, especially in those related to writing and implementing efficient algorithms. Usually, sorting is paired with searching - meaning we first sort elements in the given collection, then search for something within i
  45. Graphs in Java: Minimum Spanning Trees - Prim's AlgorithmGraphs are a convenient way to store certain types of data. The concept was ported from mathematics and appropriated for the needs of computer science. Due to the fact that many things can be represented as graphs, graph traversal has become a
  46. Sending PUT HTTP Requests with AxiosAxios is a JavaScript library for making HTTP requests, either in the browser or Node.js. Unlike the popular Requests library, Axios is natively promise-based, making it more suitable for modern applications taking advantage of newer JavaScript features, like Prom
  47. Quicksort in JAVASorting is one of the fundamental techniques used in solving problems, especially in those related to writing and implementing efficient algorithms. Usually, sorting is paired with searching - meaning we first sort elements in the given collection, then search for something within i
  48. Creating a Form in a PDF Document in Python With borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be i
  49. Validate Email Addresses with Regular Expressions in JavaScriptFor web developers, validating user inputs in various types of forms is of crucial importance. Since that is the starting point of data being sent between the client and the server, you need to make sure that everything starts off on the
  50. Rounding Numbers in JavaScript using ceil(), floor() and round()In this article, we'll be taking a look at how to round a number to an integer (whole number) in JavaScript. JavaScript provides three different methods to achieve this goal: the round() method, the ceil() method and the floor() method.
  51. Scikit-Learn's train_test_split() - Training, Testing and Validation SetsScikit-Learn is one of the most widely-used Machine Learning library in Python. It's optimized and efficient - and its high-level API is simple and easy to use. Scikit-Learn has a plethora of convenience tools and methods that
  52. Heap Sort in JavaScriptIn this guide, we will explore Heap Sort - the theory behind it and how to implement Heap Sort in JavaScript. We will start off with what data structure it's based on (massive foreshadow here: it's a heap!), how to perform operations on that data structure, and how that data..
  53. Perform OCR on a Scanned PDF in Python Using borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be inter
  54. How to Parse Command Line Arguments in BashBash scripts take in command-line arguments as inputs both sequentially and also, parsed as options. The command-line utilities use these arguments to conditionally trigger functions in a Bash script or selectively choose between environments to execute the
  55. Getting Started with GitHub Actions - Software AutomationIn this guide, we'll take a look at what GitHub actions are, how they work, and build a workflow using Python to showcase how you can use GitHub actions to automate tasks. Since its inception in 2008, GitHub has grown to become the de facto le
  56. Handling File Uploads with DjangoThe World Wide Web facilitated the transfer of huge amounts of data between networked computers, and it's a community that creates and shares data in abundance. This data can take various forms and shapes, and some common human-interpretable format are images, videos
  57. Git: Show Date of a CommitAs we've covered in many of our previous articles, Git is a very useful tool for developers, albeit, it tends to be a bit confusing to newcomers. And all the while many know the basics of Git and know how to perform common operations, such as merging commits, branching, or.
  58. Create a Stunning PDF Flyer in Python with borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be interac
  59. Java 8 Streams: Definitive Guide to reduce()The reduce() method is Java 8's answer to the need for a fold implementation in the Stream API. Folding is a very useful and common functional programming feature. It operates on a collection of elements to return a single result using some sort of operati
  60. Java Regular Expressions - How to Validate EmailsRegular Expressions (RegEx) are a powerful tool and help us match patterns in a flexible, dynamic and efficient way, as well as to perform operations based on the results. In this short guide, we'll take a look at how to validate email addresses in Ja
  61. Java: Built-in String Regular Expression (RegEx) MethodsRegular Expressions (RegEx) are a powerful tool and help us match patterns in a flexible, dynamic and efficient way, as well as to perform operations based on the results. In this short guide, we'll take a look at the built-in RegEx methods, wh
  62. Java Regular Expressions - Validate Phone NumberRegular Expressions (RegEx) are a powerful tool and help us match patterns in a flexible, dynamic and efficient way, as well as to perform operations based on the results. In this tutorial, we'll take a look at how to validate an phone number in Java,
  63. Python: Deep and Shallow Copy ObjectIn this article, we'll take a look at how to deep and shallow copy the objects in Python. The short answer is that you can use methods of the copy module, for both operations: import copy shallow_copy_list = copy.copy(original_list) deepcopy_list = copy.deepcopy(o
  64. Guide to Regular Expressions in JavaRegular Expressions (RegEx) are one of the most powerful tools in programming, yet they're also commonly misunderstood. They help you match patterns in a flexible, dynamic and efficient way, as well as allow you to perform operations based on the results. This can
  65. Java 8 Streams: Definitive Guide to findFirst() and findAny()The findFirst() and findAny() methods are terminal operations (terminate and return results) of the Stream API. Yet, there is something special about them - they not only terminate a stream, but also short circuit it: List<String> pe
  66. Machine Learning: Overfitting Is Your Friend, Not Your FoeLet me preface the potentially provocative title with: It's true, nobody wants overfitting end models, just like nobody wants underfitting end models. Overfit models perform great on training data, but can't generalize well to new instances.
  67. Guide to Python's keyboard ModulePython is one of the most suitable languages for automating tasks. Whether it's repeatable (ethical) web scraping after some time period, starting some programs on a computer start up, or automating sending mundane e-mails, Python has a lot of modules that make your
  68. Calculating Euclidean Distance with NumPyIn this guide - we'll take a look at how to calculate the Euclidean distance between two points in Python, using Numpy. Euclidean distance is a fundamental distance metric pertaining to systems in Euclidean space. Euclidean space is the classical geometrical
  69. Radix Sort in JavaSorting is one of the fundamental techniques used in solving problems, especially in those related to writing and implementing efficient algorithms. Usually, sorting is paired with searching - meaning we first sort elements in the given collection, then search for something within
  70. Split, Merge and Rotate PDF Documents in Python with borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to
  71. Spring Data MongoDB - Guide to the @Query AnnotationIf you have worked with Spring Data JPA for any length of time - you're probably acquainted with derived query methods: @Repository public interface BookRepository extends MongoRepository<Book, String> { List<Book> findByAuthor(String n
  72. Working with JavaScript's Built-In Array FunctionsWhen working with any programming language, you'll probably need some functionality that is not integrated into that language natively. Thus, you'll either implement them yourself, or turn to using various modules or libraries. This directly affects
  73. Working with JavaScript's Built-In String FunctionsWhen working with any programming language, you'll probably need some functionality that is not integrated into that language natively. Thus, you'll either implement them yourself, or turn to using various modules or libraries. This directly affects
  74. Java 8 Streams: Definitive Guide to the filter() MethodThe Java Streams API simplifies working with a collection of elements. Because streams turn these elements into a pipeline, you could test them using a set of conditions (known as predicates), before finally acting on those that meet your criter
  75. Abstract Factory Design Pattern in PythonDesign patterns help make code understandable, scalable, and reusable. There are different categories of design patterns, depending on the problems being addressed. When code is modularized, it's easier to add newer features without making drastic changes to
  76. Creating a REST API with Django REST FrameworkREST APIs are an industry-standard way for web services to send and receive data. They use HTTP request methods to facilitate the request-response cycle and typically transfer data using JSON, and more rarely - HTML, XML and other formats. In this guide,
  77. Graphs in Python: Dijkstra's AlgorithmGraphs are one of the most useful data structures. They can be used to model practically everything - object relations and networks being the most common ones. An image can be represented as a grid-like graph of pixels, and sentences can be represented as graphs
  78. Guide to NumPy's arange() FunctionNumPy is the most popular mathematical computing Python library. It offers a great number of mathematical tools including but not limited to multi-dimensional arrays and matrices, mathematical functions, number generators, and a lot more. One of the fundamental tool
  79. Guide to Java 8 Collectors: Definitive Guide to toList()Streams don't hold any data by themselves - they just stream it from a source. Yet, common code routines expect some sort of a structure to hold results after processing data. That is why, after (optional) intermediate operations, the Stream AP
  80. Random Projection: Theory and Implementation in Python with Scikit-LearnThis guide is an in-depth introduction to an unsupervised dimensionality reduction technique called Random Projections. A Random Projection can be used to reduce the complexity and size of data, making the data easier to process
  81. Dijkstra's Algorithm vs A* AlgorithmEvery single search algorithm consists of: The current state of the problem Possible actions that can be done in order to change that state The ability to recognize the final state - our goal When it comes to Artificial Intelligence, there are two types of search
  82. Self-Organizing Maps: Theory and Implementation in Python with NumPyIn this guide, we'll be taking a look at an unsupervised learning model, known as a Self-Organizing Map (SOM), as well as its implementation in Python. We'll be using an RGB Color example to train the SOM and demonstrate its perform
  83. Guide to Multidimensional Scaling in Python with Scikit-LearnIn this guide, we'll dive into a dimensionality reduction, data embedding and data visualization technique known as Multidimensional Scaling (MDS). We'll be utilizing Scikit-Learn to perform Multidimensional Scaling, as it has a wonderfull
  84. Calculating Spearman's Rank Correlation Coefficient in Python with PandasThis guide is an introduction to Spearman's rank correlation coefficient, its mathematical calculation, and its computation via Python's pandas library. We'll construct various examples to gain a basic understanding of this coe
  85. Comparing Datetime with Delorean in Python - With and Without TimezonesWorking with datetimes can be challenging, and handling datetime in Python is no exception. Python's built-in datetime module introduced us to several classes - date, datetime, time, timezone and timedelta, and several external l
  86. Calculate Factorial With Java - Iterative and RecursiveCalculating a factorial of a number is a straightforward task. A factorial of a number is the product of that number (positive integer) and all positive integers less than that number. In other words - multiplying a number by all of the whole nu
  87. Calculate Factorial With JavaScript - Iterative and RecursiveA factorial of a number is the product of that integer and all the positive integers that are lesser than or equal to it. It has to be a positive integer - otherwise, the logic extends to negative infinity. In other words - calculating a f
  88. Extract and Process PDF Invoices in Python with borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be in
  89. Spring Data JPA - Guide to the @Query AnnotationIf you have worked with Spring Data JPA for any length of time - you're probably acquainted with derived query methods: public interface MyRepository extends JpaRepository<Client, Long> { List<Client> findByOrganizationName(String name); }
  90. Getting Started with Collections in JavaScriptGroups of data in different forms are one of the fundamental data structures in most programming languages. In many cases, groups of data expressed through different data types are referred to as Collections. In this guide - we'll take a look at Collecti
  91. Calculate a Factorial With Python - Iterative and RecursiveBy definition, a factorial is the product of a positive integer and all the positive integers that are less than or equal to the given number. In other words, getting a factorial of a number means to multiply all whole numbers from that numb
  92. Guide to Regular Expressions and Matching Strings in JavaScriptMatching strings or string patterns can be a real struggle. In the most common cases, you'll need these to validate emails, user inputs, file names, or most kinds of input strings. While there are many pattern-matching libraries and appr
  93. Asynchronous Pub/Sub Messaging in Java with NATS JetStreamWhen we build large-scale distributed clusters of applications, we utilize all our efforts to break the monoliths into small containerized workloads that communicate among themselves and share information to perform various actions. We do not
  94. Null Coalescing Operator in JavaScript with ECMAScript 2020When working in a request-response lifecycle, you want to make sure that a response with the wanted body - or at least an informative response arrives so the client that requested the data stays in the loop. In case of null values, you'll pr
  95. How to Reverse a List in PythonPython is a flexible language, and there's typically several ways to perform the same, menial task. Choosing an approach can depend on the time or space complexity, or simply on your personal preference. Python's data structures are quite handy and intuitive, and their
  96. How to Concatenate Strings in PythonIn this short tutorial, we'll take a look at how to concatenate strings in Python, through a few different approaches. It's worth noting that strings in Python are immutable - a string object in memory cannot be changed once created: newString = "Some new str
  97. Linux: Display File Properties via TerminalWe 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 more ter
  98. Observer Design Pattern in PythonSoftware Design Patterns help accelerate the development process by providing a reusable blueprint for your code to solve a particular problem. We follow Design Patterns to write generalized, reusable, and readable code that could be easily understood by others famil
  99. How to Get the Max Element of a Pandas DataFrame - Rows, Columns, Entire DataFrameA DataFrame is a data structure that represents a special kind of two-dimensional array, built on top of multiple Series objects. These are the central data structures of Pandas - an extremely popular and powerful data
  100. Python: Get Max Element of List, Dictionary, or TupleIn this guide, we'll take a look at how to find the maximum element of a few common data structures in Python, such as a list, dictionary, and tuple. The max() method, built into the Python namespace works wonders here for built-in types. How to G
  101. Pimp my Terminal - An Introduction to "Oh My Zsh"Using a terminal can be a bit of an intimidating experience in the beginning - but after you get used to it, it can boost your productivity in ways you couldn't imagine and can become quite a pleasurable experience. That's probably the most addicting
  102. Guide to Sending HTTP Requests in Python with urllib3Resources on the Web are located under some kind of web-address (even if they're not accessible), oftentimes referred to as a URL (Uniform Resource Locator). These resources are, most of the time, manipulated by an end-user (retrieved, updated, de
  103. The Prototype Design Pattern in PythonIn this guide, we'll take a look at the theory and implementation of the Prototype Design Pattern in Python and when you can benefit from leveraging it. The Object-Oriented Programming (OOP) Paradigm Design Patterns are solutions to common issues, typically pres
  104. How to Get Max or Min Element in Java CollectionIn this guide, we'll take a look at how to get the maximum or minimum element in a Java Collection, both for primitive types and custom comparable objects, via their fields. Getting the Maximum or Minimum Element with Collections.max() The Collections
  105. Guide to Quartz with Spring Boot - Job Scheduling and AutomationTime is precious and delegating time and resources to perform menial tasks tends to waste resources and money. Hence, organizations strive to achieve full-scale automation in their systems since it's much more scalable and significantly
  106. Datetime Arithmetic, Alteration and Truncation with Python's DeloreanWorking with datetime can be a bit daunting and challenging, and handling datetime in Python is no exception. Python's built-in datetime module introduced us to several classes - date, datetime, time, timezone and timedelta, and se
  107. How to Humanize Delorean Datetime ObjectsWorking with datetime can be a bit daunting and challenging, and handling datetime in Python is no exception. Python's built-in datetime module introduced us to several classes - date, datetime, time, timezone and timedelta, and several external libraries hav
  108. Creating and Parsing Datetime in Python with DeloreanWorking with datetime can be a bit daunting and challenging, and handling datetime in Python is no exception. Python's built-in datetime module introduced us to several classes - date, datetime, time, timezone and timedelta, and several external l
  109. Python: How to Remove a Character from a StringIn this guide, we'll take a look at how to remove a character from a string in Python. Strings, and especially user-generated input may contain unwanted characters, such as special characters in a username field we don't want to store. In those cases, w
  110. Feature Scaling Data with Scikit-Learn for Machine Learning in PythonPreprocessing data is an often overlooked key step in Machine Learning. In fact - it's as important as the shiny model you want to fit with it. Garbage in - garbage out. You can have the best model crafted for any sort of problem -
  111. Python: Remove the Prefix and Suffix From a StringThere are multiple ways to remove whitespace and other characters from a string in Python. The most commonly known methods are strip(), lstrip(), and rstrip(). Since Python version 3.9, two highly anticipated methods were introduced to remove the pre
  112. Reverse an Array in JavaScriptIn this tutorial, we'll take a look at how to reverse an array in JavaScript. There are a few ways to do this, and figuring out which one you'll want to employ typically depends on your personal preference. We'll be reversing these two arrays: let numArr = [1, 2, 3, 4,.
  113. Python's itertools - compress(), dropwhile(), takewhile() and groupby()In this guide, we'll take a look at how to harness the power of iterators using Python's itertools module. The itertools module provides us with an interface for creating fast and memory-efficient iterators. These iterators can b
  114. Spring Boot: Guide to RestTemplateIn this guide, we'll be taking a look at one of the most frequently used and well-known template in the Spring Ecosystem - known as RestTemplate, and how to use RestTemplate to send HTTP requests, pass pre-defined headers to qualified RestTemplate beans as well as h
  115. Guide to Understanding Classes in JavaScriptWhen you think about classes and Object Oriented Programming as a paradigm, JavaScript is probably not the first language that comes to mind. In this guide, we are going to try and push JavaScript further up the list of associations, discussing how to appl
  116. Node: Check if File or Directory is EmptyWeb applications typically receive user input in some form - and with any input, validation is important. Making sure that form fields contain valid data, or that they contain any data at all is one of the first checks you can do. When a user uploads files -
  117. How to Return HTTP Status Codes in a Spring Boot ApplicationAll 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 f
  118. Guide to Python's strip() MethodString manipulation in Python is achieved through a set of built-in methods, which return new strings since they're immutable. In this guide, we will look at methods to strip whitespace (in other languages it's also known as trimming) from strings in Python. Trim Meth
  119. Node.js Application Monitoring with Prometheus and GrafanaMonitoring applications remains a critical part of the microservice world. The challenges associated with monitoring microservices are typically unique to your ecosystem and failures can oftentimes be discreet - a small module's failure can g
  120. Git: Stop Tracking File After Adding to .gitignoreAccidentally forgot to add a file to the .gitignore file and started tracking it with other files? Or perhaps a remote repository already has a file tracked that you've cloned, but would like to stop tracking? Just as important as tracking changes is
  121. Styling PyQt6 Applications - Default and Custom QSS StylesheetsIn this guide, we'll take a look at how to style a PyQt application. If you're unfamiliar with PyQt, read our Guide to Working with Python's PyQT Framework We'll start with PyQt's default themes and how to change these, before moving for
  122. Spring Security: In-Memory Invalidation of JWT Tokens During User LogoutAs technology evolves and becomes more prevalent - including the evolution of large-scale service-oriented architectures, managing web security becomes more and more complex. There are many more edge cases now than there were be
  123. Thymeleaf Path Variables with Spring BootThymeleaf 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 API
  124. Git: Undo Latest Local CommitAccidentally committed something to the wrong branch? Perhaps, you just committed the new shining feature, and to your dismay, there's a typo in the user interface you haven't seen before, and you'd like to take the commit back to fix that as well? In some cases, you can
  125. Matplotlib: Turn Off Axis (Spines, Tick Labels, Axis Labels and Grid)Matplotlib is one of the most widely used data visualization libraries in Python. Much of Matplotlib's popularity comes from its customization options - you can tweak just about any element from its hierarchy of objects. In this tu
  126. End-to-End Testing in JavaScript with CypressEnd-to-end test automation is an important part of the development lifecycle of any web based application. Choosing the right tool for you and for your application is arguably even more important. In this guide, we'll take a look at end-to-end testing usi
  127. Redis Queues & Redis Queue Dashboards for Python API DevelopmentThe in-memory data store - Redis is extensively used by developers as a database, cache layer, to manage job queues, and more. It comes in handy when you are building APIs with a job queue mechanism to handle tasks like running memory-i
  128. Counting Sort in PythonCounting sort is a sorting algorithm used to sort elements of an array in linear time. We usually use Counting Sort to sort integer arrays. Counting Sort is a stable, non-comparative algorithm. Non-comparative sorting algorithms perform sorting without any comparison between e
  129. JavaScript: Check if Element is Hidden with jQueryIn this article, we will take a look at how to check if an element is hidden with JQuery. Here are the most common ways to check the visibility of an element: console.log($(myElement).is(":hidden")) console.log($(myElement).is(":visibl
  130. Git: Stashing Uncommitted ChangesIf you've been working with Git long enough, you've probably had times where you made changes to your codebase, but needed to switch branches or work with the latest working version of your code. However, you don't want to lose the changes you've made already, but th
  131. Guide to Elasticdump - Moving and Saving Elasticsearch IndicesElasticsearch initially began as a custom search engine. These days, it has gone above and beyond that singular role as it's part of log aggregation stacks, security monitoring, and even as a datastore for performing exploratory analysis.
  132. Measuring Java Code Execution Time with Spring's StopWatchMeasuring code execution time is a vital step in trying to write efficient applications. Temporal awareness of your code on a machine that might be serving a great deal of users lets you plan further, accounting for the execution time. In mul
  133. Python's itertools – count(), cycle() and chain()Python has a lot of built-in tools that allow us to iterate and transform data. A great example is the itertools module, which offers several convenient iteration functions. Each of these iterator-building functions (they generate iterators) can be us
  134. Beginner's Introduction to Jenkins - CI/CDThe advent of fast-paced development with many methodologies like Scrum, Agile and Kanban brought along some key issues: developers working in small increments spent a lot of time waiting for the new version to build, reach the testers and eventually get dep
  135. Template Method Design Pattern in PythonThe software engineering process often reveals to us many redundant elements inside the structure and code of our software. Knowing this, some of the primary responsibilities of a developer are to write easily understandable and maintainable code - not just so
  136. Searching and Replacing Words in Python with FlashTextIn this tutorial, we'll explain how to replace words in text sequences, with Python using the FlashText module, which provides one of the most efficient ways of replacing a large set of words in a textual document. How does the FlashText Algorith
  137. How to Get the Current Date in JavaScriptWhether you are creating a daily routine app, your own blog, or most any other type of dynamic web app, you will probably need to work with dates. In this article, we're going to learn how to get the current date in JavaScript, so you can successfully develop
  138. JavaScript: Get Current URL and Components (Protocol, Domain, Port, Path, Query, Hash)In this tutorial, we'll take a look at how to get the current URL of a loaded HTML page, using JavaScript. Firstly, let's take a look at a URL: https://www.stackabuse.com:8080/category/article-title.html?searchterm
  139. Java 8: How to Convert a Map to ListA Java Map implementation is an collection that maps keys to values. Every Map Entry contains key/value pairs, and every key is associated with exactly one value. The keys are unique, so no duplicates are possible. A common implementation of the Map interface is a
  140. JavaScript: How to Redirect to Another WebpageOftentimes, 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
  141. Checking Vulnerabilities in Your Python Code with BanditAs developers, we're encouraged from the start of the journey to write clean code. Equally as important, but less talked about is writing and using secure code. In Python projects, we typically install modules and third-party packages to avoid
  142. Guide to Unit Testing Spring Boot REST APIsTesting the system is an important phase in a Software Development Life Cycle (SDLC). Testing promotes code reliability, robustness, and ensures high-quality software delivered to clients if implemented correctly. Testing has been given more importance ever
  143. An Introductory Guide to BrythonWhen developing web applications - we commonly use several technologies, and languages. A back-end can easily be built in Java (Spring Boot), Python (Django or Flask), or JavaScript (Node.js), though the front-end is more commonly done in JavaScript (React, Angular, e
  144. How to Change Element's Class with JavaScript - className and classListThe class attribute in HTML is used to define a class for one or more HTML elements. This way, a lot of elements can belong to the same class of elements and share the same style in the style sheet, so you don't have to write the
  145. JavaScript: Get Last Element in ListGetting the last element of a list/array is a common operation. In this tutorial, we'll take a look at how to get the last element in a JavaScript array/list. JavaScript is a weakly-typed or untyped language, which means that the type of variable doesn't need to b
  146. How to Install Pip on WindowsPackage managers are tools commonly created for programming languages that make the setup and management of third-party packages easier. Pip is the preferred package manager in Python for both the native Pip modules and the ones installed inside the virtual environments.
  147. Python's Iteration Tools: filter(), islice(), map() and zip()Python has touched the hearts of many software developers around the world, thanks to its utility and simplicity. Python provides its users with a number of useful functions and data structures that make working with data easier, including
  148. JFugue Beginners Guide Part III: Rhythms, Reading and Writing to MIDIIn this tutorial, we will learn how to create rhythms using the Rhythm class, how to use JFugue's built-in RhythmKit to conveniently create rhythm, and how to apply different rhythm instruments to our song. We will also cover how t
  149. JFugue Beginners Guide Part II: Chords and Chord ProgressionsIn this guide, we will learn how to create and manipulate chords and chord progressions, how to use setKey(), distribute() and allChordsAs()methods of the ChordProgression class, and how to play different patterns simultaneously by using v
  150. JFugue Beginners Guide Part I: Notes, Durations, PatternsJFugue is an open-source Music library that allows you to play and compose MIDI music using the Java programming language. It uses their "Staccato" format to parse strings of musical instructions. By using JFugue, you can convert the
  151. Convert Java Object (POJO) To and From JSON with GsonThe JSON format is one of the most popular ways to serialize data. Knowing how to read and write it is an important skill for any programmer. There are a couple of Java libraries that can parse JSON, but in this tutorial, we'll focus on an open-so
  152. Dictionaries vs Arrays in Python - Deep DiveIn this guide, we'll walk you through the differences between two of Python's most popular data structures - Dictionaries and Arrays. Each of these provide a specific way of arranging your data, with pros and cons for certain tasks and knowing when to use
  153. Working with Python's PyQT FrameworkIn 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 w
  154. Python: Get Last Element in ListIn this tutorial, we'll take a look at some of the most common ways to find the last element in a list in Python. First, we will cover the simplest and most Pythonic way and then show some other alternative solutions afterward. Let's take a look at the list that...
  155. Creating PDF Invoices in Python with borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be interacted wi
  156. Encode a String to UTF-8 in JavaWhen working with Strings in Java, we oftentimes need to encode them to a specific charset, such as UTF-8. UTF-8 represents a variable-width character encoding that uses between one and four eight-bit bytes to represent all valid Unicode code points. A code point can
  157. Python: Make Time Delay (Sleep) for Code ExecutionCode Delaying (also known as sleeping) is exactly what the name implies, the delaying of code execution for some amount of time. The most common need for code delaying is when we're waiting for some other process to finish, so that we can work with t
  158. How to Use the Rsync Command in UnixThe digital revolution has changed our lives in many ways. Nowadays, our picture albums, music collections, bookshelves etc. are all digital - binaries written on a disk. Our life and work are shared between a multitude of devices. Companies have development, stag
  159. Spring Boot and Flask Microservice Discovery with Netflix EurekaIn this guide, we'll be utilizing Netflix Eureka, a microservice discovery service to combine a Spring Boot microservice with a Flask microservice, bridging services written in totally different programming languages and frameworks. We'
  160. Creating a REST API in Python with DjangoDjango is a powerful Python Web Framework used to build secure, scalable web applications rapidly with fewer efforts. It became popular because of its low barrier to entry, and strong community that uses and develops the framework. In this guide, we are going
  161. Convert InputStream into a String in JavaThe InputStream class is a high-level class representing any input byte stream in Java. Various subclasses further specify its usage, such as the BufferedInputStream, ByteArrayInputStream, SequenceInputStream, etc. Needless to say, an InputStream can store an
  162. Creating a PDF Document in Python with borbThe Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engines. To achieve this, PDF was constructed to be interacted
  163. Guide to Understanding chmodFile access permissions and security are at the heart of *nix-based operating systems. File objects can belong to users and/or groups, and at times they need to be shared with various combinations of those two. There are multiple ways in *nix systems to reinforce secure s
  164. Guide to Using the Django MongoDB Engine with PythonIn this article, we will see how to use MongoDB, a non-relational database, with Django, a Python Web Framework. Django is commonly used with PostgreSQL, MariaDB or MySQL, all relational databases, due to its ORM under the hood. MongoDB, being quit
  165. Plotly Bar Plot - Tutorial and ExamplesPlotly is a JavaScript-based, Python data visualization library, focused on interactive and web-based visualizations. It has the simplicity of Seaborn, with a high-level API, but also the interactivity of Bokeh. In addition to the core library's functionality,
  166. How to Compare Dates in JavaDates are something we encounter in everyday life, whether they're used for calendars, scheduling appointments, or even remembering birthdays. Naturally, when working with dates we will often need to know if a certain date comes before or after another, or if they represe
  167. Convert JSON String to Java Map with JacksonIn this tutorial, we'll be taking a look at how to convert a JSON String into a Java Map using Jackson, an extremely popular data-binding library for Java. Specifically, we'll be working with this JSON object: { "Task 1" : "In_Progress"
  168. Java: Check if String is Null, Empty or BlankIn Java, there is a distinct difference between null, empty, and blank Strings. An empty string is a String object with an assigned value, but its length is equal to zero. A null string has no value at all. A blank String contains only whitespaces, are is
  169. How to Concatenate String Variables in BashBash utilities make so many tasks simple, but not all tasks have a straightforward command or operator. A very common and usual task in many scripting scenarios is concatenating string variables. Bash doesn't have a built-in function or command-line utility
  170. Radix Sort in PythonThe radix (or base) is the number of digits used to represent numbers in a positional numeral system. For the binary system, the radix is 2 (it uses only two digits - 0 and 1). For the decimal system, the radix is 10 (it uses ten digits to represent all...
  171. Java: Generate Random Integers in RangeIn this tutorial, we'll take a look at how to generate random integers in a specific range in Java. We'll be taking a look at several approaches, including core Java and third-party solutions: Random.ints() Random.nextInt() Math.random() SecureRandom.nextInt()
  172. Plotly Scatter Plot - Tutorial with ExamplesPlotly is a JavaScript-based, Python data visualization library, focused on interactive and web-based visualizations. It has the simplicity of Seaborn, with a high-level API, but also the interactivity of Bokeh. In addition to the core library's functional
  173. Graphs in Python: Minimum Spanning Trees - Borůvka's AlgorithmBorůvka's Algorithm is a greedy algorithm published by Otakar Borůvka, a Czech mathematician best known for his work in graph theory. Its most famous application helps us find the minimum spanning tree in a graph. A thing worth noting abo
  174. How to Filter a Map by Key or Value in JavaMap implementations in Java represent structures that map keys to values. A Map cannot contain duplicate keys and each can at most be mapped to one value. The Map<K,V> implementations are generic and accept any K (key) and V (value) to be mapped. The
  175. Working with Datetime in Python with ArrowArrow is a Python module for working with date and time. Given that there are several modules that do this, most notably the built-in datetime module, what makes Arrow different? Most notably, the library is inspired by Moment.js, a JavaScript library that o
  176. How to Split a String in JavaScriptJavaScript has a lot of useful built-in methods for string manipulation, one of these methods is the split() method. In this article we'll be taking a closer look at the split() method and how we can use it in conjunction with regular expressions to split a long st
  177. JavaScript: Check if String Starts with SubstringIn this tutorial, we'll take a look at how to check if a string starts with a substring in JavaScript. This is easily achieved either through the startsWith() method, or regular expressions. Check if String Starts with Another String with startsWith()
  178. Guide to Understanding Generics in JavaJava is a type-safe programming language. Type safety ensures a layer of validity and robustness in a programming language. It is a key part of Java's security to ensure that operations done on an object are only performed if the type of the object supports it.
  179. Matplotlib Scatter Plot with Distribution Plots (Joint Plot) - Tutorial and ExamplesThere are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility - it's able to create both simple an
  180. Matplotlib Pie Chart - Tutorial and ExamplesThere are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility - it's able to create both simple and complex plots with little code. You ca
  181. Matplotlib: Plot Multiple Line Plots On Same and Different ScalesMatplotlib is one of the most widely used data visualization libraries in Python. From simple to complex visualizations, it's the go-to library for most. In this tutorial, we'll take a look at how to plot multiple line plots in Matplot
  182. Matplotlib Stack Plot - Tutorial and ExamplesThere are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility - it's able to create both simple and complex plots with little code. You c
  183. JavaScript: Get Number of Days Between DatesWe oftentimes find ourselves counting the number of days from and to a date. Be it calculating when someone's due to return a book, when a subscription should be renewed, how many days have passed since a notification or when a new event is coming up. In t
  184. How to Split an Array into Even Chunks in JavaScriptArrays are one the most used structures in JavaScript programming, which is why it's important to know its built-in methods like the back of your pocket. In this tutorial, we'll take a look at how to split an array into chunks of n size in JavaScri
  185. Merge Properties of Two Objects Dynamically in JavaScriptIn JavaScript, an object is defined as a collection of key-value pairs. An object is also a non-primitive data type. You'll oftentimes need to combine objects into a single one which contains all the individual properties of its constituent pa
  186. Parse Datetime Strings with parsedatetime in PythonIn 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
  187. Reading and Writing CSV Files in Kotlin with Apache CommonsIn 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 with an external library, let's go ahead and import it into our Kotlin pro
  188. How to Print Colored Text in PythonIt's typical for CLI apps to return text in the same color of the terminal. There are always cases when we want to highlight output to the user, for example, a warning or error message. In those cases, a dash of color could make a difference. This article shows you
  189. Matplotlib: Draw Vertical Lines on PlotMatplotlib is one of the most widely used data visualization libraries in Python. Much of Matplotlib's popularity comes from its customization options - you can tweak just about any element from its hierarchy of objects. In this tutorial, we'll take a look at h
  190. Validating and Formatting Phone Numbers in Python with phonenumbersValidating phone numbers can be a very challenging task. The format of a phone number can vary from one country to another. Heck, it can also vary within the same country! Some countries share the same country code, while some other
  191. Java 8 – How to Sort List with Stream.sorted()A stream represents a sequence of elements and supports different kind of operations that lead to the desired result. The source of these elements is usually a Collection or an Array, from which data is provided to the stream. Streams differ from collect
  192. Guide to K-Means Clustering with JavaK-Means is one of the simplest and most popular clustering algorithms in data science. It divides data based on its proximity to one of the K so-called centroids - data points that are the mean of all of the observations in the cluster. An observation is a single
  193. How to Convert DOCX To Html With Python MammothAt some point in your software development path, you'll have to convert files from one format to another. DOCX (used by Microsoft Word) is a pretty common file format for a lot of people to use. And sometimes, we'd like to convert Word Documents into HT
  194. Guide to JPA with Hibernate - Inheritance MappingIn this article, we'll dive into Inheritance Mapping with JPA and Hibernate in Java. The Java Persistence API (JPA) is the persistence standard of the Java ecosystem. It allows us to map our domain model directly to the database structure and then giv
  195. How to Split a List into Even Chunks in PythonSplitting strings and lists are common programming activities in Python and other languages. Sometimes we have to split our data in peculiar ways, but more commonly - into even chunks. The language does not have a built-in function to do this and in this
  196. Python: How to Print without Newline or SpaceThe print() function in Python appends a newline to the output when displayed on the tty (teletypewriter A.K.A the terminal). When you don't want your message displayed with newlines or with spaces, how can you change the behavior of print()? This can eas
  197. How to Access Property File Values in Spring BootApplication properties may vary in different environments like how the hosts on your QA environment may vary from your local and production environments. Using Spring Boot, different environments can be configured and updated separately without affect
  198. How to Sort a Pandas DataFrame by DatePandas is an extremely popular data manipulation and analysis library. It's the go-to tool for loading in and analyzing datasets for many. Correctly sorting data is a crucial element of many tasks regarding data analysis. In this tutorial, we'll take a look at h
  199. Python: Check if Array/List Contains Element/ValueIn this tutorial, we'll take a look at how to check if a list contains an element or value in Python. We'll use a list of strings, containing a few animals: animals = ['Dog', 'Cat', 'Bird', 'Fish'] Check if Lis
  200. How to Format Number as Currency String in JavaScriptHaving to manually format a number as a currency string can be a tedious process. Even though this can oftentimes be done in a few lines of code, it's good practice to follow a standardized norm rather than hardcode it yourself, plus it's way easi
  201. Seaborn Line Plot - Tutorial and ExamplesSeaborn is one of the most widely used data visualization libraries in Python, as an extension to Matplotlib. It offers a simple, intuitive, yet highly customizable API for data visualization. In this tutorial, we'll take a look at how to plot a Line Plot in
  202. Python: Check if Variable is a StringPython is a dynamically typed language, and the variable data types are inferred without explicit intervention by the developer. If we had code that requires a string to work correctly but lacked type hints, which are optional, how can we avoid errors if the vari
  203. Python: Check if Variable is a ListPython is a dynamically typed language, and the variable data types are inferred without explicit intervention by the developer. If we had code that needed a list but lacked type hints, which are optional, how can we avoid errors if the variable used is not a list?
  204. How to Convert JSON Object to Java Object with JacksonIn this tutorial, we'll be taking a look at how to convert a JSON object into a Java Object using Jackson, an extremely popular data-binding library for Java. Specifically, we'll be working with this JSON object: { "name":"David&qu
  205. How to Sort a HashMap by Key in JavaIn this tutorial, we'll take a look at how to sort a HashMap by key in Java. Let's go ahead and create a simple HashMap: Map<String, Integer> unsortedMap = new HashMap(); unsortedMap.put("John", 21); unsortedMap.put("Maria", 34); unsorted
  206. How to Sort a HashMap by Value in JavaIn this tutorial, we'll take a look at how to sort a HashMap by value in Java. Let's go ahead and create a simple HashMap: Map<String, Integer> unsortedMap = new HashMap(); unsortedMap.put("John", 21); unsortedMap.put("Maria", 34); unso
  207. Reading and Writing JSON in Kotlin with JacksonIn this article we'll be taking a look at how to read and write JSON files in Kotlin, specifically, using the Jackson library. To utilize Jackson, we'll want to add its jackson-module-kotlin dependency to our project. If you're using Maven, you can simp
  208. Guide to Flask-MongoEngine in PythonBuilding a web app almost always means dealing with data from a database. There are various databases to choose from, depending on your preference. In this guide, we shall be taking a look at how to integrate one of the most popular NoSQL databases - MongoDB - wit
  209. Reading and Writing YAML Files in Java with SnakeYAMLYAML stands for YAML Ain't Markup Language, it is a data-serialization language most commonly used for specifying project configuration details. The main motivation behind YAML is that it is designed to be in a format which is humanly friendly. Wi
  210. Get Total Size of a Directory in LinuxIn Linux, ls -l would list the files and directories in a particular path, with their names, dates, and sizes (disk usage). The first thing you'll notice using that command is that the size of directories is always shown as 4096 bytes (or 4,0K if you're using ls
  211. Graphs in Java - A* AlgorithmA* is a heuristic path searching graph algorithm. This means that given a weighted graph, it outputs the shortest path between two given nodes. The algorithm is guaranteed to terminate for finite graphs with non-negative edge weights. Additionally, if you manage to ensur
  212. Python: Check if Variable is a DictionaryVariables act as a container to store data. A developer can use type hints when creating variables or passing arguments, however, that's an optional feature in Python, and many codebases, old and new, are yet to have them. It's more common for a variable in P
  213. Python: Get Number of Days Between DatesIn this tutorial, we'll take a look at how to get the number of days between two dates in Python. We'll be using the built-in datetime package, that allows you to really easily work with datetime objects in Python. Creating a Datetime Object As datetime is a b
  214. Python: How to Remove a Key from a DictionaryIn this article, we'll take a look at how to remove keys from Python dictionaries. This can be done with the pop() function, the del keyword, and with dict comprehensions. Remove a Key Using pop(key,d) The pop(key, d) function removes a key from a diction
  215. Python: How to Add Keys to a DictionaryA dictionary in Python is a collection of items that store data as key-value pairs. We can access and manipulate dictionary items based on their key. Dictionaries are mutable and allow us to add new items to them. The quickest way to add a single item to a dict
  216. Spring Boot Thymeleaf Form Data Validation with Bean ValidatorForm Data Validation is a very common, and rudimentary step in building any web application with user input. We want to make sure that certain ranges are respected, and that certain formats are followed. For example, we'll want to make su
  217. How to Print an Array in JavaPrinting an array is a quick way to give us visibility on the values of the contents inside. Sometimes the array values are the desired output of the program. In this article, we'll take a look at how to print an array in Java using four different ways. While the...
  218. Compare Two Dates in JavaScriptDates are a really common data type developers work with. From timestamps of certain actions, to reports, sign up features and limited-time access in systems that require subscriptions - we oftentimes have to compare dates. That is, we compare if a date is after or bef
  219. Covariance and Correlation in PythonWorking with variables in data analysis always drives the question: How are the variables dependent, linked, and varying against each other? Covariance and Correlation measures aid in establishing this. Covariance brings about the variation across variables. We us
  220. Python: Get Size of DictionaryIn this article, we'll take a look at how to find the size of a dictionary in Python. Dictionary size can mean its length, or space it occupies in memory. To find the number of elements stored in a dictionary we can use the len() function. To find the size...
  221. Form Data Validation in Node.js with express-validatorIt is imperative to carry out server-side validation when building applications - especially client-facing applications. The reason being, one can never rely on the user’s input alone; as these inputs sometimes contain bogus/malicious data. Clien
  222. How to Rename Pandas DataFrame Column in PythonPandas is a Python library for data analysis and manipulation. Almost all operations in pandas revolve around DataFrames. A Dataframe is is an abstract representation of a two-dimensional table which can contain all sorts of data. They also enable us gi
  223. Python: How to Handle Missing Data in Pandas DataFramePandas is a Python library for data analysis and manipulation. Almost all operations in pandas revolve around DataFrames, an abstract data structure tailor-made for handling a metric ton of data. In the aforementioned metric ton of data, some of
  224. How to Format Number as Currency String in PythonHaving to manually format a number as a currency string can be a tedious process. You may have just a few lines of modifications to make, however, when we need to do a fair bit of conversions, it becomes very tedious. The first step to automating thes
  225. Logging in Spring Boot with SLF4JServer logs are an important part of development that record the activities or events that the system is performing at any given point in time. Spring Boot makes use of Apache Commons' Logging for its system logs by default. Additionally, by default you can use any o
  226. Client-Side Form Validation Using Vanilla JavaScriptMost web applications nowadays will require you to fill out a form at some point, be it an online banking application or a music streaming service. And because end users are never to be trusted, we need to fool-proof our application so that it dete
  227. Integrating MongoDB with Flask Using Flask-PyMongoBuilding a web app almost always means dealing with data from a database. There are various databases to choose from, depending on your preference. In this article, we shall be taking a look at how to integrate one of the most popular NoSQL databases
  228. Matplotlib Box Plot - Tutorial and ExamplesThere are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility - it's able to create both simple and complex plots with little code. You can
  229. How to Schedule a Job with JenkinsScheduling a job in Jenkins is very useful when it comes to developing a great product. Imagine what a great advantage it is to transform a time-consuming task into an automated job. It doesn't need any supervision and as long as there are no errors in the workflow,
  230. Seaborn Boxplot - Tutorial and ExamplesSeaborn is one of the most widely used data visualization libraries in Python, as an extension to Matplotlib. It offers a simple, intuitive, yet highly customizable API for data visualization. In this tutorial, we'll take a look at how to plot a boxplot in Seab
  231. How to Iterate Over a Dictionary in PythonDictionaries are one of the most used data structures in all of software development, and for a good reason. They allow us to store our data in neat key, value pairs, which in turn gives us the ability to, on average, access our data in O(1) time. While usin

2015 3

  1. Terms of service
  2. Privacy
  3. Disclosure

Undated 1

  1. Explore the Toolbox