Cybersecurity for Beginners: A Complete Guide to Staying Safe Online
A beginner-friendly guide to cybersecurity, online threats, password safety, phishing prevention, and protecting your personal information.
Notes
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.
A complete JSON REST API in plain PHP 8.4: front controller, router, PDO and SQLite, validation with 422 errors, Bearer token auth and CORS. Every request tested, with real responses.
Read note
A beginner-friendly guide to cybersecurity, online threats, password safety, phishing prevention, and protecting your personal information.
append() adds one item to the end of a Python list, extend() adds every item from an iterable, and insert() adds one item at a position. Here is a tested comparison in Python 3.13: strings, negative indexes, + vs +=, the None return value, nested lists and speed.
git switch only changes branches, while git checkout changes branches and also restores files. Here is a tested comparison in Git 2.47.3: the equivalent commands, creating branches, remote tracking, detached HEAD, typo errors, local changes and orphan branches.
JavaScript throws ReferenceError: x is not defined when it cannot find a variable with that name in any scope. Here are 10 tested causes in Node.js 24 and Chrome, from typos, block scope and the temporal dead zone to require, __dirname and window in ES modules and Node.
Python raises AttributeError: 'NoneType' object has no attribute when a variable you expected to hold an object holds None instead. Here are 10 real causes, from list.sort() and functions without return to re.match and dict.get, with tested output and the fix for each.
for...in loops over the keys of an object, for...of loops over the values of an array or other iterable, and forEach calls a function for each array item. Here is how they differ with break, async/await, objects, Maps and sparse arrays, with real Node output and a speed test.
0%