I was learning about WebSockets today for a college project and decided to build a chat webapp as defined in the homework section of Socket.io's getting started guide.
The result of modulo operator (%) varies between programming languages especially when one of the operand is negative.
While working on an Android app, I had some issues with the SQLite database and wanted to delete it. This db is stored in the app's internal data directory (/data/data/com.cshubh.myapp), which is inaccessible using file managers on the device.
TIL that some companies allow typo tolerance in passwords. Instead of simply rejecting a login attempt with small mistakes, they accept some common typos like an accidental uppercase or an extra character.
TIL that those flat servers used in data centers are called pizza box servers. I came across this term while reading Computer Networking: A Top-Down Approach 8th Edition.
I was building contact page for this site where I've put up my email. How do I deal with bots harvesting plaintext emails from websites and sending spam?
TIL that browsers store all the bookmarks in a single JSON file.
TIL that LinkedList overrides equals and hashCode, but ArrayDeque doesn't!