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.

As a contractor how do I work on multiple client networks without data leakage?

I am a contractor who does development for more than one client. Let’s call them Client A, Client B, and Client X.
I use my own laptop for all 3 clients.
Throughout the day, I have to work on and respond to emails and instant messages about projects for all 3 clients.
In order to work on Client X’s project, I must be connected to their VPN.
Client X performs SSL deep inspection on the traffic on their network. (I get errors from sites/apps that enforce key pinning)

I’m worried that information about Client A and Client B, (not to mention my own sensitive information) might be exposed to Client X. How can I prevent this, but still maintain my ability to communicate with A and B while working on X’s network?

I’ve tried giving each client its own VM on my machine, but the hefty resource requirements of the software I have to use (IDE) makes this prohibitively slow, to say nothing of the licensing difficulties.

Why Signal doesn’t have web client?

I’ve read about E2EE (end to end encryption) of Signal in web clients on a Signal Community discussion forum, and wonder why they say that the browser is insecure for E2EE and native apps are secure.

I think the security issues for clients are the same. It can be harder in various systems based on their security polices, but all of the clients are prone to various attack surfaces like MITM, viruses and rats and other malware. And something more important they emphasise is the delivery for javascript files, but doesn’t that use HTTPS? I guess if anyone could break the HTTPS security they can do anything more dangerous than what we think about.

Actually, we want to develop some chat service like signal with a web client, but this article made us confused. Should we ship a web client or not? Please explain this.

Common Client instead Many of them [closed]

I didn’t find any Appropriate place in stackexchange to ask my question. so sorry if my question is not exactly for this place. I use windows 10 and for gaming I have to use a lot of clients like Steam, origin, Epic ,… . Is any way for centalizing this clients? for eaxmple one common client instead of all of this or some apps to help? working and finding games in many clients are not easy work for me. thanks in advance