Posts
1754
Following
74
Followers
50
repeated

Zwei Sicherheitsforscher haben jede Menge Tracker und eine Sicherheitslücke in Apps gefunden, die zu den für Geflüchtete gehören. Sieht aus, als ob die hinter den Apps sich schnell einen neuen Markt klar machen wollten und dafür in Kauf genommen haben, dass da noch einiges unsauber ist. Das ist natürlich umso bequemer, wenn die "Kundschaft" eh keine Wahl hat. Menschen, die vor politischer Verfolgung geflohen sind, einem völlig unnötigen Sicherheitsrisiko auszusetzen ist ziemlich unterirdisch. Das habe ich auch für den kommentiert:

https://www1.wdr.de/nachrichten/westfalen-lippe/sicherheitsluecke-bezahlkarte-gefluechtete-100.html

@digitalcourage

1
2
1
python Coding Question
Show content

Hey fedi I have a coding question for you today. I would basically want to know if this “something” I have in my brain right now.

The basics are, that I am wrinting a little Program with pyQT that should help me with some character sheets for the trpg I am playing.

Decided to ask here since I don’t really can put my finger on exactly I am looking for that makes search kinda hard atm.

Here is a link to the code. It is a kinda long snippet so I uploaded to privatebin: https://privatebin.net/?570a6d8ea9dbe90c#FQkCQf8jkq85xW7YQ2MFfRdAqD1antmduFFMFaEerRsf

So the basic gist is I have some Code for some QT-Dropdowns which works generally (very proud of that btw)

My “problem is that I have a lot of duplicated code in there right now. I do almost the same thing for the left hand and right hand resepectably.

I have to do the same for 100 Skill Blocks as well and having the same code blocks 100 times does scream to me some way.

Is there maybe a way I can reuse a function in python with different names?

Like renaming def change_equipment_list_right_hand(self): to def change_equipment_list_x_hand(self): and then kind of replace the “x” in the whole function with something else?

I hope I somehow got across what I am looking for. It is kinda hard for me to ask smart question about this stuff since I am really a novice with python (just dabbling in it here and there)

#python #coding #question

0
1
0
repeated

Historia 5e kommt vom

Ursprünglich sollte die Übersetzung der Variante mit antropomorphen Tieren beim erscheinen, zur wurde bekannt, dass das Projekt zum neuen Squink-Verlag https://squink-verlag.de wandert. Gründerin Cat, ehem. Uhrwerk, bestätigt, dass Historia "in nächster Zukunft in einem Crowdfunding finanziert werden" soll

Historia stammt vom ital. , wie u.a. auch das bei erschienene

0
1
0
python Coding Question
Show content

Hey fedi I have a coding question for you today. I would basically want to know if this “something” I have in my brain right now.

The basics are, that I am wrinting a little Program with pyQT that should help me with some character sheets for the trpg I am playing.

Decided to ask here since I don’t really can put my finger on exactly I am looking for that makes search kinda hard atm.

Here is a link to the code. It is a kinda long snippet so I uploaded to privatebin: https://privatebin.net/?570a6d8ea9dbe90c#FQkCQf8jkq85xW7YQ2MFfRdAqD1antmduFFMFaEerRsf

So the basic gist is I have some Code for some QT-Dropdowns which works generally (very proud of that btw)

My “problem is that I have a lot of duplicated code in there right now. I do almost the same thing for the left hand and right hand resepectably.

I have to do the same for 100 Skill Blocks as well and having the same code blocks 100 times does scream to me some way.

Is there maybe a way I can reuse a function in python with different names?

Like renaming def change_equipment_list_right_hand(self): to def change_equipment_list_x_hand(self): and then kind of replace the “x” in the whole function with something else?

I hope I somehow got across what I am looking for. It is kinda hard for me to ask smart question about this stuff since I am really a novice with python (just dabbling in it here and there)

#python #coding #question

0
1
0
repeated

Bocchi The Rock Picture Bot

0
2
0
@DM_Ronin Such a cool thread. Reminds of those Manga Guide to Databases and the like

RE: https://mstdn.social/users/DM_Ronin/statuses/112389235245875971
0
0
0
repeated

Sebastian Krzyszkowiak

It seems to have happened without much fanfare, but about a month ago @purism has released the Librem 5 hardware layouts under GPLv3 (as original PADS and converted KiCad projects), joining the schematics that were already available from the start.

https://source.puri.sm/Librem5/l5-schematic

1
2
0
repeated
Edited yesterday

Mal wieder Respekt für diesen Unternehmer.

Eigentlich wäre es nur konsequent an Würth zu schreiben und zu bitten, die Firmen, die die Geschäftsbeziehungen eingestellt haben zu nennen, damit man als Privatperson zu diesen Firmen auch die Geschäftsbeziehungen einstellen kann.




https://www.swr.de/swraktuell/baden-wuerttemberg/heilbronn/anti-afd-brief-kostet-millionenumsatz-100.html

10
2
0
Guten morgen an die feuchte Fedi-Montags-Welt ElainaWave
1
0
0
repeated

This was funny in my head so I had to draw it.

Also plz play ghost trick and outer wilds, everyone. You owe it to yourself

3
1
0
repeated

Apple ecosystem is overrated, welcome to the gnome ecosystem 🤓 (this is mostly a demo and you should not rely on these in a daily basis in a production environment)

1
2
1
repeated
repeated

Asahi Lina (朝日リナ) // nullptr::live

Asahi Linux now has a kawaii logo by SAWARATSUKI-san!!! ✨✨

ON → https://asahilinux.org/?kawaii=true
OFF → https://asahilinux.org/?kawaii=false

2
3
3
repeated
repeated
repeated
#akkoma admins, if you can, please post a list of unused indexes on your instance to https://akkoma.dev/AkkomaGang/akkoma/issues/764

instructions should be there in the thread
3
2
0
repeated
long programming post (python)
Show content
I am actually having fun doing some programming right now. There is actually a problem I have I can solve with programming lol. Something that helps when I want to learn new stuff.

Allow me a quick tangent to explain what the goal is....

I really like playing the konosuba TRPG at the moment. I found two comfy groups to play with keeping me busy at the weekends (for 2 of any given month atleast)

I kinda was not the biggest fan of all the math I needed to do to create a character (especially since you have to redo lots of math when leveling up)

Since I don't really know any programming language. I made what everyone would do. Create a Spreadsheet. That was ... fun. I did get it to work how I wanted in the end. Which is cool. Really proud of what I made.

There is one problem. If I have to update the sheet for any reason (like wrong formulas or correct and add new skills) my players need to rebuild their character in the new sheet from scratch. It does not take too much time to do. But is something one could avoid.

I had that idea for a long time now to create a little program for this instead with a GUI component that is separate from the database portion (even a proper one!). So I could update the database any time I wanted and the players just need to drop in the new database and be done.

(And yes I did use the spreadsheet as a sudo-database maybe not the best decision oh well)

I have choosen python for the project since its all I really know even the tiniest bit (not that I know that much of it anyway, but debugging it is kinda nice I suppose...) from building a web scraper with it once.

I knew you could build GUIs with python. So I started searching around. Found pySimpleGUI and started with that only to get limited quite quickly and throwing that idea in the bin.

I found tkinter, which is a standard library in any python install. This is great since my players only would need python on their PCs as of now. I will likely need to add a dependency later for sqlite anyway, but why pull more stuff then necessary right?

The tkinter-GUI looks kinda bland and dated but it works so akko_shrug

I am starting to figure out some stuff and have made some progress. Right now I am just building the GUI without (much) logic behind it. Just so I have everything in place in terms of variables later. The screenshot shows my progress so far.

I already figured out how to make Input Boxes, Labels, Dropdowns and Tabs (weee)

That table at the bottom is built likely absolutely horribly but I needed many variables to do math with... So each column and row has its own variables. with lovely names as "Base_Stat_Attribute_Strength" and "Class_Mod_Strength" and "Class_Mod_Strength_Number" blobcatjoy

That should help me atleast to implement the logic easier later.

I started using Code-OSS for this project and have to say that microsoft does have build a nice editor for code. I could even add a Python debugger later which makes testing the file easier (instead typing commands to start the file into a terminal).

The one thing I saw in pyCharm which Code-OSS does not seem to have (yet?) is a nice list of all the variables I have defined which might be nice to implement the logic later.

If anyone of you has some ideas for useful stuff in Code-OSS let me know. I only know by now I won't use PyCharm since it seems like really heavy on processing power (Laptop fans spun up for sure when I started that lol)
0
1
1
repeated
repeated
Kopfchaos
0
1
0
Show older