|
Depending on Who you ask, it might be You better you better you bet.
|
|
|
|
|
Hmm. Maybe this value is used on the eminence front-end?
Software Zen: delete this;
|
|
|
|
|
That needs to be framed; it's a work of art!
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
To name or not to name, that's the question.
|
|
|
|
|
Eww.
Please make it stop...
Software Zen: delete this;
|
|
|
|
|
public bool NameRequired { get; set; }
Software Zen: delete this;
|
|
|
|
|
It is clearly a Typo...
They meant:
public bool GitName { get; set; }
|
|
|
|
|
Kirk 10389821 wrote: public bool GitName { git; sit; } ftfy
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
From the data type, I would assume that this is used in a query of some sort to signify whether to get a Name field from some data source.
Although, from your recent postings, I probably am way off base with that thought.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Needs intellisense to clarify!
public bool GetName { get; set; }
|
|
|
|
|
We are using Kendo UI components for an MVC application. Kendo's CSS has textbox width set as 12.4em. I want it to be 100%. So, in jQuery, I was setting it to 100%. But when the control is rendered, in the source I see it to be 110.4%.
After just looking at the screen for sometime (didn't knew what to do), I asked my colleague for help. And we both were confused. We then created a 100px wide div and added a textbox to it. Then, same jQuery function was called to change the width to 100% instead of default 12.4em. It still showed up as 110.4%.
Time not being on my side, I changed width in jQuery function to 89.6% and then it rendered as 100%.
We are still looking for a good detective to help solve the mysterious 10.4%.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
The first thing I'd check would be the box-sizing :
box-sizing - CSS | MDN[^]
Box Sizing | CSS-Tricks[^]
The default is content-box , which means any padding and borders are added to the specified width.
If you change it to border-box , the width includes the padding and borders, which makes it much easier to reason about the layout.
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Perfect! That's what it was. Please share your bank account details for payment.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
Nicely done.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Haven't used Kendo before but I've had issues with em and Bootstrap before because it's cumulative which is why I always use rem now if I can.
|
|
|
|
|
Kendo loves em because ...KLM....
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
You'd think so. Except in SQL
We had a query:
Select count(*)
From TableOne
which returned, say, 500,000 records.
Next we added
Select count(*)
From TableOne
Left Join TableTwo On TableTwo.TableTwoID = TableOne.TableTwoID
Where TableTwo.TableTwoID is null or TableTwo.StringColumn <> 'value'
We're trying to find the number of records in TableOne which, when joined with TableTwo , either have no corresponding TableTwo row or the corresponding TableTwo row is not 'value'.
TableTwo.StringColumn is nullable.
The result? Adding the join resulted in 25K records. It should have been over 490K records.
The issue?
TableTwo.StringColumn <> 'value'
This comparison returns false if TableTwo.StringColumn is null. So one needs to use
IsNull(TableTwo.StringColumn, '') <> 'value'
to get the correct result.
cheers
Chris Maunder
|
|
|
|
|
Yes, and it is pretty correct.
NULL is not defined and can therefore not be compared to a value. Also not for nuallable type in c#.
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Null most certainly does not equal a valid string value, right?
I never realised SQL could be so Javaesque
cheers
Chris Maunder
|
|
|
|
|
It gets Dali-esque as well from time to time...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: Dali-esque Surrealistic? or womenizer?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: womenizer? My experience is that SQL lacks, er, discrimination in who it molests.
Software Zen: delete this;
|
|
|
|
|
...except there's an "or" in there: logically, it shouldn't matter: if it's null, at least one of the conditions is true.
I have a feeling that "null=string" evaluates to null, and then "field is null" evaluates to Boolean, then "boolean or null" evaluates to null, which is why it doesn't work. But that's somewhat abstruse.
Which server is this: is it SQL Server or MySQL... or perhaps something else?
|
|
|
|
|
But the IS NULL check is made on TableTwo.TableTwoID
While string compare is made with TableTwo.StringColumn
So I see no incorrect handling, but of course it is not very intuitiv.
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Yeah - you're right. Hadn't had coffee yet. LOL!
|
|
|
|