Notes

Coding tips

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.

Best JPEG Quality Setting for Web, Email and Print (We Tested 40 to 100)
Coding tips

Best JPEG Quality Setting for Web, Email and Print (We Tested 40 to 100)

For most web photos, a JPEG quality setting between 75 and 85 gives the best balance of sharpness and file size. Use 85 to 90 for portfolio images and prints you'll edit later, and avoid 100, which creates much larger files with almost no visible improvement.

October 18, 2026 · 10 min read · 21 views

How to Find the BPM of a Song: Tap, Count or Use Software
Coding tips

How to Find the BPM of a Song: Tap, Count or Use Software

The quickest way to find the BPM of a song is to tap along to the beat for 10 to 20 seconds on a tap-tempo tool, which averages the gaps between your taps. Without any tool, count the beats for 15 seconds and multiply by four.

October 18, 2026 · 10 min read · 21 views

Python Pathlib Tutorial: Path, Glob, Read and Write
Coding tips

Python Pathlib Tutorial: Path, Glob, Read and Write

Python's pathlib module gives you object-oriented filesystem paths: join them with the / operator, read and write text with read_text and write_text, create directories with mkdir, and find files with glob and rglob.

October 18, 2026 · 12 min read · 20 views

0%