|
Or Alain of course ? I’m surprised it was accepted
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 731 4/6*
⬜⬜⬜⬜🟨
🟨⬜🟩⬜⬜
⬜⬜🟩🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 731 5/6
⬛⬛🟩🟨⬛
⬛⬛🟩⬛🟨
⬛🟩🟩⬛⬛
🟨🟩🟩⬛⬛
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 731 4/6
⬜🟨⬜🟩⬜
⬜🟨⬜🟩🟩
⬜🟨⬜🟩🟩
🟩🟩🟩🟩🟩
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
#Worldle #514 1/6 (100%)
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
easy one
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I drank the Kool-Aid: it tasted like the refrigerated air in gigantic server farms with top-notes of ozone and mass-layoff sweat.Quote: To determine if a circle is in an ellipse in C#, you can use the following code:
public bool IsCircleInEllipse(RectangleF ellipseBounds, PointF circleCenter, float circleRadius)
{
var xRadius = ellipseBounds.Width / 2;
var yRadius = ellipseBounds.Height / 2;
var xCenter = ellipseBounds.X + xRadius;
var yCenter = ellipseBounds.Y + yRadius;
var dx = Math.Abs(circleCenter.X - xCenter);
var dy = Math.Abs(circleCenter.Y - yCenter);
if (dx > xRadius || dy > yRadius)
return false;
if (dx <= xRadius - circleRadius && dy <= yRadius - circleRadius)
return true;
var xCornerDist = dx - xRadius;
var yCornerDist = dy - yRadius;
var cornerDistSq = xCornerDist * xCornerDist + yCornerDist * yCornerDist;
return cornerDistSq <= circleRadius * circleRadius;
}
This code checks if the circle is completely inside the ellipse. If you want to check if the circle is partially inside the ellipse, you can modify the code accordingly.
I hope this helps! Let me know if you have any other questions.
Source: Conversation with Bing, 6/19/2023
p.s. none of the "relevant" links to published code examples included in the response were to articles with a solution to determining if a circle was fully contained in an ellipse.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I give that code a C-. Multiple return points, the two if statements should really have braces and composed as if-else-else with a "ret" variable so there's only one exit to the function, at the end! And a return with a conditional and computation in it just sucks, as it makes it more difficult to debug. Otherwise, the variable naming is good, and I wonder where it stole the code from. And your p.s. is quite amusing, so much for the AI accurately referencing its sources.
|
|
|
|
|
It also assumes one knows how to get the "bounding rectangle" for an ellipse in the first place. Yeah ... I also think the code is "lifted".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
@marc-clifton
My sources at OpenAI and MS/Bing tell me that the effort to get generated code in C# optionally written in the flavor called "High Cliftonian" has been postponed again until at least spring 2024.
cheers, bill
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
modified 21-Jun-23 8:20am.
|
|
|
|
|
|
If it ruptured at that depth, you'd be dead before you knew it - it would be a quick death, at least. 6,000 psi/410 bar!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Not quick enough. I watched a terrible documentary focused on dead on a submarine. Ususaly when the hull is compromised, the water compresses the air and air kills you.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Did the passengers buy a one way ticket?
I'm claustrophobic, I wouldn't have even gotten in the sub.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
Mike Hankey wrote: I'm claustrophobic, I wouldn't have even gotten in the sub. I'm fat, I wouldn't have fit in the sub
Jokes aside, two things spring to mind: a) let's hope they are found before the 96 hours air reserve deadline - loss of life is tragic no matter circumstances; b) just because something can be done it doesn't mean is should be done.
Mircea
|
|
|
|
|
The Titanic is a mile down, odds of survival are not in their favor, but I do hope they come out alive.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
More like 2 miles, but after a certain point it doesn't matter.
Mircea
|
|
|
|
|
You're right, don't know where I got 1 mile from.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
Me and the missus went on a submarine in Hawaii, around 100-125 ft down. My wife was marveling at the fish and coral we were seeing, me thinking how screwed we'd be if something went wrong.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: ...me thinking how screwed we'd be if something went wrong.
LOL! It brought to mind a brief conversation I had with tourists standing on the Sky Walk at work. Grand Canyon West Sky Walk is a glass walkway extending out over the edge of the Grand Canyon with a marvelous view of the bottom, some 4000' down. I casually mentioned to the others on the walk, "you do know that this was built by the low bidder, right?" Expressions were priceless... Being crushed in a sub would be a terrible way to die, but it's quick. Falling from that thing you'll have some time to think about it.
I wonder what the guy who jumped last week was thinking about?
Will Rogers never met me.
|
|
|
|
|
Roger Wright wrote: I wonder what the guy who jumped last week was thinking about? "Wow, it's really not the fall that kills you!" or "My name is Wile E Coyote, this happen to me all the time." ?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Yup. Fell, my hiney. There's all sorts of barriers around it, and people within 50' to help. He either jumped or was pushed.
Will Rogers never met me.
|
|
|
|
|
So he could not have climbed up to 'get a really good selfie' and then leaned too far back? Pictures I found don't really make it clear if there is a catch net around it.
Certainly other people at the Grand Canyon in other places have done exactly that.
|
|
|
|
|
They don't allow cell phones on the Walk, and if you want a picture, the staff will take one and sell it to you! It's quite a racket.
Will Rogers never met me.
|
|
|
|
|
Roger Wright wrote: They don't allow cell phones on the Walk, Does that go for old style cameras as well? Or do they simply assume that nowadays, photos are made with a telephone?
(So what if an old style camera has phone electronics so you can make a call with your camera? )
|
|
|
|