Programmieren & Softwareentwicklung

2.481 Mitglieder, 27.615 Beiträge

Wie schwer ist es eine eigene Website zu programmieren?

Wie schwer ist es eine Website zu programmieren. In der Website soll es sich um eine Verkaufsplattform handeln, so etwas wie die die man sich bei Sophify erstellen kann. Das heißt es soll die Möglichkeit haben, das man mit Paypal zahlen kann man Sachen abrufen kann danach also z.b. das man sich ein E Book kauft was man dann nachdem Kauf anklicken kann etc. . Also wie schwer ist das selber zu programmieren, gerne auch Empfehlungen für Yt Videos und wie lange es dann ungefähr zum lernen an Zeit kostet und wie sehr könnte mir aber auch z.b. chatgbt dabei helfen oder vlt. sogar andere ki die extra dafür ausgelegt sind. Und welche Kosten dann noch auf mich zu z.b. kosten für eine url… . Achso und welches programm ihr dann zum schreiben empfehlen würdet z.b. java,… und auch wie ich überhaupt eine Website wirklich erstelle.

JS Taschenrechner, Dezimal in Binär und andersherum auch?

Hallo Zusammen, ich bin seit knapp 3 Wochen in meiner Ausbildung und sollte einen Taschenrechner programmieren, was bis jetzt auch geklappt hat. Nun habe ich eine neue Aufgabe dazu bekommen, nämlich mit 2 Radio Buttons mir jeweils anzeigen zu lassen: Binär und Dezimal. Ich bin absolut hilflos und freue mich über mögliche Lösungen und HIlfe. Danke im voraus. <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Taschenrechner No. 3</title> <script> let aktuellesErgebnis = 0; let modus; let aktuelleZahl; function AddLetter(zahl) { if(modus == null) { document.getElementById("textboxDisplay").value = zahl; modus = "Nummern"; } else { document.getElementById("textboxDisplay").value += zahl; } } function Plus() { Hilfe(); document.getElementById("textboxDisplay").value = ""; modus = "Plus"; } function Minus() { Hilfe(); document.getElementById("textboxDisplay").value = ""; modus = "Minus"; } function Mal() { Hilfe(); document.getElementById("textboxDisplay").value = ""; modus = "Mal" } function Geteilt() { Hilfe(); document.getElementById("textboxDisplay").value = ""; modus = "Geteilt" } function Restwert() { Hilfe(); document.getElementById("textboxDisplay").value = ""; modus = "Modulo" } function Gleich() { Hilfe(); document.getElementById("textboxDisplay").value = aktuellesErgebnis; modus = null; } function Hilfe() { aktuelleZahl = Number(document.getElementById("textboxDisplay").value); if(modus == "Plus") { aktuellesErgebnis += aktuelleZahl; } if(modus == "Minus") { aktuellesErgebnis -= aktuelleZahl; } if(modus == "Mal") { aktuellesErgebnis *= aktuelleZahl; } if(modus == "Geteilt") { aktuellesErgebnis /= aktuelleZahl; } if(modus == "Modulo") { aktuellesErgebnis %= aktuelleZahl; } if(modus == null || modus == "Nummern") { aktuellesErgebnis = aktuelleZahl; } } function Weg() { document.getElementById("textboxDisplay").value = ""; aktuellesErgebnis = 0; modus = null; } </script> </head> <body> <input type="radio" name="Umrechnung" value="Binär" /> <input type="radio" name="Umrechnung" value="Dezimal" /> <input id="textboxDisplay" readonly /> <input type="button" value="1" onclick="AddLetter(&apos;1&apos;)" /> <input type="button" value="2" onclick="AddLetter(&apos;2&apos;)" /> <input type="button" value="3" onclick="AddLetter(&apos;3&apos;)" /> <input type="button" value="4" onclick="AddLetter(&apos;4&apos;)" /> <input type="button" value="5" onclick="AddLetter(&apos;5&apos;)" /> <input type="button" value="6" onclick="AddLetter(&apos;6&apos;)" /> <input type="button" value="7" onclick="AddLetter(&apos;7&apos;)" /> <input type="button" value="8" onclick="AddLetter(&apos;8&apos;)" /> <input type="button" value="9" onclick="AddLetter(&apos;9&apos;)" /> <input type="button" value="0" onclick="AddLetter(&apos;0&apos;)" /> <input type="button" value="+" onclick="Plus()" /> <input type="button" value="-" onclick="Minus()" /> <input type="button" value="*" onclick="Mal()" /> <input type="button" value="/" onclick="Geteilt()" /> <input type="button" value="Mod" onclick="Restwert()" /> <input type="button" value="Löschen" onclick="Weg()" /> <input type="button" value="=" onclick="Gleich()" /> </body> </html>

Wie bekomme ich den ESP32-WROOM-32 in den Boot Modus?

Hallo, ich versuche bereits seit gestern, ein Skript auf meinen ESP32 zu laden. Wenn ich das mit der Arduino IDE mache, blinkt der ESP beim Hochladen nicht. Deshalb habe ich mir ein Python-Skript geschrieben, welches den ESP32 normalerweise automatisch flashen und das Skript hochladen sollte. Tatsächlich blinkt er nun beim Ausführen des Codes, allerdings tritt direkt nach der Verbindung ein Fehler auf: esptool.py v4.7.0 Serial port COM3 Connecting...................................... Fehler beim Flashen der Firmware: Failed to connect to ESP32: Invalid head of packet (0xFF): Possible serial noise or corruption. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html hier übrigens der Code; import esptool def flash_esp32(port, baudrate, firmware_path): try: esptool.main([ &apos;--chip&apos;, &apos;esp32&apos;, &apos;--port&apos;, port, &apos;--baud&apos;, str(baudrate), &apos;write_flash&apos;, &apos;-z&apos;, &apos;0x1000&apos;, firmware_path ]) print("Firmware erfolgreich geflasht.") except Exception as e: print(f"Fehler beim Flashen der Firmware: {e}") if __name__ == &apos;__main__&apos;: port = &apos;COM3&apos; baudrate = 9600 firmware_path = r&apos;C:\Users\Julian.DESKTOP-J7KSTFA\Documents\Arduino\PGS\PGS.ino&apos; flash_esp32(port, baudrate, firmware_path)

Wie behebe ich den folgenden Fehler in Unreal Editor für Fortnite?

Hallo, ich wollte eine ganz normale Fortnite Map entwickeln und einen Fluss erstellen, das Problem ist aber: Der Fluss passt sich nicht mehr mit dem Boden an, das Wasser ist also in der Luft. Komischerweise hat es vorher geklappt, danach nicht mehr. Ich habe dann auch andere Inselvorlagen getestet, wo es dann auch geklappt hat, nur bei meiner Insel ist es nicht mehr möglich. Ich hoffe, mir kann hier jemand helfen und ich bedanke mich schon im Voraus LG LBGaming
Bild zum Beitrag

Solide Python Bib für GUI für ggf. komm. Entwicklung?

Moinsen, ich wollt mal fragen was ihr denn für GUI-Bibs nutzt für folgendes Szenario: Man entwickelt ein Programm in Python mit einer Grafikbibliothek X mit der Absicht, dass ggf. zu verkaufen, anderen also die Nutzung des Programmes zur Verfügung zu stellen. Man möchte Urheberrechte und Vertriebsrechte behalten und den Quellcode nicht offen legen und das ganze also kommerziell verwenden können. Welche Bibliothek käme hierfür in Frage?

Programmierfehler?

Hallo zusammen, ich habe leider ein Problem bei einer Batch-Datei. Ich programmiere selber Batch, kann aber dieses Problem nicht lösen. Es handelt sich um diesen Code: @echo off color f0 title Leon&apos;s IP scanner -By Kein Zugriff :menu cls echo. echo. echo 1) Scan IP&apos;s echo 2) Shutdown PC echo 3) Be cool echo 4) Quit set /p input="1 , 2 , 3 or 4 : " if %input% == 1 ( cls echo Scanning IP&apos;s in you&apos;re near... timeout 3 > NUL: /NOBREAK echo. echo IP&apos;s found! (or not) timeout 2 > NUL: /NOBREAK arp -a echo press any key to continue... pause > NUL: /NOBREAK goto menu ) if %input% == 2 ( cls echo PC Shutsdown... Shutdown -s -t 100 exit ) if %input% == 3 ( cls goto cool ) if %input% == 4 ( exit ) :cool color 0a cls goto spam :spam echo Cool! timeout 1 > NUL: goto spam Ich brauche eine Antwort. Danke. :)

WebGL - Clip Space | Pixel Space?

// Renderer Beispiel render(){ const s2 = new Square(300, 100, 70, [0, 1, 1, 1]); s2.setup(this.context, this.program); s2.render(this.program, this.context, deltaTime); this.vertexManager.draw(3, 0, 4, 100, 100, 0, [0,0,1,1]); } // export class Square extends Renderable { constructor (x, y, size, color) { super(); this.x = x; this.y = y; this.size = size; this.color = color; this.vertices = new Float32Array([ -size / 2, -size / 2, size / 2, -size / 2, size / 2, size / 2, -size / 2, size / 2, ]); this.vertexBuffer = null; this.colorBuffer = null; this.transformationMatrix = createIdentityMatrix3(); } setup (gl, program) { this.vertexBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, this.vertexBuffer); gl.bufferData(gl.ARRAY_BUFFER, this.vertices, gl.STATIC_DRAW); } updateTransformationMatrix (x, y, scaleX, scaleY, angle) { const translationMatrix = createTranslationMatrix(x, y); const rotationMatrix = createRotationMatrix(angle); const scalingMatrix = createScalingMatrix(scaleX, scaleY); // Combine the matrices: translation * rotation * scaling const combinedMatrix = multiplyMatrices(rotationMatrix, multiplyMatrices(translationMatrix, scalingMatrix)); // Save the transformation matrix this.transformationMatrix = combinedMatrix; } render (program, gl, camera, deltaTime) { gl.bindBuffer(gl.ARRAY_BUFFER, this.vertexBuffer); // Re-enable the vertex attribute array const positionLocation = gl.getAttribLocation(program, &apos;a_position&apos;); gl.enableVertexAttribArray(positionLocation); gl.vertexAttribPointer(positionLocation, 2, gl.FLOAT, false, 0, 0); const colorLocation = gl.getUniformLocation(program, &apos;u_color&apos;); gl.uniform4fv(colorLocation, this.color); const matrixLocation = gl.getUniformLocation(program, &apos;u_matrix&apos;); this.updateTransformationMatrix(this.x, this.y, 1.0, 1.0, 0); gl.uniformMatrix3fv(matrixLocation, false, this.transformationMatrix); gl.drawArrays(gl.TRIANGLE_FAN, 0, this.vertices.length / 2 + 1); } } export default class VertexManager { constructor (gl, program) { this.gl = gl; this.program = program; this.buffers = new Map(); this.initBuffers(); } initBuffers () { this.createBuffer(BUFFER_TYPES.CIRCLE, createPolygonVertices(64, 1)); this.createBuffer(BUFFER_TYPES.SQUARE, new Float32Array([ -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, 0.5, ])); .... } createBuffer (type, vertices) { const buffer = this.gl.createBuffer(); this.gl.bindBuffer(this.gl.ARRAY_BUFFER, buffer); this.gl.bufferData(this.gl.ARRAY_BUFFER, vertices, this.gl.STATIC_DRAW); this.buffers.set(type, { buffer, vertexCount: vertices.length / 2 }); } draw (type, x, y, scaleX, scaleY, rotation, color) { const { buffer, vertexCount } = this.buffers.get(type); this.gl.bindBuffer(this.gl.ARRAY_BUFFER, buffer); // Re-enable the vertex attribute array const positionLocation = this.gl.getAttribLocation(this.program, &apos;a_position&apos;); this.gl.enableVertexAttribArray(positionLocation); this.gl.vertexAttribPointer(positionLocation, 2, this.gl.FLOAT, false, 0, 0); // Setup the color const colorLocation = this.gl.getUniformLocation(this.program, &apos;u_color&apos;); this.gl.uniform4fv(colorLocation, color); const matrixLocation = this.gl.getUniformLocation(this.program, &apos;u_matrix&apos;); // Create transformation matrices directly in pixel space const translationMatrix = createTranslationMatrix(x, y); const rotationMatrix = createRotationMatrix(rotation); const scalingMatrix = createScalingMatrix(scaleX, scaleY); // Combine them: translationMatrix * rotationMatrix * scalingMatrix const combinedMatrix = multiplyMatrices(rotationMatrix, multiplyMatrices(translationMatrix, scalingMatrix)); // Pass the transformation matrix to the shader this.gl.uniformMatrix3fv(matrixLocation, false, combinedMatrix); this.gl.drawArrays(this.gl.TRIANGLE_FAN, 0, vertexCount); } } Meine Frage ist, warum mein Quadrat korrekt im Pixel-Space gerendert wird, während die draw-Operation in meinem VertexManager Clip-Space zeichnet, obwohl beide denselben Shader verwenden. Ich habe das Problem schon seit Stunden versucht zu lösen. Hat jemand eine Lösung oder einen Hinweis, was ich möglicherweise falsch mache?
Bild zum Beitrag

code output (bash)?

Ich habe in bash ein Menu geschrieben was ein Netzwerk nach einer gewissen IP/mac scannt und sagt ob diese damit verbunden ist allerdings wird es über dem Menu angezeigt. Code: #! /usr/bin/bash #Function for menu server_name=$(test) function mac() { clear echo "Enter mac/ip address:" read a echo "Please wait this can take a moment ..." arp-scan -l | grep $a echo "done" } function tom() { clear echo "Scan on tom is running.." echo "Please wait this can take a moment ..." arp-scan -l | grep "a certan mac" echo "done" } function info() { clear echo This is a simple program to scan a network for certian mac or ip addressess. } #color for menu green=&apos;\e[32m&apos; blue=&apos;\e[34m&apos; clear=&apos;\e[0m&apos; ## # Color Functions ## ColorGreen(){ echo -ne $green$1$clear } ColorBlue(){ echo -ne $blue$1$clear } #menu menu(){ echo -ne " ##### # # # # # # # ###### #### # # ###### ##### # # ## # # # # # # # # # # # # # # # # ###### ##### # #### ##### # # # # # # # # # # # # # ##### # # # # # # # # # # # # # # # # # # ##### # # ###### #### # # ###### # # # ##### -------------------------------------------------------------------- | Run with root otherwise the program will not work properly! | -------------------------------------------------------------------- $(ColorGreen &apos;1)&apos;) Mac (run with root) $(ColorGreen &apos;2)&apos;) tom scan $(ColorGreen &apos;3)&apos;) Info $(ColorGreen &apos;0)&apos;) Exit $(ColorBlue &apos;Choose an option:&apos;) " read a case $a in 1) mac ; menu ;; 2) tom ; menu ;; 3) info ; menu ;; 0) exit 0 ;; *) echo -e $red"Wrong option."$clear; WrongCommand;; esac } menu --- Ich hoffe das ich den code richtig reingeschrieben habe da ich ihn nicht kopieren konnte das es alles zusammengeworfen hat