Bruno Cassol

notes from a software engineer

Books

2024-05-01

Books I've learned from and recommend. Most were listened to in audiobook form while doing dishes or working out at the gym. I might write notes about each here, eventually.

Books I've read

  • The Subtle Art of Not Giving a Fuck (Mark Manson)
  • How to Make Friends and Influence People (Dale Carnegie)
  • 48 Laws of Power (Robert Greene)
  • Why Men Want Sex & Women Need Love (Allan Pease & Barbara Pease)
  • The 4-Hour Workweek (Timothy Ferriss)
  • Influence: The Psychology of Persuasion (Robert B. Cialdini)
  • Outwitting the Devil (Napoleon Hill)
  • Think and Grow Rich (Napoleon Hill)
  • Rich Dad Poor Dad (Robert T. Kiyosaki and Sharon Lechter)
  • The Like Switch: An Ex-FBI Agent's Guide to Influencing, Attracting, and Winning People Over (The Like Switch Series Book 1) (Jack Schafer & Marvin Karlins)
  • The Meditations of the Emperor Marcus Aurelius Antoninus (Marcus Aurelius)
  • Letters from a Stoic: Epistulae Morales Ad Lucilium (Lucius Annaeus Seneca)
  • Market Wizards: Interviews with Top Traders (Jack D. Schwager)
  • The New Market Wizards: Conversations with America's Top Traders (Jack D. Schwager)
  • Unknown Market Wizards: The Best Traders You've Never Heard Of (Jack D. Schwager)
  • Hedge Fund Market Wizards (Jack D. Schwager)
  • Getting Real (Basecamp)
  • The Art of War (Sun Tzu)

Want to read next

Debugging slow MySQL and MariaDB SQL queries

2023-02-07

Execute this on the database server to start logging all queries that take longer than 5 seconds to run:

SET GLOBAL log_output='TABLE';
SET GLOBAL slow_query_log=1;
SET GLOBAL long_query_time=5.0;

Wait a bit and take a look at slow_log table in mysql database. Any slow queries will end up there:

Slow query log example
Slow query log example (click to open image in new tab)

To turn off query log in case you will execute some heavy queries manually, execute this:

SET GLOBAL slow_query_log=0;

To disable slow query log for a single connection, execute this:

SET SESSION slow_query_log=0;

More info about Slow Query Log on https://mariadb.com/kb/en/slow-query-log-overview