Spyke

Posts

asklemmy·Asklemmybywolf

Why does calorie counting work for weight loss and why are calories interchangeable?

According to a book I am reading, diet science currently agrees that there is one way to loose weight: A calorie deficit.

For example, if I need 2000 kcal a day and eat only 1500 kcal a day, I will loose some weight over the next weeks/months.

To my understanding, calories here are totally interchangeable, if we are only concerned with loosing weight (and ignore nutrients etc).

Calories are basically measured by burning food and measuring how much energy was set free.

My question is: Why and how does it work so good and why are calories interchangeable?

In more detail: Why can we translate the burning of calories with fire to processing the calories in food with our digestion system so perfect? Why is there no difference (concerning weight loss), if I eat 1500 calories as pure sugar or eat them as pure protein (where I would assume the body needs more energy to break down the protein)?

View original on lemmy.zip
linux·Linuxbywolf

What is the supposed workflow for vanilla Gnome for keyboard users?

Question is in the title: What is the supposed workflow for vanilla Gnome for keyboard users?

Is there any video/design documents which explain, how the workflow is supposed to be?

Assume, I have a full screen web browser on workspace 1. Now I want to have a terminal... I hit the super-key, type terminal, hit enter ... and then I have a terminal which does not start maximized on workspace 1, so I can either maximize the terminal and switch between the applications, arrange them side by side... or I can navigate to workspace 2, start the terminal there (the terminal will not start maximized again on an empty workspace 2) ... and switch between the two workspaces (AFAIK there are no hotkeys specified by default to navigate directly to a workspace)...

What I simply do not understand: Does the vanilla Gnome workflow expect you to use mouse and keyboard? Like hit super, use mouse to go to next workspace, type terminal, click to maximize terminal (or use super-up)?

It just seems like a lot of work/clicks/keys to achieve something simple. And to my understanding Gnome expects you to use basically every application with a full screen window anyway, so why does it not open a new application on the next free workspace full screen by default?

View original on lemmy.zip
linux·Linuxbywolf

Solved: Any desktop environment or WM with configurable placing/opening of windows?

When using TMUX, it is easy to create a script, which opens TMUX, configures the screens/panes of TMUX and open/run programs.

I like this a lot.

My baseline would be something like, when I login, some applications are executed and their windows automatically placed on a virtual desktop.

For example:

  • Open Firefox and put it on virtual desktop 1
  • Open Terminal in fullscreen and put it on virtual desktop 2
  • Open VSCode and put it on virtual desktop 3

Something like that is possible with sway, in the environment I am working, sway is not able to run XWayland applications w/o crashing.

Is there any way to have this functionality on Gnome, Mate, Xfce?

Even better would be something to open several windows and arrange them automatically for different work tasks/projects I am working on. Any ideas?

Edit: Solved! Thanks for the input. Auto Move Windows extension for Gnome solves my problem.

View original on lemmy.zip
linux·Linuxbywolf

How to deploy Docker images to Raspberry Pi w/o using a image registry

Hello, fellow Linux users!

My question is in the titel: What is a good approach to deploy docker images on a Raspberry Pi and run them?

To give you more context: The Raspberry Pi runs already an Apache server for letsencrypt and as a reverse proxy, and my home grown server should be deployed in a docker image.

To my understanding, one way to achieve this would be to push all sources over to the Raspberry Pi, build the docker image on the Raspberry Pi, give the docker image a 'latest' tag and use Systemd with Docker or Podman to execute the image.

My questions:

  • Has anyone here had a similar problem but used a different approach to achieve this?
  • Has anyone here automated this whole pipeline that in a perfect world, I just push updated sources to the Raspberry Pi, the new docker image gets build and Docker/Podman automatically pick up the new image?
  • I would also be happy to be pointed at any available resources (websites/books) which explain how to do this.

At the moment I am using Raspbian 12 with a Raspberry Pi Zero 2 W and the whole setup works with home grown servers which are simply deployed as binaries and executed via systemd. My Docker knowledge is mostly from a developer perspective, so I know nearly nothing about deploying Docker on a production machine. (Which means, if there is a super obvious way to do this I might not even be aware this way exists.)

View original on lemmy.zip
linux·Linuxbywolf

Solved: ~/bin vs. ~/.local/bin for user bash scripts?

For one user account, I want to have some bash scripts, which of course would be under version control.

The obvious solution is just to put the scripts in a git repository and make ~/bin a symlink to the scripts directory.

Now, it seems on systemd systems ~/.local/bin is supposedly the directory for user scripts.

My question, is mostly, what are the tradeoffs between using ~/bin and ~/.local/bin as directory for my own bash scripts?

One simple scenario I can come up with are 3rd party programs which might modify ~/.local/bin and put their own scripts/starters there, similar to 3rd party applications which put their *.desktop files in ~/.local/applications.

Any advice on this? Is ~/.local/bin safe to use for my scripts or should I stick to the classic ~/bin? Anyone has a better convention?

(Btw.: I am running Debian everywhere, so I do not worry about portability to non systemd Linux systems.)

Solved: Thanks a lot for all the feedback and answering my questions! I'll settle with having my bash scripts somewhere under ~/my_git_monorepo and linking them to ~/.local/bin to stick to the XDG standard.

View original on lemmy.zip
linux·Linuxbywolf

Stability problems with a Raspberry Pi ZeroW2

Let me start with, that I am running Raspberry Pi servers since the first Raspberry Pi was released more than a decade ago. Only problems I ever had until now, where dying SD-Cards with the first generation of RPIs. Since them I only buy really big high quality SD-Cards and I have RPI(4) servers running 24/7 for years w/o any troubles.

For a new project, I am running a web service on a Raspberry Pi ZeroW2 with an Apache reverse proxy on the same machine. Memory usage, even under load, is a maximum of 100 MB. This RPIZW2 simply dies after a few days, and I have no idea how debug this problem.

More details of the RPIZW2:

  • Uses Raspbian configured via Ansible to be an exact replica of my RPI(4), only Apache and a webservice were added
  • Quality power supply (original RPI hardware) and literally plugged to the same electricity circuit as the RPI(4)
  • The webapp is just a 'hello, world' with the current time and my internet connection is not fast enough to be DOSed
  • Monitored memory usage etc. for several hours and found nothing out of the ordinary
  • fail2bann is active and running
  • SD-card has several unused GIGs of free space and is same brand/quality as the one in the RPI(4)

Anyone experienced something similar? Has anyone an idea how to approach debugging this problem?

I am not sure that there is a better place at Lemmy for this kind of question than here. I'll happily move this post to another place, if it is not appropriate here.

View original on lemmy.zip
aboringdystopia·A Boring Dystopiabywolf

Ex-Amazon VP explains why rich a-holes with helicopters and personal assistants don't get why you hate your commute

Just to be clear: My main point of sharing this article is about how detached the life of rich people is.

I do not at all agree that most of them are “Not evil, just disconnected”, I am pretty sure (and know some of the privileged), who are actively evil, know exactly what they are doing and just don't give a shit.

https://boingboing.net/2025/03/03/ex-amazon-vp-explains-why-rich-a-holes-with-helicopters-and-personal-assistants-dont-get-why-you-hate-your-commute.htmlOpen linkView original on lemmy.zip
linux·Linuxbywolf

Multi-Gen LRU is a game changer on my low memory netbook

MGLRU.

On my low RAM/CPU netbook it is a game changer; thanks to ZRAM the netbook is perfect for browsing the internet/light work. When running my backups (creates big tarballs) or Ansible though, my desktop/applications would freeze/stutter noticeably. Enabling MGLRU simply solved the problem of freezes/stuttering, it feels like magic and besides ZRAM, I don't know of any other lever with this massive impact on desktop performance.

Just wanted to share this, for other users with low RAM/CPU hardware. I would assume the observed difference is less dramatic, once 8GB of RAM are available, but I would love to hear about other experiences.

I would also love to hear/learn about other levers with high impact to tweak for low RAM/CPU desktop devices. Anything else to tweak under /sys /proc which has impact on performance?

View original on lemmy.zip
asklemmy·Ask Lemmybywolf

Why is there no yearly refreshed covid vaccination recommendation for adults (like from the WHO)?

Title is question, but to clarify my assumptions:

  • Vaccination is a numbers game, and the odds are in your favor that the vaccination will protect you over you get a side effect or an allergic reaction/shock
  • An infection like covid/flue can damage your body long term, not even speaking of long covid etc.
  • To the best of my knowledge it has been shown that flue shoots lower the risk of dementia later in life, wouldn't it be a good enough guess that a covid shoot decreases risks for this too
  • Even if we only assume a covid vaccination is highly to reduce your sick days for only this year, isn't it a rationale tradeoff to get vaccinated, just to avoid 1-2 weeks sick?
  • Given the security of covid vaccinations, I feel like they have been scrutinized and tested extremely well and to the best of my knowledge it was checked that nothing of the vaccination remains in the body after a few weeks (for the argument that nobody knows the long term effects of RNA vaccination)

Again my question: Why doesn't the WHO or don't most countries recommend covid vaccinations for everyone? Are there any health/medical reasons? Are there financial reasons? Are there any countries/governments which recommend the covid vaccination for everyone and not only the 'vulnerable groups'?

Edit: Just to add, I am living in Germany and right now we have a big wave of children flue, where children even die in the hospitals and the children hospitals are near their limits. It seems common sense to just put flue/covid vaccination into every child/adult, to avoid situations like this.

View original on lemmy.zip
linux·Linuxbywolf

Debian 12 / Gnome / How to shutdown laptop after battery percentage crossed

Hello Linux community,

I need some help with shutting down my laptop when the battery reaches a low percentage.

I am using Debian 12 with the GNOME desktop. WARNING: Minimal installation with self selected packages.

What I want to achieve is, that the laptop just does a 'halt -p' or shuts itself down when the battery is below 20%.

What I did so far:

  • Look into GNOME settings in the power settings area and I found nothing helpful
  • I edited /etc/Upower/UPower.conf with my settings and changed the CriticalPowerAction to PowerOff, ensured the upower daemon is running via systemctl status and rebooted. The result was that I get a warning popup message in GNOME when the battery load reaches 21%, but it does not shutdown the laptop at 20% or under 20%, although I get another pop up announcing that the laptop would be shutdown
  • I ensured laptop-mode-tools and gnome-power-manager settings are installed

Any help/pointers for further help would be highly appreciated.

View original on lemmy.zip
asklemmy·Ask Lemmybywolf

Method of loci/memory palaces for memorizing professional knowledge or whole languages

The method of loci (MOL)/memory palaces are a widely known mnemonic devices and enable memory artists impressive tasks (like memorizing several decks of cards, memorizing numbers etc.). Further MOL is featured in pop culture e.g. Sherlock Holmes, Hannibal Lector etc...

There is, to the best of my knowledge quite some research, which shows that MOL is working/useful for improved retention, especially when combined with spaced repetition.

It seems I have never seem real world examples of long term memory palaces/method of loci applications. It always seems like a short term crutch for cards, numbers, speeches, grocery lists, phone numbers, vocabulary or for test/exam preparation. For example it seems that in language learning, the MOL is for encoding some vocabulary and visiting it regularly, until it is committed to long term memory.

All examples I find in books about the method of loci are again only about having one location, a route of 10-N stations, and never about building/using mnemonic devices to organize bigger amounts of knowledge.

Are there any examples of people using the method of loci/memory palaces to organize for example their professional knowledge? Or of polyglots having/keeping memory palaces for language learning? Is there any research about long term usage of the method of loci?

View original on lemmy.zip
asklemmy·Ask Lemmybywolf

Books about the elite / modern nepotism

Can anyone recommend me books about the modern elite/modern nepotism and how it works?

I have experienced/observed modern nepotism several times in my life, to give you some examples:

  • person founds a so called start up with money from person relatives, which boils down to paying other people to do all the work w/o anything resembling a business plan in the first place. Start up is a total failure, person gets job as a specialist for building startups via divine intervention.
  • at several companies there is a level which people who do the work can reach, and above that level people from higher class get positions seemingly out of nowhere (unless they were childhood/study buddies of someone higher up) w/o any qualification/knowledge/experience to do this kind of work
  • from a certain level on (at least in IT where we have more than enough money for it) everything is politics; when discussing technical problems/solutions at that level, the first question is always who is the sponsor behind the initiative and if this comes from the wrong party, the technical merits are of no interest at all
  • a lot of positions even lower level in IT usually are distributed via nepotism/connections, I observed especially SCRUM masters and product owners are chosen for their family names/connections. (Two negative highlights: Product owner was literally boyfriend of company owner and another product owner was son of parent to which company wanted to sell their shit)
  • lower on the list but still annoying and experienced several times: Son of friend of boss/manager/team lead gets internship in company although better candidates are there and often the nepotism sons would never have gotten an internship on their own merits, but end up with fancy internship from known company on their CV.

I understand that when you deal with a group of people politics are always relevant and inherent to groups.

My question is literately, how does this all work and why is this so extremely widespread?

Anyone can recommend some books about this social systems which give some insights?

Further, when I see what is mounted on money/time/energy because of this nepotism or the current favorite ideas of the elite, how comes no companies (that I know of) interrupt the market with a company slightly less dysfunctional.

Are there historical examples how elites/nepotism was overthrown w/o a bloody revolution?

View original on lemmy.zip
linux·Linuxbywolf

ZRAM configuration and other tweaks for potatoes running Linux

I posted about ZRAM before, but because of my totally unscientific experiment, personal experience and the common question, which Linux to run on potatoes...

First, I tweaked ZRAM for my use-case(s) on my hardware, this settings might not be right for your use-cases or your hardware!

My hardware is a netbook with an Intel Celeron N4120 and 4G RAM (3.64G usable).

When I recently played around with ZRAM settings, it felt like the zstd algorithm made my netbook noticeable more sluggish. It never felt sluggish with lzo-rle or lz4.

In a totally unscientific way, I rebooted the computer several times (after a complete update of everything), executed my backup script several times, and measured the last 3 executions. (Didn't touch the netbook during the runs.) The bottleneck of the backup script should not be ZRAM, but it is some reproducible workload that I could execute and measure.

To my surprise, I could measure a performance difference for my backup scripts, lz4 was consistent fastest in real and sys time w/o tweaks to vm.page-cluster!

Changing the vm.page-cluster to 0 further enhanced the speed for lz4, but with this one toggle, all of a sudden zstd is as fast as lz4 in my benchmark and runs with a more consistent runtime.

Changing the vm.swapiness to 180 decreased the speed for lz4, to my surprise.

Obviously the benchmarks are not 100% clean, although the trend for my workload was clearly in favor of lz4/zstd.

To the best of my knowledge, I ended up with nearly the same tweaks that Google makes for ChromeOS:

  • zstd as algorithm (I think ChromeOS uses lzo-rle)

  • 2*ram as ram-size

  • vm.page-cluster = 0

  • Install/enable systemd-oomd

vm.page-cluster = 0 seems like a no-brainer when using ZRAM, on my netbook it is literally the switch for 'fast' mode.

In summary: ZRAM makes my netbook totally usable for everyday tasks, and with tweaking the above settings I run Gnome 3, VS Code and Firefox/Evolution w/o trouble. (Of course, Xfce4 on the same machine is still noticeable more performant.)

I wonder if we should recommend to people asking for a lightweight distribution for potatoes to check/tweak their ZRAM settings by default.

Anyway, I would be interested in experiences from other people:

  1. Any other tweaks on my ZRAM or sysctl for potatoes which made a measurable difference for you?
  2. Any other tips to improve quality of life on potatoe machines? (Besides switching to KDE, LXDE, Xfce, etc. ;-))
  3. Any idea why vm.swapiness didn't improve my measurements? To my understanding it should basically have cached more of my files in ZRAM, making the backup run faster. It even slowed the backup down, which I don't understand.

Edit:

  • zstd beats lz4 on my machine for my benchmark when vm.page-cluster=0!
View original on lemmy.zip
linux·Linuxbywolf

Firefox enables user tracking

... I mean, WTF. Mozilla, you had one job ...

Edit:

Just to add a few remarks from the discussions below:

  1. As long as Firefox is sponsored by 'we are not a monopoly' Google, they can provide good things for users. Once advertisement becomes a real revenue stream for Mozilla, the Enshittification will start.
  2. For me it is crossing the line when your browser is spying on you and if 'we' accept it, Mozilla will walk down this path.
  3. This will only be an additional data point for companies spying on you, it will replace none of the existing methodologies. Learn about fingerprinting for example
  4. Mozilla needs to make money/find a business model, agreed. Selling you out to advertisement companies cannot be it.
  5. This is a very transparent attempt of Mozilla to be the man in the middle selling ads, despite the story they tell. At that point I can just use Chrome, Edge or Safari, at least Google has expertise and the money to protect my data and sadly Chrome is the most compatible browser (no fault of Mozilla/Firefox of course).
  6. Mozilla massively acts against the interests of their little remaining user base, which is another dumb move made by a leadership team earning millions while kicking out developers and makes me wonder what will be next.
Firefox enables user trackinghttps://mstdn.social/@Lokjo/112772496939724214Open linkView original on lemmy.zip