We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: 4

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

Order of Executions Of Commands

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: 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

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

Cart

Your Cart is Empty

Back To Shop