Tagged articles
replace
12 articles · Page 1 of 1
This tutorial explains Python's str.replace method—including its three parameters and usage examples—and demonstrates common boolean string checks such as isupper, islower, isdigit, istitle, and isalpha with concrete code snippets and their outputs.
PythonStringTutorial
0 likes · 4 min read

This article explains the PHP str_replace function, its syntax, and demonstrates simple replacement, multiple replacements, and character deletion through clear code examples, helping developers efficiently manipulate strings in backend applications.
Stringphp-functionsreplace
0 likes · 5 min read

This article explains the differences between replace and replaceAll, how Integer caching affects equality checks, why constructing BigDecimal with double can cause precision loss, the nuances of string concatenation, the distinction between isEmpty and isBlank, when to check for null in MyBatis mapper results, and the correct way to use indexOf in Java.
IntegerSpring BootString
0 likes · 13 min read

This article explains the PHP str_replace function, its syntax, and demonstrates three practical examples—simple replacement, multiple replacements using an array, and character deletion—showing how to efficiently manipulate strings in backend development.
Code ExamplePHPreplace
0 likes · 3 min read

This article walks through six different Pandas techniques for converting numeric codes (1‑4) into descriptive strings such as "happy" or "sad", providing clear code examples, visual results, and practical tips for efficient batch replacement in dataframes.
mapreplacevalue replacement
0 likes · 5 min read

This article walks through six different Pandas techniques—including map, apply, replace, and dictionary mapping—to batch‑replace numeric codes (1‑4) with descriptive Chinese strings such as “开心” and “悲伤”, providing clear code snippets and visual results for each method.
applymapreplace
0 likes · 5 min read

This article examines how INSERT, REPLACE and INSERT … ON DUPLICATE KEY UPDATE statements can cause deadlocks in MySQL InnoDB under various scenarios, explains the underlying lock types such as GAP, NEXT‑KEY and INSERT‑INTENTION locks, and offers practical recommendations to avoid them.
INSERTInnoDBLock
0 likes · 16 min read


ITPUBDec 24, 2022 · Databases
This guide walks you through 13 practical MySQL techniques—from aggregating values with GROUP_CONCAT and measuring string length with CHAR_LENGTH, to locating substrings, replacing text, retrieving timestamps, bulk inserting data, handling duplicate keys, inspecting table structures, and using diagnostic commands like EXPLAIN and SHOW PROCESSLIST—complete with ready‑to‑run SQL examples and visual results.
EXPLAINGROUP_CONCATINSERT
0 likes · 13 min read

This article walks through six practical Pandas techniques—using map, apply, replace, and dictionary look‑ups—to batch‑replace numeric codes with descriptive strings, complete with code snippets and visual results for each method.
PandasPythonapply
0 likes · 5 min read

This article walks through frequent Java string‑related mistakes—including misuse of replace vs replaceAll, Integer equality pitfalls, BigDecimal precision issues, StringBuilder versus String, isEmpty vs isBlank, MyBatis mapper null checks, and indexOf logic—providing clear explanations, code examples, and best‑practice recommendations.
MyBatisStringStringBuilder
0 likes · 13 min read

This article explains the various Java string methods for removing leading and trailing whitespace—including trim, strip, stripLeading, stripTrailing, replace, replaceAll, and replaceFirst—showing their differences, Unicode handling, and practical code examples.
JavaStringTRIM
0 likes · 8 min read

This article explains the four frequently used MySQL data‑insertion statements—INSERT, INSERT SELECT, REPLACE INTO, and INSERT … ON DUPLICATE KEY UPDATE—detailing their syntax, options, behavior, and performance considerations for reliable database operations.
INSERTMySQLON DUPLICATE KEY UPDATE
0 likes · 7 min read
