groet

@groet@feddit.de
0 Post – 28 Comments
Joined 8 months ago

its a lot more readable if you replace the : with any other function name

fork() {
     fork | fork &
};
fork

define a funktion called fork, which calls itself twice (call once, pipe ( "|" ) the result to the same function again which is run in a new thread in the background ( "&" )). Then call the newly defined function. The : is used to make it look more like emoji.

The western hemisphere isn't just the Americas. It includes half of europe...

There are quite a few people in the western hemisphere that don't even bat an eye when they walk past a 1000 year old building on their way to work every day.

For me the oldest building is just a random house from the 13 century.

3 more...

Repeat after me:

"Current AI is not a knowledge tool. It MUST NOT be used to get information about any topic!"

If your child is learning Scottish history from AI, you failed as a teacher/parent. This isn't even about bias, just about what an AI model is. It's not even supposed to be correct, that's not what it is for. It is for appearing as correct as the things it has been trained on. And as long as there are two opinions in the training data, the AI will gladly make up a third.

1 more...

The cells of your body are part of you. They share the same DNA and descend from the same cell (the fertilized egg) and depend on each other to stay alive. However there are more gut bacteria inside of you than there are cells of yourself (they are a lot smaller than human cells). And they are not related to you. So you could reincarnate as a gut bacteria of somebody else

11 more...

A drive label is just a string that can be set by any privileged process. Seems like this installation of the new distro didn't do that. Or you skipped a step in the install where you could have chosen the drive label.

If it is a bug in the installer or if you missed it, I can't tell.

But you can just change it in gparted or something else.

1 more...

Yes it is unethical and immoral to fool service personal and lead them to believe they receive a tip when they don't. Everybody hates to receive those fake church bills.

Honestly it might be the best Star wars movie, period. At least from todays perspective. The original trilogy was groundbreaking for their own time but haven't aged the best. As with many media, what was innovative 40 years ago is cliche and stale today.

11 more...

There is a famous experiment , where a person gets 100$, and have to offer an arbitrary percentage of that to a stranger. If the stranger declines, both get nothing.

From the strangers perspective, getting offered even 1$ is a win, but the vast majority rejected anything below 30%

The thing that confused me when first learning about docker was, that everybody compares it to a virtual machine. It's not. Containers dont virtualize anything. They take a (single) process from the host OS and separate that into its own environment. All system calls, memory access, file writes etc are still handled by the same os (same kernel). However the process is separated both on the file system and process level. It can't see other processes outside of the container and it also doesn't see the real filesystem. It sees a filesystem provided by the container. This also means it sees different file and user permissions. When you run a alpine Linux docker container on an Ubuntu system, the container only containes the (few) files for alpine but no Linux kernel no desktop environment. A process inside that container only sees the alpine files and not the Ubuntu files. It also means all containers see a filesystem independent of each other and can use libraries and dependencies of different versions (they are only files after all).

For administration it makes running complex services easy. You define how to setup that service (what base Linux distro to use, what packages to install, what commands to run, and how to start the process). You can then be save to assume the setup of that service did not interfere with the setup of any other service. "Service 1 needs a certain system wide config changed? Service 2 needs that config in the default state? And both need a different version of the same library?" In containers you can have all at the same time because they each see a different version of the same config and library.

And all this is provided by the kernel itself. All docker does is provide an "easy" way to create and manage containers but could could do all of that using chroot, runc and a few other.

As a note, containers usually don't come with systemd as they don't need an init system. You would run the service directly inside the container and then use systemd outside the container to make sure the container is started/restarted, or just docker as it can already do that.

I found a great article demystifying containers recently

It's even less. The Antilope converts 10% of grass to meat, the lion converts 10% of Antilope meat to lion meat. So it's 10% of 10% bringing us back to the root problem of everything... The 1%!!!!

Can't remember exactly what happened but it involved changing permissions on /bin /sbin and similar. You know for security ...

In the end I didn't have permissions to run chmod, su or sudo

Fortunately there is little that can't be fixed by booting from a live image.

By design nothing in the chain can be altered. But of course you could have a block indicating "person X is now person Y". But you can always read that Y was at some point X (and at what point the change happened). That would not be good, as it would be a public ledger of all trans people. It would also make things like witness protection impossible because inserting a block "today in 2024, person W was born in 1974" is very suspicious

> energy equals mass

That doesn't mean energy has a weight.

It means it is physically possible to transition energy to mass and vice versa. Sunlight hitting the earth does not add any weight.

Edit: turns out that part was wrong

Also, earth radiates heat out to space. At a rate of (aaaaaaaaalmost, because of the greenhouse effect) 100% of the energy we get from the sun. If it didn't, earth would be a few million degrees hot by now...

3 more...

Your analogy is lacking. Being technologically behind does not make us the monkey with the nuke, it makes us the human with the rock. Aliens able to travel to earth will have a very easy way to deal with "bad thing flying fast towards us".

2 more...

Most VPNs use UDP. So set up a wireguard, tailscale or openvpn.

But you still need to "open up the firewall". UDP still works on ports the same way as TCP. I do agree however, that exposing a VPN port is more secure than exposing a port for a game server, as you don't know about the security of that server software.

6 more...

I do it quesadilla style. Two wraps, cheese and hot sauce in between. If I feel fancy i add tomato slices on top after microwaving

1 more...

I always assumed the word coke is derived from coca(-cola)

I think it's about usage rights. People are fine with their post being on their chosen end of the fediverse forever but don't want corporations and news sites to generate a profit by using the posts. That is independent of federation, federation just makes it easier.

Chrome doesn't care about closing html tags. If they are mising the document is invalid but chrome will render it anyway and just add the closing tag where it thinks it should be.

At the other end, Firefox goes beyond the standard and will block certain connections that should be allowed by the fetch standard (the setting to disable that is called enhanced tracking protection).

So chrome allows things things it shouldn't while Firefox blocks some it shouldn't

One caveat about the Olympics is, you can't just choose to compete there yourself as an athlete, even if you are world class. You have to be part, and chosen by, a national organisation. So even if the Olympics allow trans athletes, as long as most countries don't, there won't be trans athletes any time soon. I agree on the rest, I just don't think the Olympics will be a forerunner in terms of trans representation.

Can you verify the software running on an instance is the same as the one in the source code repository? You can't. Can you verify the instance isn't running code to read passwords from your login requests even if the code is the original open source code? You can't.

That's why (and for other reasons) you should never use a password for more than one site/service/instance.

Lemmy admins (admins in the Lemmy application) probably can't read your password. But everyone with admin rights on the server operating system can.

They sometimes buy keys using stolen credit cards. When the fraud is found out, the banks will request the money from the developer. They in turn often don't have a way to lock the fraudulent key, so it remains valid.

The costs for the initial bank transfer, plus the time invested in returning the money to the credit card holder are payed by the developer.

The key reseller has a 100% profit margin, the customer has a valid and cheap game key, and the developer actually lost time and money.

1 more...

1.1

Yes and killing a few invaders while the planet gets orbital lazered from 2 solar systems away will for sure win a war against an alien force.

Half live 2 got that right. The alien invasion is called the 7 minute war, because after 7 minutes earth had to surrender.

The assumption of course is, that the aliens are as militaristic as we are. If humans are uniquely violent in the universe, we could actually win an invasion. But if war is a normal thing in the universe, there is a 0% chance for any planet bound society to win against an post FTL attacker. Even with many nukes.

You don't need to know someone to have a conflict of interest. A candidate running on the promise to pardon everybody for every crime if they vote for that candidate is a clear conflict of interest. Or pardoning somebody for payment.

There are plenty wild animals in large cities. Foxes, rabits, racoons ... Berlin famously has a large boar population. Having a more human friendly city with green tram lines and less car traffic will surely increase animal populations. However I doubt it would be a problem that isn't easily solvable or is still preferable to the current situation.

If you want any system to connect to you, you need to open a port. You don't need to do that for outgoing connections (the OS and your router will automatically open ports for the return connection). So if everybody connects to one central system, nobody needs to (explicitly) open any ports (except for the central connection point)

I wouldn't advise telling another mod to 'step the fuck down.'

"Dont tell people abusing their power that they are abusing their power or they might abuse their power"

Yeah you should probably step down if that is your opinion...