finite automata – NFA designing for strings starting with $01$

The question was asked

Construct an NFA with set of all strings that start with $10$.

The solution provided to me is
enter image description here

But my question is what if the automaton receives an input $0$ at the starting? Also there is no option for $q_1$ to transit after receiving $1$. So I think the solution should be

enter image description here

Please correct me if I am wrong.

dnd 5e – Can a homebrew classes starting hit points be higher than it’s hit dice?

Homebrew doesn’t have rules

Even if every single class that already exists follows an exact pattern that’s never been broken, you don’t have to do the same thing.

There just aren’t any rules for this, you can make whatever you want, however fantastical, overpowered, or complicated as you like. It may differ from how the system usually works, and what you should be doing then is justifying that choice.

If you’re going to give a class a meager two additional hit points, I would hope there is a good reason. It’s a small change and one people are likely not to even notice given the way every single other class is structured. If this is a vitally important aspect of the homebrew, it should be emphasized in the text and the change should be made clear.

In all honesty, I see this type of change adding confusion and for very little gain (+2 HP is very little). That doesn’t mean you can’t do it anyway, you can do anything you want, but you should have justifications for when you depart from the usual format of the system.

remote control – Starting apps remotely via simple network protocols

I’m working on a project where I have several Android devices with certain apps installed on them that need to be started remotely via WiFi (or possibly Bluetooth) in response to a physical event detected by various sensors.

Does anyone if there is an app that can start other apps upon receiving some kind of network command? The protocol involved needs to be fairly simple as the commands are sent by a microcontroller-based system with no OS, so I would need to implement anything from scratch. UDP or simple TCP (i.e. HTTP) is fine, but I want to avoid having to deal with things like SSH or VNC.

I’ve found an app called ‘Remote App Launch’ which uses HTTP and does exactly what I need, but the issue is that it has quite a delay (randomly varying from around 1 to 10 seconds) when starting an app (especially with the screen off).

I guess it would be possible to write a dedicated app for this, but I don’t have any kind of experience with developing for mobile devices.

java – Starting Wso2ApimWorker – /opt/wso2/wso2am-analytics-3.2.0/bin/ line 68: /opt/wso2/wso2am-analytics-3.2…ão negada

Tenho uma instalação do wso2am-analytics-3.2.0 que descompactei em /opt/wso2/wso2am-analytics-3.2.0, apois isto criei os serviços: wso2ApimWorker.service e wso2ApimDashboard.service da seguinte forma:



ExecStart=/opt/wso2/wso2am-analytics-3.2.0/bin/ start
ExecStop=/opt/wso2/wso2am-analytics-3.2.0/bin/ stop 
ExecReload=/opt/wso2/wso2am-analytics-3.2.0/bin/ reload

#ExecStop=/bin/kill -TERM $MAINPID




ExecStart=/opt/wso2/wso2am-analytics-3.2.0/bin/ start
ExecStop=/opt/wso2/wso2am-analytics-3.2.0/bin/ stop 
ExecReload=/opt/wso2/wso2am-analytics-3.2.0/bin/ reload

#ExecStop=/bin/kill -TERM $MAINPID


**Mas ao inicializar os serviços me retornam o seguinte erro:**

Mai 11 23:04:28 wso2service systemd(1): Starting Wso2ApimWorker...
Mai 11 23:04:28 wso2service /opt/wso2/wso2am-analytics-3.2.0/bin/ line 68: /opt/wso2/wso2am-analytics-3.2…ão negada
Mai 11 23:04:28 wso2service systemd(1): wso2ApimWorker.service: control process exited, code=exited status=126
Mai 11 23:04:28 wso2service systemd(1): Failed to start Wso2ApimWorker.
Mai 11 23:04:28 wso2service systemd(1): Unit wso2ApimWorker.service entered failed state.
Mai 11 23:04:28 wso2service systemd(1): wso2ApimWorker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Sendo que já dei permissão usando: **sudo chmod +x /opt/wso2/wso2am-analytics-3.2.0/bin/ e sudo chmod a+x /opt/wso2/wso2am-analytics-3.2.0/bin/ **

Estou com o um serviço chamado wso2service inicializando o e funciona normal:

ExecStart=/opt/wso2/wso2am-3.2.0/bin/ start
ExecStop=/opt/wso2/wso2am-3.2.0/bin/ stop
ExecReload=/opt/wso2/wso2am-3.2.0/bin/ restart
#ExecStop=/bin/kill -TERM $MAINPID


(wso2service@wso2service wso2am-analytics-3.2.0)$ sudo service wso2service status
Redirecting to /bin/systemctl status wso2service.service
● wso2service.service – Wso2server
Loaded: loaded (/etc/systemd/system/wso2service.service; enabled; vendor preset: disabled)
Active: active (exited) since Qui 2021-04-29 13:23:46 -03; 1 weeks 5 days ago
Process: 1036 ExecStart=/opt/wso2/wso2am-3.2.0/bin/ start (code=exited, status=0/SUCCESS)
Main PID: 1036 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/wso2service.service
├─1113 sh /opt/wso2/wso2am-3.2.0/bin/
└─1540 /usr/lib/jvm/java-11-openjdk- -Xbootclasspath/a: -Xms256m -Xmx1024m -XX:+HeapDumpOnOut…

Abr 29 13:23:46 wso2service systemd(1): Started Wso2server.

Alguma dica?

godot – Traversing an acyclic binary tree to construct paths from a given starting node, but the paths come out wrong

The tree is an acyclic binary tree. It’s composed of node objects that have a list of connections to link objects (at most 3), and link objects that have a list of connections to node objects (always 2). I am trying to construct a list of possible paths to other nodes that can be reached given a fuel budget and a fuel cost on each link. What it is supposed to do is go through each non-backtracking connection of a node, and spawn a new route and thread to investigate that, leaving the current one to end at that node and thus create a list of routes to every node in the reachable area. When executed, the list of end destinations are valid but many of the paths that are constructed to get to them are wrong, going down other branches in the tree that are extraneous or entirely outside of the reachable area bounded by the fuel budget as well as jumping between nodes that aren’t directly connected. There seems to be some pattern in the errors, when going down from the root of some branches of the tree the path goes down every offshoot in order first instead of going in a straight line, and when going up the tree the path tends to go further out and make triangle shapes, often landing somewhere other than the listed destination. I have already checked the link and node connections themselves to see if they are assigned properly, and they are. What am I getting wrong?

Route class definition

var origin:Node
var destination:Node
var totaldV:float
var totalt:float
var dVBudget:float
var tBudget:float
var tdVRatio:float
var links:Array
var nodes:Array

func duplicate_values(originator:Route):
    origin = originator.origin
    destination = originator.destination
    totaldV = originator.totaldV
    totalt = originator.totalt
    dVBudget = originator.dVBudget
    tBudget = originator.tBudget
    tdVRatio = originator.tdVRatio
    nodes = originator.nodes
    links = originator.links

func _init(originator_route):
    if originator_route != null:

Tree traversal algorithm

var routes:Array
onready var root = get_node("..")

func traverse(current_node:Node, previous_route:Route):
    if previous_route == null:                             # Starts off the recursion by providing an initial node
        previous_route =
        previous_route.origin = current_node
        previous_route.dVBudget = 2000
        previous_route.totaldV = 0
    for link in current_node.connections:
        if (previous_route.totaldV + link.dV < previous_route.dVBudget && 
        !IsBacktracking(previous_route, LinkDestination(link, current_node))):   # If there is enough fuel and the link isn't backtracking, go through it.
            var working_route:Route =    # Copy the previous route to make the new route
            working_route.destination = LinkDestination(link, current_node)
            working_route.totaldV += link.dV
            working_route.totalt += link.t
            traverse(working_route.destination, working_route)
    root.get_parent().pathSelectionFlag = true   # UI control boolean

func IsBacktracking(route:Route, destinationNode:Node) -> bool:
    for nodeI in route.nodes:
        if (destinationNode == nodeI):
            return true
    return false

func LinkDestination(link:Node, originNode:Node) -> Node:    # Finds the node on the other side of a link
    for nodeI in link.connections:
        if (nodeI != originNode):
            return nodeI
    return originNode

node.js – Serving multiple nodejs sites with nginx which ports should I be starting apps on

I have multiple nodejs apps from different domains that I am serving from the same server with nginx. I am currently starting each app on a different port say 5000, 5001, 5002 ect. Then using nginx proxy_pass to serve them from the ssl port 443 like so:

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    ssl_certificate /etc/letsencrypt/live/;
    ssl_certificate_key /etc/letsencrypt/live/;
    ssl_protocols TLSv1.1 TLSv1.2;
    include snippets/ssl-params.conf;

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-NginX-Proxy true;
        proxy_pass http://localhost:5000/;
        proxy_ssl_session_reuse off;
        proxy_set_header Host $http_host;
        proxy_cache_bypass $http_upgrade;
        proxy_redirect off;

And I am setting up a block just like this for each domain/app.

I have a couple questions I guess:

  1. What ports should I be starting the apps on so I can avoid conflicts. Are there standard ports that I should be using?
  2. Is this the way I should be doing this or is there a better way to go about this.

I read that ports above 49151 are for arbitrary uses. Should I be starting my apps in those ports above 49151?

Any guidance would be appreciated here. I am a web developer and don’t have a lot of experience with the server side of things.

Limitless Offers Shared Hosting Starting at Just $3/Year in Germany, Chicago, or Singapore!

Limitless Hosting is back! We last had an offer for them on during Black Friday 2020.  If you’re looking for cheap shared hosting, Limitless Hosting has you covered:

  • $3/year will get you DirectAdmin shared hosting in Europe, Singapore or the USA
  • Or get reseller hosting with 30 accounts for $24/year

They are registered in UK (12610439). Their Terms of Service is available on their web site (AUP, Privacy Policy). They accept PayPal, Credit/Debit Card, PerfectMoney, Bitcoin, and Skrill.

Here’s a little about Limitless Hosting in their own words:

Limitless Hosting is on a mission to help people in developing their startups, small and medium size businesses, and big corporate to run their online business. We have been changing continually on technology front. But our commitment to support customers never changed. We have great plans at Limitless Hosting which allow you to choose a suitable package per your blog or website’s need.

The LEB community thrives on reports from our readers about the companies they patronize, so please comment below about your experience with Limitless Hosting.

Now read more to see the offers!


  • Location: Nuremberg, Germany (DE)
  • Location: Chicago, IL (US)
    • Test IPv4:
  • Location: Singapore

Shared/Reseller Features

  • One-Click Web Installer (Softaculous)
  • Remote Backups
  • Instant Setup
  • CloudLinux
  • DirectAdmin Control Panel
  • Limitless Email Accounts
  • Limitless FTP Accounts
  • SpamAssassin
  • Live Support

WISECP Licenses

WISECP is a next generation hosting and digital solution platform. It includes a client area, admin area and a website interface. It is perfect for web hosting, domain, software and license providers. With WISECP, invoicing, accounting (cash, income, expense) records, client management, product management, support services and other management can be carried out easily.

Branded Owned

  • Unlimited Accounts
  • Self-Hosted
  • 1-year free support & updates
  • “Powered by WISECP” linkback
  • $170 one-time
  • (ORDER)

Unbranded Owned

  • Unlimited Accounts
  • Self-Hosted
  • 1-year free support & updates
  • No “Powered by WISECP” linkback
  • $200 one-time
  • (ORDER)

Lifetime License

  • Unlimited Accounts
  • Self-Hosted
  • Free lifetime support & updates
  • No “Powered by WISECP” linkback
  • $450 one-time
  • (ORDER)

Optionally, support and updates can be always renewed at $38/year for owned license.

Please let us know if you have any questions/comments and enjoy!


I’m Andrew, techno polymath and long-time LowEndTalk community Moderator. My technical interests include all things Unix, perl, python, shell scripting, and relational database systems. I enjoy writing technical articles here on LowEndBox to help people get more out of their VPSes.

magento2 – Magento 2.2.6 Search only search from starting word

i am facing issue with magento 2.2.6 Search there is some products number in my website
e.g 30330, 303090, 30901, 450905 etc
when i enter 303 in my search the result show up correctly but when i enter 090 in the search bar ther result show up with this “Your search returned no results” how can i solve this issue also how can i do my search in ascoding order

cmd.exe – Hide PsExec window when starting from cmd

I’m executing a command as another user on the same machine using PsExec from cmd like this:

PsExec.exe -u myuser -p mypass timeout 4

When I do so, a new cmd window opens and stays open until the command passed to PsExec has completed. How do I prevent this new window from opening or showing?

The closest I got was with the following, but this is still unsatisfactory, as the new window is visible for a few moments before minimizing:

PsExec.exe -u myuser -p mypass cmd.exe /c "start /min timeout 4"

The only other question I found regarding this was starting from PowerShell, but I’m in the standard cmd. I’m on Windows 10, PsExec v2.2.