Selling natural products

Hello all, I have rent a local store and I want some advice on how to get the clients to buy from my local store. any ideas, recommendations!

html – What is the best Javascript python interpreter for what I am working on?

I am making a website to help teach users Python. What service can I use to run custom Python functions (no other libraries)?

For example, the user inputs down(2) on my website, this service takes that and see they want to use the down function, and then I can handle that and make an HTML element move down two times.

networking – Configure virtual serial port (COM TCP) via terminal on Windows 10

Context

I am working with a module built around a headless Raspberry Pi CM3+, the only form of interface with which is an ESP8266 chip (bear with me, the question isn’t about either of these) which is connected via UART and acts as a TCP-UART bridge. This means that if connecting/talking to it, say over telnet, my PC will see a network connection while the Pi sees a serial one. No other ports or interfaces are available.

My task is to transfer files (specifically, small video files) from a PC to the Pi. This much I know is possible; my method of achieving it so far has been:

  • Use a driver to create a virtual COM port outputting to the ESP via TCP (I used this one)
  • Log into the Pi over this ‘serial’ connection using Tera Term
  • Still using Tera Term, transfer the file with zmodem, having first sent the ‘rz’ command to the Pi

So far so good (and it took me a long time to get to even that point) – however, what I now have to do is simplify this process to the point where a most likely computer-illiterate user can do the same thing. I’m thinking the best way to do this would be to have a .bat file they can simply double click on which will prompt them to select the video file, then handle everything else for them. This would mean that everything I did previously using Tera Term and HW VSP3, I now have to accomplish using terminal commands.

I am able to install additional software on the Pi if required by removing it from the module.

Question

Is there a command-line piece of software I could run from a batch file that would create a virtual com port connecting to a TCP output? The closest I’ve found so far is com0com/com2tcp, but that doesn’t seem particularly command line friendly. Alternatively, is there a better way I could be going about this? I know socat would do the trick in Linux, but again the end user here probably doesn’t even know what Linux is.

networking – Linux rhel / centos, configure network bridge between two interfaces to communicate with secondary host (Using VMware)

Need
I have two Linux hosts. Host1 and Host2.
I need to be able to communicate with host2 on our network through a bridge built on Host1.

Problem:
br0 is pingable, but when ens161 and ens192 are both enabled, and I try to ping the br0 on Host1 I get “(!DUP)”s. I think this is caused by vmware’s pernicious mode on both port networks assigned to each vm. The main problem is, I cannot ping Host2 at all from the network.

Environment

Host1 (RHEL 7.9) has two interfaces. Want to use network-scripts to configure the interfaces.

  • ens161 – network connection to LAN – Uses vmware port-network-01
  • ens192 – network connection to host2 – Uses vmware port-network-02

Host2 (Ubuntu 18.04) has one interfaces. Want to use netplan for this interface.

  • ens160 – network connection to host1 – Uses vmware port-network-02

Host1 has the bridge set up called “br0”, and has network-script configured to give it an ip interface
Note these are virtual machines living on ESXi’s, their nics are connected to vmware port networks, each of which are on seperate vlans. Port networks are connected to a distributed switch.

Here are my network scripts

Host01 – br0

TYPE="Bridge"
DEVICE=br0
BOOTPROTO=static
ONBOOT=yes
NM_CONTROLLED="no"
PREFIX=22
IPADDR=10.10.10.10
NETMASK=255.255.255.0
GATEWAY=10.10.10.1

Host01 – ens161

DEVICE=ens-161
HWADDR=00:50:56:bd:9f:25
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
BRIDGE=br0

Host01 – ens192

DEVICE=ens-192
HWADDR=00:50:56:bd:b3:cd
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
BRIDGE=br0
enter code here

Here is Host2’s netplan configuration

HOST2 – ens160 (netplan yaml)

network:
    ethernets:
        ens160:
            addresses:
            - 10.10.10.11/24
            dhcp4: no
            gateway4: 10.10.10.1
    version:2

The rest below are all of Host1 the RHEL server with the bridge’s configurations:

Here is my brctl show information

bridge name     bridge id               STP enabled     interfaces
br0             8000.005056bd9f25       no              ens-161
                                                        ens-192

Here is ip -br addr show

lo               UNKNOWN        127.0.0.1/8 ::1/128
ens-161          UP             fe80::250:56ff:febd:9f25/64
ens-192          UP             fe80::250:56ff:febd:b3cd/64
br0              UP             10.10.10.10/24 fe80::250:56ff:febd:9f25/64

Here is iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
INPUT_direct  all  --  anywhere             anywhere
INPUT_ZONES_SOURCE  all  --  anywhere             anywhere
INPUT_ZONES  all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
FORWARD_direct  all  --  anywhere             anywhere
FORWARD_IN_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_IN_ZONES  all  --  anywhere             anywhere
FORWARD_OUT_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_OUT_ZONES  all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
OUTPUT_direct  all  --  anywhere             anywhere

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination
FWDI_public  all  --  anywhere             anywhere            (goto)
FWDI_public  all  --  anywhere             anywhere            (goto)
FWDI_public  all  --  anywhere             anywhere            (goto)
FWDI_public  all  --  anywhere             anywhere            (goto)

Chain FORWARD_IN_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain FORWARD_OUT_ZONES (1 references)
target     prot opt source               destination
FWDO_public  all  --  anywhere             anywhere            (goto)
FWDO_public  all  --  anywhere             anywhere            (goto)
FWDO_public  all  --  anywhere             anywhere            (goto)
FWDO_public  all  --  anywhere             anywhere            (goto)

Chain FORWARD_OUT_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain FORWARD_direct (1 references)
target     prot opt source               destination

Chain FWDI_public (4 references)
target     prot opt source               destination
FWDI_public_log  all  --  anywhere             anywhere
FWDI_public_deny  all  --  anywhere             anywhere
FWDI_public_allow  all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere

Chain FWDI_public_allow (1 references)
target     prot opt source               destination

Chain FWDI_public_deny (1 references)
target     prot opt source               destination

Chain FWDI_public_log (1 references)
target     prot opt source               destination

Chain FWDO_public (4 references)
target     prot opt source               destination
FWDO_public_log  all  --  anywhere             anywhere
FWDO_public_deny  all  --  anywhere             anywhere
FWDO_public_allow  all  --  anywhere             anywhere

Chain FWDO_public_allow (1 references)
target     prot opt source               destination

Chain FWDO_public_deny (1 references)
target     prot opt source               destination

Chain FWDO_public_log (1 references)
target     prot opt source               destination

Chain INPUT_ZONES (1 references)
target     prot opt source               destination
IN_public  all  --  anywhere             anywhere            (goto)
IN_public  all  --  anywhere             anywhere            (goto)
IN_public  all  --  anywhere             anywhere            (goto)
IN_public  all  --  anywhere             anywhere            (goto)

Chain INPUT_ZONES_SOURCE (1 references)
target     prot opt source               destination

Chain INPUT_direct (1 references)
target     prot opt source               destination

Chain IN_public (4 references)
target     prot opt source               destination
IN_public_log  all  --  anywhere             anywhere
IN_public_deny  all  --  anywhere             anywhere
IN_public_allow  all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere

Chain IN_public_allow (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh ctstate NEW,UNTRACKED

Chain IN_public_deny (1 references)
target     prot opt source               destination

Chain IN_public_log (1 references)
target     prot opt source               destination

Chain OUTPUT_direct (1 references)
target     prot opt source               destination

Trouble shooting:

  • I followed the instructions from this post. Did not seem to help. The topology is the same as mine besides the different network interface names.
    bridge network between two linux servers
  • Made sure to turn on pernicious mode and forged transmits on both port networks in vmware.
  • I stoped and disabled NetworkManager
  • I deployed a new ubuntu 18.04 system, and was able to configure the network bridge with netplan with no problems, it just worked.

Final thoughts
I know little to nothing about linux bridging, hence why I set up this lab to learn it. If I am going about this the wrong way, or not using bridges as intended, tell me. I want to make sure I understand the concepts as well as how to configure Linux bridging properly on Debian and RHEL systems.

Development of Calculus

Question: describe the differences between the Greek notion of ratios of numbers vs. ratios of magnitudes. What impact do these differences have on specific results and, in particular, theorems involving the Euclidean algorithm?

This is my first time posting a question here. Could anyone please help me? Thank you so much

Cannot declare function twice – WordPress Development Stack Exchange

I have two hooks that i am using in the code snippets plugin:

add_filter( ‘woocommerce_package_rates’, ‘businessbloomer_hide_free_shipping_for_shipping_class’, 10, 2 );

function businessbloomer_hide_free_shipping_for_shipping_class( $rates, $package ) {

$shipping_class_target = ‘1173’; // This is Deluxe Tables shipping class ID
$in_cart = false;
foreach ( WC()->cart->get_cart_contents() as $key => $values ) {
if ( $values( ‘data’ )->get_shipping_class_id() == $shipping_class_target ) {
$in_cart = true;
break;
}
}
if ( $in_cart ) {
unset( $rates(‘local_pickup:45’) ); // This is Local Pick up shipping method with ID
}
return $rates;
}

2.
add_filter( ‘woocommerce_package_rates’, ‘businessbloomer_hide_free_shipping_for_shipping_class’, 10, 2 );

function businessbloomer_hide_free_shipping_for_shipping_class( $rates, $package ) {

$shipping_class_target = ‘1750’; // This is Stag & Doe shipping class ID
$in_cart = false;
foreach ( WC()->cart->get_cart_contents() as $key => $values ) {
if ( $values( ‘data’ )->get_shipping_class_id() == $shipping_class_target ) {
$in_cart = true;
break;
}
}
if ( $in_cart ) {
unset( $rates(‘WB_Custom_WooCommerce_Shipping_Method52’) ); // This is Delivery shipping method with ID
}
return $rates;

}

If only one is activated at a time it works! But it says I cannot declare the function twice, so how do I combine these two? I have tried so many variations and nothing is working. Please help!

I cant install apps on google play store

When I try to install apps on google play store it says installing then it says download again and jus repeats I cant install apps. I tried clearing data restarting my phone and uninstalling and reinstalling google play store but it keeps happening.This is the video of it happening so you can see what im talking about

unity – recommendation for a programable FPS game for training forces

I wish to develop a training simulator for army ground forces.

Basic concept is that they can save lots of training time and budget by going through a simulator phase before the physical war-training, explicitly, learning:

  • How to cooperate with one another and improve team work
  • Learn the basics of their weapons capabilities
  • Learn the territory of interest
  • Develop and practice different tactics

All this at a low cost relative to only physical training.

Where should I start? what platforms are available that can be used for effective war-training and can be easily adapted to new maps/fighting territories and warfare equipment?

Thanks!

seo – Spam, captcha – limit Contact Us page to country where you’re doing business

I do business only in the USA, however my content is relevant in just about any region of the world. I routinely get spam via my Contact Us page, almost all of which comes from outside of the US. While I do have Captcha enabled, it obviously isn’t perfect, especially when spammers hire cheap labor to manually do their work.

So, this made me wonder, what if I limited my Contact Us page to just users coming from the USA? The rest of my site would still be available.

I’m guessing I could do this with .htaccess, but would this hurt my SEO?

air travel – Does any international airport require passengers to take a COVID when transiting?

I am not looking for a list of airports, but simply a yes/no answer, preferably with an example, so that I know whether I add this in my list of requirements to check before taking a flight that has a layover.

I am aware that:

  • some transit airports (e.g., in Russia) require passengers to do a COVID test prior to departure (i.e., before entering the transit airport), but I wonder if any require passengers to do a COVID test during transit.
  • in many (all?) cases, the COVID-19 requirements don’t come from the airport but from the country authorities. Let’s regard requirements from the country authorities as part of the airport requirements.

Response to comments:

The question below assumes that this is the case – Bernhard Döbler 2 mins ago

@BernhardDöbler no, could be optional, or only in some conditions (e.g. if the passenger shows some symptom of COVID-19). Also, I checked on IATA and didn’t see such a requirement.