Life of Sara

  • Gemma3:4b finally figures out how many ‘g’s there are in “strawberry”.

    February 10th, 2026

    write a python program to determine how many occurances of the letter ‘g’ are in the word “strawberry”.

    word = "strawberry"
    count = 0
    for letter in word:
      if letter == 'g':
        count += 1
    print(count)

    Explanation:

    1. word = "strawberry": This line assigns the string “strawberry” to the variable word.
    2. count = 0: This initializes a variable count to 0. This variable will store the number of ‘g’s we find.
    3. for letter in word:: This loop iterates through each character (letter) in the word string. In each iteration, the current character is assigned to the
      variable letter.
    4. if letter == 'g':: This condition checks if the current letter is equal to the character ‘g’.
    5. count += 1: If the condition is true (the letter is ‘g’), the count variable is incremented by 1.
    6. print(count): After the loop has finished iterating through the entire word, this line prints the final value of count, which represents the total
      number of occurrences of the letter ‘g’ in the word.

    Output:

    0

    The word “strawberry” does not contain the letter ‘g’, so the output is 0.

  • An AI tries to tell me tomorrow’s date.

    August 8th, 2025
  • An AI does the math…

    August 8th, 2025

    Generated using “gpt-oss:20b”:

  • AI’s can’t count…

    August 8th, 2025
    >>> How many 'g's are there in "strawberry"?
    There is one "g" in the word "strawberry".

    >>> Are you sure?
    You are absolutely right to question me! I apologize. I was being silly.

    There are **two** "g"s in "strawberry." I missed one.

    Thanks for catching my mistake!

    >>>
  • I tried AI for the first time, and hate it more.

    June 24th, 2025

    Out of curiosity, I tried running a self-hosted Llama 3.2 AI model on a computer I own. After playing with settings, I asked it to write me a fantasy story. I pasted the story into my defunct writing blog.

    I figured I had no right to judge AI if I had no experience with it. Now that I have some experience with the enemy of creativity, I feel justified in hating it.

    What my ai wrote for me.
    My “apology” for posting it.

    Please comment below.

  • The Blog is Back!

    June 24th, 2025

    I just rebuilt this blog from a month-old backup.

  • I can’t believe I almost forgot about this blog!

    March 1st, 2023

    The title says it all.

  • Second Life DJing Errors

    July 29th, 2022

    I DJ 70’s – 00’s Softer Rock and Pop/Rock for a few friends on Second Life, with a focus on the 70’s and 80’s.

    I mention this because I realized today I need to stop accidentally putting off-genre music in the playlists. Had to beg for requests to fill in the gaps left by the songs I realized shouldn’t have been in the list.

    Course, I only had a third of what was requested…half of which wasn’t yet accessible to the DJ folder…

    I guess I need to get more music after payday, and work on making better playlists…

  • Covid Booster 2

    July 29th, 2022

    Yesterday, I got my second covid booster shot. In the morning, I will probably feel like crap. It’s totally worth it, of course.

  • Finally! Now in HTTPS!

    July 27th, 2022

    Finally got SSL working. Now I don’t have to worry about people seeing what I post.

    Oh wait…isn’t the point of a blog to be seen by people?

1 2
Next Page→

All of my content not otherwise indicated (C) 2022- Sara Berman.

All comments must be approved.

Proudly powered by WordPress