magento2.3 – Magento 2 – Set up an action code for $ 1

We switch to Magento 2.3 and apparently can not find a way to set up one of our frequent actions: "$ 1 shipping for orders over $ X." Previously, we set up this code as a shopping cart pricing rule and linked it to the shipping method using shipping price rules. M2 does not seem to have a shipping pricing rules page, and there is no box in the shopping cart pricing rules to set a flat rate for shipping. Could someone offer a solution for this situation? Does this require the purchase of an extension?

magento2 – Magento 2 removes the effects on the version number

I noticed that when entering / magento_version together with the site URL our Magento version is displayed. So anyone who has bad intentions can check and exploit my version.

To prevent this, I can disable the magento_version module from the command line, but I'm not sure if disabling this module will affect other features. The code struck me that they only use the controller to display the information. But I am not sure if it will be used elsewhere or not. Can Magento also use it for APIs or similar, or for Composer-based upgrades?

Will there be any negative impact if we disable? Should I hide my version number publicly? Is it good to hide it?

Any help would be appreciated.

magento2 – Magento 2: Undefined variable: Installer

I'm too new for Magento: I get an error message when Setup: UpgradeHere is my code:
app / code / Adamsmage / Checkout Attributes / Setup / InstallData.php

customerSetupFactory = $ customerSetupFactory;
}

/ **
* {@inheritdoc}
* /
install public function (
ModuleDataSetupInterface $ setup,
ModuleContextInterface $ context
) {
$ customerSetup = $ this-> customerSetupFactory-> create ()['setup' => $setup]);

$ customerSetup-> addAttribute (& # 39; customer_address & # 39 ;, & # 39; example & # 39 ;, [
            'label' => 'example',
            'input' => 'text',
            'type' => 'varchar',
            'source' => '',
            'required' => false,
            'position' => 333,
            'visible' => true,
            'system' => false,
            'is_used_in_grid' => false,
            'is_visible_in_grid' => false,
            'is_filterable_in_grid' => false,
            'is_searchable_in_grid' => false,
            'backend' => ''
        ]);


$ attribute = $ customerSetup-> getEavConfig () -> getAttribute (& # 39; customer_address & # 39 ;, & # 39; example & # 39;)
-> addData (['used_in_forms' => [
                'customer_address_edit',
                'customer_register_address',
                'adminhtml_customer_address',
                'customer_address'
            ]]);
$ attribute-> save ();

$ installer-> getConnection () -> addColumn (
$ installer-> getTable (& quot; quote_address & # 39;),
& # 39; Example & # 39 ;,
            [
                'type' => 'varchar',
                'length' => 255
            ]
        );

$ installer-> getConnection () -> addColumn (
$ installer-> getTable (& # 39; sales_order_address & # 39;),
& # 39; Example & # 39 ;,
            [
                'type' => 'varchar',
                'length' => 255
            ]
        );
}
}

ERROR:
Enter image description here

Algorithm – `set_includes` (String Subsequence Containment) in Python 2

I have implemented C ++ std :: includes Algorithm in Python, so that I can efficiently implement a scrabble "can I make this word" function:

def word_can_be_made_from_rack (word, rack):
return set_includes (sorted (rack), sorted (word))

Here is the implementation with some test cases:

def set_includes (haystack, needle):
j = 0
hn = len (haystack)
for c in needle:
while j! = hn and hay up[j] < c:
            j += 1
        if j == hn:
            return False
        if haystack[j] >    c:
return incorrectly
j + = 1
return true

assert set_includes (& # 39; abcdef & # 39 ;, & # 39; af & # 39;
assert set_includes (& # 39; abcdef & # 39 ;, & bgr; bce & # 39;
assert set_includes (& # 39; abcdef & # 39 ;, & # 39; abcdef & # 39;
assert set_includes (& # 39; aaaaa & # 39 ;, & # 39; a & # 39;
assert set_includes (& # 39; aaaaa & # 39 ;, & # 39; aa & # 39;
assert set_includes (& # 39; aaaaax & # 39 ;, & ax; & # 39;
assert set_includes (& # 39; abbbcxx & # 39 ;, & # 39; abc & # 39;

This is similar to searching if one list is a subsequence of another, except that it is assumed (and required) that the two input strings are sorted.

The manual management of the index j this code does not feel very pythonic. Am I missing an easier way to write this algorithm?

itertools one-liner become are accepted as answers, especially if they are more performant. 🙂

Buy – Rent F / T 2 Indian WP & 2 Indian eCommerce & WooCommerce Devs – Salary

I'm looking for TALENTED & EXPEREINECED INDIAN 2 WordPress Developer & 2 WooCommerce & eCommerce Developer at a monthly salary of Rs. 24,000 INR / month for every developer of my client in the UK who is 8 hours / day, 7 days / week according to office hours Great Britain works.
SEMrush

I can pay you weekly via the Freelancer.com Escrow after the work has been submitted daily. With satisfactory results of the work only then will I release the Escrow every week, not before.

My client will face a development challenge for you and the developers who best solve this challenge and get these 4 jobs.

You must make an acceptable legal agreement with me in this regard and I will send you this copy of the agreement by PM.

django – python: file & # 39; manage.py & # 39; can not be opened: [Errno 2] No such file or directory in Docker

I'm trying to set up Docker on my computer. I follow there doc for setup

I'm trying to set up Django with MySQL

Here is my Dockerfile

FROM Python: 3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir / testing
WORKDIR / Testing
ADD requirements.txt / testing /
RUN pip install -r requirements.txt
ADD . /test/

Here is my docker-compose.yml file

Version: "3"

Services:
db:
Picture: MySQL
# Ports:
# -? 3306: 3306 & # 39;
Surroundings:
MYSQL_DATABASE: "ishoErp"
MYSQL_USER: "antu"
MYSQL_PASSWORD: "sure"
MYSQL_ROOT_PASSWORD: "sure"
Administrator:
Picture: Administrator
Reboot: always
ports:
- 8080: 8080
Network:
to build: .
Command: python manage.py runserver 0.0.0.0:8000
volumes:
-.: / test
ports:
- 8000: 8000
depends on:
- db

When I execute this command

$ sudo docker-compose run the django-admin.py web to test the project

It successfully creates a Django project

but when I try to build

$ docker compose up
It gives me this following mistake.

docker_db_1 is up to date
docker_adminer_1 is up to date
Docker_web_1 is starting ... done
Attach to docker_db_1, docker_adminer_1, docker_web_1
adminer_1 | PHP 7.3.7 Development Server was launched on Thursday, July 18, 2009 at 09:09:55
db_1 | 2019-07-18T09: 35: 52.935567Z 0 [Warning] [MY-011070] [Server]    & # 39; Disabling symbolic links with --skip-symbolic-left (or equivalent option) is the default. Consider not using this option because it is outdated and will be removed in a future release.
db_1 | 2019-07-18T09: 35: 52.935665Z 0 [System] [MY-010116] [Server]    / usr / sbin / mysqld (mysqld 8.0.16) starts as process 1
db_1 | 2019-07-18T09: 36: 00.238481Z 0 [Warning] [MY-010068] [Server]    CA certificate ca.pem is self-signed.
db_1 | 2019-07-18T09: 36: 00.328860Z 0 [Warning] [MY-011810] [Server]    Unsafe configuration for --pid file: On the path & # 39; / var / run / mysqld & # 39; in the path all users of the operating system can access. Consider selecting a different directory.
db_1 | 2019-07-18T09: 36: 00.358094Z 0 [System] [MY-010931] [Server]    / usr / sbin / mysqld: ready for connections. Version: & # 39; 8.0.16 & # 39; Socket: & # 39; /var/run/mysqld/mysqld.sock&#39; Port: 3306 MySQL Community Server - GPL.
db_1 | 2019-07-18T09: 36: 00.723827Z 0 [System] [MY-011323] [Server]    X plugin ready to connect. Socket: & # 39; /var/run/mysqld/mysqlx.sock&#39; Binding Address: & # 39; :: & # 39; Port: 33060
web_1 | Python: File & # 39; manage.py & # 39; can not be opened: [Errno 2] No such file or folder
docker_web_1 ended with code 2

What am I doing wrong?

Gd: Intel Dual Xeon e5-2670v2 | 128 GB of DDR3 | 2 x 500 GB SSD | Dallas

George Datacenter LLC

******Properties*******

– 1GBPS port speed is included.
– We all own our own hardware
– Data Center Dallas | Colocation Chicago
– 100% SLA for network uptime
– Free basic DDoS mitigation
– rDNA available
– Full root access
– 99.99% availability guarantee
– Payments by Paypal

Our main goal is to provide the best quality to small customers

Today we have our offer of the day

**** DEDICATED SERVER BASIC ****

INTEL DUAL XEON E5-2670V2
Unmeasured bandwidth
1Gigabit port
128 GB RAM
2 x 500 GB SSD
05 IPS IPV4

$ 250.00

assignment

**** DEDICATED SERVER STANDARD ****

INTEL XEON E5-2620
10 TB bandwidth
1Gigabit port
64 GB RAM
4 x 1 TB SSD
05 IPS IPV4

299.00 USD

assignment

Limited number.

If you have questions about our services, please contact sales@georgedatacenter.com.

massaction – Magento 2 – Admin Grid – Mass Action Column Custom Rendering

I have a custom module in Admin Magento 2 and I need to render custom data in the Mass Action column.

For example. By default, the check box appears in the Mass Action column. But if we've done something, I'll have to display a loader instead of the checkbox until the process in the background of cronjob is not completed.

Python 1: My spider gives me all the results in one line in a CSV file and 2 I can not create any scrapy scrape information from the list of links I just scraped

First, if I use extract_first, scrapy gives me the first element of every page, and if I do it that way, it returns all the content I want, but in one-liners.

Second, I can not get Scrapy to go to the links I've just scraped, and retrieve information from those links, returning an empty CSV file.

from scrap import Spider
to import from companies.items CompaniesItem
Import again

Class Company Spider:
name = "company"
allowed_domains = ['http://startup.miami',]
    # Defining the list of pages to be scratched
start_urls = ["http://startup.miami/category/startups/page/" + str(1*i) + "/" for i in range(0, 10)]

    def parse (self, answer):
rows = response.xpath (& # 39; // *[@id="datafetch"]& # 39)

for line in lines:
link = row.xpath (& # 39; .//h2 / a / @ href & # 39;). extract ()

name = row.xpath (& # 39; .// header / h2 / a / text () & # 39;). extract ()

def parse_detaill_page (Self, Answer):
first_element_page = response.xpath (& # 39; .// p / a / @ href & # 39;). extract ()
first_element_page = & # 39; http: //startup.miami&#39; + first_element_page
Yield request (url = first_element_page, callback = self.parse_detaill_page)


item = CompaniesItem ()
items['link'] = Link
items['name'] = name

income items