payment gateway – Adding paygate buttons to HTTP-only website?

Let’s say that I have a website where I want to sell homemade goods. I want customers to be able to pay for the goods without too much hassle.

A common option is to use buttons provided by a payment service like PayPal. The website uses HTTP, however, and the hosting service does not allow SSL certificates without paying for a higher hosting plan. What are the risks of using similar payment methods on my website?

One attack I am aware of, is that of an attacker redirecting the traffic to their own website — which pretends to be the payment service. I am not sure if this is even a concern for this case.

To be clear:

  • Purchases on the website will be rare, so there will be little opportunity for an attacker to intercept payments.
  • The website is hosted by a hosting service, similar to WordPress.

sharepoint online – When adding an item programmatically the workflow 2013 will raise access denied

I have defined a workflow which gets fired when adding items on listA. and if i directly add an item inside listA using the UI the workflow will work well. but on listB i have a remote event receiver which programmatically create a list item inside listA.

but when the remote event receiver create an item inside listA, the workflow will raise this error:-

Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP Forbidden to https://****/_api/web/lists(guid'd20db253-4447-4133-99b0-757eee9eb37e')/Items(212)?%24select=ID%2CProjectCurrentUpdate Correlation Id: 4590651d-d586-53c6-9ebc-5db114ddcfbe Instance Id: 1cf54ed9-97ee-4de3-b361-edbef338b249 

Access denied. You do not have permission to perform this action or access this resource. 

certificates – Adding Expect-CT header to HTTP response

In the security test report, I have a recommendation to add Expect-CT header to the HTTP response from web application, additionally developers set this to:

Expect-CT: max-age=0, report-uri=

I am not sure if it is a good idea to add this header. According to

“The Expect-CT will likely become obsolete in June 2021. Since May 2018 new certificates are expected to support SCTs by default. Certificates before March 2018 were allowed to have a lifetime of 39 months, those will all be expired in June 2021.”

So because certificates are expected to support SCTs by default I do not think that this header makes any sense.

When it comes to configuration according to max-age=0, report-uri= means:

“This policy is deployed in report-only mode and if the browser doesn’t receive CT information that it’s happy with, referred to as not being ‘CT Qualified’, rather than terminate the connection it will simply send a report to the specified report-uri value.”

Because I don’t have uri here, the report will not be sent, so there is no additional security at all.

On the other hand I see that some popular websites like Linkedin still use this header, the example from Linkedin:

Expect-CT: max-age=86400, report-uri=""

Adding JS to ckeditor frame

I would like to add js script to the ckeditor frame similar to how it is done with css.
I am aware that to do so with css you simply do
– css/custom-styles.css

How can I achieve the same with js?

Shifting and adding the columns of two lists

Let’s say that I have this list

a={{-2, 1}, {-1, 2}, {0, 1}, {1, 0}, {2, 0}}

and I’d like to change the value of the elements in the column to obtain something like this

b={{-2, 0}, {-1, 0}, {0, 1}, {1, 2}, {2, 1}}

so, you can see that it’s like I’m shifting the values in the column two positions.

and then I’d like to sum the elements in the column to obtain

c={{-2, 1}, {-1, 2}, {0, 2}, {1, 2}, {2, 1}}

8 – View only displays nodes that has comments when adding comment count field

On drupal 8 I am facing an issue with views.
I created a view listing all nodes of a certain content type.
I added basic fields, Title, Date content was created, and a read more link.
The view works fine with these fields, but when i add Comment Statistics: Comment count, all nodes that don’t have any comment don’t show up in the view.
It only lists nodes that received comments.

Any idea on how to fix this ? Am I doing something wrong ?


python – Adding values and strings in Matplotlib subplot texts

I’m new to programming so this is a basic question. I am creating a number of subplots in a big loop and wish to annotate each one with both a description and a value for that plot, e.g. Alpha = 15. But I find that using ax.text I can create one part or the other, but not both. The following code snippet produces roughly the desired outcome, but only when I run ax.text twice and position them manually, which of course is impractical.

import matplotlib.pyplot as plt

for alpha,beta in ((5,10),(100,20)):
    for omega in ('A','B'):
        ax.text(0.1,0.9,'Alpha = ')

I’ve tried various combinations of commas, plus signs and indices in ax.text but can’t seem to get it to work.

nodes – Getting Error while adding link in existing quote from embed entity in ckeditor

There is a requirement from our client where they will be able to use ckeditor create quote. So we changed the quote paragrah field field_quote_quote from plain text to formatted text. So we were able to have the quote in ckeditor, All buttons work perfectly fine but when we try use the link button we are able to create a new quote but editing same quote through this error [error here]: Here are the steps to reproduce it.

I have an option to add Quote from ckeditor tool. I have created an option to add quote from ckeditor tools. I have achieved this through embed button from Home >> Administration >> Configuration >> Content authoring .

Here is the steps to add quote:
step 1: click on quote icon from ckeditor.
Step 2: A again ckeditor will open to add the quote.
Step 3: We add the quote and formatted text and added a link through Link option from ckeditor
Step 4: Now quote is added successfully while submitting it.

But now issue is occurred when I go for edit the existing quote. Here is the steps to edit the quote:
step 1: Click right click on quote.
Step 2: A ckeditor will be open to add link on existing quote.
Step 3: Here I click on Link button from a ckeditor to add Link.
Step 4: Here unable to submit the save button of add link popup.
Getting error in console:
Uncaught TypeError: Cannot read property ‘getRanges’ of null

We tried adding using other link plugin like anchor link, ckeditor, entity link, linkit, but all have similar behaviour. We are able to create but not update the link.

Also I am attaching the screenshots for the above mentioned steps
enter image description here

enter image description here

Closing one website and adding its content to another. What will be the effect on SEO and will google consider the content copied?

I am closing down one of my website and want its content copied on one of my other website. I want to know whether google will consider the content copied and will decrease the domain authority / seo ranking. What effect will it have. Also how long does it take for google to deindex website / content. I have removed the website and also put a request in outdated content removal

Thanks in advance!

algorithms – MST – adding an edge to graph

I have some difficulty proving the correctness of my solution to the following exercise. Let $G = (V,E)$ undirected connected graph, $w colon E to mathbb{R}$ weight function. Let $T$ a MST (minimum spanning tree) of $G$. Now, we add a new edge $e’$ to $E$ with weight $w(e’)$. Find an algorithm that updates $T$ so it will be a MST of the new graph $G’ = (V,E cup {e’})$. The time complexity of the algorithm should be $O(V+E)$.

Intuitively, the algorithm is quite simple: add $e’$ to $T$, and then we got one cycle closed. Remove the edge with maximal weight from this cycle, and obtain a MST of $G’$.

However, I had some difficulties prove the correctness of this algorithm formally, and would appriciate some help.

BTW. I have read this post: If I have an MST, and I add any edge to create a cycle, will removing the heaviest edge from that cycle result in an MST? but unfortunately haven’t fully got the proof there.

Update: I tried Steven’s solution and it helped me a lot, thanks again. I also found this solution online (I add a picture), but didn’t understand it well. I also don’t understand why in this solution, $T’$ is the MST on $G’$ instead of a MST on $G’$. Can someone help me understand what is going on the proof there, please?A solution I found online