|
I was writing
var dualScreenTop = window.screenTop ?? screen.top;
And wondering why it wasn't working.
Maybe because I'm using Javascript.
I :heart: ??
cheers
Chris Maunder
|
|
|
|
|
var dualScreenTop = window.screenTop || screen.top;
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yeah, I know, but it just feels...wrong. It's like adding two bitmask flags instead of putting on a pair of pants like a civilised person and ORing them.
(and what I really want is the ?? in Javascript to do
var dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top;
ie. a little bit of type checking. And yes, I know that's an oxymoron in Javascript.
cheers
Chris Maunder
|
|
|
|
|
It certainly feels wrong. But then, it's Javascript; the whole language is one big steaming pile of nope.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
cheers
Chris Maunder
|
|
|
|
|
Don't you listen to him!
Everyone whines about stuff like pizza or french fries being horrid junk food.
But then they all line up to buy and eat them.
And so it is with javaScript.
Perhaps an allegorical junk-food language, but deep down, don't we all love junk food?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I had found one of these[^] under the christmas tree (put it there myself)
It's very nice and well as it is as long as I fly it as a plain 'broomstick'. Eventually I might put it into a scale fuselage, like a Sikorsky S-58 or a Wessex[^]. The problem is that I need a torque tube for the tail rotor, not a belt drive.
Now look what I just found: Align Torque Tube Drive Upgrade Set (T-Rex 500X)[^]
Edit: Animated video how to assemble that thing[^]
Edit^2: And I will need one of these.[^]
I have lived with several Zen masters - all of them were cats.
modified 1-Mar-18 9:08am.
|
|
|
|
|
|
RickZeeland wrote: That was a very nice act of yourself What? Act? Are you a painter? Or a pervert? Both?
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
I'm a painting, perverse, populistic, programming pirate
|
|
|
|
|
A pirate? Do you program in Arrr ?
|
|
|
|
|
|
And I thought that pirates run on rum.[^]
Quote: Functional language, easily extensible and possible (Lua features with LISP syntax and functional) to be embarked on software Go! The words, I hear them, but what do they want to tell us with them? LISP is the software equivalent of waterboarding.
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
Long ago I had to do some AutoLisp in AutoCAD 10, most dreadful experience ever !
But rum appeals to me somehow, why would that be, harrr ?
|
|
|
|
|
well you know, some days you don't 'feel yourself.' so I guess the other days you do.
Signature ready for installation. Please Reboot now.
|
|
|
|
|
That's no excuse for commenting the act paintings he got of me. Where did he get it anyway? Should I not have been there when it was made?
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
In Devon. Most unusual, but later today into tomorrow we are expected to have a veritable blizzard. Should be amusing.
|
|
|
|
|
My son lives in Falmouth and they have had snow there.
|
|
|
|
|
Dunno about amusing - it's cold as a very cold thing: -5C when I took herself to work.
So cold, that the batteries in the key fob lost power and refused to lock the car. And when I fitted new batteries (two CR2025's, measured at 6.6V instead of the 5.2V for the old ones) the fob stopped working in shock ... It's now working fine on the old batteries, go figure.
Still I learned something new today: you can see the infrared LED on the keyfob light up if you use your mobile phone camera!
We're predicted for loads of white nasty stuff around midday.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: it's cold as a very cold thing: -5C That's not cold. That's mild spring weather. At night we currently have below -15C and even now we have blue skies and -9C. After lunch I might try to catch a few sunrays.
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
We were evicted from our 'ole in the ground; we 'ad to go and live in a lake
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: we 'ad to go and live in a lake The sightings of Griffie the lake monster will pile up again...
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
|
You were lucky to have a LAKE! There were a hundred and sixty of us living in a small shoebox in the middle of the road.
|
|
|
|
|
That sounds more like Gulliver's travels to me
|
|
|
|