How do I proxy a docker container with nginx running on the host?

I have nginx running on the host, and a program I want to proxy running in a docker container. How do I configure nginx to redirect traffic from a specific subdomain to that container? I can’t find any examples for that setup, only both on the host or both in docker containers. I’ve used proxy_pass before, but only for both on the host.

Error when running C++ on VSCode using CodeRunner, “g++: error: unable to locate xcodebuild”

I’m a beginner so I don’t know ANYTHING about setting path or what path is or how config files work with VSCode.

Can’t run C++ on VSCode using CodeRunner extension, error telling me something about Xcode path and what not and what I have to do. Please look at the error message and help me out, I have no idea what to do. I reinstalled xcode. I REALLY appreciate anyone who can walk me through with baby steps.

[Running] cd "/Users/shahbhuiyan/Desktop/CIS 3100/" && g++ functions.cpp -o functions && "/Users/shahbhuiyan/Desktop/CIS 3100/"functions dyld: Symbol not found: _OBJC_IVAR_$  _NSTextViewIvars.sharedData   Referenced from: /Applications/   Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit  in /Applications/ g++: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! g++: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch   

I’m just literally trying to do

#include <iostream> int main() {     std::cout << "Hello World" } 

as a basic test to see if it works.. it doesn’t. I get this damn issue every time. Please help out with that the g++ error at the bottom

Finding recurrence relation for running time of an algorithm

I am pretty new to this, consider the following algorithm:

Calc_a(n):     if n ==1: return 1     else:     sum = 0     for i=1 to n-1:         sum = sum + calc_a(i)     return sum 

So after running this algorithm a few times I see it basically finds the n’th element in a sequence defined by this recurrence relation:

$ a_n = \sum_{i=1}^{n-1}a_i $

I need to find the recurrence relation for this algorithm running time per input. Walk me through it 🙂

Lets define running time as $ T(n)$ .
So the base case n=1 is $ O(1)$ (theta?), as we just return 1.
Then we iterate (n-1) times , each time performing addition and calling the function on the current index, this is where I get confused.
I know how to deal with loops and recursion individually, not together.

My homework specifies that I should use constants rather than asymptotic notations. Does that means I should define the running time of Calc_a(i) as some constant?

How should I go about this?

How can a person reasonably prove they’re running a full node?

I mean running themselves in a computer they control and not just fetching blockchain data from a public blockchain API or something like that.

I imagine that may be impossible, but there could at least be some operation that is trivial/fast to do with a local full node that’s difficult/slow to do with a blockchain API.

404 after running setup:di:compile, need to always run chown -R root:www-data . afterwards

I have noticed that from time to time my Magento installation shows 404 on all pages. Panic!

After doing some research I found out that running: chown -R root:www-data . in the document folder solved the problem temporarily.

Until the next day and the problem is back.

I have since then been able to recreate the problem with that if I run:

php bin/magento setup:di:compile

it crashes and requires me to run the: chown -R root:www-data . to fix the problem.

Why is this? Why do I always get these errors?

The error log shows problems with the cache folder:

`#0 /var/www/html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException(‘cache_dir “/var…’)

1 /var/www/html/vendor/colinmollenhour/cache-backend-file/File.php(87):


2 /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php(153):


3 /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php(94):

Zend_Cache::_makeBackend(‘Cm_Cache_Backen…’, Array, true, true)

4 /var/www/html/vendor/magento/framework/App/Cache/Frontend/Factory.php(156):

Zend_Cache::factory(‘Magento\Framewo…’, ‘Cm_Cache_Backen…’, Array, Array, true, true, true)

5 /var/www/html/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(38):

Magento\Framework\App\Cache\Fronte” while reading response header from upstream, client:, server: _, request: “GET / HTTP/1.1”, upstream: “fastcgi://”, host: “” ^C`

Error during running mysqldump for creating tar archive

I created mysqldump for creating tar archive but every time I received notice tar: Cowardly refusing to create an empty archive Using gzip created archive normally but with tar I can’t move forward

mysqldump –all-databases –single-transaction –quick –lock-tables=false > /var/thg/vmest/full-backup-$ (date +%F).sql | tar -czvf /var/thg/vmest/full-backup-$ (date +%F).sql.tar.gz

Prevent the android app from running if packet capture or any sniffer is installed on the phone [migrated]

I want to make my Android app secure. In some applications, if the phone has a network sniffer program installed(packet capture,ssl capture etc), the application gives an alert(Remove packet capture) and turns off. How do I add a similar security measure? What technologies should I look for ?

The app first wants me to uninstall packet sniffer program

nohup on amazon Linux Cpanel server stops running after exit [on hold]

When logged in as a non root user and executing the command below from terminal and then exit command. after I log back in; it is not running. This doesn’t happen on amazon Linux non Cpanel server

nohup php index.php ecommerce cron > results_ecom.txt 2>&1 </dev/null & 

and then exiting terminal causes process stop. I am executing this for the freelance user inside public html

nohup should keep the process running even after exit

I tail the results file after I logout then log back in and it stops outputting

Security Onion not displaying status of host running OSSEC agent in Kibana

I am deploying an instance of Security Onion to a test environment. In order to test OSSEC, I stood up an Ubuntu Linux host with assigned IP of and installed the OSSEC agent. Following configuration, I confirmed that the OSSEC agent instance was successfully added to the OSSEC server on the Security Onion instance by running

$  sudo /var/ossec/bin/agent_control -l  Wazuh agent_control. List of available agents:     ID:000, Name: user-virtual-machine (server), IP:, Active/Local     ID:002, Name: 001, IP:, Active 

Using Wireshark, I confirmed that communication was occurring as expected and that the Ubuntu host was regularly sending logs to the server.

I altered a file in /etc on the Ubuntu host which should produce an alert, and it would appear that this change was successfully flagged and an alert was successfully displayed in Squert on the Security Onion Instance.

Squert dashboard filtered on showing integrity alert

However, when I try to visualize alerts using Kibana on the Security Onion instance, my host running OSSEC does not appear as a monitored OSSEC instance at all. Only one device is listed as a monitored host, and that is my Security Onion instance.

Kibana dashboard, please note the sensor count and device count of 1

I’ve attempted to restart the Security Onion service and the host but have not been able to resolve this problem. I am new to Security Onion, so if I am fundamentally misunderstanding how this data should be displayed I apologize. Any help would be greatly appreciated.