Programmatically create a trigger within abnormally shaped room

So I’m trying to create a trigger in each of my rooms. These rooms can be created by players. Basically, I need to know all the objects in a room. These rooms can be shaped in weird and wonderful ways. I’m struggling to figure out how to “fill” an area? The other problem is that some walls are curved.

My current thinking is:

  • Loop over all the walls in a scene. Do 4 raycasts from each side of the wall and see if we hit other walls. If we do, we are likely in a room.

  • From the offset, literally check each node adjacent to that until we fill the room. Once I have this though, Im not sure what to do with it.

How do I create bounds that I can check for collisions with this data?

Why items could not be enclosed within items in WordPress?

I was creating a guide in WordPress with the Classic Editor. In the guide, I was about to create a separate section here,

8 Best Mattress in India – Mattress Reviews & Guide (2020)

I referred to some bootstrap snippets available on the internet. I pasted this code in the Text area

<ul class="list-inline small">               <li class="list-inline-item m-0"><i class="fa fa-star text-success"></i></li>               <li class="list-inline-item m-0"><i class="fa fa-star text-success"></i></li>               <li class="list-inline-item m-0"><i class="fa fa-star text-success"></i></li>               <li class="list-inline-item m-0"><i class="fa fa-star text-success"></i></li>               <li class="list-inline-item m-0"><i class="fa fa-star-half-alt text-success"></i></li> </ul> 

When I switch to the visual section, the element gets removed. How to prevent elements from getting removed while switching to the visual section?

How could domain fronting get over the firewall if CDN node is within?

I recently came across the technical domain fronting, and I understanding it has largely been prohibited by Amazon and Google, etc. I have also read the original paper introducing this technique Blocking-resistant communication through domain fronting.

I am trying to figure its practicality: in the paper it is assumed the CDN node is out of the censor’s control, but how practical it is? Specifically for China, at least both Cloudflare and Cloudfront have PoPs in China mainland, so even if a user can establish HTTPS with one of their CDN nodes, the node will be still in China, and when the traffic goes out, it is still subject to be filtered by the firewall, is this correct?

By and large, is it correct that domain fronting works only if a CDN does not have PoP present within the firewall, but the censor is reluctant to completely block the CDN?

Does Wall of Fire get to deal its damage twice (minimum), when normal creatures are trapped within the circle? [duplicate]

Let’s say a character casts Wall of Fire in the ring shape, choosing the inside of the wall as the side that does damage. A creature is inside the ring.

When the spell is first cast, the creature must make a Dex save or take 5d8 damage. Then, on the creature’s turn, it wants to move out of the ring, and it will need make another Dex save as it moves through the wall. Effectively, a single casting will require a creature inside the ring to make a minimum of 2 saves in a normal movement situation. Correct?

Note: I realize by the time characters are level 7+, there are many ways to avoid the second Dex save, including flying over the wall, burrowing under the wall, teleporting out, casting a barrier spell within the ring, being immune to fire, etc. I’m just asking about normal movement situations without other tricks, to ensure I’ve understood the spell. Thanks!

Is it safe to assume that my computer’s clock will always be synced with actual time within the second or a few seconds at the worst?

Years ago, I was running a service where the moderators were able to do various actions with massive privacy implications if the accounts or contributions were less than a short period of time. I did this by checking the timestamp against the current Unix epoch, allowing for X hours/days. Normally, this worked well.

One day, the server where this was hosted on had been “knocked offline” in the data centre where I was renting it, according to the hosting company. When it came back on again, its clock had been reset to the factory default, which was many years back.

This resulted in all my moderators potentially being able to see every single account’s history and contributions in my service until I came back and noticed the wrong time (which I might not even have done!) and re-synced it. After that, I hardcoded a timestamp into the code which the current time had to be more than or else it would trigger “offline mode”, to avoid any potential disasters like this in the future. I also set up some kind of automatic timekeeping mechanism (in FreeBSD).

You’d think that by now, not only would every single computer be always auto-synced by default with tons of fallback mechanisms to never, ever be in a situation where the clock isn’t perfectly synced with “actual time”, at least down to the second, if not more accurately; it would be impossible or extremely difficult to set the clock to anything but the current actual time, even if you go out of your way to do it.

I can’t remember my Windows computer ever having been out of time for the last “many years”. However, I do important logging of events in my system running on it. Should I just assume that the OS can keep the time at all times? Or should I use some kind of time-syncing service myself? Like some free HTTPS API, where I make a lookup every minute and force the system clock to me whatever it reports? Should I just leave it be and assume that this is “taken care of”/solved?

Why would you restrict these characters within a password? [duplicate]

A website restricts these characters from passwords: # * ( ) %

At a casual glance, it looks like they’re not sanitizing data input to the database or hashing passwords, but I’m a hobbyist.

Should I contact the IT maintainer? This is a new site that was just launched to replace an old one within my industry.

Finding if the x and y coordinate is within a view is enclosed by two intersecting rectangles, in java [closed]

Say I have this view with two subviews A and B, A and B has a color property mColor,

enter image description here

I want a function in the parent view that has this signature: int getColor(int x, int y), which for any given x and y coordinate, return the color at that position, if the x and y coordinates land and the two shapes are overlapped, return the average color of A and B

The problem I am running into is i see myself doing a lot of conditional checks, checking if A is left of B or if A is right of B etc. I feel like I am missing some key intuition

I have a Point class that handles the coordinates”

public class Point {     private final int mX;     private final int mY;      public Point(int mX, int mY) {         this.mX = mX;         this.mY = mY;     }      public int getX() {         return mX;     }      public int getY() {         return mY;     } } 

Here is my subview class:

public class Chart  {      private int mColor;     private Point mTopLeft;     private Point mBottomRight;      public Point getTopLeft() {         return mTopLeft;     }      public Point getBottomRight() {         return mBottomRight;     }      public Chart(int mColor, Point topLeft, Point bottomRight) {         this.mColor = mColor;         this.mTopLeft = topLeft;         this.mBottomRight = bottomRight;     }      public int getColor() {         return mColor;     }      public Point getTopRightCorner() {         return new Point(getBottomRight().getX(), getTopLeft().getY());     }      public Point getBottomLeftCorner() {         return new Point(getTopLeft().getX(), getBottomRight().getY());     } } 

My parent view class:

public class View {      private Chart mChartA;     private Chart mChartB;      public View(Chart chartA,                 Chart chartB) {         mChartA = chartA;         mChartB = chartB;     }      public boolean doChartsOverlap() {         boolean isOverlapped = true;          if(isChartALeftOfChartBInX() || isChartARightOfChartBInX()) {             isOverlapped = false;         }          if(isChartABottomOfChartBInY() || isChartATopOfChartBInY()) {             isOverlapped = false;         }         return isOverlapped;     }      public final boolean isChartALeftOfChartBInX() {         return mChartA.getBottomRight().getX() <= mChartB.getTopLeft().getX();     }      public final boolean isChartARightOfChartBInX() {         return mChartA.getTopLeft().getX() >= mChartB.getBottomRight().getX();     }      public final boolean isChartATopOfChartBInY() {         return mChartA.getBottomRight().getY() <= mChartB.getTopLeft().getY();     }      public final boolean isChartABottomOfChartBInY() {         return mChartA.getTopLeft().getY() >= mChartB.getBottomRight().getY();     }      public void setChartA(Chart mChartA) {         this.mChartA = mChartA;     }      public void setChartB(Chart mChartB) {         this.mChartB = mChartB;     } } 

Limit amount of posts made within a custom taxonomy

Is there a way to limit the number of posts that can be created within a custom taxonomy?

I have a custom post type called Preferred Agents and a custom taxonomy called Agent Location. I want to be able to limit the amount of Preferred Agents in an Agent Location to only 3. Is this possible?

Any help is appreciated! Thanks.