Magento2 Ajax change store currency and refresh total on Checkout page while change address

I want to change the current store currency by ajax and refresh the total when changing the address on the checkout page. I have successfully changed store currency by below code:

$this->storeManager->getStore()->setCurrentCurrencyCode($currencyCode);

But problem is that when I am trying to refresh the total then the amount converted as per currency successfully but the currency symbol not changed. Below is the js code of refresh total:

cartCache.set('totals',null);
defaultTotal.estimateTotals(); 

How to add filter in Gmail to label any email which is from/to an email address from one of your Google Contact labels?

I want to make my clients’ emails stand out more than just “important” allows, and also group them better. I have added all client emails to a Google Contacts “Label” and want to make all emails to/from these client email addresses to be labelled in Gmail.

There is a manual solution here: How to add filter and label to group in Gmail contacts?

But it doesn’t account for new emails you add to the contact label in future, and required manual updating.

Any help on my specific question, or an alternative solution would be much appreciated.

ip – Do modems have public address?

I know for a fact that when we are connected to wifi and we search something in the internet, the server we are requesting from will return the files to our IP address and this IP address is the public IP address which is the Ip address of the modem (or at least that’s what I thought so).
But I just came across another article according to which modems being nodes do not have any IP address.
So what is the ip address that the server sees when we send a request.

Is it ok to use uppercase letters in an email address?

Hello@Example.com / hello@example.com

Technically these are different email addresses, however, you are probably OK.

The domain part of the email address (example.com) is not case-sensitive. So “ExaMple.com” is the same as “example.com”. However, the recipient (local-part) is potentially case-sensitive, so “Hello” is different to “hello”. Having said that, real world mail servers tend not to enforce this (I have never encountered one that does) – as it is simply confusing and prone to user error.

If you are storing email addresses then you probably should store them in their original case (the recipient at least) to be safe. However, always compare them case-insensitively in order to avoid duplicates.

From RFC 2821 – Simple Mail Transfer Protocol:

The local-part of a mailbox MUST BE treated as case sensitive.
Therefore, SMTP implementations MUST take care to preserve the case of
mailbox local-parts. Mailbox domains are not case sensitive. In
particular, for some hosts the user “smith” is different from the user
“Smith”. However, exploiting the case sensitivity of mailbox
local-parts impedes interoperability and is discouraged.

magento2.3.4 – Magento 2: Verify email address with Third-party API

I have to validate the email address before adding into the website for the below areas. Verification will be by some API like
https://www.zerobounce.net/docs/email-validation-api-quickstart/

  1. Register
  2. Newsletter subscribe
  3. Checkout

Also, need to get from where this email address is added, for example, Registration form, Checkout, Newsletter form, etc

Please give me some suggestions regarding this.

networking – How to create a docker container that simply forwards a range of ports to another, external IP address?

I would like to create a docker container that all it does is forward any connection on a range of IP addresses to another host, at the same port.

I’ve looked at iptables, pipeworks and haproxy and they look rather complex.

socat and redir look like they could do what I want, but they don’t take a port range.

FROM ubuntu:latest

ENV DEST_IP=8.8.8.8 
    PORTS=3000-9999

RUN apt update && apt install -y ????

CMD ???? --source 0.0.0.0 --ports ${RANGE} --dest ${DEST_IP}

Default address in a Bitcoin core wallet

Can anyone tell me what a default address is in a wallet I have dumped with pywallet? What is it’s purpose and why that one address. It is an older wallet.dat.

recover private key – is there a way to find the wallet that my address goes to ?//

I two years ago had a cash out from a casino and i went to myapp store and downloaded what I was coinbase wallet which it was the cold storage wallet that really has no ties beside a wallet connect to coinbase I later figured out. I was brand new to btc and knew nothing about 12 words that i was to immediately write down. I did make an account at wallet.coinbase.com/kristymoser2018 is what I thought was it. I later on saw the money come into my wallet from the casino and at that point it shut my phone down and erased eveything.. when I came back online I found out that I no longer had an account at wallet under the credentials I thought were right

I guess what I am asking is there any other way to figure out where the wallet is cause it still has the money in it and is there any program I can use that may help me figure out where it is and if my private key is in cloud storage?

I have tried to recreate the same scenarfio and have never been ABLE TO understand this

multi signature – P2SH address as a product of public keys

Assuming the multisig 2 of 3, if I do have extended public keys (xpub) for all 3 cosigners (with proper derivations), can I somewhat get the result address (P2SH)? How to calculate the “script” out of these public keys?

Would be cool to have scheme for doing so or a code/pseudocode in python if possible.

address – If Cryptocurrency offers anonymity, why is it considered by forensic professionals to be the best currency for fighting illicit transactions?

I read about this in https://www.forbes.com/sites/stevenehrlich/2021/04/13/janet-yellen-bitcoin-and-crypto-fearmongers-get-pushback-from-former-cia-director/

I have categorized privacy and anonymity involved in Bitcoin transactions as (based on few cases that I have studied):

  1. Networking
  2. Blockchain
  3. External

Networking: Use of full node, Tor, i2p, etc.

Blockchain: Information available publicly for every transaction like amount, type of transaction etc.

External: Lot of users share information about their bitcoin addresses or transactions on social media. Example: You can search for “blockchain.com/btc/tx” on Telegago to check lot of transactions shared in different telegram groups or channels.

In terms of it being digital this makes sense, and of course the public ledger would showcase all transactions, but aren’t the identities of those transacting hidden cryptographically?

It is mentioned in the paper: “(It) is easier for law enforcement to
trace illicit activity using Bitcoin than it is
to trace cross-border illegal activity using
traditional banking transactions, and far
easier than cash transactions.

Yes, its easier to trace digital payments compared to cash transactions. One of the reasons governments are moving towards to cashless economy. Demonetization that happened in India few years back and usage of digital payments since then is a great example. Although I am not sure about banking transactions because it varies from one bank to another and different places in the world. There are lot of other things used by criminals which exist since years but I consider them to be off-topic here so will not go in to details.

If Cryptocurrency offers anonymity, why is it considered by forensic professionals to be the best currency for fighting illicit transactions?

I am assuming its because of their confidence in the use of tools they find helpful in tracing Bitcoin transactions. Also we cannot blame the privacy or anonymity of Bitcoin transactions in every case because most of the cases involve things like address reuse, using KYC exchanges, information shared on social media etc.

Michael Morell (Former CIA Director) has mentioned few things that support my arguments about their confidence in the use of tools used for tracking:

Blockchain analysis is a highly effective crime fighting and intelligence gathering tool.

But that is not all. Perhaps even more interesting to Morell was how analytic firms such as Chainalysis, CipherTrace, and Elliptic can employ forensic and artificial intelligence tools to find illicit actors and activity on blockchains. In fact, he said that he was “literally blown away by how they find illicit activity…this is great intelligence work.”

I don’t trust everything shared by firms like Chainalysis and artificial intelligence is helpful but has its own issues when using for analyzing Bitcoin transactions. I have mentioned the details of an independent investigation related to Mt. Gox case: https://bitcoin.stackexchange.com/a/101959/. You will find the investigator had to assume lot of things for tracing Bitcoin transactions.

Will share few charts that looked interesting although as I mentioned above firms like Chainalysis have incentives in promoting their business and mislead people about privacy and anonymity in Bitcoin:

dest-illicit

risky-services

illicit-map

origin-darknet

dest-darknet

You can check other details here: https://go.chainalysis.com/rs/503-FAP-074/images/Chainalysis-Crypto-Crime-2021.pdf

Lastly, how do we improve privacy and anonymity involved in Bitcoin transactions? Quoting sipa from one of the Reddit post:

Nothing is “sufficient” for privacy. It’s a goal to work towards, but it is so multi-faceted that no single piece of technology can “solve” privacy. https://www.reddit.com/r/Bitcoin/comments/e65vdf/could_bitcoins_privacy_benefit_from_litecoins_eb/f9oxfyk/

I have mentioned the difference between privacy and anonymity, best practices for Bitcoin transactions and few other things in this answer: https://bitcoin.stackexchange.com/a/103255/