[New API] : WorldTimeAPI

Brief Description 🤓
Current time and date information for different time zones.
How will you develop it?🤩
react,js
Deployment
None
Select the open source program you are contributing to
Other
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINES of this project.

Greetings @AmruthaPariprolu🎀 ! , We are excited to have you dive into another issue with us!🚀
Your involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇.  Use command /gssoc24 to self assign the issue.  This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.
We request you to follow CONTRIBUTING GUIDELINES.
Looking for your PR soon!
In case of any issues, you can contact us on Discord.❣

/gssoc24


Remote installation is failing with task  webserver-app : Set default solr server host from hostvars

Hi,
I proceed as written in https://islandora.github.io/documentation/installation/ section Installing a remote environment. The installation process is interrupted with error:
TASK [webserver-app : Set default solr server host from hostvars] ****************************************
Tuesday 16 June 2020  10:56:39 +0200 (0:00:03.749)       0:19:38.676 **********
fatal: [default]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ansible_host'\n\nThe error appears to have been in '/home/pejuko/islandora-playbook/roles/internal/webserver-app/tasks/solr.yml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Solr server configuration should go into the solr playbook: https://github.com/Islandora-Devops/claw-playbook/blob/dev/solr.yml\n- name: Set default solr server host from hostvars\n  ^ here\n"}

So I believe there is missing information about how to configure solr (probably in group_vars/solr.yml)
Can you, please, provide some information how to set custom domain for solr?
Thanks.

Hi Petr,
Are you installing Islandora to more than one server?
This error (and I'm sure I've seen it) is usually related to the hosts
file. Its trying to get the hostname for the server to install solr on.
I used this playbook (a bit ago) to install to a single remote machine
and this is my hosts file.
Generated by Vagrant
default ansible_host=fram.ad.umanitoba.ca ansible_port=22
ansible_user=whikloj
ansible_ssh_private_key_file='/Users/whikloj/.ssh/id_fram_rsa'
ansible_become=yes
[karaf]
default
[database]
default
[webserver]
default
[tomcat]
default
[solr]
default
[crayfish]
default
So for Solr it pulls the default row at the top and then the
ansible_host variable from there. Maybe check there are no spelling
issues or extra spaces that might cause it to fail that look up.
cheers,
jared
On 2020-06-16 6:13 a.m., Petr Kovář wrote:

Hi,
I proceed as written in
https://islandora.github.io/documentation/installation/ section
Installing a remote environment. The installation process is interrupted
with error:
|TASK [webserver-app : Set default solr server host from hostvars]
**************************************** Tuesday 16 June 2020 10:56:39
+0200 (0:00:03.749) 0:19:38.676 ********** fatal: [default]: FAILED! =>
{"msg": "The task includes an option with an undefined variable. The
error was: 'dict object' has no attribute 'ansible_host'\n\nThe error
appears to have been in
'/home/pejuko/islandora-playbook/roles/internal/webserver-app/tasks/solr.yml':
line 6, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n# Solr
server configuration should go into the solr playbook:
https://github.com/Islandora-Devops/claw-playbook/blob/dev/solr.yml\n-
name: Set default solr server host from hostvars\n ^ here\n"} |
So I believe there is missing information about how to configure solr
(probably in group_vars/solr.yml)
Can you, please, provide some information how to set custom domain for solr?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Islandora/documentation/issues/1547, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVZVYNTLPZKP3EKIJ64WTTRW5HVPANCNFSM4N7QOBDQ.

--
Jared Whiklo
Pronouns: he/him/his
<EMAIL_ADDRESS>I've learned that you shouldn't compare yourself to others - they are
more screwed up than you think.

Hi Jared,
it works! I was missing the ansible_host variable.
In the documentation is only
default ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

but should be
default ansible_host=example.org ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

btw. I'm installing Islandora only in virtual box just as a practice before installing it on a production server.

Ooooo right you are, I'll verify with others but I think we need to correct that. Good catch.

Thanx for this. I had a similar issue with seadragon config using ansible to provision a centos7 server. Perhaps this page could be updated to reflect the ansible_host=example.org variable in the hosts file - https://islandora.github.io/documentation/installation/
# default ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'
default ansible_host=example.org ansible_ssh_host=example.org ansible_ssh_user=root ansible_ssh_private_key_file='/home/username/.ssh/id_rsa'

Or update the roles

I knew I had seen this, but then I went and made a duplicate ticket and a PR to fix this. Under #1557

Resolved via https://github.com/Islandora/documentation/commit/bbe1616c9ed144cb3cfd6e06c49df7b12ece9077


Support Swift 4.2

I see Swift 4.2 changes were made a bit ago (on master, not released). Please make a release and update podspec to support it.

@xhacker


Error when run "preprocess_dannce(filename_in,filename_out,species_name,'')"

Hi. I try to run the demo scrip preprocess_dannce, the error occur as below. i think it is better to modify the original code that can deal with the issue of infinite values. many thanks for your effort @spoonsso @jessedmarshall
################################################################
median filtering getting velocities
Error using filtfilt
Expected input to be finite.
Error in filtfilt>efiltfilt (line 114)
validateattributes(x,{'double'},{'finite','nonempty'},'filtfilt');
Error in filtfilt (line 89)
y=efiltfilt(b,a,x);
Error in compute_preprocessed_mocapstruct (line 44)
abs_velocity_antialiased(ll,:) =  filtfilt(f1,f2, marker_velocity(ll,:,4));
Error in preprocess_ratception_struct_demo (line 43)
ratception_struct_temppreproc = compute_preprocessed_mocapstruct(ratception_struct_temp,preprocessing_parameters);
Error in preprocess_dannce (line 105)
ratception_struct = preprocess_ratception_struct_demo(datahere,preprocessing_parameters,params);

Can you please describe in more detail what exactly you are trying to run and with what data?

Hi, thank you very much for your reply!!
i just try to run the script of preprocess_dannce.mat as the demo page shows:

filename_in = 'predictions.mat';
filename_out = 'predictions_preprocessed.mat';
species_name = 'mouse'
preprocess_dannce(filename_in,filename_out,species_name, ' ')
the error is reported as below:
Error using filtfilt
Expected input to be finite.
Error in filtfilt>efiltfilt (line 114)
validateattributes(x,{'double'},{'finite','nonempty'},'filtfilt');
Error in filtfilt (line 89)
y=efiltfilt(b,a,x);
Error in compute_preprocessed_mocapstruct (line 44)
abs_velocity_antialiased(ll,:) =  filtfilt(f1,f2, marker_velocity(ll,:,4));
Error in preprocess_ratception_struct_demo (line 43)
ratception_struct_temppreproc =
compute_preprocessed_mocapstruct(ratception_struct_temp,preprocessing_parameters);
Error in preprocess_dannce (line 107)
ratception_struct = preprocess_ratception_struct_demo(datahere,preprocessing_parameters,params);
############################################################################################
i think it is cased by the calculation of abs_velocity_antialiased value as it has infinite values.
So i wonder whether it is possible to ask how to fix the issue of infinite values? or is there any suggestions? thank you so so much for all!!! @spoonsso

Hi Yuan,
You are right that the filtfilt was the problem. I added a simple masking in that section of the code (in the CAPTURE repo) to address this. I pushed the change to the capture demo and included the fix below. Did this work?
frames_to_mask = union(find(isnan(marker_velocity(ll,:,4))),find(isinf(marker_velocity(ll,:,4))));
marker_velocity(ll,frames_to_mask,4) = 0;
abs_velocity_antialiased(ll,:) =  filtfilt(f1,f2, marker_velocity(ll,:,4));
marker_velocity(ll,frames_to_mask,4) = nan;
abs_velocity_antialiased(ll,frames_to_mask) = nan;

Hi Jesse, thank you so so much for your update. yes!! it works smoothly !!! thanks a lot!


Rewrite in Go

Hello! You list "rewrite in Go" on the roadmap (https://clustersecret.io/roadmap/).
Would you mind if I try that out? It sounds like fun.
Also, are you looking for a new maintainer? I could help with that, if you wish.

I already started with that. it is very green not really doing too much...  I am inviting you to the repo now so you can take a look there.
Some help would be appreciated indeed :)

Awesome!


Camel CDI context creation tests case failures

The build has been unstable since yesterday. I can no longer perform a successful local build of WFC because of these test failures:
CDIContextCreationTest.testCDIContextCreation:76 expected:<0> but was:<1>
CDIContextCreationTest.testManualComponentConfig:97 expected:<1> but was:<2>
CDIEarIntegrationTest.testEjbJarDeployment:65 expected:<1> but was:<2>
NoCDIContextCreationTest.testDeployment:57 No contexts deployed

Likely that this is caused by the recent introduction of the activemq-mqtt dependency onto the test classpath. Which pulls in various geronimo dependencies and possibly other unwanted bits.


Windows: The same container cannot be recreated in the same Pod

Description
If a container from a Pod is deleted, it can no longer be created with the same configuration on Windows due to this error:
time="2021-02-26T14:36:42Z" level=fatal msg="creating container: rpc error: code = NotFound desc = failed to get sandbox container task: no running task found: task fd321b0a09e7d3509f4be47b8c043b174b8f16d2069b39f2837952ba1c17074c not found: not found"

This error can be observed while running the CRI integration test TestContainerRestart. The steps executed by the test are the same as the ones below.

Steps to reproduce the issue:
crictl --runtime-endpoint=npipe://./pipe/containerd-containerd pull docker.io/claudiubelu/pause:3.4.1
$POD_ID=(crictl --runtime-endpoint=npipe://./pipe/containerd-containerd runp .\pod.json)
$CONTAINER_ID=(crictl --runtime-endpoint=npipe://./pipe/containerd-containerd create $POD_ID .\container1.json .\pod.json)
crictl --runtime-endpoint=npipe://./pipe/containerd-containerd start $CONTAINER_ID
crictl --runtime-endpoint=npipe://./pipe/containerd-containerd stop $CONTAINER_ID
crictl --runtime-endpoint=npipe://./pipe/containerd-containerd rm $CONTAINER_ID

# the error occurs here on master:
$CONTAINER_ID=(crictl --runtime-endpoint=npipe://./pipe/containerd-containerd create $POD_ID .\container1.json .\pod.json)

pod.json:
{
  "metadata": {
    "name": "sandbox",
    "namespace": "default",
    "attempt": 1,
    "uid": "hdishd83djaidwnduwk28bcsb"
  },
  "logDirectory": "/tmp"
}

container1.json:
{
  "metadata": {
      "name": "busybox"
  },
  "image":{
      "image": "docker.io/claudiubelu/pause:3.4.1"
  },
  "command": [],
  "args": []
}

Describe the results you received:
The last step will generate the following error:
time="2021-02-26T14:36:42Z" level=fatal msg="creating container: rpc error: code = NotFound desc = failed to get sandbox container task: no running task found: task fd321b0a09e7d3509f4be47b8c043b174b8f16d2069b39f2837952ba1c17074c not found: not found"

It is noteworthy that this error occurs with a containerd built from master. This error does not occur in version v1.4.3.
Describe the results you expected:
The opperation should have succeeded.
Output of containerd --version:
containerd github.com/containerd/containerd v1.5.0-beta.1-4-ge288feacf.m e288feacf35b202d483665fbd296113897427aca.m

This scenario works with the following containerd version:
containerd github.com/containerd/containerd v1.4.3 269548fa27e0089a8b8278fc4fc781d7f65a939b

Any other relevant information:

/cc @kevpar

Some more updates: This affects the newly introduced cri-integration tests, specifically the "TestContainerRestart" test. The test creates a pod & a container in that pod. When it tries to restart the container it will error out as the shim is gone & the pod in NotReady state.
`
=== RUN   TestContainerRestart
container_restart_test.go:28: Create a pod config and run sandbox container
common.go:115: Image "k8s.gcr.io/pause:3.5" already exists, not pulling.
container_restart_test.go:39: Create a container config and run container in a pod
container_restart_test.go:56: Restart the container with same config
E0525 11:42:20.019650    3056 remote_runtime.go:241] CreateContainer in sandbox "9ae354013a377b17848b6dccf7f8e7975d8769b6b125e6de631d85679b4adad5" from runtime service failed: rpc error: code = NotFound desc = failed to get sandbox container task: no running task found:
task 9ae354013a377b17848b6dccf7f8e7975d8769b6b125e6de631d85679b4adad5 not found: not found
container_restart_test.go:61:
Error Trace:    container_restart_test.go:61
Error:          Received unexpected error:
rpc error: code = NotFound desc = failed to get sandbox container task: no running task found: task 9ae354013a377b17848b6dccf7f8e7975d8769b6b125e6de631d85679b4adad5 not found: not found
Test:           TestContainerRestart
E0525 11:42:20.022406    3056 remote_runtime.go:288] StopContainer "" from runtime service failed: rpc error: code = Unknown desc = an error occurred when try to find container "": Prefix can't be empty
container_restart_test.go:53:
Error Trace:    container_restart_test.go:53
panic.go:613
testing.go:741
container_restart_test.go:61
Error:          Received unexpected error:
rpc error: code = Unknown desc = an error occurred when try to find container "": Prefix can't be empty
Test:           TestContainerRestart
E0525 11:42:20.026415    3056 remote_runtime.go:308] RemoveContainer "" from runtime service failed: rpc error: code = Unknown desc = an error occurred when try to find container "": Prefix can't be empty
container_restart_test.go:49:
Error Trace:    container_restart_test.go:49
panic.go:613
testing.go:741
container_restart_test.go:61
Error:          Received unexpected error:
rpc error: code = Unknown desc = an error occurred when try to find container "": Prefix can't be empty
Test:           TestContainerRestart
--- FAIL: TestContainerRestart (8.92s)
`

I investigated and this appears to be caused by incorrect behavior in the runhcs shim when "shim delete" is invoked. However, this issue did not appear prior to 1.5, because previously containerd would not actually invoke "shim delete" for a successful container stop operation. The change in behavior of containerd is valid though, it just exposed a bug in the shim.
PR to fix in hcsshim: Microsoft/hcsshim#1041

PR has been merged to hcsshim, so once we revendor it should be fixed in containerd.

We've also been looking into this issue. It seems to have become more apparent after this PR merged [1]. This happened because of the s.client.UserOnCloseWait(ctx) which was called before s.rtTasks.Delete(ctx, s.ID()). The shim was failing before, but because of this UserOnCloseWait, it allowed the shim the time necessary to fail and die, leading to the errors above.
I've tried out the new hcsshim with the changes @kevpar mentioned, and the issue no longer occurs.
[1] https://github.com/containerd/containerd/pull/4538

This should be resolved after this lands: https://github.com/containerd/containerd/pull/5673


Dependabot can't update bundler dependency files that reference private git repositories

I'm having trouble getting dependabot to work with private git repos that are included as gems in a private project, under an organization.

Here's the Github structure:
- organization with both public and private repos
  - private_repo_one (example: https://github.com/my-organization/private_repo_one)
  - private_repo_two (example: https://github.com/my-organization/private_repo_two)

The Gemfile for private_repo_one contains the following line:
gem 'private_repo_two', git: "git@github.com:my-organization/private_repo_two"

This is what my dependabot.yml file looks like in private_repo_one:
version: 2

registries:
  ruby-github:
    type: rubygems-server
    url: https://rubygems.pkg.github.com/octocat/github_api
    token: ${{secrets.DEPENDABOT_PRIVATE_KEY}} <-- this is set as a personal access token generated from https://github.com/settings/tokens

updates:
  - package-ecosystem: bundler
    directory: "/"
    insecure-external-code-execution: allow
    registries: "*"

I've given my personal access token ALL of the permissions, and the DEPENDABOT_PRIVATE_KEY is an organization dependabot secret defined here https://github.com/organizations/my-organization/settings/secrets/dependabot
Why isn't this working? Does dependabot v2 simply not support private bundler repos?

@kcarmonamurphy it looks like you still need to grant access to the private git repository, the above token will only be applied when the package is hosted on https://rubygems.pkg.github.com/octocat. We're looking at ways of making the integration with GitHub packages smoother.
You'll also want to grant dependabot access to these repos, you can use this UI to  grant it access if they exist under the same organization: https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization#allowing-dependabot-to-access-private-dependencies
If it's under another org, you'll need to add a git registries entry: https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#git

If I understand correctly from https://github.blog/changelog/2020-12-02-dependabot-version-updates-from-private-github-repositories/, for dependencies in the bundler ecosystem you always need a registries entry.

Hi @feelepxyz and @mvz, thank you for your input. We were able to get it to work after all!
Turns out that we were using the wrong registry. Because we're sourcing our packages directly from github, we needed to use the github registry instead of the rubygems one:
registries:
  github-octocat:
    type: git
    url: https://github.com
    username: x-access-token
    password: ${{secrets.DEPENDABOT_PRIVATE_KEY}}


Check if the provided toolchain version exists

Motivations
We should check that the format provided is correct, but also that the version does exist in rust-build.
Also, we should accept the standard semantic version x.y.z, in this case, if for example, we provide 1.63.0, we should search the latest release available for this version, in this case, <IP_ADDRESS>.

Closed by #128


Enable an admin user to download key metadata for all the publications in each bucket

Fields exported should include:
Publication: Title
Publication: DOI
Publication: DOI Verification Status
Publication: Preferred Version
Publication: Publication date
Publication: Abstract
Publication: ID (within RMD)
File: ID (within RMD)
File: Filename
File: Download link
File: Version
File: License
File: Set statement
File: Checked for set statement
File: Embargo date
File: Checked for embargo date
File: Author's access ID
File: Wrong version email last sent on
I still need to finalize the list here -- there may also be other fields we'd want to export.

We are prioritizing #997, #978, and #965 instead of doing this.


Updated ApolloClientSetup and BrowserRouter

Components updated

ApolloClientSetup
AppLayout

This PR change the websocket uri used by apollo client and the basename used by the BrowserRouter.

/deplo-staging

/deploy-staging

/rebase

/merge


Dynamodb Lambda Trigger with API access

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
node 18.x
Amplify CLI Version
12.7.1
What operating system are you using?
windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
I've added a trigger lambda connected to a DynamoDB table following these steps: https://docs.amplify.aws/cli/usage/lambda-triggers/#as-a-part-of-the-graphql-api-types-with-model-annotation
Then I've updated the function with API access:
? Which setting do you want to update? Resource access permissions
? Select the categories you want this function to have access to. api
? Api has 5 resources in this project. Select the one you would like your Lambda to access customerAPI
? Select the operations you want to permit on customerAPI create, read, update, delete

You can access the following resource attributes as environment variables from your Lambda function
        API_CUSTOMERAPI_GRAPHQLAPIENDPOINTOUTPUT
        API_CUSTOMERAPI_GRAPHQLAPIIDOUTPUT
? Do you want to edit the local lambda function now? No

The Schema model has auth rule { allow: private, provider: iam }.

The trigger function works and runs on table updates, but I can not get access to the API via app sync in the same function. The API access works in other lambda function to same table when code is not together with the trigger function. So the scheme is setup correctly.
{   statusCode: 400,   body: '{"data":{"listCommands":null},"errors":[{"path":["listCommands"],"data":null,"errorType":"Unauthorized","errorInfo":null,"locations":[{"line":3,"column":7,"sourceName":null}],"message":"Not Authorized to access listCommands on type Query"}]}' }
Looking at coludformation-template.json and securities rules for the generated lambda functions everything seems okey. It seems that the credentials generated is not correct or need to assume a different role?
Any idea how to debug this?
Expected behavior
It should be possible to generate a lambda trigger function for DynamoDB that also has access to appsync/API.
Reproduction steps

Add function that is a lambda trigger to dynamodb table ( https://docs.amplify.aws/cli/usage/lambda-triggers/#as-a-part-of-the-graphql-api-types-with-model-annotation )
Enable API access (read, delete, update, create)
Check that lambda is triggered when row in table change
Try to access API in the same function with this method: https://docs.amplify.aws/cli/function/#utilizing-lambda-function-template-iam-authorization

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hey @bergmorten, thank you for reaching out. From the information provided the behaviour appears to be similar to https://github.com/aws-amplify/amplify-category-api/issues/679
To mitigate the issue, could you try adding a empty line or update to the GraphQL API schema which should update the resolvers.

@ykethan Thanks that did the trick.
I lost a day of testing and debugging for an old bug that should have been fixed. When will you start fixing the bugs in amplify, it seems that are many tricks and workarounds that should have been handled by the tools.


Distributed tracing with TextMapPropagator

Hi,
Is there any way of using tarpc with a TextMapPropagator to propagate opentelemetry headers or to extend the tracing context allowing more properties to pass by (with an HashMap for example)?
This would allow custom opentelemetry implementation to work with tarpc (Datadog for example).

Thanks for your question! Apologies for the delay in responding.
I don't think this is supported by tarpc today. Can you provide an example of properties that are needed by Datadog?

Hi !
In my current datadog implementation few custom headers are required: x-datadog-trace-id, x-datadog-parent-id and x-datadog-sampling-priority.
I was looking at something like TextMapPropagator to pass those properties automatically at the bounds of my services. To do so I thing tarpc would need to support some kind of metadata / headers which is not the case right now.
But looking at the doc you linked, it might not be necessary anymore !

Cool, give it a shot and let me know if there are any issues!


input_filepath from Google Sheets

I would like to know if it is possible to substitute input_filepath a link to a csv file instead of a variable https://docs.google.com/spreadsheets

Hi @8thgencore, this currently isn't supported and there is no plans to support this feature request. If you are interested in adding this feature yourself, and you want to download a google spreadsheet as csv, I think this can be achieved by setting the file visible on Google Drive to "Anyone with link can view" and then add code to download it locally as csv.

For an overview of how to generate localization delegates from Google Drive, please see this article.


Additional polish

Codecov Report

Merging #17 (807e75d) into main (f5d2142) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   88.16%   88.16%
=======================================
  Files          23       23
  Lines        1420     1420
=======================================
  Hits         1252     1252
  Misses        168      168

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 f5d2142...807e75d. Read the comment docs.


error when visit http://localhost:5984/_utils

after install couchdb and pouchdb-server, i try to running the pouchdb-server. but when i open the site http://localhost:5984/_utils i got errors.
this the screenshot

That's because you are using an older version of Express. We only support Express 4+.

 Hang on, will fix.

Please npm install -g pouchdb-server and try again. It's working for me now. Thanks for reporting!

hi @nolanlawson thanks. its working now.

after install couchdb and pouchdb-server, i try to running the pouchdb-server. but when i open the site http://localhost:5984/_utils i got errors.
this the screenshot


Placeholder Icon doesn't appear (even if you set it as the icon) on blocks after adding wagtail_react_streamfield (in general)

Before adding 'wagtail_react_streamfield' to settings.py:

After adding 'wagtail_react_streamfield' to settings.py (above admin & images like it says in the docs):

Only one of the placeholder icon blocks has closed=True, but both aren't working.
(Also as a side note, the layout of the green plus icons is different from the pictures in the README)
I'm using Wagtail version 2.12

Same with 'clipboard-list'


utils/viewer: support export on Windows

Would be nice to have a comment somewhere to explain the approach, design, etc

Done in the commit description.


Gif support

Hey guys, pixi.js has support for gif images? Let me know if you have it and I need to insert gifs on canvas, thanks in advance :).
Greeting

https://github.com/sbfkcel/pixi-apngAndGif

https://github.com/sbfkcel/pixi-apngAndGif
Let Pixi.js support apng, gif images. And allow control of its operation.

Is this compatible with PIXI-v5?

can anyone please let me know how can i animate the gif?
i want to render the full gif.

Because of the browser limitations with GIF, there is not an easy path and this is unlikely to be a path we invest serious time in. If someone want to make a plugin, it seems like there are some GIF parsing libraries available that might help (and there seems like interest here!)
As a workaround, for animated sequences I'd suggest using AnimatedSprite or creating a video and using video source for the BaseTexture. These options will give you a much better playback experience, better file sizes, and better compression options.

Thanks @bigtimebuddy


DRBG: make locking api truly private

In PR #5295 it was decided that the locking api should remain private and used only inside libcrypto. However, the locking functions were added back to libcrypto.num by mkdef.pl,
because the function prototypes were still listed in internal/rand.h. (This header contains functions which are internal, but shared between libcrypto and libssl.)
This commit moves the prototypes to rand_lcl.h and changes the names to lowercase, following the convention therein. It also corrects an outdated documenting comment.

The removal of public symbols from libcrypto.num is uncritical. It affects only symbols added after the 1.1.1 alpha release.

Merged, thanks!


Multi-line function/mixin calls should be acceptable when enforcing space-between-parens and indentation

Sometimes the argument list when calling functions/mixins ends up being quite long so it is nice to put them onto multiple lines to make it them more readable. However currently this throws a combination of warnings - two space-between-parens (one for the opening paren, one for the closing paren) and an indentation warning for every line within the arguments. This occurs for native CSS functions (e.g. linear-gradient()), user-defined functions and mixins. To see this in action, run the following scss with the ruleset {'indentation': 1, 'space-before-brace': 1}:
// Top-level mixin
@include hello(
  $foo,
  $bar,
  $baz
);

.foo {
  // Nested Mixin
  @include hello(
    $foo,
    $bar,
    $baz
  );

  // CSS built-in function
  background: transparent linear-gradient(
    to bottom,
    #ff0000 0%,
    #00ff00 40%,
    #0000ff 40%
  );

  // User-defined function
  content: goodbye(
    $foo,
    $bar
  );
}

I would expect this to raise no warnings.

Have this fixed locally. Will create PR first thing tomorrow.


docs: skip files when navigating in the parent directory

When the offset is not 1, if it encounters a non-directory, should it move additionally?

Thank you!


Try pytest-rerunfailures instead of nick-fields/retry@v3 to reduce CI time and feedback upon failure

Closed by #264 as a side-quest!


Introduce Requested Snapshotting Interval

Fixes https://github.com/input-output-hk/ouroboros-network/issues/2949

Status update: TODOs in my mind as follows

Update the comment on deafultDiskPolicy as we discussed on the call
Add Haddock to RequestedSnapshotInterval (especially "seconds")
The test case you're adding

I reviewed the new test code. I ended up writing a lot of advice in the comments before I realized I was doing that. We can instead discuss it all on the next call we have that's not dominated by AlonzoEra integration if you'd rather not read all my words. 👍

bors merge


Can't set required field for ajv schema validation

Bug Report
Is you/your team sponsoring this project

[ ] Yes
[x] No

If your team sponsoring this project, please attach here your team lead or who purchased license GitHub login
Minimal reproducible repo
Link here
Current Behavior
Suppose I have a request schema like this.
const requestSchema: Schema = {
  query: {
    type: 'object',
    properties: {
      url: {
        type: 'string',
      },
    },
    required: ['url'],
  },
  ...
}

Setting the required field causes an error because the SchemaValue interface doesn't accept string[], while it is a valid syntax in Ajv.
Expected behavior/code
Make SchemaValue accept string[].
Environment

Node/npm version: [Node 12.16.0/npm 6.13.4]
OS: [MacOS Big Sur 11.2.2]
TypeScript: 4.2.3

Possible Solution
interface SchemaValue {
    [key: string]: string | string[] | SchemaValue;
  }

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
Note

Project is provided as-is without any support nor warranty
If this issue not related to this project and exists on core of this project, please close issue or not open

@hellovietduc Hi and thanks for trying out.
Did you try change code to this?
const requestSchema: Schema = {
  query: {
    type: 'object',
    properties: {
      url: {
        type: 'string',
+     required: true
      },
    },
  },
  ...
}


Changed script to R markdown file

Changed the file to a R markdown so easier to read and use.
Also had to remove the terra package from the list. This is a dependency that other packages will install but causes issues when trying to install from source on MacOS. The only work around was removing it from the install list.
Can someone pls review this?

I don't have enough context for this one so I'll let others to review this one. Sorry!

Removed as not needed anymore


Update README.md

Added S-BPM One 2019 Conference in Seville, Spain on 2019.06.26-28

Added S-BPM One 2019 Conference in Seville, Spain on 2019.06.26-28


Update README.md

needed to fix a typo that was killing me!  Look, I'm contributing!

Fixed a typo in the readme.

🤣 lgtm!


CIP-0083 | confirm openssl behaviour, fix command line example

A. There is one under-specification that I found worth adding.
AES-256-CBC cipher as implemented in OpenSSL requires messages that are a multiple of 16-bytes. If the message does not fit then padding is used. In the current PR the padding technique is explicitly exhibited. It is very important information for those that implement this CIP - as I was in the context of cardano-wallet.
B. The second thing worth mentioning is the example specified, ie.
openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" <<< '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>
It is unfortunate as <<< is adding new line!
Perform shell expansion on word and pass the result to standard input. This is known as a here-string. Compare the use of word in here-documents above, where word does not undergo shell expansion. The result will have a trailing newline after it.

Further proof:
$ openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" --nosalt -v <<< '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>bufsize=8192
IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE
7jFsGUK1bCdwsrn8kqI92EYRbU2O7jl0EVo2sKPw92Q=
bytes read   :       68
bytes written:      110

$ echo -n '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>| openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" -nosalt -v
bufsize=8192
IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE
7jFsGUK1bCdwsrn8kqI92NccbG8oAtPJUktZTTcO/bg=
bytes read   :       67
bytes written:      110

Hence, I allowed myself to rewrite example using echo -n

@paweljakubas we have to be 100% sure about changing an Active CIP especially given the number of wallets supporting this standard.
Also: if these wallets have been padding to 16-byte blocks in practice, without CIP-0083 telling them to, certainly CIP-0083 should be updated to mention such a practice... which in turn suggests maybe a V2 of this protocol if some implementations are not padding the blocks. 😬
@gitmachtl @AndrewWestberg @Crypto2099 where does the trade practice stand on this issue?  (The second issue of shell syntax seems absolutely straightforward and should be ready to change regardless: unless any objections about the command phrasing.)

The changes seem minor and "default behavior" as defined, this is just explicitly stating what expected default behavior is. I'm good with adding this change as-written currently personally.

Also: if these wallets have been padding to 16-byte blocks in practice, without CIP-0083 telling them to,

Do the codesamples that accompany CIP-0083 add padding?

@rphair @Crypto2099 @HeinrichApfelmus Last commit adjust jq encryption example. I added rationale in point C in the description of this PR. Cheers!

A. There is one under-specification that I found worth adding. AES-256-CBC cipher as implemented in OpenSSL requires messages that are a multiple of 16-bytes. If the message does not fit then padding is used. In the current PR the padding technique is explicitly exhibited. It is very important information for those that implement this CIP - as I was in the context of cardano-wallet.
B. The second thing worth mentioning is the example specified, ie.
openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" <<< '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>
It is unfortunate as <<< is adding new line!
Perform shell expansion on word and pass the result to standard input. This is known as a here-string. Compare the use of word in here-documents above, where word does not undergo shell expansion. The result will have a trailing newline after it.

Further proof:
$ openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" --nosalt -v <<< '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>bufsize=8192
IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE
7jFsGUK1bCdwsrn8kqI92EYRbU2O7jl0EVo2sKPw92Q=
bytes read   :       68
bytes written:      110

$ echo -n '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>| openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" -nosalt -v
bufsize=8192
IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE
7jFsGUK1bCdwsrn8kqI92NccbG8oAtPJUktZTTcO/bg=
bytes read   :       67
bytes written:      110

Hence, I allowed myself to rewrite example using echo -n
C. jq powered encryption example. -j option is missing (it instructs jq to not add newline). Illustrative example below (I used nosalt in order to be easily reproducible). It should be like that (not adding newline)
$ echo -n '["Invoice-No: 123456789","Order-No: 7654321","Email<EMAIL_ADDRESS>| openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" -nosalt
IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE
7jFsGUK1bCdwsrn8kqI92NccbG8oAtPJUktZTTcO/bg=

It is now :
$ jq ".\"674\".msg = [ $(jq -crM .\"674\".msg normal-message-metadata.json | openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" -nosalt | awk {'print "\""$1"\","'} | sed '$ s/.$//') ]" <<< '{"674":{"enc":"basic"}}' | tee encrypted-message-metadata.json | jq
{
  "674": {
    "enc": "basic",
    "msg": [
      "IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE",
      "7jFsGUK1bCdwsrn8kqI92EYRbU2O7jl0EVo2sKPw92Q="
    ]
  }
}

After last commit and using -j we have perfect alignment with echo -n :
$ jq ".\"674\".msg = [ $(jq -cjrM .\"674\".msg normal-message-metadata.json | openssl enc -e -aes-256-cbc -pbkdf2 -iter 10000 -a -k "cardano" -nosalt | awk {'print "\""$1"\","'} | sed '$ s/.$//') ]" <<< '{"674":{"enc":"basic"}}' | tee encrypted-message-metadata.json | jq
{
  "674": {
    "enc": "basic",
    "msg": [
      "IBcjjGQ7akr/CV2Zb0HtCvEPQNndZujCZ7iaFGMjOX3q3PJg5aRUvHgO3gPnDzYE",
      "7jFsGUK1bCdwsrn8kqI92NccbG8oAtPJUktZTTcO/bg="
    ]
  }
}

The newline did slip true the checks, because only the json content itself was later on used for further processing. And so an extra linebreak/newline or so did not have an impact on that.

thanks @rphair . I had automatic trailing whitespace removal. Now it should be ok. I will re-check jq command tomorrow if they work after using echo -n and if not will also adjust them.

Whitespaces are valid data, before or after some text. So we have to be careful about that.

While we are updating this README.md, we could also update the fact, that cardanoscan has also included this feature since the last update:

@gitmachtl it's already listed under Implementors: in the header: currently 7 implementors there, including CardanoScan, but only the original 4 of them (used as the basis for Active status) are listed & illustrated in the Path to Active section.
So I think it's understood that further implementors don't have to be added to the text convent or provide evidence for them in screenshots (cc @Crypto2099 @Ryun1 in case they disagree).

@paweljakubas I've put this on the CIP Editors Meeting agenda in 5 days' time (https://hackmd.io/@cip-editors/87) since I think as soon as we can get the other editors to run through this, and also get whatever devs present to double-check, this could be merged at the next meeting or shortly afterward (if not already done in the meantime).

Well received at this evening's CIP Editor meeting so just waiting for @Crypto2099 to also endorse this before merging.

p.s. marking Last Check & have put on agenda for meeting # 88 in case this final review gets missed somehow in the biweekly period.


Edge events broken ?

Events on edge seems to be broken, since 6.1.2.
https://visjs.github.io/vis-network/examples/network/events/interactionEvents.html
My console:

Works fine with 6.2.0

Hi @Rico66100,
more info about triggering this would be appreciated. However after some fiddling around I found out a way to trigger this.
It happens when an edge is reconnected. Just as the end of the edge is dropped onto a node an error is thrown and the edge is forever stuck in there. It's possible to redrop the edge but that throws just another instance of the same error.
PS: If there are more ways how to trigger this feel free to share it with us.

Hmm, this class has a beautiful property that starts with an underscore. Let's use it!

Sometimes I really wonder what were the people thinking? I understand when people do this if there's no other way but why here? Why would anyone chose ._data[id] (private, undocumented) over .get(id) (public, part of the documented API)?
PS: For those who don't know in JavaScript convetions underscore means it's private and should never be accessed from the outside as it can change or disappear at any moment without any warning.
PPS: This was introduced by person whose bio says "The Software Barbarian" :smile:.

There are several places where this is used so many more things should be broken. I'm actually surprised it works at all.

@Thomaash : Sorry, to trigger this, I select an edge then 'Edit Edge'. Select on of the drag/drop circle and just drop it on a node.


Use space as a seperator between the path matching and regular quick open matching

In the following example it would be cool if the word after the space would do regular quick open matching on all the files that passed the path filter.

#5306


Fix: Credit Transaction Excel Effective Date - 2536

Made all credit transfer types show effective_date as either trade_effective_date or last_updated_at.

@AlexZorkin is Effective date should be seen for approved transaction only or it should be visible  for other state as well (e.g signed, declined, rescinded ?) Currently its visible for all except Declined.

@AlexZorkin is Effective date should be seen for approved transaction only or it should be visible for other state as well (e.g signed, declined, rescinded ?) Currently its visible for all except Declined.

If a credit transfer has those statuses other than 'Approved' then they should not show an effective date. With this pr it fixes that issue by only allowing Approved credit transfers with an effective date, as well as any transfers of type "Credit Reduction", "Credit Validation"


Issues: update to _f5.py

Fixes #5
Problem:
_f5.py in marathon was updated.
Analysis:
updating to the latest _f5.py module
Tests:
None

@richbrowne @andrewjjenkins new pull request for the update to the _f5.py file


Errors when build for Emscripten with-DHELLOIMGUI_USE_SDL_OPENGL3=ON

The signature of Demo main() function is exactly int main(int argc, char **argv) and returns an int.
//-----------------------------
37>MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
37>C:\GUI\Imgui\hello_imgui-master\build_emscripten\src\hello_imgui_demos\hello_imgui_demo_minimal\Debug\hello_imgui_demo_minimal.exe : fatal error LNK1120: 1 unresolved externals
39>MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
39>C:\GUI\Imgui\hello_imgui-master\build_emscripten\src\hello_imgui_demos\hello_world\Debug\hello_world.exe : fatal error LNK1120: 1 unresolved externals
40>MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
40>C:\GUI\Imgui\hello_imgui-master\build_emscripten\src\hello_imgui_demos\hello_imgui_demo_classic\Debug\hello_imgui_demo_classic.exe : fatal error LNK1120: 1 unresolved externals

Hello,
It seems that there is an issue in the way you are invoking emscripten and that your issue is related to "MSVC / Windows" , since the message "MSVCRTD.lib" show that you are linking against "Microsoft Visual Studio RunTime Debug Library" (MSVCRTD.lib).
When building with emscripten, the msvc compiler and the msvc runtime should not be used: instead you use a  compiler provided by emscripten (which is based on clang).
The readme provides instructions for emscripten builds under linux or osx. I just tried them and they do work. However, I did not try them under windows.
Suggestions:

Try to build under linux
Under windows: refer to the documentation concerning windows on the emscripten website.
Under linux, one can type emcmake cmake ... I doubt this will work under windows.
Instead you might perhaps use the emscripten dedicated Windows Command Prompt : see https://emscripten.org/docs/tools_reference/emcmdprompt.html

Good luck

Hello,
It seems that there is an issue in the way you are invoking emscripten and that your issue is related to "MSVC / Windows" , since the message "MSVCRTD.lib" show that you are linking against "Microsoft Visual Studio RunTime Debug Library" (MSVCRTD.lib).
When building with emscripten, the msvc compiler and the msvc runtime should not be used: instead you use a compiler provided by emscripten (which is based on clang).
The readme provides instructions for emscripten builds under linux or osx. I just tried them and they do work. However, I did not try them under windows.
Suggestions:

Try to build under linux
Under windows: refer to the documentation concerning windows on the emscripten website.
Under linux, one can type emcmake cmake ... I doubt this will work under windows.
Instead you might perhaps use the emscripten dedicated Windows Command Prompt : see https://emscripten.org/docs/tools_reference/emcmdprompt.html

Good luck

Thanks a lot.


Bump image for cryocloud

Ref: https://2i2c.freshdesk.com/a/tickets/713

Hmm reran and kept an eye on events
My own container started fine
2m15s                 Normal    Scheduled              Pod/jupyter-pnasrat                        Successfully assigned staging/jupyter-pnasrat to ip-192-168-2-21.us-west-2.compute.internal
2m14s                 Normal    Pulling                Pod/jupyter-pnasrat                        Pulling image "busybox"
2m13s                 Normal    TaintManagerEviction   Pod/jupyter-pnasrat                        Cancelling deletion of Pod staging/jupyter-pnasrat
2m12s                 Normal    Pulled                 Pod/jupyter-pnasrat                        Successfully pulled image "busybox" in 1.990685885s (1.990692891s including waiting)
2m12s                 Normal    Created                Pod/jupyter-pnasrat                        Created container volume-mount-ownership-fix
2m12s                 Normal    Started                Pod/jupyter-pnasrat                        Started container volume-mount-ownership-fix
2m8s                  Normal    Pulling                Pod/jupyter-pnasrat                        Pulling image "quay.io/cryointhecloud/cryo-hub-image:034c99c07b90"
7s                    Normal    Pulled                 Pod/jupyter-pnasrat                        Successfully pulled image "quay.io/cryointhecloud/cryo-hub-image:034c99c07b90" in 2m0.915195289s (2m0.91521244s including waiting)

The deployer hits back-off
0s                    Normal    Pulled                 Pod/jupyter-deployment-2dservice-2dcheck   Container image "quay.io/cryointhecloud/cryo-hub-image:034c99c07b90" already present on machine
1s (x2 over 17s)      Normal    Created                Pod/jupyter-deployment-2dservice-2dcheck   Created container notebook
0s (x2 over 17s)      Normal    Started                Pod/jupyter-deployment-2dservice-2dcheck   Started container notebook
0s                    Warning   BackOff                Pod/jupyter-deployment-2dservice-2dcheck   Back-off restarting failed container

kubectl logs --previous jupyter-deployment-2dservice-2dcheck notebook -n staging
/srv/conda/envs/notebook/lib/python3.10/subprocess.py:961: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdout = io.open(c2pread, 'rb', bufsize)
mkdir: cannot create directory ‘/home/jovyan/Desktop’: File exists

Looks like the start script will fail with file exists due to the bash
https://github.com/CryoInTheCloud/hub-image/commit/32cb0bcc515a1d5c862667ce8d98c3217c141d26


Special characters in the password results in no password being sent to SonarTfsAnnotate.exe

I've noticed that having special characters causes the password to be sent as an empty string to SonarTfsAnnotate.exe.
The password I've tested with contains the following special characters: #, ? and (
Not sure what character is the culprit, but I've verified this by modifying the SonarTfsAnnotate.exe by adding the following:
using (var sw = new StreamWriter("C:\\temp\\scm-tfvc.log", true))
{
    sw.WriteLine($"un: [{username}]");
    sw.WriteLine($"pw: [{password}]");
    sw.Flush();
}

I've no idea why the mentioned characters may cause the described behavior.
I myself do not recommend to use username and password. Please use PAT instead for security reasons. (The feature was implemented before I took ownership for this repo.)
So, if I invest time in this issue I would remove support for username/password.
You are welcome to start more detailed analysis. A pull request is welcome.


Point out more general whenJust in base

I just noticed today that a whenJust is available in base. I think this could be useful information, since it wasn't obvious to me at all, I always compared it to foldMapM from Relude instead.

Thanks! I think in making this PR you've switched the file from Unix to Windows newlines. Can you switch it back, then I'll merge it.

@ndmitchell Thanks, done!

Thanks!


Cannot build using docker

error: cannot install 'libprotoc.la' to a directory not ending in /usr/local/lib

try export PREFIX=/usr/local

I was actually able to run it successfully with make clean . I think export PREFIX=/usr/local should also work but i would prefer to keep dependencies in project build.


npm run dev not work

Hi there.
I have had this problem after having searched in forums I have not found a solution but to try I have changed the command from gsed to sed and it worked.

And now work!
"scripts": {
    "dev": "npm-watch",
    "build": "next build && next export && npm run lint:build",
    "lint:build": "mv out/_next out/assets && sed -i 's/\\/_next/\\/assets/g' out/**.html",
    "lint": "next lint"
  },

Thanks for taking the time to open this issue. The template uses gnu-sed (gsed) to bundle the project into a chrome extension. As far as I'm aware there's a couple distributions between stream editors and depends how you have it aliased on your machine.
I've took this opportunity to clarify the README and add gsed instructions.


profiler: add WithTelemetryDisabled for OpenCensus users

In Cloud Trace and Cloud Monitoring, we officially recommend to use OpenCensus as the instrumentation framework.

https://cloud.google.com/trace/docs/setup/go
https://cloud.google.com/monitoring/custom-metrics/open-census

However, when it comes to use them with Cloud Profiler agent, Trace UI is polluted with a lot of Spans generated from the Profiler agent, because it sends profile data to the backend via gRPC and the gRPC dialer comes with OpenCensus's ClientHandler.

https://github.com/googleapis/google-api-go-client/blob/00ea0dae70a28d5e659ad288fdee5f7f5ab56a96/transport/grpc/dial.go#L173

In order to avoid the pollution on Cloud Trace UI and to reduce the billing cost to Cloud Trace, we should put some notes in the example for OpenCensus users to disable unnecessary telemetries from the Profiler agent.

@tbpg thank you for the review. i updated the sample to follow the suggestions and it should be fine now.

By the PR to Cloud Profiler agent, the default behavior will be changed and the agent won't send spans to Trace backend without enabling the flag (EnableOCTelemetry).
I'll change the example to follow the changes in Cloud Profiler agent as @kalyanac mentioned.

@kalyanac Thank you for the review. I changed the example to use the new flag and removed obsolete options.
@tbpg Thank you for the initial review. If the new change looks fine, could you merge this example change once the pull request in Profiler agent get merged?

We'll have to wait for a new release of the profiler package before we can merge this PR (which we'll need to update to use the new version).

Sounds good. I look forward to both of them to be merged accordingly.

@tbpg @broady Because the changes to the profiler agent is merged now, this PR is good to merge, I think.
https://github.com/googleapis/google-cloud-go/pull/2521


Add high availability for Redis instances section on redis-pmem example.

I think the added part looks good (but I havent tried it myself... should do it..).
A nitpick note concerning whole redis-pmem-oprator file:
The abbreviated name is used in different ways: K8S and K8s, I propose to unify.
I don't know which is more correct, K8s or k8s. Likely both so that the 1st one used in text and 2nd form as part of other names. But I think K8S is not correct (makes sense as it is never ending in uppercase).

Olev Kartau<EMAIL_ADDRESS>writes:

The abbreviated name is used in different ways: K8S and K8s, I propose
to unify.  I don't know which is more correct, K8s or k8s. Likely both
so that the 1st one used in text and 2nd form as part of other
names. But I think K8S is not correct (makes sense as it is never
ending in uppercase).

I would avoid both as much as possible. It's colloquial and might not be
understood by everyone.

I would avoid both

I agree. Good policy is to avoid in text and spell fully
We have to use abbreviated form in hostnames, paths sometimes.

Thank you @okartau and @pohly for your comments, I've updated the branch.


The Matterbridge process is failing to transcribe correctly the embedded URL in the original Telegram posts

Describe the bug
The Matterbridge process is failing to transcribe correctly the embedded URL in the original Telegram posts.
Looks like the URL is simply transferred within the post's text and the Markdown 'envelope' is missed, so that the URL is no longer a hyperlink. It looks messy and won't be usable as a link, unless you know and copy/paste the appropriate text string, etc.  If you use the text Markdown in the Telegram post, it won't show correctly - just the actual URL. But, on transfer to Mattermost, the Markdown text-link shows correctly (as you'd expect).
If you use the Telegram hyperlink CTRL+K function, the text-link shows OK in Telegram, but you get problems on Mattermost. Apparently, the text following the Telegram hyperlink gets added to the URL and, if you click it, you get a 404 Error.
Is there any chance that the Matterbridge API (or whatever) can be modified? If not, then users must be warned of distortion, etc.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Is there any chance that the Matterbridge API (or whatever) can be modified? If not, then users must be warned of distortion, etc.
Screenshots/debug logs
If applicable, add screenshots to help explain your problem.
Use logs from running matterbridge -debug if possible.

Environment (please complete the following information):

OS: [e.g. linux] - unsure as the issue was reported by someone else
Matterbridge version: output of  matterbridge -version - again unsure sorry
If self compiled: output of git rev-parse HEAD - I don't know what this means.

Additional context
Please add your configuration file  (be sure to exclude or anonymize private data (tokens/passwords))

Hi,
the same Problem also occurs when relaying from Telegram to Whatsapp.
The URL is probably transcribed so no Link Preview is displayed.
Version used is: 1.22.3 e45bbe45 on Linux 64Bit
Debug Log:
[0037]  INFO whatsapp:     [Login:bridge/whatsapp/whatsapp.go:147] Logged into session: whatsapp.Session{ClientId:"XXXXXXXXXXXXXXXX", ClientToken:"XXXXXXXXXXXXXXXX", ServerToken:"XXXXXXXXXXXXXXXX", EncKey:[]uint8{XXXXXXXXXXXXXXXX}, Wid:"XXXXXXXXXXXXXXXX"}

[0037]  INFO whatsapp:     [Login:bridge/whatsapp/whatsapp.go:148] Connection: &whatsapp.Conn{ws:(*whatsapp.websocketWrapper)(0xc0006c6030), listener:(*whatsapp.listenerWrapper)(0xc0006d4160), connected:true, loggedIn:true, wg:(*sync.WaitGroup)(0xcXXXXXXXXXXXXXXXX), session:(*whatsapp.Session)(0xXXXXXXXXXXXXXXXX), sessionLock:0x0, handler:[]whatsapp.Handler{(*bwhatsapp.Bwhatsapp)(0xc00023a810)}, msgCount:3, msgTimeout:20000000000, Info:(*whatsapp.Info)(0xc000160000), Store:(*whatsapp.Store)(0xc000401770), ServerLastSeen:time.Time{wall:0x4a62f80, ext:63766000475, loc:(*time.Location)(0x339b760)}, timeTag:"695", longClientName:"github.com/Rhymen/go-whatsapp", shortClientName:"go-whatsapp", clientVersion:"0.1.0", loginSessionLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}, Proxy:(func(*http.Request) (*url.URL, error))(nil), writerLock:sync.RWMutex{w:sync.Mutex{state:0, sema:0x0}, writerSem:0x0, readerSem:0x0, readerCount:0, readerWait:0}}

[0038] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented

[0038]  INFO whatsapp:     [joinChannels:bridge/bridge.go:77] whatsapp.mywhatsapp: joining<EMAIL_ADDRESS>(ID<EMAIL_ADDRESS>
[0038] DEBUG whatsapp:     [func1:bridge/whatsapp/whatsapp.go:112] Getting user avatars..

[0038]  INFO router:       [Start:gateway/router.go:75] Starting bridge: telegram.mytelegram

[0038]  INFO telegram:     [Connect:bridge/telegram/telegram.go:46] Connecting

[0038]  INFO telegram:     [Connect:bridge/telegram/telegram.go:59] Connection succeeded

[0038]  INFO telegram:     [joinChannels:bridge/bridge.go:77] telegram.mytelegram: joining -XXXXXXXXXXXXXXXX (ID: -XXXXXXXXXXXXXXXXtelegram.mytelegram)

[0038]  INFO main:         [main:matterbridge.go:70] Gateway(s) started succesfully. Now relaying messages

[0057] DEBUG whatsapp:     [func1:bridge/whatsapp/whatsapp.go:125] Finished getting avatars..

[0069] DEBUG telegram:     [handleRecv:bridge/telegram/handlers.go:121] == Receiving event: &tgbotapi.Message{MessageID:122, From:(*tgbotapi.User)(0xXXXXXXXXXXXXXXXX), Date:1630403743, Chat:(*tgbotapi.Chat)(0xXXXXXXXXXXXXXXXX), ForwardFrom:(*tgbotapi.User)(nil), ForwardFromChat:(*tgbotapi.Chat)(nil), ForwardFromMessageID:0, ForwardDate:0, ReplyToMessage:(*tgbotapi.Message)(nil), EditDate:0, Text:"Aaaaa\nhttps://www.cnn.com/2021/08/31/politics/americas-afghan-war-is-over-joe-biden-legacy/index.html", Entities:(*[]tgbotapi.MessageEntity)(0xXXXXXXXXXXXXXXXX), CaptionEntities:(*[]tgbotapi.MessageEntity)(nil), Audio:(*tgbotapi.Audio)(nil), Document:(*tgbotapi.Document)(nil), Animation:(*tgbotapi.ChatAnimation)(nil), Game:(*tgbotapi.Game)(nil), Photo:(*[]tgbotapi.PhotoSize)(nil), Sticker:(*tgbotapi.Sticker)(nil), Video:(*tgbotapi.Video)(nil), VideoNote:(*tgbotapi.VideoNote)(nil), Voice:(*tgbotapi.Voice)(nil), Caption:"", Contact:(*tgbotapi.Contact)(nil), Location:(*tgbotapi.Location)(nil), Venue:(*tgbotapi.Venue)(nil), NewChatMembers:(*[]tgbotapi.User)(nil), LeftChatMember:(*tgbotapi.User)(nil), NewChatTitle:"", NewChatPhoto:(*[]tgbotapi.PhotoSize)(nil), DeleteChatPhoto:false, GroupChatCreated:false, SuperGroupChatCreated:false, ChannelChatCreated:false, MigrateToChatID:0, MigrateFromChatID:0, PinnedMessage:(*tgbotapi.Message)(nil), Invoice:(*tgbotapi.Invoice)(nil), SuccessfulPayment:(*tgbotapi.SuccessfulPayment)(nil), PassportData:(*tgbotapi.PassportData)(nil)}

[0069] DEBUG telegram:     [handleRecv:bridge/telegram/handlers.go:173] <= Sending message from XXXXXXXXXXXXXXXX on telegram.mytelegram to gateway

[0069] DEBUG telegram:     [handleRecv:bridge/telegram/handlers.go:174] <= Message is config.Message{Text:"Aaaaa\nhttps://www.cnn.com/2021/08/31/politics/americas-afghan-war-is-over-joe-biden-legacy/index.html", Channel:"-XXXXXXXXXXXXXXXX", Username:"XXXXXXXXXXXXXXXX", UserID:"XXXXXXXXXXXXXXXX", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"", Gateway:"", ParentID:"", Timestamp:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, ID:"122", Extra:map[string][]interface {}{}}

[0069] DEBUG gateway:      [SendMessage:gateway/gateway.go:479] => Sending config.Message{Text:"Aaaaa\nhttps://www.cnn.com/2021/08/31/politics/americas-afghan-war-is-over-joe-biden-legacy/index.html", Channel:"-XXXXXXXXXXXXXXXX", Username:"XXXXXXXXXXXXXXXX", UserID:"XXXXXXXXXXXXXXXX", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"telegram", Gateway:"gateway 1", ParentID:"", Timestamp:time.Time{wall:0xc0439d07f95fb9dc, ext:69656824138, loc:(*time.Location)(0x339b760)}, ID:"122", Extra:map[string][]interface {}{}} from telegram.mytelegram (-XXXXXXXXXXXXXXXX) to whatsapp.mywhatsapp<EMAIL_ADDRESS>
[0069] DEBUG whatsapp:     [Send:bridge/whatsapp/whatsapp.go:277] => Receiving config.Message{Text:"Aaaaa\nhttps://www.cnn.com/2021/08/31/politics/americas-afghan-war-is-over-joe-biden-legacy/index.html"<EMAIL_ADDRESS>Username:"", UserID:"XXXXXXXXXXXXXXXX", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"telegram", Gateway:"gateway 1", ParentID:"", Timestamp:time.Time{wall:0xc0439d07f95fb9dc, ext:69656824138, loc:(*time.Location)(0x339b760)}, ID:"", Extra:map[string][]interface {}{}}

[0069] DEBUG whatsapp:     [Send:bridge/whatsapp/whatsapp.go:324] => Sending config.Message{Text:"Aaaaa\nhttps://www.cnn.com/2021/08/31/politics/americas-afghan-war-is-over-joe-biden-legacy/index.html"<EMAIL_ADDRESS>Username:"", UserID:"XXXXXXXXXXXXXXXX", Avatar:"", Account:"telegram.mytelegram", Event:"", Protocol:"telegram", Gateway:"gateway 1", ParentID:"", Timestamp:time.Time{wall:0xc0439d07f95fb9dc, ext:69656824138, loc:(*time.Location)(0x339b760)}, ID:"", Extra:map[string][]interface {}{}}

[0070] DEBUG gateway:      [SendMessage:gateway/gateway.go:498] mID whatsapp.mywhatsapp: XXXXXXXXXXXXXXXX

[0070] DEBUG gateway:      [func1:gateway/gateway.go:488] => Send from telegram.mytelegram (-XXXXXXXXXXXXXXXX) to whatsapp.mywhatsapp<EMAIL_ADDRESS>took 585.619877ms

Fixed by https://github.com/42wim/matterbridge/pull/1765


Can not login with serviceprincipal to tenant subscriptions

Steps to reproduce
I have serviceprincipal which is part of AdminAgents group which supposed to have Owner permissions to all subscriptions in our CSP portal. When I try to set context to any of the customers it gets error below. This works fine if I authenticate with my user account but fails with serviceprincipal even though we are part of the same AdminAgents group
Connect-AzAccount -ServicePrincipal -Credential $pscredential -TenantId $tenantID
PS C:\repo\virtualDatacentre\scripts> Set-AzContext -SubscriptionId $subscription.SubscriptionId -TenantId $partner.CustomerId
Set-AzContext: The received access token is not valid: at least one of the claims 'puid' or 'altsecid' or 'oid' should be present. If you are accessing as application please make sure service principal is properly created in the tenant.

Expected behavior
Able to list resources in subscription of partner
Actual behavior
Getting error  The received access token is not valid: at least one of the claims 'puid' or 'altsecid' or 'oid' should be present. If you are accessing as application please make sure service principal is properly created in the tenant
Environment
PS C:\repo\virtualDatacentre\scripts> get-module PartnerCenter
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     3.0.7                 PartnerCenter                       {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCenter, Disconnect-PartnerCenter…}

What you have done is configured the service principal for pre-consent. While this has benefits, it unfortunately will not make it where you can access an Azure subscription using app only (service principal) authentication. You will need to explicitly assign the service principal permissions over the subscription.

This does work with normal user accounts though by just being part of AdminAgents group. I assumed permissions are being assigned based on membership inside above mentioned group. It's not the case? How do I automate then process if I have hundreds of customers and each of them multiple subscriptions

You are correct having a service principal in the AdminAgents group does not grant it permissions over an Azure CSP subscription. My recommendation would to be to leverage user credentials, so you do not explicitly have to grant the service principal permissions. See Add or remove role assignments using Azure RBAC and Azure PowerShell for more information.
If you have any issues with this I would recommend opening an issue on the Azure documentation, since this functionality is out of scope for the Partner Center PowerShell module.


Compatible with 1.13?

We're finally upgrading our app to 1.13 and want to move away from using a jQuery lib for our date-time picker. Is this compatible? Couldn't find anything in the docs

Hi @jtabone16, I'm not sure if it is compatible or not. It is only tested on LTS versions, and not written with support for 1.13 in mind. However, that does not necessarily mean it doesn't work.
I would highly recommend updating to Ember 2.8+ to at least be on an LTS version. I realize that can be a lot of work though. If you are interested in help with updating, my consulting company has experience helping with this sort of thing 😄 https://shipshape.io
What company do you work for? I'd love to at least start a conversation about working with you guys.

@jtabone16 bump ^


Upgrade babel-preset-fbjs

This fixes 2 issues when Draft is a dependency of a project that is
using Flow.

typeof import now rewritten correctly
__DEV__ declaration is now inlined

Here's the diff on master right now: https://gist.github.com/zpao/641b31feae17be7e3e1fabc9aecd10a3
Note: this doesn't impact anything internal and is only for the npm package.

this looks good to me, would merge, but i don't have the ability to do so (and i think zpao just headed off on vacation)... can someone else merge this?


Guarantee removal of temporal payload file

Guarantee that the temporal payload file is removed even if an
exception occurs during storage of the temporary payload file
or during execution of the hook scripts.

This is really minor, obviously, just something I noticed when reviewing this script.

In what cases this block of code can throw exceptions? Communicate can trigger exceptions if script doesn't exists, or has no execution permissions, and those conditions are already checked. If the called scripts fails this doesn't throw an exception, just the returncode is affected.

There exists a race condition. The script may exist and be executable at the time of the check, but be removed or have its permissions changed by the time it is executed.

There's also another case that I meant to catch but I realize this PR misses, which is if an exception is caused when storing the payload initially. The with block will close the file handle in that case, but the file won't be removed.

Warning: with doesn't close the fd if any exception occured during write().

@ishitatsuyuki :

Warning: with doesn't close the fd if any exception occured during write().

Can you please provide an official reference to this statement?

Oops, seems I was wrong. Sorry for the confusion.


dict key must be type String when it is not defined

before: userInfo[gcmMessageIDKey]
aftrer: userInfo["gcmMessageIDKey"]
variable gcmMessageIDKey is not defined so it causes error.
I think you hope to set it as "gcmMessageIDKey".
You should also fix this website: https://firebase.google.com/docs/cloud-messaging/ios/receive

@googlebot I signed it!

sorry. I didn't find out you defined this variable.


Add Retry Logic

Especially Unirest seems to produce errors from time to time. I already received the following exceptions on running correct code. Therefore, some kind of retry logic would be appropriate.
PHP Fatal error:  Uncaught Unirest\Exception: transfer closed with 4396 bytes remaining to read in /home/chris/instagram/vendor/mashape/unirest-php/src/Unirest/Request.php:476
Stack trace:
#0 /home/chris/instagram/vendor/mashape/unirest-php/src/Unirest/Request.php(236): Unirest\Request::send('GET', 'https://www.ins...', NULL, Array, NULL, NULL)
#1 /home/chris/instagram/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(557): Unirest\Request::get('https://www.ins...', Array)
#2 /home/chris/instagram/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(520): InstagramScraper\Instagram->isLoggedIn(Array)
#3 /home/chris/instagram/loadUser.php(16): InstagramScraper\Instagram->login()
#4 {main}
  thrown in /home/chris/instagram/vendor/mashape/unirest-php/src/Unirest/Request.php on line 476

or
PHP Fatal error:  Uncaught Unirest\Exception: Unknown SSL protocol error in connection to www.instagram.com:443  in /home/chris/instagram/vendor/mashape/unirest-php/src/Unirest/Request.php:476
Stack trace:
#0 /home/chris/instagram/vendor/mashape/unirest-php/src/Unirest/Request.php(292): Unirest\Request::send('POST', 'https://www.ins...', Array, Array, NULL, NULL)
#1 /home/chris/instagram/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(313): Unirest\Request::post('https://www.ins...', Array, Array)
#2 /home/chris/instagram/loadUser.php(21): InstagramScraper\Instagram->getAccountById('250928744')
#3 {main}

or
PHP Fatal error:  Uncaught InstagramScraper\Exception\InstagramAuthException: Something went wrong. Please report issue. in /home/chris/instagram/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:535
Stack trace:
#0 /home/chris/instagram/loadUser.php(16): InstagramScraper\Instagram->login()
#1 {main}
  thrown in /home/chris/instagram/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 535

No plans for now


Plot visibility graph using ts2vg

Hi, I want show the specific graph structure in a figure.  Can ts2vg plot visibility graph? How to plot a figure just like this:

Do you have a plan to add this function?

Hi, I don't plan to include plotting as part of ts2vg, but you can make these kind of visualizations with the Matplotlib library, or other similar libraries. The above image was made with Matplotlib.
For simple examples and their code check out the examples here:
https://carlosbergillos.github.io/ts2vg/examples.html


fatal: Not a git repository: '/homes/vvikraman/anaconda3/lib/python3.6/site-packages/.git

Hi
When I try to run parsl I am getting the following issue:
fatal: Not a git repository: '/homes/vvikraman/anaconda3/lib/python3.6/site-packages/.git
Is it a real issue?
I am using python3 and jupyter but run parsl in a terminal.

Parsl tries to check and report the git version in case the user is trying to use parsl from source. This is non-fatal and should not affect workflow execution in any way.
We'll have this cleaned up in the next release.

Thanks for the report, @vvinuv! As @yadudoc says, the issue here is that the error message is confusing-- the error itself does not affect workflow execution. It just means that we cannot determine if you've modified the parsl code. In the next release we will not print the traceback, since it is confusing.


Running a Django WSGI Application

I'm trying to use socketify to run a Django WSGI application. However, it fails on any request:
$ python3 -m socketify django_project.wsgi:application
Listening on http://<IP_ADDRESS>:8000 now

Exception ignored from cffi callback <function wsgi at 0x7f9bbf496a20>:
Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/pages/lib64/python3.11/site-packages/socketify/wsgi.py", line 458, in wsgi
    app_iter = app.wsgi(environ, start_response)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pyenv/versions/pages/lib64/python3.11/site-packages/django/core/handlers/wsgi.py", line 123, in __call__
    request = self.request_class(environ)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pyenv/versions/pages/lib64/python3.11/site-packages/django/core/handlers/wsgi.py", line 78, in __init__
    self._stream = LimitedStream(self.environ["wsgi.input"], content_length)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pyenv/versions/pages/lib64/python3.11/site-packages/django/core/handlers/wsgi.py", line 24, in __init__
    self._read = stream.read
                 ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'read'
Error: Returning from a request handler without responding or attaching an abort handler is forbidden!
terminate called without an active exception
Aborted (core dumped)

This is just a standard Hello World application. Any ideas? Thanks

Hey, thanks for reporting, can you tell me the python version you are using, Operational System and packages versions? I wanna to reproduce this here to fix it

Here is how you can recreate it (Python 3.11.3):
git clone https://github.com/wsvincent/djangoforbeginners
cd djangoforbeginners/
cd ch3-pages/
pyenv virtualenv system myproject
echo "myproject" > .python-version
pip install -r requirements.txt
pip install socketify

If you then run:
python manage.py runserver 8001

and open your browser, you get back the page as expected
If you then stop it and run this instead:
python3 -m socketify django_project.wsgi:application -p 8001

you get the error I mentioned

Django is missing checks but we are in the spec:
"Currently environ['wsgi.input'] points to a stream that represents the body of the HTTP request. Once this stream has been read, it cannot necessarily be read again. It may not have a seek method (none is required by the WSGI specification, and frequently none is provided by WSGI servers)."
https://wsgi.readthedocs.io/en/latest/specifications/handling_post_forms.html
I will add a empty body and also set the CONTENT_LENGTH to zero just in case.

Added in this commit https://github.com/cirospaciari/socketify.py/commit/99e716e65711ffb73e0ba6a3fe172d5e61b6dba3
I will test it and add more fixes on this patch, and will publish the release until end of tomoroow

@cirospaciari Thanks. Gave it a quick test run and so far so good. I'm still going through some Django examples (still learning Django actually) so if you want, you can either keep the issue open while I do more testing or close it and I'll create a new issue if I run into anything.

Thanks @mthbrown i will keep it open, if you find anything just ping me please

@cirospaciari One thing I noticed is that even when running even with no incoming requests, it takes up basically 100% CPU of the number of workers I configure it to use

Yeah I added a CPU relax strategy on my last commit so now should be fine, probably tomorrow I will add more fixes and release a new version

new release is out so I will close this Issue, if you find anything else, please feel free to open a new one


With v0.5.4-Alpha-14b, Got This Error If I Opened Save File From Game Version 1.23

With v0.5.4-Alpha-14b release, I got this error if I open save file from game version 1.23

:

this is my v1.23 save file

I guess you are on PS4.
Each editor version is released with the types database (CObjectBPs.json) for only one game version.
Database for game v1.23 is accessible at this link: https://github.com/PixelRick/CyberpunkSaveEditor/blob/9f608573d3b838d9ec756336ce7bc1a1f064aa23/assets/CObjectBPs.json
Replace the one you have in the asset folder with it, and it should be good to go for 1.23 save files.
I didn't know PS4 would have deferred updates, I'll package multiple recent versions of the db in future updates of the editor.

Ahh, that explain a lot. I'm on windows 7. I tested your app to open my old save file (v1.23).
Database that you give me for v1.23 didn't worked, I got this error

:

First error causes the others.
Did you download the file via the download button ?
Here is the real direct link to the raw file: https://raw.githubusercontent.com/PixelRick/CyberpunkSaveEditor/9f608573d3b838d9ec756336ce7bc1a1f064aa23/assets/CObjectBPs.json

Did you download the file via the download button ?
Ah yes. I forgot.
I'm waiting for this "I'll package multiple recent versions of the db in future updates of the editor" in your next release.
Thanks @PixelRick

Possible solution requested in #36.


Open 2 different projects in seperate VSC windows

Hello,

If I open two projects (folders) in the same moment using VSC (client and server files) from 2 different VSC windows, second one is always opening in first window (overrides first project). But If I wait few minutes it works ok.

please recover functionality to open a file in slide window using Ctrl + Left Mouse click (or add setting for that). Currently it almost impossible to deal with files in slides.

I do not understand what this is about.

this is an error request and issue to fix

@lukasru does this depend on the number of files in the folder, can you also reproduce with empty folders? Can you show a video how this looks like for you?


Set up some type of CI for this repository

We should have CI running on this repository.
@atorkmabrains can you write down the initial plan in this GitHub Issue?
Related GitHub Issues on other parts of the PDK;

https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu9t5v0/issues/2
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu7t5v0/issues/2
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/3
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/4

Testing related GitHub Issues on the PDK;

https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu9t5v0/issues/5
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu7t5v0/issues/4
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/2
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/3
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/4

Yes

Hi @mithro ,
We have about 60% of the regression tests for gf180mcu-pdk built for most of the PDK components. We just need to convert the running of those regression to be as CI.
@mithro What do you recommend us doing: adding those regression scripts into this main repo or having a separate repo called regression to include all the testing?

If I understand what you are saying, then please add them directly to this repository.

Sounds Great, we will add regression tests as CI. BTW, they take long time to run.

@atorkmabrains - Taking a long time to run is fine, we have a bunch of ways we can speed that up.

Related GitHub Issues on other parts of the PDK;

https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu9t5v0/issues/2
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu7t5v0/issues/2
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/3
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/issues/4

Testing related GitHub Issues on the PDK;

https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu9t5v0/issues/5
https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_sc_mcu7t5v0/issues/4
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/2
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/3
https://github.com/google/globalfoundries-pdk-ip-gf180mcu_fd_ip_sram/issues/4

@mithro @mohanad0mohamed is currently working on it.


[BUG] Pointer settings not applied after mouse reconnects

OS
macOS 13.0.1 (Build 22A400)
LinearMouse
v0.7.7
Is your feature request related to a problem?
when my mouse (Magic Mouse 2) disconnects like when I charge it or I turn it off and on, the pointer speed gets reset to default even though linear mouse is open all the time and then I have to open linear mouse settings from the menu bar before the pointer settings get applied
Describe the solution you'd like
is there a way to get it to continue using my pointer settings automatically after my mouse reconnects
Describe alternatives you've considered
happens to my mx master 3 and 3s too. only work around is to open the settings page and then your settings get re applied
Additional context
No response

Thanks for your feedback!
From your description, it sounds like a bug because LinearMouse is designed to automatically apply the pointer settings after your mouse reconnects.
Similar reports on Magic Mouse 2 can be found in #209, #280. I bought a Magic Mouse 2, reproduced that issue, and (I thought I) fixed it in v0.7.6. It's weird that you can reproduce this issue with v0.7.7, and it's not even Magic Mouse specific.
Is this consistently reproducible with Magic Mouse 2 and your other mice each time they are reconnected, including when you restart your Mac?
What Mac device are you using? It would be helpful if you could attach the logs (#117) while your mouse is reconnected.

I use a 2021 mbp 16" M1 Pro. it always happens when the mouse reconnects. after restarts too.

Magic Mouse or not. I opened the console app but when I click view there's no option to include debug messages. but I did it anyways and this is what came up.
default	17:35:52.744709+0000	LinearMouse	Released connection: D7560B78-8F1B-4F5D-988B-3F132570F2FD
{
UUID = "D7560B78-8F1B-4F5D-988B-3F132570F2FD";
caller = "IOKit: IOHIDCopyHIDParameterFromEventSystem + 64";
dispatchQueue = 0;
eventCount = 0;
eventMask = 0;
port = 51051;
resetCount = 0;
runloop = 0;
services =     (
4294968511,
4294968367,
4294968465,
4294968419,
4294968563,
4294968756,
4294968373,
4300568121,
4294968517,
4294968471,
4294968425,
4294968569,
4294968762,
4294968379,
4294968523,
4294968667,
4294969145,
4294968716,
4294968477,
4294968621,
4294968431,
4294968575,
4294968719,
4294969629,
4294968385,
4294968529,
4294968768,
4294968722,
4294968483,
4294968627,
4294968676,
4294968437,
4294968581,
4294967959,
4294968774,
42949683
error	17:35:52.748400+0000	LinearMouse	Unable to serialize CFObject: Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull')
default	17:36:00.049124+0000	LinearMouse	Released connection: A13799E4-BEC7-4A9A-9445-E2B661C4AC78
{
UUID = "A13799E4-BEC7-4A9A-9445-E2B661C4AC78";
caller = "IOKit: IOHIDCopyHIDParameterFromEventSystem + 64";
dispatchQueue = 0;
eventCount = 0;
eventMask = 0;
port = 20587;
resetCount = 0;
runloop = 0;
services =     (
4294968511,
4294968367,
4294968465,
4294968419,
4294968563,
4294968756,
4294968373,
4300568121,
4294968517,
4294968471,
4294968425,
4294968569,
4294968762,
4294968379,
4294968523,
4294968667,
4294969145,
4294968716,
4294968477,
4294968621,
4294968431,
4294968575,
4294968719,
4294969629,
4294968385,
4294968529,
4294968768,
4294968722,
4294968483,
4294968627,
4294968676,
4294968437,
4294968581,
4294967959,
4294968774,
42949683
error	17:36:00.051044+0000	LinearMouse	Unable to serialize CFObject: Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull')

Oops, the "Include Debug Messages" is under "Action", not under "View". I've fixed the typo. Could you please try it again?
Any feedback on this issue from other M1 users, whether positive or negative, is also welcome.

when I run it, nothing comes up unless I start scrolling with the mouse, and then I just reports changes to position. but its weird because the bug has somehow fixed itself and now my setting settings apply when my mouse reconnects.

The following logs should appear when the mouse is reconnected:
debug	10:33:23.857368+0800	LinearMouse	Device added: USB Receiver (VID=0x046D, PID=0xC52B)
debug	10:33:23.858450+0800	LinearMouse	Update pointer speed for device: USB Receiver (VID=0x046D, PID=0xC52B): 0.378600
debug	10:33:23.869013+0800	LinearMouse	Update pointer acceleration for device: USB Receiver (VID=0x046D, PID=0xC52B): 0.100000

I'll leave this issue open. If it happens again, please check the log to see if the pointer speed and acceleration are set correctly.


Add cash flow legs

This PR adds CashFlowLegs as bulding block for financial product representations

deterministic notional cash flow leg
fx-resetting notional cash flow leg
cash leg and asset leg (to model cash and asset balances)

Codecov Report

Merging #18 (5a96a60) into main (eae7bb0) will increase coverage by 0.09%.
The diff coverage is 98.60%.

@@            Coverage Diff             @@
##             main      #18      +/-   ##
==========================================
+ Coverage   97.68%   97.77%   +0.09%
==========================================
  Files          29       32       +3
  Lines        1252     1395     +143
==========================================
+ Hits         1223     1364     +141
- Misses         29       31       +2

Files Changed
Coverage Δ

src/DiffFusion.jl
100.00% <ø> (ø)

src/products/CashFlowLeg.jl
97.50% <97.50%> (ø)

src/products/MtMCashFlowLeg.jl
98.70% <98.70%> (ø)

src/products/CashAndAssetLegs.jl
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Can't Add Feedly Account on Monterey

Running macOS Monterey 12.1
Running NetNewsWire Version 6.0.3 (6035)
1 - Open "Preferences", then "Accounts".
2 - Click "Feedly" to add Feedly account.
3 - "Waiting For Access To Feedly" dialog appears in NNW.
4 - "NetNewsWire wants to use Feedly.com to sign in." dialog appears w/Safari logo.
5 - Click continue on the Safari dialog, but then nothing happens.
Preferences remain open, but Feedly account not added because Safari never opens the Feedly login page.
I switched my default browser to Microsoft Edge for Mac (in both NNW and System Preferences) but step 4 always shows the Safari logo in the dialog box. Default browser is not being honored during this request, but is honored for options under the NNW "Help" menu. ("Website", "Bug Tracker", etc).
Same problema like here: https://github.com/Ranchero-Software/NetNewsWire/issues/2480
Is there a macOS workaround? Or does this require an NNW change?

Monterey has a bug that requires you to sometimes reboot to get the OAuth windows to appear. Please reboot and try again.

this is correct!
I rebooted my mac and tried again and then opened Safari for authentication.
Now it works great!
Thanks!
One last thing, I can't find the light mode, it's only in dark mode and in preferences I can't see to change dark mode or light mode. Is there that option?
Thanks!

Light/dark mode isn't a configuration option on the Mac. Sorry.

Light/dark mode isn't a configuration option on the Mac. Sorry.

Thank you for your very quick response !!
Hopefully this feature can come in the future.
Thanks and fantastic program !! =)


add human_file_size.cr json/yaml mapping converter

Happy to see it is now a part of Awesome Crystal list ❤ 💎
What's next?

announce it on Crystal ANN dev hub
share it on Reddit channel
say about it if you created something the community is looking for


Changed topic placeholder text for organizations that allow no-topic messages

Fixes: #23294
In collaboration with amyxixin

[x] Change the topic placeholder text to "Enter topic or send to "general chat"". Note that "general chat" should be a variable, and thus not translatable. (done by peterwang06)
[x] Make the topic input field wider to accommodate this phrase (across languages). (Note that extending the topic input field is part of the proposed compose box redesign in any case.) (done by amyxixin)

Screenshots and screen captures:

"general chat" is a variable, so that when the name of the default no-topic name is customizable at an organization level, it will also be reflected here.
The updated field accommodates 60 characters, as defined in maxlength html element.
<input type="text" class="recipient_box" name="stream_message_recipient_topic" id="stream_message_recipient_topic" maxlength="60" value="" placeholder="Topic" autocomplete="off" tabindex="0" aria-label="Topic">

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

Closing, since the issue this is for cannot be worked on before https://github.com/zulip/zulip/issues/23291 is integrated.


Client: add a way to modify the request sent to the server

The third argument allow us to modify headers sent to the server ; however, this does not allow the developer to modify the headers on a per-call basis.
The server I’m trying to contact require to sign every request with an HMAC ; this means that the value of the header will depend on the payload.
A cheap way to achieve with would be to make getContext protected. A sightly better one would be to add a protected method getHeaders($payload) which would just be return $this->headers by default, but overrideable by a subclass. BTW, although it is not my situation, the same problem may arise with respect to the URL (for example, in order to add a ?hmac-tag=...).

You can use a callback to add a new HTTP header before the request is made.
See https://github.com/fguillot/JsonRPC#callback-before-client-request

Looks like exactly what I needs ; thanks :)


Crash with Mekanism Community Edition and Universal Tweaks

Crash Report: https://mclo.gs/vi9SB97
Only occurs with 2.6.1 on curseforge. Most likely caused by this commit: https://github.com/igentuman/EnderStorage-continuation/commit/33fed49a05f47eebb1c0967e5efd59469e65e9bf

After looking around, it seems this may partially be a Mekanism problem. https://github.com/Thorfusion/Mekanism-Community-Edition/blob/4e8c389b852ddf15507d64de3c434fc63bcf2fb3/src/main/java/mekanism/common/integration/OreDictManager.java#L487-L489 loops over all 16 metas, as compared to Thermal Expansion's using a different method. However, this should still be fixed from this side as well.

[https://github.com/igentuman/EnderStorage-continuation/blob/7e524845a6470cb85e78dce8e736daa90f57e724/src/main/java/codechicken/enderstorage/EnderStorage.java#L54] The config is only loaded in init, which is also where mekanism does its recipe searching, so the enableAutoCollectItem is uninitialised when mekanism checks, causing the crash.

Solved in https://github.com/igentuman/EnderStorage-continuation/commit/1c19007f8999550f0ccf52adfc6f20d9c68a820e


HRM and screen clearing after empty ISD

DO NOT MERGE
Experimental branch re: https://github.com/w3c/imsc/issues/575

Do not clear the root container if the previous ISD was empty
Merged empty ISDs

Replaced by #4


In App Billing API

Hi. Can I use this library to verify a In App Billing signature?
If yes, then is there an example how to do this? I found some stackoverflow questions, but they all talk about a public key. However, from the API Project I got a private key .. where do I get this public key?

Service accounts are just a key pair - one part stays with Google and one part you get, so it'll work fine with the key you got from a service account.


update readme - 23

[Auto generated]
Number: [#23]

openshift-virtualization-tests(Rw7HR)[PR 23]: Closing issue for PR: update readme.
PR was closed.


Mirrord fails to connect with Proxy error, connectivity issue or bug

Bug Description
When connecting to pods in a K8 cluster, we get an error

Steps to Reproduce
run mirrord connecting command to cluster
Backtrace
No response
Relevant Logs
agent ready - version 3.115.1
2024-08-22T18:00:35.884973Z  WARN ThreadId(07) mirrord_agent::outgoing::udp: interceptor_task -> no messages left
2024-08-22T18:01:24.743478Z  WARN ThreadId(04) mirrord_agent::steal::ip_tables::flush_connections: `conntrack` output is Output {
    status: ExitStatus(
        unix_wait_status(
            256,
        ),
    ),
    stdout: "",
    stderr: "conntrack v1.4.7 (conntrack-tools): 0 flow entries have been updated.\n",
}
2024-08-22T18:01:32.547378Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:01:32.548350Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:01:32.607032Z  WARN ThreadId(04) mirrord_agent::steal::ip_tables::flush_connections: `conntrack` output is Output {
    status: ExitStatus(
        unix_wait_status(
            256,
        ),
    ),
    stdout: "",
    stderr: "conntrack v1.4.7 (conntrack-tools): 0 flow entries have been updated.\n",
}
2024-08-22T18:01:42.551145Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:01:42.551322Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:01:52.548717Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:01:52.548900Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:02:02.546751Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:02:12.548454Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:02:26.488038Z ERROR ThreadId(15) mirrord_agent::util: Failed setting pid 1565914 namespace "net" with FailedNamespaceOpen(
    Os {
        code: 2,
        kind: NotFound,
        message: "No such file or directory",
    },
)
thread 'DNS worker' panicked at mirrord/agent/src/util.rs:145:42:
Failed setting namespace!: FailedNamespaceEnter(FailedNamespaceOpen(Os { code: 2, kind: NotFound, message: "No such file or directory" }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2024-08-22T18:02:26.988515Z ERROR ThreadId(16) mirrord_agent::util: Failed setting pid 1565914 namespace "net" with FailedNamespaceOpen(
    Os {
        code: 2,
        kind: NotFound,
        message: "No such file or directory",
    },
)
thread 'DNS worker' panicked at mirrord/agent/src/util.rs:145:42:
Failed setting namespace!: FailedNamespaceEnter(FailedNamespaceOpen(Os { code: 2, kind: NotFound, message: "No such file or directory" }))
2024-08-22T18:02:27.547030Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013
2024-08-22T18:02:32.548697Z ERROR ThreadId(04) mirrord_agent::steal::connections::filtered: Failed connecting to request destination error=Os { code: 111, kind: ConnectionRefused, message: "Connection refused" } address=<IP_ADDRESS>:8013

Your operating system and version
MacOS Sonoma
Local process
nodejs
Local process version
20
Additional Info
No response

Hi,
My guess would be the remote pod restarts/terminates and so the mirrord-agent dies. Can you provide your mirrord.json please and check if my guess is correct?

yeah, it seems that the pod gets restarted when we are using mirrors:

this is only happening with that service, we exclude the /health service, check the mirrored.json file:
{
  "feature": {
    "env": true,
    "fs": {
      "mode": "{{ get_env(name="FS_MODE", default="read") }}",
      "read_only": [ "^/secrets/.*" ]
    },
    "network": {
      "dns": {{ get_env(name="DNS_MODE", default=true) }},
      "outgoing": {{ get_env(name="OUTGOING_MODE", default=true) }},
      "incoming": {
        "mode": "{{ get_env(name="INCOMING_MODE", default="steal") }}",
        "port_mapping": {{ get_env(name="PORT_MAPPING", default="[[8080, 8001]]") }},
        "listen_ports":  {{ get_env(name="PORT_MAPPING", default="[[8080, 8001]]") }},
        "http_filter": {
          "path_filter": "^(?!/health)",
          "ports": {{ get_env(name="LIST_MAPPING", default="[8080]") }}
        }
      }
    }
  },
  "internal_proxy": {
    "log_destination": "/tmp/mirrord.log",
    "log_level": "mirrord=info"
  },
  "agent": {
    "check_out_of_pods": false
  },
  "experimental": {
    "readlink": true
  }
}

Do you know what could be happening?

can you describe the pod/deployment and see the restart reason?

We have deleted the deployment and re-created it back again. the issue is gone for now. I know we had another engineer who had this issue back in the past too. Can we keep this issue opened so we can come here and updated when this happened again?

Most likely happened due to pod restart, which is working as intended (without operator).