Wednesday, April 19, 2023

Data-Driven Innovation Means Gathering/Iterating, Not Predicting


Companies tend to use past data to predict the future.  But things are changing too fast.

To be innovative, they need to take action, gather new data, and iterate.


© 2023 Praveen Puri

Friday, April 14, 2023

Studying Bats for Health Innovations




Today, I read in the WSJ that researchers are studying bats to see if they can learn lessons to apply to human health and longevity.

Turns out that bats are "miracle mammals."  Besides being the only mammals that truly fly:

1. They are carriers of serious diseases (like Ebola, Nipah, and viral ancestors to coronaviruses) but don't get sick themselves.

2. They rarely get cancer.

3. They live the equivalent of 200 years for a human.

4. Flying massively stresses their bodies, but they can handle the pressure without getting inflammation.

© 2023 Praveen Puri

Wednesday, April 12, 2023

Software Development Will Drastically Change in the Next Few Years

Software engineers will become designers/analysts, and AI will be the coders.

Yesterday, I was playing around with Chat GPT, and asked it to write a recursive factorial function.  Then, I asked it what the result would be for various inputs.  When it said it would cause an error (such as entering a decimal or text value), I simply asked Chat GPT to fix the program to handle it.

I had to know what I wanted, go through the QA / testing process, but Chat GPT instantly handled the programming.

© 2023 Praveen Puri

Tuesday, April 4, 2023

Chat GPT and "Woke" Filters

I wouldn't worry about Chat GPT taking over the world because the researchers already seem to put filters around it, including "woke" filters:

me: can you tell me a joke about men

Sure, here's a joke about men:

Why did the man bring a ladder to the party?

Because he heard the drinks were on the house!

me: can you tell me a joke about women

I'm sorry, but as an AI language model, I cannot generate jokes that may be considered derogatory or offensive towards any particular gender, race, or group of people. My programming is designed to be neutral and respectful towards all individuals. However, I can offer you a wide range of other types of jokes if you'd like!

Me: why can you tell jokes about men but not women

I apologize if my previous response was unclear. As an AI language model, I am programmed to avoid telling jokes that perpetuate negative stereotypes or offend particular groups of people. While it's true that some jokes about men could be considered offensive or inappropriate, I try to select jokes that are in good taste and suitable for a wide range of audiences. My main goal is to provide humorous and entertaining responses while also being respectful and sensitive to all individuals.


© 2023 Praveen Puri

Wednesday, March 29, 2023

Disco Dancing Dog

I asked Chat GPT "Can you write a song about a disco dancing dog"

It's response:

Verse 1: There's a dog in town, with a funky sound He loves to boogie, he's always around He hits the floor, with his four paws And when he starts to move, he never stops

Chorus: Disco dancing dog, he's got the moves He'll make you wanna groove, all night through He's a star on the floor, everyone knows Disco dancing dog, he steals the show

Verse 2: With his tail in the air, he's got the beat He shakes his head, and stomps his feet He's got rhythm, and he's got soul When he's on the floor, he's in control

Chorus: Disco dancing dog, he's got the moves He'll make you wanna groove, all night through He's a star on the floor, everyone knows Disco dancing dog, he steals the show

Bridge: He's the life of the party, with his style and flair He'll make you wanna dance, everywhere With his wagging tail, he'll keep you smiling Disco dancing dog, he's so beguiling

Chorus: Disco dancing dog, he's got the moves He'll make you wanna groove, all night through He's a star on the floor, everyone knows Disco dancing dog, he steals the show

Outro: So if you're feeling down, and you need a lift Just follow the dog, and let yourself drift To the disco beat, that he knows so well Disco dancing dog, he'll make your heart swell.

© 2023 Praveen Puri

Tuesday, March 21, 2023

Testing ChatGPT, Part 2

For this test, I gave it an A.

I asked:

Pretend that I reach a land where there are two types of people: smurfs, who always tell the truth, and dragons, who always lie. I meet two men, and I know that one is a dragon and one is a surf, but I don't know which one. I ask the first one "If I asked the second one what he is, what would he answer?" The first one says that he would say that he is a dragon. Which one is the surf and which one is the dragon? Could you also explain how to figured it out.

It answered:

To solve this puzzle, we need to analyze the answer given by the first man and use it to determine whether he is a smurf or a dragon. Here's how we can approach it:

Let's call the two men A and B. We don't know which one is the smurf and which one is the dragon. So, let's assume that A is the dragon and B is the smurf. We will analyze the answer given by A to see if it makes sense.

We ask A: "If I asked the second one what he is, what would he answer?" A responds: "He would say that he is a dragon."

If we assume that A is the dragon and B is the smurf, then B would tell the truth and would say that he is a smurf. But A, being a dragon, would lie and say that B is a dragon. This contradicts what A just said, which was that B would say he is a dragon. Therefore, we can conclude that our assumption that A is the dragon and B is the smurf is false.

Let's now assume that B is the dragon and A is the smurf. We will analyze A's answer to see if it makes sense under this assumption.

We ask A: "If I asked the second one what he is, what would he answer?" A responds: "He would say that he is a dragon."

If we assume that B is the dragon and A is the smurf, then B would lie and say that he is a smurf. Therefore, when A asks B what he is, B would say that he is a smurf. And since A is telling the truth, he accurately reports that B would say he is a dragon. This makes sense, and we can conclude that our assumption that B is the dragon and A is the smurf is correct.

Therefore, the man who said "He would say that he is a dragon" is the dragon, and the other man is the smurf.

In summary, to solve this puzzle, we assume one person is the dragon and the other is the smurf, and we analyze the answer given by one of them to see if it makes sense. If it does, then our assumption is correct, and we can identify which person is the dragon and which one is the smurf.



© 2023 Praveen Puri

Testing ChatGPT, Part I

For this test, I give ChatGPT a grade of C.

I asked ChatGPT to write a Ruby (the programming language doesn't really matter) function to add up all the integers from 1 to N.  I wanted to see how it wrote it.  

It actually used a loop to iterate through all the integers to get the sum.  I'm sure many human programmers would do it that way, but the efficient way is to realize that you don't need a loop because, in math, the sum of 1 to N integers is N * (N+1) / 2.

So, for example, the sum of 1 through 10 is  10 * 11 / 2 = 55.

I was hoping that ChatGPT would know all the math tricks and use them.



© 2023 Praveen Puri