AngryPancake

@AngryPancake@sh.itjust.works
0 Post – 10 Comments
Joined 6 months ago

Given that you probably are using pointers, and occasionally you are allocating memory, smart pointers handle deallocation for you. And yes, you can do it yourself but it is prone to errors and maybe sometimes you forget a case and memory doesn't get deallocated and suddenly there is a leak in the program.

When you're there, shared_ptr is used when you want to store the pointer in multiple locations, unique_ptr when you only want to have one instance of the pointer (you can move it around though).

Smart pointers are really really nice, I do recommend getting used to them (and all other features from c++11 forward).

1 more...

There's also IRC

5 more...

As a computer science problem it ends at position = window center / 2 - object width / 2

Mozilla has been building gecko for decades, why would they cave to a conglomerate and invalidate their principles?

Because everyone can spin up their own irc server. It's not federated though.

You got it pretty much on point. Shooting a laser at atoms is like shooting a machine gun at an indestructible target. If it moves towards you, you can slow it down. But preventing it from accelerating when the target is stationary is where quantum mechanics comes in. That is your explanation: The laser light only acts as a force when the light is resonant with the atom and the Doppler effect means that the resonance condition changes depending on the speed of the atoms.

Adding to what DmMacniel said, it's a hardware interface, often accessed via a USB port (which after all, is the universal serial bus).

1 more...

In what sense for bad?

There are amphetamine antidepressants. You can ask your doctor about it (e.g. bupropion, which is not addictive).

1 more...

Yeah I've been on bupropion for about 1.5 years. Had an increased heart rate in the beginning as well so we started at a very low dosis, then went up step by step. However the side effects vanished after 2 months. I don't feel hyper active, I just don't feel super low anymore. It doesn't make the depression go away but it allows me to work on it, because otherwise I couldn't even get out of bed