Experience in the use of AI

For discussions about programming and projects not necessarily associated with Porteus.
Kulle
Warlord
Warlord
Posts: 704
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Experience in the use of AI

Post#1 by Kulle » 09 Jun 2024, 10:58

I have tried several AI:
ChatGPT
https://talkai.info
Bing Copilot
https://www.bing.com/copilot
Perplexity AI
https://www.perplexity.ai
AI chatting
https://www.aichatting.net
HuggingChat
https://huggingface.co/chat
you.com
https://you.com/

I have set these two tasks:

Task A
Due to various problems, production decreased by 11%
By how many percent would the price have to be increased to compensate for this loss?

Task B
Are there any years in which "Friday the thirteenth" does not appear at all?

Task A was answered incorrectly by Bing Copilot and you.com
Task B was answered incorrectly by ChatGPT and AI chatting

Perplexity AI was the best at supporting bash programming.

It is often useful to ask the question or task to several AI

User avatar
Ed_P
Contributor
Contributor
Posts: 8912
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Experience in the use of AI

Post#2 by Ed_P » 09 Jun 2024, 23:32

Which AI did you use to post this? :lol:

Kulle
Warlord
Warlord
Posts: 704
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Experience in the use of AI

Post#3 by Kulle » 10 Jun 2024, 08:52

Hi Ed_P,
I did not post this with any AI.
I wrote the text myself after trying out many AIs.
I was horrified after I discovered that some AIs solve simple math problems incorrectly

Kulle
Warlord
Warlord
Posts: 704
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Experience in the use of AI

Post#4 by Kulle » 10 Jun 2024, 15:59

I have set Perplexity AI this task (formulated in German):
write a bash script that determines if a more recent version for Chromium 64 bit exists, if I specify my version number as a parameter.

After several corrections, this script was created:

Code: Select all

#!/bin/bash

if [ -z "$1" ]; then
    echo "Verwendung: $0 <versionsnummer>"
    exit 1
fi

current_version="$1"
releases_url="https://chromium.googlesource.com/chromium/src/+/refs/heads/main/chrome/VERSION"
releases_page=$(curl -s "$releases_url")

major=$(echo "$releases_page" | grep -oP '(?<=MAJOR=)[0-9]+')
minor=$(echo "$releases_page" | grep -oP '(?<=MINOR=)[0-9]+')
build=$(echo "$releases_page" | grep -oP '(?<=BUILD=)[0-9]+')
patch=$(echo "$releases_page" | grep -oP '(?<=PATCH=)[0-9]+')

latest_version="$major.$minor.$build.$patch"

if [ "$(printf '%s\n' "$latest_version" "$current_version" | sort -V | head -n 1)" = "$current_version" ]; then
    echo "Chromium $current_version ist auf dem neuesten Stand."
else
    echo "Eine neuere Version von Chromium ist verfügbar: $latest_version"
fi
But it doesn't work.
The new version number is not displayed
The AI ​​has given up
This is where the limits of AI become apparent

But AI has often helped me with programming scripts

rych
Warlord
Warlord
Posts: 768
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Experience in the use of AI

Post#5 by rych » 11 Jun 2024, 11:56

Kulle wrote:
10 Jun 2024, 15:59
write a bash script that determines if a more recent version for Chromium 64 bit exists, if I specify my version number as a parameter.
https://www.blackbox.ai/publish/OEQFcaXs7ecRu7GX6fLUo generated this:

Code: Select all

#!/bin/bash

VERSION=$1

# Get the latest version of Chromium from the official repository
LATEST_VERSION=$(git ls-remote --tags https://chromium.googlesource.com/chromium/src.git | grep -oP '(?<=refs/tags/)[^/]+')

# Compare the versions
if [[ $VERSION!= $LATEST_VERSION ]]; then
  echo "A more recent version of Chromium 64 bit exists: $LATEST_VERSION"
else
  echo "You are running the latest version of Chromium 64 bit: $VERSION"
fi

rych
Warlord
Warlord
Posts: 768
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Experience in the use of AI

Post#6 by rych » 11 Jun 2024, 11:59

Kulle wrote:
09 Jun 2024, 10:58
Due to various problems, production decreased by 11%
By how many percent would the price have to be increased to compensate for this loss?
https://www.blackbox.ai/publish/863bN-x-TEIQI396uPEbG

rych
Warlord
Warlord
Posts: 768
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Experience in the use of AI

Post#7 by rych » 11 Jun 2024, 12:00

Kulle wrote:
09 Jun 2024, 10:58
Are there any years in which "Friday the thirteenth" does not appear at all?
https://www.blackbox.ai/publish/gJgq8jNPkkk1wiEcfEYUi

Kulle
Warlord
Warlord
Posts: 704
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Experience in the use of AI

Post#8 by Kulle » 11 Jun 2024, 12:52

Hi rych,
thanks
I didn't know about blackbox.ai.
As I've tried since then,
blachbox.ai also seems to be useful for helping and supporting bash scripts

Kulle
Warlord
Warlord
Posts: 704
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Experience in the use of AI

Post#9 by Kulle » 11 Jun 2024, 13:26

Question
"Are there any years in which "Friday the thirteenth" does not appear at all?"

has so far been answered incorrectly by 3 AIs: ChatGPT AIchatting and blackbox.ai

blackbox.ai writes
1700, 1800, 1900, ...
2100, 2200, 2300, ... In these years, "Friday the 13th" does not occur at all.
But blackbox.ai does not do any testing either,
because command "cal 1700" shows that September 13th is a Friday.

Post Reply