matrix – ‘Do’ loop acting on a global variable

I need a code that will allow me to alter a matrix (a global variable) iteratively using a function update (which depends on variable var), append the value of a function func of the altered matrix to a list mypoints, and then reset the matrix to its original value. (In my code, I’ve already defined a matrix matrix1 by matrix=matrix to make it easier to set the value of matrix at the end of the process.) The function update was given to me and is defined to alter this particular matrix– I can’t change it to return a matrix output given a general matrix input, although I believe this would be a better option if I could.
I have the following code that I wish to define as a single function:

Do(update(var), 1000)
AppendTo(mypoints, {var, func(matrix)})
matrix = matrix1

This works for me, but I’d like to rewrite this code as a function of var so I can obtain many points. My naive/unsuccessful attempt is below, I’m not very familiar with the ‘Do’ loop so I don’t know where to go from here, or if this can even be done. Any help is appreciated.

getpoints(var_) := Do(update(var)), 1000;
  AppendTo(mypoints, {var, func(matrix)}),
  matrix = matrix1)

magento2.2 – Global Payments Realex 511 Redirect Issue Magento 2.2.2 HPP

I am using this module for Global Payments / Realex Payments for Magento 2.2.2 store form Magento Marketplace

"name" : "realexpayments/hpp",
"description" : "A Magento 2 module for Global Payments HPP payments",
"type" : "magento2-module",
"version" : "2.0.0",

Using Hosted Payment Page in One Step Checkout – Embedded HPP

After user completes a successful transaction they are not being correctly redirected to the correct url page and the order is not showing in my admin emails – been having this problem for months now with no help from Global Payments at all – very frustrated they not answering calls or emails!

I am unable to process the order and complete it. And get confused as to payed orders and failed already sent out several orders when they were no payed for by mistake because of this problem

If we select other payment options such as Bank Transfer the order and emails goes through fine and it redirects user to success page

I get instead emails see below

wirelessbridges / 511 Alerts

Please be advised the following alert(s) appeared on our system as we were unable to connect to your response page.
Time Account Order ID URL / IP

Explanation of this alert in more detail:
As you are using the Hosted Payments Page, this means that your customer is redirected to a secure payment page hosted on the Global Payments servers to enter their card details.
Once the transaction is processed, we return the transaction response – and your customer – to a nominated response page on your servers.
In this instance we could not connect with your response page to notify you of the transaction response, and so this alert was generated.
What do you need to do?
This particular transaction may have been successfully authorised but as we could not connect to your response page, it is important that you check the status of this transaction to ensure no orders are missed. The RealControl reporting tool can be used to check the status of this transaction.
Why does this happen?
As all communication with your response page happens via the open channels of the internet, connections can be dropped from time to time which will result in a 511 alert.
A high incidence of 511 alerts may indicate an issue with your response page and may warrant further investigation.
If this occurs, Global Payments can enable logging on your transactions, which will allow us to get more information around the response received from your particular server, which may help determine the source of the problem.
Additional Configuration Information:
We recommend you set Success and Failure text which will be displayed to the customer in the event we can’t connect back to your response page by navigating to the Client Settings section of RealControl.
Kind regards,
Global Payments ECOM Support

I am unable to upgrade to Magento 2.3 or higher because the site has many extensions and personalisation which is not yet compatible – and the extension version HPP 2.0.0 is the only one we can install on Magento 2.2.2 Please help this is nightmare

Can I customize SharePoint Modern Teams site global menu style?

Don’t use that nav. Instead set your Team site as a Hub site so you get the modern nav.

Alternatively if you don’t want to Hubify the Team site, you can use a Comm site which has the same modern nav without being a hub.

Manipulating the DOM via CSS/JS in modern sites is unsupported and customizations will likely break over time as Microsoft makes changes to the DOM.

Python, Tkinter: Can an array be modified within a button callback without using global variables or defining new classes?

Ideally, I would like to use a built-in approach like tk.StringVar to modify an array (of strings) in a button command, but also need to the modified array to live on so it can be modified in other function calls. The line print(a) in the code below prints an array-like object ('abc', 'gh', 'rstu'), but the line print(a(1)) fails to return gh and the line a.append('xyz') returns an error, suggesting that I can’t directly hijack tk.StringVar to carry the array. What is then my best option, if I should avoid the perils of making the array global and the overhead of defining a class?

import tkinter as tk

def append():
    a = a_var.get()

window = tk.Tk()
a = ('abc','gh','rstu')
a_var = tk.StringVar(value=a)

tk.Button(window, text='Append', command=append).pack()


sql server – Why using a local temp table (instead of a global temp table or a regular table) influences the Query Optimizer to choose a poor query plan?

This Question brings a situation where the Query Optimizer chooses poorly the seek predicate among the existing predicates of a simple query. After running some tests I got to the conclusion that the poor decision is due to the use of a local temp table instead of a global temp table or a regular table.

db fiddle: Local Temp Table, Global Temp Table, Regular Table.

Index seek info

I couldn’t find any characteristic on the Temporary Tables doc that would explain the different behavior we see when using a local temporary table instead of a global temporary table or a regular table. Is there a logical reason for this or could it be a bug?

magento2.3.4 – How to handle Global style sheet for my custom theme?

I have created custom theme then creating _extend.less file under appdesignfrontendMy_vendormythemewebcsssource_extend.less do some customization.

Where i can declare global style sheet (Common Components) like primary color, secondary color, primary button color, h1 tag, <p> tag, for all the repeated design for whole pages.

Global Bit Hour –

I am not the admin or the owner of the project, I don’t know the admin!

Global Bit Hour

Reduced Size Image

View / Sign-Up

10% for 24 hours, 15% for 72 hours, 30% for 5 days, 10% daily forever

Perfect Money, Payeer, Bitcoin, Ethereum, Tron


Minimum Investment:
US$ 20
Maximum Investment:
US$ 49999

7% – 2% – 1%

Type of Script:

Start of Monitoring:

View / Sign-Up

sharepoint online – Home Site is missing Global Navigation

I have enabled a Home Site, but the global navigation does not show up. Does anyone know how to get it working? After a Home Site was setup, I was expecting this navigation piece to be visible somewhere, but it’s nowhere to be seen.

Steps performed

  • Enable Home site
  • Waited for 1 hour

PowerShell script used

connect-SPOService -url
set-spohomesite -HomeSiteUrl 

Home site

More details

blockspace market – What does the global transaction limit mean in practice?

The Bitcoin network uses the blockchain to form consensus on the journal of transactions. The blocks commit the network to a specific order of events and guarantee propagation. Blocks are found roughly every ten minutes and are limited to 4,000,000 weight units (or 1,000,000 vbytes). Said blockweight limit and cadence of blocks are what limits network’s transaction confirmation rate: with about 2,000 to 2,500 transactions per block every 600 seconds, the transaction rate is currently closer to 3.5 tps in practice. Note that a transaction may perform more than one payment.

Before transactions are organized into blocks by miners, the unconfirmed transactions are tracked in the memory pool (mempool) of each node. A node’s mempool can hold about half a day’s worth of transactions by default. Miners generally pick the transactions with the highest feerate first to build their block to optimize their revenue. When peak demand subsides, the network eventually chews through the backlog, also confirming transactions with lower feerates. Altogether, this forms a market for blockspace in which users can bid with transaction fees to signal the urgency of their payments.

javascript – How do you return multiple function values to multiple global variables?

I’m trying to create a program where there are two variables x and y where they continually increment every 2 seconds. 2, 4, 6, 8, etc. I also want a reset button where once pressed, x and y become 0 and 1 respectively.

However the logic problem I’m having is how to get the function return values to be constantly assigned in a changing status to the global variables. I used an array with the name z to hold the x and y values and had x=z(0) and y=z(1), to transfer the multiple return values from the function. Like (a,b).

How do I continually tell the program that each time I increment x and y in my increase() function, that I want x and y to equal the new value? Because the current logic I’m trying to figure out should work once, but instead it doesn’t work at all. Instead the values don’t continually increase and x and y only increase once from 1 and 2 to 2 and 3 and never more. The reset button doesn’t work. I don’t know how to transfer the function return values to global values without the values being encapsulated in the function.


    var x = 1;
    var y = 2;
    var z = (x,y);

function reset(){
return (a,b);

function increase(a,b){
return (a,b);

function consoles(a,b){

var clockTimer;
clockTimer = setInterval(function(){z=increase(x, y);}, 2000);

var consoleTimer;
consoleTimer = setInterval(function(){consoles(z(0), z(1));}, 2000);

<input type="button" id="button" value="Reset" onclick="z=reset()"></input>