4th gurps – Can I aim at a specific location with a ranged weapon attack?

A few sessions in our campaign and someone noticed that the location rules for shots are in the Melee Attack Options section of the rules:

Basic campaigns, p. 369:
Typing location
It is assumed that you are attacking the center of gravity of the target, unless otherwise indicated …

This prompted a small discussion on whether these rules are actually applicable to ranged attacks, as there was no solid reference to this in the book.

After a quick google search, I only returned secondary comments in unrelated discussions, and my own reading of the attack rules in Basic campaigns turned out nothing remarkable, I decided to put it to the wealth of knowledge here.


Can a character perform a ranged attack against a specific location? like the eyes – and as such can they buy the attack penalties for such a maneuver with the targeted attack technique?

NGINX does not correctly reverse proxy web application requests to their relative location

I have two web applications running on my home server, one on port 7001 and the other on port 3578.

Both of these apps have REST API routes, all of which start with /api.

My NGINX configuration is as follows for the two location blocks:

location /deals/ {
    include /config/nginx/proxy.conf;
    proxy_cache_bypass $http_upgrade;
    proxy_pass http://192.168.1.65:7001/;
    proxy_redirect off;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Server $host;
}

location /speed/ {
    include /config/nginx/proxy.conf;
    proxy_cache_bypass $http_upgrade;
    proxy_pass http://192.168.1.65:3578/;
    proxy_redirect off;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Server $host;
}

This is the result of an entire afternoon of Google search and around search …

192.168.1.65 is the home network IP address of my home server.

The problem what i'm faced with is that when these web apps make API calls, they don't make the calls relative to their locations (new proxies), but rather from the domain url .

When I navigate to https://my-domain.com/deals and https://my-domain.com/speed, I can see my web applications respectively.

BUT data is never loaded because they both call my-domain.com/api instead of my-domain.com/deals/api or my-domain.com/speed/api. I can see it in the network tab of Chrome developer tools, both return 404.

When I navigate to 192.168.1.65:7001, I can see my web applications and data loaded correctly.

When I manually type in the address bar https://my-domain.com/speed/api/example, I can see that it can respond correctly to the GET request with a status code 200.

How can I get them to make calls from their respective locations?

Turn on location in background on Samsung M20?

Is there a way to allow specific apps to access the (coarse) location of the device when the location service is disabled?

It seems that on Samsung M20 with Android 10, the "location" button in the status bar (GPS location) must be activated to allow any access to the location.

On Honor 7 with Android 5, for example, it was possible for apps with location permission to access the rough location without GPS enabled, thus saving a lot of battery when the precise location doesn’t Is not required.

Can this also be done on Android 10?

8.1 oreo – Why are the GPS location and Google location services confused?

I'm setting up a new phone for a friend. It is a cheap prepaid phone (Simple mobile TCL A1), so it lacks some features that I am used to, because I am used to custom ROMs. However, I noticed that Android Oreo bundles all of the location services into one high-precision Google sharing location. And then harass you to death until you turn it on and give the mothership that it is serving personal data. Looking around in the location settings, there is only one slider, and if I activate it, the buzz will appear. If I do not agree, the cursor turns off. On other versions of Android, you can turn on localization and leave "high-precision localization" (which is a two-way part of local Wi-Fi networks and Google’s analysis) turned off.

How can I turn off the nagging warning and turn on GPS location?

This user is a previously exclusive iPhone user, and this will be their first experience on Android. I prefer not to have it full of random annoying popups for them to click.

reactjs – determining the distance between the user location and each truck in a range of truck locations

I am developing a React application to track food trucks, for which the Github repo can be found here: https://github.com/jevoncochran/Food-Truck-TrackR. I am trying to write code to retrieve the distance from the location of a user to each truck in an array of food trucks. I use the Google Distance Matrix API for this. As soon as the customer dashboard component (DinerDash.js) is rendered, I have the following function executed in a useEffect hook to calculate the distances:

const getTruckDistance = () => {
        props.trucks.forEach((truck) => {
            props.getTruckDistances(props.location, truck.current_location);
            })
    }

useEffect(() => {
            getTruckDistance();
    }, (props.trucks))

props.trucks and props.location are recovered from the redux state.

This is the action that is sent when getTruckDistance execute in the useEffect hook:

export const getTruckDistances = (userLocation, truckLocation) => dispatch => {
    dispatch({ type: CALCULATE_TRUCK_DISTANCE_START })
        axios.get(`https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=${userLocation}&destinations=${truckLocation}&departure_time=now&key=${GOOGLE_API_KEY}`)
            .then(res => {
                console.log(res);
                dispatch({ type: CALCULATE_TRUCK_DISTANCE_SUCCESS, payload: res.data.rows(0).elements(0).distance.text })
            })
            .catch(err => console.log(err))
}

Here's how this action should update the redux state:

case CALCULATE_TRUCK_DISTANCE_START:
            return {
                ...state,
                isLoading: true
            }
        case CALCULATE_TRUCK_DISTANCE_SUCCESS:
            return {
                ...state,
                isLoading: false,
                truckDistanceArr: (...state.truckDistanceArr, action.payload)
            }

The idea here is to run getTruckDistances for each truck in the range of redux food trucks. Next, to store the distance that returns to the redux state in an array called truckDistanceArr. I don't know if this is the best way to do it. In any case, it does not work. I get an error that state.truckDistanceArr is not iterable (see the image below). Can anyone help me get from here? Even if there is a better way to accomplish this, I want to be able to return all of the trucks to props.trucks with their respective distances calculated from the location of the props. This turns out to be quite a challenge.enter description of image here

Looking for location targeting ad server software

Hello,

If you are looking for a video ad server, I recommend that you check out AdPlayer.Pro among other options. It is powered by an internal HTML5 video ad player, which complies with VAST, VPAID, Google IMA ad standards and InStream and Outstream ad formats. AdPlayer.Pro certainly offers full support for location targeting as well as a wide range of other useful features.

I hope you find this useful.

wi fi – detect the house without activated location

I would like my phone to detect if I am at home and then deactivate the lock screen. My first idea was to use the smart unlock feature, but I don't have a Bluetooth device connected at home to use it as a trusted device and I don't feel comfortable to allow location on my phone, so I can't use trusted locations.

My next idea was to use Tasker to check if my WiFi is connected and then automatically unlock the phone for me. No luck: to verify that the connected Android WiFi requires location, it will not work either.

I am now considering two options:
The first option would be to have a Bluetooth device like an Arduino with a Bluetooth shield or an ESP32 which automatically connects to my phone and then does nothing except to stay connected. As I am not an expert in bluetooth, I do not know if this is possible or if I will experience session timeouts.
The second option is: I recently ordered a Samsung Smartthings hub to automate my home. Could it be that the smartthings hub discovers my smartphone and signals that it is at home? Or maybe buy a smartthings arrival sensor key pendant to tell the hub that I'm present.

What do you think, how can I make sure my phone saves being at home with no location enabled?

Thank you for your help!

postgresql – Unable to start WAL streaming, replication location is active

I want to configure replication between two of my databases.

One is an Aurora database in PG 10 editor, and the other is an RDS database in PG 10.

But I am facing a problem, I have 500 GB of data to transfer, so I add a table one by one to the replication and I wait for the status to be ready before I add another.

But after a while I have this error: ERROR: terminating logical replication worker due to timeout subscriber side. And the worker cannot restart because when he tries to restart, the following error appears in the logs: ERROR: could not start WAL streaming: ERROR: replication slot "xxx" is active for PID 25860

After that, the WAL file continues to grow in the publisher's database and the LSN does not move anymore.

geolocation – How does Android get the coarse location?

It is really up to the developer to implement the location service. The full description is available on the official Android developer site (as captured on September 24, 2010)

The graphic about 1/3 at the bottom of the page is useful enough to see what a typical application might do, but again, it depends entirely on the developer of the application. The types of location services are:

  • Cached patch
  • Cell id
  • Wireless
  • GPS
  • Model location

If the app only requests permission for a coarse location, it will not use GPS to determine the location.

To answer your questions:

  1. It depends on the application developer, but in most cases the sequence will be cached, Cell-ID, WiFi, GPS, in that order.
  2. Yes, after acquiring the tower IDs or SSIDs of the WiFi signals, this data is transmitted to Google to determine an approximate location.
  3. No, Google has done something really smart here. Google has its own database of cell phone tower locations and does not require interaction with the carrier to determine the location of the tower.

An article by Francisco Kattan on "Dynamic Cell-ID" contains some details. The short version is that when you use an app like Google Maps, the app returns the current cell identification information with your current GPS position. In this way, Google gets a very good sampling of signal strengths in various places and is able to create a very rich database.