Why did the Payment section stopped working after switching primary domain? And – does Form Key Validation On Checkout need to be enabled?

Porto theme 

I switched the primary domain in our Magento 1.9.4 store and then the Payment section of the checkout stopped working altogether – you could select a Payment method by placing a tick in the radio button but it would NOT proceed to the next step.

I found other posts dealing with problems regarding the payment section and they suggested to Disable the Form Key Validation. I did that and it made the Payment section work.

Why is this and do we need to have it enabled or are we going to get by with it disabled?

How to Open Telnet Console in post section of Kickstart

I want to configure external VxWork based device in post section of kickstart file, this accept telnet based commands. I found following

#!/usr/bin/expect -f send -- "terminal length 0\r" expect "*?EDR*" spawn timeout 600 ssh -o admin@x.x.x.x match_max 1000 send -- "copy tftp x.x.x.x my.ini\r" expect "*?AAA*" exit 

Any other alternative?

Magento2 Get Order API data in custom section

In Magento2, when we call order API /V1/orders/:id method=”GET”, magento uses Magento\Sales\Api\OrderRepositoryInterface::get($ id) which is defined in the Magento\Sales\Model\OrderRepository::get($ id),

So My question is, whenever I use either of the classes to fetch data similar to API response(json array) it returns PHP Object, so how can I receive the similar response.

Extracting a section of a string using regex with repeating ending words

I am attempting to extract some some raw strings using re module in python. The end of a to-be-extracted section is identified by a repeating word (repeated multiple times), Current efforts always captures the last match of the repeating word. How can I modify this behavior?

A textfile has been extracted from a pdf. The entire PDF is stored as one string. A general formatting of the string is as below:

*”***Start of notes: Collection of alphanumeric words and characters EndofsectionTopic A: string of words Endofsection”*

The intended string to be captured is: “Collection of alphanumeric words and characters”

The attempted solution used in this situation was: ” re.compile(r”*{3}Start of notes:(.+)\sEndofsection”)

This attempt tends to match the whole string rather than just “Collection of alphanumeric words and characters” as intended.

One possible approach is to split with Endofsection and then extract the string from the first section only – this works, but I was hoping to find a more elegant solution using re.compile.

I wish to add the new div in PDP page after price section in mageno 2

I have added custom div in /var/www/html/pot/app/design/frontend/pot_customization/Magento_Catalog/templates/product/price/amount/default.phtml.

The div displays for all the products and works fine. But if a product have special price,the div displays two times near price .

Please provide me a solution to add my custom div after the price section.

default.phtml

<?php /**  * Copyright © Magento, Inc. All rights reserved.  * See COPYING.txt for license details.  */  // @codingStandardsIgnoreFile  ?>  <?php /** @var \Magento\Framework\Pricing\Render\Amount $  block */ ?>  <span class="price-container <?= /* @escapeNotVerified */ $  block->getAdjustmentCssClasses() ?>"     <?= $  block->getSchema() ? ' itemprop="offers" itemscope itemtype="http://schema.org/Offer"' : '' ?>>     <span class='your-price'>Your Price</span>      <?php if ($  block->getDisplayLabel()): ?>         <span class="price-label"><?= /* @escapeNotVerified */             $  block->getDisplayLabel() ?></span>     <?php endif; ?>     <span <?php if ($  block->getPriceId()): ?> id="<?= /* @escapeNotVerified */     $  block->getPriceId() ?>"<?php endif; ?>         <?= ($  block->getPriceDisplayLabel()) ? 'data-label="' . $  block->getPriceDisplayLabel() . $  block->getPriceDisplayInclExclTaxes() . '"' : '' ?>             data-price-amount="<?= /* @escapeNotVerified */             $  block->getDisplayValue() ?>"             data-price-type="<?= /* @escapeNotVerified */             $  block->getPriceType() ?>"             class="price-wrapper <?= /* @escapeNotVerified */             $  block->getPriceWrapperCss() ?>"     ><?= /* @escapeNotVerified */         $  block->formatCurrency($  block->getDisplayValue(), (bool)$  block->getIncludeContainer()) ?></span>     <?php if ($  block->hasAdjustmentsHtml()): ?>         <?= $  block->getAdjustmentsHtml() ?>     <?php endif; ?>     <?php if ($  block->getSchema()): ?>         <meta itemprop="price" content="<?= /* @escapeNotVerified */         $  block->getDisplayValue() ?>"/>         <meta itemprop="priceCurrency" content="<?= /* @escapeNotVerified */         $  block->getDisplayCurrencyCode() ?>"/>     <?php endif; ?> </span>  <!-- custom div start --> <?php $  helper = $  this->helper('x\ProductReview\Helper\Data'); ?> <div class="price-guarantee">     <a href="<?php echo $  helper->getBaseUrlData()."why-shop-with-us" ?>" class="guarantee-link">100 % Price Guarantee</a> </div> <div class = loyalty-points>     <span>Loyalty Points<b> 4</b> <span>Learn more about our</span> <a href="<?php echo $  helper->getBaseUrlData()."loyalty-points-program" ?>">loyalty points program</a></span> </div> <!--  End --> 

Lista dentro da Section

Boa tarde pessoal! Eu novamente! O que eu não consigo achar na net, venho perguntar aqui…

Tenho uma section de tamanho limitado e tenho uma lista dentro dela ul, li. Quero que essa lista não saia de dentro da section… Quando ficar grande, quero uma barra de rolagem dentro da section para visualizar a lista completa.

#racetype{ display: flex; flex-direction: column; background-color: D3D3D3; max-width: 120px; max-height: 480px; margin: 0px; padding: 0px; float: left; }
<html><!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <title>Builder</title> <link rel="stylesheet" type="text/css" href="css/layout.css"> <script type="text/javascript" src="JS/racetype.js"></script> </head> <body> <section id="racetype"> 	<p><input type="radio" name="race" onclick="raceimg('aasimartree');racebonus(0)"> Aasimar </p> 	<p><input type="radio" name="race" onclick="raceimg('dragonborntree');racebonus(1)"> Dragonborn </p> 	<p><input type="radio" name="race" onclick="raceimg('drowelftree');racebonus(2)"> Drow </p> 	<p><input type="radio" name="race" onclick="raceimg('dwarftree');racebonus(3)"> Dwarf </p> 	<p><input type="radio" name="race" onclick="raceimg('elftree');racebonus(4)"> Elf, Khorvaire </p> 	<p><input type="radio" name="race" onclick="raceimg('woodelftree');racebonus(5)"> Elf, Wood </p> </section> </body> </html>

Vector bundles trivial on complement of a hypersurface section

Assume we have a smooth projective variety $ X$ over a field (finite field if matters). Consider a smooth hypersurface section $ H$ of $ X$ . Let $ Spec(A)=U=X \setminus H$ be an affine variety. I want to know whether there are any nice description of vector bundles on $ X$ such that they are trivial on $ U$ and $ H$ ? My suspicion was that they are all direct sums of line bundles of the form $ O(nH)$ is that correct?

conic section (emergency please answer this question)

People of all ages love playing on slides. Many are made with twists and some are covered, creating a tunnel. We can see many conic sections are used in the design and construction of these slides. In this task you will create mathematical models for part of a covered twisting slide. enter image description here enter image description here Task:

You are to find the height of the opening at the base of the slide, using the measurements marked on the diagram. The smaller ellipse shown is 150cm from its centre to the left vertex. You will first create a variety of mathematical models, as instructed below. You are to create models using a variety of conic sections.

Create 3 different models for the outer edge of the slide. Create 3 different models for the inner edge of the slide. Determine how high the opening of the slide is, as indicated on the diagram. Describe how you would adjust a model for the inner edge if you wanted to use it to create a different sized slide. The width is now “h” metres, not 170 metres. The ratio of length to width remains the same.

Note: The slide is only 250cm wide, which is the distance from the centre of the large ellipse to its left vertex, so your models should be for that width. A bigger representation. (Note: Diagram not drawn to scale)