|
Started this morning, created a new basic class, added IEnumerable<T> to it, implemented teh required interface methods via VS, added tiny fragment of code to each method:
public IEnumerator<int> GetEnumerator()
{
for (int i = Min; i <= Max; i++)
{
yield return i;
}
}
IEnumerator IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
And tested it.
It works: foreach and Linq all work perfectly.
Why was it a problem? Because I added IEnumerable to the class first yesterday, and that confuses the issue when you try to add IEnumerable<T> later ...
Now I can rip out all the enumeration code from the "real" classes and do the job simply.
Sometimes, I get too focussed on what I am doing to see the wood for the trees ... or I'm an idiot. Both, possibly.
"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!
|
|
|
|
|
I seem to solve my most challenging problems right after a good night sleep. What is weird is that the answer is revealed to me at the exact moment I start to wake up, but I am still not fully awake yet.
I also read, and believe, that a great deal of medical issues that affect us are due to a continual lack of effective, restorative sleep.
|
|
|
|
|
Last working day of 2021... I've got this issue I want to fix before my Christmas break.
Hours of debugging, but nothing.
It's something I've done countless of times before, send a file from an HTML form to my back-end, doesn't work.
Checked my code, my types, my inputs, went back to square one, copy/pasted code where I'm already doing it, nothing seemed to work...
Decided to give up, enjoy my vacation and fix it in 2022.
Januari 3rd, I hadn't thought about the problem for two weeks.
I start up my laptop, go into the code and almost mindlessly add enctype="multipart/form-data" to the form element.
Problem solved in < 1 minute
|
|
|
|
|
So (apparently) does a Double Diamond.
|
|
|
|
|
I used to keep a notepad on the table next to the bed so when I woke in the middle of the night with an idea I could write it down so I wouldn't lose it.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Could you ever read and understand what you wrote? I never could ... "Bwargl the kittens" was about the best I managed!
It was probably a brilliant idea, I remember being really excited when I wrote it down ... would have made me a fortune ...
"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!
|
|
|
|
|
I understood it most of the time, at time I looked at it and went WTF.
OriginalGriff wrote: would have made me a fortune
You know I thought making a million was so easy I went straight to working on the second million, still working on it.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
You Quote: Bwargl one kitten…. 🤦♂️
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
I'm not worried about the number of felines involved, I'd just like to know what "Blargl" means ...
"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!
|
|
|
|
|
|
The deplatformed and silent bootstrapping brought up the components. (5)
|
|
|
|
|
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
PARTS?
bootstrapping deplatformed = strapping
silent strapping = strap
strap brought up = parts = components
|
|
|
|
|
Good job,
You solved it, you are up tomorrow!
|
|
|
|
|
Hi Derek how is bootstrapping deplatformed = strapping ?
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
|
Mmmm.. not up to your usual standard David - I actually solved the clue by associating parts with components
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Yes,
The clue was not up to the Ximenean standard, I think Ximenean clues are too easy. They last less than 15 minutes sometimes here in the forum. I am beginning to like the more difficult puzzles with vague wordplay.
|
|
|
|
|
My favourite is your assembler one
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Yes, so did I; then deconstructing the first part to make it all fit. Initially I couldn't make head nor tail of it, went off to do something else; when "up the components" suddenly jumped out at me.
|
|
|
|
|
|
Minitruth strikes again. We love Big Brother!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
The second rule of Fight Club in China. THE. POLICE. ALWAYS. WIN.
|
|
|
|
|
Peter_in_2780 wrote: Words fail me.... Then you should just start singing. The lyrics to Every Breath You Take[^] covers just about everything in this thread.
|
|
|
|
|