Posts
3404
Following
86
Followers
74
repeated

厭世之介 pessimism-no-suke

In a restaurant.
5
0
0
I made a thing the last few weeks and I am very pround of actually having finished a programming project in a long while (its also my first bigger one).

It really helped me to actually have an endgoal to stay motivated to the end and now I have something functional before me.

I started out using python and TKinter, later switched to customTKinter and last but not least to Qt since it made GUI design very easy with QT Creator and solved many of the problems I had with (custom)tkinter in one fellow swoop.

I learned a lot of things in python and QT along the way which is really cool. I dunno if I ever keep that knowledge but it was nice to get some distraction from college (even though I should have maybe have listened better during online courses... anyway...)

I now have a functional piece of software for use with the TRPG I love playing and it should generally be easier to maintain than my spreadsheet.

Have a link to my crimes against python and QT. But jokes aside its very cool I actually made it.

A program which makes Character Creation and Maintenance easier for the Konosuba TRPG: https://codeberg.org/stefan230/Konosuba-TRPG-Character-Sheet-Program
0
1
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
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
1
@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
Edited 11 months ago

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

9
1
0
Guten morgen an die feuchte Fedi-Montags-Welt ElainaWave
1
0
0
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
Edited 1 year ago

Hello Fediverse. This is my . I'm an audiovisual and editorial looking to connect with fellow and lovers to exchange ideas on: why languages are great, why translation is amazing, and how we can navigate the industry now AI is becoming more and more impactful. Some topics that interest me: inclusive language, inclusive communication, inclusion, linguistic varieties, linguistic prejudice.

9
1
0
repeated

Der Kater ist auch der Meinung, dass man heute besser im Bett bleibt

0
0
0
repeated
Edited 1 year ago
35
6
2
repeated
here is hoping this doesn't break my server
10
1
0
repeated

Here's a sneak peak at the main character of a new game I've started working on! It's really nice to finally get back into 3D modeling again ^^

I'll talk more about the game itself once I make some more progress!

0
0
0
Eine interessante Doku. Jetzt nicht wegen dem Fluff mit den Superreichen. tbh die spielen eh in einer anderen Liga und machen am Ende eh was sie wollen. Für den Gesetzgeber schwer zu greifen, weil die Konsequenzen der Abwanderung dieser Leute groß und verheerend wären.

Aber ich hab grad echt so ne Wut aufs Finanzministerium... Der Fall Gerda Hofmann regt mich tierisch auf... Mehr will ich öffentlich dazu gar nicht sagen.

RE: https://mastodon.social/users/TwraSun/statuses/111580567967987814
0
0
0
@xian Yo Mint GBA Squad. Its quite expensive to mod but those IPS screens are sure nice.

RE: https://outerheaven.club/objects/5dd78f79-6344-4e19-89e0-339844c03adc
0
0
2
Show older