Tag: Handling
C++11 Multithreading – Part 6: Need of Event Handling
In this article we will discuss the need of Event Handling in Multi-threading. Sometimes a thread needs to wait for an event to happen like a condition to become true or a task to be completed by another thread. Advertisements For example, Suppose we are building a network based application. This application does following tasks, …
C++11 Multithreading – Part 6: Need of Event HandlingRead More
Handling Out Of Memory Errors in Code
In this article we will discuss how to Handle Out of Memory errors in a C++ Application. Each process has a limited free storage or heap associated with it for dynamic memory allocation. If application consumes all the memory from heap then process will crash with out of memory error. Advertisements Check out following example, …
Designing Event Handling Framework using Command Design Pattern
In this article we will learn Command Design Pattern by Designing an Event Handling Framework. Intent of Command Design Pattern Encapsulate a request as an object, thereby letting you parametrize clients with different requests, queue or log requests, and support undo able operations.[GoF] Advertisements What a heavy Intent 🙂 Lets learn step by step, Frequently …
Designing Event Handling Framework using Command Design PatternRead More
What is an Exception and How to do Exception Handling in Java
In this article we will discuss what is an exception in Java and how to handle exception in Java. What is an exception in Java An error occurred at runtime in a Java Application is called an Exception. If a triggered Exception is not handled then it will cause the application to crash. Checkout following …
What is an Exception and How to do Exception Handling in JavaRead More
Pandas Tutorial #12 – Handling Missing Data
This tutorial will discuss different ways to handle missing data or NaN values in a Pandas DataFrame, like deleting rows/columns with any NaN value or replacing NaN values with other elements. Table of Contents Drop Missing Values from the DataFrame Drop rows with one or more NaN / Missing values Drop columns with one or …
File Handling in Python
S.NO Python – File handling Tutorials 10.1 How to read a file line by line in Python? 10.2 How to check if a file is empty in Python? 10.3 How to search for strings in a file in Python? 10.4 How to remove a file if exists in Python? 10.5 How to read CSV file …