pelya

joined 2 years ago
[–] [email protected] 2 points 19 hours ago (1 children)

Saving arbitrary metadata is the exact use case for pickle module, you just put it together with your numpy array into a tuple. jpeg format has support for storing metadata, but they are an afterthought like .mp3 tags, half of applications do not support them.

I can imagine multichannel jpeg to be used in photo editing software, so you can effortlessly create false-color plots of your infrared data, maybe even apply a beauty filter to your Eagle Nebula microwave scans.

[–] [email protected] 4 points 23 hours ago

Home-made tvorog is just cottage cheese without the temperature or fermentation control, you just let the fresh milk get sour and curd on it's own then strain the curd. So it's more acidic and less uniform.

The commercialy produced tvorog is made using the skimmed milk after most of the fat is extracted to make butter, so it's like 1% fat and 10% protein. Cottage cheese keeps the fat content.

You can 'fix' tvorog to be more like cottage cheese by boiling it with fresh milk, it will remove much of the sourness and add back fat content.

[–] [email protected] 1 points 1 day ago

You can achieve this with apps like Next Track or Volumee and a regular Android phone. Or you can buy a phone with extra buttons, but the button mapping function depends on the manufacturer's Android skin, so the quality varies.

[–] [email protected] 8 points 1 day ago (3 children)

What, pickle.dump your enormous Numpy array not good enough for you anymore? Not even fancy zlib.compress(pickle.dumps(enormousNumpyArray)) will satisfy you? Are you a scientist or a spectral data photographer?

[–] [email protected] 23 points 1 day ago (2 children)

Eh, who is still using paper books to learn programming languages? Every popular language has a website with online manuals.

Well, except C, because it's crammed together with C++ on https://cplusplus.com/ and https://cppreference.com/

And socks just grow organically after 3 years of coding.

[–] [email protected] 18 points 1 day ago (1 children)

Being direct is good. But 'too complex, refactor' as an explanation is just one word longer than 'fuck off'. You need to explain in detail why the solution is bad and which parts should be changed, in this case it just shows that the reviewer did not actually read the code.

[–] [email protected] 53 points 5 days ago (3 children)
  1. Type letter 'c' using the text tool, as you've already done
  2. Create a new layer from text
  3. Duplicate layer
  4. Transform - flip horizontally
  5. Merge two layers

It's a basic GIMP knowledge, really. Don't forget to add an alpha channel to your layer after step 2, otherwise it won't work.

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

Zoo animals behave differently than animals in the wild.

Both types are wild animals, however zoo animals get a meal or two per day with minimal effort required, so of course you'll get a fat lazy tiger who does not particularly care to attack you.

Second point is that the tiger was raised by that zookeeper from birth, so yeah, the tiger trusts them, that does not mean that the tiger will trust you or anyone else like your neighbour's pet dog does.

You absolutely can adopt a racoon baby and raise it into a racoon who will act like a pet cat towards you but bite all your visitors. Some people specifically get a wild animal pet for that reason.

[–] [email protected] 1 points 1 week ago

Oh, that gives me hope we won't get rushed plot.

[–] [email protected] 1 points 1 week ago (3 children)

I feel like writers panicked that we have only one episode left in the season but the romance is not even started.

[–] [email protected] 3 points 1 week ago (10 children)

There's suddenly a whole lot of action

[–] [email protected] 13 points 1 week ago (1 children)

We want to inhibit when running stuff like pacman, wget, cp or mv

There is already a separate systemd-inhibit command that does exactly what you need. Trust your users, they are capable of googling it (most of the time).

Only pacman and wget will benefit from suspend inhibition, because it will prevent breaking network connections. cp and mv will resume working just fine even when you hibernated your laptop while cp was executing. And in that case it's less bug-prone to scan your system for active TCP connections to external addresses instead of adding a hack wakelock inside your terminal or inside wget.

It is also a poor idea to mess up with system-wide settings from some command when the user does not expect it, you'll likely to get a thousand invalid bug reports that sleep mode is broken when some service randomly decides to use wget to continuously read from local Unix socket.

 

I have mixed sour cream with Marmite to make it spread more evenly over banana, and the taste is... not good. The salt overpowers all other components. It's even worse than plain Marmite banana, because you can actually taste the banana before Marmite diffuses over your tongue. The best combination was cream banana without Marmite, to no surprise.

Marmite cream oat cookie is a surprising discovery. The overpowering saltness of Marmite is balanced by the overpowering sweetness of the oat cookie, the same way salted caramel works. I don't think the cream is even necessary, you can rub Marmite on the cookie's hard surface much easier than on the soft banana.

 

If combining two things from a fridge could be called a new recipe. It tastes good, I promise.

99
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

The shop also had regular sprink bottles with the same cologne, but this bottle is shaped like a fuel can, so it looked manlier to me. It contains 80% alcohol, so it's also a disinfectant and an after-shave.

 

I don't need any fancy tiling window managers. One fullscreen window per desktop, and 12 virtual desktops, that was my workflow for 10 years. Then I incorporated KDE activities into my workflow, which are exactly like virtual desktops but switched with Meta-Tab not with Ctrl-F1 - Ctrl-F12. Wonderful!

And then, Plasma devs broke it. Switching activities now puts my foreground fullscreen window (one per desktop) into background, and switches keyboard focus to the desktop. Give me back my keyboard shortcuts, and you could also rename Plasma back to KDE while you're at it, thank you very much.

At least there is a bug opened, but it's doubtful that Plasma devs will fix it before Debian 13 release. I can't even find motivation to update my OS anymore.

 

Also works for searches 'Times new roman' and 'Courier new font', but not for 'Lucida console font' or 'Dejavu sans font'.

34
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

Washed tomatoes and pasta

  1. Get half-kilo of fresh tomatoes, three onions, and three carrots. You can use the cheapest tomatoes for this, the heat treatment will average the taste. Wash everything. Chop onions and carrots, dump into the frying pan. Add salt.

Onions and carrots

  1. Fry diced onions and carrots in a pan, using a generous finger-thick layer of oil, preferrably olive, until the onions don't sting anymore and carrots start to soften.

Simmered tomatoes and hot pepper

  1. Cut tomatoes in 2 pieces each, you'll mash them anyway so thin slices do not matter. Dump tomatoes into the pan. Cover with a lid, cook on a slow fire for about 10 minutes until they become sauce. Mash and stir each 3 minutes so they won't burn. Cooking less will preserve taste of fresh tomatoes, cooking longer will make it taste closer to canned pasta sauce. But they won't have that taste of the can that you will get with canned tomatoes.

The secret ingredient and spices

  1. Add the secret ingredient - half-kilo of canned pork. This is an optional step - if you prefer taste over calories, it's better to prepare a separate meat dish instead. If you want to add hot pepper, add it now so it will spread uniformly.

The secret ingredient

  1. Boil pasta while tomatoes are cooking - the standard 500 gram package will do, preferably something with a lot of surface like penne so it can soak up more sauce.

  2. Dump Italian or French spice mix into the pan. Turn off the heat, let it simmer for 1 minute so the herbs will soften.

Finished pasta

  1. Dump pasta into the pan. Done! Plating is optional, you can eat it straight from the pan. And the next day you can prepare another wonderful dish - yesterday's pasta re-heated until it's crusty.
 

Lemmy Connect attempts to add ?format=webp to the image URL when loading .gif image, this makes many Lemmy servers return an error. When opening the post in the web browser, without the extra addition to the image URL, the image loads correctly.

Post where the bug is present: https://lemmy.world/post/19556846

24
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
 

I often want to copy some phrase from a post to search it on the web. Long-pressing post text minimizes this post into a single line, which is not very useful IMO, I would rather have text selection cursor like in a web browser.

 

I've unlocked all weapons in Vampire Survivors, and I'm too bored to grind the remaining 14 unlocks.

Please recommend me some proper, $10 up-front games.

 

I've alrealy played all versions of Space Marshals, Tesla vs Lovecraft, Tesla Force, Jydge, Crimsonland, Grind Infinity, Solomon Keep, PewPew, and Vampire Survivors (although it's not twin stick but close enough).

Are there any new twin stick shooters, preferrably something I can pay for once and without IAP going up to $100?

 

I want to open large image with comments below when clicking on a post, like in Jerboa

view more: next ›