How to create OAuth client ID for new ASW ec2 instance under http?

Hallo,
I installed ASW ec2 instance
with Selected Ubuntu 20, Free tier eligible
and I got instance with root like

http://ec2-NN-NN-NN-NN.eu-central-1.compute.amazonaws.com/
Code (markup):

I have installed laravel 8/vuejs app and my app using OAuth client ID
For my local server (Ubuntu 18 on my laptop) I created client key with url

http://127.0.0.1:8000
Code (markup):

But I failed to make the similar for my ASW ec2 instance : https://imgur.com/a/tIQiPAe
1) If there is a way to create OAuth…

How to create OAuth client ID for new ASW ec2 instance under http?

Mirror Create Player From Client and Change Scene

I’m very new to Mirror in Unity but I have a lot of experience in Network-programing.

I’m currently trying to create a Game, where the Player’s data is stored on the client, and can join different games (not concurrent) with his/her character. (Likely to Terraria)

So I can’t use the automatic Player creation of the default NetworkManager class. After clicking "Join/Host" in our Main-Menu I want to change to the scene the player has played in, Hosting/joining a server and create the player on the server with the specific position…

I have tried now multiple attempts to do this, but none of mine seemed to work. Am I the even possible to have the players in different scenes with ease? Where/When should I create the Player so isn’t null on the Server?

Use the backbone.js client to save custom post type meta

So I have this small piece of code that renders an array of IDs:

const selected = this.$  data.list.selected; function get_ids(input, field) {     const output = [];     for (let i=0; i < input.length ; ++i)         output.push(input[i][field]);     return output; } const result = get_ids(selected, "id"); 

Now inside my JS, I want to be able to use the backbone.js API that WordPress provides to save it to my employee custom post type as a post meta.

So let’s say that my result output is [343, 3532] – I want to be able to save that array as a "apps" post meta under employees.

I know examples showed that it would be something like const test = new wp.api.models.Employee().fetch and then save, but it sounds super confusing since I don’t have a specific post, and would just like to save the post meta.

Based on these examples, does anyone know how I could do that? https://developer.wordpress.org/rest-api/using-the-rest-api/backbone-javascript-client/#model-examples

Using backbone Javascript Client for menus

So I’m using the Backbone Javascript Client (https://developer.wordpress.org/rest-api/using-the-rest-api/backbone-javascript-client/) provided by WordPress and I am wanting to extend or pull in menus.

I don’t see items regarding menus there, does anyone know if you can extend backbone.js with WP to pull in menu items? All leads would be appreciated.

behavior of a Sql Server availability group listener and a jdbc client during a failover?

i have a question about the behavior of the AG listener during a failover… when the failover happens, I realize that all the connections on both primary and secondaries are closed.

if the client apps are using one of the blessed client libraries (such as microsoft jdbc > 6.0) they will then start immediately trying to reconnect to the ip addresses associated with the listener. But what happens during the 10 second period (or whatever it is) for the failover to complete? Might a client successfully get a connection, only to get a fatal error message when it tries to use it? Or is something done to ensure that no client will get a connection successfully during failover itself, so that that when a client does successfully get a connection, it is actually usable?

(Also, specifically for a java client using a recent microsoft jdbc driver, does it try only once per getConnection() call? Or will it keep polling until a logintimeout is hit?)

I realize i’m mixing questions about server behavior with client library behavior but I’m trying to understand the whole scenario; thanks.

How I can ensure that a link sent via email is opened only via user clicks from a mail client and not by bots?

In my web application I generate links in the following format:

https://example.com/^token^ 

Each link according to my specs is sent via email and should not allow robots to scrape it. In order to avoid visits via robot I placed the following robots.txt:

User-agent: * Disallow: / 

And on page’s <header></header> tag I placed:

    <meta name="robots" content="noindex">     <meta name="robots" content="nofollow"> 

The question is how I can ensure that a link is opened only when user has clicked upon it and not a random bot/spider scrapes it? Does the length and the randomness of the ^token^ in url factor into bot visit prevention?

In my application the ^token^ is a cryptographically-random 5 byte value that once generates is hex-econded. So in my case, if the token length takes a significant role on non-scrappines of this link, which is the recommended length of the random token?

My application is in Laravel and I use nginx and php-fpm combo in order to serve the content to the browser.

How does an FPS like Overwatch have client time run ahead of the server?

In watching the GDC talk about Overwatch netcode, it mentions that the client is always ahead of the server, that the "current tick" on the server is behind that of the client.

From their explanation this makes sense. If the client is ahead of the server, then by the time the client messages arrive at the server, the server will have caught up and can handle them when it wants them.

But how does this get setup to begin with? The client connects to the server, the server starts a game… does the client jump ahead of it’s own accord? (Server says "game is starting, I’m at tick 0", and the client is like "okay, well, based on my ping I’m going to be tick 20 then")

  • If the server is in charge of what’s going on in the game, how does the client even know what’s going on in that future tick? I would assume constant extrapolation of game events from the last server update would be bad. Having the client in the past to allow it to interpolate between server updates would make a lot more sense to me.

  • Or am I wrong in assuming that client and server tick times need to remain in sync, and it is instead more loosely based on server updates and the number of client events that happened since that update was received, rather than the client actually caring about what tick they’re on compared to the server?

It’s the time/tick synchronization, despite one or the other having to be in the past, that I can’t wrap my head around…

how to start the native GUI client of pgadmin4?

I don’t like web-based GUI, so I only installed the pgadmin4-desktop package for my Kubuntu 20.04, instead of pgadmin4-web and pgadmin4.

According to the offical web page of pgAdmin4,

A desktop runtime written in C++ with Qt allows it to run standalone for individual users…

I’m expecting that a native qt GUI app can be run, and acts as a pg-client, but I can NOT find it out anywhere, neither startting-menu nor the DESTDIR of the installation, i.e /usr/pgadmin4/bin.

There is only one program file /usr/pgadmin4/bin/pgadmin4, but running it still open a browser window to serve as a pg-client, instead of any NATIVE app!

Would please anyone tell me that:

Is the so called "A desktop runtime written in C++ with Qt" meaning a native GUI client app? or only a management server that resides on the system tray?

If a native GUI client really exists, where to find it or how to start it?

Thanks a lot!

Pls forgive my ugly English.