Friday, March 21, 2025

chatGPT Kills Wolfram Alpha


Prompt : 43.489627631627631627631 (627631 repeating decimal) as P/Q

Wolfram Alpha : Wolfram|Alpha doesn't understand your query

ChatGPT:

To convert the number
43.489627631627631627631... (with 627631 repeating) into a fraction PQ\frac{P}{Q}, let's follow the steps:

blah blah..

 Final Answer:

21744792071499999500\boxed{\frac{21744792071}{499999500}}

This is the exact fraction representation of
43.489627631627631627631… where 627631 repeats.

What a class act. Move over Steve..



Wednesday, March 12, 2025

Why Do You Suppose Bing, but not Google Can Hack this Search?


When you search for Eugen Doctor's 1908 pamphlet, “Emigration and Immigration—A Word on the Plight of Jewish Emigres," Google serves up junk, while Bing can actually point you to the work - ironically, some of the copies being on Google's servers. Why do you suppose this is?

Why? Just finishing up Goetz Aly's "Europe Against the Jews," which had been on my list for a while - and he mentions this one.

Tuesday, February 11, 2025

Can You Recognize Emotions Given Just the Eyes? Try It

https://socialintelligence.labinthewild.org/mite

Your score is 28 out of 36.

Your score is equal or better than 64% of all participants.


Exercise Recommendation Test

Given descriptions of people, learn how good you are at finding optimal physical activities for them. Compare yourself to others! This study takes around 12 minutes. Try it!


How quikcly can you learn a new manual skill?

Take this 10 minute test, find out and compare yourself to others. Try it!


Decision-Making Study

What is your decision-making style? Take this 8-minute test to find out! Try it!



What is your Wiki Knowledge Score?

Find out in just 5 minutes how knowledgeable you are! Try it!


Spatial Reasoning Test!

How well can you visualize objects in space? Find out and compare yourself to others.
The test typically takes 15 minutes. Try it!


 

Friday, February 07, 2025

Now That's a Gem - Productivity Hack - Lead Time Planning


A manager once told me his number one personal productivity tool was sitting down for ten minutes, at the end of every work day, and writing out his to-do list for the next day.

I remember something similar in "How to Stop Worrying and Start Living" by D Carnegie - the laggards leave the office early to "go spend time with the family" whereas the go-getters plan the next day.

Shame on me though :)

But, wait! What are the ten things this person learned at McKinsey?

  1. There are no experts in business - they've just mastered the "act". There's a reason they pay these young smart consultants from McKinseay and Bain.
  2. The answers are usually hidden in plain sight. That is, the information is accessible. It takes so analysis to convert it into actionable insights.
  3. MBAs are a waste of money. This person did two years of history at Oxford and concluded : in a few weeks of formal study, you can learn enough about economics, finance and strategy. It helps to read about two dozen good books on strategy. (I guess speed reading comes naturally to someone who's doing a PhD in history at Oxford😊)
  4. No jerks. Ever. Would colleagues want to sit next to you on a long flight? (the "flight test"). Bascially : follow the no a$$hole rule!
  5. Everything's a grid. As in - important/urgent risk/reward pain/gain. 
  6. The basics matter - agenda before meeting, lead time planning for next day, minutes and next-steps!
  7. Start at the end and go backwards. State the hypothesis and look for evidence the supports/contradicts.
  8. Don't look to consultants to save your company. They can only offer recommendations.
  9. Everyone is in sales - like it or not. 
  10. Manage upwards - handy for the case that your company doesn't follow rule 4 😊 Example : DD works for "the Rottweiler" who works his team to death. Predecessors who burnt out focused on mastering work-work while DD mastered meta-work - in this case, he figured out the office phone-system so he figured out a way to let the Rottweiler's calls go to voicemail. He'd listen to the message at his leisure, do the bare minimum and then use the phone system to record a message to his boss to be delivered later - at 10:30 at night! The Rottweiler was actually telling DD that he was working too hard!
BTW, Brett Arends is the guy who claimed he was going to invest in Russian stocks back in 2014. How did that play out?

Sunday, February 02, 2025

If You're On Android, this is How Your Brain Works! Be Warned


From Michael Platt's excellent book: "The Leader's Brain"

Two years ago, Wharton neuroscience postdoctoral fellow Feng Sheng and I gathered groups of smartphone users to see if they had an emotional and social connection with their brand. 

(they used fMRI to observe brain activity)

Apple users showed empathy for their own brand: The reward-related areas of the brain were activated by good news about Apple, and the pain and negative feeling parts of the brain were activated by bad news, they were neutral about any kind of Samsung news. This is exactly what we see when people empathize with other people—particularly their family and friends—but don't feel the joy and pain of people they don’t know.

Samsung users, on the other hand, showed no increased activity in either area when they were shown positive and negative news about their brand. Interestingly, though, the pain areas were activated by good news about Apple, and the reward areas were activated by bad news about the rival company — some serious schadenfreude, or “reverse empathy.”

If I were the Chief Marketing Officer of Samsung, I would be worried. Samsung customers' brains tell us they’re just not that socially and emotionally connected to the brand, and that makes the company much more vulnerable to a potential competitor (just as a weak workplace culture can lead to higher turnover). 

Friday, January 24, 2025

How You Can Promote Neuroplasticity in Your Brain

From positivepsychology.com

  1. Intermittent fasting (as noted earlier): increases synaptic adaptation, promotes neuron growth, improve overall cognitive function, and decreases the risk of neurodegenerative disease;
  2. Traveling: exposes your brain to novel stimuli and new environments, opening up new pathways and activity in the brain;
  3. Using mnemonic devices: memory training can enhance connectivity in the prefrontal parietal network and prevent some age-related memory loss;
  4. Learning a musical instrument: may increase connectivity between brain regions and help form new neural networks;
  5. Non-dominant hand exercises: can form new neural pathways and strengthen the connectivity between neurons;
  6. Reading fiction: increases and enhances connectivity in the brain;
  7. Expanding your vocabulary: activates the visual and auditory processes as well as memory processing;
  8. Creating artwork: enhances the connectivity of the brain at rest (the “default mode network” or DMN), which can boost introspection, memory, empathy, attention, and focus (see art therapy activities);
  9. Dancing: reduces the risk of Alzheimer’s and increases neural connectivity;
  10. Sleeping: encourages learning retention through the growth of the dendritic spines that act as connections between neurons and help transfer information across cells


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!

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?"