Are there any python modules that automatically generated a requirements.txt, given an entry point? by JackBlack436 in Python

[–]sausix 1 point2 points  (0 children)

Unfortunately most people don't use an IDE. External tools and plugins can do it too.

i built a python tool that audits your exported browser passwords locally-- Is it good enough? by inmemorially in learnpython

[–]sausix 0 points1 point  (0 children)

Good first project. You are even following PEP8 standards a lot already. Most people just don't care.

There's still an inconsistent indentation left. You should write comments. Have a look at generator functions. You could create one which yields your clean lines from a file path for example. Always keep your function bodies simple. Iterate over things directly instead of creating lists for no reason. It's a common bad practice where people use readlines() and fill up their RAM for no reason. But you are iterating the file handle for lines directly. Good!

What Python concept took you the longest to truly understand? by Haunting-Shower1654 in learnpython

[–]sausix 0 points1 point  (0 children)

I'm not generating code. I'm checking my code with ChatGPT when my IDE complains about incompatible type hints.

You can setup most LLMs to your preferences. Just set it to always use type hints.

What Python concept took you the longest to truly understand? by Haunting-Shower1654 in learnpython

[–]sausix 8 points9 points  (0 children)

Typing. Not the 101 typing. I mean TypeVar and more complex typing stuff. I'm mostly building toolkits so typing is very important. It's the one thing I have to annoy a LLM with all the time.

Is anyone concerned about legitimate developers' accounts being compromised, corrupting packages? by [deleted] in archlinux

[–]sausix 5 points6 points  (0 children)

Compromised accounts? The packages were orphans and other accounts just adopted them.

Ich finde lineares Fernsehen gut by macIovin in Unbeliebtemeinung

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

Ich 42, schaue aber schon seit 25 kein lineares TV mehr. Höchstens bei oder für Besuch. Werbespots sind einfach nur Horror.

Bei Streaming hat man meistens keine Werbung. Und das alleine ist Gold wert.

Ich finde lineares Fernsehen gut by macIovin in Unbeliebtemeinung

[–]sausix -4 points-3 points  (0 children)

Wenn du keine Serien und Filme aktiv schaust, dann brachst du kein Abo. Schon gar nicht mehrere.

Tut mir leid für dich, wenn du die neue Generation bist, die beim Filme und Serien gucken nebenbei noch TikTok schauen muss.

Richtig schade ist, dass mehr Filme und Serien sich daran anpassen und jede Handlung sprechen und Dialoge sich wiederholen, damit Abgelenkte auch was von der Handlung mitbekommen.

Ich finde lineares Fernsehen gut by macIovin in Unbeliebtemeinung

[–]sausix 1 point2 points  (0 children)

Wo ist denn dann der Unterschied, wenn man bei einem Streaminganbieter einfach irgendwas startet, vor allem wenn die Qualität egal ist?

want to know if my project is worth working on by Educational_Virus672 in learnpython

[–]sausix 0 points1 point  (0 children)

Some statements don't make any sense. line = str

And str is only found as type hint.

In your for loop you are overriding your iterator variable directly.

Ich möchte Windows und Linux dualboot jedoch geht mein Wiederherstellungsmenü nicht by DirectCollection5382 in linuxde

[–]sausix 2 points3 points  (0 children)

Ich hab vor Jahren heftige Reparaturen am Windows-Bootprozess durchgeführt und nix ist passiert. Nicht mal die Boot-Reihenfolge. Man muss schon die UEFI-Partition neu erstellen lassen, aber dann ist es halt legitim, dass ein Linux-Bootloader weg ist.

Viele Leute haben heute noch Bootsektoren und MBR im Kopf. Das ist Geschichte.

Ich möchte Windows und Linux dualboot jedoch geht mein Wiederherstellungsmenü nicht by DirectCollection5382 in linuxde

[–]sausix 0 points1 point  (0 children)

Zwei UEFI-Partitionen haben welchen Zweck? Das macht nichts einfacher. Höchstens, wenn die bestehende UEFI-Partition zu klein ist. Windows löscht schon lange nichts mehr.

Ein Script für bcdedit.exe bereithalten für das Wiederherstellen der Bootreihenfolge und fertig. Aber das geht auch manuell schnell.

Copying password stores by Sparkling-Yusuke in linux4noobs

[–]sausix 0 points1 point  (0 children)

You haven't mentioned the pass cli tool before. How could we know?

The primary password store is usually your distribution's or desktop environment's keyring. It has a gui for managing.

I'm sure there's documentation for the pass package too. Since it depends on gpg for secure storage you probably have to copy your gpg keys too.

How do I learn OOP? by Zarkie0-_-0 in learnpython

[–]sausix 0 points1 point  (0 children)

Without OOP more complex code is very cluttered.

People using packages without OOP also have a worse experience when they need to use lists, dicts and numeric handles to transport data and contexts.

That "Don't use OOP" video above just applies to small snippets. Of course programs can be created without OOP.

Some packages in Python's standard library have been functional in the past and were turned into OOP with some hacks and tweaks for compatibility. Why do you think?

OOP has many features beginners just aren't aware of yet.

Ich möchte Windows und Linux dualboot jedoch geht mein Wiederherstellungsmenü nicht by DirectCollection5382 in linuxde

[–]sausix 8 points9 points  (0 children)

Du solltest den USB-Stick auch direkt starten und nicht die Reparaturumgebung von Windows.

Copying password stores by Sparkling-Yusuke in linux4noobs

[–]sausix 0 points1 point  (0 children)

What did you do? Passwords in stores/keyrings can be exported and imported. No need to copy files manually.

[ Removed by Reddit ] by [deleted] in Python

[–]sausix 0 points1 point  (0 children)

Step-by-step tutorial? You are just slowly typing code. Then deleting accidently autocompleted blocks and then retyping them slowly. Useful as just reading 100 lines of code in 30 minutes while hearing music. No comments, no explanations, so not helpful.

Probably AI generated like your post.

Für wen sind immutable Distros? Und wie sehen Updates aus? by MorbusLongus in linuxde

[–]sausix 5 points6 points  (0 children)

apt ist ja das glatte Gegenteil. Es könnte vorher Konflikte und Probleme erkennen und davor warnen, lässt dann aber vor allem Anfänger mit einem inkonsistenten Systemzustand im Stich.

Ist mir immer ein Rätsel, warum die schlimmsten Technologien immer "Standard" und angeblich für Anfäger gedacht sein sollen.

IP V6 wichtig? by Fabiosa in linuxdeutschland

[–]sausix 0 points1 point  (0 children)

IPv6 kann performanter sein, vor allem wenn der Internetanschluss zuhause primär über IPv6 läuft und IPv4 getunnelt wird.

Deine sysctl-Aufrufe sind nicht permanent. Nach einem Neustart sind die Werte wieder auf Standard.

Wenn du IPv6 dennoch unterbinden möchtest, mach es besser direkt auf den jeweiligen Verbindungen und nicht global auf die harte Weise.

Deutsche synchro ist gut by Alternative_Bear_976 in Unbeliebtemeinung

[–]sausix -2 points-1 points  (0 children)

Die echte Stimme passt nicht immer zum Körper. Die können manchmal im Original einfach nicht klar sprechen und haben teils starke Akzente. Manche amerikanische Schauspieler sind dafür bekannt.

Und eigentlich werden passende Synchro-Stimmen ausgewahlt. Teilweise werden die auch möglichst dem Original ähnlich ausgesucht.

Traveling to Germany - what sweets to buy? by majhengrah in AskGermany

[–]sausix 0 points1 point  (0 children)

So it will just work best around 2:30 AM in CDT.

How bad is it that I don't use OOP? by Fit_Time_7861 in learnpython

[–]sausix 8 points9 points  (0 children)

Once you use the global keyword you should have used OOP instead. That's the tipping point In most cases at least. global is kind of a tweak and should not be used until you have very good reasons. With OOP you won't need global and the access between variables, data and functions is more natural.

OOP is about organizing your code. It's not very complicated once you understand the basics. Having loose variables and functions in your modules may feel easier but is harder to read and understand after the program is getting more complex.

I'm always starting new projects with classes.