Can a ranged rogue effectively stand back and sneak attack opponents every turn with a ranged weapon while their allies fight on the front line?

Rogues can use ranged weapons to make sneak attacks. Also, the rogue rules state that:

You don’t need advantage on the attack roll if another enemy of the target is within 5 feet of it, that enemy isn’t incapacitated, and you don’t have disadvantage on the attack roll.

Does this mean that basically a ranged rogue can stand back and sneak attack opponents every turn as his buddies are fighting with them on the front line? Did I miss some rule about shooting into melee or does that sound pretty mighty?

Widget Drag and Drop from front end for users and rearrange order retrinving

I’m looking at front end feature, where from widget menu icons on left side, a user can drag and dropped, widgets into a default page common page and arranged in order as required by the user.

the number of widgets and the order and position and size how they are saved needs too be saved of each user and retrieved in the same order when he logs back in and displayed, like how its also in backend wp-admin dashboard

Kindly guide..

Can we use multiple framework (both front end and back end) to build a website?

I am a newbie ( HTML CSS/ zero level ) to web development and when I search the internet there are literally tonnes of web framework for both front end and backend development. Like Django, PHP, NodeJs, ReactJs, VueJs etc.

So can anyone please sort out best framework and also one of my major doubt is Can I built or use different framework simultaneously to build a website (front end and back end) OR Should I possibly learn some from above list and do my work with it ( That means we cannot use multiple language at once like Djanog PHP and Nodejs etc togther).

If we can do so , building a website with multiple framework possess any advantage or it will be fairly difficult manage..

What technologies to use for the “front end” server to safely validate requests?

Imagine that I have a server made with technologies and programming language that are not secure for some reason, such as legacy versions with known vulnerabilities or anything else that may result in giving a hacker an opportunity to forge an invalid request to access more data or internals of the system.
Now to solve the security problem instead of rewriting the core I would like to place the 2nd server in front of it. It should have libraries to be able to accept simple HTTP requests with headers, parse/generate JSON, do the validation (to ensure it passes valid JSON to the 1st server, i.e. recursively check structure, sizes and encodings) and so be quick, simple and safe enough to make is possible to rarely update it and use any unsafe protocol for easier communication with the 1st server.
What technologies should I use for the 2nd server? What programming language?

Enemy Indicator shows both front and back

I made a simple enemy indicator which show image over the game object which look like this:

enter image description here

You can see that red exclamation mark is over the cube.

Note that Canvas is Space Screen Camera, so I had to convert screen point.

Here’s the code I’m using:

Vector2 screenPoint = mainCamera.WorldToViewportPoint(transform.position); screenPoint.x *= canvasRectTransform.sizeDelta.x; screenPoint.y *= canvasRectTransform.sizeDelta.y; screenPoint.x -= canvasRectTransform.sizeDelta.x * canvasRectTransform.pivot.x; screenPoint.y -= canvasRectTransform.sizeDelta.y * canvasRectTransform.pivot.y;  pointerRectTransform.anchoredPosition = screenPoint; 

It seems fine first time, however I noticed that when I rotate back, it shows like I’m looking at the cube in front of it:

enter image description here

You can see that image over the wall. Is there something that I missed this approach? Any advice will very appreciate it.

Using Unity 2018.3.12f1.

How does one populate an app with content when using a front end javascript framework?

For the last month or so I have been struggling with this question. One of the next logical steps in my studies of front end development is to learn how to use a JavaScript framework such as Angular or Vue.js. However, I feel blocked by this one issue that comes to mind.

How does one populate a website with content (say from a database) with a framework like Vue or Angular?

Based on my current research I have come to the conclusion that the only way to do this would be by loading the page and then using client-side JavaScript to request the relevant data after the initial load.

This, to me, seems very inefficient.

Is there any way to render the page beforehand while still keeping all the features of the frontend framework?

Relabel to front, what does topological sort according to admissible network mean?

In the CLRS book it says that “relabel to front” algorithm, which solves the maximum-flow problem, maintains a list of topologically sorted vertices in the admissible network and that vertices with zero excess flow are moved to the front of the list.

I do not fully understand what is the meaning of it. I would imagine that the vertices are sorted according to the number of admissible edges incident on it. But then how would moving vertices with no excess flow to front affects the sorting order in this case. Also how come the list is already sorted when it is initialized with random order of the vertices?


Just realized that topological sorting of vertices in the admissible network means that for every admissible edge (u,v) in the admissible network the vertex u appears before v in the list.

This does not answer my last two parts of my question though, how is that the list is already sorted when initialized and what effect does moving zero-excess-flow vertices to front affect the order. Thanks.