Spyke

Posts

cooking·Cooking byTreczoks

Sliced Oninons - Volume vs. Weight

I plan to make a BIG pot of onion gravy soon. Is there a rule of thumb about the volume and weight relation of sliced onions?

So, my big pot holds about 12l - I'd go for 10l here to have room to stir - if thinly sliced on a mandolin, how many kilograms of onions would that be?

Or, the other way round, if one slices a kilogram of onions, how much volume would that fill?

View original on lemmy.world
firefox·FirefoxbyTreczoks

Why does file:// not work?

I've got an HTML file on my phone, and would like to view it. But Firefox on Android has neither a menu entry "Open File", nor does using the file:// method work, nor is any app associated with the .html file extension.

BTW, Chrome suffers from the same problem. And it is not an issue with the file, it works when opened via the https:// method from my home server.

Why, oh why, can't I open a local file on Android?

View original on lemmy.world
asklinux·Ask LinuxbyTreczoks

Audio Routing on a Server

Although I work with Audio, I have no real clue on how audio works on Linux, despite using it since Kernel 0.97...

What I have: I've got a machine with normal onboard audio IOs and a BT dongle. It is running Ubuntu Server.

What I want: I want it to take the analog signal from LineIn and forward this to a BT speaker linked to the BT dongle. This should preferably run like a service, so it autostarts when booting the server.

Any idea where to start, which programs and systems to look for?

View original on lemmy.world
wahl·Community für überregionale WahlenbyTreczoks

Geschichte wiederholt sich

  1. Januar 1933: Paul von Hindenburg: "Wenn er erst mal Reichskanzler ist, haben wir ihn unter Kontrolle"

  2. Januar 2025: Friedrich Merz: "Wir werden nächste Woche in den Deutschen Bundestag Anträge einbringen, die ausschließlich unserer Überzeugung entsprechen. [...] Und wir werden sie einbringen, unabhängig davon, wer ihnen zustimmt."

View original on lemmy.world
lego·LEGObyTreczoks

Extracting Data from Stud.io 2.0

My problem: I want to create an inventory of my parts. For that I need data I could look up on BL. Sadly, my storage has no internet whatsoever, so I need an offline solution.

I have found the LDRAW library inside the Studio installation, which gives me the parts and their design. They contain the name of the part, too, but only as a comment, and I have yet to verify if this is consistent. I think I could rig a software that renders me the picture as I need it for my application, so that's that.

But there are other files inside the Studio installation, and I wonder if there is a way to find the following information from this:

  • BL Category (Like "Brick" or "Plate Modified")
  • LEGO part numbers and colors that exists for a certain design
  • Parts Weight

I don't need any rapidly changing data like price or availability.

Has anyone here done this, or knows a software that does this?

View original on lemmy.world
linux·LinuxbyTreczoks

Wrote my first longer Python program

Sounds easy? Well, it should have been. I'm not talking about a "Hello, World!" (although it is more or less on the same level for me). The goal was to write a set of three MQTT clients that properly talk with each other and interact nicely.

So I had to learn Python and MQTT on the same day. Should not be an issue after 40 years of programming. But it quickly turned out that the Python library/package for MQTT on Ubuntu was heavily outdated (1.6), and did not supply all the functions the documentation and examples (2.0) asked for. Using pip3 didn't work, as it complained that the package structure was maintained by the OS. In the end, I had to virtualize the python3 system and pip3 the 2.0 package there and run it.

After about three hours, I had the clients working as they should. Yes, I think MQTT is a good base for the next project.

View original on lemmy.world

You reached the end