Books

Here are the books that I have taken the time to create metadata and/or notes for.

You walked past the rendered SVG on your way here.

Elements of Programming Interviews (in Java)

chapter 4: primitive types

theory
public static short countBits(int x) {
            short numBits = 0;
            while (x != 0) {
                    numBits += (x & 1);
                    x >>>= 1;
            }
            return numBits;
}
public static void main(String[] args) {
        System.out.println(countBits(15));
}
public static void main(String[] args) {
    System.out.println(6&4);
    System.out.println(1|2);
    System.out.println(8>>1);
    System.out.println(-16>>>2);
    System.out.println(1<<10);
    System.out.println(~0);
}
public static void main(String[] args) {
    System.out.println(Integer.MIN_VALUE);
    System.out.println(Float.MAX_VALUE);
    System.out.println(Double.SIZE);
    System.out.println(Boolean.TRUE);
}
public static void main(String[] args) {
    System.out.println(Double.valueOf("1.23"));
    System.out.println(Boolean.valueOf(true));
    System.out.println(Integer.parseInt("42"));
    System.out.println(Float.toString(-1.23F));
}
import static java.lang.Math.*;
public static void main(String[] args) {
    System.out.println(abs(-34.5));
    System.out.println(ceil(2.17));
    System.out.println(floor(-34.5));
    System.out.println(min(-3,4.5));
    System.out.println(max(-3,4.5));
    System.out.println(pow(2.71,3.14));
    System.out.println(sqrt(225));
}
public static void main(String[] args) {
    char x = '6';
    System.out.println(Character.getNumericValue(x));
    System.out.println(x - '0');
    System.out.println(String.valueOf(123));
}

TODO: random methods nextInt, nextBoolean

Read more >

Holy Bible

These are my notes on the Holy Bible. Much of the initial platforming was done by an LLM, but over the years this document will continue to develop.

Read more >

Plato’s Dialogues

Plato was born in 428 BC (or 427 BC).

Read more >

The Divine Comedy

Dante, lost in a dark wood at midlife, is led by the poet Virgil and then by Beatrice through Inferno, Purgatorio and Paradiso, tracing the soul’s journey from sin to beatitude.

Inferno

Dante meets Virgil at the edge of Hell and passes the gate:

Lasciate ogne speranza, voi ch’ intrate.

They descend the nine circles, seeing sin in its fixed, final form.

  • The lustful (e.g. Francesca da Rimini) swept forever by storm.
  • The gluttonous, misers and wasters, trapped in grotesque parodies of their desires.
  • The wrathful choking in the Styx.
  • The heretics (like Farinata) in burning tombs.
  • The violent in boiling blood or transformed into thorny trees.
  • The fraudulent (e.g. Ulysses, flatterers, hypocrites, thieves) punished with fitting counter-images of their deceit.
  • Traitors such as Count Ugolino gnawing the skull of his betrayer.

At the frozen pit, Lucifer is locked in ice, chewing the worst traitors. Dante and Virgil climb past Satan’s body and emerge under the stars:

Read more >

The Iliad

The poem recounts a few weeks in the tenth year of the Trojan War, focusing on the wrath of Achilles and the cost of honor, glory, and mortality for Greeks and Trojans alike. It does not narrate the whole war or the fall of Troy, but ends with the funeral of Hector.

Read more >

Zen and the Art of Motorcycle Maintenance

The radio was a clue. You can’t really think hard about what you’re doing and listen to the radio at the same time.

Pro Git

A revisitation of a good book.

Read more >

1984

Emma

Linux Pocket Guide

A good introductory book to scout all the linux command-line features. Some pretty modern stuff in here too.

ch1: essential concepts ch2: file commands ch3: system administration basics ch4: filesystem maintainence ch5: networking commands ch6: getting stuff done

this page pairs well with Linux Commands

commands
wc
cat
od
ls
grep
mplayer
df
git
svn
split
column
pandoc
ffmpeg
pandoc
snap
flatpak
mdadm
lvcreate
zfs
gpg
echo
curl
tar

Seven Brief Lessons on Physics

Lesson 1: General Relativity

This and the next chapter are mutually exclusive. i.e. General Relativity and Quantum Mechanics cannot co-exist simultaneously.

Differential Geometry

Lesson 2: Quantum Mechanics

Differential Geometry or here.

Lesson 3: The Cosmos

Lesson 4: Quarks

Lesson 5: Loop Quantum Something

Lesson 6:

Heat, probability and black holes.

Things that obviously do tie together.

Lesson 7: Psychology; The Self.

Interestingly, the first Delphic Maxim at Apollo was meden agan, which is related to the importance of this notion of the self.

Read more >

The Da Vinci Code

This was the first serious fiction book that I ever read. It was 604 pages long, and a major struggle for me to persist through1. I effortfully adorned the pages with coloured tags all throughout. There was a vague scheme but the yellow represented words I did not know the definitions of at the time. The words and their definitions are now tabulated:


  1. I drew upon my uncle’s completion of the novel for persistence. ↩︎

    Read more >

Think and Grow Rich

Not every book deserves / warrants the extraction of 300 quotes with analysis.

Instead some books are those layered in rhetoric to deliver the 10, or in this case 13 most important facts:

We

however, if I link to Structural which is within design patterns, I think I might have less success.

Mathematics for Machine Learning

credit for these solutions goes to: https://github.com/ilmoi/MML-Book

Read more >

The Odyssey

The poem follows Odysseus, king of Ithaca, struggling to return home after the Trojan War, and the parallel coming-of-age of his son Telemachus. It moves between gods, monsters, and human households, exploring cunning, hospitality, loyalty, and the fragility of order.

Read more >

Introductory Real Analysis

Set Theory

Sets and Functions
Problem
Prove that if \(A\cup B = A\) and \(A \cap B = A\), then \(A = B\).
Solution
To show \(A=B\), show \(A\subseteq B\) and \(B\subseteq A\). Suppose \(x\in B\), then we know by definition that \(x\in (A\cup B)\) if \(x\in B\) or \(x\in A\). Which then implies that \(x\in A\) from rule 1. Thus \(B\subseteq A\). Now suppose \(x\in A\) which implies \(x\in (A\cap B)\) (rule 2). The definition of this means that \(x\in A\) and \(x\in B\). \(\therefore x\in A \implies x\in B\), i.e. \(A\subseteq B\), so \(A=B\).
Problem
Show that in general \((A-B)\cup B \neq A\).
Solution
This only holds for \(B\subseteq A\). We proceed by counterexample. Let \(A={1,2}, B={3,4}\). Then \((A-B) = {1,2}\) and \((A-B)\cup B = {1,2,3,4} \neq {1,2}\).
Problem
Let \(A = {2,4,…,2n,…}\) and \(B = {3,6,…,3n,…}\). Find \(A\cap B\) and \(A-B\)
Solution
\[ A\cap B = {6n \mid n\in \mathbb{N}} \] \[ A - B = {2n \mid n\in \mathbb{N}, 2n \not\in {6m \mid m\in \mathbb{N}}} \]
Problem
Prove that:
()
\((A-B)\cap C = (A\cap C) - (B\cap C)\)
Solution:

Let \(x\in (A-B)\cap C\). Then:

Read more >