janAkali

joined 2 years ago
[–] janAkali@lemmy.one 13 points 1 year ago* (last edited 1 year ago) (1 children)
[–] janAkali@lemmy.one 28 points 1 year ago* (last edited 1 year ago) (4 children)

I don't believe it's only chrome's problem. I've noticed that firefox tends to lock all available memory to himself and whenever I need it, bastard just reallocates it into swap, making whole system laggy and slow.

So.... I've got my foxy friend into a Ram jail for being too hungry:
systemd-run --scope -p MemoryMax=1G --user firefox

God, I love linux!

[–] janAkali@lemmy.one 4 points 1 year ago

Mixed-breed puppies are the best!

[–] janAkali@lemmy.one 2 points 1 year ago* (last edited 1 year ago) (1 children)

It's Nim, but I have no idea why you can't do this in Rust:

var seeds = lines[0].split(": ")[1].splitWhitespace().mapIt(it.parseInt)

Full solution: https://codeberg.org/Archargelod/aoc23-nim/src/branch/master/day_05/solution.nim

[–] janAkali@lemmy.one 44 points 1 year ago* (last edited 1 year ago) (28 children)

I would accept discord/irc over mailing list. But nothing beats a proper forum website.
And no, subreddit is not a proper forum.

[–] janAkali@lemmy.one 2 points 1 year ago* (last edited 1 year ago) (2 children)

Yeah, bechamel is great too, but I'm lazy. Cheese only is also fine if you let it sit a bit with top covered. It's not dry if you use soft creamy type of cheese. Baking it? Nah - it'll be too soft and melty for my taste, pasta should have texture.

[–] janAkali@lemmy.one 31 points 1 year ago (17 children)

WTF is wrong with americans? Can't they eat normal somewhat healthy food? Use real cheese and just grate it on top of some hot macaroni, damn it.

[–] janAkali@lemmy.one 25 points 1 year ago (3 children)

In theory this issue can be solved with LD_PRELOAD trick. E.g. redirect all/most/some fopen calls to "$HOME" to some other directory. But before I try to tackle it myself: is there already a similar solution like that?

[–] janAkali@lemmy.one 6 points 1 year ago

"Part of the couch, Part of the family"

[–] janAkali@lemmy.one 30 points 1 year ago (3 children)

I thought about this for some time. An anarchy would always collapse into governed state.

First, imagine the perfect scenario where there no authority and world is just a lot of tiny city-sized communities. It would take just a single bad actor to form a state, start invading neighboring communities and growing in power. In response - other communities would be forced to group into increasingly bigger states to have a chance to oppose influence from bigger/richer states.

This thought experiment also works if violent takeover is replaced by economic one. Think of cartels and monopolies.

[–] janAkali@lemmy.one 9 points 2 years ago (1 children)

Reminds me of mongolian tea: VERY strong, 70/30 milk and water, teaspoon of butter and a pinch of salt (enough to taste it and a little more).

I don't drink it often, because it's reallly unhealthy. But it's really good beverage for cold winter nights or after tiring work. It gives you a boost of energy, without the usual sugar fatigue that comes after drinking sweetened coffee/energy drinks.

view more: ‹ prev next ›