Standard Notes v/s Day One
Summary:✅Day One: all the note-taking features of SN; offers social media integration; and, offers some features not available on SN.Standard Notes: has all the note-taking features of D1; has some features not available on D1; but, is way better for privacy.❌Day One: lacks in Privacy and Security compared to SN.Standard Notes: all the same note-taking features but lacks some UI features and social media integration option offered by Day One. Legend: ❌ feature unavailable  ☠  ✅ Feature Available...
Read post
Books: Notes From PowerSexSuicide By Nick Lane
Mitochondria and Egg Cells: Why (mostly) uniparental inheritence?The Mitochondria in a cell is almost always, but not always, inherited from the mother to eliminate the cytoplasmic competition between two different cytoplasmic components (from different gametes).Mitochondrial DNA gets recombined, when needed, with the damaged genes getting replaced with copies from other chromosomes.Yeasts, Rats, and Bats can recombine mitchondrial DNAThere's a recorded case of a human having heart cells contain...
Read post
Java: Serialization
Notes and FormatWhat: Convert an object into a stream of bytes by storing the state of the object.What gets stored in the byte stream:The member variables/fieldsfunction signature (but NOT the function's code) impacts the bytes created for the objectHow: "The default serialization mechanism for an object writes the class of the object, the class signature, and the values of all non-transient and non-static fields. References to other objects (except in transient or static fields) cause those...
Read post
Java: Volatile and Synchronized
Gist: a volatile variable isn't enough synchronization.In Java, a "volatile" field is often presented as a weaker form of synchronization: a field that's specifically indicated to the compiler and runtime as "not-to-be-reordered", which, consequently, doesn't get cached; it is guaranteed to return the most recent write on the field to any threads accessing that field.Because "most recent write" doesn't always imply "every write", using volatile as a form of synchronization could become problemat...
Read post