Truncating behavior is confusing and forces allocations

I expect the following test to pass:
#[test]
fn append() {
    let mut buf = "hello world".to_string();
    bs58::encode(&[92]).into(&mut buf).unwrap();
    assert_eq!("hello world2b", buf.as_str());
}

Instead, it fails, as the buf contains just "2b". That is, encoding discards existing data, rather than appending to it.
There are two problems with it:

it is surprising behavior. Standard library APIs like read_line always append. If overwriting is desired, the caller can call .clear()
it forces can force an allocation, if the user actually wants to append data to some existing buffer. This comes up when, for exmple, using sri-encoding hashes: "<algo-name>-<base58 encoded bytes>".

Agreed. Should be a pretty easy change and I think worth a breaking release.

Would you expect the same when decoding into a &mut Vec<u8> (vs &mut [u8])?
#[test]
fn append() {
    let mut buf = b"hello world".to_owned();
    bs58::decode("a").into(&mut buf).unwrap();
    assert_eq!(b"hello world!", buf.as_ref());
}

#[test]
fn no_append() {
    let mut buf = b"hello world".to_owned();
    bs58::decode("a").into(buf.as_mut()).unwrap();
    assert_eq!(b"!ello world", buf.as_ref());
}

For Vec<u8>, I'd expect expect the same behavior as for String -- append the end.
For &mut [u8], I'd expect the same behavior as char::encode_utf8 -- overwrite the prefix, return the str slice of the data actually written.

Returning an &str would require checking/asserting utf-8 validity at that point, if you're doing more ASCII-only processing on the buffer (or never actually asserting it is a string) then you might want to delay that.

Hm, I think base58 guarantees that the encoded result is utf8, so no additional validation is necessary? If this assumption is correct, that returning &mut str allows the calling code to avoid utf8-validation and bounds checking. In any case, returning just usize signifying the amount of bytes written would be fine as well. Maybe retuning usize is even better: I wager that the main benefit for char's return type is not actaully eliding the check, but just basic conveniecne for cases where you'd want to encode char to a local [u8; 4], and then do something with the resulting string.

Yeah, it wouldn't need validating since the API guarantees it's ASCII, but I want to minimize the unsafe code here (currently the only unsafe code used is the bare minimum necessary to actually work with &mut str).


Revert "Bump pyo3 from 0.12.4 to 0.13.1 (#224)"

This commit reverts the version bumps for pyo3, numpy, and ndarray. The
3 changes here required increasing the minimum supported rust version
from 1.39.0 to 1.45.0. While for most developers and use cases this is
fine since 1.45.0 is > 6 months old and most packagers/distributors keep
the rust version up-to-date. One known exception to this though is the
debian 10 rustc package is at 1.41.0. This becomes an issue for
raspberry pi users running a 32bit operating system (the aarch64
manylinux wheels on PyPI work fine for 64bit OS rasberry pi users).
The piwheels project is using the debian 10 package which means to
provide prebuilt wheels of retworkx they need to be able to use rustc
1.41.0 to build.
When weighing the features of this version bump (the big thing for our
use case are better type error messages when calling retworkx from
python) that this version bump would require all raspberry pi users
to switch back to building retworkx from source on 32bit Raspberry Pi OS
when retworkx on piwheels was only a recent addition we should wait at
least one more release before bumping the minimum support rust version.
Hopefully the debian rustc version will be bumped to >=1.45.0 at some
point soon and then this issue goes away.
This reverts commit a3249f0825028c1799984547e9c62bcd2cef89ab.

Pull Request Test Coverage Report for Build 506123504

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.845%

Totals

Change from base Build 502314076:
0.0%

Covered Lines:
3091

Relevant Lines:
3259

💛  - Coveralls

Pull Request Test Coverage Report for Build 506123504

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.845%

Totals

Change from base Build 502314076:
0.0%

Covered Lines:
3091

Relevant Lines:
3259

💛  - Coveralls


about CalTech dataset

When i using the CalTech Pedestrian dataset to test, I get the SSIM 0.93 that is higher than the paper got, I think it is because the frame rate is not match the KITTI dataset, so can you tell me what your process in the CalTech data, what is the frame rate?

For CalTech, I downsample in time by a factor of two to make it match the frame rate of KITTI.  The only other processing is cropping and resizing to 128x160.

I notice that the CalTech frame rate is 30帧/sec，and the kitti frame rate is 10帧/sec。when I downsample in time by a factor of two i got the SSIM 0.90. i still can not understand why? can you release  the code that using the CalTech test? Thank you very much!!

Sorry I meant downsample by factor of 3 (to match kitti frame rate - as mentioned in the paper)

ok, thank you very much! can I ask you what part of the dataset that you use?

I use the set06-set10

No problem.  I used sets 6-10, which is the test partition if I recall correctly.


userManagment.listAuthFactors

Hey
I have recently migrated a small internal application to Work OS, I am trying to currently implement a MFA using totp, but unfortunately the documentation is severely lacking some crucial information.
So I am using NextJS (still on the pages router instead of the app), from my understanding the flow of MFA in workOS goes like this

Enroll a user in MFA
Display the QR Code and let users scan through an authenticator app.
Challenge the factor
Verify the factor

While all this makes sense and I managed to put together an implementation that works but the issue is
 const challenge = await workos.mfa.challengeFactor({
      authenticationFactorId: mfaId,
    })

So this doesn't make any sense at all? the authenticationFactorId will change everytime a new enrollment is done, how can I possibly keep track of it?
In the docs, I also came across the following
  const user = await workos.userManagement.listAuthFactors({
    userId,
  })

I have tried using this method several times but I end up with the following error
UnprocessableEntityException: The following requirement must be met:
        property userId should not exist

Hey @ArifAA14, the flow you mentioned is almost correct. A more accurate description would be:

Enrol user in MFA
Display the QR Code and let users scan through an authenticator app
Authenticate with the TOTP

The challenge step would only come when a user that's already enrolled with MFA tries to log in with a password but gets the mfa_challenge error.
I agree that the docs aren't where they should be when it comes to MFA, however you might find the AuthKit example app useful to see how the flow works: https://github.com/workos/authkit/tree/main/src/app/using-your-own-ui/mfa

Hey @PaulAsjes, thank you for getting back and the example did help a lot!
I managed to implement it somehow, so many thanks for all the help


Edit "Welcome to Arches Resource Editor" text

Can we edit the "Welcome to Arches Resource Editor" text?

Not priority anymore.


fix(ts-rainbow-background): fix guibg highlight

return "NONE" instead of nil

Checked the last PR incorrectly and forgot to remove my personal highlight group override. Sorry about that!


Report SDK test status even on failure

Right now if the tests fail here, the status is never reported, but the status should be reported as failing. This update should make that happen 🤞🏻

Nice find

Initial research suggested using always() && more_stuff would work, but it looks like always() is winning here. Hopefully there is a simple fix.


Need to specify two-digit year

On small screens with big text size year overflows to 20...
Need ability to use two-digit year or overflow to ...19

Thank's, Add the twoDigitYear attribute to support it


Add Discord link

I thought it would be under twitter, but I don't know if this is possible, we could do other anchors as real anchors and maybe then it would be sorted as we want


SRP Advertising Proxy Thread 1.3 Certification Question

Describe the bug A clear and concise description of what the bug is.
Thread 1.3 Certification Test 2.1 is failing for the BR DUT on step 10 when an SRP Update is sent by the End Device.
Initially, SRP client is registering the host with 2 addresses, OMR and ML-EID, then it performs an SRP Update for the service, but this time only the ML-EID address is used.
SRP Update is refused two times [correlated with Response Timeout error from advertising proxy log] and it seems to be accepted only after the update announcements are performed. What would be the problem if the SRP Update will be accepted from first attempt?
SRP Advertising Proxy module is only adding addresses for a host if those are not link local or mesh local.
If there are no such addresses in the SRP Update, the mDNS module will then unregister that specific host and will announce the removal of the old addresses.

Second question is why the services that have been associated with that host are still kept and listed using "mdns services", when that host is not anymore present in "mdns hosts" output command?

To Reproduce Information to reproduce the behavior, including:

Git commit id
IEEE 802.15.4 hardware platform : not platform dependent
Build steps
Network topology : As described in test plan.

Expected behavior A clear and concise description of what you expected to happen.
Console/log output If applicable, add console/log output to help explain your problem.

Thanks @Cristib05 for reporting this.
I think there may be an issue in native mDNS when registering host with no address (which is then treated as unregistering the host), that the callback may not be invoked. I will submit a PR to update the code to address this.

Submitted

https://github.com/openthread/openthread/pull/10264


Feedback and issues with Managing Users in PKS with UAA section in our docs

After enabling UAA as OIDC provider the note mentions

In order for cluster admins to grant cluster access to Kubernetes end users, cluster
admins must ensure that they have selected Enable UAA as OIDC provider
in the UAA section of the PKS tile. Once you enable OIDC, you must run
get-credentials again to update your existing kubeconfig.

For cluster admins that have upgraded their clusters,  running pks get-credentials is not enough. They will also need to generate their own kubeconfig by following steps mentioned here. This needs to be specifically called out in the documentation.
Grant Cluster Access

This starts with a diagram depicting a three persona workflow. From the diagram, it looks like this section is only for LDAP users, which is not true. There should be a parallel track in the diagram showing the workflow for users utilizing internal uaa as OIDC provider.
To configure properties mentioned [here] more examples should be provided with a sample kubeconfig. Currently, for a user new to OIDC changes it can be challenging to place these properties in a JSON context without examples.

@outofmem0ry

Do you mean to link from the first part of the documentation to the part where naomis flow is describe? In every case for Codys and Naomis calling get-credentials again is enough (and required) to get access back to the cluster. Codys then need to follow the documentation at the link you added for generating a kubeconfig for Naomi.
The following diagram outlines the workflow you use to grant cluster access to a user who belongs to an LDAP group:  Due to a limitation in UAA LDAP is required to use groups in OIDC. It's possible to give access to single naomis to the cluster using cluster role binding but we expect the use case of groups for the customers and most of the user using always LDAP as identity provider for UAA. Maybe it make sense to move the chart to another location or make it more generic.

Grant Cluster Access to a User section is valid for both UAA and UAA+LDAP installation
Grant Cluster Access to a Group is instead only dedicated to UAA+LDAP installation (due to UAA limitation)

I am not sure how much detail we need to get into kubernetes specific documentation, everything is available and updated at the link in the docs to k8s docs For more information, see RoleBinding and ClusterRoleBinding in the Kubernetes documentation.

@outofmem0ry I'm closing this issue because I believe these items have been addressed. Thanks.


Add readme

This adds a README.md file with a short explanation of the project scope, an invite link to the Discord channel, and build instructions.

Good start. I'll look at expanding it in the future


[CX-1564] Adding inEditorialFeed: true to articlesConnection for all Fair and Other Queries

The type of this PR is: Enhancement
This PR resolves [CX-1564]
Description
Adding inEditorialFeed: true to articlesConnection for all Fair and Other Queries. Please only merge this PR after the one from  metaphysics#3291.
( cc @pvinis )
PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[ ] I have tested my changes on iOS and Android.
[ ] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

Changelog updates
Changelog updates
Dev changes

Adding inEditorialFeed: true to articlesConnection for all Fair and Other Queries.

This PR contains the following changes:

Dev changes (Adding inEditorialFeed: true to articlesConnection for all Fair and Other Queries.)

  Generated by :no_entry_sign: dangerJS against ee86dd0b03438d9d2ef4f9fedfe70644f262fa26

#squashongreen

Looks good!
I added your name to the Changelog entry, rebased the branch, and updated the generated Relay queries. The tests should pass now :)

@olerichter00: Thanks for adding the generated files. Are those added via the commit hook?

After rebasing, I just ran yarn start (yarn relay would do the job as well) to change the generated Relay queries.


feat(haproxy): Support ha-proxy

:tada: This PR is included in version 1.73.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Beam Enrich: fix unit tests failing after update of MaxMind database

Updated at the same time as  #3736


RHOAIENG-4549 Update the kserve-model-downloader to version v<IP_ADDRESS>

Description
This update may be required to support self signed certificate support for S3 servers
How Has This Been Tested?

Use the e2e test provided in the repo
Run

make AWS_SECRET_ACCESS_KEY=... AWS_ACCESS_KEY_ID=... S3_REGION=... S3_ENDPOINT=... IMAGE_REGISTRY_USERNAME=...  IMAGE_REGISTRY_PASSWORD=... S3_BUCKET=... NAMESPACE=... TARGET_IMAGE_TAGS_JSON=... go-test-setup

And then run

make AWS_SECRET_ACCESS_KEY=... AWS_ACCESS_KEY_ID=... S3_REGION=... S3_ENDPOINT=... IMAGE_REGISTRY_USERNAME=...  IMAGE_REGISTRY_PASSWORD=...  S3_BUCKET=... NAMESPACE=... TARGET_IMAGE_TAGS_JSON=... go-test

Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/retest

/approved
Preserves existing functionality while providing the features to include a self-signed certificate

/approve


Search Debrid Cloud for title aliases in different languages

This addon is great for niche content that is not readily available on the usual torrent search engines!
I did find an area of improvement though which I hope you can address to make this addon even cooler. For content that has a translated title, this addon doesn't seem to work well in finding the matching files in the cloud. Some examples below:
Original title: El encargado
Translated title on Stremio (IMDB): The Boss
I added season 2 in my RD cloud but the addon cannot find it because the file is called El.encargado.S02E01.HDTV.Esp.SC.mp4
Original title: LOL: Chi ride è fuori
Translated title on Stremio (IMDB): LOL: Last one laughing Italy
Doesn't work because of the mismatch of titles
Orginal title: Prova Prova Sa Sa
Translated title on Stremio (IMDB): Prova Prova Sa Sa
It works perfectly
Is there a way to implement a function that will search for the original title along with the translated one?
Thanks!

Currently, translation capability is not present in the addon. Will have to figure out if this is even feasible to have accurate matching on the translated title names


Composite Resource: Manually set file type or automatically set it?

@danames posted this in #2373. I'm moving here because it should be its own issue.

I still think it is a terrible design decision to require the user to
manually "set" the resource type in composite files. Put another way, is
there ever a case when a user would drop the parts of a shapefile in a
composite resource and NOT want HydroShare to know that it's a geographic
feature set?

@danames - I moved this into its own issue. I think it's important for us to consider not only the geographic feature type, but also the other types. The time series file type can use a .csv file or a SQLite file, but one can also have .csv or SQLite files that are not time series. The geographic raster file type uses .tiff files, but one can have .tiff files that are not geographic rasters.
If HydroShare were really clever it could interrogate files and figure out what they (likely) are, but I suspect that there are still cases where the code would get it wrong. This would probably end up in functionality that detects the "potential" for a set of files being of a particular file type, but we would probably still have to ask the user if they are or not and whether they should be treated as such. Right clicking and setting the file type is just an explicit action by the user that has unambiguous intentions.


(bug) the fluentinfo window appears behind the file explorer window

w10
https://github.com/ubuntuegor/FluentInfo/assets/90144967/c777f40d-fbb2-4804-8b3a-d309c0b43e10

Thanks for the report! The issue should be fixed in the next version.


[FEATURE] Idle holding animation

The gun models always stick into the ground when not aiming
Some animation when just holding would be nice. Kinda the "low ready" position known from other games would be nice

Hey, we recently moved repository; would you be so kind to create this feature request here?


added custom button and props for TriangleColorPicker

This is my suggestion of custom select button for TriangleColorPicker component

I think it is much easier (and more generic) just to hide buttons, not to toggle two different buttons. If anyone needs buttons (or anything else), now you can simply hide buttons and render underneath your controls (special buttons or anything you want).
Closing in favour of https://github.com/instea/react-native-color-picker/pull/10


invocieplane: Add patches for CVE-2021-29024, CVE-2021-29023

Description of changes
This PR add upstream patches for CVE-2021-29024 and CVE-2021-29023 as mentioned here.
CVE-2021-29023 isn't fixed upstream yet but I'll include it as soon as it got fixed.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

thank you!


Remove submit_python_job from Jinja context

Describe the feature
With the latest change in dbt-core, we should consider remove this line so that user won't have access to adapter.submit_python_job in Jinja macros directly. This function is used by a context member directly in dbt-core.
Also something related to this area, we recently refactored the function here a little bit(dbt-core, dbt-spark). Maybe we want to follow the style there so any updates are automatically included
Additional context
This would help dbt keep being opinionated about when certain operation should happen

@ueshin  I just saw your PR after opending this issue. https://github.com/databricks/dbt-databricks/pull/178. It would close it completely

@ChenyuLInx Just to confirm, you mean the current change at #178 already satisfies your requirement, right?

Yes, also updated my previous comment.


Breaking or dropping items disappear when on the moon

Forge Version
<IP_ADDRESS>60
Galacticraft Version
<IP_ADDRESS>0
Log or Crash Report
Mod pack - Kealis Bombs Guns War V3.0.0
Multiplayer (MP) hosting own server
Issue - It seems that whenever a player goes to space, breaking blocks or dropping items causes them to disappear. Mobs also don't drop items when killed. Disconnecting and reconnecting does nothing however restarting the server fixes the issue. But of course, having to restart the server every time we go to the moon is a pain. Wondering if there's an incompatibility issue with another mod in the pack?
The Galacticraft was part of a mod pack that is no longer available online
I have the main game files and the server files in this google drive
Latest log and debug files are also located in this drive
[https://drive.google.com/drive/folders/1CAH1mDDuGzfWs-d1WjVbYKqEdo2U86j4?usp=sharing]
Reproduction steps

Launch to the moon
after landing breaking a block with an impact drill from HBM's Nuclear Tech Mod
Blocks break but disappear
tried with other items like base Minecraft diamond pick but items disappear still
dropped items also disappear
killing mobs don't drop items
Issue persists after returning to earth
Disconnecting from server and reconnecting doesn't fix issue
restarting the server after players are on the moon fixes this
...

Testing in dev does not give the same results when using the drill stated, nor do any of the other issues present themselves. You can try and replicate this using the latest version.


Allow user to just run diags with .json only

Though this would be tedious for a user to do, it should still be able to be done. It makes it easy for some people who don't quite understand the point of the Python script.

works


mhv7.1 bot

VSC.zip
a vsc macro for reverse engineering (recorded at 144 fps using click accuracy mode), byte 0c contains the fps if you look in the hex editor.

In options in MHv7 you can export JSON.

There is already (MHR JSON only though)

Also, the first 7 byte literally just HACKPRO, then followed by 07 04 00 00 (no clue). Next as mentioned above the fps (in base 10).

I think i kinda know the file format spec.
0x0c - 0x0f = FPS (Int32)
0x1c - 0x0d = Total Clicks / Events (Int16)
Per Clicks / Events Offset 0x20 (So 1st event 0x20, 2nd event 0x40, etc.)
0x02 = Player 1 Down? (Binary / Bool)
0x03 = Player 2 Down? (Binary / Bool)
0x04 - 0x05 = Frame (Int16)
0x08 - 0x0b = X Position (Float32)
0x0c - 0x0f = Y Positon (Float32)
0x10 - 0x13 = Rotation (Float32)
0x18 - 0x1F = A (What is a?) (Float64 / Double)

The last offset / line however, I cant guess it.

I think i kinda know the file format spec.
0x0c - 0x0f = FPS (Int32)
0x1c - 0x0d = Total Clicks / Events (Int16)
Per Clicks / Events Offset 0x20 (So 1st event start with 0x20, 2nd event start with 0x40, etc.)
0x02 = Player 1 Down? (Binary / Bool)
0x03 = Player 2 Down? (Binary / Bool)
0x04 - 0x05 = Frame (Int16)
0x08 - 0x0b = X Position (Float32)
0x0c - 0x0f = Y Positon (Float32)
0x10 - 0x13 = Rotation (Float32)
0x18 - 0x1F = A (What is a?) (Float64 / Double)

The last offset / line however, I cant guess it.
#CMIIW. Also it would be cool to open-source the file spec, Absolute
Edit : But, it can be implemented because we already know the essential part of it. (FPS, Player 1 Down, Player 2 Down, Frame)

A is Y acceleration I think (and it's double)

A bit late but I was able to implement importing from MHR. The next part is just exporting to MHR.

I am pretty much done with the exporting part. I just have to fix x pos importing and it's done.
Altough I am not sure if I can directly make a pull request cause I can't test if the macros actually work (they most likely do but who knows???) because I do not have MegaHack.

Mega Hack v8 doesn't currently have replay features in it, and I doubt that when it will be released the format would be kept the same (platformer mode, etc.) So maybe we should wait until MHv8 Replay comes out?

So maybe we should wait until MHv8 Replay comes out?

I don't see a reason to delay adding MHR v7.1 just because MHR v8 can come out.
Regardless, I already published the branch if you want to check it out.

Mega Hack v8 doesn't currently have replay features in it, and I doubt that when it will be released the format would be kept the same (platformer mode, etc.) So maybe we should wait until MHv8 Replay comes out?

they now use gdr instead of mhr, but the mhr can still be load by using the Load legacy (.mhr) button

GDR seems to be source available. Making a converter for it shouldn't be to difficult (altough probably on a new converter size).


Create Roadmap

Hi!
I like the rebranding. Like before, i am interested in contributing to this project. I understand as of now the feature list is not fully implmented. would it be possible to create a roadmap, or at least indicate which features are not implemented yet?
Thanks!

Here you go
https://github.com/orgs/secureblue/projects/1

If you have any additional ideas for improved hardening or other changes, feel free to open new issues for discussion.

@34N0 I assigned you https://github.com/orgs/secureblue/projects/1/views/1?pane=issue&itemId=45480680 as it appears you're already working on it


Custom dataset

I'm now trying to train your model with my custom dataset.
I tried using brox optical flow but it didn't work, so I used dense optical flow instead.
However, when I started training, I got an error like this:
Train_K7_flow_cocoTraceback (most recent call last):
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 167, in <module>
    main(opt)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 95, in main
    log_dict_train = trainer.train(epoch, train_loader, train_writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 56, in train
    return self.run_epoch('train', epoch, data_loader, writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 74, in run_epoch
    for iter, batch in enumerate(data_loader):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 336, in __next__
    return self._process_next_batch(batch)
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/datasets/sample/sampler.py", line 120, in __getitem__
    draw_umich_gaussian(hm[ilabel], center_int, radius)
IndexError: index 20 is out of bounds for axis 0 with size 4

When I checked, brox-images are (240, 320, 3) and dense-images are the same, so I don't understand how your algorithms think they are different.
This is the image after I use dense optical flow

This is the image after I use dense optical flow and Raises pixel 0 to 128

I tried both and failed at the same error :(
Can you help me? Thank you!

index 20 is out of bounds for axis 0 with size 4
I doubt that you define dataset num_classes as 4 but use ground truth annotations above this range.
Please check your ground truth annotations which label number should in range 0, 1, 2, 3.

Thank you, this bug has been resolved
I was able to run a model train with my custom dataset but when I predicted it had this error:
Traceback (most recent call last):
  File "det.py", line 27, in <module>
    normal_inference(opt)
  File "/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/inference/normal_inference.py", line 111, in normal_inference
    for iter, data in enumerate(data_loader):
  File "/home/ryan/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 336, in __next__
    return self._process_next_batch(batch)
  File "/home/ryan/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
AttributeError: Traceback (most recent call last):
  File "/home/ryan/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/ryan/anaconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/inference/normal_inference.py", line 63, in __getitem__
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(self.opt.K)]
  File "/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/inference/normal_inference.py", line 63, in <listcomp>
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(self.opt.K)]
AttributeError: 'NoneType' object has no attribute 'astype'

This error seems to be that UCF101.imagefile does not load my images (I added 1 class in your ucf24 dataset).

Never mind.

Hi~
We upload visualization codes and I hope it can help you.

Wow that's great! i'm trying your visualization codes, it works really well according to your instructions.
But when I replace your model with my model, I get this error
I changed the label_class in vis_utils.py and --rgb_model
loaded /home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/experiment/result_model/Train_K7_rgb_coco/model_[12]_2020-08-02-12-02.pth, epoch 12
Traceback (most recent call last):
  File "vis_det.py", line 174, in <module>
    det()
  File "vis_det.py", line 157, in det
    stream_inference(opt)
  File "vis_det.py", line 125, in stream_inference
    detector = MOCDetector(opt)
  File "../detector/stream_moc_det.py", line 29, in __init__
    self.rgb_model_backbone, self.rgb_model_branch = load_inference_model(self.rgb_model_backbone, self.rgb_model_branch, opt.rgb_model)
  File "../MOC_utils/model.py", line 82, in load_inference_model
    branch.load_state_dict(state_dict, strict=False)
  File "/home/ryan/anaconda3/envs/py37/lib/python3.7/site-packages/torch/nn/modules/module.py", line 719, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MOC_Det:
	size mismatch for branch.hm.2.weight: copying a param of torch.Size([24, 256, 1, 1]) from checkpoint, where the shape is torch.Size([5, 256, 1, 1]) in current model.
	size mismatch for branch.hm.2.bias: copying a param of torch.Size([24]) from checkpoint, where the shape is torch.Size([5]) in current model.

I tried both k7 and k1 model, and got the same error
Can you tell me how my model and yours are different?

You have 5 classes, so set --num_classes as 5.

Thank you, I did it.
It seems like this way of consuming ram for long predictions, but it helped me a lot.
I'm trying to use k1 model to predict online streaming, the initial result looks good.
I'm doing:
read 2 frame from online streaming ---> frame1, frame2 ---> dense-optical-flow ---> flow-image ---> PrefetchDataset ---> ...
(or video)                                                                          ---> frame1                   ---> rgb-image ---^

But now the predict code stops at the 2nd loop, I am trying to fix it
ps: dense optical flow is not good for ucf101 dataset but it is okay for my dataset when the camera is stable and does not shake

I recommend using K=7 and rgb as input, for efficiency.

Hello, I take a lot of time to label my data. :'(
I tried your recommendation and it was really good, I let live stream delay 7 frames to run the model with k = 7 and it showed promising results.
However, when I try to train my model with my dataset with k = 7 I get this error every time "train: [1] [6/123]"
I ran ok with k = 1, can you explan for me what did I miss ? Thank you!
Train_K7_flow_coco |#                               | train: [1][6/123]|Tot: 0:00:26 |ETA: 0:08:01 |loss 12.5521 |loss_hm 11.2235 |loss_mov 0.8385 |loss_wh 4.9010 Traceback (most recent call last):
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 167, in <module>
    main(opt)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 95, in main
    log_dict_train = trainer.train(epoch, train_loader, train_writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 56, in train
    return self.run_epoch('train', epoch, data_loader, writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 74, in run_epoch
    for iter, batch in enumerate(data_loader):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 322, in __next__
    return self._process_next_batch(batch)
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
AttributeError: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/datasets/sample/sampler.py", line 26, in __getitem__
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(K)]
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/datasets/sample/sampler.py", line 26, in <listcomp>
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(K)]
AttributeError: 'NoneType' object has no attribute 'astype'

Exception ignored in: <function _DataLoaderIter.__del__ at 0x7f1fcb9a0170>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 399, in __del__
    self._shutdown_workers()
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
    self.worker_result_queue.get()
  File "/usr/local/lib/python3.7/multiprocessing/queues.py", line 354, in get
    return _ForkingPickler.loads(res)
  File "/usr/local/lib/python3.7/site-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
    fd = df.detach()
  File "/usr/local/lib/python3.7/multiprocessing/resource_sharer.py", line 57, in detach
    with _resource_sharer.get_connection(self._id) as conn:
  File "/usr/local/lib/python3.7/multiprocessing/resource_sharer.py", line 87, in get_connection
    c = Client(address, authkey=process.current_process().authkey)
  File "/usr/local/lib/python3.7/multiprocessing/connection.py", line 492, in Client
    c = SocketClient(address)
  File "/usr/local/lib/python3.7/multiprocessing/connection.py", line 619, in SocketClient
    s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

Hello, I take a lot of time to label my data.
I tried your recommendation and it was really good, I let live stream delay 7 frames to run the model with k = 7 and it showed promising results.
However, when I try to train my model with my dataset with k = 7 I get this error every time "train: [1] [6/123]"
I ran okay with k = 1, can you explan for me what did I miss?
Train_K7_flow_coco |#                               | train: [1][6/123]|Tot: 0:01:31 |ETA: 0:27:36 |loss 12.5371 |loss_hm 11.2513 |loss_mov 0.8401 |loss_wh 4.4578 Traceback (most recent call last):
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 167, in <module>
    main(opt)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/train.py", line 95, in main
    log_dict_train = trainer.train(epoch, train_loader, train_writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 56, in train
    return self.run_epoch('train', epoch, data_loader, writer)
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/trainer/moc_trainer.py", line 74, in run_epoch
    for iter, batch in enumerate(data_loader):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 322, in __next__
    return self._process_next_batch(batch)
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
AttributeError: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 106, in <listcomp>
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/datasets/sample/sampler.py", line 26, in __getitem__
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(K)]
  File "/content/drive/My Drive/action_recognition/Moc-Detection/src/datasets/sample/sampler.py", line 26, in <listcomp>
    images = [cv2.imread(self.imagefile(v, frame + i)).astype(np.float32) for i in range(K)]
AttributeError: 'NoneType' object has no attribute 'astype'

Exception ignored in: <function _DataLoaderIter.__del__ at 0x7f0fb087b170>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 399, in __del__
    self._shutdown_workers()
  File "/usr/local/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
    self.worker_result_queue.get()
  File "/usr/local/lib/python3.7/multiprocessing/queues.py", line 354, in get
    return _ForkingPickler.loads(res)
  File "/usr/local/lib/python3.7/site-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
    fd = df.detach()
  File "/usr/local/lib/python3.7/multiprocessing/resource_sharer.py", line 57, in detach
    with _resource_sharer.get_connection(self._id) as conn:
  File "/usr/local/lib/python3.7/multiprocessing/resource_sharer.py", line 87, in get_connection
    c = Client(address, authkey=process.current_process().authkey)
  File "/usr/local/lib/python3.7/multiprocessing/connection.py", line 492, in Client
    c = SocketClient(address)
  File "/usr/local/lib/python3.7/multiprocessing/connection.py", line 619, in SocketClient
    s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

'AttributeError: 'NoneType' object has no attribute 'astype''
It means that 'cv2.imread' gets an empty image file.

I created test and run det.py to generate predictive results. I then calculated the difference of the bounding boxes using IoU and repeated them with true positive, false positive, false negative, and true negative.
How do you think it is?

We provide codes for evaluating mAP in ACT.py.
If you have the same GT annotations and same detection results in each .pkl file, you can apply our evaluation methods in https://github.com/MCG-NJU/MOC-Detector/blob/master/readme/Evaluation.md (specifically in section Evaluate mAP).

Ohh you have written about it, sorry my level is not enough to fully understand, I am trying to read it, thank you.
Btw, I'm having trouble applying the model to detecting online. When 20 fps, the model recognizes very well, but when running online fps is only 1, and of course it will recognize a lot worse.
I am trying to increase inference speed when detecting online, by instead recognizing each frame, I do it for 7 frames at once, which means that instead of enqueue and dequeue 1 image at a time, I do 7 images at a time.
What do you think about it?

Sorry, maybe I don't fully understand.
In subsection Online Spatio-Temporal Action Detection at https://github.com/MCG-NJU/MOC-Detector/blob/master/readme/Evaluation.md, I provide an online detection method using stream_inference.py which is suitable for real-time video stream. (As you say, enqueue and dequeue 1 image at a time)
If you directly use total K frames at a time, you will run codes in normal_inference.py. In this way the inference speed is very slow because of replicated computation for backbone feature.
btw, I don't understand the sentence When 20 fps, the model recognizes very well, but when running online fps is only 1, and of course it will recognize a lot worse.

My English is not good so I don't know, can I explain it to you?
I run it on my realtime camera, if an action happens in 3 seconds, with 20fps the number of input images will be 20x3 = 60, but 1fps the number of input images is just 3 for the same action taking place at the same time. Of course, when detected with 1 fps, the results were worse than 20 fps.

Oh, I understand. You try a sparse sampling strategy for decreasing the frame rate.
This is really a good idea for increasing inference speed, but we do not consider it when design Movement Branch.
Since the movement across a long duration is hard to estimate by movement branch, our proposed method may not suit under this circumstance. But I think this is a novelty idea.

@npduyduc Sorry, I wonder that whether you re-train a new model for fps=1, or just use the ready-made model train with fps=20?

It works well so I don't think about train another model. However, I guess model with fps = 1 will not be good. I'm doing the topic of street fights, and I don't think there's a punch for more than a second :))
So in my mind, I was just around the issue of increasing fps

Oh that's it. The inference fps should be the same as training. Maybe you can train a new model with ground-truth annotation under fps=1.

I will try, but if so did I have missed your model's good thing? When there are fewer frames representing an action, does it affect the output of hm and the mov branch?

Sorry I haven't done such experiments. In our task we focus more on density prediction with a high frame-rate. (depends on the dataset annotations) So I have no idea about the performance under the low frame-rate (in other word, sparse sampled frames). I also confuse about the movement branch generalization ability under this circumstance.

Thank you for your help. This problem happened because my server was too slow. v(ಥ ̯ ಥ)v

I want to ask you about the model evaluation, I tried creating your design output (pkl file) at ../result/default from the label file, but I still got this error:
inference_dirname is  ./output/fight/
threshold is  0.5
Traceback (most recent call last):
  File "ACT.py", line 383, in <module>
    frameAP(opt)
  File "ACT.py", line 108, in frameAP
    log_file = open(os.path.join(opt.root_dir, 'result', opt.exp_id), 'a+')
IsADirectoryError: [Errno 21] Is a directory: '/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/../result/default'

Seems to have a log file at opt.exp_id, but I don't know what it is
Can you explan for me what did I miss?

I created following your output template in ../result/default from the label file. However, when running
python ACT.py --task frameAP --K 7 --th 0.5 - -inference_dir ./output/fight/  I got this error:
inference_dirname is  ./output/fight/
threshold is  0.5
Traceback (most recent call last):
  File "ACT.py", line 383, in <module>
    frameAP(opt)
  File "ACT.py", line 108, in frameAP
    log_file = open(os.path.join(opt.root_dir, 'result', opt.exp_id), 'a+')
IsADirectoryError: [Errno 21] Is a directory: '/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/../result/default'

Seems to have a log file at opt.exp_id, but I don't know what it is
Can you explan for me what did I miss?

I want to ask you about model evaluation, I created following your output template (pkl file) at ../result/default from the label file, however, when running python ACT.py --task frameAP I got this error:
inference_dirname is  ./output/fight/
threshold is  0.5
Traceback (most recent call last):
  File "ACT.py", line 383, in <module>
    frameAP(opt)
  File "ACT.py", line 108, in frameAP
    log_file = open(os.path.join(opt.root_dir, 'result', opt.exp_id), 'a+')
IsADirectoryError: [Errno 21] Is a directory: '/home/ryan/Desktop/PythonPJ/human-activity-recognition/MOC-Detector/src/../result/default'

Seems to have a log file at opt.exp_id, but I don't know what it is
I can run python ACT.py --task frameAP_error, how are they different?
Can you explan for me what did I miss? Thank you!

My English is not good so I don't know, can I explain it to you?
I run it on my realtime camera, if an action happens in 3 seconds, with 20fps the number of input images will be 20x3 = 60, but 1fps the number of input images is just 3 for the same action taking place at the same time. When detected with 1 fps, the results were worse than 20 fps.

Hello, now I want to use the real-time camera to do online action recognition. It seems that this part is not implemented in the author's github library. Could you share the code you implemented to me?  Thank you!

@npduyduc How do you prepare annotations for your custom dataset? Do you happen to have a step-by-step guideline to accomplish this?


matrix-synapse: matrix-synapse-shared-secret-auth receives unexpected argument

Describe the bug
The plugin matrix-synapse-shared-secret-auth receives an unexpected keyword argument account_handler, causing matrix-synapse to not star.
Steps To Reproduce
Add matrix-synapse-shared-secret-auth to services.matrix-synapse.plugins and configure it.
Expected behavior
matrix-synapse should start properly
Additional context
Feb 18 00:56:19 cloudbox systemd[1]: Starting Synapse Matrix homeserver...
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: This server is configured to use 'matrix.org' as its trusted key server via the
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: 'trusted_key_servers' config option. 'matrix.org' is a good choice for a key
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: server since it is long-lived, stable and trusted. However, some admins may
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: wish to use another server for this purpose.
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: To suppress this warning and continue using 'matrix.org', admins should set
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: 'suppress_key_server_warning' to 'true' in homeserver.yaml.
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: --------------------------------------------------------------------------------
Feb 18 00:56:21 cloudbox synapse[2315949]: root: [main] ***** STARTING SERVER *****
Feb 18 00:56:21 cloudbox synapse[2315949]: root: [main] Server /nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/bin/synapse_homeserver version 1.52.0
Feb 18 00:56:21 cloudbox synapse[2315949]: synapse.handlers.auth: [sentinel] Error while initializing <class 'shared_secret_authenticator.SharedSecretAuthProvider'>: __init__() got an unexpected keyword argument 'account_handler'
Feb 18 00:56:21 cloudbox synapse[2315949]: synapse.app._base: [sentinel] Error during startup
                                           Traceback (most recent call last):
                                             File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/_base.py", line 227, in wrapper
                                               await cb(*args, **kwargs)
                                             File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/homeserver.py", line 405, in start
                                               await _base.start(hs)
                                             File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/_base.py", line 444, in start
                                               load_legacy_password_auth_providers(hs)
                                             File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/handlers/auth.py", line 1909, in load_legacy_password_auth_providers
                                               load_single_legacy_password_auth_provider(
                                             File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/handlers/auth.py", line 1920, in load_single_legacy_password_auth_provider
                                               provider = module(config=config, account_handler=api)
                                           TypeError: __init__() got an unexpected keyword argument 'account_handler'
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: Error during startup:
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: Traceback (most recent call last):
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:   File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/_base.py", line 227, in wrapper
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:     await cb(*args, **kwargs)
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:   File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/homeserver.py", line 405, in start
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:     await _base.start(hs)
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:   File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/_base.py", line 444, in start
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:     load_legacy_password_auth_providers(hs)
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:   File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/handlers/auth.py", line 1909, in load_legacy_password_auth_providers
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:     load_single_legacy_password_auth_provider(
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:   File "/nix/store/h2gxxs9f2lfwkwcmmkyi4swzyp18jvca-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/handlers/auth.py", line 1920, in load_single_legacy_password_auth_provider
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]:     provider = module(config=config, account_handler=api)
Feb 18 00:56:21 cloudbox synapse_homeserver[2315949]: TypeError: __init__() got an unexpected keyword argument 'account_handler'
Feb 18 00:56:21 cloudbox systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
Feb 18 00:56:21 cloudbox systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
Feb 18 00:56:21 cloudbox systemd[1]: Failed to start Synapse Matrix homeserver.
Feb 18 00:56:21 cloudbox systemd[1]: matrix-synapse.service: Consumed 2.805s CPU time, no IP traffic.
Feb 18 00:56:22 cloudbox systemd[1]: matrix-synapse.service: Scheduled restart job, restart counter is at 3.
Feb 18 00:56:22 cloudbox systemd[1]: Stopped Synapse Matrix homeserver.
Feb 18 00:56:22 cloudbox systemd[1]: matrix-synapse.service: Consumed 2.805s CPU time, no IP traffic.

Notify maintainers
@sumnerevans
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.89, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0pre20220127_558c4ee`
 - channels(god): `"nur"`
 - channels(root): `"home-manager-20.09, nixos-20.09.4407.1c1f5649bb9, nixos-mailserver-20.09.tar.gz, nixos-unstable-22.05pre334685.8a308775674"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

(Older channel, system is deployed via a flake).

This seems to be caused by being incompatible with 1.52.0 and not a problem for nixpkgs

Upstream issue with hotfix: https://github.com/devture/matrix-synapse-shared-secret-auth/issues/16
Hotfix can be applied like this:

    (self: super: {
      matrix-shared-secret-auth =
        super.matrix-synapse.plugins.matrix-synapse-shared-secret-auth.overrideAttrs
        (o: rec {
          version = "2.0.2";
          src = self.fetchFromGitHub {
            owner = "devture";
            repo = "matrix-synapse-shared-secret-auth";
            rev = version;
            hash = "sha256-qzXKwTEOMtdvsxoU3Xh3vQyhK+Q18LfkeSts7EyDIXE=";
          };
          patches = [ ./ssap.patch ];
        });
    })

Note that you'll have to use pkgs.matrix-shared-secret-auth with this overlay.

Might also be caused by shared-secret-auth v2.

This was a user-error - I configured it wrong.


Connections aren't being closed

The library uses requests to fetch data from OpenAI servers, but we never call .close() on those connections which leaves dangling open file handles on the OS.
Can we clean these connections up gracefully, either after a period of time, or after making a request? There is an advantage to leaving it open as it doesn't have to do the HTTPS handshake on every request, but we should clean this up properly after a period of idleness.
This bug interacts very poorly with another bug in Docker Desktop -- https://github.com/moby/vpnkit/issues/587; the openai library stops working entirely after running it in a Docker container on Mac / Windows for a few minutes. All requests to OpenAI servers time out indefinitely.

Hi @dougli!
Thanks for writing in.    That said, we happily accept PRs if you'd like to take a shot at fixing this.

Any pointers where the sockets are opened of where they should be closed? I'm running into this issue

In my case it helps to ignore the ResourceWarning by adding:
import warnings

warnings.simplefilter("ignore", ResourceWarning)

Doesn't fix the open filedescriptors, though

We have deployed a dockerized application in production which crashes periodically because of this. Over time more and more connections are being opened until the container crashes because of a memory error.


helmsman: init at 3.3.0

Motivation for this change
Adds https://github.com/Praqma/helmsman, a useful tool which allows you to automate the deployment/management of your Helm charts from version controlled code.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@Lynty thanks again for opening your first PR. PR volume is super high, and hard to get to everyone


attribute empty-placeholder-enabled (or data-empty-placeholder-enabled) does not work

Angular: 1.3.15
Browser: 5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) Safari/538.1
angular-ui-tree: 2.3.0
All of the following show the empty placeholder, when the documentation implies they shouldn't

There seem to be a number of problems with the implementation:

The documentation states that the the attribute is data-empty-placeholder-enabled, but the code refers to attrs.emptyPlaceHolderEnabled. This should be attrs.emptyPlaceholderEnabled if the documentation is correct, or data-empty-place-holder-enabled if the code is correct.
The code uses typeof attrs.emptyPlaceHolderEnabled == "boolean", but this is a DOM attribute and therefore has the type "string".
$scope.emptyPlaceHolderEnabled is initialised to true, and tested in resetEmptyElement, but resetEmptyElement is only called when the length of the model changes, not when emptyPlaceHolderEnabled, so for an initially empty list the the placeholder is always shown.

See #450


Make Rustls the default TLS option

Decide if we want to make Rustls the default TLS option for crates instead of native. I'm personally in favour

This is a half-dupe of https://github.com/twilight-rs/twilight/issues/124, where I asked the same question.
I also agree that we should go for it, its been audited, its robust, etc. But best of all, it rids twilight and anyone who might want to use of of the hassles of OpenSSL on the platforms that would use it.
Small nit: Is this really a breaking change? Unless there are some very exotic (and likely bad) certificates being used by Discord somewhere that no one has ran into yet, this won't break anything just by swapping out the underlying TLS implementation.

In practice no, in theory yes

Small nit: Is this really a breaking change? Unless there are some very exotic (and likely bad) certificates being used by Discord somewhere that no one has ran into yet, this won't break anything just by swapping out the underlying TLS implementation.

It is breaking because it may break on systems that ring and therefore rustls does not support for example POWER9.

That makes sense, but has there been any evidence that there are any Twilight users running POWER9, MIPS, etc?
But under that reasoning, fair enough for it being considered "breaking" :)

I am also in favour. From the benchmarks I have seen it uses both less memory and is faster


Custom Tflite Model Usage #11

Ref: POWERPLAY
Zero issue with ConceptTensorFlowObjectDetection.
Yet trying to use the Custom TFOD OpMode with no modifications except for the due changes in TFOD_MODEL_FILE and TFOD_MODEL_LABELS:

ssd_mobilenet_v2_320x320_coco17_tpu_8
ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu_8
ssd_mobilenet_v2_fpnlite_640x640_coco17_tpu_8
with ssd_mobilenet_v2_label_map.txt

and:

detect.tflite
with labelmap.txt

The first set has zero object detection/classifications with common images from public domain that "could be interpreted" as one of the labels. The second set will very, very occasionally respond with the label sheep for every object it classifies! (Yes, I understand that the white space on the signal sleeve gets in way!) but its reproducibility is also low. (The basic end-user dilemma - Hello, I've a problem. Sorry, I can't reproduce it).
I don't have an exhaustive list of parameters to tweak for the FTC TFOD OpModes. Just winging it presently with changes to magnification and ambient lighting. Have run the gauntlet of OpModes for webcam controls but see nothing other than AWB and Gain to tweak from a webcam perspective. Perhaps there are some other parameters that I am ignorant about. I've seen a few in the corresponding Javadoc but would love to get an expert to chime in, please.
Is there a set of images that an end-user can use for a sanity test to confirm any one of the above models? Just need a few to help the team members sustain their interest in ML for FTC work. They are presently not believing that there is light at the end of this tunnel. Thanks.
Kind regards.

I'm not sure exactly how your code is constructed, but let me offer my initial errors when I implemented a solution using the models:
(1) You actually have to include every single label, in the order that they're specified within the label map, in your list of labels. The list of labels IS NOT to tell TensorFlow what to look for (as even I understood it to be initially) - TensorFlow doesn't actually understand the labels and doesn't even read the labels. TensorFlow returns an index into the list of labels you provided; it expects the list of labels to be exactly the list it was trained with, in the exact order it trained them in. Hence it will internally return "1" or "23" or "47", and not a label (no, we don't return that value for you to see either). The TensorFlow APIs then use your list of labels to index what TensorFlow told it, and returns the label it found there. If a label has "????", that's a valid label and also must be included in the label map (the label is a "dummy label" that's used for background image data, but whatever). So I know it's a pain to introduce 84 or more labels when you're only expecting to recognize 2-3 objects, but that's the price of doing business.
(2) Do you realize that you can see what TensorFlow sees? Sorta. We allow you to view an image preview on the Driver Station, but only when using a Vuforia or TensorFlow enabled program, and only in Init mode (once you click "Run" the option goes away). Just Init your opmode, and then press the three dots menu. You will find a new "Camera Stream" option that allows you to see the camera view with the detections on top (used for aiming your robot's camera). You have to tap the screen to update the image - this is done so that camera streaming on a hundred or more phones doesn't clog the available bandwidth at big tournaments.
(3) The COCO dataset is the standard dataset to train the Model Zoo models. You can see all of the images used to train the model, grouped by classification.
Hope this helps.


Figure out how to return template values to the FE for report fields

When loading report fields, on app init we load the report fields for the primary policy
However for report titles, which can have a formula which contain things from here. There can be items that would only be known from the BE and so there is not a good way to handle this entirely optimistically on the FE.
Once the report is created, the changed report title should already be handled (as it pulls the report name from the BE on OpenReport) but the issue is in the draft report state.
In the draft report,

If the report formula is required, we can just add text denoting that this is required and cannot be changed (we'll just grab it when we open the report)
If the report formula is not required but does exist, we will pass the current formula value in OpenWorkspaceRequest and that will be used in the draft but can be modified to whatever the user expects

Still need to investigate

Convo here: https://expensify.slack.com/archives/C02MW39LT9N/p1704235992446369

No update: Going to pass this back with the OpenDraftWorspaceRequest call

Will work on this today

As I look into this, I am thinking of just passing back the formula title as the defaultValue on the reportField text_title. That should make it the most straightforward implementation. The only drawback is if we are offline, it will pull the last stored value which would be inaccurate (we could probably negate this with some offline UI handling)
What do you think?

Alternatively, I could store the value in another NVP policyDefaultTitle_

As I look into this, I am thinking of just passing back the formula title as the defaultValue on the reportField text_title. That should make it the most straightforward implementation. The only drawback is if we are offline, it will pull the last stored value which would be inaccurate (we could probably negate this with some offline UI handling that we would need to add in the offline required case anyways)
What do you think?

I think adding it in defaultValue field should be fine. However, I'm curious about where would you be saving the formula entered by the user then?
My recommendation here would be to let the defaultValue of the policyReportField be the raw formula that user entered and the value that is attached to the report, let that be the result after applying the formula.

However, I'm curious about where would you be saving the formula entered by the user then?

Are you thinking in the future scenario where we allow the user to update the formula via NewDot? I was thinking the formula is not actually necessary in the FE because we aren't adding the ability to decode all formula values optimistically.

My recommendation here would be to let the defaultValue of the policyReportField be the raw formula that user entered and the value that is attached to the report, let that be the result after applying the formula.

I think this is ideal - and should happen automatically once openReport is called (should pull down the report title). The main issue is what happens with this draft report. OpenDraftWorkspace doesn't currently pass a reportID. Perhaps we can add the optimistic reportID to that and have the API send a pusher request to set the report title in onyx?

Hmm actually, it's not like you set the report title during the creation of an IOU. Maybe we can do nothing here - if we're offline and the report title is enforced, we will make the field non-editable. Otherwise, it will default to the formula but can be updated, then once the user comes back online it will automatically update to the report field unless it was modified

PR: https://github.com/Expensify/App/pull/34877

We decided to do nothing here - https://github.com/Expensify/App/issues/33131#issuecomment-1903483529


Problems with Android Life Cycle

http://bitiotic.com/blog/2013/05/23/libgdx-and-android-application-lifecycle/


print quic.clemente.io certificate expiration date in travis logs

This is how it will look like:

Codecov Report

Merging #1052 into master will increase coverage by 0.26%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1052      +/-   ##
==========================================
+ Coverage   90.87%   91.13%   +0.26%
==========================================
  Files         107      106       -1
  Lines        7232     7431     +199
==========================================
+ Hits         6572     6772     +200
- Misses        428      429       +1
+ Partials      232      230       -2

Impacted Files
Coverage Δ

internal/flowcontrol/base_flow_controller.go
100% <0%> (ø)
:arrow_up:

crypto_stream.go
100% <0%> (ø)
:arrow_up:

window_update_queue.go

receive_stream.go
97.26% <0%> (+0.02%)
:arrow_up:

session.go
85.78% <0%> (+1.15%)
:arrow_up:

send_stream.go
97.38% <0%> (+1.7%)
:arrow_up:

packet_packer.go
92.31% <0%> (+1.96%)
:arrow_up:

stream_framer.go
99.08% <0%> (+2.21%)
:arrow_up:

stream.go
91.49% <0%> (+3.25%)
: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 1692958...cc125c4. Read the comment docs.


Chapter 5: Large Scale Android Application Analysis

Looking at writing a chapter on large scale Android application analysis from various image pulls of phones.

Looking at writing a chapter on large scale Android application analysis from various image pulls of phones.

Really looking forward to seeing what you come up with. Thanks for being involved!

Hey there! I'm tentatively setting 7/31/2022 as a milestone for publishing v1.0 of this book. We'll have the title decided in the next couple weeks which will be the first of multiple administrative tasks we'll complete in July. At this point, please let me know if you intend to have at least a working, editable version of your chapter by 7/31/2022.
If not, please know that's perfectly fine. It doesn't mean your chapter won't get published, it just won't get published in v1.0. It'll simply be added when it's ready to be published and I'll push out a new version of the book, (i.e., V1.3, v1.7, etc) with your new content. I hope we have about 10 ready to go by 7/31/2022 so we can push to publish v1.0 shortly thereafter, but I won't know that until I hear from you! So, please let me know!

Also just talked to S3raph and he said he should meet V1.0 deadline.

If you've not already, please consider filling out your bio here before the end of the month: https://github.com/Digital-Forensics-Discord-Server/TheHitchhikersGuidetoDFIRExperiencesFromBeginnersandExperts/blob/main/manuscript/authors.txt

@ApexPredator-InfoSec @s3raph-x00 I ran through this chapter and added my edits: https://github.com/Digital-Forensics-Discord-Server/TheHitchhikersGuidetoDFIRExperiencesFromBeginnersandExperts/commit/e8b6343a52f4b613a3d45780c6a0e9255e8f1286
Do we have a link to this script mentioned here? If so, I want to hyperlink it.
https://github.com/Digital-Forensics-Discord-Server/TheHitchhikersGuidetoDFIRExperiencesFromBeginnersandExperts/blob/e8b6343a52f4b613a3d45780c6a0e9255e8f1286/manuscript/chapter5.txt#L214
Great stuff and thank you for your work!

As we approach publishing v1 of this book, please review the most recent files uploaded to this folder and ensure your chapter looks the way you want it to. If not, please make appropriate adjustments and advise me to regenerate the preview book files.
Additionally, if you've not been invited to the book on Leanpub yet, please provide me with an email address so I can invite you on there.
Thank you for completing your chapter! I hope this has been a fulfilling experience for you!


preprocessor: "link to search page" directive

In addition to being a link, I'd like to represent to the user that a link goes to the in-site search page.
This will be useful for establishing the language and taxonomy of the range of tags they can search inside, and the different keys they can use in addition to tag. Having a specific visual representation, with continuity across the site, will help the user internalise what discovery tools we're placing at their disposal.
I've come up with this, constructed from HTML entities:
[🔍 tag:some tag](/search?q=tag:some%20tag)

Which renders as

🔍 tag:some tag

The magnifying glass has a mirrored variant, #x1F50E;:

🔎 tag:some tag

Personally, I prefer the D variant's appearance, but of course the entire point of having a preprocessor directive is for the appearance to be decoupled from the use.
The non-breaking space is important to avoid a line wrap/break being inserted. Without it, and without a normal space (which might get broken across lines), the appearance is:

🔍tag:some tag

... whose kerning is displeasing, to my eye.
It would be useful if the directive accepted more than just the exact, URL-encoded search string ... perhaps:

{{{ search tag "some tag" }}}
{{{ search text "some specific text" }}}

... but that's a nice to have.

@jpluscplusm - I think we have this working now, no?

@myitcv I don't believe this is a feature I've seen working on the site.

We have the Hugo tag shortcode, but I'm not sure it achieves the "this is a link to a search page" intent of this issue, and it doesn't allow linking to arbitrary search terms.


Certain lang file sections are unmodifiable [Fabric Waystones 2.2.3 || 1.17]

Currently, I am trying to make this mod work well with a dark GUI. Certain parts, however, can't be modified in color no matter how hard you try. Things like this, for example, don't work:
{
"waystones.config.owner": "\u00a7r\u00a7fOwned by %s"
}
It causes weird issues, I'll show some of them here

Not to mention the fact that the names just cannot be changed in color

I don't see this being high priority, but you making some argument color for those would be really helpful if you could!

This is technically more of an enhancement thing than anything, I just thought it'd be nice. A way to solve this, I think, is to have an argument color for all of these things so that they can be modified the same

I've already implemented most of this in the latest (1.18) version. I only go back to older versions for more critical issues, and if there's a high enough demand.

Ah shoot, okay. Sorry, I just can't use 1.18 yet so I was posting. That's understandable

Any particular reason for that? I think most older mods have been updated, as well as the optimization mods.

Yeah! My graphics card is super old and already struggles when chunk loading in 1.17, even stuff like Sodium can't help me with 1.18 chunk loading. The load is too intense and just absolutely tanks fps any time I make the mistake of moving. It's fine, though, I'll just remember to try and get this fixed when I eventually get a newer graphics card and update to 1.18


[Standalone] Reduce number of ssh connections

Reduce number of ssh connections during installation process
Move ping and get_preinstalls from ssh to http since they do not contain critical information
Move run_job method from ssh to http, using an encription key to encrypt the payload
ACTIONS REQUIRED:
- Open port 8080 in your VPC security group
- Add use_http: true in the standalone section of the config
- Add encription_key: < ENCRYPITON_KEY> in the standalone section of the config
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

@gilv Added use_http config variable. If not set or set to false, it will continue using ssh. If set to true, it will use http connections to communicate with the VM instance, which is much faster

@gilv Added use_http config variable. If not set or set to false, it will continue using ssh. If set to true, it will use http connections to communicate with the VM instance, which is much faster

@JosepSampe thanks...hold on a bit to merge it...i still want to check couple of things before.

@JosepSampe thanks...hold on a bit to merge it...i still want to check couple of things before.

@gilv ok, you can merge it when you are ready ;)

@gilv ok, you can merge it when you are ready ;)


sink(ticdc): Add a topic expression when dispatching messages

What problem does this PR solve?

Issue Number: close #xxx
What is changed and how it works?
Add a topic expression when sinking messages to kafka. For example,
...
[sink]
dispatchers = [
    {matcher = ['s1.t1', 's2.t2'], topic = "{schema}_{table}"}，
    {matcher = ['s3.*'], topic = "{schema}abc"}
]
...

By using the configuration above, the dispatching rules will be as follows:

The data change events in table s1.t1 will be sent to topic "s1_t1".
The data change events in table s2.t2 will be sent to topic "s2_t2".
The data change events for all tables in s2 will be sent to topic s3abc.

Check List
Tests

Unit test

Release note
None

/run-kafka-integration-test

/run-kafka-integration-test

/run-kafka-integration-test /tidb=pr/32081

/merge

/run-integration-tests /tidb=pr/32434

/run-integration-tests /tidb=pr/32434

/run-dm-integration-tests /tidb=pr/32434

/run-dm-integration-test


tests: poll HeartbeatResponse

In tests, the mock pd-server(TestPdClient::Cluster) does not push region heartbeat responses. This PR try to simulate pushing by polling responses in the background.
It's part of region heartbeat cache #2701, for fixing tests.

PTAL

A friendly ping.

Any updates?

A friendly ping.

LGTM.


only set a key to VNode have similar shape, fix #5618

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[ ] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
in issue #5618 , then VNode in the first layer of the array don't get a key when father component call normalizeChildren,
but get a key when child component call normalizeChildren.
this leads to a changeable key, and component was re-created.

test still failed, I am try to find the reason.

@pengchongfu
You can compile the code, and then copy the test case to the console debugging
Hope to help you : )

@gebilaoxiong , thanks.

My change seems to introduce a bug : (. I hava test locally and found this test failed.

I make a demo, I know it is a little hack. compVm._watcher was inactive, I am try to find the reason.

@yyx990803 , my change would introduce new bug :(, because if we force every VNode has a key by order, this will have side effect for patch, see this demo.
I have update my change, maybe we should filter the VNode before set a key.
only set a key to VNode have similar shape, likely generated by v-for.

There are some problems with nested child elements as v-for

const vm = new Vue({
  el: '#app',
  data: { n: 1 },
  render(h) {
    const list = []

    for (let i = 0; i < this.n; i++) {
      list.push(h('input', {
        attrs: {
          value: 'a',
          type: 'text'
        }
      }))
    }

    list.push(h('input', {
      attrs: {
        value: 'b',
        type: 'text'
      }
    }))

    return h('div', [list])
  }
})

If the nested list is followed by the same type of element
When the data changes
it will be the last element as v-for created
In the above example he will generate a new input, and the value is b

@gebilaoxiong , you are right, the best way is coding carefully...

@pengchongfu You can leave a contact, my QQ is 173457117


SyntaxError: invalid syntax

python3 eagle-eye.py
Traceback (most recent call last):
File "eagle-eye.py", line 15, in
from grabber.instagram import InstagramGrabber
File "/dragon/desktop/EagleEye/grabber/instagram.py", line 1, in
from requests_html import HTMLSession
File "/usr/local/lib/python3.5/dist-packages/requests_html.py", line 419
element=PyQuery(html)('html') or PyQuery(f'{html}')('html'),
^
SyntaxError: invalid syntax

requests-html only supports Python 3.6 or higher.
Try using Python 3.6+


Error while generating the ts file

When I run the command to generate a typescript defination for ts files with gql tag, I get the error below.
.../apollo-cache/src/types/DataProxy.ts: Syntax Error /Users/myapp/node_modules/apollo-cache/src/types/DataProxy.ts (1:2) Unexpected Name "template"

1:  template
    ^
2:      * string tag from

The command that I used is:
apollo-codegen generate **/*.ts  --target typescript --schema schema.json --output Schema.d.ts

try making sure node_modules isn't part of your glob pattern to see if that solvers your problem @mrdezzods. If it does, we may be able to ignore node_modules by default in the future.

Closing this otherwise, @mrdezzods let me know if that recommendation didn't solve your problem.


Update GUI

Update GUI to show Class / Involvement at the top
Shift Tags to the right side

Codecov Report

Merging #50 (e9d1b16) into master (00024bf) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #50   +/-   ##
=========================================
  Coverage     73.53%   73.53%
  Complexity      445      445
=========================================
  Files            75       75
  Lines          1383     1383
  Branches        152      152
=========================================
  Hits           1017     1017
  Misses          321      321
  Partials         45       45

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 00024bf...e9d1b16. Read the comment docs.


Add a way to define the number of replicas when deploying an app on a Swarm infrastructure

Env variable REPLICAS is now available.


Score descriptions

Is there any official vernacular for mapping score to English? Something like:
0 terrible
1 very poor
2 weak
3 mediocre
4 good
5 excellent

Or:
0 worst
1 worse
2 bad
3 good
4 better
5 best

Or:
0 awful
1 poor
2 mediocre
3 okay
4 decent
5 excellent

Any suggestions?

When I use in in my Polymer Element, I default to:
0 very weak
1 weak
2 medium
3 strong
4 very strong
Note that value 5 does not exist! :)

Thanks for the heads-up. You're right about 0-4. I was confused by the release notes that say "score is still on a 0-5 scale".


Add awesome-volt

link : https://github.com/heri/awesome-volt

Thanks! Merged in 471c0369492ae373f4b7e30bd1e3fa305e63a33a


DL3-3 Added a React UI for Deep Linking

Description
This PR includes all the work described in https://lumenlearning.atlassian.net/browse/DL3-3.
Incorporates an additional set of UI templates written in React for deep linking requests, this does not affect other type of requests like resources.
The UI displays the new waymaker course picker with some static data until the endpoints are ready to be integrated.
Motivation and Context
When the user wants to link a Waymaker course through the LMS, via Deep Linking, the LMS sends an LTI 1.3 Deep Linking request, it redirects to the React UI, which contains the new designs of the Waymaker deep linking UI.
Fixes
Jira ticket
How Has This Been Tested?
This has been tested in the Unicon's D2L instance using a local development environment, redirecting all the endpoints to the Middleware using Ngrok.
A proper test plan could be (Not including the LTI deployment stuff):

As an instructor or admin, go to a course.
Go to the content tool.
Add an Existing Activity.
Select the tool link of the LTI tool.
Ensure the Waymaker course picker is displayed in the modal.

Screenshots

Database changes
No DB changes.
⚠ Deployment instructions ⚠
No additional instructions.
New ENV variables
No new ENV variables needed.
The deep linking option now is enabled by default.
lti13.enableDeepLinking=true

Checklist

[X] I have reviewed the AC for this feature and my changes meet all requirements
[X] (For UI changes) I have considered the accessibility of this feature (see https://www.a11yproject.com/checklist/ for a high-level checklist)
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] My changes generate no new warnings
[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] Any dependent changes have been merged and published in downstream modules
[X] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have requested a review from at least one other dev

Shall I care about the Travis CI build? It is failing but I suspect is not related to the changes of this PR.
If everybody is fine could you please merge it? I don't have permissions to do it.

I merged the PR.  We'll look into the build failure.


use let for functions

For parsing reasons, let always binds a value, while fun is a shorthand for functions. My intention before starting this project was to distinguish in a slightly different way: let is an eager binding, while fun is a lazy binding; both can use the <kw> name arg1 arg2 ... = shorthand syntax for declaring functions. Though this eager/lazy thing might be somewhat of a dead end, I still think it would be nice and simple if the language needed just one keyword for binding.
One question is how this will interact with constructors, when that time comes. The short answer is "I don't know"; the long answer is that I might want to say that "constructors must always appear in qualified form" which would make parsing easier - if the application pattern has a raw name in the function part, it's a function; if it is a path, it's a constructor. But there are many options to explore here and things to consider.
Pros

lexical simplicity: the language grammar keeps at a "let" simple-expr "=" expr
semantic simplicity: let always introduces a value in a nice"let this expression be defined as this expression"
consistency: patterns become much more free-form, and functions can be defined using operator syntax

Cons

lexical complexity: the parser now needs to do more work to extract the function name from a function definition
consistency: having separate keywords like let and fun might make code ever so slightly more readable

I do think fun is somewhat aesthetically pleasing, for lack of a better term. The big reason I want to merge the two is because of stuff like let a + b = ..., which doesn't really work with the current fun-based syntax. Making it work would effectively remove the need for fun anyways.
The big troublesome thing here is the potential ambiguity with constructors and pattern matching later on (e.g. does let some x = ... (incorrectly) unpack an option type, or is it defining a function named some?). The solution I'm leaning towards is requiring some path name in constructor names (e.g. Option.some), which wouldn't be a valid function name anyway. This might require some more thought, though.


add code owners for index.json

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/fengzhou-msft/azure-cli-extensions.git@update_codeowner#subdirectory=src/$EXT&egg=$EXT"

index.json

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/fengzhou-msft/azure-cli-extensions.git@update_codeowner#subdirectory=src/$EXT&egg=$EXT"


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Thu Mar 31 2016 14:42:57 GMT-0700 (Pacific Daylight Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\rick\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\rick\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470

You are not up to date.  Please accept the update notification in the player and this error will be fixed

@rickwastaken Could you please also upload the file found at %LOCALAPPDATA%\GPMDP_3\SquirrelSetup.log on your computer. I am trying to determine why some users aren't updating

Hello,
I've attached the document you requested.  Is there a manual way to update
the app? Or should I just uninstall and reinstall a newer version?
Thanks,
Rick
On Mon, Apr 4, 2016 at 10:00 AM Samuel Attard<EMAIL_ADDRESS>wrote:

@rickwastaken https://github.com/rickwastaken Could you please also
upload the file found at %LOCALAPPDATA%\GPMDP_3\SquirrelSetup.log on your
computer. I am trying to determine why some users aren't updating
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/issues/863#issuecomment-205393117

I don't think email attachments work with Github, could you post it to https://gist.github.com?

Here's a link to the log file:
https://gist.github.com/rickwastaken/c659c5a9fe75ecb3db274222bf6c288c
On Mon, Apr 4, 2016 at 12:24 PM Jesse Ostrander<EMAIL_ADDRESS>wrote:

I don't think email attachments work with Github, could you post it to
https://gist.github.com?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/issues/863#issuecomment-205456732

@rickwastaken You can manually update the app by simply running the 3.1.0 installer (you can download it from the website).
Can you try accessing http://update.googleplaymusicdesktopplayer.com/api/versions and tell me what you get.

Also @rickwastaken do you use a proxy of any kind or a VPN?


Update homepage for insomniax

Homepage SSL cert expired a long time ago

The certificate expired on 20 September 2016 at 10:21 pm

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[ ] The commit message includes the cask’s name and version.

Thank you for the contribution. It was merged directly as a03c874ede57f22c7f026ee927734fb62314d8a8. Your contribution is still credited to you.


Upgrade log4j to 2.15

To address CVE

See CVE-2021-44228

E                   py4j.protocol.Py4JJavaError: An error occurred while calling o53.sql.
E                   : java.lang.NoSuchFieldError: EMPTY_BYTE_ARRAY
E                   	at org.apache.logging.log4j.core.config.ConfigurationSource.<clinit>(ConfigurationSource.java:56)
E                   	at org.apache.logging.log4j.core.config.NullConfiguration.<init>(NullConfiguration.java:32)
E                   	at org.apache.logging.log4j.core.LoggerContext.<clinit>(LoggerContext.java:85)
E                   	at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:254)
E                   	at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:218)
E                   	at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:136)
E                   	at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:123)
E                   	at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:117)
E                   	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:150)
E                   	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
E                   	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
E                   	at org.apache.logging.log4j.scala.Logger$.apply(Logger.scala:39)
E                   	at org.apache.logging.log4j.scala.Logging.$init$(Logging.scala:28)
E                   	at ai.eto.rikai.sql.model.fs.FileSystemRegistry.<init>(FileSystemRegistry.scala:31)

So log4j-scala-api still uses log4j-api 2.13, which does not have  EMPTY_BYTE_ARRAY constant yet.
Maybe we can wait a new log4j-scala-api release?

https://logging.apache.org/log4j/2.x/source-repository.html
@darcy-shen @eddyxu can you find the source code of log4j-api-scala? I can't find it. Is it still an offcial part of log4j? How can we believe a new version will release.

i suggest that we should use scala logging by typesafe

i suggest that we should use scala logging by typesafe
I approve with this idea, it is builds over slf4j which is more framework neutral.
https://github.com/lightbend/scala-logging


New module for common Hawkular REST api - first shot

It's a new war living under the /modules/
Currently it's only capable of CRUDing the URLs with all the magic behind it (except pre-creation of alerts, this will be the next step)
It uses the Hystrix library and java rx, so each operation is basically encapsulated as a Hystrix command with possible fallbacks if the backend is not there. Hystrix inherently supports the Circuit breaker pattern, so it will be possible to fallback to some dummy response if the system is overloaded and other interesting features.

Perhaps this should be squash merged.

Perhaps this should be squash merged.


Make getChannel method protected

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (39a72f9) 39.55% compared to head (ee1b203) 39.55%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #202   +/-   ##
==========================================
  Coverage      39.55%   39.55%
  Complexity      1159     1159
==========================================
  Files            244      244
  Lines           9602     9602
  Branches         918      918
==========================================
  Hits            3798     3798
  Misses          5538     5538
  Partials         266      266

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


NFT AMM

Implement a ERC721 AMM package using the Dojo ERC modules

hello @ponderingdemocritus can you assign this issue to me?


Simple test for extra Mergify rule

Description
A simple test for the companion Mergify rule for solo authors
Motivation and Context
N/A

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #15   +/-   ##
=======================================
  Coverage   73.68%   73.68%
=======================================
  Files           2        2
  Lines          19       19
=======================================
  Hits           14       14
  Misses          5        5

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 7f98490...0bab4f0. Read the comment docs.


Live

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/GetStarted.md
:white_check_mark:Succeeded

windows-iotcore/TOC.md
:white_check_mark:Succeeded

windows-iotcore/commercialize-your-device/Agreement-FAQ.md
:white_check_mark:Succeeded

windows-iotcore/commercialize-your-device/IoTCoreServicesOverview.md
:white_check_mark:Succeeded

windows-iotcore/commercialize-your-device/OEMLicenseRequirements.md
:white_check_mark:Succeeded

windows-iotcore/connect-your-device/MBB.md
:white_check_mark:Succeeded

windows-iotcore/develop-your-app/IoTCoreShell.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/SoCsAndCustomBoards.md
:white_check_mark:Succeeded

windows-iotcore/media/IoTCoreServices/IoTCoreServicesOverview-DUC.png
:white_check_mark:Succeeded

windows-iotcore/media/adafruitkit/pack.jpg
:white_check_mark:Succeeded

windows-iotcore/release-notes/CurrentInsider.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/Insider/17692.md
:white_check_mark:Succeeded

windows-iotcore/secure-your-device/SecureBootAndBitLocker.md
:white_check_mark:Succeeded

windows-iotcore/secure-your-device/TPM.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/Tutorials.md
:white_check_mark:Succeeded

windows-iotcore/tutorials/adafruitkit.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot-core.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot-enterprise.md
:white_check_mark:Succeeded

windows-iotcore/windows-iot.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


can i use this for horizontal paging....

I would like to know that is the library useful for horizontal paging also ?

no , you can use org.lucasr.twowayview.TwoWayView .