unity – Creating a victory zone / Count units inside zone

So I am attempting to create a zone implementation where if the amount of units with a certain tag exceeds the number of units with another tag an objective will be captured standing in the zone will capture an objective.

However, the problem occurs when counting the units and what the most optimal way of doing it is which is what I hope you guys can help me with! (Also if you have a better way of implementing it then I am all ears).

So in my implementation, I have added a game object with a box collider which is set as a trigger collider

my idea was that as soon as a unit enters or leaves the script will update the count of users with a certain tag.

Should the count of one tag type be greater than the other the victory/capture condition will begin.

This is an ok solution however it has a major problem. Should one of the NPC’s inside of the box collider die the script will never detect it as the body has never left the box.

So how do i overcome this problem in a sensable way?

Google Calendar alerts in Chrome browser, a Time Zone discrepancy

I just received this alert in Chrome browser from my Google Calendar:

enter image description here

I’m signed into the same Google user account in both the Chrome browser, and my Google Calendar online.

As you can see, it says that something is in “1h” (one hour), but as you can also clearly see, 7pm (the event’s start time) is 2 hours away from the current time (5pm. It was 5:02pm when I took the screenshot) on my Windows 10 PC.

There are my Google Calendar Time Zone settings:

enter image description here

Strangely, in the options, there’s only Mountain Standard Time (MST) available. No Mountain Daylight Time (MDT).

I thought that Google might be ignoring MDT and giving me the alert as if it were MST. But that doesn’t make sense either. Because even in that case, both times (on my PC, and the time for the event) would still be 2 hours apart and it should still say that the event is going to happen in 2 hours.


Thoughts?

power automate – What format does the ‘Base Time’ field in the ‘Convert time zone’ action expect?

As shown in the screenshot below, the following timestamps format worked for me for onvertTimeZone(variables('TimestampYYYYMMdd'), 'Eastern Standard Time', 'UTC')

YYYY-MM-DD hh:mm:ss=> 2021-07-19 08:50:00 - Worked
MM/DD/YYYY hh:mm:ss => 07/19/2021 08:51:00 - Worked
YYYY-MM-DDThh:mm:ss.0000000Z => 2021-07-19T08:55:00.0000000Z - Worked

However, DD-MM-YYYY hh:mm:ss throws the error shown below

Unable to process template language expressions in action ‘Compose’ inputs at line ‘1’ and column ‘6070’: ‘In function ‘convertTimeZone’, the value provided for date time string ’19/07/2021 09:51:00′ was not valid. The datetime string must match ISO 8601 format.’

enter image description here

oracle – Data Pump Job error caused by time zone

I’m running a impdp command for a dmp file, but when i read the log file, it show a error like this:

ORA-39097: Data Pump job encountered unexpected error -30094
ORA-39065: unexpected master process exception in DISPATCH
ORA-30094: failed to find the time zone data file for version 4 in $ORACLE_HOME/oracore/zoneinfo

I’ve checked version using SELECT * from v$timezone_file;, and the result displayed is 14.

And i’m running the impdp on server with the following properties:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

I’ve read about upgrading versions, but I don’t quite understand the concept of it, if someone can help me.

iPhone calendar list view error when in different time zone

In Calendar settings, Time Zone overide is on (set to home time zone).
Under General settings, Date and Time is “Set Automatically” (Time Zone changes to maintain local time).

If I move to a diffrent time zone, the time zone under General Setting for Date & Time, changes to appropriately display the local time.
The Time Zone under Calendar Settings correctly remains set to the home time zone because Time Zone Override is set to “on”.

In List view the calendar dates change to one day early. The dates are correct in Day view.

When I return to my home time zone, the list view changes to display the correct day.

I can re-create the problem at home by manually changing the time zone under the “General | Date & Time setting”.

It appears to be a problem when Calendar time zone and the clock time zone are not the same.

google search – Pages that contains [cityname] but not if it is only part of the time zone name

I am following a certain site and want to know whenever something new about the city I live in is posted so I execute a search like this:

site:abc.com “city”.

(limited to the last week)

This works good on a dozen or so sites I follow this way but this one is causing me troubles because it displays the time zone/TZ-name of the visitor at the bottom of the page. Therefore, if you search for a city that also has a TZ named after it Google will basically return all pages of the site. Two examples excep:

Example - Paris

Example - Tokyo

(These are the complete snippets, excluding the heading, shown on Google’s result page. They are indeed not very helpful to figure out if the page is interesting, even if I try doing it manually.)

The reason my search works (good enough) on the other dozen of sites is that almost all articles that I am interested in contains an address which includes the name of the city. This troublesome site also includes an address of the city I am interested in but, alas, contains that city name in its time zone list, that is present on all pages.

So basically, I want to include all pages that contains (cityname) but not if it is only part of the time zone name. Can that be achieved with some Google search operator?

Note: almost all pages are in English so using language as a proxy (e.g., search for German pages to find articles about Berlin) doesn’t work.

When doing a site search using Google searching for a city name all pages are returned because of the time zone name

I am following a certain site and want to know whenever something new about the city I live in is posted so I execute a search like this:

site:abc.com “city”.

(limited to the last week)

This works good on a dozen or so sites I follow this way but this one is causing me troubles because it displays the time zone/TZ-name of the visitor at the bottom of the page. Therefore, if you search for a city that also has a TZ named after it Google will basically return all pages of the site. Two examples excep:

Example - Paris

Example - Tokyo

(These are the complete snippets, excluding the heading, shown on Google’s result page. They are indeed not very helpful to figure out if the page is interesting, even if I try doing it manually.)

The reason my search works (good enough) on the other dozen of sites is that almost all articles that I am interested in contains an address which includes the name of the city. This troublesome site also includes an address of the city I am interested in but, alas, contains that city name in its time zone list, that is present on all pages.

So basically, I want to include all pages that contains (cityname) but not if it is only part of the time zone name. Can that be achieved with some Google search operator?

Note: almost all pages are in English so using language as a proxy (e.g., search for German pages to find articles about Berlin) doesn’t work.

python – How to query historical UTC time zone offset given a location and date

I’m working on a script that builds schedules off of old airline timetables. In many places of the world, UTC local time and the observance of daylight savings time has repeatedly changed since the 1940’s. I am looking for a user friendly way to query a country or city together with a date and get a UTC offset in return. For example, getting the UTC offset for Santiago, Chile on November 20, 1967 would return -4 whereas November 20, 1968 would return -3 as DST was not observed in the first part of the decade.

TimeAndDate.com has the data I need but you need to pay for an API for access. IANA has a historical time zone database but I’m having trouble figuring out how to use it and it doesn’t go back before 1970 from what I can see.

Any suggestions on the best/easiest way for a relatively inexperienced programmer to accomplish this in python?