Which hosting package is the best for 6 websites, all running on WP?

Hey WHT,

I have 6 sites that i run/plan on running and currently, and at the moment i use shared hosting on all of them with a few of dif… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1839009&goto=newpost

Why I got errors running redis in laravel app?

I need to run laravel 5 app on my local Kubuntu 18 and I need to run redis server for this app

I installed and in file /etc/redis/redis.conf I uncommented line :
requirepass foobared

in .env I modified redis config :

REDIS_HOST=http://127.0.0.1:8000  # I run app with command :  php artisan serve  
REDIS_PASSWORD=foobared
REDIS_PORT=6379 # default port

I restarted redis and check status:

$ sudo service redis status
(sudo) password for serge: 
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-02-26 13:52:09 EET; 6min ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 1545 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 1548 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
 Main PID: 1574 (redis-server)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/redis-server.service
           └─1574 /usr/bin/redis-server 127.0.0.1:6379

Feb 26 13:52:08 AtHome systemd(1): Starting Advanced key-value store...
Feb 26 13:52:09 AtHome systemd(1): redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory
Feb 26 13:52:09 AtHome systemd(1): Started Advanced key-value store.

I see that file Can’t open PID file not found above

But I have this file:

root@AtHome:/run/redis# ls -la
total 4
drwxr-sr-x  2 redis redis   60 Feb 26 14:32 .
drwxr-xr-x 38 root  root  1160 Feb 26 14:32 ..
-rw-rw----  1 redis redis    6 Feb 26 14:32 redis-server.pid
root@AtHome:/run/redis# cat redis-server.pid
22676

aand I got error on next command :

$ laravel-echo-server start
Error: The config file could not be found.

Is this errors as PID file was not found above?

In /etc/redis/redis.conf I found

pidfile /var/run/redis/redis-server.pid

When I installed the ubuntu I installed /var on separate partition, so I have in /etc/fstab :

UUID=e531d8c5-530c-4533-a949-9fd5a62e0821 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb1 during installation

UUID=23cc34a1-2be9-43b1-9c79-8e53af7bc799 /boot           ext4    defaults        0       2
# /var was on /dev/sdb5 during installation

UUID=57c14b70-da85-4c5b-be6f-45174147d987 /var            ext4    defaults        0       2

that is why /var/run/redis/redis-server.pid looks like /run/redis/redis-server.pid in my console command.
I do not know can that be key of this problem? How can it be salved ?

How can it be fixed?

In composer.json :

"laravel/framework": "5.5.*",
"predis/predis": "^1.1",

Thanks!

unity – Game not build and running to android after making a keystore?

Thanks for contributing an answer to Game Development Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

Remote access server that’s running through VPN

I’ve have a server running Ubuntu 20.04.2 LTS that I access through SSH and that is working fine. I’m trying to have the server run through a VPN, so I can change what location it will display when logging into different websites. I’ve used option B at this site: https://protonvpn.com/support/linux-vpn-setup/ and that is working as well. The problem I have is that when I activate the VPN the IP obviously change, so I can’t log in to the server via SSH anymore. How can I solve this problem?

Does running a virtual machine provide a small layer of protection against an infected host in practice

Obviously a host can modify a virtual machine in any way and has full control over it, but in practice perhaps most viruses wouldn’t have the complexity to search for virtual machines and modify them. Although simple keyloggers I assume would still remain a threat.

python – Client-server application for logging running processes

My first client-server application. It’s a simple Python script that gets a list of running processes from Server_1 and writes it to a datetime-named file on Server_2, every 5 seconds.

I am planning on refactoring this code into one or two functions, maybe one for securing the connection and one for implementing the logic.

I also know nothing about security best-practices, and I’m looking for some pointers. Any feedback on any aspect of the code is welcome.


import os
import paramiko
from time import sleep
from datetime import datetime

SERVER_1 = os.getenv('HOST_1') or ""
SERVER_1_PASS = os.getenv('PASS_1') or ""
SERVER_2 = os.getenv('HOST_2') or ""
SERVER_2_PASS = os.getenv('PASS_2') or ""

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(SERVER_1, username='root', password=SERVER_1_PASS)

ssh2 = paramiko.SSHClient()
ssh2.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh2.connect(SERVER_2, username='root', password=SERVER_2_PASS)

while True:

    now = datetime.now()
    dt_string = now.strftime("%d-%m-%YT%H:%M:%S")

    stdin, stdout, stderr = ssh.exec_command("ps -aux")

    processes = stdout.readlines()
    output = (line.strip() for line in processes)

    ftp = ssh2.open_sftp()
    try:
        file = ftp.file(dt_string, "a", -1)
        file.write('n'.join(output))
        file.flush()
        ftp.close()
    except IOError as e:
        print("Could not write to file")
        print(e)

    sleep(5)
```

big sur – Bigsur: Bluetooth mouse works after running “bluetoothd”

Why do I need to run %bluetoothd to get my Bluetooth mouse to be detected?
If I don’t do this the bluetooth connection in the taskbar just flashes blue when I move the mouse.

What I don’t understand is why my Bluetooth speaker works but my mouse doesn’t until I run this command?

Finally, how can I make this fix permanent?

edit:
Include a log:

% bluetoothd       
objc[2167]: Class PipeInfo is implemented in both /System/Library/PrivateFrameworks/WPDaemon.framework/Versions/A/WPDaemon and /usr/sbin/bluetoothd. One of the two will be used. Which one is undefined.
[bluetoothd][netPrefChanged] ###### Sharing Dictionary doesn't exist
2021-02-25 09:30:53.287 bluetoothd[2167:19352] Error: [AppleBluetoothHIDDeviceGen2][_setEventService:]Couldn't copy BD_ADDR
2021-02-25 09:30:53.287 bluetoothd[2167:19352] Error: [AppleBluetoothHIDDeviceGen2][_setEventService:]Couldn't copy BD_ADDR
2021-02-25 09:30:53.292 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.294 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.460 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.462 bluetoothd[2167:19352] SystemPowerNotifier: IORegisterForSystemPower for port 38147
2021-02-25 09:30:53.487 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.488 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.501 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.502 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.503 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.505 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:53.507 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:55.595 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:55.814 bluetoothd[2167:19352] newlyConnectedHIDDevice
2021-02-25 09:30:55.829 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:55.833 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:55.846 bluetoothd[2167:19352] [setSystemPreference] syncs returns false
2021-02-25 09:30:55.849 bluetoothd[2167:19352] [setSystemPreference] syncs returns false

algorithms – Running time of heapsort on an array sorted in decreasing/increasing order

The site here https://courses.csail.mit.edu/6.046/fall01/handouts/ps2sol.pdf mentions :

The running time of HEAPSORT on an array A of length n that is sorted in decreasing order will
be $Theta(nlg n)$.
This occurs because even though the heap will be built in linear time, every time the
max element is removed and the HEAPIFY is called it will cover the full height of the tree.

It’s the last line which I can’t understand. I tried the array A <7, 6, 5, 4, 3, 2, 1>. The first time MAX-HEAPIFY is called, the full height of the tree is covered and I get <6, 4, 5, 1, 3, 2> 7. However, the second time itself the full height of the tree is not covered and I get <5, 4, 2, 1, 3> 6, 7. How does that statement hold then?

Also I see people writing on similar lines saying each call to MAX-HEAPIFY performs full lgk operations, where k (I’m assuming) is the number of nodes in the modified heap in each iteration, thereby obtaining the summation.
$$ sum_{i=1}^{n-1}lg{(n-i)} = lgBig((n-1)!Big) = Theta(nlg{n}) $$

Can someone help me realize this. I just want to understand how MAX-HEAPIFY covers the full height of the tree each time it is called.

big sur – Taskgated process not running

I am running mac os Big Sur.

While sign-coding gdb, I killed taskgated via activity monitor expecting system to restart it. It’s one day since then and taskgated is still not running.

I checked in activity monitor and terminal ps command as well, but taskgated is not running.

I even re started my MBP, but still same result.

How can I start taskgated now?

Running usability tests with the same people that have passed it previously

I will be doing the second testing soon. The question is: Is it possible to invite to the second testing those people who passed the first testing