Notes

Python

Security notes, SOC lab write-ups and tested code by Mahir Faysal, a SOC Level 1 cybersecurity learner in Bangladesh, plus notes from my Next.js and Gemini projects. Sample posts are marked and drafts stay in the admin area.

UK Phone Number Regex for JavaScript and Python (Tested)
Coding tips

UK Phone Number Regex for JavaScript and Python (Tested)

Strip spaces, turn +44 into 0, then check for 07 plus nine digits. Tested JavaScript and Python code for every UK number type, E.164 storage, display spacing and libphonenumber.

October 6, 2026 · 19 min read · 111 views

Python Remove Duplicates From List (and Keep the Order)
Coding tips

Python Remove Duplicates From List (and Keep the Order)

list(dict.fromkeys(items)) removes duplicates and keeps the original order; set() is fast but scrambles it. Lists of dicts, case-insensitive matching, pandas and speed tests.

October 6, 2026 · 19 min read · 44 views

How to Read a CSV File in Python Without Pandas
Coding tips

How to Read a CSV File in Python Without Pandas

Read CSV files in Python with only the built-in csv module: csv.reader, DictReader, numbers and blank cells, Excel's BOM, semicolons and writing a CSV.

October 4, 2026 · 8 min read · 118 views

Python List Comprehension Examples Explained
Coding tips

Python List Comprehension Examples Explained

Python list comprehension examples I actually use: basic syntax, filtering with if, if/else, nested loops, dict and set comprehensions, and common mistakes.

October 2, 2026 · 10 min read · 184 views

0%