|
Bit too I.T methinks
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
So I wrote this extension method for IUrlHelper, simply because it's available and my extension has to do with URL's.
For those interested:
public static string Page(this IUrlHelper urlHelper, Type pageModelType)
=> pageModelType.Name.Replace("Model", string.Empty); Which allows me to do:
<a class="btn btn-success" asp-page="@Url.Page(typeof(WhateverModel))"> Meaning, make an anchor tag with a URL that points to that page, even if I rename the page or move it or whatever.
It probably breaks if my page is in an(other) area, which hasn't happened, but at least I get some strong typing while still keeping to naming conventions (which in Razor Pages is that mysite.com/Whatever routes to WhateverModel ).
Now the issue is that I don't actually use the IUrlHelper, so VS is giving me a warning to remove the unused variable.
As a fix, it suggests I add a SuppressMessageAttribute, which suppresses the message for that specific method.
However... Once I have the SuppressMessageAttribute, VS finds nothing to suppress anymore and I get a warning to remove the unnecessary SuppressMessageAttribute
It seems as though this only happens when I restart VS though, because when I remove and re-add the attribute the warning does not return.
Cool "feature"
|
|
|
|
|
Schrödinger's warning...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Helps you go through all your suppressions and check they are still needed. Can't see any problem with this. 
|
|
|
|
|
I get pissy when people try to sensationalize innocent facts to get you to read their articles:
Bananas are radioactive and more surprising facts about food[^]
The truth is that your body needs a lot of potassium to be healthy. Estimates vary, but according to the National Institutes of Health, a grown man needs around 3.4 grams and a woman around 2.6 grams daily of the metal.
And yes - all potassium contains a tiny amount of the radioactive K-40 isotope. But how active is this isotope? Well, it has a half life of over a billion years! It's hardly active at all. In any case, virtually all foods contain potassium. Being deficient in potassium is far more dangerous than ingesting a tiny amount of K-40 with every bite.
And although bananas are high in potassium, many other foods are also high. See a list here:
Potassium - Health Professional Fact Sheet[^]
There is no practical way to eliminate K-40 from the food we eat. So: Enjoy that banana and forget that silly article.
Get me coffee and no one gets hurt!
modified 16-Mar-21 12:55pm.
|
|
|
|
|
obligatory xkcd.
I'd rather be phishing!
|
|
|
|
|
This is lots of bananas before you die.
|
|
|
|
|
I don't doubt that people will believe that they'll glow green or grow an extra arm when they eat too many banana's after reading this.
However, by the time the radioactivity becomes dangerous you'll have died from eating waaaaaaay too many banana's
I once had a coworker who was convinced she could drink ALL the water she wanted because it's just water and you'll just pee a lot.
Newsflash, drinking too much water will kill you and it was even used as a torture method.
People like her actually die from it too, because they hear that water is healthy and they drink 8 liters in one go.
I also once had a friend who believed Bailey's (the liquor) and coke (e.g. Coca Cola) would form actual cement in your stomach.
The drinks don't mix and I believe you can get a pretty bad stomach ache from drinking the two, but for cement you'll need other ingredients
The confusion was caused by the fact that the chemical reaction Bailey's and coke cause is called "cementing" in Dutch (and maybe also in English, I don't know).
If she thought it I don't doubt there are plenty of others who do so too
I've heard people say the craziest things about food, like if it doesn't contain fat it's healthy (or vice versa).
It really makes you wonder how we survived for this long
|
|
|
|
|
The reason we survived so long, is that all this nonsense about what to eat and what not to eat is a fairly recent phenomenon. When I was growing up we would eat what my mother could afford to buy: beef, pork, lamb, potatoes, vegetables, white bread, rice, eggs, butter, full fat (extra fat) milk etc. No one cared about this or that content. We just needed to assuage our hunger.
|
|
|
|
|
That's crazy!
Think of all the gluten and fat you ate!
Not to mention the meat, which causes heart problems and is very bad for the environment (and pathetic for the animals that suffered and died)!
And rice you say!? RICE!? That's cultural appropriation!!!
I think potatoes are originally from South-America, so that would be cultural appropriation too, maybe I can even play the racism card here, but I'll need to find some questionable sources for this first (or write one myself if I can't find it).
Needless to say, I will come back to haunt you and every white male potato eater.
The world is coming to an end and it's all because of your diet!
|
|
|
|
|
Happy to do my bit ...
But back in the 50s and 60s there was no climate change, obesity, identity politics, "wokery", ... and also not much money. 
|
|
|
|
|
Quote: and also not much money Maybe they had to work harder to survive and did not have the time to think all the cr@p we see today.
Get me coffee and no one gets hurt!
|
|
|
|
|
Black and white TV with only one channel that did not start transmitting until about 1630 each evening, and closed down at 2300. And on Sundays did not start till about 1830 - to allow people to go to evensong. And if you wanted a telephone (land line only) you had to fill in a form that proved you needed one.
|
|
|
|
|
Quote: Black and white TV with only one channel You were fortunate! Where I grew up in South Africa we did not get TV until 1975.
Get me coffee and no one gets hurt!
|
|
|
|
|
Strangely enough I was working in Turkey in 1975 and one of our team was from SA, and I recall talking about that.
|
|
|
|
|
Cp-Coder wrote: in South Africa we did not get TV until 1975
Consider yourself fortunate - think of all the cr*p shows that you missed between 1948 and 1975!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I believe the word is "disingenuous" for you know damn well that just because no one mentioned something or it hadn't yet been discovered it wasn't there or was harmless. The implicit (explicit?) ridiculing of serious problems.
Black Lung Disease? PSD (Shell Shock in WW I)? Hey - air pollution in general. I recall all the redlining of "acid rain" . . . that is until their fishing hole became crystal clear and dead, or more probably, the paint on their pickups was blistering. Asbestos didn't cause cancer, either, in them good ol' days. They used to x-ray feet (in shoe stores) for fittings.
[edit] Don't you miss the days when cigarettes weren't deadly? [/edit]
It's times like these that I find, on a relative basis, a reason to respect flat-earthers.
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 16-Mar-21 14:13pm.
|
|
|
|
|
My point was that we did not know about these things then. And in truth the climate was changing far more slowly than in the past 20-30 years.
|
|
|
|
|
So - just to clarify - I took the intent your post backwards?
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Er 
|
|
|
|
|
I seriously think we should take the warning labels off everything and let nature work it out. sometimes.
To err is human to really elephant it up you need a computer
|
|
|
|
|
I remember a documentary item that said that worrying about detrimental effects from your food is far worse for you than the actual detrimental effects in the food!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
I can think of various plants which are not really considered food that can terminate your life ASAP. No radio active activity required whatsoever. In my father's "ornamental" garden I know of at least three species ( I will not mention their names ) which will kill you in a very short timespan.
|
|
|
|
|
And this statement of yours is supposed to prove . . . what?
That things besides radiation can kill you? Is that, somehow, supposed to assuage the problem of radiation in the environment?
I'd say their are radio-active nuclides of most elements. If one wanted to be paranoid, remember that we're a carbon-base life form and C14 is radioactive.
Basically, worrying about bananas may be silly but ridiculing background radiation and/or contamination is just plain stupid. As people who found out they've too much radon in their home and now have lung cancer. Or people who got sheet-rock from china containing Sr90. Or the same isotope in European cheeses after Chernobyl. Mmmmm. Yummmy !
I worked with radioactive materials for years - and one thing we all had was a healthy respect because you can't see it, smell it, feel it or, to a degree, get rid of it. You don't even have to close your eyes to pretend it's not there. That, however, doesn't make it go away.
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
People really like to treat floating-point quantities as boolean: present or not. Easier to think about, even if it's wrong.
|
|
|
|