Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.sci.electronics > #346423
| From | Volker Bartheld <news2023@bartheld.net> |
|---|---|
| Newsgroups | de.sci.electronics |
| Subject | Re: Durchsteck-Stiftkontakte RM 4mm? |
| Date | 2023-11-25 15:17 +0100 |
| Message-ID | <937add54f07587d92a704f0b91c26e10fd5ab0b0.camel@bartheld.net> (permalink) |
| References | (4 earlier) <uj3n2q$1ic9m$1@solani.org> <ksa1atFdl3oU2@mid.individual.net> <47bb34ef2c7956e5b83c8df8009c2363a70f8c54.camel@bartheld.net> <ujr0f7$1u752$1@solani.org> <kscvn3F836bU1@mid.individual.net> |
On Sat, 2023-11-25 at 02:07 +0100, Arno Welzel wrote:
> Helmut Schellong, 2023-11-24 21:18:
> > ChatGPT:
> > Welche kompilierten programmiersprachen sind auf den meisten prozessoren und
> > mikrocontrollern mit welchen anteilen vorhanden?
> Gähn... die Antworten dazu, C, C++ und MicroPython kennt man auch ohne
> ChatGPT zu fragen, wenn man in dem Bereich selber unterwegs ist.
*LOL* Statistikfragen an ChatGPT. Was kann da schon groß schiefgehen?
Ich machte mir neulich mal das Vergnügen und bat ChatGPT, eine simple
Sustitutionschiffre zu lösen [1]. Der Ciphertext war "wtl blm xbgx lmkxgz
zxaxbfx gtvakbvam! wbx knllxg dhffxg ghva gbvam! ubmmx lhyhkm gtva wxf exlxg
oxkukxggxg!" und trotz Hilfestellung, daß es sich um einen deutschen Quelltext
handelte, bei dem jeder Buchstabe im Klartext genau und nur einem (anderen)
Buchstaben im Geheimtext entspricht, scheiterte der Bot kläglich.
Keine deutschen Sätze, Geschwurbel, Verletzungen des
Verschlüsselungsalgorithmus. Als ich ChatGPT dann die Auflösung präsentierte,
hieß es: "Äh, ja, sorry. Stimmt.".
Den eigentlichen C++ Algorithmus zu programmieren, ging ChatGPT hingegen
ziemlich leicht von der Hand, kurze Anweisung std::map<char,char> für die
Chiffre zu benutzen, führte zu recht kompaktem Code [2].
Auch wenn es um irgendwelche Shellskripte geht, wie z. B. ein Linux-Droplet zur
Parallelisierung von Single-Thread-Operationen [3] oder kryptische Parameter für
ffmpeg, führt ChatGPT oft schneller zum Ziel als das längliche Studium
irgendwelcher Manpages.
Daß man das Ergebnis gekünstelter Intelligenz dennoch verstehen und prüfen muß,
sollte jedem klar sein, der noch alle biologischen Gehirnzellen beisammen hat.
Wie hoffentlich auch den Kommissaren, die unsere Paßbilder nun EU-weit verheizen
wollen [4]. Mit KI natürlich. Und einem Schuß Blockchain. Freilich nur bei
vermißten Personen bzw. zu Straftaten, für die es mindestens ein Jahr
Gefängnisstrafe gibt.
Volker
[1] https://de.wikipedia.org/wiki/Caesar-Verschl%C3%BCsselung
[2]
#include <iostream>
#include <string>
#include <map>
int main()
{
std::map<char,char> cipher =
{
{ 'A', 't' },
{ 'B', 'u' },
{ 'C', 'v' },
{ 'D', 'w' },
{ 'E', 'x' },
{ 'F', 'y' },
{ 'G', 'z' },
{ 'H', 'a' },
{ 'I', 'b' },
{ 'J', 'c' },
{ 'K', 'd' },
{ 'L', 'e' },
{ 'M', 'f' },
{ 'N', 'g' },
{ 'O', 'h' },
{ 'P', 'i' },
{ 'Q', 'j' },
{ 'R', 'k' },
{ 'S', 'l' },
{ 'T', 'm' },
{ 'U', 'n' },
{ 'V', 'o' },
{ 'W', 'p' },
{ 'X', 'q' },
{ 'Y', 'r' },
{ 'Z', 's' }
};
const std::string input = "DAS IST EINE STRENG GEHEIME NACHRICHT! DIE RUSSEN KOMMEN NOCH NICHT! BITTE SOFORT NACH DEM LESEN auchVERBRENNEN!";
for(auto& e : input)
{
if(cipher.end() != cipher.find(e)) std::cout << cipher[e];
else std::cout << e;
}
std::cout << std::endl;
return 0;
}
[3]
#!/bin/bash
# Droplet to process a number of files (or files in a directory) by spawning
# a number of threads and sending them the files.
# Function to process a file
process_file() {
# Replace this line with the actual command to process the file
echo "Processing files for Process $1: $2..."
sleep 2
}
max_processes=4 # Change this number to set the maximum number of process instances
# Check if at least one argument is provided
if [ "$#" -eq 0 ]; then
echo "$0, a droplet to process a number of files (or files in a directory)."
echo "It splits the file list up among up to max. $max_processes worker threads."
echo "Usage: $0 <file1> <file2> ... or $0 <directory>"
exit 1
fi
# Check if the provided argument is a directory
if [ -d "$1" ]; then
# If it's a directory, process all files inside it
files=("$1"/*)
else
# If it's individual files, process them directly
files=("$@")
fi
# Calculate the number of files
num_files=${#files[@]}
# Create an array to hold files for each process
declare -a process_files
# Initialize the array elements with empty strings
for ((i = 0; i < max_processes; i++)); do
process_files[i]=""
done
# Sequentially add files to each element of the array
for ((i = 0; i < num_files; i++)); do
index=$((i % max_processes))
process_files[index]+="${files[i]} "
done
# Process the files for each process
for ((i = 0; i < max_processes; i++)); do
files_for_process="${process_files[i]}"
if [[ -n "$files_for_process" ]]; then
process_file "$i" "$files_for_process" &
fi
done
# Wait for all background processes to complete
wait
echo "All files processed!"
[4] https://www.heise.de/news/Polizeidaten-EU-Gremien-einigen-sich-auf-EU-weiten-Abgleich-von-Gesichtsbildern-9535515.html
Back to de.sci.electronics | Previous | Next — Previous in thread | Next in thread | Find similar
Durchsteck-Stiftkontakte RM 4mm? Jürgen Hüser <dg7gj@gmx.de> - 2023-11-11 18:15 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-12 01:49 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-12 12:24 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Hergen Lehmann <hlehmann.expires.12-22@snafu.de> - 2023-11-12 12:58 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-12 21:10 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Hartmut Kraus <hartmut.melina@web.de> - 2023-11-12 13:02 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Rolf Bombach <rolfnospambombach@invalid.invalid> - 2023-11-15 21:03 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Hans-Juergen Schneider <echo@hrz.tu-chemnitz.de> - 2023-11-12 16:27 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-12 21:13 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Rolf Bombach <rolfnospambombach@invalid.invalid> - 2023-11-15 21:06 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Rolf Bombach <rolfnospambombach@invalid.invalid> - 2023-11-15 21:02 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-16 01:17 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-23 23:17 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-24 00:47 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-24 20:15 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Volker Bartheld <news2023@bartheld.net> - 2023-11-24 10:04 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Rolf Bombach <rolfnospambombach@invalid.invalid> - 2023-11-24 12:09 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Volker Bartheld <news2023@bartheld.net> - 2023-11-24 21:44 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-24 22:30 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-24 21:18 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-25 02:07 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-25 15:05 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-12-03 13:26 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-12-03 18:26 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-12-04 20:33 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-12-04 21:58 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Volker Bartheld <news2023@bartheld.net> - 2023-11-25 15:17 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Volker Bartheld <news2023@bartheld.net> - 2023-11-25 15:20 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? "Wolfgang Allinger" <all2001@spambog.com> - 2023-11-26 10:23 -0300
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-23 23:13 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-24 00:38 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-24 20:26 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-24 21:26 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-11-25 02:08 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-11-25 15:23 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-12-03 13:29 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-12-03 18:28 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Arno Welzel <usenet@arnowelzel.de> - 2023-12-04 20:34 +0100
Re: Durchsteck-Stiftkontakte RM 4mm? Helmut Schellong <var@schellong.biz> - 2023-12-04 22:13 +0100
csiph-web