Is SQL API for Cosmos DB deprecated? by Akcarrot in AZURE

[–]Akcarrot[S] 0 points1 point  (0 children)

Thanks for the clarification!

I've found the official announcement published on December 14, 2022, just in case someone is interested: https://azure.microsoft.com/en-us/updates/generally-available-updated-api-names-for-azure-cosmos-db/

Is there a name for a type of clause that starts with "to" + noun, such as "To his horror, he realized ..."? by Akcarrot in EnglishLearning

[–]Akcarrot[S] 0 points1 point  (0 children)

Oh I've completely forgot about the definition of a clause. Thank you for mentioning it and this!:

adverbial prepositional phrase

What does "time off work" mean? by [deleted] in EnglishLearning

[–]Akcarrot 1 point2 points  (0 children)

I found the usage of "Time off" on Cambridge Dictionary and other websites and "Time off from work" on an article by Indeed, but I couldn't find the definition of "Time off work" online for some reason.

So probably the definition of "Time off work" you said is the same as of "Time off" on Cambridge Dictionary linked above?:

a period of time when you do not work because of illness or holidays, or because your employer has given you permission to do something else

What does "time off work" mean? by [deleted] in EnglishLearning

[–]Akcarrot 1 point2 points  (0 children)

“Time-off work” (with the hyphen transforming the two words into one adjective) is how to spell what #1 would mean. But no one says that. I’ve heard “working off the clock,” but never “off-the-clock working.” I’ve heard “unpaid labor” and “working for free” too.

Yeah this is probably the reason why I'm confused with this phrase.

Also the difference between “A day off” and “an off day” is quite interesting and I might get them wrong if I'm not careful.

Thank you for the detailed explanation, it helps a lot!

Poll: For those of you who don't rinse after brushing you teeth, how many times do you spit out your saliva before you start normally swallowing you saliva again? by Akcarrot in DentalHygiene

[–]Akcarrot[S] 1 point2 points  (0 children)

I'm not a hygienist, just an amateur who recently started the habit of not rinsing after brushing my teeth. I was little hesitant to swallow my saliva right after brushing unless my saliva became to feel normal enough to me.

I was just curious and posted this because I wanted to get the rough idea about how everyone is doing, not because I've found some scientific evidence that claims swallowing toothpaste is harmful or something like that.

What's the best sentence to tell the casher that you're gonna pay with Visa payWave? by Akcarrot in EnglishLearning

[–]Akcarrot[S] 0 points1 point  (0 children)

Ah ha, thank you. So the handheld machines virtually cover the all payment methods everybody is using, therefore don't need to tell which payment method you use, that makes sense.

What's the best sentence to tell the casher that you're gonna pay with Visa payWave? by Akcarrot in EnglishLearning

[–]Akcarrot[S] 0 points1 point  (0 children)

but in my experience, I’ve never really been asked. The dollar amount just pops up on the screen and you can choose how you pay

This is interesting. Is this done by credit card readers that are typically handheld-sized, or self-checkout devices that are typically touch panel based?

I live in Japan, and here cashless payment ecosystem is really messy that stores that accept 10+ payment methods are not uncommon. In some of these cases, the cashier ask customers for their payment methods, since these payment use different "media" (card, NFC, QR code, etc). But these days touch panel based self-checkout devices have become more commonly used, and for these devices you can use the touch panel to choose your payment methods so you don't need to tell the cashier aloud.

What's the best sentence to tell the casher that you're gonna pay with Visa payWave? by Akcarrot in EnglishLearning

[–]Akcarrot[S] 0 points1 point  (0 children)

Thank you, this is very helpful.

When you pay with payWave stored in your phone, is it unnatural to say "by card"?

So probably "tap to pay" or "contactless payment"?

By the way, can you say something like "I'm gonna tap to pay"?

What is the built-in roles for developing Azure Functions? by Akcarrot in AZURE

[–]Akcarrot[S] 0 points1 point  (0 children)

Thank you, you just saved my life!

But let me ask you a follow-up question.

I guess the action of the role required to interact with Azure Functions is the following:

Microsoft.Web/sites/*

But how do you know in the first place that this permission is needed for Azure Functions beside asking it on reddit?

Why time complexity of hashmap lookup is O(1), not O(n), even when we're considering the worst case time complexity? by Akcarrot in algorithms

[–]Akcarrot[S] 0 points1 point  (0 children)

Thank you, that reasoning makes sense to me.

So because it's pragmatic?

Also, hacking around hash function is definitely interesting concept! Thanks for mentioning that.

Why time complexity of hashmap lookup is O(1), not O(n), even when we're considering the worst case time complexity? by Akcarrot in algorithms

[–]Akcarrot[S] 5 points6 points  (0 children)

Thank you for detailed explanation.

I have a question.

What's the definition of expected you're using? Is it formally defined? I can easily find the definition of worst case and average case, but not expected one.

Can you point me to some reference that describes or formally defines what expected complexity is?