pelya

joined 2 years ago
[–] pelya@lemmy.world 2 points 5 hours ago
[–] pelya@lemmy.world 3 points 1 day ago (3 children)
FILE *f = popen("curl 'https://www.random.org/passwords/?num=1&len=12&format=plain&rnd=new'", "r");
char s[14];
fread(s, 1, sizeof(s), f);
s[13] = 0;
[–] pelya@lemmy.world 2 points 4 days ago

Uh yeah, I'm pretty sure the discharge can stop your heart if you grab it in precisely wrong manner. Typical defibrillator uses like 50 times less energy, but with a higher voltage.

[–] pelya@lemmy.world 14 points 5 days ago (8 children)

A capacitor of 1 farad at standard American 120 volts has the energy between 7.62×54 and .50 BMG, and will discharge just as violently.

[–] pelya@lemmy.world 8 points 6 days ago

Your window needs to get the list of all other windows, find the one directly below it, and send a mouse click programmatically, using something like accessibility API.
Are you writing a keylogger?

[–] pelya@lemmy.world 15 points 1 week ago (2 children)

Creating a kernel is hard, Linux itself is not going anywhere.
If all current maintainers suddenly disappear, several corporations, who heavily depend on Linux, will maintain their own forks, so we will get Google kernel for phones, Amazon kernel for datacenters, Valve kernel for gaming, and probably some European initiative kernel for PCs and laptops to do document editing.

[–] pelya@lemmy.world 16 points 1 week ago (5 children)

This is a single-component rocket fuel, which means the rocket will not explode in a huge slow-burning red fireball, but detonate like a nuclear explosion, minimal visual effects but maximum shockwave, and a mushroom cloud of vapor.

[–] pelya@lemmy.world 1 points 1 week ago* (last edited 1 week ago) (1 children)

Universities were already locking down their PCs in the 90's, at least those with competent IT departments - BIOS password, locked boot menu, Windows 2000 with restricted user accounts. If you don't do that, your every PC will have 15 copies of Counter Strike and a bunch of viruses in one week.

Chromebooks (and laptops in general) are way cheaper now than PCs were back then, so again, you need to buy your own and install a proper OS, the situation did not really change.

[–] pelya@lemmy.world -1 points 1 week ago* (last edited 1 week ago) (4 children)

No they didn't

Are you suggesting to go back to days when every single little thing required a driver on a floppy disk? You buy a Chromebook, you install Denian on it with a few keypresses, your videocard magically works, your soundcard works, your WiFi just connects with no issues whatsoever, you ignore the fingerprint scanner hardware as usual because who even needs that shit when your password is 14 symbols long, and done, you are ready to install a gigabyte of NPM packages to create your single-page web app. Don't tell me Windows 95 was somehow better, it only made your life slower and miserable, just like your Intel i486SX which could not run Quake because it lacked FPU.

[–] pelya@lemmy.world 15 points 1 week ago

The truth is people who want small phones also want them for the price of a clamshell feature phone with no 4G support. I've heard these complaints many times from older acquaintances, they want their old Nokia that can also run Viber and do videocalls, and they are not paying iPhone SE price, so there's practically no market for small but high-spec phones, outside of luxury brands where you are buying an ancient chip with a leather back cover.

[–] pelya@lemmy.world 9 points 1 week ago (3 children)

What's the total human population again, 8 billion?

[–] pelya@lemmy.world 2 points 2 weeks ago (1 children)

The series is set up in ancient China, what Maomao wears normally is Chinese dress by definition.

 

Google had removed my X server app from Play Store, because it was too old (is 2022 too old?)

But no more! I have recompiled it for the newest Android version and published it back. And you can use it to run GUI apps from Termux. Launch X server first, then run these commands in Termux, then switch back to X server:

pkg install x11-repo
pkg install xfce4
export DISPLAY=127.0.0.1:0
export PULSE_SERVER=tcp:127.0.0.1:4713
xfce4-session

Termux now has it's own X server, my app is pretty similar, except that it's landscape by default.

 

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.

97
submitted 4 months ago* (last edited 4 months ago) by pelya@lemmy.world to c/dull_mens_club@lemmy.world
 

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'.

32
submitted 8 months ago* (last edited 8 months ago) by pelya@lemmy.world to c/cooking@lemmy.world
 

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

20
submitted 10 months ago* (last edited 10 months ago) by pelya@lemmy.world to c/imaginaryfairies@lemmings.world
 
 

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?

view more: next ›