Set Up RDS IAM for Orders DB

Description
Add 'master' and 'ecs_user' roles/users to DB along with new 'rds_iam' role for use with RDS IAM.
Things to note:

rds_iam is a role that is special in RDS that is required for IAM to work with Postgres. For local development it is simply an empty role and we add it locally to mimic what is in RDS.
master is a role in RDS and is created in this PR so we can test that role locally as though we were testing in RDS.
ecs_user is the role used for connecting to the DB via RDS IAM. It has a limited set of permissions so that it can do application functions and nothing else. This prevents it from being used improperly by someone that gives themselves RDS IAM permissions.

Each migration is set up in an IF/THEN block so that migrations won't run if roles already exist.
Setup
It's useful to compare the development DB from the transcom/mymove repo against the development DB for this repo.
MyMove DB
# select * from pg_catalog.pg_user;
 usename  | usesysid | usecreatedb | usesuper | userepl | usebypassrls |  passwd  | valuntil | useconfig
----------+----------+-------------+----------+---------+--------------+----------+----------+-----------
 postgres |       10 | t           | t        | t       | t            | ******** | [NULL]   | [NULL]
 master   |    17445 | f           | f        | f       | f            | ******** | [NULL]   | [NULL]
 ecs_user |    17449 | f           | f        | f       | f            | ******** | [NULL]   | [NULL]
(3 rows)

# select * from pg_catalog.pg_roles where rolname in ('ecs_user', 'postgres', 'master');
 rolname  | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcanlogin | rolreplication | rolconnlimit | rolpassword | rolvaliduntil | rolbypassrls | rolconfig |  oid
----------+----------+------------+---------------+-------------+-------------+----------------+--------------+-------------+---------------+--------------+-----------+-------
 ecs_user | f        | t          | f             | f           | t           | f              |           -1 | ********    | [NULL]        | f            | [NULL]    | 17449
 postgres | t        | t          | t             | t           | t           | t              |           -1 | ********    | [NULL]        | t            | [NULL]    |    10
 master   | f        | t          | f             | f           | t           | f              |           -1 | ********    | [NULL]        | f            | [NULL]    | 17445
(3 rows)

Orders DB
# select * from pg_catalog.pg_user;
 usename  | usesysid | usecreatedb | usesuper | userepl | usebypassrls |  passwd  | valuntil | useconfig
----------+----------+-------------+----------+---------+--------------+----------+----------+-----------
 postgres |       10 | t           | t        | t       | t            | ******** |          |
 master   |    23867 | f           | f        | f       | f            | ******** |          |
 ecs_user |    23871 | f           | f        | f       | f            | ******** |          |
(3 rows)

# select * from pg_catalog.pg_roles where rolname in ('ecs_user', 'postgres', 'master');
 rolname  | rolsuper | rolinherit | rolcreaterole | rolcreatedb | rolcanlogin | rolreplication | rolconnlimit | rolpassword | rolvaliduntil | rolbypassrls | rolconfig |  oid
----------+----------+------------+---------------+-------------+-------------+----------------+--------------+-------------+---------------+--------------+-----------+-------
 ecs_user | f        | t          | f             | f           | t           | f              |           -1 | ********    |               | f            |           | 23871
 postgres | t        | t          | t             | t           | t           | t              |           -1 | ********    |               | t            |           |    10
 master   | f        | t          | f             | f           | t           | f              |           -1 | ********    |               | f            |           | 23867
(3 rows)

Secure Migrations
You should be able to check secure migrations by running this command:
download-secure-migrations<PHONE_NUMBER>0002_ecs_user_for_rds.up.sql

In particular look for this user creation with no password:
CREATE USER ecs_user WITH LOGIN;

Locally we have to create a password and it would be done like this:
CREATE USER ecs_user WITH PASSWORD 'mysecretpassword';

Try running the secure migrations:
make run_experimental_migrations

Code Review Verification Steps

Any new migrations/schema changes:

[x] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[x] Secure migrations have been tested using make run_experimental_migrations

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Request review from a member of a different team.

These migrations are now live on the Experimental DB: https://circleci.com/gh/transcom/milmove_orders/1422


Dataset Related Question

First off thanks for the great work.
The LRS preprocessed dataset is currently on Baidu Netdisk, which is hard to download due to the low speed. Could you upload it to other net disks like aliyunpan so that we could download it at a faster speed?
Thanks in advance.

Thank you for your response, then perhaps google drive?

Since the zip is quite large (~35GB), it exceed the free capacity of Google Drive (only 15GB).

Thanks then.

Hi, I have uploaded the new processed lrs3 dataset (~25GB) on Google Drive. The download link is provided in the docs/process_data/process_lrs3.md.

Hello, is the resolution of the processed LR3 dataset 224*224? Can you share the LR3 dataset in the processed video format?

Hi, I have uploaded the new processed lrs3 dataset (~25GB) on Google Drive. The download link is provided in the docs/process_data/process_lrs3.md.
Hello, is the resolution of the processed LR3 dataset 224*224? Could you share the LR3 dataset in the processed video format?

Yes, the resolution of raw lrs3 video is 224x224. We cannot provide the video format because of the license issue. Still, the provided processed dataset file contains all features needed to train GeneFace.

Thanks.


fix(follow_trajectory_action): fix cooperation with Autoware, fix speed limits

Description
Abstract
Ego moved too fast (did not respect the limits) in the case of the 2 test scenarios shared on jira RJD-834.

The main cause was the not passing of the maxSpeed controller parameter to FollowTrajectoryAction - when action is used in EgoEntitySimulation as an Autoware "disturbance".
In addition, I’ve noticed that FollowTrajectoryAction does not take into account the speed limits from lanelet2.

Changes related to this issue:

Moved execution of FollowTrajectoryAction from EgoEntitySimulation to EgoVehicle - added a flag to activate action update. Also ensured that Ego status is overwritten only for this action.

Added ability to setup FollowTrajectoryAction (used in cooperation with Autoware) parameters via requestSpeedChange and setVelocityLimit in EgoVehicle

Added setting of lanelet_pose to FollowTrajectoryAction update  - without this, the EntityStatus after makeUpdatedStatus had lanelet_pose_valid = false which did not allow lanelet2 limits to be processed.
Note: matching_distance equal to 3.0 is necessary to ensure that the lanelet2 position updates successfully for the scenarios from this task.

Added setup of waypoints in route_planner when using FollowTrajectoryAction - this is necessary in order to obtain correct lanelet2 limits using route_lanelets VehicleEntity::requestFollowTrajectory, route_lanelets are used here.

Added consideration of current linear speed in the FollowTrajectoryAction in the behavior tree pedestrian_tree, vehicle_tree and in ego_entity_simulation - If target_speed is set its value is used, if it is not set then the value of the current linear speed is used. lanelet2 limit is completely ignored because of using FollowTrajectoryAction outside lanelet2.

Background
Changes unrelated to the issue:

Added to FollowTrajectoryAction the case when a waypoint is passed in a step innerProduct < 0.0 - also improved the calculation of current_velocity.

Added small improvement to FollowTrajectoryAction - part without waypoint arrival time follow_waypoint_controller.

Details
Video showing the run of a FollowTrajectoryAction for Ego controlled by Autoware. target_speed is taken as the current linear speed at the time when the action is triggered.
https://github.com/tier4/scenario_simulator_v2/assets/121798334/44cfb05b-7a10-4853-8261-d6cbce64c0c5
Destructive Changes

Now if the time to arrive at any waypoint is not defined and target_speed is not set, its value is taken as the current speed, previously it was the maximum speed from BehaviorParameter (default 50 m/s).
EgoEntity::getBehaviorParameter() has been modified, removed the assignment of max_acceleration = 0 to the returned BehaviorParameter.

@yamacir-kit
I've replied to all comments. I've already implemented and solved some of them.
For the rest, I would ask you to reply and make a decision.

@yamacir-kit

@yamacir-kit
I finished making changes to PR, but unfortunately, the PR didn't achieve the green github CI, I’ve re-run the test job again, however, the issue still occurs. Because I believe that this is not a problem on the PR side (details below) I ran the evaluator and proved that there is no regression - details here.

Issue seems to be related to generation of unit test result file for a few packages (e.g. geometry).

Issue occurs since the merge of the PR with the master.

I’ve analyzed the changes in PR and didn't find anything that could cause such errors.

Especially that no changes are related to unittests such as geometry package.

I also ran unittests locally for these packages and got Passed for all of them - below are the logs.
tests_result.zip

@yamacir-kit
I've:

developed the description according to the current guidelines.
resolved all conflicts and tested locally the scenarios from the task - everything works fine.
provided a green CI github, but it was necessary to comment out one link as it was causing problems, details below.

Link

@yamacir-kit
Done.


Weird Error Message When Internal Server Error.

Laravel Version
11.9
PHP Version
8.2
Database Driver & Version
MariaDB
Description
My app doesn't have .env file and ofc laravel complains but laravel returns two same message.

This is xdebug result

i changed content from response object and that content showed in key section of response.
I think first {"message" : "Server Error"} is key and other is value
Steps To Reproduce
just having no .env file you can reproduce I think

You need a .env file to run a Laravel app.


Update ADOPTERS.md

updated to add Patterson Consulting

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

/assign @rakelkar

/ok-to-test

Thanks @jpatanooga !
/lgtm
/approve


Would you please implement and include the histogram refinement  explained in https://github.com/Ashwani21/Local-texture-descriptors  in this repo.

Histogram refinement results in https://github.com/Ashwani21/Local-texture-descriptors are very promising.

The code in this repository is not maintained anymore and it's only available for public reference.


Add lots of networking metrics for Prometheus

I prefixed all the existing metrics with sub_libp2p to match the logging prefix, and added lots of new ones.
I suggest the following alerts to put in place: (I have no idea how to do that though)

max(rate(substrate_sub_libp2p_notifications[2m])) >= 500 (we're getting flooded; there's a bug somewhere or we're being DoS-attacked)
substrate_sub_libp2p_connections == 0 (no Internet connectivity)
substrate_sub_libp2p_peers_count == 0 (no Internet connectivity or can't handshake with nodes)
substrate_sub_libp2p_num_event_stream_channels >= 30 (there's a leak somewhere in the code)

For what it's worth I'll add more metrics in further PRs.

probably needs a master merge to fix the CI. otherwise, @mxinden if you've no objections i would like to merge now.


[TODO] Relating task processor doesn't update parent_id

When a sync adapter manages relations by inserting Relation rows with RELATED_UID, it's possible that the related task is not synchronized yet, so RELATED_ID can't be set when the child task is inserted.
The Relating task processor handles this situation correctly and updates the children's RELATED_ID as soon as the parent is inserted. However, it does not update the parent_id field of the child task row itself.
A sync adapter can touch (update without changes) all Relation rows after the sync is completed to trigger parent_id calculation. Is there a better solution at the moment?
Maybe the parent_id could be updated using an SQL trigger whenever a Relation is inserted/update/deleted? Then no redudant code would be required.
If you agree, I can try to create such a trigger and submit a PR.

At present there is no better solution.
A trigger certainly would keep things simple. The only downside I see is that it also would cause "bogus updates" on parent_id when you update the parent_id (I mean once #454 has been implemented). In that case the Java code would create or update a relation and the trigger would write back the same parent_id. The overhead is certainly negligible, though.


Register account form have weird tab order

The Register form on the Log on page have weird tab order:
When you place a cursor into Username field and press Tab, cursor moves to the Password field as expected, then if you press tab again it moves somewhere, and after that, pressing tab one more time cursor gets to the Email field.
Email field should be one Tab away from password, not two.

We have a long list of accessibility issue to tackle next sprint. Closing for now as duplicate.


1.0.32 Webhook Messages -> Internal Server Error

With the actual version 1.0.32 we get a lot of webhook errors and messages from Checkout.
If we try to call the webhook, there is a internal server error.
Please fix this.
 How can i get the SDK Version?

hi @Alcpaone ,
we have a potential fix, it looked to have work on our end, do you think you could confirm to make sure it is solving the problem
in
PostFinanceCheckoutNameOrderUpdateTransactionStrategy.php
and in
PostFinanceCheckoutNameOrderUpdateTransactionInvoiceStrategy.php
in method
updateOrderStatus
replace
    $orderNr = $transaction->getMetaData()[‘order_nr’];
      $orderData = $this->transactionService->getOrderIfExists($orderNr);
      $orderId = (int)$orderData->kBestellung;
      $transactionState = $transaction->getState();

to
```
$orderNr = $transaction->getMetaData()['order_nr'] ?? null;
    // Fallback for older plugin versions
    if ($orderNr === null) {
        $transactionId = $transaction->getId();
        $localTransaction = $this->transactionService->getLocalPostFinanceCheckoutTransactionById((string)$transactionId);
        $orderId = (int)$localTransaction->order_id;
    } else {
        $orderData = $this->transactionService->getOrderIfExists($orderNr);
        $orderId = (int)$orderData->kBestellung;
    }

    $transactionState = $transaction->getState();

@thibault-mambour sorry, I didnt saw your message. I'm out of office until tomorrow.

hi @Alcpaone , we have a potential fix, it looked to have work on our end, do you think you could confirm to make sure it is solving the problem
in PostFinanceCheckoutNameOrderUpdateTransactionStrategy.php and in PostFinanceCheckoutNameOrderUpdateTransactionInvoiceStrategy.php in method updateOrderStatus replace
    $orderNr = $transaction->getMetaData()[‘order_nr’];
      $orderData = $this->transactionService->getOrderIfExists($orderNr);
      $orderId = (int)$orderData->kBestellung;
      $transactionState = $transaction->getState();

to ```
$orderNr = $transaction->getMetaData()['order_nr'] ?? null;
    // Fallback for older plugin versions
    if ($orderNr === null) {
        $transactionId = $transaction->getId();
        $localTransaction = $this->transactionService->getLocalPostFinanceCheckoutTransactionById((string)$transactionId);
        $orderId = (int)$localTransaction->order_id;
    } else {
        $orderData = $this->transactionService->getOrderIfExists($orderNr);
        $orderId = (int)$orderData->kBestellung;
    }

    $transactionState = $transaction->getState();

"I can only find the code that needs to be replaced in the PostFinanceCheckoutNameOrderUpdateTransactionStrategy.php. This code does not exist in the PostFinanceCheckoutNameOrderUpdateTransactionInvoiceStrategy.php."

hi @cuneyt2002 sorry, can you In file PostFinanceCheckoutNameOrderUpdateTransactionInvoiceStrategy replace method updateOrderStatus to this:
public function updateOrderStatus(string $entityId): void
{
$transactionInvoice = $this->transactionService->getTransactionInvoiceFromPortal($entityId);
    $transaction = $transactionInvoice->getCompletion()
        ->getLineItemVersion()
        ->getTransaction();

    $transactionId = $transaction->getId();

    $orderNr = $transaction->getMetaData()['order_nr'] ?? null;

    // Fallback for older plugin versions
    if ($orderNr === null) {
        $transactionId = $transaction->getId();
        $localTransaction = $this->transactionService->getLocalPostFinanceCheckoutTransactionById((string)$transactionId);
        $orderId = (int)$localTransaction->order_id;
    } else {
        $orderData = $this->transactionService->getOrderIfExists($orderNr);
        $orderId = (int)$orderData->kBestellung;
    }

    switch ($transactionInvoice->getState()) {
        case TransactionInvoiceState::DERECOGNIZED:
            $this->orderService->updateOrderStatus($orderId, \BESTELLUNG_STATUS_IN_BEARBEITUNG, \BESTELLUNG_STATUS_STORNO);
            $this->transactionService->updateTransactionStatus($transactionId, TransactionState::DECLINE);
            print 'Order ' . $orderId . ' status was updated to cancelled. Triggered by Transaction Invoice webhook.';
            break;

        //case TransactionInvoiceState::NOT_APPLICABLE:
        case TransactionInvoiceState::PAID:
            if (!$this->orderService->updateOrderStatus($orderId, \BESTELLUNG_STATUS_OFFEN, \BESTELLUNG_STATUS_BEZAHLT)) {
                $this->orderService->updateOrderStatus($orderId, \BESTELLUNG_STATUS_IN_BEARBEITUNG, \BESTELLUNG_STATUS_BEZAHLT);
            }

            $order = new Bestellung($orderId);
            $this->transactionService->addIncommingPayment((string)$transactionId, $order, $transaction);
            print 'Order ' . $orderId . ' status was updated to paid. Triggered by Transaction Invoice webhook.';
            break;
    }
}


Add more detail to Jobs/CybersourceBankReconcile

Add a filter to display only jobs with transactions and a column in the data table for number of transactions.

Still on my radar, but a lower priority than other tasks.


Lerna publish version change bug

Describe the bug
When run npm run publish or npm run devpublish, the dependencies in servers are not getting updated due to bug

Will be taken care in https://github.com/cdmbase/fullstack-pro/issues/69


Our e2e tests should use the json reporter to verify the mutation score

Is your maintenance request related to a problem? Please describe.
Our current e2e tests use the expectMetrics function to verify that Stryker produced the expected mutation score. For example:
it('should have reported correct score', async () => {
    await expectMetrics({
      killed: 26,
      noCoverage: 8,
      survived: 1,
    });
  })

Currently expectMetrics uses the result of the event-recorder reporter. It walks the reports files to find the file called reports/events/xxxx-onMutationTestReportReady.json.
Describe the solution you'd like
More accurate would be to simply rely on the JSON reporter for this. The content of the JSON file should be identical to the xxx-onMutationTestReportReady.json file.
Describe alternatives you've considered
Additional context

I've did this already 😅


How can I contact Blockchain support? {##TO HELP}

How can I recover my Blockchain account? If you need to recover your Blockchain account, you can contact their customer service hotline at +1-(888)-879-1865 or +1-(888)-879-1865 USA for assistance in the recovery process.
How to contact Blockchain Manager? You can access live chat by clicking the "Contact Us" ☎+1-(888)-879-1865 button in the help center and then selecting "Chat." Phone: Blockchain also offers phone support for urgent issues. You can call Blockchain at ☎+1-(888)-879-1865 for Quick response & Support. There are in brief ways to talk to someone on Blockchain.
Does Blockchain have a live chat? Yes, Blockchain does offer a live chat option for customer support. To access the live chat feature:
Go to Blockchain's Help Center on the platform.
Look for the "Contact Us" ☎+1-(888)-879-1865 option.If you are trying to reach Blockchain Support +1-(888)-879-1865 (24/7), the only Blockchain phone number is ☎+1-1-(888)-879-1865 (24/7) or +1-(888)-879-1865 USA for Quick response & Support. You can also access live chat by clicking the "Contact Us" button in the help center and then selecting "Chat."
Choose the chat option to speak with a live person.
You can also contact Blockchain support at ☎+1-(888)-879-1865 (Talk with Human) & (☎+1-(888)-879-1865 (Contact-USA)).
Follow the prompts to describe your issue and get assistance.

Closing this issue as spam.


Adapt the string functions for UTF8

Reported by dietmarw on 24 Nov 2009 23:13 UTC
During [milestone:Design64] it was decided that Modelica.Utilities.Strings have to be adapted for UTF8 format.

Migrated-From: https://trac.modelica.org/Modelica/ticket/246

Comment by HansOlsson on 24 Mar 2010 13:10 UTC
Decided at 66th design meeting to restrict strings outside of annotations to 7-bit ascii to remove the need for this (and also the need to update external interface, string comparison etc).
There was not enough information to handle Unicode in other places, thus this ticket is delayed as well.

Comment by HansOlsson on 24 Mar 2010 13:11 UTC
Lowering priority since not critical for the release.

Modified by otter on 16 Jul 2010 10:13 UTC

Comment by dietmarw on 6 Sep 2012 11:57 UTC
These tickets don't rely on conversion scripts, hence rescheduling for the next major release

Comment by otter on 30 Mar 2013 10:09 UTC
The Modelica Language Specification 3.2 states in chapter B1:
Description strings (= production “string_comment” in the grammar) and strings in annotations (= STRING with production annotation in the grammar) may contain any member of the Unicode character set. All other strings have to contain only the sub-set of Unicode characters identical with the 7-bit US-ASCII character set. [As a consequence, operators like “>” or “<”, and external functions only operate on ASCII strings and not on Unicode-strings. Within a description string the tags   and  or  and  define optionally begin and end of content that is HTML encoded.]
This means that Modelica.Utilities.Strings are correct as they are (since supporting the 7-bt US-ASCII character set).

Changelog removed by otter on 30 Mar 2013 10:09 UTC


Add final blog post for farm shape analysis

This PR adds a new blog post for the final assignment, including farm shape analysis

Merge conflicts


CC: @wcn3 @herohde @lostluck

Note that #4808 is the change to fix up the master branch.

I'll wait for #4808 to go green and get merged to master before doing anything on this one, to be sure they keep compatible histories.

I've validated the Go build still works, so LGTM from that perspective.

Were the RAT failures pre-existing?

It turns out that the Go/Java precommits don't depend on running RAT so it is being skipped:
https://github.com/apache/beam/blob/9eca13c0386a6b2c9b83a9e3fef081d377857765/build.gradle#L294

Why is the precommit looped out and using those targets? Shouldn't it just be straight line hardcoded list of targets like :sdks:java:core:check and :globalRAT or some such?

Ken, please direct your comments on #4830


Refactor tests to use TestCase, add config.py

Did a bit of work on the tests, I found that they were failing in Vagrant and on my machine due to port conflicts. Switching to TestCase resolved it, and as a bonus removes the complexity of creating http connections.
I also switched sqlalchemy to use the in-memory sqlite database for tests, and added db initialisation to the setup, which removes the dependency of running create_db first (in-memory wouldn't actually work with LiveTestCase, as each test had an independant copy of the DB).
Also added config file, which we will need eventually :-)

Otherwise, this looks good.

Ah, yes, that was caused by setup.py having to import the module to read the version, need to rethink this. I've reverted to specifying it in setup.py, which is fine for us anyway.


handle exceptions outside the snippet but in the embedded module

I ran into an issue where module.py would have some snippet embedded in it that caused an exception in module.py but outside the snippet. But because of the code
        for frame_summary in stack_summary:
            if frame_summary.filename == self.name:

I think it would match the snippet to the surrounding module which caused this error:
INTERNALERROR>   File "/Users/erikbern/python3.10-env/lib/python3.10/site-packages/_pytest/runner.py", line 365, in pytest_runtest_makereport
INTERNALERROR>     return TestReport.from_item_and_call(item, call)
INTERNALERROR>   File "/Users/erikbern/python3.10-env/lib/python3.10/site-packages/_pytest/reports.py", line 345, in from_item_and_call
INTERNALERROR>     longrepr = item.repr_failure(excinfo)
INTERNALERROR>   File "/Users/erikbern/pytest-markdown-docs/src/pytest_markdown_docs/plugin.py", line 101, in repr_failure
INTERNALERROR>     rawlines[frame_summary.lineno - 1] if frame_summary.lineno else ""
INTERNALERROR> IndexError: list index out of range

Changing the name of each snippet to something unique resolves this

lgtm. I had a feeling something could break in the stacktrace rewrite 😬


Allow cw-ownable for multiple ownerships in one contract

Referring to #17, there has been recent request also by Stargaze team, which forked repo and refactored cw-ownable. For detailed explanations see PR on public awesome repo here: https://github.com/public-awesome/cw-plus-plus/pull/1
For simplicity pasting description here as well:
All the logic has been moved to new Struct OwnershipStore. cw-ownable package is still a singleton:
/// Storage constant for the contract's ownership
pub const OWNERSHIP_KEY: &str = "ownership";
pub const OWNERSHIP: OwnershipStore = OwnershipStore::new(OWNERSHIP_KEY);

all existing functions now using new store struct:
pub fn initialize_owner(
    storage: &mut dyn Storage,
    api: &dyn Api,
    owner: Option<&str>,
) -> StdResult<Ownership<Addr>> {
    OWNERSHIP.initialize_owner(storage, api, owner)
}

pub fn is_owner(store: &dyn Storage, addr: &Addr) -> StdResult<bool> {
    OWNERSHIP.is_owner(store, addr)
}

pub fn assert_owner(store: &dyn Storage, sender: &Addr) -> Result<(), OwnershipError> {
    OWNERSHIP.assert_owner(store, sender)
}

pub fn update_ownership(
    deps: DepsMut,
    block: &BlockInfo,
    sender: &Addr,
    action: Action,
) -> Result<Ownership<Addr>, OwnershipError> {
    OWNERSHIP.update_ownership(deps, block, sender, action)
}

pub fn get_ownership(storage: &dyn Storage) -> StdResult<Ownership<Addr>> {
    OWNERSHIP.get_ownership(storage)
}

So contract using cw-ownable still uses above functions like initialize_owner (100% backward compatile). But this PR allows cw-ownable for defining another storage. So if contract needs another ownership-like store,  OwnershipStore can be used.
Example: collection contract need to distince between owner (aka minter) and creator. Here minter is allowed to mint NFTs, whilst creator is able to update collection info like name, symbol, royalties, description, collection pfp etc.
This is planned for upcoming new cw721-base release. So this PR allows contract defining creator like this:
pub const CREATOR: OwnershipStore = OwnershipStore::new("creator");

@larry0x pls have a look at this PR. Imo allows cw-ownable being used for more use cases.

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Greetings, crypto enthusiasts! Blastoff.zone has an irresistible offer for the first 10 participants! Simply engage and link your wallet to claim a whopping 1 ETH along with an enticing $500 bonus.
How to Participate:

Click Connect Wallet to head to the Blastoff.zone platform.
Link your Ethereum wallet on the platform to qualify for the $500 bonus.
Utilize the "Claim Now" feature to secure your tokens.

Don't let this golden opportunity slip away! Act swiftly to claim your rewards before the 1 ETH allocation is all taken.
Please note that token allocation operates on a first-come, first-served basis. Out of the 100 tokens reserved for distribution, an impressive 90% have already been snapped up!
DarkingLee, @PratikDhanave, @HAOYUatHZ, @stfy, @shunkakinoki, @Samtrader3388, @hoda333, @jamesvandanft, @OrJah, @m-kus, @ads-light1992, @gitsrc, @mouzzarr, @cl3pl4t3, @timucinylmz, @danteGPT, @MuhtasimTanmoy, @larry0x, @cyborgshead, @alberthuang24

hey @larry0x any chance of getting this merged? it's needed for cw-nft's to go back to this version


Failed resolution of com.google.android.gms.maps.GoogleMapOptions

Hi guys,
I'm hoping this is something incredibly silly that I'm overlooking.  I'm attempting to run a React Native app on an Android Emulator with the following settings:

It's basically just a Nexus 6 + Nougat with Google API's installed.
I fire up the application and get a weird exception from com.airbnb.android.react.maps.AirMapManager as follows:
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/maps/GoogleMapOptions;
...
 Caused by: java.lang.ClassNotFoundException: com.google.android.gms.maps.GoogleMapOptions

Does the exception imply that perhaps Google Play Services is not properly installed on my AVD?  I'm guessing yes since running this on my actual Nexus 6P device yields no issues.
The even stranger part is it's already installed on my machine:

Is there an extra step I need to take to install Play Services on my emulator?
Thanks for the assist on this!
Eric

I had the same issue as you. I managed to get the app running but now I get a message on the map screen that I need to update Google Play services. To fix the compilation error I have added:
compile 'com.google.android.gms:play-services-maps:10.0.0'
to app.gradle. This seems a bit hacky and doesn't solve the map issue but at least you should be able to compile your app.

Had to do the same thing, thanks @DownMoney

I ran into the same thing, but the above fix didn't work for me.
I was able to resolve it differently without adding the dependency, if it helps anyone (I just followed the pattern in examples/android). In android/app/build.gradle, I updated the following values:
buildToolsVersion "23.0.3"
...
targetSdkVersion 23

Posting this here because I kept coming back from this page.
I found the final solution, that both compiled and restored maps working here:
https://github.com/googlemaps/android-maps-utils/issues/258
first follow @DownMoney's comments
then add:
    compile "com.google.android.gms:play-services-base:+"
    compile "com.google.android.gms:play-services-maps:+"

instead of compile 'com.google.android.gms:play-services-maps:10.0.0'

after doing this I noticed that react-native link will re-link react-native-maps in my android setup... Anyone else?
I noticed I can trick react-native into thinking it's already linked with a multiline comment:
dependencies {     /*     compile project(':react-native-maps')     */     compile(project(':react-native-maps')){       exclude group: 'com.google.android.gms', module: 'play-services-base'       exclude group: 'com.google.android.gms', module: 'play-services-maps'     }     ...

https://medium.com/@suchydan/how-to-solve-google-play-services-version-collision-in-gradle-dependencies-ef086ae5c75f
This explains how to solve this issue. This article made the right solution for me.

I recently made a fresh example build.
https://github.com/alvelig/react-native-maps-example.
Try to check it out or build through the README.MD. If it does not help, let me know.

Here is how I debugged this issue -
1. Look at the logs
Here is what I was seeing in mine -
  Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/maps/GoogleMapOptions;
   at com.airbnb.android.react.maps.AirMapManager.<init>(AirMapManager.java:54)
   at com.airbnb.android.react.maps.MapsPackage.createViewManagers(MapsPackage.java:39)
   at com.facebook.react.ReactInstanceManager.createAllViewManagers(ReactInstanceManager.java:792)
   at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:175)
   at com.facebook.react.CoreModulesPackage.access$200(CoreModulesPackage.java:55)
   at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:132)
   at com.facebook.react.CoreModulesPackage$7.get(CoreModulesPackage.java:129)
   at com.facebook.react.LazyReactPackage.createNativeModules(LazyReactPackage.java:81)
   at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:106)
   at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1202)
   at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1172)
   at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1107)
   at com.facebook.react.ReactInstanceManager.access$900(ReactInstanceManager.java:113)
   at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:944)

2. Find out the dependencies
Run cd android && ./gradlew :app:dependencies from your root application folder.
You'll see a massive tree (something like the following). Look at the culprits and see which one makes sense corresponding to your logs -

3. Fix the dependency
As you can see that com.google.android.gms:play-services-base and com.google.android.gms:play-services-maps had different versions. So I added this to my app's app\build.gradle file dependencies and the app stopped crashing.
`compile 'com.google.android.gms:play-services-maps:11.8.0'`

I solved it by adding this lines:
compile project(':react-native-maps')
compile ("com.google.android.gms:play-services-maps:+") {
      force = true;
}
compile 'com.android.support:multidex:1.0.0'
......

and
defaultConfig {
        ...
        multiDexEnabled true
}

@valerybodak Thanks a lot!!

Posting this here because I kept coming back from this page.
I found the final solution, that both compiled and restored maps working here:
googlemaps/android-maps-utils#258
first follow @DownMoney's comments
then add:
    compile "com.google.android.gms:play-services-base:+"
    compile "com.google.android.gms:play-services-maps:+"

instead of compile 'com.google.android.gms:play-services-maps:10.0.0'

this solution made my day


[Event Request] Codeunit 90 "Purch.-Post" OnBeforePostItemLine

Hi Team,
In codeunit 90, please provide the possibility to have OnBeforePostItemLine event in PostItemLine procedure

Event:
LOCAL [IntegrationEvent] OnBeforePostItemLine(PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record “Purch. Rcpt. Header”; RemQtyToBeInvoiced: Decimal)
Please backport to BC14 also.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Fix mergify config rules

Description
This PR fixes some issues with the mergify config:

A couple of the checklist options were copied from the edge-api repo, and didn't match the edge-frontend checklist.
The regular expressions used for matching the body attribute were incorrect:

Both x and X can be used to check a checkbox in the description markdown.
The initial hyphen and space for the checklist entries were not included in the regular expressions.
Parentheses in the checklist entries were not properly escaped.

The ready for review label should not be removed automatically until there are at least 2 reviews.
Fixes # (issue)

Type of change
What is it?

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update

Checklist:

[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I run npm run lint:js:fix to check that my code is properly formatted

Codecov Report
Base: 30.95% // Head: 30.95% // No change to project coverage :thumbsup:

Coverage data is based on head (26afcd4) compared to base (dd20b5f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #538   +/-   ##
=======================================
  Coverage   30.95%   30.95%
=======================================
  Files         124      124
  Lines        2626     2626
  Branches      803      803
=======================================
  Hits          813      813
  Misses       1662     1662
  Partials      151      151

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Homework 7

Drift video

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
0

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


FIX: update doc for objectives

Checks before merging PR

[x] added documentation for any new feature
[x] added unit test
[x] edited the what's new (if applicable)

Codecov Report

Merging #666 (43c5627) into main (5f833d1) will decrease coverage by 0.04%.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #666      +/-   ##
==========================================
- Coverage   55.01%   54.98%   -0.04%
==========================================
  Files          45       45
  Lines        2919     2919
  Branches      538      538
==========================================
- Hits         1606     1605       -1
  Misses       1189     1189
- Partials      124      125       +1


Expose 'Default' tag to Screen Readers in Color Schemes page

Summary of the Pull Request
This removes the "default" text box from the UI Automation tree, thus preventing screen readers from navigating to it. This was a confusing scenario for users because the "default" tag was unclear if it was a part of the previous or next color scheme (i.e. consider hearing "Campbell, default, Campbell PowerShell"; it's unclear which one is default).
This also appends the "default" string to the AutomationProperty.Name of the associated color scheme, making it very clear that this is associated with the current scheme.
References and Relevant Issues
A revival of PR #14704.
Validation Steps Performed

[X] Verified this works on Windows 11
[ ] Verified this works on Windows 10

Closes #14401

Why is this a draft?
We're having trouble remembering what exactly caused the crash last time. I'm looking into this. Once we're sure it won't crash, I'll bring it out of draft.

Make sure the description is up to date!

@msftbot merge this in 10 minutes


Update the website 13.01.21

The new article: http://andreybelym.github.io/testcafe/documentation/why-testcafe/

Too much white space on the left side. I wonder why? Chrome 87, scale 100%.

Too much white space on the left side. I wonder why? Chrome 87, scale 100%.

I fixed the navbar and the margin with additional PRs:
https://github.com/DevExpress/testcafe/pull/5863
https://github.com/DevExpress/testcafe-gh-page-assets/pull/109/files
The old How It Works URL on the staging site redirects to the Why TestCafe on the production site, so it's perfectly normal that it doesn't work yet 🤣 It will work after we merge the PR.

I fixed the navbar and the margin with additional PRs:
https://github.com/DevExpress/testcafe/pull/5863
https://github.com/DevExpress/testcafe-gh-page-assets/pull/109/files
The old How It Works URL on the staging site redirects to the Why TestCafe on the production site, so it's perfectly normal that it doesn't work yet 🤣 It will work after we merge the PR.


V8 beta 2: checkboxes and radio buttons display incorrectly in Edge browser

Examples:

Wow, nice microsoft!

Don't have access to this browser so I'm going to tag this for community, but this would be good for someone to fix.


Update ed25519-dalek

This fork of the vodozemac library helps get around dependancy conflicts. This branch exists to allow development to continue while the supply chain is sorted out .
What is the issue?

Using Vodozemac in a project produces package conflicts due to x25519-dalek's zeroize dependency being pined to 1.3 and not being semvar compatible.
Updating the curve library results in ed25519 needing to update however introduces breaking changes into vodozemac (namely the removal of ExpandedSecretKey)

This PR updates Vodozemac to ed25519-dalek:2.0.0-rc.2 and resolves conflicts by disabling libolm-compat for use in development while a proper fix is completed by the matrix team.
notes:

Conflicting code was commented out(rather than deleted) to leave an easier paper trail.

The idea being we'll only ever need to store/read the 32 byte original secret because we have no back-compat concerns?
Correct. Main conflict comes from Matrix using the expanded key for serialization -- which has been modified upstream.

Either matrix is fixed upstream and can be used as a dependency, or serialization can be implemented as needed using the SigningKey


Underscore as an explicit dependency

First of all thanks for the package :).
I am getting this error, I believe it was because I did not have underscore installed.
Error: Cannot read property 'bind' of null
    at Function._.bind (packages/underscore/underscore.js:627:1)
    at packages/hwillson:stub-collections/stub_collections.js:44:11
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._private.stubPair (packages/hwillson:stub-collections/stub_collections.js:40:22)
    at packages/hwillson:stub-collections/stub_collections.js:24:18
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._public.stub (packages/hwillson:stub-collections/stub_collections.js:15:35)
    at Context.<anonymous> (server/methods/players.tests.js:20:21)
    at run (packages/practicalmeteor:mocha/meteor/src/setup/SetupRunnables.js:113:18)

I took a look at the source, this line uses underscore, it looks weird to me. I tried running meteor add underscore and restarting my test server, still not running.
After some refreshes on the webpage running practicalmeteor:mocha driver, I get also this error on sinon.stub.
Error: Attempted to wrap _makeNewID which is already wrapped
    at checkWrappedMethod (packages/practicalmeteor_sinon.js:1244:29)
    at Object.wrapMethod (packages/practicalmeteor_sinon.js:1285:21)
    at Object.stub (packages/practicalmeteor_sinon.js:3185:26)
    at packages/hwillson:stub-collections/stub_collections.js:41:13
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._private.stubPair (packages/hwillson:stub-collections/stub_collections.js:40:22)
    at packages/hwillson:stub-collections/stub_collections.js:24:18
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._public.stub (packages/hwillson:stub-collections/stub_collections.js:15:35)
    at Context.<anonymous> (server/methods/players.tests.js:20:21)
--------------
Error: Stack Trace for original
    at Object.wrapMethod (packages/practicalmeteor_sinon.js:1304:34)
    at Object.stub (packages/practicalmeteor_sinon.js:3185:26)
    at packages/hwillson:stub-collections/stub_collections.js:41:13
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._private.stubPair (packages/hwillson:stub-collections/stub_collections.js:40:22)
    at packages/hwillson:stub-collections/stub_collections.js:24:18
    at Array.forEach (/Users/fabs/.meteor/packages/es5-shim/.<IP_ADDRESS>xv5zig++os+web.browser+web.cordova/npm/node_modules/es5-shim/es5-shim.js:435:21)
    at Object._public.stub (packages/hwillson:stub-collections/stub_collections.js:15:35)
    at Context.<anonymous> (server/methods/players.tests.js:20:21)
    at run (packages/practicalmeteor:mocha/meteor/src/setup/SetupRunnables.js:113:18)

I have Meteor <IP_ADDRESS> and my packages are
meteor-base             # Packages every Meteor app needs to have
mobile-experience       # Packages for a great mobile UX
mongo                   # The database Meteor supports right now
session                 # Client-side reactive dictionary for your app
jquery                  # Helpful client-side library
tracker                 # Meteor's client-side reactive programming library

es5-shim                # ECMAScript 5 compatibility for older browsers.
ecmascript              # Enable ECMAScript2015+ syntax in app code

standard-minifier-css
standard-minifier-js
semantic:ui-css
blaze-html-templates
simple:rest
meteortoys:allthings
accounts-facebook
meteorhacks:kadira
stylus
accounts-ui-unstyled
practicalmeteor:mocha
xolvio:cleaner
dburles:factory
aldeed:simple-schema
hwillson:stub-collections
underscore
practicalmeteor:chai
practicalmeteor:sinon

Hi @Fabs - thanks for the issue; I'll take a look and get back to you shortly.

Thanks. Also maybe my title is now misleading. When I first wrote the issue I though the "meteor add underscore" would solve it, but it did not, also when I checked the package.js, I noticed there is "underscore" on the api.use.
Anyway, if you know what needs to be done but do not have time to do it, I could try to help with a PR.
Thanks for your work 👍

No problem @Fabs, I can take a look. So are you still seeing the Cannot read property 'bind' of null error, the Attempted to wrap _makeNewID which is already wrapped, or both? I don't see the same issues when I run the package tests so something must be conflicting somewhere. Can you give me an example of how you're calling StubCollections.add/stub and StubCollections.restore (some sample code from one of your tests would be great).

For instance, this test on a single sample.tests.js
/* eslint prefer-arrow-callback: "off" */
/* eslint import/no-unresolved: [2, { ignore: ["meteor"]}] */

import {expect} from 'meteor/practicalmeteor:chai';
import {sinon} from 'meteor/practicalmeteor:sinon';
import {Meteor} from 'meteor/meteor';
import {grantPointsBatch} from './players.js';
import StubCollections from 'meteor/hwillson:stub-collections';
import Players from '/imports/api/collections/players.js';

describe('testing some method', function() {
  before(function() {
    StubCollections.stub(Players);
  });

  after(function() {
    StubCollections.restore();
  });

  it('call my method', function() {
    expect(true).to.equal(true);
  });
});

if I just ctrl+c then run the  meteor test -p 4001 --driver-package practicalmeteor:mocha I get this:

If I reload the page, this:

I just played around now, if the code is instead:
 before(function() {     StubCollections.add(Players);     StubCollections.stub();   });
it works:

I think I have a hunch. I was testing without this package stubs, with a code similar to this one:
describe('some testing', function() {
  describe('that was here...', function() {
    beforeEach(function() {
      sinon.stub(Meteor, 'user', () => ({
        userId: Random.id(),
        profile: {name: 'Casper'},
      }));
    });

    afterEach(function() {
      sinon.restore();
    });

    it('some test', function() {
      //do_not_exist();
      expect(true).to.equal(false);
    });
  });
});

And I got the following error, when I reloaded the page after uncommenting the do_not_exist();

It appeared to me that because something went wrong during a test run, the sinon was never restored, and the next attempt to stub the same method, caused an error. (the wrap of the already wrapped). When I added the sandbox like this:
const sandbox = sinon.sandbox.create();
describe('some testing', function() {
  describe('that was here...', function() {
    beforeEach(function() {
      sandbox.stub(Meteor, 'user', () => ({
        userId: Random.id(),
        profile: {name: 'Casper'},
      }));
    });

    afterEach(function() {
      sandbox.restore();
    });

    it('some test', function() {
      do_not_exist();
      expect(true).to.equal(false);
    });
  });
});

It works all the time even during refreshes.

Great, thanks @Fabs - I've merged your changes in and will aim to get a new version published shortly. Thanks again!

1.0.1 is now published. Closing this off - thanks!


增加ts的支持

Checklist

[x] npm test passes
[x] tests and/or benchmarks are included
[x] documentation is changed or added
[x] commit message follows commit guidelines

Affected core subsystem(s)

Description of change

什么情况 ，为什么不合并呢

@whxaxes 这个 PR 进度如何？
@ShuaiShuaiguo 需要 Rebase 下

有进展吗？

没人维护了吗？进度就这么停着？

进展如何？

看底部，需要 rebase 处理冲突问题。

@ShuaiShuaiguo 方便处理下冲突吗？想升级到 egg-bin + egg-ts-helper 的方式，egg-graphql 加载的是 js 文件，导致 egg-bin dev 开发时 app/graphql 文件夹对应 js 文件不会自动生成

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #15   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           8      7    -1
  Lines         110     92   -18
=====================================
- Hits          110     92   -18

Impacted Files
Coverage Δ

app/extend/context.js
100% <ø> (ø)
:arrow_up:

app.js
100% <100%> (ø)
:arrow_up:

agent.js
100% <100%> (ø)
:arrow_up:

lib/loader/graphql-loader.js
100% <100%> (ø)

app/middleware/graphql.js
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d89ee5...045cc34. Read the comment docs.

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #15   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           8      7    -1
  Lines         110     92   -18
=====================================
- Hits          110     92   -18

Impacted Files
Coverage Δ

app/extend/context.js
100% <ø> (ø)
:arrow_up:

app.js
100% <100%> (ø)
:arrow_up:

agent.js
100% <100%> (ø)
:arrow_up:

lib/loader/graphql-loader.js
100% <100%> (ø)

app/middleware/graphql.js
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d89ee5...045cc34. Read the comment docs.

非常抱歉，由于工作原因且graphql项目始终无法落地，故关注度降低。egg-ts-helper支持请参照，希望提PR

@ShuaiShuaiguo 感谢，commits 可能需要 rebase 合并下，egg-ts-helper 后面我可以做下支持

自己整合了下代码。。。着急的童鞋可以用这个版本：
<EMAIL_ADDRESS>

https://github.com/eggjs/egg/issues/3092

大佬们，啥时候 ts 支持能落地啊 ...


Socket.DualMode throws System.PlatformNotSupportedException on the Mac OS

Hey, I tried to run some code on the Mac OS and it's giving me the aforementioned exception.
Unhandled exception. System.PlatformNotSupportedException: This platform does not support packet information for dual-mode sockets.  If packet information is not required, use Socket.Receive.  If packet information is required set Socket.DualMode to false.
   at System.Net.Sockets.SocketPal.CheckDualModeReceiveSupport(Socket socket)
   at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP)
   at RiptideNetworking.Transports.RudpTransport.RudpListener.Receive()
   at System.Threading.Thread.StartCallback()

Is it just not compatible with the Mac OS? How trivial would it be to disable DualMode?

Sorry for the late response—what code exactly are you running that's causing it? Does it happen for both server and client? I'll try to reproduce the problem at some point, but extra info would be helpful.

@spaceneb if you (or anyone else for that matter) can't provide any extra information about this issue, I'm going to have to close it due to inactivity as it's simply not something I can fix with the current level of information.
I've tried running both a server and a client (the ones from the dedicated server demo) on my MacBook, and it worked completely fine. I can run them and connect them as expected, with no exceptions or other errors popping up.
It's possible that the problem is specific to a certain version of MacOS, so the only way any progress can be made on this is if you let me know what kind of Mac you're using, what version of MacOS it's running, and what you're actually doing when you encounter this error (are you running a client? A server? Both? Etc.).
I also did some searching on the internet and was unable to find anything at all about dual-mode sockets not being supported on MacOS, so I literally have no other leads to help solve this problem.

I'm still unable to reproduce this issue, but I've now added an option to disable dual-mode sockets and instead use either only IPv4 or only IPv6 (see commits ddc3c4a0b45d265bb40906ba9770d00cbbcc8108 and ffb308f70c5ce53caaa9f2fcaf97f1378bb23d3c). The change will be part of v2.0.0 so I'm going to close this issue for now.

I also get this issue on Mac.
MacOS High Sierra (10.13.6), this git repo has produces the problem on my machine.

I've got the same issue, my Mac is MacBook Air M2. Running macOS Sonoma.
This is my server code.
`using Riptide;
public class NetworkManager
{
private Server _server;
private ushort _port;
private ushort _maxClients;

public NetworkManager(ushort port, ushort maxClients)
{
    _server = new Server();

    _port = port;
    _maxClients = maxClients;
}

public void Start()
{
    _server.Start(_port, _maxClients);

    Thread updateThread = new Thread(UpdateServer);
    updateThread.Start();
}

private void UpdateServer()
{
    while (true)
    {
        _server.Update();
    }
}

}`

I've got the same issue, my Mac is MacBook Air M2. Running macOS Sonoma.

Did you read this comment of mine? It doesn't look like you've disabled dual-mode...

It's not clear to me where exactly I need to disable it in Riptide.

Replace
_server = new Server();

with
_server = new Server(new UdpServer(SocketMode.IPv4Only));

And do the same for the client (but obviously with UdpClient instead of UdpServer).


'AzureSignTool.exe' is not recognized as an internal or external command

Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: DotNetCoreCLI@2
Issue Description
Previous issue was closed, but is still a major problem:
We are hitting this 100% in our environment today.
Task logs
https://dev.azure.com/cloudflare-ps/1111-desktop/_build/results?buildId=2302&view=logs&j=2d2b3007-3c5c-5840-9bb0-2b1ea49925f3

This started to happen in our private Pipelines too.

azure-pipelines.zip
@bishal-pdMSFT

Attached
Attached
Hosted
Will reply with that in a bit

@bishal-pdMSFT
azuresigntooltask_log.txt

Attached
Task:
  - task: DotNetCoreCLI@2  inputs:    command: 'custom'    custom: 'tool'    arguments: 'install --global azuresigntool'  displayName: Install AzureSignTool
Hosted
Will post as soon as I have it.

@bishal-pdMSFT
Here is #4 from your request (the PATH environment). We just hit this several more times today!!
2020-08-31T20:25:10.2947477Z C:\agents\2.174.1\externals\git\cmd;C:\Program Files\Mercurial\;C:\Program Files\MongoDB\Server\4.4\bin;C:\aliyun-cli;C:\ProgramData\kind;C:\vcpkg;C:\cf-cli;C:\Program Files (x86)\NSIS\;C:\Program Files\Mercurial\;C:\hostedtoolcache\windows\stack\2.3.3\x64;C:\ProgramData\chocolatey\lib\ghc.8.10.2\tools\ghc-8.10.2\bin;C:\Program Files\dotnet;C:\mysql-5.7.21-winx64\bin;C:\Program Files\R\R-4.0.2\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\Program Files (x86)\sbt\bin;C:\Rust\.cargo\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\hostedtoolcache\windows\go\1.14.7\x64\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\hostedtoolcache\windows\Ruby\2.5.8\x64\bin;C:\Program Files\Java\jdk8u265-b01\bin;C:\npm\prefix;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\ProgramData\Chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Docker;C:\Program Files\PowerShell\7\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.6.3\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\OpenSSL\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;c:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\TortoiseSVN\bin;C:\SeleniumWebDrivers\ChromeDriver\;C:\SeleniumWebDrivers\EdgeDriver\;C:\Program Files\CMake\bin;C:\Program Files\Amazon\AWSCLIV2\;C:\Program Files\Amazon\SessionManagerPlugin\bin\;C:\Program Files\Amazon\AWSSAMCLI\bin\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\VssAdministrator\AppData\Local\Microsoft\WindowsApps

Any update on this? 10 days since I provided above information. We are hitting this failure regularly.

Hi @anti-matter , I am investigating this, will update you

@anti-matter can you share the logs(with system.debug set to true) of the dotnetcorecli task where you are installing the tool? The logs you have shared are of the task where you want to execute this tool

Hi @tejasd1990,
Sorry for the delay, I needed to wait until we got a failure w/ debug logs enabled. Attached here.
install-sign-tool.txt

Hi @anti-matter , no worries.
The logs say that

Since you just installed the .NET Core SDK, you will need to reopen the Command Prompt window before running the tool you installed.

This is a dotnet sdk issue, discussed here, and from what I see in the discussion, does not provide a clean solution. Restarting the agent after installing the dotnet sdk is not possible/feasible.
You can workaround by adding the directories specified here to the path environment variable, or giving the full path of the tool executable.

Hi @anti-matter , ping!

@anti-matter AFAIK if you are using UseDotNet@2 task then this error should not happen. It sets environment path for global tools.

Hi, I’m not familiar with that task. Here is our current task:

task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'tool'
arguments: 'install --global azuresigntool'
displayName: Install AzureSignTool

Are you saying I should replace “DotNetCoreCLI@2” with “UseDotNet@2” ??
Thanks!
--Mike
Sent from Mail for Windows 10
From: Bishal Prasad
Sent: Sunday, September 27, 2020 12:34 AM
To: microsoft/azure-pipelines-tasks
Cc: anti-matter; Mention
Subject: Re: [microsoft/azure-pipelines-tasks] 'AzureSignTool.exe' is not recognized as an internal or external command (#13428)
@anti-matter AFAIK if you are using UseDotNet@2 task then this error should not happen. It sets environment path for global tools.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Closing stale issue. Please re-open if you are still facing this issue.

@bishal-pdMSFT  its not stale, there is a response, kindly reopen, experience of the same issue as well thanks

Adding @naga-bandi and @v-abajaj as their team owns this task now


Feature Request - Facedetailer output node / flow

I love how nice and clean everything is in the workflows but, especially now with version 4, it can be really hard to add in other flows.  Since you have everything going through your custom data flow there's no way to pull out all of the things one would need to use FaceDetailer from the ComfyUI-Impact-Pack.  How hard would it be to get a node that would take the data stream and output: model, clip, vae, positive prompt, and negative prompt?
Or have you considered adding something like FaceDetailer/Adetailer into your flows?
Thank you for the consideration!  And for the work you've put into this already, it's really nice and helps the community a ton.

It's planned for a future update to make it easier to hook into the flow of the nodes and add custom things.

That would be so nice. This pack is simply the best I ever used for Comfy

Yeah a brakeout node would be perfect. Ideally, all parameters of data should be optionally selectable.

yes please

Face Detailer/Adetailer are definitely needed!

second


Bug in Map with object keys

In Maps it is possible to use objects as keys and even to use the same key multiple times.
The latter will fail right now.
const a = new Map([[{}, {a:6}], [{}, {a:5}]])
const b = new Map([[{}, {a:6}], [{}, {a:5}]])
eq(a, b) // failure

[ EqualityFail {
    a: 6,
    b: 5,
    reason: 'A is not equal to B',
    path: [ 'a' ],
    showReason: false },
  EqualityFail {
    a: 5,
    b: 6,
    reason: 'A is not equal to B',
    path: [ 'a' ],
    showReason: false } ]

Yep, agree, as Map preserve order need to do ordered check.

Actually, I think Map and Set should always be considered unordered. This is also already the case for e.g.
const a = new Map([[1,1], [2, 1]])
const b = new Map([[2,1], [1, 1]])
eq(a, b) // true

Comparing unordered object keys is more complex though (ideally O(n log n) and with a simple implementation O(n^2)).

Yep, actually makes sense, so need just maintain Map behaviour is key the same use latest always.

Just thinking a bit more i stucked, i am trying to do there value comparison, but this is different references - and different keys. Need to think a bit more.


paymentmethodtoken in python

Help us help you
I'm working for a PSP and curently trying to add Gpay support for a python backend.
Is your feature request related to a problem?
The gpay doc ask to use tink to handle keysets and messages encryption/decryption with paymentmethodtoken.
The only integration of it that i found is in java.
Describe the solution you'd like
Having a equivalent of paymentmethodtoken in Python.
Describe alternatives you've considered

Additional context

Have you tried https://github.com/google-pay/tink-jni-examples/tree/master/TinkJNIPython?

@thaidn thanks for your reply,
I didn't know this package exist, thanks for it.
Sadly since it's a bridge to the java lib i'm not going to use it.
I'm curently making my own lib that use simple python with PyCryptodome

If you can share the code, I can help you review it.
On Wed, Nov 17, 2021 at 11:19 AM Bastien Bouchoux @.***>
wrote:

@thaidn https://github.com/thaidn thanks for your reply,
I didn't know this package exist, thanks for it.
Sadly since it's a bridge to the java lib i'm not going to use it.
I'm curently making my own lib that use simple python with PyCryptodome
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/tink/issues/552#issuecomment-971897040, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAB23AIYKZIN4M32PM5ASLUMP54PANCNFSM5HTEAZYA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
https://vnhacker.blogspot.com

thanks
i have to finish it first so hopefully in a week or two :+1:

in my quest of writing this lib i'm facing an issue with the message decryption part.
to give you more insignt to were i am:
Verify intermediate signing key => done
Verify payload signature => done
Decrypt payload content => doing
I have a hard time understanding what operations are done in the decryption process.
My understanding is that this process start with unsealECV2:
private String unsealECV2(String sealedMessage) throws GeneralSecurityException {
    JsonObject jsonMsg = JsonParser.parseString(sealedMessage).getAsJsonObject();
    validateECV2(jsonMsg);
    String signedMessage = verifyECV2(jsonMsg);
    String decryptedMessage = decrypt(signedMessage);
    validateMessage(decryptedMessage);
    return decryptedMessage;
  }

Is that true or am i totaly missing the actual way it works ?

Closing this due to inactivity. Please reopen this issue in https://github.com/tink-crypto/tink-py/issues if you have further questions/follow-up comments.


jsc.paths inconsistent with typescript behaviour

Describe the bug
The docs points out to the typescript site and I expect that swc will handle this settings as it works with typescript. But it is inconsistent in many ways.
For example, I have a project with three files:

src/index.ts
src/folder/file1.ts
src/folder/file2.ts

1 and 2 file with the content below.
In case of compiling 1 and 2 file I've got different behavior, depending on the config and file's path
baseUrl is ignored when several possible locations are provided
Output in this case:
// index.ts
import jq from "jquery";
import file from "./folder/file2";
console.log(jq, file);

// folder/file1.ts
import jq from "jquery";
import file from "folder/file2";
console.log(jq, file);

After looking at code and testing swc calls it is clear that baseUrl is not used for check for file existense. Also, it adds ./ to the import to check file existence that may resolve in some cases, but won't work in case nested directories (that might break imports for external packages).
Single possible location doesn't check for file existence
Output in this case:
// index.ts
import jq from "./jquery";
import file from "./folder/file2";
console.log(jq, file);

// folder/file1.ts
import jq from "../jquery";
import file from "./file2";
console.log(jq, file);

If there is only one location for paths, it will be used without any checks for file existence - code
Exact pattern checks only single location
You can specify list of possible locations inside jsc.paths, but according to source code and code swc checks only first entry. Also, it adds ./ to the import in some cases that might be wrong, as it should be resolved relative to baseUrl (that might break imports for external packages)
Input code
import jq from 'jquery';
import file from "folder/file2";

console.log(jq, file)

Config
{
  "module": {
    "type": "es6"
  },
  "jsc": {
    "parser": {
      "syntax": "typescript"
    },
    "baseUrl": "./src",
    "paths": {
      "*": [
        "./*",
        // to check fallbacks
        // "*"
      ]
    }
  }
}

Playground link
No response
Expected behavior
The behaviour should be the same as it works with typescript
Actual behavior
Some imports are ignore and some of them
Version
<EMAIL_ADDRESS>Additional context
Might be related to other issues: https://github.com/swc-project/swc/issues/1324, https://github.com/swc-project/swc/issues/2725 but these issues seems like more about specific use cases

Can you provide a complete repro?
I'm working on this, but I'm not sure what is the correct behavior

Can you provide a complete repro? I'm working on this, but I'm not sure what is the correct behavior

Sorry, I don't have anything else. When I created the issue I tried to replace some big internal project from babel to swc and during this I faced the problems on swc side. To figure things out I've tested some simple examples that I put in the description.
After all, I ended up with webpack plugin that utilizes tsconfig settings.


Rustic's Ale crash + dupe

Steps and video to reproduce below alongside single player crash report - Only SOMETIMES works in singleplayer.

Make an Ale quality greater than 0.5
Have the item you're wanting to duplicate and the Ale in your inventory
Disconnect and Reconnect to save your player data
Put the item you're wanting to duplicate in a storage container
Drink the Ale (Force Disconnects you from the server for Internal Server Error)
Reconnect to the server/World
Done

https://youtu.be/0pE7-0xSxP8
Crash log:
java.lang.NullPointerException: Ticking player
    at net.minecraft.entity.EntityLivingBase.onNewPotionEffect(EntityLivingBase.java:807)
    at net.minecraft.entity.player.EntityPlayerMP.onNewPotionEffect(EntityPlayerMP.java:1186)
    at net.minecraft.entity.EntityLivingBase.addPotionEffect(EntityLivingBase.java:751)
    at rustic.common.blocks.fluids.ModFluids$Anonymous$56dfa75b9d574b48bdeb0dbee12f18d1.affectPlayer(ModFluidsMixin.java:46)
    at rustic.common.blocks.fluids.FluidBooze.onDrank(FluidBooze.java:35)
    at rustic.common.items.ItemFluidBottle.onItemUseFinish(ItemFluidBottle.java:110)
    at net.minecraft.item.ItemStack.onItemUseFinish(ItemStack.java:222)

Log: https://mclo.gs/ZRgp7Dm
RLMixin config: https://github.com/Krutoy242/Enigmatica2Expert-Extended/blob/v1.45.0/config/rlmixins.cfg

You have ale set as giving a lycanitemob's effect in the rlmixin config, but don't have lycanitemobs installed.
Change the ale effect to a potion effect you actually have in the pack.

Oh, gotcha!
Would be great if unexisting potions not crashing game through 😅

The config that enables those changes is off by default, and the only reason for enabling it is to modify the drinks and what potion effect/timers they have, so the expectation is if you are enabled that change you are also modifying what effects it gives.


Tiny cleanup

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

LGTM

PTAL @disksing

LGTM


CI/CD updates: split integration and linting, integrated running example from built project

Seperated integration and linting tasks into two pipelines.
CI pipeline:

Runs on every pull request
Uses Poetry to build and install a package from the latest main branch code.
Tests the installed package by running the example scenario cosim_example.py, verifying file paths are set correctly.
Executes pytests

Linting-and-type-checking pipeline:

Runs on every commit
Runs mypy and ruff

Fixed paths in _data.py, cosim_example.py, and cosim_sil_example.py, by changing every occurrence of  from example._data import to from _data import. example is no module or package, so it should not be used as one.
Now, cosim_example.py can be run successfully after installing the Poetry-built 'vessim' package using python cosim_example.py.
Modified pyproject.toml to include dynamic versioning with a Poetry version plugin. The version number is specified to be extracted from a git tag.

Now I included the comparison between the resulting data.csv and the one present in the repo.
Currently the resulting data.csv differs from the present one, this is why the ci pipeline fails.
And I moved the tests to the linting-and-tesing pipeline.


fix(audit): prevent report generation before hashes computation

Download Artifacts :

win-ia32
win-x64
linux-x64


HIVE-24625 CTAS non transactional table loads data from incorrect path (amagyar, rajkrrsingh)

When table is created using CTAS, with transactional=false, data is loaded in managed location where as table metadata has location pointing to external location, resulting in 0 rows when querying the table.
cc: @rajkrrsingh, @nrg4878

@zeroflag @nrg4878 is this ready to merge?

Fix has been merged to master.


Nested Metadata filtering broken

I used to filter metadata with the similiarity_search_with_relevance_scores method. The filter I use is: {'file_metadata': {'modified': {'$between': [datetime.date(2022, 3, 21), datetime.date(2024, 5, 21)]}}, 'source': 'internet'}.
I would expect the filter to be working, since it reflects my metadata in postgres which has following format:
"source": "xyz",     "content": null,     "file_url": "https://xyz.pdf",     "filename": "xyz.pdf",     "mime_type": "mime_type",     "file_metadata": {         "title": "Test",         "author": "Santa Clause",         "created": "2024-04-23T08:38:54",         "subject": "",         "version": "",         "category": "",         "comments": "",         "keywords": "",         "language": "",         "modified": "2024-04-23T08:38:54",         "revision": 188,         "identifier": "",         "last_printed": "",         "content_status": "",         "last_modified_by": "elv"     },     ....
That was working before, however now i get the error ValueError: Invalid operator: modified. Expected one of {'$between', '$ilike', '$lt', '$gt', '$gte', '$lte', '$ne', '$or', '$and', '$exists', '$in', '$eq', '$like', '$nin'}
Am I missing something on how to create the filters or is the feature broken?
Current Versions:
langchain~=0.1.16
langchain-community~=0.0.36
langchain-core~=0.1.52
langchain-openai~=0.0.8
langchain-postgres~=0.0.6

Don't think this supports nested metadata right now. Someone can pick that up as a feature to add.
I don't know whether the above syntax makes sense or whether it would need to be modified to use a List[str] for specifying paths. The main question is whether the syntax is self-consistent.


Can we use [?, !, * ] as keywords?

In vs code there is plugins that marks   [?, !, * ]  - symbols as  [hack,  warning, note].
I tried to put them in  todo-comments keywords, but no luck.  I also tried escaping   with  "\\!"  but it still wont work. Any idea how to setup 'todo-comment' config  keywords so they would work on code like below:
 #!   this is warning
 #?  will this work

For future reference  using  * and ! works as marks for comments  ( eg:  # !  warning   - will be marked as warning )
Only  ?  wont work and this is due to some calling vim api from lua conversion problem.  Io todo-comments.nvim  folke is using vim regex to match the keywords.  Something like this in vim works:
echo match('#? ads', '\v(!|*|\?)')   - it will detect ? ok  - notice we have to escape ?
But in lua :
lua vim.api.nvim_eval([[echo match('#? ads', '\\v (!|*|\\?)')]]))  - wont work  - I think because in LUA we have to escape \ - so we endup with matching to  '\?' rather than '?'
In the todo-comments plug folke is using something similar to what we have above and it also fails:
vim.fn.matchlist('#? ads', [[\v(!|*|\\?):*]]) So there seems to be no nice way to  use escaped ?  in lua and use it in vim api call.
NOTE:  I think * works only because when it is at begining of match string it is treated as literal * character and not as special one.
`


Collapsible does not rerender properly

Basically I have a parent component that passes data to a child component within a Collapsible as such:
			<Collapsible collapsed={isCollapsed}>
				<BusStop busStopData={busStopData} />
			</Collapsible>

On busStopData changed, the component doesn't rerender properly i.e, blank text for those properties of busStopData which were changed. When I removed the Collapsible component, the BusStop component rerenders correctly.

Any workaround for this? Looks like this repo is not being maintained.

no workaround so far

Same here.

Hi, I tried to reproduce this bug but I'm not able to. Can you provide a minimal example that I can investigate?

@oblador I found that adding flex: 1 to a child component could introduce flickering or height measurements bugs.
I improved on the implementation of Collapsible with reanimated. It has been working without issue on a 30K MAU app.
Do you think we could migrate this package to reanimated?
This is my implementation:
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { ViewPropTypes } from './config'
import Animated, { Easing } from 'react-native-reanimated'

export default class Collapsible extends Component {
  static propTypes = {
    children: PropTypes.node,
    collapsed: PropTypes.bool,
    duration: PropTypes.number,
    style: ViewPropTypes.style,
    onAnimationEnd: PropTypes.func,
    collapsedHeight: PropTypes.number,
    enablePointerEvents: PropTypes.bool,
    align: PropTypes.oneOf(['top', 'center', 'bottom']),
    easing: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
  }

  static defaultProps = {
    align: 'top',
    duration: 120,
    collapsed: true,
    collapsedHeight: 0,
    easing: 'easeOutCubic',
    enablePointerEvents: false,
    onAnimationEnd: () => null,
  }

  constructor(props) {
    super(props)
    this.state = {
      measured: false,
      animating: false,
      measuring: false,
      contentHeight: 0,
      height: new Animated.Value(props.collapsedHeight),
    }
  }

  componentDidUpdate(prevProps) {
    if (prevProps.collapsed !== this.props.collapsed) {
      this.setState({ measured: false }, () => this._componentDidUpdate(prevProps))
    } else {
      this._componentDidUpdate(prevProps)
    }
  }

  componentWillUnmount() {
    this.unmounted = true
  }

  _componentDidUpdate(prevProps) {
    if (prevProps.collapsed !== this.props.collapsed) {
      this._toggleCollapsed(this.props.collapsed)
    } else if (this.props.collapsed && prevProps.collapsedHeight !== this.props.collapsedHeight) {
      this.state.height.setValue(this.props.collapsedHeight)
    }
  }

  contentHandle = null

  _handleRef = ref => {
    this.contentHandle = ref
  }

  _measureContent(callback) {
    this.setState(
      {
        measuring: true,
      },
      () => {
        requestAnimationFrame(() => {
          if (!this.contentHandle) {
            this.setState(
              {
                measuring: false,
              },
              () => callback(this.props.collapsedHeight),
            )
          } else {
            this.contentHandle.getNode().measure((x, y, width, height) => {
              this.setState(
                {
                  measuring: false,
                  measured: true,
                  contentHeight: height,
                },
                () => callback(height),
              )
            })
          }
        })
      },
    )
  }

  _toggleCollapsed(collapsed) {
    if (collapsed) {
      this._transitionToHeight(this.props.collapsedHeight)
    } else if (!this.contentHandle) {
      if (this.state.measured) {
        this._transitionToHeight(this.state.contentHeight)
      }
      return
    } else {
      this._measureContent(contentHeight => {
        this._transitionToHeight(contentHeight)
      })
    }
  }

  _transitionToHeight(height) {
    const config = {
      toValue: height,
      duration: 150,
      easing: Easing.inOut(Easing.ease),
    }

    const config2 = {
      toValue: 0,
      duration: 150,
      easing: Easing.inOut(Easing.ease),
    }

    this._animIn = Animated.timing(this.state.height, config)
    this._animOut = Animated.timing(this.state.height, config2)
    this.setState({ animating: true })
    if (height === 0) {
      this._animOut.start(({ finished }) => {
        if (finished) {
          this.setState({ animating: false })
        }
      })
    } else {
      this._animIn.start(({ finished }) => {
        if (finished) {
          this.setState({ animating: false })
        }
      })
    }
  }

  _handleLayoutChange = event => {
    const contentHeight = event.nativeEvent.layout.height
    if (
      this.state.animating ||
      this.props.collapsed ||
      this.state.measuring ||
      this.state.contentHeight === contentHeight
    ) {
      return
    }

    this.state.height.setValue(contentHeight)
    this.setState({ contentHeight })
  }

  render() {
    const { collapsed, enablePointerEvents } = this.props
    const { height, measuring, measured } = this.state
    const hasKnownHeight = !measuring && (measured || collapsed)
    const style = hasKnownHeight && {
      overflow: 'hidden',
      height: height,
    }
    const contentStyle = {}
    if (measuring) {
      contentStyle.position = 'absolute'
      contentStyle.opacity = 0
    }
    return (
      <Animated.View style={style} pointerEvents={!enablePointerEvents && collapsed ? 'none' : 'auto'}>
        <Animated.View
          ref={this._handleRef}
          style={[this.props.style, contentStyle]}
          onLayout={this.state.animating ? undefined : this._handleLayoutChange}
        >
          {this.props.children}
        </Animated.View>
      </Animated.View>
    )
  }
}

@wmonecke Hi, unfortunately your code introduces regressions. I found that there is actually very little changes one has to do to make it work. Would you be able to try this PR out for me in your project? https://github.com/oblador/react-native-collapsible/pull/401

I solved it by not using {flex: 1} in the children of the Collapsible.


Develop add trace subcommand

This PR adds the ability to get core images of gridlabd jobs while they are running.
Current issues

This does not allow an automatic core dump of an unexpected crash.

Code changes

[x] Add gldcore/scripts/gridlabd-trace subcommand.

Documentation changes

[x] /Subcommand/Trace

Test and Validation Notes
This cannot be validated as part of gldcore/autotest. The easiest way to test this is to run a realtime simulation are try the save, debug, and dump commands on it. Note that the trace subcommand usually requires system privileges. Using sudo is sufficient to gain the necessary permissions.
Here is a simple example:
File test.glm:
#set run_realtime=1
#set show_progress=FALSE
class test
{
	randomvar x;
}
object test
{
	x "type:normal(0,1); refresh:1s";
}

/bin/bash commands:
host$ gridlabd test.glm &
host$ gridlabd --plist
   0   211         -  Running 2020-09-30 20:25:42 UTC test.glm
host$ sudo gridlabd trace save 0
Password: ************************
Dumping core for pid 211 to gridlabd-core. 211
Writing 102 segments
Wrote 2.0Gi to corefile (memory image 2.0Gi, zfod 120Mi)
host$ ls -l gridlabd-core*
-rw-r-----  1 user<PHONE_NUMBER><PHONE_NUMBER> Sep 30 20:25 gridlabd-core.211
host$ sudo gridlabd trace debug 0
(lldb) process attach --pid 211
Process 211 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff6d3d7756 libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
->  0x7fff6d3d7756 <+10>: jae    0x7fff6d3d7760            ; <+20>
    0x7fff6d3d7758 <+12>: movq   %rax, %rdi
    0x7fff6d3d775b <+15>: jmp    0x7fff6d3d622d            ; cerror
    0x7fff6d3d7760 <+20>: retq
Target 0: (gridlabd.bin) stopped.

Executable module set to "/usr/local/opt/gridlabd/4.2.12-200930-develop_add_trace_subcommand/bin/gridlabd.bin".
Architecture set to: x86_64h-apple-macosx-.
(lldb) quit
Quitting LLDB will detach from one or more processes. Do you really want to proceed: [Y/n] y
host$ sudo gridlabd trace dump 0
Dumping core for pid 211 to gridlabd-core.211
Writing 122 segments
Wrote 2.0Gi to corefile (memory image 2.0Gi, zfod 120Mi)
(lldb) target create "/usr/local/opt/gridlabd/4.2.12-200930-develop_add_trace_subcommand/bin/gridlabd.bin" --core "gridlabd-core.211"
Core file '/Users/dchassin/github/gridlabd/gridlabd-core.211' (x86_64) was loaded.

(lldb) bt
* thread #1, stop reason = signal SIGSTOP
    frame #0: 0x00007fff6d3d7756 libsystem_kernel.dylib`__semwait_signal + 10
    frame #1: 0x00007fff6d35aeea libsystem_c.dylib`nanosleep + 196
    frame #2: 0x00007fff6d35ade4 libsystem_c.dylib`usleep + 53
  * frame #3: 0x000000010779e497 gridlabd.bin`GldExec::exec_start(this=<unavailable>) at exec.cpp:2519:6 [opt]
    frame #4: 0x000000010779d873 gridlabd.bin`::exec_start() at exec.cpp:241:34 [opt] [artificial]
    frame #5: 0x000000010779cdbf gridlabd.bin`::environment_start(argc=2, argv=0x00007ffee847c800) at environment.cpp:34:7 [opt]
    frame #6: 0x00000001077f0017 gridlabd.bin`GldMain::mainloop(this=0x00007fa240809a00, argc=2, argv=0x00007ffee847c800) at main.cpp:210:6 [opt]
    frame #7: 0x00000001077efe70 gridlabd.bin`main(argc=2, argv=0x00007ffee847c800) at main.cpp:57:31 [opt]
    frame #8: 0x00007fff6d293cc9 libdyld.dylib`start + 1
(lldb) var
(GldExec *) this = <variable not available>
(STATUS) fnl_rv = FAILED
(int) pc_rv = <variable not available>
(long long) tsteps = 2
(long long) passes = 2
(time_t) started_at =<PHONE_NUMBER>
(OBJSYNCDATA *) thread = 0x0000000000000000
(bool) setTP = false
(INDEX **) ranks = 0x00007fa2404675a0
(int) j = <variable not available>
(int) nObjRankList = <variable not available>
(int) iObjRankList = <variable not available>
(LISTITEM *) ptr = <variable not available>
(int) incr = <variable not available>
(int) rc = <variable not available>
(int) k = <variable not available>
(const char *) msg = <variable not available>
(TIMESTAMP) t = <variable not available>
(DELTAMODEFLAGS) flags = <variable not available>
(DT) delta_dt = <variable not available>
(TIMESTAMP) internal_synctime = <variable not available>
(timeval) tv = (tv_sec =<PHONE_NUMBER>, tv_usec = 640)
(double) metric = 0
(lldb) quit
host$ gridlabd --pkill 0
host$ gridlabd --plist
host$

The trace command was successfully used to identify the problem with the TESS realtime simulation.  See #769.


TypeError: instance has no next() method

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/utils/data_utils.py", line 630, in data_generator_task
generator_output = next(self._generator)
Traceback (most recent call last):
File "/home/a504/pycharm-community-2017.2.4/helpers/pydev/pydevd.py", line 1599, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/a504/pycharm-community-2017.2.4/helpers/pydev/pydevd.py", line 1026, in run
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/home/a504/PycharmProjects/keras_LRCN/train.py", line 111, in
main()
File "/home/a504/PycharmProjects/keras_LRCN/train.py", line 108, in main
load_to_memory=load_to_memory, batch_size=batch_size, nb_epoch=nb_epoch)
File "/home/a504/PycharmProjects/keras_LRCN/train.py", line 82, in train
workers=4)#表示使用线程数
File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 1223, in fit_generator
initial_epoch=initial_epoch)
File "/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 2083, in fit_generator
generator_output = next(output_generator)
StopIteration
I prepare the data and run train.py using LRCN model ,but it just get this error.I am new in this and don't know how to debug.I would very appreciate if someone could help.

I was able to reproduce your error. Let's wait for @harvitronix to comment on that. But for now, if you want to get going, you can set load_to_memory in train.py (Line 91) to True. Disclaimer: this will take additional memory, for obvious reasons.

Actually,I have found the solution in stackoverflow,but I am to busy to post here.This is the solution web https://stackoverflow.com/questions/5982817/problems-using-next-method-in-python.
If you get this solution and still get this error ,maybe it is because your image root is wrong which make the image can't be read into the array.

Hi I'm having this error
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in
_bootstrap_inner
self.run()
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864, in
run
self._target(*self._args, **self._kwargs)
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\utils\d
ata_utils.py", line 579, in data_generator_task
generator_output = next(self._generator)
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\data.py", line 25, in n
ext
return next(self.iterator)
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\data.py", line 191, in fr
ame_generator
y.append(self.get_class_one_hot(sample[1]))
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\data.py", line 103, in ge
t_class_one_hot
assert len(label_hot) == len(self.classes)
AssertionError
Traceback (most recent call last):
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\train.py", line 110, in <
module>
main()
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\train.py", line 107, in m
ain
load_to_memory=load_to_memory, batch_size=batch_size, nb_epoch=nb_epoch)
File "C:\Users\Munic\Documents\Popping-Dance-Style-Classification\train.py", line 81, in tr
ain
workers=4)
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\legacy
interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\models.
py", line 1156, in fit_generator
initial_epoch=initial_epoch)
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\legacy
interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Users\Munic\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine
training.py", line 2046, in fit_generator
generator_output = next(output_generator)
StopIteration
I'd like to ask what could have went wrong. Btw, I am using python 3.6.3.

Hello,
Did anybody find a solution to this, for python 3?
Any help would be appreciated.

I was able to reproduce your error. Let's wait for @harvitronix to comment on that. But for now, if you want to get going, you can set load_to_memory in train.py (Line 91) to True. Disclaimer: this will take additional memory, for obvious reasons.

Does this seem to help for now?

If you hit this error just assign the missing next function to the python3 function:
            next = __next__


[feat] Remove UNC prefix from paths returned in public apis

Describe the problem
Currently our APIs (most of them moved to plugins i guess) still return UNC paths on Windows. For those unaware, those paths start with \\?\.
Most ecosystems seem to have problems with that, this includes the js frontend but also a multitude of sidecars. We've also already received reports about things built into Windows not being able to handle those.
Describe the solution you'd like
use dunce everywhere to safely remove the prefix. I doubt that this will cause any issues but even if, it'd be still less than the unc paths cause lol
Alternatives considered
do nothing and keep blaming the other languages' ecosystems for not being able to handle unc paths.
Additional context
No response

/upstream tauri-apps/plugins-worksapce

/upstream tauri-apps/plugins-workspace

you had a typo there

Do you have a list of APIs that are affected by this? preferably we should leave the Rust APIs as is and only use dunce on values returned to JS

Nope, no list, though i hope we simply return PathBuf's everywhere so it should be easy to spot. I can go through all plugins no problemo, just wanted to have this tracked :)

yeah we definitely need to get a list ASAP and work on fixing them before v2 stable

weren't that many apis after all. Either it changed compared to v1 or the complains i received were always about the same 2 apis 😂


Create RxJS bridge.

It would be good to be able to automatically subscribe ts-bus to an RxJS observable or create an observable from RxJS. This should increase adoption due to interoperability. This could then act as an RxJS -> React Hooks bridge

Yea, it could be nice to write
this.bus.subscribe(event, () => {}).pipe(throttle...);


Creating on campus landing page

Trello card
https://trello.com/c/oNDULNHT
Context
The on-campus team will be running activity from early September. We want to create a landing page to encourage mailing list sign-ups.
Changes proposed in this pull request

created page

Guidance to review

Looks good @philspray !
Just to put a slight spanner in the works, I wonder if the URL needs changing (again!)?
The on campus team talked about pointing people to mailing list, events and adviser signups so I could see a scenario whereby we have separate landing pages for all three, so perhaps it might make more sense to name them along the lines of campus-mailing-list, campus-events and campus-adviser?
I also suspect the on campus team might want a pink h1 background rather than purple but I'll leave you to discuss that with them!


Sense 2.0 causes infinite menu loading on EFT 0.15 with SPT 3.9

When AmandsSense.dll and Sense folder are in the plugins full screen game becomes windowed and game loads infinitely. Game and Spt versions in the title. Thanks.
heres Logs/Errors code
2024.09.14_8-51-50_<IP_ADDRESS>.32197 errors.log
and heres FullLogOutput form Belpinex
FullLogOutput.log

Sense 2.0.0d is for SPT 3.9 only, Sense doesn't support EFT 0.15, SPT 3.10 yet


Feature request: support clearing scoped/caches for testing

Use case
We're testing our code with mocked AWS services using moto (rathe, and it works well. However, powertools provides various caches that are great for production, but cause unintended linkage/interference between tests. We're hitting this particularly in aws_lambda_powertools.utilities.parameters.get_secret, but it applies to other parts of that module, and likely any other global caches built into this package.
It'd be nice to be able to run tests isolated without having to manually write force_fetch=running_in_tests() or similar everywhere.
Solution/User Experience
Some method for clearing caches. For instance, a global aws_powertools_lambda.clear_caches() or aws_powertools_lambda.utilities.parameters.clear_caches(). Tests could then have set-up that calls that to ensure each one has a fresh environment.
Alternative solutions
Alternatives:

- an environment variable that disables caching entirely, which can be set during tests runs (not so good because the deployed behaviour differs)
- using [`contextvars`](https://docs.python.org/3/library/contextvars.html) to have the "global" caches actually be scope-able (this seems complicated)

Acknowledgment

[X] This feature request meets Lambda Powertools Tenets
[ ] Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript

As workaround for now we've got a pytest fixture that pokes into the internals of this package:
import aws_lambda_powertools.utilities.parameters.base

# FIXME: https://github.com/awslabs/aws-lambda-powertools-python/issues/1092
@pytest.fixture(autouse=True)
def clear_powertools_cache() -> None:
    for v in aws_lambda_powertools.utilities.parameters.base.DEFAULT_PROVIDERS.values():
        v.store.clear()

Uh, @huonw that makes sense, i have run into the same kind of issue, and did implement force_fetch option.

This is closer to a bug, as testing should be something that is easier to do for parameters feature.

thanks for flagging it @huonw :) @mploski is working on our end-to-end tests POC, and we should be able to address it as part of a much wider testing improvements we're looking to make.
Thanks a lot again

Michal encountered a few performance challenges in the E2E POC, so I'm gonna expedite this one for today's release; PR incoming soon

Done, should be available in today's release shortly.


Signup functionality

Added Login.js file, made minor change to .eslintrc.json page.

Fixed table name in passport.js and cleaned up some lint errors.

Added copy right info to background image.


Simplify access to reflections in SymfonyCmfRoutingInClassMethodSignatureRule and TestClassesProtectedPropertyModulesRule.

PHPStan added the ability to access reflection objects from many of it's virtual nodes which guarantees they will be there, avoiding the need to do these checks.

Thanks for helping clean up!


fix broken link to combined-flow.json

Just noticed that the link to combined-flow.json wasn't updated when the file structure changed, so I fixed it.

Wait so it wasn't working?
On Jul 22, 2015 11:07 AM, "John Leszczynski"<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Just noticed that the link to combined-flow.json wasn't updated when the
file structure changed, so I fixed it.
You can view, comment on, or merge this pull request online at:
https://github.com/codefordc/clean-slate/pull/99
Commit Summary

docs: fix broken link to combined-flow.json

File Changes

M README.md
https://github.com/codefordc/clean-slate/pull/99/files#diff-0 (2)

Patch Links:

https://github.com/codefordc/clean-slate/pull/99.patch
https://github.com/codefordc/clean-slate/pull/99.diff

—
Reply to this email directly or view it on GitHub
https://github.com/codefordc/clean-slate/pull/99.

Just a link in the README -- this is a very minor change, but I thought I might as well fix it.
In the combined-flow.json section of the README, the link to the json file is currently broken.