|
Yeah; I still don't understand dramatically; particularly the drama.
"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
|
|
|
|
|
Off topic,
But just wanted to mention that C++20 has std::ranges[^] along with some new additions to <algorithm>[^] that would make this easy.
|
|
|
|
|
That's cool. I heard C# might eventually wind up with something like that too.
Real programmers use butterflies
|
|
|
|
|
Ignore the wrinkle. Instead of trying to ever merge, split into smaller ranges in case of overlap. Exception is if new entry is totally encompassed by existing entry in which case new entry is discarded.
It is only safe to merge if there is not another To that conflicts with that range. For each new entry’s overlap with an existing entry, split both new and existing into matched smaller ranges.
This is classic “bin” (as in bucket) data structure problem with your twist.
[1,5]A
[1,5]B
Insert [3,7]A
[1,3]A
[1,3]B
[3,5]A
[3,5]B
[5,7]A
Or adding another level where the range holds a list which it sounds like you want to avoid.
[1,3] [A,B]
[3,5] [A,B]
[5,7] [A]
Good luck!
|
|
|
|
|
|
Burn the book of Christmas Cracker jokes...
"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!
|
|
|
|
|
Griff, you're lucky that I am one of the few Americans who actually know what on Earth a Christmas Cracker is...
|
|
|
|
|
Strange, given that: Passengers on commercial flights in and to the United States are explicitly prohibited from carrying Christmas crackers on board or in checked baggage
"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!
|
|
|
|
|
Okay, well I am from Alabama, we don't have Christmas Crackers.
|
|
|
|
|
Also Griff, read and weep."Quote: To the uninitiated, English crackers seem more suited to a New Year's Eve celebration than to Christmas. Britain's Rather Silly Christmas Tradition - The New York Times "
Also to answer your question.
Christmas crackers are very uncommon in the US. I've gotten two of them in my entire life.
|
|
|
|
|
|
I searched, but cannot find the video of the commercial that immediately sprung to mind. I think it may have been a super bowl ad. Sometime in the 90s. Don't even remember what the commercial was for, but it had a magician and he made a hamster or guinea pig disappear. Then the magician's assistant does a little flourish with her arms next to him and you see the hamster is in her armpit and looks like crazy armpit hair. I laughed so hard and still remember it decades later.
|
|
|
|
|
New WiFi adapter arrived, instealled (I took the opportunity to spring clean the PC with a hoover while I was at it) and connected. Dead easy.
And now I'm back to a proper keyboard, porper mouse, and three monitors.
My word but it's surprising how much you don't appreciate multiple monitors until suddenly you have to try to do things without them ...
"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!
|
|
|
|
|
And bad spelling 😁
modified 6-Sep-22 21:01pm.
|
|
|
|
|
Please point out all the misspellings so that we can publicly shame and humiliate Griff. Please, help us right this wrong you super hero of internet forum justice.
|
|
|
|
|
My sarcasm detector just shot through the roof. Surely we’re not going down that road, are we?
modified 6-Sep-22 21:01pm.
|
|
|
|
|
That's a feature, not a bug - it's in the manual; check my profile: OriginalGriff - Professional Profile[^]
"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!
|
|
|
|
|
Only the word ‘the’? I should add a few more 😁
modified 6-Sep-22 21:01pm.
|
|
|
|
|
If I can't get "the" right eight times out of ten*, I have no chance with more complex words ...
* And trust me, I can't.
"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!
|
|
|
|
|
Touché.
modified 6-Sep-22 21:01pm.
|
|
|
|
|
OriginalGriff wrote: My word but it's surprising how much you don't appreciate multiple monitors until suddenly you have to try to do things without them ...
I understood that years ago. Being used to a 4K 40" TV as primary display, and separate 27" and 24" monitors, will do that. Even with that configuration sometimes things feel a little cramped.
|
|
|
|
|
Glad for you, but 4k saved me from multimonitor purgatory.
Now I just have one lovely 55" screen. If I need windows to open on a particular "monitor" I use Win+Arrow. Easy peasy, lemon squeezy, and no mucking about.
Real programmers use butterflies
|
|
|
|
|
But also much less cables to play for the cats
|
|
|
|
|
Yeah, since he is the inventor of the portable cat flap... OriginalGriff - Professional Profile
Griff can fix that, invent the hard drive cat flap, where cats can go into your hard drive and mess with those cords
|
|
|
|
|
And cables for the dogs and goats to eat.
Please don't ask how I know.....
|
|
|
|