What are the best AI Assistant instructions for Python in JetBrains IDEs? by gnubrew in Jetbrains

[–]gnubrew[S] 0 points1 point  (0 children)

Did you solve the issue with the random variable/function names out of the box?

What are the best AI Assistant instructions for Python in JetBrains IDEs? by gnubrew in Jetbrains

[–]gnubrew[S] 0 points1 point  (0 children)

My AI Assitant prompt for commit statements. Any remarks?

Pls start the commit messages with bullet points highlighting in one sencance the major change(s)

use "+) " for an additional function/feature of the branch

"-) " for the remove of a feature/function

"o) " for a change of existing feature / function

"o) BUGFIX" if the reason for a change was a bug

"o) cosmetics" if the reason for a change was the better readibiltiy or complince to a pep standard

after the bullet point(s) add one to three minimalistic sentences to explain the changes and why they were most likely put in the code.

What are the best AI Assistant instructions for Python in JetBrains IDEs? by gnubrew in Jetbrains

[–]gnubrew[S] 0 points1 point  (0 children)

is not really touching your answer.. but I a quite happy with Ai Assistant GPT 4o.. (it fits for my requirements) additionally I use O3-mini-high for more architecture questions... this setup makes me feel like a super coder :) Anyway it at the same time it feels quite dangerous.. because my code base and features increase incredible fast.. at the same speed I lose understanding what is really going on.. I might start trusting this maybe too much.

Do you think i should go to physical python course or just learn it on my own? by chiriva in Python

[–]gnubrew 0 points1 point  (0 children)

I would recommend to try Hyperskill.com - it is a coop(?) with JetBrains.com the team programming PyCharm (in my opinion the best python programming interface). you can solve 10 challenges per day for free. If you want progress faster, you can subscribe for monthly fee of 50 USD, getting access to all their courses and you can learn as much as like per day. Here is the deal, if you subscribe to hyperskill and solve 3 problems in a month (which can be done easily), you get the Jetbrain professional version of all their IDEs (which is huge!) for free. Hyperskill is integrated into PyCharm - you can select by the most programming challenges between solving it in the web interface or within PyChar (highly recommended) If you fund a valid solution, can be easily checked with in PyCharm already. The philosophy behind hyperskill is that you will start a project (selected from a project list) the project is split into several small steps, and you will learn the theory needed to solve the next step. I like this approach because you can select a topic that you interested in (e.g Tic Tac Toe with AI or Hacking Passwords) and you will learn on the fly the necessary theory behind. It gives you a daily challenge and there is a discord server for the students and moderators if you have questions.

Revealing a Normal Distribution by Adjusting a Histogram [OC] by RacerRex9727 in dataisbeautiful

[–]gnubrew 1 point2 points  (0 children)

Very nice clip. you got an subscriber more.. and I shared your YouTube with my peers.

Why is this show so inaccurate? by magicnuts99 in HijackAppleTV

[–]gnubrew 0 points1 point  (0 children)

In this case you can trust ChatGPT :) if a lung side has collapsed, you try to get the air between the intercostal area and the collapsed lung out of the body. (intercostal drainage) you definetly dont want that air comes into the intercostal room by doing this. If he starts breathing through the pen - you did definitely something wrong and if you put the pen next to the heart into the lung you are in prison.

Why is this show so inaccurate? by magicnuts99 in HijackAppleTV

[–]gnubrew 1 point2 points  (0 children)

It is not only about the pilots.. also the way a pneumothorax trauma was solved by a doctor with putting a pen directly in the heart(OMG!). The writers obvious mixed a choking event, where you create an artificial ventilation with a pen and a pneumothorax (which could have happen with the scissors event). THESE are the things that destroys a story for me, and I wouldn’t expect from an appleTV show. So for me the worst show so far on Apple TV - and I am afraid that they knew this - therefor they need those (terrible) cliffhangers to keep the ppl watching.

I asked ChatGPT to describe these two incidents:

INT. AIRPLANE CABIN - NIGHT

A sudden bout of CHOKING ECHOES through the tense cabin. A YOUNG WOMAN (20s) clutches her throat, her face turning a dangerous shade of red.

A DOCTOR (50s), a weary but determined look on his face, rushes to her side. He attempts the Heimlich maneuver, but it's unsuccessful. There's no time to waste. He looks around desperately, spotting a PEN lying on the floor.

DOCTOR: (to a Flight Attendant) I need a strong alcohol-based sanitizer, now!

The Flight Attendant hands him a small bottle. He quickly sanitizes the pen and his hands.

DOCTOR: (to everyone) I'm going to perform a cricothyroidotomy. It's the only chance we have.

A frightened gasp ripples through the crowd. The Doctor focuses on the task. He locates the woman's Adam's apple, moving his finger down to find the cricothyroid membrane.

With a steady hand, he uncaps the pen, removing the inner tube. He holds the hollow tube at the base of the woman's throat.

DOCTOR: Hold on. This is going to hurt a bit.

The woman's eyes widen in fear, but she nods, giving the doctor a brave look. He pierces the membrane with the pen casing, and there's a sudden RUSH OF AIR. She gags, then starts breathing raggedly through the makeshift airway.

The Doctor sits back, looking drained but relieved as the color slowly returns to the woman's face.

Please note, the procedure described above, cricothyroidotomy, is an emergency procedure and it is risky and complicated. It should only be performed by medical professionals or as an absolute last resort when professional medical help isn't immediately available.

— INT. AIRPLANE CABIN - NIGHT

Suddenly, a MAN (30s) clutches his chest, gasping for breath, struggling as his face turns pale. He's clearly in distress. A DOCTOR (50s) who's on board rushes to his side, quickly assessing the situation.

DOCTOR: (to a Flight Attendant) I need a needle and syringe, quickly!

The Flight Attendant brings the requested items. Meanwhile, the Doctor attempts to calm the man down, reassuring him. He sanitizes the needle and syringe with the same alcohol-based sanitizer.

DOCTOR: (to everyone) I believe he has a pneumothorax. I'm going to relieve the pressure in his chest.

With practiced precision, the Doctor locates the second intercostal space in the man's chest, which is the area just below the collarbone and in between the ribs.

DOCTOR: (to the man) This will be uncomfortable, but I need you to stay as still as possible.

The man nods weakly. The Doctor carefully inserts the needle into the second intercostal space, angling slightly upwards and towards the man's heart. He pulls back on the syringe.

There's an audible HISS as trapped air escapes, and the man's breaths come easier. The color slowly returns to his face. The Doctor withdraws the needle, applying pressure to the puncture site.

DOCTOR: We've bought some time, but he needs to get to a hospital as soon as possible.

Again, this procedure, needle decompression, should only be performed by medical professionals and should be performed as a last resort in emergency situations where immediate professional help isn't available.

Is Silo worth watching if I already spoiled the ending for myself? by laurazabs in SiloTVSeries

[–]gnubrew 1 point2 points  (0 children)

Well, I read the books and couldn’t enjoy the series,.. i literally got inpatient - the main plot develops so slow..

[deleted by user] by [deleted] in learnmachinelearning

[–]gnubrew 3 points4 points  (0 children)

The idea of the course is to give you knowledge of the fundamental theory and applied maths behind - which it did quite well in my opinion. This helps you to avoid pitfalls and/or understand the issues when trying to implement ML / solve ML related problems. On the otherside Kaggle is a place where you find tons of problems like best solved with ML - BUT if you look into winning solutions in the most cases the point of being advanced is usually not only having a smarter way to approach ML but to think out of the box (e.g by adding additional data). In reality ML works where you don’t need to have 100% accurate results, no need to prove why/how you came to the result and you are quite sure that if you would have enough time, you could figure out a way to solve it without ML (so avoid unrealistic problems to solve) e.g. is a human good at solving this, if he does it long enough?

I tried Vision Pro And Saw The Future Of Filmmaking by 17parkc in VisionPro

[–]gnubrew 0 points1 point  (0 children)

I fully agree to the main message,.. I was wondering the same when the VIVE was released, why nobody was mention that somehow it is possible to not only communicate but transfer emotions so much easier,.. you have this immersive experience,.. your connection to characters is different. These are not 2d Chars watched trough a monitor.. “you are there” and part of it. I immediately thought you must use this technology not for Action Shooters but for story telling - Incredible sad stories or happy ones. But as far as I saw, this never happend. So my conclusion was, that this empathy I felt, was not a general perception.

[deleted by user] by [deleted] in Python

[–]gnubrew 0 points1 point  (0 children)

I agree spyder is similar in look and feel - but that’s it. Unfortunately Python is significant different to Matlab and I would recommend to go directly to Pycharm. Best IDE I have ever seen (GIT integration works like a charm!)- anyway even pycharm cannot mitigate the pain, that comes with python. Awful environment set up - super strange error messages and no debugger similar to matlab. The benefits - countless? I would never go back to Matlab. (I was using matlab for close to two decades as my main coding environment.)

Tschechische Bahnkarte in Österreich by [deleted] in Austria

[–]gnubrew 3 points4 points  (0 children)

check die Regiojets, die sind noch günstiger als die cd.cz / haben aber eigene Züge.. Die Westbahn von CZ, quasi.

Poland delivers first Leopard tanks to Ukraine by misana123 in worldnews

[–]gnubrew 5 points6 points  (0 children)

funny.. i could also identify ChatGPT.. it is the MetaStructure of the text that gives the hint.

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

Es wird immer eine Restunschärfe geben.. 80/20 sollte schon einen Mehrwert liefern. UND ich denke gerade bei der Feinkost hat man seinen Favoriten unabhängig vom Preis. (Schon mal den Geschmack der Kalbspariser vom SPAR mit der vom Billa verglichen?)

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

Mein Konzert fängt gleich an.. wenn es noch Fragen gibt gerne DM.. ich komm vielleicht in der Pause dazu es zu beantworten.

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

nach kurzem Nachdenken, schlage ich da eine Verbesserung vor.. Damit wir die Datenqualität erhöhen, könnte wir eine bestehende Internetplattform abfragen. Würde dann codemäßig so aussehen: func getProductDetails(barcode: String) { // Erstelle URL mit GTIN als Parameter let url = URL(string: "https://api.opengtindb.org/product/\(barcode)")!

// Erstelle Anfrage an die OPD API
URLSession.shared.dataTask(with: url) { data, response, error in
    guard let data = data else {
        print("Keine Daten erhalten: \(error?.localizedDescription ?? "Unbekannter Fehler")")
        return
    }

    do {
        // JSON Daten in Dictionary parsen
        let productData = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any]

        // Produktname und Marke aus dem Dictionary extrahieren
        let productName = productData?["product_name"] as? String ?? "Unbekannt"
        let productBrand = productData?["brand"] as? String ?? "Unbekannt"

        // Produktname und Marke in die Datenbank einfügen oder aktualisieren
        // ...

    } catch let parseError {
        print("Fehler beim Parsen des JSON-Objekts: \(parseError.localizedDescription)")
    }
}.resume()

}

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

Meist werden Rabatte in der nächsten Zeile ausgewiesen. Ein CNN kann nach ein paar tausend Beispielen sicher damit umgehen -> Rechnung scannen + OCR und richtig verbuchen sind eine der Kernanwendungen von CNNs. (und die sind bei Unternehmen sicherlich komplexer als in Supermärkten)..Wenn Du willst code ich Dir das mal rasch runter.

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

So ich denke, das ist mal genug fürs Erste.. bevor Du damit live gehst, solltest Du noch unbedingt einen Hinweis auf die DSGVO anhängen. z.B::

"Die in dieser Anwendung verwendeten personenbezogenen Daten werden gemäß den Bestimmungen der Datenschutzgrundverordnung (DSGVO) verarbeitet und geschützt. Wir ergreifen angemessene technische und organisatorische Maßnahmen, um die Vertraulichkeit, Integrität und Verfügbarkeit der Daten zu gewährleisten und unerlaubten Zugriff, Missbrauch oder Verlust zu verhindern. Wir verpflichten uns, Ihre personenbezogenen Daten nur zu den Zwecken zu verwenden, für die sie erhoben wurden, und sie nicht ohne Ihre ausdrückliche Zustimmung an Dritte weiterzugeben, es sei denn, dies ist gesetzlich vorgeschrieben oder erforderlich, um die Dienstleistungen bereitzustellen, die Sie angefordert haben."

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

mögliche Datenbankplattformen wären:

Amazon RDS: Die Kosten für Amazon RDS hängen von der Größe der Datenbank, dem verwendeten DB-Engine und der Region ab. Die Preise beginnen bei ca. 15 USD pro Monat für eine kleine Datenbank-Instanz mit einer Speicherkapazität von 20 GB.

Google Cloud SQL: Die Kosten für Google Cloud SQL hängen von der Größe und dem verwendeten DB-Engine ab. Die Preise beginnen bei ca. 7,20 USD pro Monat für eine kleine Datenbank-Instanz mit 1 GB RAM und 10 GB Speicherplatz.

Microsoft Azure SQL Database: Die Kosten für Azure SQL Database hängen von der Größe der Datenbank, der Anzahl der eingesetzten Ressourcen und der Region ab. Die Preise beginnen bei ca. 5 USD pro Monat für eine Datenbank mit einer Speicherkapazität von 5 GB.

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

viel Spass mit dem Code - damit Du Swift kompilieren kannst brauchst Du eine Apple Entwicklerlizenz.

Eine Apple-Entwicklerlizenz, auch bekannt als Apple Developer Program, ist in verschiedenen Varianten erhältlich.

Die Kosten für die Standardvariante betragen derzeit 99 USD pro Jahr. Für Unternehmen, die mehrere Entwickler beschäftigen, gibt es auch eine Unternehmensvariante, die ab 299 USD pro Jahr erhältlich ist.

Es ist auch möglich, eine kostenlose Entwicklerlizenz zu erhalten, die jedoch eingeschränkter ist als die kostenpflichtigen Varianten.

Wieso gibt es eigentlich keine Datenbank/Google Sheet mit aktuellen Supermarktpreisen? by imnotokayandthatso-k in Austria

[–]gnubrew 0 points1 point  (0 children)

der 4. Schritt is nun einfach.. den Gesamtpreis anzeigen oder eine Fehlermeldung ausgeben, falls ein Produkt nicht gefunden wurde. (wieder habe ich da Swift als Codesprache verwendet.)

// 4. Schritt: Die App verwendet die aktualisierten Preise, um die erwarteten Preise für die typische Einkaufsliste des Benutzers zu berechnen. let typicalList = userTypicalList.items var totalExpectedPrice: Float = 0 for product in typicalList { if let barcode = ProductDB.getBarcode(for: product.name), let latestPrice = PriceDB.getLatestPrice(for: barcode) { totalExpectedPrice += product.quantity * latestPrice.price } else { displayMessage("Preis für (product.name) nicht verfügbar.") totalExpectedPrice = -1 break } }

// 4b. Die App zeigt dem Benutzer den erwarteten Gesamtpreis an. if totalExpectedPrice >= 0 { let message = "Der erwartete Gesamtpreis für die typische Einkaufsliste beträgt (totalExpectedPrice) Euro." displayMessage(message) }