Naval's recommended reading ("Read what you love till you love to read"): https://www.navalmanack.com/navals-recommended-reading
Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Saturday, January 11, 2025
The Navalmanack - Your Most Precious Resource
Naval's recommended reading ("Read what you love till you love to read"): https://www.navalmanack.com/navals-recommended-reading
Wednesday, January 08, 2025
How You Can Squeeze Notebook LM
It claims to be happy with a URL. Try it and you find it doesn't do much - in fact, nothing at all..
So, what *can* you do?
Download the website - say it's one of those ancient online books with a TOC and Previous/Next buttons on each page. Use httrack.
Then, use this script (click to select) to (since Notebook LM takes markdown) pull the text from each page *meaningfully*. That is, you're saying Notebook LM is smart enough to make something out of headings. Else, you could just give it text. Ja? :)
Yes, you might need to ask chatGPT for a bash script to put all the text files into one - since N LM says something about a 50 file limit.
Then, just upload the files from this destination directory and you're ready to start chatting with your data. It does work!
import sys import os import html2text def convert_html_to_text(input_path, output_path): # Read the HTML content from the input file try: with open(input_path, "r", encoding="utf-8") as infile: html_content = infile.read() except FileNotFoundError: print(f"Error: The file '{input_path}' was not found.") sys.exit(1) except Exception as e: print(f"Error reading the file '{input_path}': {e}") sys.exit(1) # Convert HTML to text text_maker = html2text.HTML2Text() text_maker.ignore_links = True # Optional: Ignore links in the output text = text_maker.handle(html_content) # Write the plain text to the output file try: with open(output_path, "w", encoding="utf-8") as outfile: outfile.write(text) print(f"Text successfully written to '{output_path}'.") except Exception as e: print(f"Error writing to the file '{output_path}': {e}") sys.exit(1) if __name__ == "__main__": # Ensure correct usage if len(sys.argv) != 3: print("Usage: python html2text_converter.py <input_file> <output_file_or_directory>") sys.exit(1) # Get command-line arguments input_file = sys.argv[1] output_arg = sys.argv[2] # Check if input file exists if not os.path.isfile(input_file): print(f"Error: The input file '{input_file}' does not exist.") sys.exit(1) # Determine output path if os.path.isdir(output_arg): # If output_arg is a directory, create the output file path output_file = os.path.join( output_arg, os.path.splitext(os.path.basename(input_file))[0] + ".md" ) else: # If output_arg is a file, use it directly output_file = output_arg # Perform conversion convert_html_to_text(input_file, output_file)And then:
$ for fil in download_folder_name/www.websitename.com/somefolder/text/*.html ; do python3 script.py $fil destination_dir; done
Sunday, January 05, 2025
Brad's Book List, with Love to You
Title | Author(s) & Year |
---|---|
Breathe, You Are Alive | Thich Nhat Hanh, 1990 |
Cognitive Behavior Therapy - Basics and Beyond | Judith S. Beck, 2021 |
Cognitive Behavior Treatment of Borderline Personality Disorder | Marsha Linehan, 1993 |
DBT Skills Training Manual | Marsha Linehan, 2015 |
Evolution of the Brain from Behavior to Consciousness in 3.4 Billion Years | John J Oro, 2004 |
Feeling Good | David Burns MD, 1980 |
A History of the Mind - Evolution and the Birth of Consciousness | Nicholas Humphrey, 1999 |
How to Stubbornly Refuse to Make Yourself Miserable about Anything—Yes, Anything! | Albert Ellis, PhD, 1988 |
Learned Optimism: How to Change Your Mind and Your Life | Martin E. P. Seligman, PhD, 1990 |
The Man Who Mistook His Wife for a Hat | Oliver Sacks, 1985 |
My Voice Will Go with You: The Teaching Tales of Milton H. Erickson | Sidney Rosen, 1982 |
On the Origins of Human Emotions | Jonathan Turner, 2000 |
On the Origin of the Human Mind | Andrey Vyshedskiy, PhD, 2001 |
Parent Effectiveness Training | Dr. Thomas Gordon, 1978 |
Positive Evolutionary Psychology: Darwin's Guide to Living a Richer Life | Glenn Geher and Nicole Wedberg, 2020 |
Prisoners of Hate: The Cognitive Basis of Anger, Hostility and Violence | Aaron T. Beck, MD, 1999 |
The Psychobiology of Gene Expression | Ernest Rossi, 2002 |
Radical Acceptance - Embracing Your Life with the Heart of the Buddha | Tara Brach, PhD, 2003 |
Uncommon Therapy: The Psychiatric Techniques of Milton H. Erickson | Jay Haley, 1973 |
Big History: From the Big Bang to the Present | Cynthia Stokes Brown, 2008 |
The Feynman Lectures on Physics | Richard Feynman, Robert Leighton, and Matthew Sands, 1977 |
The Life of the Cosmos | Lee Smolin, 1997 |
Maps of Time: An Introduction to Big History | David Christian, 2004 |
Sapiens: A Brief History of Humankind | Yuval Noah Harari, 2011 |
A Short History of Nearly Everything | Bill Bryson, 2003 |
Sizing Up the Universe: The Cosmos in Perspective | Robert Vanderbei and J. Richard Gott, 2010 |
Evolution: The Ants | Bert Holldobler and Edward O. Wilson, 1990 |
The Canon: A Whirligig Tour of the Beautiful Basics of Science | Natalie Angier, 2007 |
Evolution for Everyone: How Darwin's Theory Can Change the Way We Think About Our Lives | David Sloan Wilson, 2007 |
On the Origin of Species | Charles Darwin, 1911 |
Origins of the Modern Mind: Three Stages in the Evolution of Culture and Cognition | Merlin Donald, 1991 |
The Superorganism: The Beauty, Elegance, and Strangeness of Insect Societies | Bert Holldobler and Edward O. Wilson, 2009 |
Your Inner Fish: A Journey into the 3.5 Billion Year History of the Human Body | Neil Shubin, 2008 |
Homo Deus: A Brief History of Tomorrow | Yuval Noah Harari, 2015 |
The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution | Walter Isaacson, 2014 |
The Singularity is Near: When Humans Transcend Biology | Ray Kurzweil, 2005 |
This is How They Tell Me the World Ends: The Cyberweapons Arms Race | Nicole Perlroth, 2021 |
Confronting Reality: Doing What Matters to Get Things Right | Larry Bossidy and Ram Charan, 2004 |
Execution: The Discipline of Getting Things Done | Larry Bossidy and Ram Charan, 2002 |
Executive Leadership: A Rational Approach | Albert Ellis, 1978 |
How to Win Friends and Influence People | Dale Carnegie, 1936 |
I Love Capitalism: An American Story | Ken Langone, 2018 |
The Innovator's Dilemma | Clayton Christensen, 1997 |
Return to the Little Kingdom: How Apple and Steve Jobs Changed the World | Michael Moritz, 2009 |
Service Success: Lessons from a Leader on How to Turn Around a Service Business | Daniel Kaplan, 1994 |
The Titans of Takeover | Robert Slater, 1999 |
Tools of Titans: Tactics, Routines, and Habits of Billionaires, Icons, and World-Class Performers | Tim Ferriss, 2017 |
You're In Charge, Now What: The 8-Point Plan | Thomas Neff, Jane Citrin, 2007 |
Winning Now, Winning Later: How Companies Can Win in the Short Term While Investing for the Long Term | David M. Cody, 2020 |
Andrew Carnegie | David Nasaw, 2006 |
Big Deal: The Battle for Control of America's Leading Corporations | Bruce Wasserstein, 1998 |
The House of Morgan: An American Banking Dynasty and the Rise of Modern Finance | Ron Chernow, 1990 |
M&A Titans: The Pioneers Who Shaped Wall Street's M&A Industry | Brett Cole, 2008 |
Phillip Brothers: The Rise and Fall of a Trading Giant 1901–1990 | Helmut Waskis, 1992 |
Shoe Dog: A Memoir by the Creator of Nike | Phil Knight, 2016 |
Titan: The Life of John D. Rockefeller | Ron Chernow, 1998 |
The Elements of Style | William Strunk Jr., E. B. White, 1918 |
Get the Truth: Former CIA Officers Teach You How to Persuade Anyone to Tell All | Phillip Houston, Michael Floyd, Susan Carnisero, 2014 |
Spy the Lie: Former CIA Officers Teach You How to Detect Deception | Phillip Houston, Michael Floyd, Don Tenant, 2012 |
Why Marriages Succeed or Fail and How You Can Make Yours Last | John Gottman, 1994 |
Saturday, January 04, 2025
At Least One Person Understands Me (and You Maybe?)
From LinkedIn - signs of an intelligent employee by Cesar Solis
- They cheat on their job with a side hustle.
- They treat everybody equal (including the cleaner).
- They rebel against micromanagement and dictator leaders.
- They know when to say no to a meeting.
- They help others advance in their career.
- They don't respond to most emails.
- They stay away from gossip and corporate politics.
- They create passive income so if they get fired it matters less.
- They try entrepreneurship at least once to see what it feels like.
- They're fine to be the dumbest person in the room.
- They ruthlessly protect their time.
- They focus on outcomes not KPls.
- They're wildly open to new ideas.
- They create stuff people want.
- They learn without being told.
- They're humble.
Friday, January 03, 2025
Paul Chin and Eldad Eilam - Your Reverse Engineering Gurus
What Paul teaches in his Udemy course :
By the end of this course, you will be equipped with the basic knowledge to understand dis-assembled code and be able to modify exe files, to insert new instructions and inject new functionality to any exe files. (using x64dbg)
- Assembly Language Basics
- Reverse Engineering
- x64dbg Debugging Basics
- Modifying exe files
- Hollowing out an exe file and inserting new code
- CPU and Flag Registers
- Arithmetic Operations
- Accessing Main Memory (RAM)
- The Stack
- Function Calls
- Code Caves (unused space that can be used later without increasing size of the binary)
- Jumps
- Structured Programming
- Signed and Bit Operations
- How to crack software serial number keys
- Remove Nag Screen Reminders asking you to register
- Convert Trial Software to Fully Functional Software
- Extend 30-day Trial Period Software
- Learn Reverse Engineering and Assembly Language
- Protect your software by learning how software is being cracked
- How to Crack Software For Fun by solving CrackMe Challenges
- C/C++, delphi, VB, p-code, Assembly, C# programs covered
- Removing obfuscation, unpacking, patching, creating keygens, loaders