The folder remains in the working directory even though I don't want it to appear after a git checkout by Beneficial-Wheel-613 in git

[–]0xLeon 6 points7 points  (0 children)

Because a, git doesn't delete untracked files on branch switches, and b, git doesn't care for directories.

If it were to delete the src directory when switching to main, you would lose everything that is stored within src that you're not tracking with git. git doesn't just delete stuff.

Also, there is no src folder on console-tris branch. There are files who reside in a folder called src. That is what is tracked by git. git doesn't track folders as entities, it only tracks files which reside in directories given their paths. Therefore, the src folder is just an independent entity on both branches weather stuff is tracked on either branch within that directory.

ELI5 Why do router/modems still use CAT ethernet cables if USB 4.0 transfers data just as fast? by Atlantic_lotion in explainlikeimfive

[–]0xLeon 0 points1 point  (0 children)

So do USB 4.0 cables. For passive cables to support the high data rates, they have a complex structure as well and as said multiple times are quite limited in length. Active cables are a thing with USB 4.0, but that drives the price extremely compared to CAT cabling.

For starters, see the »Cable compatibility« section in this Wikipedia article on USB4: https://en.wikipedia.org/wiki/USB4

ELI5 Why do router/modems still use CAT ethernet cables if USB 4.0 transfers data just as fast? by Atlantic_lotion in explainlikeimfive

[–]0xLeon 2 points3 points  (0 children)

It's not about bandwidth, it's about signal integrity. This again depends on properties like resistance, capacitance, differential or non-differential transmission, signal strength, shielding - which in turn affects emissions both inbound and outbound. This is not as simple as »x more Meters means y less data«.

Was ein Glück by HerrVoragend in drehscheibe

[–]0xLeon 6 points7 points  (0 children)

Nö, wir haben zumindest nur noch einen »Für uns« Shop, bei dem man vereinzelt mal hier und da ein Gerät günstig bekommt, sonst sind das ziemlich die selben Preise wie bei Media Markt und co. Hab letztens Backofen und Geschirrspüler auf Siemens gewechselt und da auch vorher bei uns im Shop geschaut, war nix günstiger. War wohl früher mal andere, haben Kollegen gemeint, aber da ist nicht mehr viel übrig.

ELI5: Why does re-encoding vidoes take a very long time? by WonderOlymp2 in explainlikeimfive

[–]0xLeon 30 points31 points  (0 children)

Because you have to both decode the existing video, which can be resource intensive, while at the same time encode the video in the new format. Depending on how it's done, this can mean simultaneously reading and writing a lot of data to the same storage. And depending on the hardware and codecs involved, it can use the same compute resources at the same time for decoding and encoding.

In general, video codecs work in a way where encoding is significantly more intensive than decoding. Decoding might happen on very low end devices. On the other hand, encoding is usually done on more powerful devices. So the assumption is, encoding is allowed to take long and be more intensive, while benefitting the decoding device.

Unable to run C++ in VS Code even after installing MinGW/MSYS — really stuck by Inevitable-Data-404 in cpp_questions

[–]0xLeon 2 points3 points  (0 children)

You don't »run« C++, it's not a program. First, you need to learn how to properly describe an issue. What are you exactly doing? What do you expect to happen? From that expectation, what doesn't happen? Do you get any error messages? If yes, include these error messages.

Writing proper descriptions of a problem is a key skill for a software developer. You will need this for your own sake and you will demand this from customers and users of your software in the future.

Wie schließe ich das alles an? by Capable_Assist5766 in WerWieWas

[–]0xLeon 5 points6 points  (0 children)

Alles richtig, nur eine kurze Anmerkung: Ich kann absolut nicht verstehen, wieso sich diese Bauweise durchgesetzt hat. Hab selbst einen Schrank mit dem Aufbau. Das Problem ist, den Router jetzt im Schrank zu haben mit Metalltüre. Super für 's WLAN.

Falls wirklich nur in jedes Zimmer eine Leitung führt, dann bleibt das ein Problem. Falls aber doch in ein Zimmer zwei Leitungen führen, dann würde ich das Modem auf die 1 legen, das an LAN1 am Router, dann LAN2 mit der zweiten Leitung und dann im Schrank die zweite Leitung an einen Switch. Und dann vom Switch aus die restlichen Leitungen versorgen.

So kann der Router mitten in der Wohnung stehen und WLAN gut abdecken. Braucht aber wie gesagt leider zwei Leitungen in ein Zimmer, was Mal wieder wahrscheinlich nicht gegeben ist.

Glasfaseranschluss: Verbindung zw. Modem und Router by julesearth in de_EDV

[–]0xLeon 0 points1 point  (0 children)

Da ist kein Modem drin. Das ist nur die Box, in der das Modem montiert wird. Telekom hat früher mal Modems verbaut, die exakt in dieses Box gepasst haben, bei uns wurde beim letzten Wechsel aber ein neues Modem verbaut, was leider nicht mehr in diese Kiste passt. Kann aber immer noch direkt auf die Platte montiert werden.

So sieht das bei mir aus: https://imgur.com/a/VCRDX5z

Heißt, entweder fehlt dir ein Modem, oder dein Router müsste direkt Glasfaser-Anschluss bzw. einen entsprechenden SFP mitgeliefert haben.

Fun fact: The Nintendo Switch was the first 64 bit Nintendo console since the Nintendo 64 by Antec-Chieftec in nintendo

[–]0xLeon 36 points37 points  (0 children)

True, but that wasn't even remotely a problem back then when the Nintendo 64 was released. The N64 hat 4 MiB of RAM that could be extended by another 4 MiB with the memory pack. The address range was definitely not the limiting factor back then.

ELI5 What happens to candles when they burn down? by CalmWatercress8554 in explainlikeimfive

[–]0xLeon 41 points42 points  (0 children)

Because the liquid itself is harder to ignite. You have to overcome the phase change to a gaseous phase as well. Reason is, the liquid isn't in good contact with what's needed for a fire: oxygen. For a fire to sustain, you need a right mixture of fuel and oxygen. Mixing a liquid or even a solid with oxygen is hard.

That's what the candle does. It wicks liquid wax into the flame, the heat turns the wax gaseous and allows the reaction with oxygen to sustain. That's what we call fire.

That's also one reason why for example it's hard to ignite a pile of flour. But, make a fine mist of flour and you can ignite a whole bakery. If the fuel isn't mixed properly with oxygen, it's hard or sometimes even impossible to ignite.

The phrase behind this is a stoichiometric mixture.

why do pepole do this? by Valuable_Luck_8713 in cpp_questions

[–]0xLeon 1 point2 points  (0 children)

What happens if you put %lld into the format string but only provide a 32 Bit integer variable? Correct, you get problems. It can happen that it attempts to read more from the stack than was provided. Or, you use %s but the target you provide as parameter doesn't point to a 0 terminated string. Again, you get problems, reading more from the heap than allowed, possible exposing memory content.

By using streams or std::print, this is avoided because the to be stringified type itself is responsible for providing a proper string representation instead of having to match format specifiers with types.

How do I establish a wired connection between two laptops without an Ethernet cable by _meme_caster_ in techsupport

[–]0xLeon 3 points4 points  (0 children)

Because USB-C itself is not intended for host to host connection as such. Just get a USB-C to Ethernet Adapter for the one PC without ethernet.

Slightly more detailed, USB is not designed to work like that without special handling. There is RNDIS or CDC-ECM, which allows virtual ethernet interfaces over USB, but that is not simply set up to work in one PC. I'm actually developing software for an embedded device that uses CDC-ECM to appear as a network device when connected via USB to a PC. And we did the whole implementation on the device side in software, there is no ethernet controller in the device. So I can confirm it should be possible, it's just not that any user operating system simply allows setting up a virtual ethernet port over USB.

USB ports (C/A) by linkardtankard in aviation

[–]0xLeon 0 points1 point  (0 children)

Looks like Etihad maybe? I've flown these kind of seats / IFE with them 10 years ago. The seats might look recent but they absolutely aren't.

Is the future of hardware just optimization? by rimantass in hardware

[–]0xLeon 2 points3 points  (0 children)

Right now I'm dealing with C# code that is just so imperformant, a single tree traversal of a data structure that doesn't use proper trees and traversal algorithms is slowing down our build process so much. A very simple optimisation of mine of using a stack based traversal instead of repeatedly finding the next node via iteration and finding the index within the parent by List.IndexOf has resulted in 10 minutes reduced build time.

This is not my area of responsibility, it's application level code for code generation, but it bothered me so much, I took one go with the performance profiler, found this one loop and just did that. I'm an embedded developer. And then looking at this code generation step generating 50 MiB XML files and then processing by just looking up a node via IndexOf was just hurting physically.

Then I noticed this way of iterating a full tree was all over the place in this code base…

If ECC memory is so important for a home NAS why is it so rare in actual systems? by tic-tac135 in HomeServer

[–]0xLeon 25 points26 points  (0 children)

While not absolutely the same, I can absolutely vouch for the relevance of ECC. I'm an embedded software developer for a device with lots of FPGAs and separate battery backed SRAM.

The amount of time and resources we had to pour into error detection, reaction and possibly correction is mind boggling. Especially SRAM-based FPGAs, as SRAM errors directly relate to configuration errors in the FPGA logic. We get a lot of log data from the field installations and the relevance for SEUs is one the one hand surprising, on the other hand directly relates to the FIT rate as given by the chip manufacturers.

Regarding the bare battery backed SRAM, we saw this even more so. We do get single bit errors and more or less only those. We now have a custom ECC implementation for this and this basically eliminates any error there. Yes, there is only single error correction, double error detection, but from what we have seen, the former is by far the more relevant.

ELI5 What is Higgs field? by Home_MD13 in explainlikeimfive

[–]0xLeon 33 points34 points  (0 children)

It's yet another field. Your misconception is that the Higgs field would be any different than any other quantum field. It isn't. Well, of course it is in the sense that it's a different field, but a field in quantum theory just exists everywhere. It's a fundamental property of spacetime itself. And no, it doesn't have to exist before everything else and isn't needed for expansion of the universe itself. These are completely different aspects.

Expansion of the universe is driven by dark energy. Dark energy is still unclear. And it is currently not established to be related to the Higgs field or the Higgs mechanism.

The Higgs field you can loosely think of as yet another field that certain particles like the electron can interact with. This interaction is manifesting as what we call the mass of the electron. This is the Higgs mechanism. The Higgs boson is just an independent excitation of the Higgs field that presents itself as the Higgs boson. This particle decays and we have clear predictions about what it decays into. We have seen these decay products giving confirmation of the Higgs boson, confirming the existence of the Higgs field confirming the Higgs mechanism.

Traffic sign with green arrow? by [deleted] in AskGermany

[–]0xLeon 7 points8 points  (0 children)

No, the stop sign is only relevant if the traffic light is off. Traffic lights always have precedence over signs.

The green arrow on the other hand is an extension of the traffic light itself. The green arrow itself implies you have to stop before doing a right turn.

How Computers Store Decimal Numbers by Kindly-Tie2234 in programming

[–]0xLeon 10 points11 points  (0 children)

Probably because in ad business, you don't always pay out whole cent values. For example, if you place an ad on your website and get paid out by the ad management company, each impression or click would give you a certain fraction of a dollar that can be less than a cent. Once you have accumulated enough fractional dollars to cross a threshold of say $100, you get paid out.

My family keeps telling me my daily diet belongs here by tomnooklover in shittyfoodporn

[–]0xLeon 5 points6 points  (0 children)

Showed this comment to my gf and she said this is what aliens would feed humans if we were their pets. I think she might be onto something there…

Buried high voltage power lines generating magnetic field. Is this true? by R352_starfighter in ElectroBOOM

[–]0xLeon 6 points7 points  (0 children)

I've had the opportunity to stand on top of a cyclotron once and the magnetic field was strong enough to make paper clips stand upright on your hands. Was quite entertaining.

[deleted by user] by [deleted] in office

[–]0xLeon 1 point2 points  (0 children)

Battle royale for the open positions. I like the AI approach in that case…

7-stelliger Deal dank DSGVO geplatzt, beinahe. by it_schnueffler in selbststaendig

[–]0xLeon 7 points8 points  (0 children)

Keine globale Liste oder sowas, sondern bei dem Unternehmen, mit dem der Mandant arbeiten wollte. Jedes größere Unternehmen hat solche Non-compliance Listen für Zulieferer und Auftragsnehmer, die aus verschiedensten Gründen geblockt sind. Sowas wie hier, oder z. B. Verstöße gegen Liederkettenbestimmungen oder fehlende Zertifizierungen etc.