imperator

joined 1 year ago
[–] imperator@sh.itjust.works 5 points 1 year ago

2 decades, this game is about 20 years old

[–] imperator@sh.itjust.works 2 points 1 year ago (1 children)

Does logseq have tagging and an ability to query like data view in obsidian?

[–] imperator@sh.itjust.works 6 points 1 year ago

Interesting. I find that Lemmy seems to have picked up a lot of the bad. Too many memes, very shallow discussions. Maybe I'm just not in the right communities.

[–] imperator@sh.itjust.works 6 points 1 year ago (1 children)

I use samba and digikam

[–] imperator@sh.itjust.works 2 points 1 year ago

You'll want to look at z wave or ZigBee. Then control with home assistant.

Hue is I recall is ZigBee so you can control with home assistant.

[–] imperator@sh.itjust.works 2 points 1 year ago

Lol. I'm also looking at hot. Here we go.

[–] imperator@sh.itjust.works 1 points 1 year ago (1 children)

Can you run this not having a public facing page?

[–] imperator@sh.itjust.works 8 points 1 year ago

Yeah, I built a new PC at the beginning of the pandemic and went Linux. I don't even not windows and play all my games on there.

[–] imperator@sh.itjust.works 7 points 1 year ago

My assumption was this would be a cash grab. I'll still watch it but likely won't see it in theaters

[–] imperator@sh.itjust.works 2 points 1 year ago (1 children)

What function or class from that library would I use to do this? Or what key words can I use to search and learn more? I'm struggling wrapping my head around it.

[–] imperator@sh.itjust.works 2 points 1 year ago (1 children)

Do you happen to have any examples? I'm just not sure how to convert the JSON example into a bulk query since I need to keep the reference and line detail associated to the header. There is no primary key across all 3 sections. It's generated when I insert into the database.

 

Wondering if anyone here has some advise or a good place to learn about dealing with databases with Python. I know SQL fairly well for pulling data and simple updates, but running into potential performance issues the way I've been doing it. Here are 2 examples.

  1. Dealing with Pandas dataframes. I'm doing some reconciliation between a couple of different datasources. I do not have a primary key to work with. I have some very specific matching criteria to determine a match. The matching process is all built within Python. Is there a good way to do the database commits with updates/inserts en masse vs. line by line? I've looked into upsert (or inserts with clause to update with existing data), but pretty much all examples I've seen rely on primary keys (which I don't have since the data has 4 columns I'm matching on).

  2. Dealing with JSON files which have multiple layers of related data. My database is built in such a way that I have a table for header information, line level detail, then third level with specific references assigned to the line level detail. As with a lot of transactional type databases there can be multiple references per line, multiple lines per header. I'm currently looping through the JSON file starting with the header information to create the primary key, then going to the line level detail to create a primary key for the line, but also include the foreign key for the header and also with the reference data. Before inserting I'm doing a lookup to see if the data already exists and then updating if it does or inserting a new record if it doesn't. This works fine, but is slow taking several seconds for maybe 100 inserts in total. While not a big deal since it's for a low volume of sales. I'd rather learn best practice and do this properly with commits/transactions vs inserting an updating each record individually within the ability to rollback should an error occur.

[–] imperator@sh.itjust.works 2 points 1 year ago (1 children)

Definitely interesting, but until you can follow a thread or community it's definitely gimmicky.

 

Just curious if anyone else here primarily games on Linux? Steam Deck counts!

view more: next ›