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

From one of his favorites, https://meltingasphalt.com/crony-beliefs/

Consider the case of Acme Corp., a property development firm in a small town called Nepotsville. The unwritten rule of doing business in Nepotsville is that companies are expected to hire the city council's friends and family members. Companies that make these strategic hires end up getting their permits approved and winning contracts from the city. Meanwhile, companies that "refuse to play ball" find themselves getting sued, smeared in the local papers, and shut out of new business.

In this environment, Acme faces two kinds of incentives, one ..

If you tried reading that bit, you'll wish Kevin Simler (author of Melting Asphalt and also "The Elephant in the Brain") had read this by Scott Adams:

Business writing is about clarity and persuasion. The main technique is keeping things simple. Simple writing is persuasive. A good argument in five sentences will sway more people than a brilliant argument in a hundred sentences. Don’t fight it.

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.

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

Then, just upload the files from this destination directory and you're ready to start chatting with your data. It does work!

Sunday, January 05, 2025

Brad's Book List, with Love to You

From a man who can teach you to make a few billion dollars! Click on a cell for more info..
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

  1. They cheat on their job with a side hustle.
  2. They treat everybody equal (including the cleaner).
  3. They rebel against micromanagement and dictator leaders.
  4. They know when to say no to a meeting.
  5. They help others advance in their career.
  6. They don't respond to most emails.
  7. They stay away from gossip and corporate politics.
  8. They create passive income so if they get fired it matters less.
  9. They try entrepreneurship at least once to see what it feels like.
  10. They're fine to be the dumbest person in the room.
  11. They ruthlessly protect their time.
  12. They focus on outcomes not KPls.
  13. They're wildly open to new ideas.
  14. They create stuff people want.
  15. They learn without being told.
  16. 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)

  1. Assembly Language Basics
  2. Reverse Engineering
  3. x64dbg Debugging Basics
  4. Modifying exe files
  5. Hollowing out an exe file and inserting new code
  6. CPU and Flag Registers
  7. Arithmetic Operations
  8. Accessing Main Memory (RAM)
  9. The Stack
  10. Function Calls
  11. Code Caves (unused space that can be used later without increasing size of the binary)
  12. Jumps
  13. Structured Programming
  14. Signed and Bit Operations
And, in further courses:
  1. How to crack software serial number keys
  2. Remove Nag Screen Reminders asking you to register
  3. Convert Trial Software to Fully Functional Software
  4. Extend 30-day Trial Period Software
  5. Learn Reverse Engineering and Assembly Language
  6. Protect your software by learning how software is being cracked
  7. How to Crack Software For Fun by solving CrackMe Challenges
  8. C/C++, delphi, VB, p-code, Assembly, C# programs covered
  9. Removing obfuscation, unpacking, patching, creating keygens, loaders
And of course, there's Eldad's venerable old book : https://en.wikipedia.org/wiki/Reversing:_Secrets_of_Reverse_Engineering

And then, there's xorpd - who also appears to be Israeli : https://www.xorpd.net/pages/x86_adventures.html ("You must do the exercises. You may say, 'I'm a fast learner and I can learn a lot by watching your lectures.' To this I would say, would you attempt to learn swimming by just watching lectures?"

Saturday, December 28, 2024

Re-render Your Blog - Oldest Posts First

Hint: Double-click expanded post text to collapse it!
(this works with blogger (blogspot) only. You can view this post by itself (click on title and open in new tab, and then pick the meat from the View Page Source and put it in a post by itself on your blog to get the same functionality)
Look for the HTML containing button id="view-oldest-first"
And get the immediately following script and style tagged sections too and put them in and you're done.

Sunday, December 22, 2024

Cubism - Your Challenge

Cube Root Game

Type the cube root of the displayed number and press ENTER to submit your answer. If correct, press ENTER again to get a new puzzle!

Tuesday, December 03, 2024

The Ten Most Terrible Tyrants of Tech

As a favor to Valleywag/Gawker, since this one is so hard to find (from Aug 2008). Very, very dated and not fact-checked at all. Read at your own risk :)

Here's to the screaming ones. The chair-throwers. The death-threat makers. The imperious gazers. The ones who see things differently — and will stare you down until you do, too. They're not fond of rules, especially those outlined by the human-resources department on "treating your employees with respect." And they have no respect for conversational decibel levels. You can cower before them, hide from them, quote them behind their backs, or vilify them. About the only thing you can't do is ignore them. Because they're so damn loud. They've worked at Google. Apple. Microsoft. AOL. They've ruled the industry — or they've failed, loudly. Below, we present you tech's 10 most tempestuous bosses — the ones who scream different. While some see them as sociopaths, Valleywag sees genius.

Steve Jobs: It's worse when he's not yelling

Steve Jobs's hot temper is as notorious as it is well-documented. The Apple CEO parks in handicapped spots. He'll fire employees in a tantrum. But more fearsome yet is Jobs's indifference. Even calm, calculated words can shrivel his underlings' spirits. He's created a cold atmosphere at Apple headquarters in Cupertino, one former employee tells us:

"No one greets him or says hi to him. Low ranking employees are afraid of him. I remember him walking around the campus one time and groups of people in his way would just split and let him walk through."

"My boss," says our source, "She's been with Apple since 1979. But she's only talked to Steve Jobs twice. She did a presentation for him when he was 24. He showed up half an hour late and without shoes. She needed money to start up a team. Steve Jobs listened to her presentation for an hour, said no and just got up and walked away." Another former employee told Variety in 2006: "Steve is always the smartest guy in the room and he knows it."

Eric Schmidt : Why companies need divas like Jobs to build brilliant products

Rob Glaser: screams to make the pain stop

Rob Glaser, the CEO and founder of RealNetworks, likes to scream. One former employee tells us that his abuse is so virulent that at it's common for RealNetworks execs to leave the company only one or two months before they're scheduled to receive bonuses worth hundreds of thousands of dollars. Our source says: "Another example was a buddy CEO at a startup back in the heyday of bubble 1.0."

"Real and Rob were expecting to make a strategic investment in a startup, only to lose out to Microsoft at the last minute. [That sent Glaser] screaming, throwing things, and ultimately slamming the door on the way out of the CEO's office knocking and breaking a picture on the wall."

Marc Benioff: Flowers ... and handcuffs

Salesforce.com CEO Marc Benioff is a charmer, which is also a nice way of saying he's a smarmy manipulator. Blowing off call after call with a Time contributor, he might send flowers and leave a long voicemail explaining himself. But when the Wall Street Journal wanted to write a story about Benioff's Hawaiian vacation home, the Salesforce.com CEO went off the handle, writing the wife of Dow Jones's CEO a letter, flying to New York to berate a Journal editor, and then, finally ordering ordering construction workers and local police to detain a Journal reporter checking out the property. So a warning to Salesforce.com employees: better hope the boss's smile keeps working.

Diane Greene: Her only mistake was working for another tyrant

Reports the Register:

[VMware] employees have talked to us about going into meetings with [cofounder Diane] Greene and crawling into their foxholes, hoping to avoid being struck by criticism or worse, a tirade.

These same employees describe Greene as "a hard-driving perfectionist who loves nothing more than to get her way." But despite her flaring temper, VMware cofounder Diane Greene's underlings loved her as the head of their company, especially as her dictatorial management style helped send its stock through the roof. But the stock eventually faltered, and Greene's tempestuous attitude threatened Joe Tucci, CEO of VMware's parent company, EMC. Greene and Tucci never got along, and so when Tucci got the chance, he pushed Greene out of the company.

Ex Jobster CEO Jason Goldberg: hot head, hot lead

Jason Goldberg, the fired CEO of Jobster, now runs social news site Social Median. He still has a problem with his verbal filter. He thinks things, it seems, and even if he shouldn't, he'll say them. For example, there's the YouTube video embedded above. Goldberg impolitely rips Jobster's rival, Monster.com, calling it a "crap product." Takes a lot of testosterone to say that about the market leader — especially when no one's heard of Jobster. But that's not the worst of it. No, that'd probably be the time Goldberg told an employee he was going to put a bullet in her head because she allegedly leaked news of an executive poaching.

Bill Gates: Doesn't even love his mother

These days, Microsoft chairman Bill Gates is known as the most charitable person in the entire world, giving away billions of dollars through the Bill and Melinda Gates Foundation. But for years, Gates was known first for his money and second for a mean streak that flared particularly with women, starting with his mom. In an article bidding farewell to the now-retired top executive at Microsoft, Wired ran down the highlights:

  • 1967: Gates, a difficult sixth grader, asks his mother, "Have you ever tried thinking?"
  • 1977: On several occasions, Gates's secretary enters the Microsoft building to find him crumpled on the floor, asleep. He continues to live on pizza and is a demanding boss, often fighting with colleagues. Among his favorite responses: "That's the stupidest thing I've ever heard."
  • 1985: Gates reportedly abuses a female executive so badly that she asks to be transferred.
  • May 13, 1990: Gates schedules a retreat for Microsoft company executives — on Mother's Day.

Ex-AOL sales chief David Colburn - Prepared to get biblical on your ass

Back when he ran ad sales at AOL in the late '90s, David Colburn earned himself quite the nickname. The peons called him God — you know, the guy who turns water to blood and rains locusts down from the heavens. Once, at a holiday party in December 1999, Colburn called three rabbis up on stage and told them to pray for AOL's success, promising to donate $1 million to any Jewish cause if AOL's stock hit certain levels. The rabbis agreed, startling offended partygoers. But according to author Alec Klein, who recounts the anecdote in his book Stealing Time, none of them were about to say anything.

Who wanted to incur the wrath of David Colburn? There was so much to David Colburn, all of it so outrageous and comical and scary and brilliant and successful and charitable, that he almost defied human description. And yet there he was an open book, a raging, exploding caricature of a personality, a combustible force of nature.

A source who used to sit on the other side of the negotiation table from Colburn tells us that the ex-AOLer was an "evil f**r" who "scared the shit out of me, back in the day." Klein describes Colburn's negotiation tactics in a similar vein:

His was a bone-jarring negotiating technique that was filled with swearing and threatening. During one phone call in his office, he was heard yelling at someone, belittling him, tearing him down, screaming, "Don't be a f**g idiot!"

Someone, who happened to be passing by, asked another bystander whom Colburn was talking to.

"A client," came back the answer.

"David had such a reputation that you could always use his presence as a threat," said Neil Davis, a former senior vice president. "It was like, 'If we can't get over this issue, we have to get David on the phone' I could always invoked David as teh court of appeals."

"His presence just caused a ripple of fear," said an AOL official who worked for him. "You could always hear him coming."

Once worth an estimated $250 million, Colburn in May settled an SEC lawsuit alleging he and other former AOL execs schemed in 1990s to overstate AOL's earnings by some $1 billion.

TechCrunch editor Michael Arrington: Doesn't discriminate — he holds everyone in contempt

Michael Arrington's temper is as bad as everyone assumes. Says a former employee:

He yells at anyone and everyone, including his staff, and including [TechCrunch CEO] Heather [Harde]. I'd note though that it's not just the yelling, it's the tone he takes as well. Maybe a cultural thing, but I'd never talk to people the way he does. Everyone is beneath him, and he holds most people in contempt. But oddly enough it's always in short bursts. If you remember Loren [Feldman]'s Arrington puppet videos [embedded above], that's pretty close to what he's like. He'll be mid-sentence then stop and yell at someone else, then revert to the original conversation like he had never stopped. Weirdest thing I've seen. Perhaps a need to put others down to boost his own ego, or a complete lack on empathy for anyone other than himself.

Google SVP Jonathan Rosenberg: He'll yell at Larry and Sergey, too

Google's Mountain View campus is a happy primary-colored wonderland where no one ever screams or yells. Except for SVP Jonathan Rosenberg. A Google employee tells us that at the Googleplex Rosenberg is known as "a shitkicker" who "likes to crack the whip." Google lore has it that Rosenberg likes to yell so much, he even hollered during his hiring interview, presumably with Google founders Larry Page and Sergey Brin.

People were like what the f is going on in that conference room? And then someone was like someone is interviewing, and it's the interviewee who's doing the yelling. He just literally likes to yell.

His broken volume dial hasn't hurt his career: Rosenberg is one of a handful of execs who's allowed to participate in Google's quarterly earnings calls with Wall Street.

Microsoft CEO Steve Ballmer: Would like to "kill" Google and its "pussy" CEO

Microsoft CEO Steve Ballmer loses it all the time, but nothing beats the story of when former Microsoft engineer Mark Lucovsky went into Ballmer's office to say he'd been poached by Google. After Google hired away Microsoft executive Kai Fu-Lee, Microsoft sued and eventually, Lucovsky ended up telling the story under oath. A telling excerpt:

At some point in the conversation Mr. Ballmer said: "Just tell me it's not Google." I told him it was Google. At that point, Mr. Ballmer picked up a chair and threw it across the room hitting a table in his office. Mr. Ballmer then said: "F**g Eric Schmidt is a f**g p**. I'm going to f**g bury that guy, I have done it before, and I will do it again. I'm going to f**g kill Google."