Batch AI reference architecture

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference-architectures/ai/_images/batch-ai-deep-learning.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-logging.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-style-transfer.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/batch-scoring-deep-learning.md
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/index.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/_images/icons/batch-ai.svg
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-deep-learning.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-logging.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-style-transfer.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/batch-scoring-deep-learning.md
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/index.md
:white_check_mark:Succeeded
View

docs/reference-architectures/index.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/_images/icons/batch-ai.svg
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-deep-learning.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-logging.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-style-transfer.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/batch-scoring-deep-learning.md
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/index.md
:white_check_mark:Succeeded
View

docs/reference-architectures/index.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/_images/icons/batch-ai.svg
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-deep-learning.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-logging.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-style-transfer.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/batch-scoring-deep-learning.md
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/index.md
:white_check_mark:Succeeded
View

docs/reference-architectures/index.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/_images/icons/batch-ai.svg
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-deep-learning.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-logging.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/_images/batch-ai-style-transfer.png
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/batch-scoring-deep-learning.md
:white_check_mark:Succeeded
View

docs/reference-architectures/ai/index.md
:white_check_mark:Succeeded
View

docs/reference-architectures/index.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

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


New provider confluentinc/confluent not usable

All updated links to the new provider like https://github.com/confluentinc/terraform-provider-confluent/issues are returning 404.
Using the new provider in terraform (as described here is not working:
Error: Failed to install provider
│
│ Error while installing confluentinc/confluent v0.7.0: could not query provider registry for registry.terraform.io/confluentinc/confluent:
│ failed to retrieve authentication checksums for provider: 404 Not Found

I think these checksums are fetched from github -> so same problem
I assume the new github repo is still (wrongly) in private access mode?
cc @linouk23

It's working now :)


pods for broker/bookkeeper init failed - Could not find or load main class "-Xms1g error

Describe the bug
Init container pulsar-bookkeeper-verify-clusterid fail fails to start with following stack trace
[conf/bookkeeper.conf] Applying config ledgerDirectories = /pulsar/data/bookkeeper/ledgers
[conf/bookkeeper.conf] Applying config statsProviderClass = org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
[conf/bookkeeper.conf] Applying config useHostNameAsBookieID = true
[conf/bookkeeper.conf] Applying config zkLedgersRootPath = /ledgers
[conf/bookkeeper.conf] Applying config zkServers = pulsar-zookeeper:2181
[conf/bookkeeper.conf] Adding config journalDirectories = /pulsar/data/bookkeeper/journal
JMX enabled by default
Error: Could not find or load main class "-Xms1g
JMX enabled by default
Error: Could not find or load main class "-Xms1g
JMX enabled by default
Error: Could not find or load main class "-Xms1g
.
.

To Reproduce
Steps to reproduce the behavior:

Package a chart with this repo(no change in config)
broker, recovery, proxy, bookkeeper pod creation fails
check init container logs kubectl logs pulsar-bookkeeper-0 -c pulsar-bookkeeper-verify-clusterid -n pulsar

Env
Azure AKS

@rvashishth Are you running with the latest master?

I don't see -Xms1g in the default vaules.ymal file. Can you share your values file?

@sijie I used this Values.yml file from from the previous commit after PR #22 merged.  I didn't make any changes in this values file.
looks like some config issue at bkEnv.sh
This error looks somewhat similar to these two issues - https://github.com/apache/pulsar/issues/7243, or https://github.com/apache/pulsar/issues/6355

@rvashishth please use the latest master to include #24

@sijie I have tested with the latest master with #28, still the same error with init containers.

this time zookeeper also going in CrashLoopBackOff status with the below error.
$ kubectl logs pulsar-zookeeper-0  -n pulsar
[conf/zookeeper.conf] Applying config dataDir = /pulsar/data/zookeeper
[conf/zookeeper.conf] Adding config serverCnxnFactory = org.apache.zookeeper.server.NettyServerCnxnFactory
Current server id 1
Error: Could not find or load main class "-Xms1g

Similar, I'm trying the latest master and my bookies are now failing to start with:
Error: Could not find or load main class "
JMX enabled by default

all pods started successfully.  the previous issue was due to chart being cached.


Error success message for org email update

What does this pull request aim to achieve? 💯
created success and error user friendly message for when user updates org email.

closes #1311
Please be concise and link any related issue(s):

[x] I have checked that no one else is working on similar changes.
[x] I have read the latest README and understand the development workflow.
[x] The name of this branch is: feature/<branch_name>, or hotfix/<branch_name> if this is a hotfix. The branch is created in a cloned version of this repo, not a forked repo.
[x] This branch is rebased/merged with the latest staging (or the latest production if it is a hotfix).
[x] There are no merge conflicts.
[x] There are no console warnings and errors.
[x] On the right hand side of this PR, I have linked the appropriate issue(s) under "Issues" and added a project progress under "Projects".

@rabbi08 @ppagarawal  can you guys please check the design and let me know if any changes needs to be made?

Using the design from the current design system: for confirmation please check https://zpl.io/bJJMeDK, for error please check https://zpl.io/bJJMeDK
Preview here:

Using the design from the current design system: for confirmation please check https://zpl.io/bJJMeDK, for error please check https://zpl.io/bJJMeDK
Preview here:

@nr431207 Please use the red text in case of error. For success messages, we can have a small overlay window for 10 seconds on active tab (and then fade away effect) and a close button on successful update.
I hope that clarifies the requirement

Using the design from the current design system: for confirmation please check https://zpl.io/bJJMeDK, for error please check https://zpl.io/bJJMeDK
Preview here:

@nr431207 Please use the red text in case of error. For success messages, we can have a small overlay window for 10 seconds on active tab (and then fade away effect) and a close button on successful update.
I hope that clarifies the requirement

Ive added some changes, please review, thanks! @ppagarawal

Using the design from the current design system: for confirmation please check https://zpl.io/bJJMeDK, for error please check https://zpl.io/bJJMeDK
Preview here:

@nr431207 Please use the red text in case of error. For success messages, we can have a small overlay window for 10 seconds on active tab (and then fade away effect) and a close button on successful update.
I hope that clarifies the requirement

Ive added some changes, please review, thanks! @ppagarawal

Amazing work 👌 as always @nr431207 !

@nr431207 So ideally, to keep consistency, we would want to have this message whenever the user clicks on Save changes. I think there are some discussions needed. Since sometimes we just redirect the user to the profile, like in the user profile and org profile too. the logic is kinda the same so it would make sense to keep consistency across both org profile and user profile...
@ppagarawal up to you what if you would want to create smaller new tickets to make sure the concistency is kept.

@idjevm @ppagarawal the related issue was focused on email update, but it makes sense to have this message to show up for any filed update, I feel it's better to create a separate ticket for that, thoughts?

@nr431207 So ideally, to keep consistency, we would want to have this message whenever the user clicks on Save changes. I think there are some discussions needed. Since sometimes we just redirect the user to the profile, like in the user profile and org profile too. the logic is kinda the same so it would make sense to keep consistency across both org profile and user profile...
@ppagarawal up to you what if you would want to create smaller new tickets to make sure the concistency is kept.

@ppagarawal applied success message for all field updates , if user clicks on save without changing anything, user is redirected to org profile.


Update specs2-core, specs2-matcher-extra, ... to 4.12.2

Updates

org.specs2:specs2-core
org.specs2:specs2-matcher-extra
org.specs2:specs2-mock

from 4.10.6 to 4.12.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.specs2" } ]

labels: library-update, semver-minor

Superseded by #127.


Typo/incorrect information on rectMode() Reference page

Most appropriate sections of the p5.js website?
Reference
What is your operating system?
iOS
Web browser and version
All browsers
Actual Behavior
The Reference page for rectMode() begins  with the statement “By default, the first two parameters of rect()and square(), are the x- and y-coordinates of the shape's center”.
Expected Behavior
I believe the correct statement should be: “… the x- and y-coordinates of the shape’s upper left corner. “
Steps to reproduce
Open the Reference page for rectMode
Would you like to work on the issue?
I would be happy to, but omeone with editing privileges is required.

Good catch @sgcrews! Have a look at the reference contributor docs and feel free to open an issue in the p5.js repo.

Thanks, Nick I thought I did open an issue in the p5.js repo! I would be
happy to fix this myself if I am allowed to edit the reference text--I read
the doc your link led to and I see how the comments work but not how I can
modify them.
steve
Steven Crews
@.***
On Sun, Apr 21, 2024 at 12:13 PM Nick McIntyre @.***>
wrote:

Good catch @sgcrews https://github.com/sgcrews! Have a look at the reference
contributor docs
https://github.com/processing/p5.js/blob/main/contributor_docs/contributing_to_the_p5.js_reference.md
and feel free to open an issue in the p5.js repo
https://github.com/processing/p5.js.
—
Reply to this email directly, view it on GitHub
https://github.com/processing/p5.js-website/issues/1512#issuecomment-2068138261,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIFKB6U7WMNJ2FSVYY2JEKDY6PXUJAVCNFSM6AAAAABGRMROLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRYGEZTQMRWGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


macOS 0.2.1 Build

Hey @HarshKhandeparkar I came across this looking for a whiteboard app to use, assumed it should be pretty easy to build on macOS so gave it a go, this was built on macOS Mojave:

Download link to DMG as it is 75mb: https://share.mattc.dev/Rainbow-Board-0.2.1.dmg.zip
Enjoy :)
Not sure how you are currently doing builds if manually or auto, but I have the ability to run a macOS VM on a server which could probably do something with a script.

Hi! Thank you so much!!
I actually do it manually because it is not so difficult for Linux and Windows.
I am not sure if the dmg metadata is correct, is it?

I will not have to change the code to show the dmg downloads :stuck_out_tongue:. Doing that now.

Added the asset to the GitHub release :heavy_check_mark:

Forge (a packaging tool used here) is supposed to be able to publish assets to GitHub but it is in beta and lacks some docs...

Added the link on the website.

I salute you.

@HarshKhandeparkar No problem :) Sorry bit busy at the moment so havent been able to reply properly. Just ran a quick build for you from latest, this time built on macOS Big Sur :)
https://share.mattc.dev/Rainbow-Board-0.3.4.dmg.zip

Thank you so much!

Uploaded :heavy_check_mark:

@HarshKhandeparkar Updated build: https://share.mattc.dev/Rainbow-Board-0.4.0.dmg.zip
Have you looked into using Travis CI at all to handle the builds for you?

Updated build: https://share.mattc.dev/Rainbow-Board-0.4.0.dmg.zip
Thank you!

Have you looked into using Travis CI at all to handle the builds for you?
I looked into Github actions but didn't get enough time to play with it...

I managed to build with actions :hot_face:
https://github.com/HarshKhandeparkar/rainbow-board/releases/tag/v0.4.0
Thank you for your help. Closing this issue now :)

@HarshKhandeparkar Awesome looks good, just downloaded and tested, its working well and feels much better to use already than 0.2.1 :)
No problem!


Compatibility with modern node versions (>= 1.0.0)

Can you make this compatible with current versions of node? I've tried to edit compat.h, but unfortunately, I have no idea what needs to be amended. This did not help:
#elif NODE_MAJOR_VERSION >= 1
#define COMPAT_NODE_VERSION 100  // v1.00 and above
#elif NODE_MAJOR_VERSION == 0 && NODE_MINOR_VERSION >= 11
#define COMPAT_NODE_VERSION 12  // v0.12
#elif NODE_MAJOR_VERSION == 0 && NODE_MINOR_VERSION == 10
#define COMPAT_NODE_VERSION 10  // v0.10
#elif NODE_MODULE_VERSION >= COMPAT_IOJS_1_x // io.js semver 1.0.x
#define COMPAT_NODE_VERSION COMPAT_IOJS_1_x
#else
#error "Unsupported node.js version."
#endif

namespace compat {

#if COMPAT_NODE_VERSION == 10
typedef v8::Arguments ArgumentType;
typedef v8::Handle<v8::Value> ReturnType;
typedef v8::InvocationCallback FunctionCallback;
#elif COMPAT_NODE_VERSION == 100 || COMPAT_NODE_VERSION == 12 || COMPAT_NODE_VERSION == COMPAT_IOJS_1_x
typedef v8::FunctionCallbackInfo<v8::Value> ArgumentType;
typedef void ReturnType;
typedef v8::FunctionCallback FunctionCallback;
#endif

Now I'm getting the following error during npm install:
In file included from ../node-syslog.h:13:
../compat.h:68:53: error: unknown type name 'FunctionCallback'; did you mean 'v8::FunctionCallback'?
                                                    FunctionCallback callback =
                                                    ^~~~~~~~~~~~~~~~
                                                    v8::FunctionCallback
/Users/felix/.node-gyp/5.0.0/include/node/v8.h:3174:16: note: 'v8::FunctionCallback' declared here
typedef void (*FunctionCallback)(const FunctionCallbackInfo<Value>& info);

Can you help?

@felixjung See https://github.com/schamane/node-syslog/pull/49.  I believe the problem is that there are no active maintainers who can publish a new version.  One of my co-workers created https://github.com/strongloop/modern-syslog, which I believe is a drop-in replacement for most practical purposes.

Awesome, thanks.


<EMAIL_ADDRESS>

the atom-linux build is failing because of disk space, this is fine to merge.


Add Autocomplete

Add automatic Python autocomplete to editor
Add staticWordCompleter for micro:bit autocomplete
Silence the 'blockScrolling' warning

Tests are probably failing because we need to update the paths used for require here. https://github.com/bbcmicrobit/PythonEditor/blob/master/tests/setup-tests.js

Tests are now passing  🎉


User can't upload to public space (core access token is invalid)

Describe the bug
A single user can't upload to a shared, public (password-protected) space. There is no user feedback that the upload fails, the progress popup does not open.
The issue only persists in a specific space.
Steps to reproduce

Go to space via link.
Try to upload a file.

Setup
The container is managed via Ansible:

- name: 🚀 Starts container
  community.docker.docker_container:
    name: owncloud
    image: owncloud/ocis
    state: started
    restart_policy: unless-stopped
    ports:
      - " <IP_ADDRESS>:28946:9200"
    entrypoint:
      - /bin/sh
    command: ["-c", "ocis init || true; ocis server"]
    env:
      OCIS_INSECURE: "false"
      OCIS_URL: "https://cloud.catboy.house"
      PROXY_HTTP_ADDR: "<IP_ADDRESS>:9200"
      PROXY_TLS: "false"
      OCIS_LOG_LEVEL: "warn"
      OCIS_ADD_RUN_SERVICES: "notifications"
      NOTIFICATIONS_SMTP_HOST: "{{ smtp_server }}"
      NOTIFICATIONS_SMTP_PORT: "{{ smtp_port }}"
      NOTIFICATIONS_SMTP_SENDER: "{{ owncloud_smtp_sender }}"
      NOTIFICATIONS_SMTP_USERNAME: "{{ owncloud_smtp_user }}"
      NOTIFICATIONS_SMTP_PASSWORD: "{{ owncloud_smtp_password }}"
      NOTIFICATIONS_SMTP_INSECURE: "false"
    user: "{{ owncloud_uid }}:{{ app_gid }}"
    volumes:
      - "{{ owncloud_volume_config }}:/etc/ocis"
      - "{{ owncloud_volume_data }}:/var/lib/ocis"

This is the caddy configuration for the site:

cloud.catboy.house {
    reverse_proxy <IP_ADDRESS>:28946
    log {
        output file /var/log/caddy/cloud.catboy.house-access.log
    }
}⏎

The complete setup is here: https://github.com/yuri-becker/catboy-house/tree/main/roles/owncloud
Additional context
The issue apparently exists using both MS Edge and DuckDuckGo's browser.
I can't reproduce the issue on my end, using the same file.
The file is a PDF of 225KB.
OCIS Version is 6.5.0
Web Client Version is 10.3.0.
The access and OCIS logs are attached (access log was filtered to requests from Edge, ocis log is right after a restart trying to upload the file).
access.log
owncloud.log

I can't reproduce the issue neither.
You could try to increase the logs (switch to debug level) in order to try to get more information about what's happening.
Some additional things to check:

Does it happen with just that particular user? What happens if you use a different user? What if you upload anonymously through the public share?
Can that user upload files into a different space (using the same steps)?
Is the issue reproducible if the user creates a new space and upload things there? (Trying to figure out if there is a problem with that particular space)

There could be problems with the user name or with the space name if any of those names contains weird chars. There shouldn't be a bug like that, but it's better to discard options.
So far, it seems there is a missing reproduction step or a misconfiguration on your side, but I can't pinpoint where the problem is.

Thanks for your answer.

The user is anonymous, uploading via a public space link. They do not have a user account.
The user can upload spaces into other spaces, that i created for testing this.
The issue seems to be specific to that space. The space does have an Umlaut in its name (it's called "Vorbereitung Externenprüfung"), but no other weird characters.

I'll be able to test it with debug logs tomorrow, i'll post the logs then.

Here are the logs:
owncloud_logs.txt

Did you upload the correct or full logs? There is a rror grabbing logs: unexpected EOF at the end, and I don't see a "core access token not set" or other similar messages that appeared in your previous log.

Huh, grabbed it again, sorry.
70792ed02c932983bb71e883f12647cc71c72633eae634d1249efd332998c233-json.log.zip

I have one other user with the same problem now.
With the first user, there was some congestion in their network, after they resolved that, they can upload from their network now. A bit weird, since the issue only occurred in that one space, but whatever, thought it was fixed and was just about to happily announce that.
Now, another user messaged me with the same issue. I also noticed that i have plenty of items stuck on processing. I don't have virus scanning enabled, so I presume it's the thumbnail generation?
Btw, if needed, i can also give you access to my instance and the affected space.

To narrow down the options, is your share configured with "secret file drop" (so you can only upload files but not see what's inside)?
I think I'm getting similar logs using that option:
{"level":"error","service":"sharing","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:49842","uri":"/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":135532,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"storage-shares","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:45972","uri":"/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":1388501,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:40734","uri":"/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":107109,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"gateway","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:58274","uri":"/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":12435121,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","error":"rpc error: code = PermissionDenied desc = gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid","status":{"code":15,"message":"error listing spaces","trace":"2ec4b1c8d13363dd8d400103694421da"},"filters":[{"type":5,"Term":{"Path":"/public/wJlneahoddgncHD/5cwx14ct1tx81.jpg"}},{"type":4,"Term":{"SpaceType":"+mountpoint"}}],"time":"2024-10-04T12:32:03Z","message":"failed to list storage spaces"}
{"level":"error","service":"sharing","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:49842","uri":"/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":149614,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"storage-shares","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:45972","uri":"/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":1884679,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:40734","uri":"/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":118690,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"gateway","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:58274","uri":"/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":1909008,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","error":"rpc error: code = PermissionDenied desc = gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid","status":{"code":15,"message":"error listing spaces","trace":"2ec4b1c8d13363dd8d400103694421da"},"filters":[{"type":5,"Term":{"Path":"/public/wJlneahoddgncHD/5cwx14ct1tx81.jpg"}},{"type":4,"Term":{"SpaceType":"+mountpoint"}}],"time":"2024-10-04T12:32:03Z","message":"failed to list storage spaces"}
{"level":"error","service":"proxy","error":"gateway: grpc failed with code CODE_PERMISSION_DENIED","time":"2024-10-04T12:32:03Z","message":"error when calling Createhome"}
{"level":"error","service":"sharing","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:49842","uri":"/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":103455,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"storage-shares","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:45972","uri":"/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":1455759,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:40734","uri":"/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":140049,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"gateway","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","user-agent":"grpc-go/1.66.1","from":"tcp://<IP_ADDRESS>:58274","uri":"/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares","start":"04/Oct/2024:12:32:03 +0000","end":"04/Oct/2024:12:32:03 +0000","time_ns":3156855,"code":"PermissionDenied","time":"2024-10-04T12:32:03Z","message":"gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"ocm","pkg":"rgrpc","traceid":"2ec4b1c8d13363dd8d400103694421da","error":"rpc error: code = PermissionDenied desc = gateway: error calling ListReceivedOCMShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid","status":{"code":15,"message":"error listing spaces","trace":"2ec4b1c8d13363dd8d400103694421da"},"filters":[{"type":5,"Term":{"Path":"/public/wJlneahoddgncHD/5cwx14ct1tx81.jpg"}},{"type":4,"Term":{"SpaceType":"+mountpoint"}}],"time":"2024-10-04T12:32:03Z","message":"failed to list storage spaces"}

It works for me though. The files are correctly uploaded to the space.
About the network congestion, it might be a problem. I see you have several Error publishing message to topic: nats: timeout, and Failed to store data in bucket. I don't know how problematic those errors are, but it doesn't look good.

The share is not a secret file drop. Is there some way i can assign OCIS more cores? It pushes one thread to 100% constantly (I don't really understand why), but the other threads are bored.

There is no user feedback that the upload fails

Is the upload really failing or is the postprocessing failing?
If the upload wasn't completed (and postprocessing never started) it could be a connection or an authentication issue.
If the upload did complete but postprocessing failed, the issue might be in ocis and/or nats.
Can you check ongoing upload sessions? ocis storage-users uploads sessions lists all upload sessions, if it contains the above upload it will contain information on the state of the upload. If it doesn't contain the upload, the bytes probably never reached the server

I also noticed that i have plenty of items stuck on processing. I don't have virus scanning enabled, so I presume it's the thumbnail generation?

Thumbnails are not generated in postprocessing. They are created on demand. Same goes for the search index. Plain ocis (without extra configuration) does not do any additional postproessing steps, it just does some cleanups.

Is there some way i can assign OCIS more cores?

Not sure what you mean. Depends on how you deploy it I would say.

It pushes one thread to 100% constantly

It really shouldn't use 100% CPU in idle state. Something is going wrong there. Maybe related to the issue (or maybe not).

As far as I know, OCIS doesn't touch the number of cores used, and it should use all the cores available to it. Maybe it's your ansible the one that's limiting the number of cores available?
Docker also have some limits you can set for the CPUs (use only one CPU for the container, for example), but it should use everything available by default.
In any case, this is setup outside of OCIS.

It pushes one thread to 100% constantly (I don't really understand why), but the other threads are bored.

That could explain the timeouts and the random issues you're having. OCIS gets overloaded somehow.
You could also monitor the CPU usage: maybe OCIS is using just a bit of the CPU and there are additional processes that take 90% of the CPU. It doesn't change the fact that OCIS should still use all the CPUs available though.

The upload is failing. The upload popup does not open, there is no visible error message, there is just no upload.
ocis storage-users uploads sessions outputs a lot of uploads (wc -l says 3747), all of them being the same files over and over that I uploaded to another space via the desktop client. The files the two users tried to upload are not in the table.

The upload popup does not open, there is no visible error message, there is just no upload.

Would be interesting to know if there is actually a request from the webclient to the server. Maybe the webclient doesn't send a upload request somehow (browser issue ?). If the request doesn't reach the server looking through the logs is pointless. Can the affected user check if there actually was a request? (via dev-tools in the browser I mean). If there was a request we can maybe use the requestID to narrow the amount of relevant logs.

Asked the user, they are already offline though, so i might not get that information before Monday.

The first user has contacted me, since the issue happened on their end again.
When uploading, the initial request succeeded with a 200.
Got a screenshot of the Response headers, including the request id:

(7el6dd57ae22/bHS2zu3m2F-001193 is the request id)
There are plenty of errors associated with the request id, best is you take a look:
7e16dd57ae224a1cc0fa816add3e92b730118238ca2be9d0f398a805382d526e-json.log

I'm still shooting in the dark, but there are some other things you can check:

I've noticed in your initial access logs that there are some HTTP/3 requests. As far as I know, OCIS doesn't support HTTP/3 (at least officially). I assume the HTTP/3 request goes from your client to the caddy proxy, and then caddy translates the request into HTTP/2 or HTTP/1.1 for OCIS, so it might not be a problem, but I'm not entirely sure.
I'd recommend to use either HTTP/2 or HTTP/1.1 on all the components, mainly to keep discarding potential problems.
You can try to monitor the CPU usage in order to try to correlate the high CPU usage with the errors. Maybe the user can retry the upload when there is barely any load in the server.

I don't know if it makes sense, but maybe you (or the user) created the space during a time when the server was overloaded and that would cause the space to be broken due to a midway setup. I'd need to check in depth if this could be the case...
Assuming this was the case, creating a new space and copying the data to the new space should "solve" the issue. It might help to focus on having something wrong with the space and not with the user.

The high CPU usage seems to have been fixed for now. The users still can't upload, though. I still got hundreds of files stuck in processing, no matter which space they are uploaded to.
I created the space as the first thing when I set up the server (because the need for the space was what motivated me to finish setting up OCIS).
I don't seem to be able to force Caddy to use HTTP/2 for this endpoint, so I wasn't able to try that.

You can try to set the OCIS_ASYNC_UPLOADS env varible to false (from the storage-users service).
Assuming you don't have the antivirus service running, disabling the async uploads shouldn't have a noticeable performance penalty. However, it might be a bad idea to disable async uploads if you have the antivirus services running because we'd need to wait for the analysis in order to answer the request, so uploads will take longer.
I expect the async uploads to go through the postprocessing queue, so if there is a problem with the postprocessing as it seems, the issue should be mitigated if we can bypass the postprocessing queue by disabling the async uploads.
While this isn't the ideal solution, at least it can help to narrow down the problem.

Please don't disable OCIS_ASYNC_UPLOADS. It will disable multiple quality-of-live features like notifications and sses.

I don't have Antivirus enabled, but setting OCIS_ASYNC_UPLOADS to false didn't fix it anyway.

I still got hundreds of files stuck in processing, no matter which space they are uploaded to.

You can clean uploads with the same command: ocis storage-users uploads sessions --clean if you don't need them any more. (Likewise you can also restart them via --restart flag if you still need them)

The users still can't upload, though

Something is fishy here. If the initial upload succeeds this upload should be listed in the sessions command. Maybe it gets lost because of the amount of ongoing uploads?
Maybe there is some firewall blocking the upload on the users side? If it would be a general problem more users would be affected.

I tried --clean and --restart a lot of times, and it sadly never fixed up the files stuck in processing.

Is there some way i can access the files that are still in processing?

Is there some way i can access the files that are still in processing?

If they are not listed by the sessions command, the server doesn't know about them. That means these files are not in postprocessing.  There must be another issue.
Did ocis storage-users uploads sessions --clean at least clean up the other ongoing uploads?

@kobergj The server does seem to know about the files. All of them have the tooltip "This item is in processing".

I see. And those upload cannot be found ocis storage-users uploads sessions ? That is strange.

Is there some way i can access the files that are still in processing?

Well yes, uploads sessions command is supposed to let you interact with them. But that doesn't seem to work here. Looks like they have not been unmarked processing but I can't explain why. Are there old versions of these files that could be restored? What happens if you upload a new version of that file? Do they get stuck too?

Maybe the expected events were lost. I think nats has a default timeout of 5 seconds for jetstream connection, so if the system is overloaded, publishing the event might take more time.
This timeout seems to be enforced unless a different timeout is set, probably to ensure it doesn't wait forever. I don't think we're setting the timeout anywhere, so it should be using 5 seconds as timeout.
I'm not entire sure what happens with the publishing on the nats side after the timeout, but on our side it's likely considered as an error (event not published), so there is some cleanup that might not get done. While the behaviour is kind of expected, I'm not sure if we're recovering from that error.

If we encounter an error during postprocessing, we roll files back to their previous state. So they should not be in processing state any more.
If the event gets lost and no cleanup is done, the upload should still be visible in the sessions command.
Both seems not the case here. There is something else going on.

Could be related to https://github.com/owncloud/ocis/issues/10259 ?

Yes seems to be related. We made some fixes to avoid the problem in the future. Check the attached ticket for details.
I still don't know how to repair them though. The problem is probably caused by lost events. But I don't know how or why they go lost. Maybe it is even a completely different issue.


ClusterClaim controller: Watch RoleBindings

Fix what appears to be a copy/paste miss in #1068: the ClusterClaim controller was watching Role twice instead of Role and RoleBinding. Fix.
Closes: #2024

/assign @suhanime
/cc @fxierh

/test e2e

/lgtm


handle Bottom_rate not being set to the first rate when no_gap

Description
FIX: https://github.com/BitBotFactory/poloniexlendingbot/issues/492
TESTING STAGE

Types of changes

[X ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X ] I have read CONTRIBUTING.md
[X ] I fully understand Github Flow.
[X ] My code adheres to the code style of this project.
[N/A ] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[N/A ] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[X ] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.

I'm merging this as this does fix the issue.
Personally I would not recommend using bottom = 0 as it opens you to spam manipulation and pulls the market down.

@rnevet Agreed with your thoughts. To help guide the userbase, ensure these are not defaults in sample config file, or perhaps create a separate flag that has enabled for bottom = 0?

The example config already has a relatively conservative gap bottom.
Otherwise I don't want to use code to do economical education, was just sharing my thoughts. :)


Change Request: HTTP Header Logging

The Basics

Which design guideline is affected?

https://azure.github.io/azure-sdk/general_implementation.html#logging

Which target languages are affected?

All

Describe the change:

Change the log level used to log HTTP headers during request and response.
Reasoning
Currently, the specification states that HTTP header logging should happen at the Informational log level. The specification also states that the Informational log level is meant to log that “things happened”, basically logging the flow of the application. Logging headers at this level could introduce a lot of noise in attempting to follow the flow of the application, additionally depending on the service this could incur a high disk and CPU usage for the purposes of logging.
My proposal is to change the HTTP header logging from the Informational to the Verbose log level. This would reduce the logging overhead if only the flow of the application should be logged and it feels more correct based on the short explanations for each log level (Verbose is meant for details).

Copying the arch board for review.
Arch board: If you are ok with this proposal, then please indicate with a +1 or comment to that effect.  If it needs to be discussed, then please indicate that as well.

I think the guidelines should be more explicit. Here's what I suggest...
Change: DO log request line and headers as an Informational message. The log should include the following information:
To this: DO log outgoing requests as Verbose. The log should include the following information:
Change the next guideline: DO log response line and headers as an Informational message. The format of the log should be the following:
To this: DO log incoming responses as Informational for 1xx, 2xx and 3xx status codes and as errors for 4xx and 5xx status codes. The format of the log should include the log should include the request information (as shown above) and should also include the following response information:
@alzimmermsft : How do you feel about the usage of verbose, informational, and error here?

We have almost nothing in Python that raises to the level of an Error log. I'd prefer to reserve Error for things that almost certainly require immediate attention. A 429 response that we will retry on does not fall into the Error category for me.

I'm fine with demoting my error recommendation to warning.

@JeffreyRichter I am on-board with those guideline changes, the only comment I would have is potentially logging the request URL and HttpMethod at the information level as those feel like events happening and could be useful in logging the flow of an application. I also agree with @johanste around logging exceptions as a warning.
@johanste In Python when a 429 or a 503 is returned does a warning get logged then the request is retried or will the warning only be logged once retries are exhausted?

I met with the Java team in person. We now think that the verbose/informational level should be language dependent. In some language ecosystems, where many things are logged, the verbose is better and in others where fewer things are logged, informational is better.

We currently are logging under informational, and while I can't say which is better (or whether we fall into a log-more or log-less bucket), we'll continue doing as we have done unless there is strong reason to change.

So, do we need a guideline change to general guidelines, or is it sufficient for language architects to incorporate advice into language specific guidelines?

I think we need to update the language agnostic guidelines to be more lenient otherwise the language-specific guidelines could be in violation.


Move tutorials in ./model/docs/ to ./docs/source/tutorials

          > 1. Do we want to move the tutorials to the `./docs` folder instead? I've been thinking about this for a while now, and I believe it makes sense to keep all documentation in the same place.

Yes. We should do this.
Originally posted by @damonbayer in https://github.com/CDCgov/multisignal-epi-inference/issues/224#issuecomment-2200413117

@gvegayon Can you do this in its own PR (separate from https://github.com/CDCgov/multisignal-epi-inference/pull/224)? I thin it is out of scope for that PR and will best to merge ASAP.

No worries, @damonbayer. It is now on its own.


Add[#53]: more questions and customization options to trivia game

The code you provided is a simple trivia game in Ruby.
It works by creating an array of questions, each of which has a question and an answer.
The game then asks the user each question in the array and checks their answer.
If the user answers correctly, their score is incremented.
At the end of the game, the user's score is displayed.

@vivekvr1
Excellent, nice to see how you used the initialize method to set the values.
Great work 🚀
You can follow me and star this repo for further updates.
Have fun!

I will definitely follow you and star this repo so that I can stay up-to-date on your work. I'm excited to see what you do next!


Upgrade juice to latest version

Care should be taken with visual regressions in the email templates (https://github.com/oaeproject/3akai-ux/issues/3990)

Assigning to @stuartf for fix

This is actually a back end issue: https://github.com/oaeproject/Hilary/pull/1183


[README] Create a new README in zh_tw

Create a new README called README-zh_tw.md in docs.

Change the name of README-zh.md to README-zh_cn.md in docs.

Modified all.

Let's update the demo jpgs after instantbox/instantbox-frontend#10 is complete.


High-performance context causes some versions of Safari to fail to load

This was reported on the forum for Safari 13.05 on High Sierra 10.13.6. Opening any CesiumJS app, the page will continually start to refresh and then finally say "A problem repeatedly occurred".
This only happens starting 1.66, when the powerPreference was set to high-performance. This is fixed by setting the context options to default or low-power as suggested here:
https://github.com/CesiumGS/cesium/blob/master/CHANGES.md#additions-tada-2
Others have tested with Safari on OSX and have not encountered this.

This sounds like a Safari or MacOS bug on an outdated version or a machine-specific issue.  Does the problem happen in Chrome or Firefox on the same machine? Does other webgl content work?  What GPUs does the machine have?

the page will continually start to refresh and then finally say "A problem repeatedly occurred".

This is standard Safari behavior whenever a page crashes the Safari tab itself, if you have the debugger open with exceptions on, you can usually get more information before it refreshes. Not sure if you can turn the refreshing off.

This only happens in 1.66

Did you mean the problem doesn't start until 1.66, or does it not happen in 1.67?

This sounds like a Safari or MacOS bug on an outdated version or a machine-specific issue.

Yeah. Should we close this issue? There's nothing actionable for us other than to consider not having high-performance as the default, but that doesn't sound like a good idea just to get around a bug in a specific version of a specific browser.

Does the problem happen in Chrome or Firefox on the same machine?

Only happens in Safari for that user. Chrome and Firefox were verified to work.

Does other webgl content work?

ThreeJS was tested on that machine, the examples/demos there work for the user.

What GPUs does the machine have?

intel hd graphics 630. Full WebGL report from user:
<EMAIL_ADDRESS>
Did you mean the problem doesn't start until 1.66, or does it not happen in 1.67?

I meant starts on 1.66 and after. I'll reword it to make that clear.

Unfortunately, I agree that there's nothing actionable here unless we can reproduce ourselves.  I vote we close it and re-open it the moment anyone else starts having the issue or we find a way to reproduce it.

Congratulations on closing the issue! I found these Cesium forum links in the comments above:
https://groups.google.com/forum/?hl=en#!topic/cesium-dev/Adihtx_M4Ow
If this issue affects any of these threads, please post a comment like the following:

The issue at https://github.com/CesiumGS/cesium/issues/8693 has just been closed and may resolve your issue. Look for the change in the next stable release of Cesium or get it now in the master branch on GitHub https://github.com/AnalyticalGraphicsInc/cesium.


User Authentication and Authorization

[ ] * Create a user model in Azure SQL Server for storing user data (username, email, password).
[ ] * Implement user registration API endpoint using Express to store user data securely with password hashing (e.g., bcrypt).
[ ] * Implement user login API endpoint for authentication (e.g., JWT tokens).
[ ] * Integrate a chosen authentication library/service (e.g., Passport.js) to simplify token management.

User Stories:

As a user, I want to be able to sign up for an account.
As a user, I want to be able to log in to my account.
As a user, I want to be able to log out of my account.
As a user, I want to be able to reset my password if I forget it.
As a user, I want to be able to update my profile information.
As a user, I want to be able to delete my account.


DetectedTokens getting reloaded from allDetectedTokens even after the tokens are imported for a chain and selectedAddress

Fixes 16854
When used to import the detectedTokens by calling addTokens we should clear the detectedTokens and allDetectedTokens[chainId][selectedAddress] ie entry in allDetectedTokens for that particular chainId and selectedAddress, otherwise the data from allDetectedTokens getting repopulated/reloaded into the detectedtokens when the networkState or preferenceState changes.

Code changes look good but +1 to @mcmire point about tests.


How to force the highlighting engine to only handle the visible page/parts of the PDF displayed?

Hi,
Configuration

Web browser and its version: Chrome v53.0.2785.143 m, IE 11
Operating system and its version: Windows 7 Enterprise
PDF.js version: v1.6.210
I am using the available viewer (viewer.js, ...) with range requests.

Description
This is more a question than an issue. But I did not find a better place to ask it.
I am working with huge PDFs (500MB in worst cases and around 200MB is quite usual). PDF is maybe NOT the most appropriate format but, for now, this is OK.
I noticed the following in the whole process of displaying a certain PDF (kindly let me know if I am wrong):

PDF is completely downloaded by the client.
If a search parameter has been provided, then matches highlighting is starting in the background over the whole document (by clicking on the find button, one could see the ongoing process):

This process is really slow in IE: if I jump to one of the last pages (using page parameter) once the whole document has been downloaded to client side, highlighting will NOT work in that case because the highlighting searching process is NOT finished yet.

Actually, would it not make more sense to highlight only matches which are in the visible parts of the PDF displayed? Respectively, how to do this?
Thanks for your time and the great work. Wish you a wonderful day.
Respectful,
Christian

Where or how are are said 200+ MB PDFs coming from / being made?

Good evening,
Sorry for the late response. The PDFs are scanned books done by a tool called ABBYY Recognition Server. I am joining some PDF properties screenshots:

But I do NOT understand how this could play a role here. Or do I miss something? Cheers,
christian

Hi,
Might I ask you how does it look like? Do you need more input from my side? Do you plan to fix this issue in a near future? Does this issue even make sense to you?
This issue is quite critical for us. I could help and try to fix it. But then, I would appreciate if you could give me some starting point: how the highlighting is working and what would be a possible way to fix the issue.
Thanks for your feedback and your time.
Cheers and have a great day,
christian

Most of the highlighting (finding) code is here: https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_controller.js. It may be possible there to check with pages are in view and search only those, but I have not really looked into this. Hopefully this at least gives you a starting point.

Quoting from https://github.com/mozilla/pdf.js/issues/7932#issue-199170233:

This process is really slow in IE: if I jump to one of the last pages (using page parameter) once the whole document has been downloaded to client side, highlighting will NOT work in that case because the highlighting searching process is NOT finished yet.

It thus seem that this is really an issue that is caused by the comparatively sub-par performance, and the missing features, of JavaScript as it exists in Internet Explorer (compared with e.g. Firefox and Chrome).
For example, note that IE doesn't support Promises natively, which PDF.js uses extensively, and that they thus need to be polyfilled (which is slow).

Do you plan to fix this issue in a near future? Does this issue even make sense to you?

At this point, no version of IE could be considered to be a modern browser, and in my opinion it's simply a waste of both developer and reviewer time to try and hack around these limitations in Internet Explorer (unless it's limited to very simple polyfills, such as those in https://github.com/mozilla/pdf.js/blob/master/web/compatibility.js).

It may be possible there to check with pages are in view and search only those, but I have not really looked into this. Hopefully this at least gives you a starting point.

Couldn't that very easily break the entire search functionality, or the users expectation of how it should work, since the whole point of searching ought to be to be able to find things not currently in view!?

Couldn't that very easily break the entire search functionality, or the users expectation of how it should work, since the whole point of searching ought to be to be able to find things not currently in view!?

I definitely agree. I was only giving an idea to achieve:

Actually, would it not make more sense to highlight only matches which are in the visible parts of the PDF displayed? Respectively, how to do this?

since that was asked specifically. I don't think it's a good idea either, and to be fair this does sound like an IE-specific issue because it lacks support for a lot of modern web features.
I'm closing this issue as answered since I don't think there is anything we could or should do on the PDF.js side.

Actually, would it not make more sense to highlight only matches which are in the visible parts of the PDF displayed? Respectively, how to do this?

Note that highlighting already isn't applied unless the page has actually been rendered and has a textLayer; please refer to https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_controller.js#L315.
Furthermore, note also that one of the reasons that searching continues after the first match has been found, regardless of whether "highlight all" is active or not, is to be able to display a counter of the number of results; see https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_controller.js#L240.

Hi. Thanks a lot for your feedback. I see and understand your points. Just two last remarks from my side:

Because of hugeness of some PDFs, we somehow externalize the search functionality (using a Solr index). In short, our users do NOT use the search functionality coming along with the library: they get a list of matches. Each match is a link to a given page of the original PDF. This works quite well actually.
The problem is noticeable with Chrome as well. But IE is especially slow.

But, as you mentioned, this could be too specific for the pdf.js library so that I will have to handle this by myself. Now I have some starting points I should look at. I allow me to come back to you if I have some more questions.
Wish you a good one. And thanks a lot again for your time and work.

Hello, I am dealing with large PDFs as well and trying to externalise the search functionality (to ElasticSearch instead of Solr). Would you have an example, please?
Thanks a lot

Hi @blenzi. Kindly send me a private message (risky'at'chri.ch) if you are interested in a demo.


[Feature Request] Display time above calendar

It would be great if the current time can be displayed above the calendar, which makes it a more viable option as a lockscreen widget, as the lockscreen only allows a single widget.
Even better, allow multiple "world" clocks.

Newer versions of Android don't allow the Widget be shown on the Lock screen...


Why exit codes 42759 & 42758

What is significant about these numbers?

Hello!
I wanted to highlight abnormal exiting with something more meaningful than exit code 1. Something that one can Google and find out that this code is due to the error in error handler/shutdown handler. Don’t you think it’s a good idea?
Thanks

Actually I quite like the meaningful exit.. identifies it came from this unique package..

😊


tkinter causes CustomObjectDetection module import failure in Google Cloud Function

Good afternoon,
I'm trying to upload a trained Custom Object Detection model to Google Cloud Storage and run inference using a Cloud Function. However, when I upload my function to the Google Cloud Platform, importing the CustomObjectDetection module fails. I think this is because one of the required packages is tkinter, which might not work in a cloud/headless platform? But I can't figure out why tkinter/a GUI would be required for imageai. Any help toward resolving this would be greatly appreciated! My code and the full stack trace of my error is below:
`import numpy as np
from imageai.Detection.Custom import CustomObjectDetection
def  predict(self):
return "hello world"`
Deployment failure:
Function failed on loading user code. This is likely due to a bug in the user code. Error message: Traceback (most recent call last):
File "/layers/google.python.pip/pip/bin/functions-framework", line 8, in
sys.exit(_cli())
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/functions_framework/_cli.py", line 37, in _cli
app = create_app(target, source, signature_type)
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/functions_framework/init.py", line 288, in create_app
spec.loader.exec_module(source_module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/workspace/main.py", line 2, in
from imageai.Detection.Custom import CustomObjectDetection
File "/layers/google.python.pip/pip/lib/python3.9/site-packages/imageai/Detection/init.py", line 2, in
from tkinter import Image
File "/layers/google.python.runtime/python/lib/python3.9/tkinter/init.py", line 37, in
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libBLT.2.5.so.8.6: cannot open shared object file: No such file or directory
. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.

Yeah I noticed the same thing too @EdwinAguirre92 ! In fact, I assume the rest of the Image references in the functions/classes that follow are from the PIL import, rather than the tkinter import. Perhaps tkinter isn't necessary after all - I ended up actually using a different package than ImageAI for my current project, but removing tkinter could be helpful for future projects.


Remove ufs from build for now

Signed-off-by: Graham MacDonald<EMAIL_ADDRESS>

Needs another approval after the rebase :(


⚠ Bofrost.at has degraded performance

In 6fab2f1, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 3404 ms

Resolved: Bofrost.at performance has improved in a80f39f.


Samsung gear Fit2: Gattcallbackerror 133

To help us fix your issue, please provide the information in the below template. If something causes a crash, provide as much information as you can gather.
Just imagine: we do not know what you are doing!

Note: There is often little we can do without a minimal reproducible sample of the issue, so please provide that in a standalone git repository and link it here.

Steps to reproduce

I downloaded bluetooth-LE App and able to pair sucessfully with Samsung gear fit 2 .

After that iam trying to connect to samsung gear device using below code of the project
(BluetoothDevice)device.NativeDevice).ConnectGatt(Application.Context, connectParameters.AutoConnect, _gattCallback);

But the callback of the above code is throwing GattCallbackError 133.

I tried to pair with Fitbit aswell but still getting same error.
Can you please tell me the list of the blue tooth devices which works with xabre/Xamarin-bluetooth-le code??
Expected behavior
Tell us what should happen
Actual behavior
Tell us what happens instead
Crashlog
If something causes an exception paste full stack trace + Exception here
Configuration
Version of the Plugin: e.g. 1.0.0 / 1.0.1-alpha3
Platform: e.g. iOS 10.1 / Android 4.4 / ... (including version!!! e.g. Android 5.1 / i0S 10)
Device: e.g. HTC Sensation /i Phone 7 ...

Hi @RishiKapur,
I'm the friendly issue checker.
Thanks for using the issue template :star2:
I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

Why are you using android specific code:

(BluetoothDevice)device.NativeDevice).ConnectGatt(Application.Context, connectParameters.AutoConnect, _gattCallback);

Maybe I don't understand what you are trying to do.
Why not _adapter.ConnectDeviceAsync(device)


Add regex to catch errors without file/line information

We discovered that in some instances, Typescript will return an error that isn't associated with a specific file, line, or col.
For example:
error TS2688: Cannot find type definition file for 'ember__test-helpers'.
In these cases, typescript-xunit-xml was returning a result which looked identical to a passing tsc compile (0 errors), and our builds were passing when they shouldn't.
At least for our use case, it would be really helpful to report out those errors as well. Is that something the broader community might want? Here's one proposal to fix that, which introduces a separate regex to catch the errors.

Thanks for adding this - could you expand the test script and sample to include this case too please?
Would you be able to provide any more details about what scenario triggers this sort of error?

Absolutely, just pushed up a commit to add those.
What I understand to have happened is that a dependency of ours (ember-test-helpers) made some change that resulted in the removal of their index.d.ts file.
Then, the existence of a subdirectory in a typeRoots directory without an index.d.ts file in our node modules generated the TS2688 error. Similar to the issue documented here: https://github.com/microsoft/TypeScript/issues/27956#issuecomment-430849185
To make things worse, this sort of issue appears to break typescript's ability to compile and it won't report out any subsequent errors. So once we merged in that (falsely passing) dependency upgrade TS2688 was the only error ever passed to typescript-xunit-xml. Which meant that because that error was swallowed, our build pipeline ended up blind to any new TS violations we added to our own code.
Thanks for being so responsive and open to fixing this, happy to add more to the pr or answer questions if I can : )


Can we remove the space from InterpolationsRegridder?

I'm seeing huge stack traces in https://buildkite.com/clima/climaland-long-runs/builds/1330#01925384-a92c-4f92-885e-69fe03731fc1. I think it's because there are a lot (~23) of InterpolationsRegridder objects (and therefore spaces) in a DataLayouts kernel, and this results in a massive method signature

Yes, I think that should be possible. The only place where it is not easy is where we determine the extrapolation boundary conditions automatically (at the constructor):
https://github.com/CliMA/ClimaUtilities.jl/blob/5171f8c5ece6c52ed785a417049edc55ece30ea5/ext/InterpolationsRegridderExt.jl#L32-L73
This would change a little bit the spirit of the regridder (the initial idea was to have a regridder attached to a specific variable and calling it multitple times would be cheap), but I don't see big problems with this.


Tests

Your indentation is inconsistent In the src folder, you used 4 spaces for all the files.
In your tests folder, I see you using 2 spaces for all the test files. Please fix the inconsistency.

testGetSlang()
The space between line 31 and 35 is too much


Displays broken/placeholder in image gallery

Current behavior

When selecting gallery.mergeConfigurableChildren = false the images are created by attributeImages()  in core\modules\catalog\helpers\index.ts
This doesnt filter out "no_selection" images but just adds all images definied in gallery.imageAttributes
Expected behavior

before pushing new image in gallery we shoudl check if image exists:
if (product[attribute] && product[attribute] !== 'no_selection')
Steps to reproduce the issue

Version of Vue Storefront

[x] Vue Storefront
[ ] Vue Storefront Next

Can you handle fixing this bug by yourself?

[x] YES
[ ] NO

Which Release Cycle state this refers to? Info for developer. (doesn't apply to Next)
Pick one option.

[x] This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
[x] This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
[x] This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Environment details

Browser:
OS:
Node:
Code Version:  1.12.3

Additional information

i will create PR

PR created


Left nav width is too small

It appears the left nav width is set to 8.3333% for all devices. This is too narrow on desktop. The bulma theme has not been updated in a while so I am not sure if we want to patch or manually adjust.

We'll tackle this in the upcoming beta sprint

Fixed by #138


Is Chinese pre-trained model available?

Yes, it is. The implementation exists in gluonnlp.
I added available lang in the README.md
However, since I have tested in English only, I'm not sure about would the output be expected as you want. Please test it out and let me know if there are anything to improve. PR are welcome! Thanks


[functional] Failed (pending) transaction

@geffenz  few questions here:

shall these transactions be retried by going to the send flow with the existing information pre-filled or the retry is straight forward?
shall we remove them after a certain amount of time? or should the user do it? or both?

I don't know why this got created twice. maybe a renaming bug?


[TE] Enable codecov coverage for ThirdEye

Codecov Report

Merging #4961 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4961      +/-   ##
============================================
- Coverage     57.63%   57.62%   -0.02%
  Complexity       12       12
============================================
  Files          1143     1143
  Lines         61315    61315
  Branches       9055     9055
============================================
- Hits          35338    35330       -8
- Misses        23346    23356      +10
+ Partials       2631     2629       -2

Impacted Files
Coverage Δ
Complexity Δ

...er/validation/BrokerResourceValidationManager.java
25% <0%> (-56.25%)
0% <0%> (ø)

...apache/pinot/common/metrics/ValidationMetrics.java
47.45% <0%> (-28.82%)
0% <0%> (ø)

...a/manager/realtime/RealtimeSegmentDataManager.java
50% <0%> (-25%)
0% <0%> (ø)

...pache/pinot/core/util/SortedRangeIntersection.java
83.82% <0%> (-7.36%)
0% <0%> (ø)

.../realtime/impl/ThreadSafeMutableRoaringBitmap.java
92.85% <0%> (-7.15%)
0% <0%> (ø)

...e/operator/dociditerators/MVScanDocIdIterator.java
57.14% <0%> (-3.18%)
0% <0%> (ø)

...ller/validation/OfflineSegmentIntervalChecker.java
29.48% <0%> (-2.57%)
0% <0%> (ø)

...e/impl/dictionary/LongOnHeapMutableDictionary.java
53.65% <0%> (-2.44%)
0% <0%> (ø)

...lix/core/realtime/PinotRealtimeSegmentManager.java
80.51% <0%> (-1.54%)
0% <0%> (ø)

.../java/org/apache/pinot/spi/data/TimeFieldSpec.java
92.59% <0%> (-1.24%)
0% <0%> (ø)

... and 19 more

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 9edad92...651e045. Read the comment docs.

Close this as thirdeye repo is moved to https://github.com/project-thirdeye/thirdeye


Ability to change files directory without need in TDLib restart

Something like SetFilesDirectory (bool move_files). I'm not sure if there'd be any need in such method, if TDLib would have had an ability to set path for each DownloadFile (#379).
This would allow clients to implement download path setting without need in TDLib restart (which may be quite tricky in the UI) & without need in manually moving each folder, if there's such need (clients may not be aware of new or existing TDLib folders used inside filesDirectory).

It is hard to move all files and it is especially hard to do it when TDLib is run. For example, moving all media from one drive to another can take minutes or hours. Also all file paths known to the client will become invalid, so the app will fail to open any file just after file has been moved and before updateFile is received. There can be also numerous issues with already opened files.

SplitSource.php


Integrate dynamic rules.json generation into web client build

PR #1412 changes how https://gtfs-validator.mobilitydata.org/rules.html is built to use a JSON data structure extracted from source code annotations and deprecates manually maintaining the RULES.md file this page was originally generated from.
This creates a new complexity where the web client build depends on an artifact that we need the cli.jar to generate. Furthermore, it is important that the content of the generated rules.json we build the web client with be guaranteed consistent with the version of the validator the services applies to uploads. To this end, PR #1486 moves to only deploying new web client+service builds on release.
It may be overly complex to chain this off of where cli.jar is already being be built, so it might be preferable to start with burning some extra GitHub Actions minutes to build the cli.jar inline with building the web client just to execute generating rules.json with it. Potentially a broader refactoring of release workflows in the future could optimize this further. As this is done, the copy of rules.json that was merged in #1412 should be deleted from source control and generated+gitignored instead

Closing the issue as the integration was done as part of #1508. Feel free to create a new issue and adjust the scope if any requirement is missing.


Sega Reactor games in Sega - Mega Drive - Genesis

There are a few games not properly excluded, below are the correct sets according to no-intro parent/clone relationships (the Mega Drive 4 roms are parents as that's where all these games originated):
Air Hockey (Brazil) (Mega Drive 4)
Air Hockey (Europe) (Sega Reactor)

Domine o Territorio (Brazil) (Mega Drive 4)
Bomber (Europe) (Sega Reactor)
Bomber (USA) (Sega Gopher)

Corrida de Tampinhas (Brazil) (Mega Drive 4)
Bottle Taps Race (Europe) (Sega Reactor)
Bottle Taps Race (USA) (Unl)

Fixed, thanks!


LandingPage: device width's of less than 507px are showing are large white sidebar on the right side, making the entire site constrained.

Must be a width/padding/or margin thing on a breakpoint.

Just an issue with bootstrap columns

awesome. just reopening to move to review. thanks!

This seems to be an issue with the way the Sass is compiling media queries-- @johnnycrich is aware of the issue


Pre-processing data for zero-shot code-to-code search

Hello, I am trying to use Zero-shot Code-to-Code Search and the readme file mentions a preprocess.py file to use on our data before feeding it to the program, but there is no preprocess.py file provided in the zero-shot-search directory.
I tried feeding data in text format, but the run.py file uses json files as input. Can you please help?
If the candidate and query files need to be provided in json, what should be the schema for these files, which basically contain functions or lines of code in a programming language.

please reclone the repo. I have uploaded the preprocess.py file

Thank you for your response! I was able to use the model.


codec(ticdc): simple protocol add table id as message field

What problem does this PR solve?

Issue Number: close #10474
What is changed and how it works?

Encode TableID into simple protocol DML and DDL message content

Check List
Tests

Unit test
Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`

/test cdc-integration-storage-test

/retest


feat: allow configuring tag without "v"

Adds new configuration option includeVInTag or include-v-in-tag in the manifest JSON.
Fixes #1103

Thanks for contributing this feature. Do you happen to know when it will land in the next release?


Bugfix: playground is linked with correct mdx files. fixes #109

fixes #109

Corrected MDX files Import
Added PropDrawer to ListItem Playground
@pranshuchittora please review

Thanks


[Feature Request] Database outage resiliency

I did a test today, looks like Kong completely stops working if the db is not available (returning error for the API call), and it will continue working when it's back -this was on Postgres. As all the nodes cache the configuration and endpoints in memory, It would be great if Kong could continue to work maybe with a limited set of functionality - like disabling rate limiting temporarily until the db is back as it needs to write to the database.
Is anyone working on something like this? Is there any plan to do this improvement?

have you tried the fault_tolerant option? see https://getkong.org/plugins/rate-limiting/

Thanks for the pointer. I tested without that plugin enabled and the api call failed. Looks like Kong itself is not resilient in this case. This is what it returns when I bring down the db:
{"message":"An unexpected error occurred"}

@kamran-rahmani can you please provide the steps to replicate your issue? In my tests Kong the proxy port of Kong (8000) keeps working even if the DB is down. The Admin API won't work, but that's expected, and the proxy port will only work if you have already requested the API before the DB interruption, not on a brand new consumption (because Kong needs to have a chance to cache the data in memory on the first request).

I run it using docker on my machine (Mac) as it's described here:
https://getkong.org/install/docker/
Then call an API and it works (endpoint should be cached at this point). Then manually stop the Postgres container, and call the API again and get that error. Start the Postgres container again and after few second things continue to work.

@kamran-rahmani are you able to reproduce this issue on the most recent version of kong (0.10.2)? Are you able to see any useful information in the error log? What plugins do you have configured on the API in question? The more details the better we can investigate this claim. Thanks!

Closing as stale, no response provided to request for more info. Please feel free to reopen if there are still pending questions or more information you can provide. Thank you!


Delegating to subquery type

I understand, that this is possible with delegateToSchema  and transforms, but I've tried a lot and no luck, docs and tests on some transformers (like ExractField or WrapQuery) give no idea what they actually do.
Please, can you help with this?
I have a remote schema like this:
type NewsArticle {
      id: ID!
      title: String!
    }
    input NewsWhereInput {
      id: ID
    }
    type NewsQuery {
      articles(where: NewsWhereInput): [NewsArticle]
    }
    type Query {
      News: NewsQuery
    }

And I need to delegate articles query to News {articles}, e.g. delegateToSchema recieves field articles and delegates it News type or remote schema

Disclaimer.. I learn this tools for only a week. I don't know much about how this tool work.
You probably need to see this code.
https://launchpad.graphql.com/q5kq9z15p?_ga=2.70448080.1131386757.1529294606-1104484981.1528707742
I adapt that code into my own project and it's working fine.
What confuse me later is... Which resolver take priority than other ?
To me, it seem like the delegated one have highest priority because all my other resolvers got ignored.

This looks like a duplicate of https://github.com/apollographql/graphql-tools/issues/543. More info there, with some solutions using WrapQuery.

Closing as is duplicate.


Discrepancy in Reward Metrics

Hello, I'm very interested in your PyTSC project. However, while reproducing the results from the paper, I encountered a few issues. Firstly, the y-axis of the learning curves in the paper represents the reward, which ranges below -100, for example, in the jinan_3_4 scenario, the reward is between -1000 and -200. However, in the EPymarl framework, the implemented test_return_mean is around -8. I have chosen QueueLength as the reward metric, and the observation_space is lane_features. I'm curious why there is this inconsistency.

The reward function in the code was later scaled by number of intersections (global reward / # intersections). This is where the discrepancy arises.
def get_global_reward(self):
        fc = self.config.misc["flickering_coef"]
        reward = 1e-6
        reward += fc * self.metrics.flickering_signal
        reward += self.metrics.n_queued_norm
        return -1 * reward

I would recommend using the scaled version of the reward (since it was seed to perform better) and track queue length separately.

The reward function in the code was later scaled by number of intersections (global reward / # intersections). This is where the discrepancy arises.
def get_global_reward(self):
        fc = self.config.misc["flickering_coef"]
        reward = 1e-6
        reward += fc * self.metrics.flickering_signal
        reward += self.metrics.n_queued_norm
        return -1 * reward

I would recommend using the scaled version of the reward (since it was seed to perform better) and track queue length separately.


Reference ServiceOrder subclasses as root classes

Followup to https://github.com/ManageIQ/manageiq/pull/19795
Reference ServiceOrder subclasses as root level classes.

Jansa backport details:
$ git log -1
commit cedb20033fedb36a9db100be056a16236b21a2f3
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Mon Mar 9 16:48:48 2020 -0400

    Merge pull request #19944 from gmcculloug/service_order_root_object

    Reference ServiceOrder subclasses as root classes

    (cherry picked from commit 6ce959fe8048182b0a54e60a0c9bdcc042c26093)


Displaying leaf node data

Hi All,
I have some compound inhibition data that I would like to display in my phylotree. The inhibition data (a number ranging from 0 to 100) will be stored in the leaf node. What I would like to achieve is a graphic that will look like the one below:

where the color rectangles on the right indicate the inhibitions.
I am trying to borrow the code from the 'leafdata' example:
http://phylotree.hyphy.org/examples/leafdata/
However, I was not able to render any 'rectangles'. See my code here (line #292 to line #298):
http://lubw.com/phylotree/mod.php
What am I doing wrong here? Is 'leafdata' the right example to copy from? Does anyone of you have a better recommendation to achieve this?
Thanks a lot. Any suggestions will be highly appreciated.
Best regards,
Wen

Dear @lubwen,
This is an issue with how you are using d3, not with phylotree. You are calling data on a number, whereas it expects an array. Adjusting the corresponding line in the style_nodes function to
var annotation = element.selectAll ("rect").data ([30]);

(note the square brackets around 30) will get some rectangles to appear.
Note that d3 also has datum for individual data values.
Best,
Stephen

Dear @stephenshank,
Thanks a lot. Best regards,
Wen


Batching rules for pad and concatenate primitives not implemented

I'm interested in using JAX to compute Jacobians for functions which involve iteratively applying operations to generate a sequence. When using Autograd for this, in order to avoid indexed assignment I would create a list which is iteratively populated with the sequence values and then create an array from the list using np.array or np.stack. Attempting the same in JAX (built from source with fc4afb409b) raises a NotImplementedError when trying to compute the Jacobian of such a function with either jacrev or jacfwd as batching rules are not implemented for the pad and concatenate primitives respectively.
As a minimal example
import jax.numpy as np
from jax import jacrev, jacfwd

def func(xs):
    return np.array([x for x in xs])

jacrev_func = jacrev(func)
jacfwd_func = jacfwd(func)

xs = np.ones((5, 1))

jacrev_func(xs)
# raises NotImplementedError: Batching rule for 'pad' not implemented

jacfwd_func(xs)
# raises NotImplementedError: Batching rule for 'concatenate' not implemented

The same errors are raised when replacing np.array in the defnition of func with np.stack, np.hstack, np.vstack or np.concatenate.

Looks like jacfwd and jacrev had some transpose issues as well!

Please reopen if you run into more issues with these particular primitives, or open new issues as you need vmap support for other primitives!

Thanks for fixing this so quickly!


PowerToys Run exit by exception

Microsoft PowerToys version
<IP_ADDRESS>
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce

✔ Expected Behavior
I intended to open visual studio code by PowerToys Run.  I arouse PowerToys Run by Alt+Space, it was suddenly crashed while I enter just a word.
❌ Actual Behavior
PowerToys crashed.
Other Software
No response

@MrCharry
It should be fixed in 0.41.4


version incorrect

Describe the bug
gotagger isn't correctly identifying that a commit affects more than one module. This lead to a patch bump in a release instead of a minor bump even though a a feature change occurred since the last release.
Expected behavior
Minor bump in a release.

@robhafner, could you verify the linked PR fixes your issue?
I think the command should be:
go mod edit -replace github.com/sassoftware/gotagger=github.com/wfscheper/gotagger@wfscheper/issue12


Took me a second......

....almost opened an issue to rail you guys for this, then I saw the joke statement at the bottom. Good one.

Please ask this question on Stack Overflow. We use Github tracker for bug reports only. Thanks!

My blood started to heat up and the back of my neck started to prickle the more I got through the readme until the bottom.
Also, I love the 4.5 MB css size 🍡

Having borrowed so heavily from twbs/bootstrap you should maybe give credit?

I guess I don't really think stuff like this is funny. Our industry (front-end development) has historically had a real problem with getting people to write good code and this not only doesn't help, it's harmful. Would you think it was hilarious if your doctor was trolling medical boards giving people false advice on dealing with their condition? Of course, a doctor or structural engineer wouldn't do that because they take their profession seriously. No wonder people don't think web development is "real" engineering. FTR, I am anything but a "serious" person, but this is just lame and polluting.

Hi @tomccabe, and thanks for voicing your opinion.  But we love you anyway. We hope universal.css will do you good.


Bump to 0.3.0

Codecov Report

Merging #112 (74081d7) into main (3c7662c) will decrease coverage by 1.47%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
- Coverage   69.76%   68.29%   -1.48%
==========================================
  Files           6        5       -1
  Lines          86       82       -4
  Branches       12       12
==========================================
- Hits           60       56       -4
  Misses         23       23
  Partials        3        3

Impacted Files
Coverage Δ

jupyterlab_templates/_version.py
100.00% <100.00%> (ø)

jupyterlab_templates/__init__.py

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 3c7662c...74081d7. Read the comment docs.

Codecov Report

Merging #112 (74081d7) into main (3c7662c) will decrease coverage by 1.47%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
- Coverage   69.76%   68.29%   -1.48%
==========================================
  Files           6        5       -1
  Lines          86       82       -4
  Branches       12       12
==========================================
- Hits           60       56       -4
  Misses         23       23
  Partials        3        3

Impacted Files
Coverage Δ

jupyterlab_templates/_version.py
100.00% <100.00%> (ø)

jupyterlab_templates/__init__.py

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 3c7662c...74081d7. Read the comment docs.


Remove comment between doc comment and generic params

This was an issue discovered when implementing a fix for #5122 in PR https://github.com/rust-lang/rustfmt/pull/5124#issuecomment-1030806191. The issue is reproducible on rustfmt 1.4.38-nightly (8572b343 2022-04-24) and uses the rustfmt.toml defined in the rustfmt repo.
# rustfmt.toml
error_on_line_overflow = true
error_on_unformatted = true
version = "Two"

This input:
// Non-doc pre-comment of Foo
/// doc of Foo
// Non-doc post-comment of Foo
struct Foo<
    // Non-doc pre-comment of 'a
    /// doc of 'a
    // Non-doc post-comment of 'a
    'a,
    // Non-doc pre-comment of T
    /// doc of T
    // Non-doc post-comment of T
    T,
    // Non-doc pre-comment of N
    /// doc of N
    // Non-doc post-comment of N
    const N: item,
>;

Gets formatted as follows:
// Non-doc pre-comment of Foo
/// doc of Foo
// Non-doc post-comment of Foo
struct Foo<
    // Non-doc pre-comment of 'a
    /// doc of 'a
    'a,
    // Non-doc pre-comment of T
    /// doc of T
    T,
    // Non-doc pre-comment of N
    /// doc of N
    const N: item,
>;

#5215 deals with a similar issue for struct fields, and I imagine the approach to fixing the issue for the generic parameters would be the same.

Thanks for capturing this so we don't lose track!

Just a happy coincidence that I came across this as I was making changes to #5305, and peeking into various issues / PRs to see if I could reword any of the CHANGELOG entries.

Related bug (inline block comment):
in
pub struct Foo;
impl /*core*/std::error::Error for Foo {}

out
pub struct Foo;
impl std::error::Error for Foo {}

@Rudxain thanks for reaching out! There are several places where rustfmt isn't expected to find comments and doesn't try to recover them when reformatting your code. Between the impl keyword and the trait name is one of them. Although you're observing a similar issue it's happening in a different context so it's unfortunately unrelated to this issue.
Feel free to open up a separate issue to cover the case you're running into.

There are several places where rustfmt isn't expected to find comments and doesn't try to recover them when reformatting your code.

Oh. I didn't expect that 😅

Feel free to open up a separate issue to cover the case you're running into.

I'll probably do that. I commented /*core*/ to remind myself to replace std by core when core Errors get stabilized
BTW, thanks for the info!


Draw Area Selection - Active

Hello!
I am running into a few issue with the DrawAreaSelection active function. I hope you can provide some clarity if this is a known bug or potentially an issue with my implementation.

The rect drag feature does not create the proper rectangle progress lines. When clicking and dragging, nothing appears on the map. When you release the mouse, a single line is drawn on the map or could be a box with very weird dimensions, either way it does not match the initial click and drag rectangle. However, I am able to click in markers to make a polygon.

I want to set the draw-panel-help element to a different message by using document.getElementById('draw-panel-help').textContent but this does not seem to work when using active. This works fine in the onButtonActivate function.

Hi @Ryllau
for 1: a codesandbox/codepen example can help to reproduce, with details about browser and OS used. Keep also in mind (it's documented somewhere) that rect drawing is not working on mobile (yet?)
for 2: what you mean with "when using active"?

I am not too sure how to use codesandbox/codepen but I referenced your codesandbox and made modifications to the index.js below (if you copy and paste the code below into your codesandbox you should be able to replicate).
I set the 'active' function in the DrawAreaSelection configuration (to begin drawing on start) and by doing so the click-drag rectangle doesn't seem to function properly.
Mac OS Monterey v12.3 on Google Chrome v102.0.5
const map = L.map("map").setView([51.505, -0.09], 6);

L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
  attribution:
    '© OpenStreetMap contributors',
  maxNativeZoom: 19,
  maxZoom: 30,
  minZoom: 5
}).addTo(map);

const areaSelection = new DrawAreaSelection({
  onPolygonReady: (polygon, control) => {
    let geojsonFg = L.geoJSON(polygon.toGeoJSON(), {
      style: {
        opacity: 0.5,
        fillOpacity: 0.2,
        color: "red"
      }
    });
    geojsonFg.addTo(map);
    control.deactivate();
  },
  onButtonActivate: () => {
    document.getElementById("draw-panel-help").textContent =
      "draw!";
  },
  onButtonDeactivate: () => {},
  active: () => {}
}).setPosition("topright");

map.addControl(areaSelection);

Hi @Ryllau, codesandbox is a good tool exactly because you can fork my example above and apply changes yourself, then give me the URL of the fork 😃
I will take a look, unluckily I'm quite busy so it will take some time

No worries!
I am not sure if this is a quick and easy change but maybe when the active:() => {} function is used
reuse/simulate the same logic as if the button was selected.
I think the trouble is when you try to click-drag a rectangle on active because the leaflet map is not locked, so it cannot drag the rectangle.


[Please change the title]

Provide the actual tweet content between the commented colons

The broken Kubernetes Slack inviter has been swapped out thanks to the k8s-infra team.  Community members may now join using slack.k8s.io again.

Saved too soon, closing.
/close


Consider using "None" instead of "Default" in Subservice area

Current requirement was asked for REST API meetings. We need to figure out if this applies for the other 2 types of meetings

We need to figure out if this applies for the other 2 types of meetings

For Informational meetings, there's no option to specify a subservice
For SDK Review, there's is. It shows "Default" too as the default option. Changing this to "None" as well.

Fixed 🚀
Another small change I did: The + Add new option now always appears at the end of the list, not as the second option anymore


Uploading multiple large files failed

Curently my code is failing on uploading 9 files of upto 32MB with following error:

Here are the dropzone configuration options that I've used:
dropzoneOptions: {
    maxFiles: 1000,
    timeout: 100000,
    maxFilesize: 100,
    parallelUploads: 1,
    paramName: 'images',
    addRemoveLinks: true,
    uploadMultiple: true,
    autoProcessQueue: false,
    maxThumbnailFilesize: 100,
    url: `${axios.defaults.baseURL}/admin/album/pictures`,
    headers: { 'Authorization': `Bearer ${accessToken()}` },
    error: this.dropzoneSubmissionError,
    success: this.dropzoneSubmissionSuccess,
},

Here is the dropzone tag:
<vue-dropzone
    ref="myVueDropzone" id="dropzone" class="custom-dropzone"
    :options="dropzoneOptions" @vdropzone-sending="addPictures"
    @vdropzone-complete-multiple="vDropzoneCompleteMultiple"
    @vdropzone-total-upload-progress="vDropzoneTotalUploadProgress"
    @vdropzone-canceled="vDropzoneCanceled"
/>

And here are the functions that are called by various events mentioned in dropzone tag:
addPictures(file, xhr, formData) {
    formData.append('album_id', this.$route.params.album_id);
},
vDropzoneCompleteMultiple(response) {
    console.log(response);
},
vDropzoneTotalUploadProgress(progress) {
    this.pictures_uploading = true;
    console.log(progress);
    this.totalUpload.width = progress;
},
vDropzoneCanceled(file) {
    console.log(file);
}

Furthermore, since I've logged the total progress in vDropzoneTotalUploadProgress function, that progress never exceeds 4.16
Any help would be appreciated...

Problem Solved!! Actually all I did is this:
dropzoneOptions: {
    maxFiles: 1000,
    timeout: 100000,
    maxFilesize: 100,
    paramName: 'images',
    addRemoveLinks: true,
    uploadMultiple: true,
    parallelUploads: 1000,
    autoProcessQueue: false,
    maxThumbnailFilesize: 100,
    url: `${axios.defaults.baseURL}/admin/album/pictures`,
    headers: { 'Authorization': `Bearer ${accessToken()}` },
    error: this.dropzoneSubmissionError,
    successmultiple: this.dropzoneMultipleSubmissionSuccess,
},

I just added parallel uploads to my dropzoneOptions and set that to maxFiles (you can set that whatever you want but make sure that no matter how many files you add at once, they all get uploaded parallely)
And that's it :) Hope it might help someone

Do you have full code of this solution?


In place stack reversal

Description 📜
Code, demonstration of Code, and Screenshot of output for reversing the stack without using any extra stack or space.
Fixes #4624

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[X] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[X] C/CPP

Checklist ✅

[X] I follow Contributing Guidelines & Code of conduct of this project.
[X] I have performed a self-review of my own code or work.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] My changes generates no new warnings.
[X] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

Png/binary files are not allowed...
Embed images in markdown file

Done, @ChetasShree can you please review it again and merge it?

@kashishahuja2002 I have made the requested changes please re-review my PR

@VaibhavMalik4187  Awesome 🚀


Implement adding a set of parameters to the decision node, on the basis of which the decision was made

Is your feature request related to a problem? Please describe.
In addition to listing the applied rules, you can list the arguments. Consider the output structure of the direct inference agent
TODO: Add params to solution node

implemented in #43