Menü×

Der IT-Thread

  • #2081 KippmKauBoi 3 Dez. 2022, 21:39

    Danke für die Links. Dann werd ich amol schaun wie ich des am bestne hinkrich

  • #2082 Fisimatenten 3 Dez. 2022, 21:46

    EIgentlich merkt sich Windows die Konstellation der Bildschirme profilmäßig wenn es dieselben Bildschirme sind.

  • #2083 KippmKauBoi 3 Dez. 2022, 21:49

    Angeblich speichert Windows die Einstellung ned.
    Hab dann den Vorschlag gemacht einfach die verschissnen Bildschirme umzustellen, dann geht die Maus halt nach rechts zum linken Bildschirm
    "öööh da kann ich ned arbeitne, des is komisch"

  • #2084 Messermann 4 Dez. 2022, 02:19

    Zitat von: Hexley

    Ich würd nix in der Cloud hosten, aber ich bin da etwas altmodisch.

    Mit diesem Mindset gilst du heutzutage in der IT als rückständig, veraltet und musst dich rechfertigen warum du noch das per se schlechte Konzept "selber hosten" bevorzugst. Ähnlich wie wenn man noch der Meinung ist es gäbe nur zwei Geschlechter.
    Letztens erst mit nem Kunden zu tun gehabt, der vollkommen überrascht von dem Konzept war, einen Dienst nur in einem privaten Netz hinter einem VPN anzubieten.
    "unsere User haben überhaupt kein VPN, alle verwendeten Dienste sind öffentlich zugänglich"

    Genau, lieber durch 500 Reifen springen um einen Dienst für jeden direkt zugreifbar anzubieten, anstatt den Zugriff mit einem erprobten, sicheren Konzept auf 50 User einzuschränken.

  • Mod/RDW
    #2085 ProfHase 7 Dez. 2022, 19:48

    @Qu4rkey🐝 was ist deine Ausrede

    061d677e71577065.png

  • Mod/RDW
    #2086 Sylvester 7 Dez. 2022, 19:50

    Fugg, ist doch ein Scherz, oder? Horst++

  • #2087 Reichskatzler 7 Dez. 2022, 19:50

    Zitat von: ProfHase

    @Qu4rkey🐝 was ist deine Ausrede

    061d677e71577065.png
    Dabei saß er im Paulanergarten und trank ein alkoholfreies Bier.

  • #2088 RichterinWinkelmann 7 Dez. 2022, 20:49

    Mobama weiß auch mehr über Quicksort als der Quarker.
    Wo Quarkysort

  • #2089 pump3 7 Dez. 2022, 21:58

    Zitat von: ProfHase

    @Qu4rkey🐝 was ist deine Ausrede

    061d677e71577065.png
    C++98, wette wir?
    Dem ollen Internetausdrucker traue ich kein C++17 zu
    GC7roRL.jpg

  • Mod/RDW
    #2090 Sylvester 7 Dez. 2022, 22:07

    Irgendwie amüsiert mich die Vorstellung, dass Horst auf seinem Windows Bezeh Visual Studio Community Edition installiert und dann eine Solution erstellt. Fast so, als würde sich Kwarki an der Hochschule für ein Informatikstudium einschreiben. Der müsste einen Vlog machen und über seinen Fortschritt berichten, ich würde mir es anschauen (also vom Horst versteht sich)

    @Wissder noch, als Mario Heinz Kiesel sich Linux installiert hat, und sich freute, dass sogar die Soundkarte funktioniert?

  • Mod/RDW
    #2091 BigBANG 9 Dez. 2022, 12:37

    Meine Art zu programmieren wird sich für immer verändern. Du kannst echt fast jeden Code generieren lassen mit:


    Beispiel:
    Code a C# web api that returns the string "C++ ist outdated looooool xDDD".

    Und die AI antwortet:
    Zitat:
    Here is an example of a C# web API that returns the string "C++ ist outdated looooool xDDD":

    C#:
    using Microsoft.AspNetCore.Mvc;
    
    namespace WebApi
    {
        [Route("api/[controller]")]
        [ApiController]
        public class ExampleController : ControllerBase
        {
            // GET: api/Example
            [HttpGet]
            public ActionResult<string> Get()
            {
                return "C++ ist outdated looooool xDDD";
            }
        }
    }

    In this code, we define a Controller class called ExampleController. This class contains a single action method, Get(), which returns the string "C++ ist outdated looooool xDDD".

    The [Route("api/[controller]")] and [ApiController] attributes are used to specify the URL of the API and enable certain features, such as model binding and automatic HTTP 400 responses.

    The [HttpGet] attribute is used to specify that the Get() method will handle HTTP GET requests.

    You can test the API by running it and making a GET request to the URL https://localhost:<port>/api/example, where <port> is the port number on which the API is running. When you make the request, you should see the string "C++ ist outdated looooool xDDD" displayed in the response.

    You can customize the code as needed to add additional actions, change the URL of the API, or add other features. Consult the documentation for ASP.NET Core Web API for more information.

    Hier die Antwort auf:
    "Code a C++ web api that returns the string "C# ist für noobs, die keine Pointer verstehen looooool xDDD""
    Zitat:
    Here is an example of a C++ web API that returns the string "C# ist für noobs, die keine Pointer verstehen looooool xDDD":

    C++:
    #include <iostream>
    #include <string>
    
    #include <cpprest/http_listener.h>
    #include <cpprest/json.h>
    
    using namespace std;
    using namespace web;
    using namespace web::http;
    using namespace web::http::experimental::listener;
    
    class ExampleApi
    {
    public:
        ExampleApi(const string& url);
        void start();
        void stop();
    
    private:
        void handle_get(http_request request);
    
        http_listener listener;
    };
    
    ExampleApi::ExampleApi(const string& url) : listener(url)
    {
        listener.support(methods::GET, bind(&ExampleApi::handle_get, this, placeholders::_1));
    }
    
    void ExampleApi::start()
    {
        listener.open().wait();
    }
    
    void ExampleApi::stop()
    {
        listener.close().wait();
    }
    
    void ExampleApi::handle_get(http_request request)
    {
        json::value response;
        response["message"] = json::value::string("C# ist für noobs, die keine Pointer verstehen looooool xDDD");
        request.reply(status_codes::OK, response);
    }
    
    int main()
    {
        ExampleApi api(U("http://localhost:8080/api/example"));
        api.start();
    
        cout << "Press ENTER to exit." << endl;
        string line;
        getline(cin, line);
    
        api.stop();
        return 0;
    }

    In this code, we define a class called ExampleApi that represents the web API. The ExampleApi class has a constructor that takes the URL of the API as an argument and initializes an instance of the http_listener class with that URL.

    The ExampleApi class also has start() and stop() methods that are used to start and stop the web server, respectively.

    The handle_get() method is used to handle HTTP GET requests. This method constructs a JSON response containing the string "C# ist für noobs, die keine Pointer verstehen looooool xDDD" and sends it back to the client using the request.reply() method.

    In the main() function, we create an instance of the ExampleApi class and start the web server. The API will then be available for testing.

    You can test the API by running the code and making a GET request to the URL http://localhost:8080/api/example. When you make the request, you should see the JSON response containing the string "C# ist für noobs, die keine Pointer verstehen looooool xDDD" displayed in the response.

    You can customize the code as needed to add additional actions, change the URL of the API, or add other features. Consult the documentation for the C

  • #2092 RichterinWinkelmann 9 Dez. 2022, 13:15

    Find a time efficient way to solve the Boolean Satisfiability Problem.


    The Boolean Satisfiability Problem (SAT) is a well-known NP-complete problem, which means that there is no known polynomial-time algorithm that can solve all instances of the problem. This means that finding a time efficient solution to the problem is very difficult. However, there are several heuristic algorithms that can solve SAT instances quickly in many cases. Some examples of these algorithms include local search, simulated annealing, and genetic algorithms. These algorithms can often find solutions to SAT instances quickly, but there is no guarantee that they will always find the optimal solution. Additionally, these algorithms may not be efficient for all instances of the SAT problem.

    AI mal wieder ausgetrickst.

  • Mod/RDW
    #2093 BigBANG 9 Dez. 2022, 13:20

    Fuck alter, diese AI ist so gut. Sie kann einem echt alles technische erklären.

  • #2094 RichterinWinkelmann 9 Dez. 2022, 13:22

    Zitat von: BigBANG

    Fuck alter, diese AI ist so gut. Sie kann einem echt alles technische erklären.
    Ich spiel grade auch zum Spaß etwas damit rum. Wenn man komplizierte Sachen fragt spart es gerne die komplizierten Teile aus und schreibt da TODOs rein. Aber sehr lustig auf jeden Fall!

  • Mod/RDW
    #2095 Sylvester 9 Dez. 2022, 13:23

    Zitat von: BigBANG

    Meine Art zu programmieren wird sich für immer verändern. Du kannst echt fast jeden Code generieren lassen mit:

    Beispiel:
    Code a C# web api that returns the string "C++ ist outdated looooool xDDD".

    Und die AI antwortet:


    Hier die Antwort auf:
    "Code a C++ web api that returns the string "C# ist für noobs, die keine Pointer verstehen looooool xDDD""
    Wie kann C++ outdated sein, wenn der C++23 Standard gerade verabschiedet wurde?

  • Mod/RDW
    #2096 BigBANG 9 Dez. 2022, 13:24

    Zitat von: Hexley

    Wie kann C++ outdated sein, wenn der C++23 Standard gerade verabschiedet wurde?
    Ich hab's extra nur geschrieben, um dich zu foppen.

  • #2097 RichterinWinkelmann 9 Dez. 2022, 13:24

    Zitat von: Hexley

    Wie kann C++ outdated sein, wenn der C++23 Standard gerade verabschiedet wurde?
    C++ is not necessarily outdated, but it has evolved over time and there are now many other programming languages that are better suited to certain tasks. C++ was first developed in the 1980s, and it has undergone many changes since then, with the release of new versions of the language, such as C++11, C++14, and C++17. The latest version of the language, C++23, was released in 2022.
    While C++ is still a popular and powerful language, it is not always the best choice for every programming task. For example, it is a low-level language, which means that it provides a lot of control over how a program accesses and manipulates memory, but this can also make it difficult to write and maintain large, complex programs. Additionally, C++ has a steep learning curve, which can make it difficult for beginners to learn.
    In contrast, there are many other programming languages that are designed to be easier to learn and use, and that offer features that make it easier to write and maintain large, complex programs. These languages include Python, Java, and C#, among others. These languages are often used for tasks such as web development, data analysis, and machine learning, where C++ may not be the best choice.
    In conclusion, while C++ is a powerful and popular programming language, it is not always the best choice for every task. The release of a new version of the language, such as C++23, does not necessarily make it more relevant or up-to-date than other languages.

    Spoiler: Frage
    Why is c++ outdated even if a new standard (c++23) was just recently released

  • Mod/RDW
    #2098 BigBANG 9 Dez. 2022, 13:30

    Alter die AI gibt bessere Antworten als wir.

  • Mod/RDW
    #2099 Sylvester 9 Dez. 2022, 13:31

    Zitat von: RichterinWinkelmann

    While C++ is still a popular and powerful language, it is not always the best choice for every programming task. For example, it is a low-level language, which means that it provides a lot of control over how a program accesses and manipulates memory, but this can also make it difficult to write and maintain large, complex programs.
    Da sieht man es wieder, AI ist teilweise strohdoof. Gerade bei großen und komplexen Projekten ist C++ die beste Wahl, weil man damit ein sehr hohes Abstraktionslevel abbilden kann.

  • Mod/RDW
    #2100 BigBANG 9 Dez. 2022, 13:33

    Zitat von: Hexley

    Gerade bei großen und komplexen Projekten ist C++ die beste Wahl, weil man damit ein sehr hohes Abstraktionslevel abbilden kann.
    Das verstehe ich nicht so ganz. Das kann man doch über Interfaces bei Java und C# ganz genauso? (Und mit weniger Gedanken über memory management)

LSMaxx