interaction design – Should I prevent a user from navigating away from a form while it is being processed?

I’m designing a CRM which has a lot of forms in order to edit everything.
Currently, when you save a form, the Save button transforms into a loading-gif and is disabled (more clicks won’t do anything) and if successful back to the save button with a success message.
It should be mentioned that the user edits detail-information inside the form. So the same form can be edited multiple times consecutively.

Normally, the user doesn’t has to wait more than 1 second until the form is processed and saved. But what if it takes longer?
Currently the user is able to navigate away before the form is saved, if the processing takes a long time. The saving-process is asynchronous, so it still will be saved. But if an error occurs, and the user is on a whole different page, the error message won’t be displayed.

So should I stop the user from navigating away while the form is still processed?
If yes, how? Overlay over the navigation? Over the whole screen? Info-Message that if navigating away, he won’t be notified if there is an error?
If I shouldn’t stop the user, how should I inform him, if the save-process was successfull or failed?

dover ferry port will border force prevent four people travelling in one car

we are a group of 4 friends going by ferry France/ Dover, in mid august, will we be prevented from travelling by car by border force? we will have been self isolating before our trip.

interaction design – Should I prevent a user from navigating away from a form while it is being proccessed?

I’m designing a CRM which has a lot of forms in order to edit everything.
Currently, when you save a form, the Save button transforms into a loading-gif and is disabled (more clicks won’t do anything) and if successful back to the save button with a success message.
It should be mentioned that the user edits detail-information inside the form. So the same form can be edited multiple times consecutively.

Normally, the user doesn’t has to wait more than 1 second until the form is proccessed and saved. But what if it takes longer?
Currently the user is able to navigate away before the form is saved, if the proccessing takes a long time. The saving-process is asynchronous, so it still will be saved. But if an error occurs, and the user is on a whole different page, the error message won’t be displayed.

So should I stop the user from navigating away while the form is still proccessed?
If yes, how? Overlay over the navigation? Over the whole screen? Info-Message that if navigating away, he won’t be notified if there is an error?
If I shouldn’t stop the user, how should I inform him, if the save-proccess was successfull or failed?

parallelization – Prevent resurrection of dead subkernels

How do I prevent Mathematica from trying to resurrect subkernels that it has deemed to be dead? I would like to avoid this:

Kernels::rdead:
   Subkernel connected through KernelObject[3, *compute node*] appears dead. 

Parallel`Developer`QueueRun::req:
   Requeueing evaluations {6} assigned to
    KernelObject[3, *compute node*, <defunct>].

LaunchKernels::clone:
   Kernel KernelObject[3, *compute node*, <defunct>] resurrected as
    KernelObject[9, *compute node*].

I would prefer it if Mathematica aborts the entire computation if a subkernel dies, or continues on with the remaining subkernels. If a subkernel dies it’s most likely because it ran out of memory, so there is little sense in relaunching it.

Does HSTS prevent packet capturing in Wireshark

Packet capturing happens at the network level. Since the browser has to send out network packets to fetch a site for you, you can always capture the network packets. HSTS has no impact on this process at all.

What HSTS does is help the browser decide whether or not it MUST use HTTPS instead of HTTP. If the browser decides to use HTTPS then of course the data in the packets will be encrypted, so while you can still capture the packets, you won’t be able to read their contents.

Of course you could get around that locally by using a proxy to intercept all your network traffic, and add its root certificate to your certificate store. As long as the application/website isn’t using public key pinning you will be able to intercept and decrypt the traffic so you can read it. Of course we’re talking about your own browser here so you could have done this just as easily in your browser’s network tab.

Remember though that all of the above is difficult or impossible to do on someone else’s machine, so none of this will help you to extract a token in a GET request from someone else.

postgresql – How to prevent different connections treating bytea in same query differently?

I find that identical postgresql queries issued by two different clients are handled differently. Specifically, bytea values are inserted differently.

A query that demonstrated the behaviour is this:

INSERT INTO "TestTable" ("Input") VALUES (decode('74657374', 'hex'))

74657374 is hexadecimal for ‘test’. In one client, ‘test’ is inserted into the “Input” field, whether that field is text/varchar or bytea. That is the behaviour I desire. In another client, ‘x74657374’ is inserted into the “Input” field, whether it is text/varchar or bytea. This string is the postgresql literal representation of the bytea bytes of ASCII ‘test’. But the sql literal syntax itself is inserted. I do not desire this behaviour.

I use a single piece of hand-written SQL, the bytea value only occurs “within” the query (if column “Input” has type Text then none of literals nor the receiving column have bytea type), and it seems unlikely to me that either client is parsing then rebuilding the query. Therefore it seems that the difference must be happening on the server where the query is executed. That means there must be some connection specific configuration setting which is altering the server behaviour.

Can anyone please tell me what connection specific settings could be altering this behaviour?

I know the queries are really behaving differently and it is not a display issue etc., because I can see the rows in the same table having different values (‘test’ and ‘x74657374’). I have tried various alternative bytea handling methods, but they are all affected by this problem. For those who are interested, the “good” client is pgAdminIII and the “bad” client is Ruby PG gem. Though for the reason I gave above I believe there must be some built-in feature of postgresql supporting this behaviour.

seo – How do I prevent keyword cannibalization with href lang tag?

I’m afraid that “keyword cannibalization” takes place when for example I have the following two pages on my site: /en/shoe and /en-us/shoe. Can I assume with absolute certainty that Google’s search engine in the United States only shows /en-us/shoe in the serp when it is clear to the search engine that the person doing the search with the keyword “shoe” speaks english and is in the United States. And when it is only clear to the search engine that the person speaks english that only the /en/shoe page is shown in the serp. And when both are not known the “x-default” page is the only one indexed in the serp for that person. I understand that this situation – if it can occur at all – can only occur if hreflang html tags are perfectly applied on the site.

The perfect application hreflang should look like this if I have understood everything correctly.

You can write the word ‘shoe’ in the following languages:

  • French (fr) : chaussure
  • Spanish (es) : zapato

My fictitious site has the following pages with the corresponding hreflangs:

And the next href long structure has each of the pages mentioned above.

<head>
  <title>Wha efa</title>
  <link rel="alternate" hreflang="x-default" href="http://example.com/en/shoe" />
  <link rel="alternate" hreflang="en" href="http://example.com/en/shoe" />
  <link rel="alternate" hreflang="es" href="http://example.com/es/zapato" />
  <link rel="alternate" hreflang="fr" href="http://example.com/fr/chaussure" />
  <link rel="alternate" hreflang="en-us" href="http://example.com/en-us/shoe" />
  <link rel="alternate" hreflang="en-ca" href="http://example.com/en-ca/shoe" />
  <link rel="alternate" hreflang="en-uk" href="http://example.com/en-uk/shoe" />
  <link rel="alternate" hreflang="es-us" href="http://example.com/es-us/zapato" />
  <link rel="alternate" hreflang="es-ca" href="http://example.com/es-ca/zapato" />
  <link rel="alternate" hreflang="es-uk" href="http://example.com/es-uk/zapato" />
  <link rel="alternate" hreflang="fr-us" href="http://example.com/fr-us/chaussure" />
  <link rel="alternate" hreflang="fr-ca" href="http://example.com/fr-ca/chaussure" />
  <link rel="alternate" hreflang="fr-uk" href="http://example.com/fr-uk/chaussure" />
</head>

Before I go any further, it is important to note the following.Every page about “shoe” that is written in english has almost exactly the same text. So it’s duplicate text.The same goes for Spanish and French pages on the subject of “shoe”. However, the countries have to be distinguished, because that is a requirement because the shoes are the only thing that is country specific in a manner of speaking. Using only the /en, /es and /fr variants is therefore not sufficient.

So I am looking for sources and facts that conclusively establish that keyword cannibalization will not take place. Hopefully you can provide them. 🙂

unity – Does the Animator prevent changing the sprite during runtime?

I am making a simple 2D shooter.

I have my character’s body and head as different objects, as I want him to look up/down regardless of the movement.
So, I basically use the following script:

public class PlayerHead : MonoBehaviour
{
    public static PlayerHead instance;
    public SpriteRenderer theSR;
    public Sprite netural, down, up;

    private void Start()
    {
        instance = this;
        
    }
    public void Up()
    {
        theSR.sprite = up;
    }

    public void Down()
    {
        theSR.sprite = down;
    }

    public void Netural()
    {
        theSR.sprite = netural;
    }

}

However, the head is also used in the player animations:

enter image description here

This is because head must move with the body during the idle animation (breathing and moving up&down slowly).

I suspect that because of this animation, the sprite of the head is somehow fixed. It does not change in runtime even though I change it manually inside Unity.

How can I make the Animator let me change the sprite?

addtocart – Prevent modal from appearting Ajax Cart Pro Magento 1

Basically, what I’m trying to do is to keep the old behaviour if condition 1, or use the modal if condition 2. But I can’t find where Ajax Cart pro handle this.
I have a form which is working properly, handled by some javascript then by the Mage core (checkout/cart/add).

    var productAddToCartForm = new VarienForm('product_addtocart_form');
    productAddToCartForm.submit = function(button, url) {

        if (this.validator.validate()) {
            jQuery("#loading-mask").show();
            var form = this.form;
            var oldUrl = form.action;

            if (url) {
                form.action = url;
            }
            var e = null;
            try {
                this.form.submit();
            } catch (e) {
            }
            console.log('after submit');
            this.form.action = oldUrl;
            if (e) {
                throw e;
            }

            if (button && button != 'undefined') {
                button.disabled = true;
            }
        }
    }.bind(productAddToCartForm);

Doing this without Ajax Cart pro works fine, when I have a notice message to print, it redirect me to the same page and print me the notice message

action_data: ()
msg: ({text: "My message", type: "notice"})
redirect_to: "http://website/oneproduct.html?options=cart"
success: true

Now I have Ajax Cart Pro activate, this request still works, but somehow, somewhere, there is a second request, that makes the modal appearing with no notice message.

block: {,…}
    options: "<div>↵        <script type="text/javascript">↵    "
msg: ()
success: true

So, even if the first request is still doing her job, the Ajax Cart pro seems to erase the previous core result.

Here is the module : https://ecommerce.aheadworks.com/magento-extensions/ajax-cart-pro.html

Thanks

Ways to prevent Counterspell from being cast?

What ways can a character (PC or Monster) prevent an enemy from casting counterspell?

What I can think of so far:

  • Surprise the enemy and win initiative
  • Cause the enemy to be incapacitated (or stunned/paralyzed/unconscious)
  • Provoke the enemy into using a reaction earlier in the round (readied action, opportunity attack, previous spell)
  • Avoid using perceivable spell components
    • Sorcerer subtle spell metamagic
    • Level 20 Druid Archdruid feature
    • Casting a spell with only material components (eg. Minor Illusion)
  • Prevent somatic components
    • The enemy is holding objects in both hands
  • Block line of sight (often interferes with targeting)
    • Spells such as Fog Cloud, Darkness, etc.
    • Physical barriers such as walls or large creatures

Are there any other options available that I am missing?