I have a head-torch with a pretty good compromise. The bay either accepts the proprietary battery, or three AAA batteries. The supplied lithium battery lasts longer than the AAA, but it's nice knowing the device will outlive the battery
The casino will break even, but for the gamblers there will be a small number that win big, and a much larger number that lose out.
Consider two rounds, there's a 25% chance you 4x your money, a 50% chance you 0.75x your money and a 25% chance you 0.25x your money
In the UK cell numbers start with 07 and landline numbers start with 01. And there is no region encoded in a cell number, but landline numbers begin with an area code.
"anything stored in that pointer to memory you got back from malloc() is stored in an area of ram called "the heap", which is moderately slower to access than it is to access the stack."
Is this true, or a myth? Ignoring the allocation cost and access patterns making cache misses more likely, surely memory is just memory
Addresses in Scotland use a slash to separate flat number from street number; e.g. 15/4 West Wallaby Way is equivalent to Building 15, Flat4, West Wallaby Way.
I've had multiple websites tell me that my address isn't valid, and some delivery companies remove the number after the slash so the delivery driver knows which building, but not which flat.
A lot of IDEs (I know Eclipse and VSCode both do this) will create a copy of the file you're working on each time you hit save. You can then navigate back through the local history of the file.
I'm conditioned to hit Ctrl+S with almost every change, so this gives me a very detailed history of my revisions.
My local hardware store has a fairly large range of smart light switches. I had no idea they existed until now.
But the cost and difficulty of installation must drastically reduce their appeal. Sure they're not hard to install, but it's probably best not to encourage DIY electrical work.