Tag: 4
How To Lose Belly Fat in 4 Weeks And Keep It Forever
General Health Blog How To Lose Belly Fat in 4 Weeks And Keep It Forever weight loss Ways To Lose Belly Fat and Keep it Forever This is the most effective tip to lose belly fat in a month. Let’s start with the basics. What is fat? You may be surprised to find out that …
How To Lose Belly Fat in 4 Weeks And Keep It ForeverRead More
C++11 Smart Pointer – Part 4: Create shared_ptr objects carefully
We should create shared_ptr objects carefully. Checkout below two cases, [showads ad=inside_post] Advertisements 1.) Try not to use same raw pointer for creating more than one shared_ptr object because in that case different shared_ptr objects will not get to know that they are sharing the pointer with any other shared_ptr objects. How this can create …
C++11 Smart Pointer – Part 4: Create shared_ptr objects carefullyRead More
C++11 Multithreading – Part 4: Data Sharing and Race Conditions
In multithreading environment data sharing between threads is very easy. But this easy sharing of data can cause problems in application. One such problem is Race Condition. What is a Race Condition? Race condition is a kind of a bug that occurs in multithreaded applications. Advertisements When two or more threads perform a set of …
C++11 Multithreading – Part 4: Data Sharing and Race ConditionsRead More
Python: Print items of a dictionary line by line (4 Ways)
In this article, we will discuss different ways to print line by line the contents of a dictionary or a nested dictionary in python. Subscribe Table Of Contents Print a dictionary line by line using for loop & dict.items() Print a dictionary line by line by iterating over keys Print a dictionary line by line …
Python: Print items of a dictionary line by line (4 Ways)Read More
Python: Remove characters from string by regex & 4 other ways
In this article we will discuss different ways to delete single or multiple characters from string in python either by using regex() or translate() or replace() or join() or filter(). Remove characters from string using regex Python’s regex module provides a function sub() i.e. Advertisements re.sub(pattern, repl, string, count=0, flags=0) It returns a new string. …
Python: Remove characters from string by regex & 4 other waysRead More
R: Find the index of an element in the vector ( 4 ways )
Often, we have a requirement to find out the index of the first occurrence of an element in the vector so that some operations can be performed on the same. There are many ways to do the same in R; we will go through a few of them. Let us take a simple example where …
R: Find the index of an element in the vector ( 4 ways )Read More
C++: Convert vector to array (4 Ways)
In this article we will discuss different ways to convert a vector into an array in C++. Convert a vector into an array by copying items one by one Suppose we have a vector of N integers and we want to create an array from it. For that first we need to create a n …
Javascript: Replace all occurrences of string (4 ways)
This article talks about how to replace all occurrences of a string in javascript using different methods and various examples. Table of Contents:- Replace all occurrences of string case insensitive in javascript using replace() Replace all occurrences of string case insensitive in javascript using replaceAll() Replace all occurrences of string in javascript using split and …
Javascript: Replace all occurrences of string (4 ways)Read More
Javascript: String replace all spaces with underscores (4 ways)
This article discusses replacing all spaces in a javascript string with underscore using different methods and illustrations. Table of Contents:- Javascript string replace all spaces with underscores using replace() method ‘Javascript string replace all spaces with underscores using replaceAll() method Javascript string replace all spaces with underscores using split and join Javascript string replace all …
Javascript: String replace all spaces with underscores (4 ways)Read More
Javascript: Replace all occurrences of a character in string (4 ways)
This article talks about how to replace all occurrences of a character in a javascript string using different methods and illustration through examples. Table of Contents:- Javascript replace all occurrences of a character in string using replace() Javascript replace all occurrences of a character in string using replaceAll() Javascript replace all occurrences of a character …
Javascript: Replace all occurrences of a character in string (4 ways)Read More