|
Good to know. Thanks for all the facts. I was very curious about that.
|
|
|
|
|
Google spying on you? What sort of paranoid weirdo are you?!?!?
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
Frustration.
I have an e-paper display that supports either monochrome mode with partial display updates (important for doing things like being able to show a clock on e-paper without atrocious refresh rates), or full screen only updates with 4 color grayscale.
So I need a way to switch screen modes. The problem is that different pixel types yield a different type of draw target, so my monochrome draw target must be an actual different class than my gray scale draw target.
That means:
I can't have one single function to switch screen modes, because each mode returns a different type. (not a show stopper though)
If I switch screen modes by returning a new drawing target what happens to the old one? What if you try to draw to it? I can make it error, but my concern is usability.
auto target1 = e_paper.mode<1>(); auto target2 = e_paper.mode<2>();
draw::filled_rectangle(target1,(srect16)target1.bounds(),color_max::black);
draw::filled_rectangle(target2,(srect16)target2.bounds(),color_max::gray);
I can't figure out if that's too confusing or not.
Such is the hazard of trying to user test one's own code.
*headdesk*
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: (srect16)target1.bounds()
I saw what you did there.
|
|
|
|
|
honey the codewitch wrote: Such is the hazard of trying to user test one's own code.
It's called dogfooding[^] and unfortunately is one of the best ways to get high quality code. It might not be appealing but it works
Mircea
|
|
|
|
|
Dogfooding is when you use something you've developed.
This is more about usability testing. It's a design phase thing. Dogfooding is well past that phase.
Real programmers use butterflies
|
|
|
|
|
Seems like a place where
delete this;
could come in handy in the changeMode function but you would have to refactor. Or else have 1 static/global object in memory for each mode and you switch between them.
// global
target = target->changeMode(newMode);
target->filled_rect(…)
changeMode could return this if newMode matches current setup or else do 1 of 2 things.
1.
delete this and return new replacement object
2.
Return pointer to correct static mode object.
I prefer 2 as it is less heap churn.
Good luck
|
|
|
|
|
I did a thing where the main driver class holds something like that instead of as a global.
Then, each mode holds a reference to the driver class that spawned it.
Whenever the driver class switches modes it deinitializes the old mode.
Whenever a mode goes out of scope or otherwise gets deinitialized it references the driver to kill the pointer to the last mode (setting it to null) while deinitalializing.
Real programmers use butterflies
|
|
|
|
|
Has both hands treated in vain with this product (4,7)
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Has HAS
both hands LR
treated (anag)
in vain INVAIN
with this product
NAIL VARNISH
"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!
|
|
|
|
|
Well done YAUT
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I'm pretty sure I've seen that one before somewhere though ...
"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!
|
|
|
|
|
Yeah I've got a database of my favourite clues over the years which I modify/bastardise when I don't have one of my own ready.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
DB? Mine is still only a text file ...
"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!
|
|
|
|
|
It's interesting that, despite the complaints, we have had a lot of those "translate before you anagram" clues recently.
Three in a row I believe!
|
|
|
|
|
Not quite with this one L & R ( hands ) are not synonyms
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I would never have guessed LR for hands.
|
|
|
|
|
They are commonly used in cryptics
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I don't recall ever seeing that in The Spectator, Sunday Times or Telegraph crosswords. Although it's a while since I did either of the last two. The Spectator is fiendish enough to keep two of us occupied for a couple of days a week on and off.
|
|
|
|
|
I've never tried The Spectator - I mainly did ( still do occasionaly ) The Daily Telegraph and The Financial Times ( I contracted for Deloitte for 20+ years so there was always a copy of the FT lying around ). The Telegraph was always my favourite - not too easy and not too hard.
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
In the days of newspapers I always like the Telegraph crossword. If I remember correctly Thursday's was usually a bit more difficult.
|
|
|
|
|
Yes it got progressively harder as the week went on and then got easier for the prize crossword on Saturday
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Not synonyms, but still require translation to something other than the word(s) in the clue.
|
|
|
|
|
It seems it occurs after update. Does anyone have the same problem?
|
|
|
|
|
Nope. But then, you haven't given us any details on what crashes or what gets updated so it's difficult to tell ...
"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!
|
|
|
|