|
In Canada, it's a total monopoly. It's actually illegal to operate a private clinic except for elective procedures. I also lived in the US for 15 years and wouild take their system, flawed as it is, over the one here. Waiting times are rare, unlike here. But having insurance is important because the costs are high as the result of various stupid things that have nothing to do with a free market.
|
|
|
|
|
A former colleague of mine was a smoker. He would buy a pack of cigarettes and very carefully transfer them to a tobacco tin and throw away the packet they came in. When I asked him why he did this he showed me the old packet which had a very graphic photo of someone's blackened, cigarette damaged lungs. He said "they keep putting these photos on the packet and it puts me right off smoking, so I throw away the packet". Some people you will never convince!!
|
|
|
|
|
This is a long story, but I'll try to keep it short.
Background
While tracking down a bug/error in my ASP.NET Core 5.0 MVC app I'm building I discovered that it was because I was attempting to pass in a sample string as the model (from my controller).
But when the engine would try to call the View() constructor it would think I was passing the path / filename of my View class.
return View(myHashString);
When that happened I would see a really cryptic crash stating that the engine could not find my View file. What?!?
All I had to do to fix it was prefix the string I was passing in with model: (named argument) so it could differentiate that I was passing the value as the model and not as the path to the view file:
return View(model:myHashString);
Named Arguments in .NET
But, I was like, uh...how long .NET been taking named arguments?
So I went out and checked the docs for named arguments (down the rabbit hole).
Named and Optional Arguments - C# Programming Guide | Microsoft Docs[^]
That doc says .NET 4 but is dated 09/25/2020.
Did .NET 4 release in 2020?
Is that when named arguments became a thing in .NET?
Anyone?
EDIT : Found wikipedia article[^]:
.NET 4 was way back i 2009. I am slow on the uptake of named args.
modified 27-Sep-21 16:25pm.
|
|
|
|
|
Yup, they've been a thing since .NET 4 - and that was a long time ago (officially April 2010).
|
|
|
|
|
Thanks very much. I posted my an edit to my OP when I found a wikiepdia article stating that date.
I bit embarrassed that named arguments haven't every really meant anything to me before this.
I'm an avid Kotlin (and less avid Swift) user and they both have named args.
I think being a bit old school named args don't mean as much to me.
|
|
|
|
|
Aaah default parameters. The thing nightmares are made of. Pure evil.
|
|
|
|
|
When abused.
They have their place, but as with anything else, when abused they can be a nightmare.
The solution is to not let said abusers get away with it. Otherwise, as the meme goes, that's why we can't have nice things...
|
|
|
|
|
With them it's so easy to fall into a trap and trigger unintended behavior that one has to wonder are they really worth it. In C++ they can allow you to do some interesting tricks, but in C# I'm not sure about it.
|
|
|
|
|
I'm sorry but I cannot let you take over this thread with this disgusting talk of default params.
This was a discussion about named arguments and will continue to be so.
Please see yourself to the door, immediately!
Sincerely,
Your esteemed moderator
|
|
|
|
|
Visual Basic.Net has been handling named arguments since the initial release. C# didn't get them until several releases later (not sure when).
Named arguments aren't a Framework feature. They're a language compiler feature.
|
|
|
|
|
Not one that switches to battery with a click that causes some equipment to instantaneously power off.
Something that runs off of the battery with a power inverter and the battery is kept topped up with the charging system.
And something that can provide about 1000 watt hours of battery power, so if I draw 300 watts, it'll stay alive for 3 hours or so.
Any recommendations?
|
|
|
|
|
Don't buy anything Chinese.
I did, and regretted it when it failed in under a year. Needless to say, the supplier and manufacturer had disappeared by then.
Be aware that couriers are a PITA as well - the first two I had delivered had been physically broken in transit and had to be returned. Heavy batteries and transformers make for fragile packages!
You do probably want a "pure sine wave" output - many PC PSUs don't like chopped square wave and won't work at all or will fail quickly. Check your PSU's for "Active Power Factor Correction" or "APFC" and if you find it, it's a no-no unless you have a pure sine AC input.
"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!
|
|
|
|
|
I have had the CyberPower BRG1500AVRLCD[^] for several years now and it's been a good one. I had to replace batteries a couple of years ago but it was a simple inexpensive procedure.
As far as operating off battery it lasts about 20 minutes, enough to finish what you are doing and shutdown.
Unless you spend a ton of money on a UPS or devise a way to hook in better batteries you won't get 3 hours.
[edit]
Sorry this was meant for Marc
{/edit]
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
OriginalGriff wrote: Be aware that couriers are a PITA as well - the first two I had delivered had been physically broken in transit and had to be returned. Heavy batteries and transformers make for fragile packages! I'm putting my own rack network together at home for a test environement. This past week. I ordered an APC rack-mounted UPS with 4 batteries. The courier decided that it was too heavy for her, while carrying it on her shoulders, and tossed it down onto concrete. She then walked away, while we watched, and stated that it was the shippers fault that it is damaged.
Lucky for me, the shipper sent me a new one at no charge.
"When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid."
Ignorant - An individual without knowledge, but is willing to learn.
Stupid - An individual without knowledge and is incapable of learning.
Idiot - An individual without knowledge and allows social media to do the thinking for them.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Thanks! And good advice on the pure sine wave - I forgot about that.
|
|
|
|
|
Marc Clifton wrote: Something that runs off of the battery with a power inverter and the battery is kept topped up with the charging system. That seems tough to implement, charging a battery while it's sourcing power to a load. Seems like primary source of power would need to be switched, otherwise the battery charging circuit would be driving the load.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: Marc Clifton wrote: Something that runs off of the battery with a power inverter and the battery is kept topped up with the charging system. That seems tough to implement, charging a battery while it's sourcing power to a load. Seems like primary source of power would need to be switched, otherwise the battery charging circuit would be driving the load.
Online/double conversion UPSes do just that. They start at a few hundred dollars for the same range of capacities that would be $50-150 in more affordable consumer models. I don't know if the hardware required actually costs that much more or it's mostly high margins on the enterprise product.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
That's pretty neat, I'll have to read up on them, thanks.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
When I worked as a network tech many years ago, I always went with Eaton. Extraordinarily reliable, but not cheap.
Backup Power UPS[^]
If you want it to run from the inverter continuously you need to check "Online" in the Topology filter. (You probably need to go to the 9-series for that)
|
|
|
|
|
Ugh, their site is full of popups and accept cookies. None-the-less, looks like a great source, but I notice the don't make pricing obvious.
|
|
|
|
|
Well, if your "specification" in your OP stands it will dig a serious hole in your wallet.
You get list prices and runtime graphs on this page[^]. I would have probably recommended a 9SX1000 with one or two extra battery modules on that spec. (Sine output and Generator compatible)
But not without making a "cost benefit analysis" beforehand.
Also note that the prices at Newegg are 35-ish percent lower.
|
|
|
|
|
Plus one for Eaton, moved to them from APC and never regretted it.
When it comes round to the time to change batteries, go for the best, Panasonic or Yaesu for example. Cheaper or rebadged ones tend not to enjoy the warm environment inside a UPS and can last only a year.
So old that I did my first coding in octal via switches on a DEC PDP 8
|
|
|
|
|
I've had an APC under my desk for 12 years now. It describes what you're looking for to the letter, except the 3 hour run time. My 1500VA will get me about 20 minutes at a 360W draw.
My first UPS wasn't that large, but its battery lasted about 9 years before I got a warning about the battery failing. The unit still worked flawlessly, but the battery just couldn't hold a change anymore. Keep in mind, the standard on these things is to replace the batteries every 3 years. I decided to upgrade to get more runtime.
To get 3 hours of run time at 300W, you're going to need an enterprise or rack system. Though some home/small business units support extra battery packs, I haven't heard of anything that'll get you 3 hours of capacity.
To get that run time and the specs you laid out, you're looking at something between $2,000-$4,000. You can try APC's configurator to size a system for you here[^].
|
|
|
|
|
I know the title says UPS but if you are intending to power a DC charge like a computer, it might be cheaper, for your given specifications, to replace the AC-DC PSU by a DC-DC one, hook that to a battery, or a pack, and hook those to a battery charger capable of charging the batteries and powering the DC charge at the same time.
This will insulate your charge from any power line misbehaviors. This setup is basically a more efficient Online UPS (I think that is how it is called) because you remove losses from converting AC to DC back to AC in the UPS and then back to DC in your charge, which also extends runtime from the battery.
I do not know how the technology is today for this kind of setup but, some fifteen years ago, we did this in a lab to protect a 100000€ FPGA board from current spikes and over-voltages that were common in the aging building we were in.
Best of luck
|
|
|
|
|
I used a TrippLite UPS a few years ago. Online and true sine wave. It could back up two Windows servers for about 4 hours. I can't remember the model but it wasn't cheap.
|
|
|
|