magento2.2 – Magento 2 – Order Hold from frontend

From the Magento admin panel, user can update the status of an order to On Hold. Is there a way out for authorized admins to mark the order
as hold from frontend.

if ($order->canHold()) {
    $order->setState("holded")->setStatus("holded");
    $order->save();
}

Reference

protected $orderManagement;
public  function __construct(
    MagentoSalesApiOrderManagementInterface $orderManagement
)
{
    $this->orderManagement = $orderManagement;
}
public function canChangetoHold()
{

    try {
        $this->orderManagement->hold(10); //10 is order id

    } catch (MagentoFrameworkExceptionLocalizedException $e) {
        // some error
        $e->getMessage();
    } catch (Exception $e) {
        //You have not put the order on hold
    }
}

For example – An authorized admin could login as customer and mark orders as on hold so that it can’t be stopped for further processing.

alternatives – Not able to get hold of the Bitcoin company

We lost our father in February due to Covid and he had money invested in Bitcoin (2 accounts), we were able to access these accounts due to information he left for us and were able to transfer these funds into a folder which we automatically thought it meant this would be transferred to his bank account. The money did not transfer and we have written emails and made phone calls to the company to ask what information we need to provide to get this money to add into his estate. They have not responded now and we have been trying for over 2 months now. Anyone on here have any advice before we use our solicitor?

Thank you in advance.

coinbase.com – Is it true that if I buy Bitcoin and plan to hold it for 10 years and sell, then Coinbase, Robinhood, or Gemini can prevent any theft?

It is said that Bitcoin can be subject to being stolen if I have it in my wallet on the smartphone, and is more secure in the Ledger.

That is wrong. They are both “in the Ledger”.

Although we speak of having money in a wallet, in reality the money is all kept track of in the blockchain (which is more like a transaction journal than an accounting ledger). The only important information in a wallet is a secret number known as the master private key.

So the money is in the same place regardless of whether you use a wallet to control your money yourself or whether you give all your money to some business in return for an IOU that just gives the illusion of owning money.

If the business has the secret key on their computer – you have to hope their computer isn’t hacked, is well-managed and that the business doesn’t have a dishonest owner, dishonest employees or dishonest office cleaners.

If you have the secret number on your computer, you have to take care that your computer isn’t hacked, you have to make backups and look after them.


is more secure in (a hardware wallet)

Yes, a hardware wallet such as the Trezor Model T or Ledger Nano are among the safest places to store a private-key. You still need to make a secure copy of the recovery-phrase in a separate and safe place. You still need to practice recovery.


if I buy it using Coinbase, Robinhood, or Gemini, … and suppose the account itself is not hacked, does that mean it is quite safe against theft?

History demonstrates that exchanges are not quite safe against theft

Although it depends what “quite safe” means to you.

See the story about Quadriga-CX. I’d say look at MtGox and all the others but for many of these we can’t tell if they were hacked or if the owners colluded in the theft. Prior to failure, many of these were either the most trusted exchange in existence or among the most trusted.

You also open up another attack vector – access to your login credentials entered via your computer or phone (or cybercafe WiFi).

You might think big exchanges employ a lot of security experts, however their information systems complexity and security problems are much larger in scope than yours are when running a single-person’s wallet on one device.

General advice is not to keep any money on exchanges that you are not currently actively trading.

Messages On Hold

Don’t risk losing valuable calls with silence or boring chimes playing for your on hold. The better option is to entertain and inform callers with Messages On Hold so they don’t hang-up.

.

world of darkness – How does a Hold or Clinch maneuver interact with the blind fighting rules in Vampire: The Masquerade v20?

Say two kindred are clinching one another, or one performs a Hold maneuver on another, in blind fighting conditions (in pitch darkness for example).
Let’s say one of them is Gangrel with Eyes of the Beast. Eyes of the Beast should mitigate effects of blind fighting (V20 Core Rulebook, p. 274).
Would they have the same Brawl+Str difficulty on rolls to break free from a Hold or Clinch? Or would someone who is under effect of blind fighting have +2 difficulty?


Another question:

Let’s say Arms of the Abyss is constricting a victim inside Shroud of Night. The description of Arms of the Abyss (V20 Core Rulebook, p. 189) states:

Breaking the grasp of the tentacle requires the victim to win a resisted Str roll against the tentacle (difficulty 6 for each).

Should the blinded victim roll difficulty 8 to break free? Or is it still difficulty 6?

optimization – Hold manuever during blind fighting (Vampire: The Masquerade v20)

I’m wondering if two kindred are clinching one another or one performs Hold maneuver on another in blind figthing conditions (in pitch darkness for exmaple). Lets say one of them is Gangrel with Eyes of the Beast. Eyes of the Beast should mitigate effects of blind fighting (p.274 v20). Would they have the same Brawl+Str difficulty on Hold or Clinch break free rolls? Or the one who is under effect of blind fighting should have +2 difficulty?

Another question. Shroud of night and Arms of the abyss. Lets say arms of abyss constricting viktim inside shroud of night. P.189 states:

Breaking the grasp of tentackle requiries the victim to win a resisted Str roll against the tentackle (difficulty 6 for each).

Should blinded viktim roll difficulty 8 to breask free, or itis still 6?

Messages On Hold program

When your company has a Messages On Hold program we have created you will instantly impress your callers with your professionalism and commitment to customer care. Isn’t that just the sort of "first impression" you want to project?An image that conveys how important quality is to your company. Immediately your existing clients and any new customers will feel better about doing business with you.

.

javascript – Firefox fires pointerup event on touch and hold, unlike Chrome

I’m making a game and I just want to know when the pointer or finger is down/up. I listen to pointerdown and pointerup (or touchstart and touchend) which works as expected on windows chrome/android chrome/ios/mac, but on Firefox Android (or Firefox Windows when you simulate touch in the console).

In Firefox, if you touch and hold for a second without releasing, an unwanted pointerup event is fired that I can’t differentiate from a real touch and release. Why is such a basic spec not implemented the same way and how can I prevent or work around this behaviour in Firefox?

https://jsfiddle.net/cxbq08ep/1/

window.addEventListener('pointerdown', e => console.log('pointerdown', e));
window.addEventListener('pointerup', e => console.log('pointerup', e));
window.addEventListener('contextmenu', e => e.preventDefault());

(same behaviour for touch events)

dnd 5e – How much weight can the standard 50′ rope hold?

So, given @Szega’s very, very valid “5E is not a physic simulator” point but running with the suggestion of extrapolating from the DC 17 strength check anyway

The 5E lifting and carrying rule is quite coarse:

You can push, drag, or lift a weight in pounds up to twice your carrying capacity (or 30 times your Strength score).

If we assume that a +7 to Strength will hit a DC 17 reliably, that means 24 Strength (only monsters can break ropes every time, it seems) … and 30 × 17 gives 720 lbs.

The answer from @chaoticgeek looks at real-world ropes and gives 675lbs as the “safe load factor” — ¹⁄₁₂th the tensile strength. The number based on the DC is right in that ballpark, and if we use 12× ~700lbs as maximum load with stress, we get around 8500 lbs. So this all seems reasonable.

Or, one could argue that someone with Str 4 — a -3 bonus — can hit a DC 17 some of the time, and that the safe load should cover that, because that’s what “safe” means. That gives a safe load for standard hemp or silk rope at only 68 pounds, with max weight at a little over 800 lbs. This one seems low.


Also, note that the uncommon magical item Rope of Climbing says:

This 60-foot length of silk rope weighs 3 pounds and can hold up to 3,000 pounds

But it doesn’t have a given strength DC to break. Instead, it has AC 20, 20 hit points, and (slow) regeneration. So it’s probably safe to just say that its limit doesn’t necessarily correspond to that of regular rope.

evaluation – Hold parents of ArcTan

If this question is beating a dead horse about Hold, Inactivate etc., a close vote is fair enough. That being said, I’m curious about ways to achieve this.

I have an expression, the result of an integral,

(-3 ArcTan((1 - a)/Sqrt(1 - a^2))^2 - ArcSin(a) (2 ArcTan((1 - a)/Sqrt(1 - a^2)) + 
   ArcTan(a/Sqrt(1 - a^2))) /. a -> 1/2) - (-3 ArcTan((1 - a)/Sqrt(1 - a^2))^2 - 
ArcSin(a) (2 ArcTan((1 - a)/Sqrt(1 - a^2)) + ArcTan(a/Sqrt(1 - a^2))) /. a -> 0)

I want to evaluate the two ReplaceAll‘s, and all ArcTan‘s and ArcSin‘s, but not any nodes higher than them in the expression tree. I obtained the full expression with

Inactive((# /. a -> 1/2) - (# /. a -> 0)) &@
Integrate((# /. b -> 1 - a) - (# /. b -> a) &@ Integrate(1/(1 + b^2 - a^2), b), a)

Bumbling around a bit, here’s what I got:

Activate(Inactivate((# /. a -> 1/2) - (# /. a -> 0)), ReplaceAll) /. 
{
  Inactive(ArcTan)(x_) :> Activate(ArcTan@x), 
  Inactive(ArcSin)(x_) :> Activate(ArcSin@x)
}&@
Integrate((# /. b -> 1 - a) - (# /. b -> a) &@ Integrate(1/(1 + b^2 - a^2), b), a)

I suppose this (activating ReplaceAll‘s, then replacing selected inactive expressions with their activated versions) is a pretty straightforward way of achieving this — is it a rightheaded approach? Are there more concise approaches, perhaps with Hold?