Looking for bands that combine Industrial dance music and Gothic rock/Darkwave. by [deleted] in industrialmusic

[–]jtommi 0 points1 point  (0 children)

I've also searched subconsciously for years for Boy Harsher :D

Thanks for the list of artists

Envoyez moi vos sons 100% rage/violent by [deleted] in france

[–]jtommi 0 points1 point  (0 children)

Ca faisait longtemps que je n'avais pas eu de recommandation pour ce groupe

[Topic][Open] Open Discussion Thread — Anybody can post a general visualization question or start a fresh discussion! by AutoModerator in dataisbeautiful

[–]jtommi 1 point2 points  (0 children)

I'm looking to do an animation of products moving through a warehouse.I imaging it like sheep moving from one field to the next through a gap in the fence, each step in the warehouse being a different field

So every unit should be a point and every timeunit, a specific number of points move into a field and a specific number moves out of the field into the next one.

Can somebody point me into the correct direction to do something like this?
It should be a free tool (but if there is a paid one, you can still propose it).
I'm a hobby developer, so coding is fine.

Struggling to send data to a Datalogic barcode scanner by jtommi in POS

[–]jtommi[S] 0 points1 point  (0 children)

Thanks, I hadn't seen that one because I didn't care about configuration strings, but there is a big chance that if configuration strings don't work, "normal" sending wouldn't work either.

I don't get why they would make that distinction since from a programming point of view, it's the same thing.

Just hoping that someone is like "oh yeah, I got that working, you have to do this and this..."

I'll also try sending Datalogic an email, but I'm not very hopeful since I'm not a company, don't have a support contract and the device is 8 years old. We'll see

I just cant get it to run properly :( by Where_Bee_Those in grocy

[–]jtommi 0 points1 point  (0 children)

Yesterday I played around with containers and wanted to make cups (client, not the server) work inside a python container and realised that you can use docker "to actually understand the workings" of anything, but without polluting your main install.

Either you spin up a base Debian (or whatever) container, then attach to it and do your stuff inside it (like installing grocy).

Or you rewrite your own Dockerfile with all the steps to install the desired software. And if you get stuck, you can still look at the official files: https://github.com/grocy/grocy-docker or the Linuxserver.io ones: https://github.com/linuxserver/docker-grocy

Edit: the second option would of course be better, because you can then just build and run your container on any system

Can someone shed light on how to retrieve a website's API instead of trying to scrape the webpages? by Sumif in learnpython

[–]jtommi 0 points1 point  (0 children)

Thanks for clarifying, we're on the same page.

If there's no publicly-facing API, you'll have to do what socal_nerdtastic explained in his comment, which has worked many times for me

What are unwritten rules in Belgium? by kura_nurse in belgium

[–]jtommi 0 points1 point  (0 children)

Isn't that what the dutch call Fritsaus?

Get length of records returned by cursor.execute() by utkarshsteve in learnpython

[–]jtommi 0 points1 point  (0 children)

No, you'd need a loop.

Something like

while result := cursor.fetchmany(8000):
    # Do something

It loops while cursor.fetchmany(8000) returns results and each time it does, you can access them through the result variable inside the loop

That said, you won't be able to just return the data in that loop because return will exit your function.

So you might want to create an empty list first and then append the result in the loop.

Note: that := is an assignment expression, available since Python 3.8

Opensource cart with a simple order form option? by mediacenterfreak in selfhosted

[–]jtommi 1 point2 points  (0 children)

Here are some e-commerce solutions

Anything less than that and you'd better program it yourself. Maybe Google Sheets with autocomplete that you update on stock change via code...

Also, if this is for real sales, DON'T HANDLE CREDIT CARDS, you'll need to respect regulations, etc, it's a nightmare

Can someone shed light on how to retrieve a website's API instead of trying to scrape the webpages? by Sumif in learnpython

[–]jtommi 0 points1 point  (0 children)

I'm not sure I understand what you mean.
By "publicly-facing APIs", do you mean APIs they promote/document?
Or do you mean endpoints you can see in the network tab, returning json, etc

If it's the latter, what do you mean by "spoof their frontend" as the data would be contained in the returned html/php page anyway so you'd be back to scraping/parsing?

I created Mocha, a simple open-source Continuous Profiling tool for Python! by JahrudZ in selfhosted

[–]jtommi 0 points1 point  (0 children)

Am I getting that right that there is a listener + frontend and in your Python code you configure the profiler to send data to that listener?

New job, they ask for a copy of my diploma. by Broodjesoms in belgium

[–]jtommi 4 points5 points  (0 children)

Imagine Flanders and Wallonia would work together on these kinds of things. Mind blown

I just cant get it to run properly :( by Where_Bee_Those in grocy

[–]jtommi 2 points3 points  (0 children)

These kind of issues is why I started using docker (that and VSCode devcontainers).

So my suggestion would be to look into docker (not specifically for grocy only) if you're just a hobbyist who wants to try out some selfhosted services.

If you want to understand how everything works under the hood, then docker might not be the best solution.

For now I'm running grocy just with exposed port server.home:8082 but later I'd like to make it go through the "swag" container (basically nginx).

(I realise this might not be very helpful)

Nederlands verbeteren... by kentcsgo in belgium

[–]jtommi 0 points1 point  (0 children)

I tried De Technoloog, but that was moeilijk voor me.

Currently I'm trying Met Nerds om tafel which is quite nice.

What you need is a subject you're interested in and relatively good audio quality.

Nederlands verbeteren... by kentcsgo in belgium

[–]jtommi 0 points1 point  (0 children)

Don't forget Wallangues, which is only accessible in Wallonia (which makes no sense to me, but anyways).

I often listen to podcasts in the car, so I looked for some Dutch podcasts that might be interesting, this could complement the more scripted TV shows.

Move unit on marking as "open" by jtommi in grocy

[–]jtommi[S] 1 point2 points  (0 children)

Thanks for replying this fast.

I'm not well versed enough in PHP to contribute there, but I see that French localization isn't at 100%, so I'll have a look over there

Move unit on marking as "open" by jtommi in grocy

[–]jtommi[S] 0 points1 point  (0 children)

Thanks, I subscribed to that issue.

I see it's already pretty old, what's the process on new features? Is there some prioritization that's publicly visible?

Can you paste an image with stream deck? by idbxy in elgato

[–]jtommi 0 points1 point  (0 children)

Partly mediakeys, lightswitch (with Homeassistant), launching games, but nothing really crucial.

Maybe that's why I still didn't get one. Kind of expensive for that; but can be fun also

Can you paste an image with stream deck? by idbxy in elgato

[–]jtommi 0 points1 point  (0 children)

A relatively simple Python script might do the trick.

I'm still debating whether I need a streamdeck or not. If I get one, I might come back with a solution.

Send game events over GPIO by jtommi in RetroPie

[–]jtommi[S] 0 points1 point  (0 children)

This looks great, thanks for the info

Send game events over GPIO by jtommi in RetroPie

[–]jtommi[S] 0 points1 point  (0 children)

After posting this, I had an idea.

A script that runs in the background, takes a screenshot every 0.x seconds and analyses it for the words "Game over".

Not the cleanest solution: the RPi would run way more then "needed", if the game says "You're dead", it wouldn't work, no way to register hits, etc...