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.

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:
        duplicate_values(originator_route)

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 = Route.new(null)
        previous_route.origin = current_node
        previous_route.nodes.append(previous_route.origin)
        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 = Route.new(previous_route)    # Copy the previous route to make the new route
            routes.append(working_route)
            working_route.destination = LinkDestination(link, current_node)
            working_route.totaldV += link.dV
            working_route.totalt += link.t
            working_route.links.append(link)
            working_route.nodes.append(working_route.destination)
            traverse(working_route.destination, working_route)
    DisplayRoutes()
    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;
    server_name mydomain.com;

    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
    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!

NETWORK INFO:

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

Shared/Reseller Features

  • FREE SSL
  • 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
  • Coupon: WISECPBRANDED
  • (ORDER)

Unbranded Owned

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

Lifetime License

  • Unlimited Accounts
  • Self-Hosted
  • Free lifetime support & updates
  • No “Powered by WISECP” linkback
  • $450 one-time
  • Coupon: WISECPLIFETIME
  • (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!

raindog308

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.

web hosting – SolidCP – Install successful, but now getting issues with application pool not starting – service unavailable

Here´s my basic setup:

  • Windows Server 2012 2R
  • SQL Server 2016

I’ve managed to install SolidCP on the server. Had a few issues during installation, but solved it. Also completed the extra setting on the application pool and on the website configuration, as the video showed. But now, I can’t access the portal yet (http://localhost:9001). The application pools won’t start the pools for all SolidCP applications

And the error log messages (WAS) I’m getting are:
5022 – The Windows Process Activation Service failed to create a worker process for the application pool ‘SolidCP Portal Pool’. The data field contains the error number.
5002 – Application pool ‘SolidCP Portal Pool’ is being automatically disabled due to a series of failures in the process(es) serving that application pool.

I’ve consulted the solidCP forum and double checked that the SolidCP users (SCPPortal, SCPEnterprise, SCPServer) on the server are member of the group IIS_IUSRS

Anyone has any idea on what I’m missing out?

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
thanks

Tier.Net VPS Hosting: DDoS Protection – Multiple Datacenter Options – Starting @ Only $7.50/month!

[CENTER]Tier.Net
[B]Businesses from all over the world depend on us for fast and reliable hosting services…. | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1845345&goto=newpost

[WTS] QHoster.com: Linux OpenVZ Budget VPS starting from $5.83 per month!

NEW! Budget Linux VPS as low as $5.83 per month:

Locations:
Germany, Switzerland, Netherlands, Bulgaria (100 Gbps DDoS Protection), USA – Miami (FL), USA – New York (NY), Canada (480 Gbps DDoS Protection).

************************************************** ********************************
Here is the promo:

XMASQH25OFFHOST -25% SHARED RESELLER VPS AND COMODO POSITIVE SSL –
Recurring 2 more times!

—-
XMASQH12OFFDEDI -12% – any billing cycle, Lifetime recurring discount on
ALL SWITZERLAND AND USA DEDICATED SERVERS!

Please note the discount is visible on the Review & Checkout step.
And Comodo Positive SSL certificate!
************************************************** ********************************
Linux OpenVZ (Budget) VPS (LE)

OpenVZ Light Edition VPS
1 GB Dedicated memory
20 GB Disk space
500 GB Bandwidth
Full Root access
1 IP address
CentOS/Debian/Ubuntu
$5.83 PER MONTH
(applies to annual payment)
ORDER NOW

Need another Linux VPS? Check here: https://click.pstmrk.it/2ts/www.QHos…Awe/lF-7kUdPWS

Desiderate Instant Managed VPS? Here you are: http://www.qhoster.com/cpanel-managed-vps.html

Current promotions:

***********************************************
Discounts for all hosting and all VPS plans and Comodo Positive SSL certificate:

QHSPRING33
Recurring 33% OFF!
(applies to any billing cycle)

***********************************************
QHoster payment options:

WebMoney, Perfect Money, Bitcoin, NETELLER, Payza (formerly Alertpay), Skrill (formerly Moneybookers), Litecoin, Darkcoin (DRK), SolidTrust Pay, cashU, Ukash, Payeer, OKPAY, EgoPay, paysafecard, Alipay, MoneyGram, Western Union, SOFORT Banking, QIWI, Alfa Click, Sberbank Rossii, Promsvyazbank (PSB), Svyaznoy, Przelewy24, Interac, Boleto Bancario, MercadoPago, PagSeguro, OneCard, DaoPay, Fortumo.

Learn More about Payment options here:
http://www.qhoster.com/payment-methods.html

Windows 7 & 2003/2008 Server in Minutes
Choose your payment option, choose your server location and get your best Windows VPS!

Instant Setup! Ready in 20 minutes!

Visit QHoster now.

cPanel Shared Webhosting
CR2QS5B85D30% OFF!
Applies to all shared and VPS plans, 3+ month period of order!

VPS and Dedicated Server
Personal voucher for $50
GHR8WY5P4P
(applies to annual billing cycles)

Windows RDP VPS
– Managed & Scalable – Instant RDP VPS Upgrades – CPU, RAM etc.
– Full Adminstrator Access to Your Windows RDP VPS
– Use Windows Server & 7 Remotely Like Your Desktop Computer
– Choice: UK,USA,Canada,France,Germany,Netherlands,Switzerla nd

Windows VPS RDP (1)
2 CPU Cores (Intel Xeon)
1.5 GB Dedicated Memory
60 GB Disk Space
1 TB Monthly Bandwidth
1 GBit/s Internet Port
1 IP (additional 64 IPs)
Price $19.96/mo
ORDER HERE

Windows VPS RDP (2)
3 CPU Cores (Intel Xeon)
3 GB Dedicated Memory
120 GB Disk Space
2 TB Monthly Bandwidth
1 GBit/s Internet Port
1 IP (additional 64 IPs)
Price $39.92/mo
ORDER HERE

Windows VPS RDP (3)
4 CPU Cores (Intel Xeon)
4.5 GB Dedicated Memory
180 GB Disk Space
3 TB Monthly Bandwidth
1 GBit/s Internet Port
1 IP (additional 64 IPs)
Price $59.88/mo
ORDER HERE

Windows KVM Servers

Windows RDP VPS – KVM 1
1.5 GB Dedicated memory
60 GB Disk space
1000 GB Bandwidth
Administrator RDP access
1 IP address
Windows Server 2008/2012/2016
$24.95/m
ORDER HERE

Windows RDP VPS – KVM 2
3 GB Dedicated memory
120 GB Disk space
2000 GB Bandwidth
Administrator RDP access
1 IP address
Windows Server 2008/2012/2016
$49.90/m
ORDER HERE

Have questions?
Feel free to contact us:
https://www.qhoster.com/clients/subm…tep=2&deptid=1

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

software recommendation – Starting with gpg under macOS

I’m a Linux/Windows user but in the near future, I might have to support users running macOS on questions related to file encryption/decryption using GPG. I have to provide support without having my own macOS to try… I don’t need to know the details, but I would appreciate it if someone could throw a few program names to help me get started on my reading. Of course, Google returned some options, but I can’t tell based on a web page if that is “the” most common way for macOS users.

My understanding so far is that within macOS’ terminal, I can run the gpg command which is part of OpenPGP. Is this standard on any “recent” Mac or does a specific software package have to be installed?

I came across the GPG Suite which is commercial with a 30-day trial. It seems that this is gpg with a GUI interface, GPG keychain, etc. How is this option? Is it common? It seems equivalent in functionality to the Gpg4win for Windows.

So far, these are the two options for users that I have found. Have I missed anything? And would this be the recommended options for GPG under macOS or am I completely off? Thank you!