|
Where was the clue for mixed - and I think you are thinking of scrambled gegs
"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
|
|
|
|
|
pkfox wrote: I think you are thinking of scrambled gegs
No. The classic clue I was referencing (and I can't find a reference right now) was gegs (9,4) .
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Yes it was, seriously good clue
"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
|
|
|
|
|
|
Reminds me of a similar joke that tickled the ol' funny bone.
An old lady offers the bus driver some peanuts…
so the driver happily munches them. Every 5 minutes she gives him a handful more peanuts..
Driver: Why don’t you eat them yourself?
Old lady: I can’t chew. Look, I have no teeth..
Driver: Then why do you buy them?
Old lady: Oh, I just love the chocolates around them!
I just suck the chocolate off them!!!
// TODO: Insert something here Top ten reasons why I'm lazy
1.
|
|
|
|
|
For fun, decided to play with Windows sandbox. Activated it in settings. My monitors became unified, instead of a 'second screen.' Went into display settings and my primary and secondary screen were listed as "1 | 2", and there were three more screens listed as Intel hardware screens (or something like that). That was even without a sandbox running.
Didn't find any way to unlink 1 and 2, so played with it a bit and gave up. Deactivated sandbox and screens went back to normal. Looked on the web and found a thing about going back to a previous driver. Still felt like playing, so went back to original Acer Intel driver (7 years old), and after reactivating sandbox, everything worked. But there were strange glitches playing videos, especially on YouTube, but could usually get things back by various easy actions, like hitting play again.
Of course, MS decided to re-update the driver, so my system went back to 1 and 2 being locked in sync, displaying the same screen!
Sometimes you win some, sometimes you lose some. You would think that after thirty years of engineering effort Microsoft would have things like this sorted out. You would be wrong!
|
|
|
|
|
The main reason I bought a 55" 4k TV for use as a monitor was because I hate multi-mon. It causes headaches even if it were executed perfectly which it never is.
Win+Arrows is my alternative to laying out stuff on multiple screens. I basically have 4 1080p monitors.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Yeah, I use Win + Arrows all the time too, even with two screens!
|
|
|
|
|
Operating systems (all) rules:
1. You can't win.
2. You can't break even.
3. You can't get out of the game.
(anonymous)
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
This sounds like a video driver problem. Who provides the video driver for the sandbox?
|
|
|
|
|
I suspect it uses the same drivers as the main OS. But the fact that without the sandbox it works and with it the screen is screwed leaves a big puzzle in my mind.
|
|
|
|
|
3.1415926535897...
"How I wish I could recollect of circle round the exact relation Archimede unwound".
modified 13-Mar-22 23:05pm.
|
|
|
|
|
Q: How would the world look if Pi was 3?
A: Dunn⬡ but this sentence w⬡uld l⬡⬡k like this.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
|
Screw Pi,
Celebrate Tau! Join me on June 28th, in eating 2 pi instead of 1!
Read the Tau Manifesto!
|
|
|
|
|
The STL does this too but it's annoying. You wind up declaring C++ templates that package a bunch of template parameters together as a unit, and then pass that as an argument to another template, and so on.
rgb_pwm<
rgb_pwm_group< pwm_traits<32,0>, pwm_traits<25,1>, pwm_traits<26,2> >
> p;
If that isn't the ugliest elephanting thing outside of preprocessor macros, I'm not sure what is.
Sure you can use typedef/using, but then you just end up adding even more lines of code.
I don't know what I want though. I guess JSON wouldn't be much more brief. I do kinda wish C++ allowed you to explicitly pass your arguments by name like you can do in C#. That way this would be at least a little more legible, if verbose.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I bet I am missing the point but how about something like
std::map<unsigned int, unsigned int> pwmPins { {32, 0}, {25, 1}, {26, 2}, };
And of you have a bunch of these also create a type alias
using PinMap = std::map<unsigned int, unsigned int>
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Ummm, no. I'm not using a map and relegating all of my microsecond fast pin operation code to a hash table.
Compile time and runtime are not the same thing. Not even a little bit.
Edit: Sorry if I came across as hostile. I didn't mean to be. It's early and my conversation skills are a bit dodgy right now.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Makes perfect engineering sense, and I did not read it as unfriendly.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
How about this then? After the template is built the table definitions become neat.
constexpr-map/[^]
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
That *would* be nice, but I don't think it's available under the Arduino framework necessarily - on many platforms The STL is only partially implemented. I'd probably have to reimplement much of that instead of using the std:: namespace. Not out of the realm of possibility. I'll poke at it. Thanks!
To err is human. Fortune favors the monsters.
|
|
|
|
|
When I get fed up with all this magic stuff I ask myself: Alrite, how would I do it in plain old C ?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
You'd most likely have to use a ton of preprocessor macros.
To err is human. Fortune favors the monsters.
|
|
|
|
|
If you have to go more than three 'if' levels deep - that! Even two levels looks like something I never want to eat! I feel for the MS guys who keep up their #ifdefs in the Windows headers!
|
|
|
|
|
The problem in this case is you can have up to 5 RGB LEDs you can control, each requiring 3 pins. The above was just for one LED.
Variadic template arguments are how I accomplish that. It would be really messy to do that with the preprocessor. It's doable I think, but it requires a lot of nonsense.
To err is human. Fortune favors the monsters.
|
|
|
|