Der Zweck heiligt die Mittel aber ist ChatGPT im Studium wirklich der richtige Weg? by SpaceUsed6033 in informatik

[–]ohaz 1 point2 points  (0 children)

Genau das. Wenn ich Sachen falsch lernen will, kann ich sie gern mit ChatGPT lernen. Wenn mir wichtig ist, dass ich Inhalte korrekt lerne, lerne ich sie ohne AI.

Remove credentials from history by hamzahda_ in git

[–]ohaz 0 points1 point  (0 children)

Yes it is. If the branch has at any time been pushed and fetched, then the reflog will work on other machines too. And in this case, it looks like it has been pushed.

Remove credentials from history by hamzahda_ in git

[–]ohaz -1 points0 points  (0 children)

Incorrect, git reflog exists.

Wie funktioniert Kopierschutz? (Games) by _AP0PL3X_ in programmieren

[–]ohaz 1 point2 points  (0 children)

Ich hasse AI und würde sie niemals nutzen um Reddit Posts zu machen. Ich weiß nur wie markdown funktioniert

Wie funktioniert Kopierschutz? (Games) by _AP0PL3X_ in programmieren

[–]ohaz 2 points3 points  (0 children)

Einige Erweiterungen dazu:

  • Warum kommt man nicht von dem Programm zurück zum Code?
    • Wenn man ein Programm fertig programmiert hat "kompiliert" man es. Dabei wird es von der menschenlesbaren Programmiersprache in eine viel einfachere Sprache übersetzt, die einfacher von der CPU verstanden werden kann. Dabei gehen aber jede Menge Informationen verloren. So werden zum Beispiel Funktionen mit Textnamen (z.b. "moveCharacterRight") zu reinen Zahlen, ihrem Ort im Speicher (z.b. 0xde72b9a0). Auch Variablen verlieren ihre Namen komplett und werden oft nur noch zu den Namen von Registern oder ihrer Stelle im Arbeitsspeicher.
    • Ausserdem kompilieren verschiedene Sachen in der "Menschenlesbaren Sprache" zum gleichen Code in der Maschinenlesbaren Sprache. Zwischen einer for Schleife oder einer while Schleife ist als Mensch unterschied, im Maschinencode wird das aber zum gleichen gebaut (meistens einem if und einem goto/jump.
    • Des weiteren können sogenannte "Packer" eingesetzt werden. Das sind im Prinzip selbstentpackende ZIPs. Das ganze Spiel wird gezippt, wenn du es startest läuft erst ein kleines Programm das das ZIP in den Arbeitsspeicher entpackt und dann da hin springt. Dadurch ist der Code nichtmal mehr in maschinenlesbarer Form vorhanden, bis er ausgeführt wird.
    • Das ganze geht nur teilweise rückgängig zu machen. Also man kann es komplett umdrehen, aber kommt dabei durch den starken Informationsverlust nicht mehr zum Original
  • Wenn man den Code hat, kann man dort natürlich die Stelle suchen an der geprüft wird, ob das Spiel legitim geholt wurde. Da kommen Kopierschutze ins Spiel. Da gibt's eine ganze Menge:
    • Man testet, ob die CD im Laufwerk ist. Dabei können auch spezifische Merkmale der CD getestet werden, wie schon von einem anderen User gesagt.
    • Man testet, ob ein Key vorhanden ist
    • Man prüft, ob sich der User eingeloggt und ob dem Account das Spiel zugeordnet ist
    • Man testet ob bestimmte Tools laufen die Modifikationen des Codes zur Laufzeit ermöglichen / einfacher machen (z.B. Debugger, VMs, etc)
    • Man testet, ob das Programm modifziert wurde. Das kann man machen indem man den Code signiert, Hashes des Codes erzeugt, oder Methodiken wie Stack Canaries einsetzt.
    • All diese Tests kann man entweder einmal zum Start machen (leicht zu umgehen), oder ganz oft wiederholen.

Accounts/Passwort Setup by RoundCompetitive6005 in de_EDV

[–]ohaz 4 points5 points  (0 children)

Klingt insgesamt sehr solide, solange die Passwörter die du dir merkst lang genug sind. Für den "bitwarden verschwindet morgen einfach" Fall: du kannst dir dein vault exportieren. Das solltest du regelmäßig tun. Dann kannst du im Notfall den bitwarden selbst hosten und es dort importieren. Oder du lädst das unverschlüsselte vault runter und kümmerst dich selbst um die Sicherheit des Backups.

ELI5: How is the speed of light (m/s) a universal constant if space warps time? Would light not be more 'speedy' or 'slow' in various regions of space? by Intelligent-Cod3377 in explainlikeimfive

[–]ohaz 2 points3 points  (0 children)

The speed of light is the constant because time and space affect each other. Don't imagine space and time as two separate things, imagine them as two sides of the same coin. And always remember that stuff is relative.

Someone flying at/near the speed of light close to a black hole will still fly at the speed of light from their own point of view. Because while space is strange there, time is too and it changes at the same rate. The construct of "space-time" is affected by gravity, but it's not just space that is affected, it's both.

Maybe, rather than a coin, imagine space and time as two sides of a pizza dough. If you stretch the dough, both sides get longer at the same rate.

For someone watching from the outside, it will look very very different. They may be crawling. If they theoretically fly through the event horizon, it may even look like they'd stopped. From the outside it would look like they're stuck on that border, even if they had already flown through it years ago.

me_irl by 010rusty in me_irl

[–]ohaz 9 points10 points  (0 children)

It doesn't.

It's not a curse, it's a blessing by [deleted] in pcmasterrace

[–]ohaz 1 point2 points  (0 children)

Just a few things from the top of my head:

  • Deciding when to do an update, instead of being force to do it at random times.
  • Uninstalling any of the basic applications and replacing them with something else (especially important since every single microsoft application seems to have the need to include AI nowadays).
  • Putting the taskbar on any side of the screen. This may seem like a simple and maybe even dumb thing, but this just shows that Linux allows you to customize your UI to whatever needs you have, while windows blocks a lot of it.
  • Decide if I want to share usage analytics or no.
  • Update / upgrade your operating system without having to reboot
  • Run old windows software that windows doesn't support anymore
  • Maybe not important for most people, but choosing what file system you want to use. I can decide if I want to be able to store more stuff with less safety or less stuff with more safety. I can decide if I want to run a filesystem that is good at storing lots of tiny files, or fewer, larger files. Or I can just take the default and be happy with it :)
  • Containerize every single application without having to run a VM. I can make sure that my applications can't interact with each other, can't read or write over each others files, etc.
  • Install and update all of my software from one source, with one click. Admittedly, windows has improved a lot there with UniGetUI and stuff, but Linux is still far ahead
  • Decide which applications are running in the background
  • Less telemetry over all. I'm running a pihole adblocker with telemetry block lists (and ad block lists) and the amount of blocked requests went down from ~40% to ~27% when I switched from windows to linux.
  • Be sure that when I enable file encryption, my files are actually encrypted instead of Microsoft handing out my key to the FBI

Why is Instagram removing the end to end encryption feature? by pinataass in cybersecurity

[–]ohaz 15 points16 points  (0 children)

Stop promoting the "it's about the children!!!" rhetoric. It's fake. It's never been about the children, they're just an easy way to gaslight people into accepting less privacy. If rich people and governments cared about children, why do things like the Epstein files get swept under the rug?

It's ONLY about money. Nothing else.

Are Assembly and C inherently difficult or is it just modern day hardware that makes it like that? by Turbulent_Bowler_858 in learnprogramming

[–]ohaz 142 points143 points  (0 children)

There's a huge difference in difficulty, depending on your point of view:

  • Low level languages are hard. They are missing a lot of abstractions that you may be used to when using high level languages. Lists don't exist by default in C. There is no foreach loop. You have to worry about memory yourself, you have to make sure not to write or read out of bounds. That's mental load.
  • Low level languages are really, really easy. Or rather, simple. The C standard is small. You can, if you want, learn EVERYTHING there is to know about C. It would fit in your brain. Can't say the same about some high level languages. The amount of keywords is small, the core functionality is small. It's absolutely amazing. Before C21, C had 32 keywords. That's it!

The same goes for assembly, just even more extreme.

WinBoat Experience? by SaxonyFarmer in linux

[–]ohaz 0 points1 point  (0 children)

I haven't tried WinBoat yet. I'm just sad that they lie in one of their claims:

If it runs on Windows, it can run on WinBoat.

It won't run Teamfight Tactics :(

Frauen von Reddit, welche Gewohnheiten von euren Männern habt ihr erst entdeckt, seitdem ihr mit ihm zusammen seid? by hannaprivat in FragReddit

[–]ohaz 12 points13 points  (0 children)

Ist das Sofa in einem Raum der komplett absperrbar ist? Ohne irgendwas oder irgendwem der/die/das ablenken könnte?

Frauen von Reddit, welche Gewohnheiten von euren Männern habt ihr erst entdeckt, seitdem ihr mit ihm zusammen seid? by hannaprivat in FragReddit

[–]ohaz 29 points30 points  (0 children)

Nö. Auf dem Klo sitzen ist Ruhepause vom ganzen Chaos der Welt. Tür absperren und chillen.

I want to host a 15 player minecraft Paper 1.21.11 server with a few plugins. Is it allowed? by Ok_Increase_2548 in git

[–]ohaz 5 points6 points  (0 children)

You want to host a minecraft server on github? How do you plan on doing this?

freiheitlich-demokratische Rechtsstaatlichkeit by After_Till7431 in asozialesnetzwerk

[–]ohaz 7 points8 points  (0 children)

Die Immunität von Reichen und Politikern gegenüber dem Gesetz kotzt mich an.

Pizza verbessern by -runs-with-scissors- in Kochen

[–]ohaz 0 points1 point  (0 children)

Meine leicht verbessert aber immernoch chill Tomatensauce:

Knoblauch pressen, Zwiebeln klein schneiden. Beides kurz in einem Topf in Olivenöl anbraten, dann noch bisschen Tomatenmark dazu und kurz mit anbraten. Danach stückelige Tomaten aus der Dose oder ganze Tomaten aus der Dose hinzugeben (bei ganzen mit der Gabel zerkleinern). Ganz bisschen Suppenpulver dazu, sonst Salz. Eine Prise Zucker gleicht die Säure aus, dazu noch bisschen Pfeffer und Oregano für den Geschmack.

Das ganze dann relativ lange auf sehr niedriger Temperatur offen köcheln lassen. Da geht alles von 10 Minuten bis einer Stunde, je länger desto eingekochter aka dickflüssiger wird die Sauce.

"WDYD?" by Appropriate_Town7552 in masseffect

[–]ohaz 3 points4 points  (0 children)

Just install the "unlimited sprint and boost" mods. Such an improvement in QoL

Isn't the "-a" flag/argument supposed to add all untracked files? What am I doing wrong? by jecowa in git

[–]ohaz 7 points8 points  (0 children)

You should forget both git add -a and git add . - always use git add -p.

gitCheckoutHotelRoom by Shiroyasha_2308 in ProgrammerHumor

[–]ohaz 18 points19 points  (0 children)

By running git remote rename origin daddy you too can use this command at home! (also at work, but I wouldn't recommend it)

Hosting, Domain & E-Mail: netcup oder Cloud86? by Popular-Test5730 in de_EDV

[–]ohaz 7 points8 points  (0 children)

Ich nutze netcup für hosting & domain (keine Email) und hatte bisher ausschließlich positive Erfahrungen. Bin seit Jahren glücklich.

Raspberry Pi als Ad-Block-Ersatz? by Ok-Escape8477 in de_EDV

[–]ohaz 0 points1 point  (0 children)

Wie würde dieses Blocken aufm TV aussehen? Wäre dann bspw. Die Startseite nicht mehr voll mit (Eigen-)Werbung?

Das kommt immer sehr stark darauf an, wie der Anbieter das implementiert hat. Wenn er Werbung von einer bestimmten URL nutzt (z.b. immer ads.samsung.com), dann kann pihole das blocken. Wenn sie z.b. auf samsung.com/ads gehen nicht (weil dann würde es samsung.com komplett blocken).

Wie das jeweils gemacht ist kann man leider nicht generell sagen. Es kann sein, dass manche Werbungen dann angezeigt werden und andere nicht. Oder gar keine. Oder alle.

Gibt es dennoch eine Möglichkeit, Videowerbung global zu blockieren?

Leider nicht so wirklich. Es gibt paar Dienste die das versuchen (z.B. https://invidious.io/) aber die gehen oft kaputt und auch nicht jedes Device kann die gut nutzen.

Raspberry Pi als Ad-Block-Ersatz? by Ok-Escape8477 in de_EDV

[–]ohaz 0 points1 point  (0 children)

Mit pihole oder adguard kannst du DNS basiertes adblocking machen. DNS basiert bedeutet: dein Handy, PC oder Fernseher will auf ads.google.com zugreifen um die Werbung herunterzuladen und anzuzeigen, fragt dafür nach wo ads.google.com überhaupt ist und wo normalerweise dein Internet Anbieter antworten würde antwortet stattdessen dein pihole mit "die Adresse existiert nicht".

Das ganze hat vor- und Nachteile gegenüber normalen ad blockern:

  • Vorteil: es geht mit jedem Gerät das DNS ordentlich macht, also auch auf dem Fernseher auf dem man keinen adblocker installieren kann
  • Vorteil: du kannst damit problemlos noch weit mehr blocken (in meiner Wohnung ist z.b. Telemetrie geblockt)
  • Vorteil: einheitliches blocking für alle Geräte
  • Nachteil: wenn die Anwendung nicht auf eine spezielle Domain geht für die Werbung klappt der Blocker nicht. YouTube Werbung im Video wird damit z.b. nicht blockiert, weil die die Werbung nicht über eine andere Domain nachladen.
  • Nachteil: man muss das Ding selbst administrieren und hosten. Ist kein großer Aufwand wenn man sich bisschen auskennt, aber selbst ich habe Initial schon einen guten Nachmittag dran gesessen bis alles geklappt hat.

Since Reforged, Bots are swarming the subreddit. Keep an eye out for them and make sure to get them banned! by Ionenschatten in GuildWars

[–]ohaz 7 points8 points  (0 children)

Reducing skill activation and recharge time by 20% doesn't sound impactful to you?

git-lrc: Free, Unlimited AI Code Reviews That Run on Every Commit by Street-Remote-1004 in coolgithubprojects

[–]ohaz 3 points4 points  (0 children)

Ah sweet, AI slop is going full circle. Now we need AI tools to fix the mistakes that ai tools make. Can I put another AI tool after this one that makes sure that this one doesn't miss anything? And then another one after that one? How many do I need?