abs(x-y)is the distance between points x and y. We don't care about order here because of the absolute value. And by its nature, it will always be positive - hence unsigned.
We divide the distance between the points by 2. This always provides a solution that fits in the signed bounds of X and Y once you add to min(x,y).
And it costs an ABS, a subtract, a non-negative bitshift, and a min().
To make it more complete, a switch statement depending on type of input function would be needed to handle the various sizes of numbers. And then it'd be doing the same but for long int->unsigned long int etc.
Unfortunately abs(x-y) can overflow in two different ways.
The subtraction can overflow, e.g. INT_MIN - 1, or 0 - INT_MIN. The abs
call can also overflow, with abs(INT_MIN). In both cases, the overflow causes
undefined behaviour.
To calculate the difference between 2 signed integers we must bear in mind
that the result may exceed INT_MAX, and must use unsigned int for the result.
I wrote about this on StackOverflow: https://stackoverflow.com/q/10589559
Unfortunately, this ban happened close to a year after the original purchase, and my intent and goal was to play the single player campaign of the game I purchased, not get my money back.
I know you're being sardonic... but it will likely be another fluorine based chemistry that is hopefully more biocompatible (flush out of body easily), and not cause undue harm.
The perfluro- line of chemicals are quite amazing.. if it werent for them being completely obnoxious and stay in the body like lead.
What is it that makes fluorine added to carbon chains so much more versatile? I kind of get why carbon is so versatile, but what is that makes fluorine so special and why can't some other potentially less harmful halogen do the job?
Edit: Ah adding chlorine destroys the ozon layer, what's why.
Fluorocarbons have a low London dispersion (induced dipole) force due to the high polarization of the C-F bond. This is responsible for many of the unusual properties of fluorocarbon solvents, particularly high gas solubility and extreme hydrophobicity. It's also just inert, much moreso than chlorocarbons (which tend to be quite toxic).
My undergraduate research project at involved identifying poly-tert-butyl-methacrylate as a polymer with similar hydrophobicity (as measured by the wetting angle) to the fluorocarbons, but I don't think anything ever really came of it. It may be unfavorable for other reasons; I don't remember.
Fluorine forms the strongest bonds to carbon that are available (much stronger than a carbon-carbon or carbon-hydrogen bond, also stronger than carbon-chlorine). It acts like an immovable stub preventing further reactions, which is great for materials like nonstick coatings, but also prevents natural breakdown in the environment.
In any case, I have never seen any way to coerce POSIX unlink() behavior on Windows.
'Broad software compatibility was initially achieved with support for several API "personalities", including Windows API, POSIX, and OS/2 APIs – the latter two were phased out starting with Windows XP.'
Its always vogue to call out public/popular humans for diseases. Not the best look.
Now, capitalism... now that causes a whole host of problems. If a corporation were a real human, it would be diagnosed as a sociopath. Noam Chomsky did a great work with "The Corporation": https://www.youtube.com/watch?v=s5hEiANG4Uk
It’s true, similarly people self-diagnosing their parents or other family members and friends as narcissists seems to be a quite common and probably unhealthy recent trend as well.
In this case though I wasn’t saying the people calling this leadership are narcissists, but I do think it’s a sign they are confused that the behaviours they are calling leadership are also symptoms of a narcissistic meltdown.
Perhaps... But I would think that living with someone (even if not by choice for the first 18 years of your life) gives you a much deeper understanding than watching some celeb online and making snap judgements there.
And in my case, all my siblings have deemed that our mother is indeed a narcissist. We're all no-contact with her. We're not docs, so med diagnosis is off the table... But you can definitely be a narcissist without being diagnosed with NPD.
Whatever works for you, I’m just some guy on the internet. All I was trying to say is that I think it’s unlikely real leadership correlates with narcissistic collapse. I’m not trying to debate you about your personal life, capitalism, misdiagnosis of celebrities, or any other topic if it came across that way.
> Its always vogue to call out public/popular humans for diseases. Not the best look.
Why? Because they still have a decent amount of support and don’t want to alienate their fans?
By 1936 it was clear that Hitler was a crazy narcissist. If people don’t speak out due to fear it becomes a self-fulfilling prophecy because everyone thinks the number of people supporting the narcissist is so much bigger than it actually is.
The best antidote against a narcissist is having the largest possible amount of people spending time with them 1:1 or in the same building anyway.
Because by itself it's just an ad hominem, just an attack against someone's character, with no other substance. It's not better than to point a finger and yell "Ur dumb!".
All these companies in this realm are vultures. They add nothing - they just take their cut to do something that should be easy.