Problem setting API_URI

What I'm trying to achieve
After deploying Saleor, I want to run saleor-storefront and saleor-dashboard
Steps to reproduce the problem

Successfully installed Saleor following the steps in: https://docs.saleor.io/docs/next/getting-started/installation-windows/
Started installing saleor-storefront following the steps in https://github.com/mirumee/saleor-storefront/
Installed NPM dependencies: npm i
Had previously (unsuccessfully) tried to to set the API_URI environment variable to point to http://localhost:8000/graphql/. Tried defining it in 1. saleor-storefront/app.json, 2. saleor/app.json, 3. saleor-storefront/config/webpack/config.base.js,

Might be a silly question but I'm an entrepreneur, not a developer, and I'm struggling a bit following the documentation, thanks.
btw, same thing is happening when trying to install saleor-dashboard
What I expected to happen
Successfully running npm start and accessing the storefront on http://localhost:3000
Log
(Saleor) C:\Users\Tavo\Dev\Saleor\saleor\saleor-storefront>npm start
<EMAIL_ADDRESS>start C:\Users\Tavo\Dev\Saleor\saleor\saleor-storefront
cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly

C:\Users\Tavo\Dev\Saleor\saleor\saleor-storefront\config\webpack\config.base.js:11
throw new Error("Environment variable API_URI not set");
^
Error: Environment variable API_URI not set
at Object. (C:\Users\Tavo\Dev\Saleor\saleor\saleor-storefront\config\webpack\config.base.js:11:9)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (C:\Users\Tavo\Dev\Saleor\saleor\saleor-storefront\webpack.config.js:6:20)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!  C:\Users\Tavo\AppData\Roaming\npm-cache_logs\2020-02-27T20_35_00_021Z-debug.log
System information
Operating system: Windows 10
Python 3.8.1
Node.js version 12.14.1
PostreSQL 10.12
GTK3+ for Win64
Build Tools 2017 v 14.24

Hi Gabernalt. Why did you close the issue? Did you fix it? :)
I am having the same issue.

I solved it by creating the .env file in the root folder. in the file I just add this one line
API_URI=http://localhost:8000/graphql/

I am getting error when running npm start. It says to Environment variable API_URI not set. In app.json i changed the value to the one mentioned but still error is there.
The value property of API_URI is what i have changed. Tell me if i need to do something differently or set the API_URI value somewhere else? Thank in advance.
"env": {
"API_URI": {
"description": "URI of a running instance of Saleor GraphQL API",
"value": "http://localhost:8000/graphql/"
},
"APP_MOUNT_URI": {
"description": "URI at which the Dashboard app will be mounted",
"value": "/"
}
},

Never mind its resolved thanks to abdulmuhaimin's answer. Actually I tried his solution initially but what I was doing is that I created file environment.env file but it never worked. Later I removed the filename and set it to just the extension .env and viola, It worked!

I have tired the command
export API_URI=http://localhost:8000/graphql/
It worked for me for the first but when the next time I tried to setup everything again it is just throwing some error

GraphQL error: Error decoding signature

The saleor and saleor-dashboard is working fine but only saleor frontstore is throwing this error.

The rest of the UI is loading fine but the places where frontend have to display images or data from backend. It is showing the following error

GraphQL error: Error decoding signature

I solved it by creating a .env file in the root folder. in the file I just add this one line:
API_URI=http://localhost:8000/graphql/

Why we must add it but does not on the document.

1- Add the lines bellow to: /root/.bashrc
2- run this command: source ~/.bashrc
3- try npm start if is not working then reboot your server
export ALLOWED_HOSTS=<IP_ADDRESS>
export ALLOWED_CLIENT_HOSTS=<IP_ADDRESS>
export DEBUG=True
export SECRET_KEY='ffffd7d8f78d7f878fd7@!!!'
export INTERNAL_IPS=<IP_ADDRESS>,<IP_ADDRESS>,
export DEFAULT_COUNTRY=US
export DEFAULT_CURRENCY=USD
export APP_MOUNT_URI=/dashboard/
export API_URI=http://<IP_ADDRESS>:8000/graphql/

@abdulmuhaimin-work In which root folder do you create the ".env file" ? In the saleor-plaform folder or the saleor-storefront folder ?


logo: added logo to readme

Ups.

Can you squash the two patches?

i was actually just about to do that


Added search for address functionality and form population

This commit allows searching for an address string using the search bar outside the map.

Pressing enter prevents the submit of the form but searches the address instead.
Pressing the search button performs the search and updates the map.
After updating the map, the available fields will be populated.

Please review if this is ok.


[r] Run coverage in parallel instead of sequentially after test

fixes #1406
Issue and/or context:
Total time for CI is currently the time for tests plus the time for coverage where it runs making the 'linux' run slower than macOS.  We can safe a bit of total CI time by running coverage while the normal unit tests run, making the net total time the time of slower unit test setup, currently macOS.
Changes:
Expand the CI matrix to include field 'covr', run unit tests as before when the field is not but run coverage when it is yes.
Notes for Reviewer:
#1406, SC 29906

Codecov Report
Patch coverage has no change and project coverage change: -12.06 :warning:

Comparison is base (58f528c) 63.75% compared to head (88daa38) 51.70%.

:exclamation: Current head 88daa38 differs from pull request most recent head 51442e7. Consider uploading reports for the commit 51442e7 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1442       +/-   ##
===========================================
- Coverage   63.75%   51.70%   -12.06%
===========================================
  Files         103       73       -30
  Lines        8189     5702     -2487
===========================================
- Hits         5221     2948     -2273
+ Misses       2968     2754      -214

Flag
Coverage Δ

python
?

r
51.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 30 files with indirect coverage changes

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


Add autoware_utils to humble, jazzy, and rolling indices

Please Add This Package to be indexed in the rosdistro.
humble, jazzy, and rolling
The source is here:
https://github.com/autowarefoundation/autoware_utils.git
Checks

[x] All packages have a declared license in the package.xml
[x] This repository has a LICENSE file
[x] This package is expected to build on the submitted rosdistro

New package review:

[x] At least one of the following must be present

[x] Top level license file: https://github.com/autowarefoundation/autoware_utils/blob/rolling/LICENSE
[ ] Per package license files

[x] License is OSI-approved: Apache-2.0
[x] License correctly listed in package.xmls

[x] autoware_utils: https://github.com/autowarefoundation/autoware_utils/blob/rolling/autoware_utils/package.xml#L10

[x] Public source repo: https://github.com/autowarefoundation/autoware_utils/tree/rolling/
[x] Source repository contains ROS packages and each package meets REP-144 naming conventions

[x] autoware_utils - "utils" is one of the least descriptive package names and I considered warning against this but it isn't a REP-144 requirement and autoware_utils as a complete package name is compliant.

@youtalk this will need to be rebased now that the autoware_cmake PR has been merged.

@nuclearsandwich Thank you for your review. I've rebased it.


使用computed改造动态获取功能

:tada: This issue has been resolved in version 1.9.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


513 deprecating legacy plot api

Describe your changes

Added deprecation warnings for legacy plot functions: .pie(), .bar(), and .plot()
Added tests for deprecation warning messages

Issue number
Closes #513
Checklist before requesting a review

[x] Performed a self-review of my code
[x] Formatted my code with pkgmt format
[x] Added tests (when necessary).
[x] Added docstring documentation and update the changelog (when needed)

:books: Documentation preview :books:: https://jupysql--849.org.readthedocs.build/en/849/

closing in favor of https://github.com/ploomber/jupysql/pull/870


Pairing homebridge error

by trying to pair homebridge I get the following message
  EventedHTTPServer [2003:84:af4b:7900:1899:77d8:a605:897e] Client connection error: write EPIPE +337ms

I can put in the pin, but it never finishes pairing.
Anyone an idea?

It seems the socket between iOS and accessory get terminated ... Can you get the logs from iOS and see what's the reason they closed the socket?

I found, that I can pair without the fhem plattform shim. So the problem seem to be there.

I guess I had the same problem a day ago. One of your devices is noncompliant and home kit thus unpairs. Try filtering by room to identify the culprit.

look at the http://ip:51826/accessories
If one of the value fields is ot of the bounds of the min/max values (or in case of fixed answer lists, none of the allowed) then homekit dislikes the bridge. Sometimes it even blacklists the bridge for some time. I had this a lot before https://github.com/KhaosT/HAP-NodeJS/commit/98ef550c8d6fd961741673d4b695a74dd0126eba a lot with target temperatures.

Just pushed a HAP-NodeJS update to master.

I'm not sure whether this may be the same reason, anyway adding the Characteristic.TargetHorizontalTiltAngle in a WindowCovering Accessory the pairing doesn't work. I just get these messages:
...
HAPServer [CC:22:3D:E3:CE:35] Removing pairing info for client +9ms
Accessory [Homebridge] Unpairing with client B7B16E8A-6F47-4B82-843E-F217132F7FF9 +0ms
...
```

Can you post an accessory configuration file so I can try to reproduce this?
Best Wishes,
Tian Zhang

On Sep 16, 2015, at 9:10 AM, cflurin<EMAIL_ADDRESS>wrote:
I'm not sure whether this may be the same reason, anyway adding the Characteristic.TargetHorizontalTiltAngle in a WindowCovering Accessory the pairing doesn't work. I just get these messages:
...
HAPServer [CC:22:3D:E3:CE:35] Removing pairing info for client +9ms
Accessory [Homebridge] Unpairing with client B7B16E8A-6F47-4B82-843E-F217132F7FF9 +0ms
...
—
Reply to this email directly or view it on GitHub.

@KhaosT:  I've uploaded "FhemWindowCovering.js" and "config-fhem-sample.json" [here] (https://github.com/cflurin/homebridge-shims)

@KhaosT: good news! I've just updated my iPhone to iOS 9 > it works with iOS 9 :smile:


Cannot delete files

Hello, I have been using S3 for a while and I am now trying to do housekeeping and delete files.
Everything is configured and S3.upload works fine.
I am trying to call S3.delete() and it does not delete and does not return error either:
I have a file which was uploaded with S3.upload, with these file properties in AWS:
Bucket:	files.cilicon.net
Folder:	users
Name:	B6sEAvC36ZaWv5Ssa-thumb.jpg
Link:
https://s3-ap-southeast-1.amazonaws.com/files.cilicon.net/users/B6sEAvC36ZaWv5Ssa-thumb.jpg
Size:	3251
Last Modified:	Sat May 21 16:15:48 GMT+700 2016
Owner:	herve.jegou
ETag:	c599806873bbad9ec2df234d3651d78b
Expiry Date:	None
Expiration Rule:	N/A

I have a Meteor method which tries to delete that file (for debugging):
if (Meteor.isClient) {
        S3.delete(
          '/users/B6sEAvC36ZaWv5Ssa-thumb.jpg',
          function (e, r) {
            if (e) { console.log('error', e); }
            else { console.log('S3.delete complete', r); }
          }
        );
      }

I get the following in the console: S3.delete complete undefined which seems to indicate that the S3.delete call was successful?? (console.log message when no error, no result returned?).
But the file is still in AWS. My access keys for S3 give full unrestricted access to the entire S3 account so there should be no permission issue. I have tried the above without the ``if(Meteor.isClient)``` and it still does not work.
I do not know what else to try.. Any advice would be appreciated. Thanks.

Hi
Did you find a solution? Having the same problem right now...

Ok I finally got something working by modifying the package itself. Looks like the API has changed a lot since this package (and Knox library) has been last updated...
For a temporary workaround you can clone this package in your project, and edit delete_object.coffee accordingly: https://gist.github.com/nicooprat/5ee6a22212faf049140ebf5a4df89380
It's a quick fix, hope @Lepozepo will have some time to give it a look :)
Side note 1: actually no need to edit S3 policy... Don't know why s3:DeleteObject is not needed?
Side note 2: Amazon JS SDK docs are available here
Side note 3: not sure if Knox is still working/necessary as of this changes in Amazon SDKs...
Hope it helps.

That's odd, I'll have a look for sure over the weekend

@nicooprat thanks for helping and finding the root of the problem... I will wait for @Lepozepo review over weekend

Hmm, this is odd, I opened up a bucket in singapore (the region you are using) and successfully uploaded and deleted to a file that exists in a folder. @nicooprat, I think s3:DeleteObject would allow anonymous users to delete somehow. @hervejegou make sure you are using the path option to identify where the file should upload to. I think if you use a string only and upload that way, the key will be wrong on s3 and so s3 won't be able to identify what resource to delete. Maybe that's the issue?

Ok now I hate myself. I just checked it again, downloaded your repo, tried your basic example to see... that I misunderstood the docs. The path parameter actually is the relative_url field in DB. So, the bucket-name must not be present in the string:

/bucket-name/file-path.ext wrong
/file-path.ext correct

Works well now! Thanks, hope @hervejegou had the same problem.


Unclassified vs "not classified"

Hi,
I am trying to use CAT to annotate contigs derived from Illumina sequencing and assembled by  Megahit.  My understanding is that "Not classified" means that something prevented the classification of the contig, like "no hits to database", "hits not found in taxonomy files" or "no ORFs found".  I have a number of "Classified" in the out.CAT.alignment.diamond file that have alignment scores of > 0.5 at one or two levels to a NCBI protein ID but - although that protein ID has taxonomy, they are labeled "not classified" at all levels.
Why are these in 2 separate bins, instead of the 2nd instance being a subset of the first "unable to be confidently classified"?  Am I misunderstanding these results?
Thank you for your help,
Kathie Mihindukulasuriya

Hi,
I also had some contigs like this. If you look at the taxonomic lineage (numeric), you should see, that those are classified as 131567 or even the root (1). This can be caused by classifications as environmental samples.
Just to check this is the case, would you mind sharing the affected contigs or the CAT output?

Hi @mihinduk and @Finesim97,
Yes you are right! Sometimes a contig is classified at a higher level than superkingdom, in which case CAT considers it classified but you won't find any classification on the official ranks.
The logic for this behaviour is that giving names to the lineage at official ranks is a post-classification step, and CAT is agnostic as to which level you want a classification to be made before something is called unclassified.
Hope this helps!
Best wishes,
Bastiaan

This makes sense.  Thank you so much for your quick reply.
Kathie


SRG Request sensitivities

2023 SRG Request
2. The SRG also recommends continuing sensitivities for steepness, natural mortality, σR, excluding the age-1 index, alternative standard deviations for time-varying selectivity, and using the McAllister-Ianelli method to weight fishery age composition data.
We need to double check that they are all coded to run and reported.

Completed this year.


styles, getting-started.js file for QuickStart page

New Quick Start page
Related Issues
List related issues.
Testing
A few sentences describing what testing you've done, e.g., manual tests, automated tests, deployed in production, etc.
Tasks That Must Be Done

[ ] Did you update CHANGELOG.md?
[ ] Did you add or update tests?
[ ] Did you update documentation?
[ ] Were there any special dev tricks you had to use to work on this code efficiently?

[ ] Did you add them to DEVELOPING.md?

Other

If this is a documentation change for a particular release, please open the pull request against the release branch.

Thanks, @cindymullins-dw, se attached images for how it looks on my computer (Chrome) and my iPhone (Safari).

Page with "Want to view install instructions?" link under Rectangle 3, and
drop down menu on Index page so user can jump to relevant install section..

After-the-jump example

@cindymullins-dw here's what the latest preview looks like on my phone, in portrait and landscape mode.

"Try to fix yaml link" commit fixed the problem.  This is the link in question and it now directs to the QuickStart page.

Firefox 75.0 on X11:
The "Copy" button sets the X11 CLIPBOARD selection to the given text, but not the PRIMARY selection; which means that middle-click paste doesn't work (this is something many many X11 users expect to work). (But that's always been the case that our Copy button works that way.)
The links all seem to work.


YOLOv8 Export Bug

Hi, while evaluating the performance of the quantized v8 models I realized that the current exporting pipeline does something slightly different from how the models were actually exported for the zoo. As you can see from the images, the slicing operation is done differently for the same model (YOLOv8m) and the consecutive conv layer is not being quantized. My guess is that it has to do something with #1497 . However, I might be wrong because it shows that 0 layers are being propagated that way, and I have even tried commenting it out.
Current:

Zoo Models:

I'm not sure why this is happening, I have tried to roll back to sparseml version 1.5 and 1.6 but the issue still remains. Are there any particular version I should rollback to? The zoo models were exported using what version of sparseml?  Any help or hints on how to fix this are really appreciated! (Apologies for the spam)

Hi @yoloyash unfortunately additional support for this yolo pathway is not on our immediate roadmap - since rolling back the version (to the version where the correct models were exported) did not work - you could potentially try looking at rolling back third party libraries that may have made a difference (ie pytorch, onnx, and ultralytics versions)

Hello @yoloyash
As there have been no further comments on this thread, I am going to go ahead and close out this issue. We hope you're able to roll back the third-party libraries as recommended by @bfineran to see if that makes a difference?!  Feel free to re-open it as needed.
Best,
Jeannie / Neural Magic


Update prepare-development-environment.md

Add a note about taking note of search/replace values since they'll be used in later steps.

Excellent addition - thanks! You should see the article updated later on 5/15.


[1.13.x] Re-vendor swarmkit to 1c7f003d75f091d5f7051ed982594420e4515f77

Includes docker/swarmkit#1914
/cc @dongluochen @vieux
Partially fixes docker/docker#30327

LGTM

LGTM


[FEATURE] Add wait support to wash scale

Affected project(s)
wasmCloud CLI (wash)
Is your feature request related to a problem? Please describe.
Starting actors and providers using wash waits for the appropriate event to confirm that everything worked. However, the scale command does not have the same behavior
Describe the solution you'd like
I would like the scale command to wait for an actor_scaled event by default and to have the --skip-wait flag like other commands
Describe alternatives you've considered
n/a
Additional context
n/a

hi @thomastaylor312 , was wondering if this is still open? happy to look into it :)

Just a note that in a recent PR we did rename this to component_scaled, so make sure to use that event 😄

Yep, you're good to work on this

Hey @siddharthkhonde are you still working on this by any chance? If not it'd be great if we could free it up for others to work on!


New Publisher in Codeunit 7010 "Purch. Price Calc. Mgt."

Hi,
we need one more Publisher in Function FindPurchLineLineDisc in Codeunit 7010 "Purch. Price Calc. Mgt." and new Variable:

It's equivalent to the Function in Codeunit 7000 "Sales Price Calc. Mgt.".
Thanks in advance

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

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


v 1.6.1 running only the preprocessor

on OSX I can do this:
$ eosio-cpp x.cpp

but I can no longer do this (I used to be able to, in v1.5.0):
$ eosio-cpp x.cpp -E -dD

I get the following errors:

Error while trying to load a compilation database:
Could not auto-detect compilation database for file "x.cpp"
No compilation database found in /Users/ekkis/dev/eos or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
/Users/ekkis/dev/eos/x.cpp:1:10: fatal error: 'eosio/eosio.hpp' file not found
#include <eosio/eosio.hpp>
^~~~~~~~~~~~~~~~~
Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action  does not have a ricardian contract
1 error generated.
Error while processing /Users/ekkis/dev/eos/x.cpp.
abigen error

these are useful flags as they allow me to check for preprocessor-generated code, but now it's broken

Confirmed seeing this on 1.6.2

Confirmed seeing this also in Linux built apt version

I also meet the same problem,on OS X, I can compile with:
eosio-cpp hello.cpp -o hello.wasm

But I want to view macro extened by preprocessor with option -E:
eosio-cpp -E hello.cpp

error reported with:
/Users/fospring/work/cpp/src/github.com/EOSIO/test_contract/hello/hello.cpp:1:10: fatal error:
      'eosiolib/eosio.hpp' file not found
#include <eosiolib/eosio.hpp>
         ^~~~~~~~~~~~~~~~~~~~
Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action <hi> does not have a ricardian contract
1 error generated.
Error while processing /Users/fospring/work/cpp/src/github.com/EOSIO/test_contract/hello/hello.cpp.
abigen error


When a transaction encounters exceptional situation

1、rsmc，Alice add a tx，but Bob offline suddenly，then，how dose obd deal with this rsmc tx? Discard it or try it later?
2、

if the counterparty shuts down, my node should detect this event by ping-pong, and remove the tx.

or another option is to enable user manually delete a failed message. OBD should tell its owner that the counterparty stops responding and the messages fails.


Shorter spam prevention delay for eztrans?

Unlike other translators, eztrans is not a server-depended.
so, eztrans can handle many texts with fast speed with minimal memory without worry about spamming http requests.
Putting a delay into eztrans tarnishes its advantages.
some peoples already made patch making delay to 0.01seconds, and it dosen't hardly effect the memory at all.
could you shorten delay for eztrans to 0.01 seconds?

I can change it to 0.1 second, since I added an option for that to support SUGOI translator.
Here's a version with the change.
ezTransXP.zip


Logging custom objects

If I can make a suggestion - it is rather useful to have a version of the logging methods with this signature and implementation:
        public static void Debug<T>(this ILog logger, T message)
        {
            if (logger.IsDebugEnabled())
            {
                logger.Log(LogLevel.Debug, message?.ToString().AsFunc());
            }
        }

This allows logging of custom objects without boxing / allocating a closure / allocating a delegate / unnecessarily executing ToString() if the log isn't enabled.
I find it is also nice to have some overloads for the methods with params object[] parameters for calls with less than a few params to avoid the array allocation in those cases.
For most cases this won't be significant of course, but those allocations can really add up with tracing level calls.

For the first idea: you can implement this by writing your own extension method:
public static class LogExtensions
{
    public static void Debug<T>(this ILog log, T message)
    {
        log.Debug(() => message?.ToString());
    }
}

This feature would be super useful. We have some custom hooks which fill in some additional metadata depending on the type of message, so sending some object through to the logging library would help us a lot,
I had a look at the logging libraries that LibLog currently supports and it seems like all of them accept either object or have a generic function like Debug<T>(T message) to get any type of message logged.

In light of #270 , closing this.


dev-cmd/pr-upload: some refactoring

make the description more generic/correct
use "internet archive" over "archive"
move some logic to a new GitHubReleases class (for consistency)
remove some obvious comments
extract out and move some constants

Review period ended.


Changing page type from Elemental to non-Elemental causes onBeforeWrite error

When you extend something other than Page with Elemental (eg PageWithPanels) and you try to change from PageWithPanels to another class without Elemental (eg RedirectorPage, or Page) the onBeforeWrite function in ElementPageExtension throws an error when it tries to access $this->owner->ElementArea()
Steps to reproduce:
Make a class that extends Elemental that is not Page
Make a page of that class in the sitetree
Save
Change the page type to a non-elemental class (Page) and save.
The onBeforeWrite function the errors at line 196 of ElementPageExtension.php
The onBeforeWrite needs to handle changes to the page class and interrogate the new class whether it supports Elemental not just $this->supportsElemental()

Hi @scttw, can you please provide the version of SS CMS and Elemental that you're using?

SS 3.6.5 and Elemental 1.9.0

Thanks

PR submitted for this: https://github.com/dnadesign/silverstripe-elemental/pull/204

Fixed with #204


[Feature Request] KV and Transit mount paths need to be configurable

🚀 Feature Request
The Vault paths used by safety-rules for KV and Transit engines need to be configurable, they are arbitrarily configurable on the Vault side.

Fair enough. Priority? What will this enable?


scripts/lock: Script for locking lab servers

Introduce a 'lock' command for synchronizing tests on lab servers.
Users would use lock when they are running a command that is likely to conflict with other users e.g. a snabb process that accesses PCI devices or a long running test.
The script can be used for a single command:
  lock sudo ./snabb ...
  lock sudo ./mytestscript

Or to start a shell that holds the lock (1h idle timeout):
  lock
  $

The user will see a message like this when the script starts:
locking /var/lock/lab.. flock: getting lock took 1.570173 seconds

... which could potentially be logged and analyzed to see the pattern of how often commands are blocked and for how long on each server (one day...).
This script would need to be used in a consistent and disciplined way by all users of a given machine to be effective.

That's an extremely coarse lock - I think a common use case is to only need one or two cards, and not be doing benchmarking.

@kbara The best is the enemy of the good. I have been pondering for several years how to make a script like this with finer granularity and never arrived at a solution.
I see this script as potentially boosting the useful capacity of the lab by an order of magnitude. That is because I believe that our servers are actually used less than 10% of the time (while at least one snabb process is running) while they are nominally used nearly 100% of the time (while somebody has their name associated with them).
This is also part of my thinking with acquiring more smaller servers for the lab. If we have 10 machines then taking a machine-wide mutex is not such a big deal compared with e.g. everybody working on chur at the same time.

Further thought: We could use isolcpus to reserve the majority of the CPU cores and insist that people only use these cores while they are holding the lock. Then background processes (emacs, make, git, nix-env, etc) should not disrupt ongoing test runs.

Fair; it seems worth a try.

(Can be that this script really belongs in the snabblab/snabblab-nixos repository together with machine init code to create /var/lock/snabb with suitable permissions. I could send this script there in a new PR if nobody shoots it down here first.)

That does sound like a better place.

I actually wouldn't mind to have this in scripts/. Either way, knowing how long @lukego has been thinking about this I am pleased to think we have found a manageable solution. :-)
In danger of loosing focus and simplicity I have to voice a feature request: Could we add an optional PCI argument? Usually I just want to know if a given PCI address is free, because I want to test functionality and not necessarily performance. So when you want you want to do a CPU intensive  test you could lock a whole server (which would fail if I had locked a single PCI adress), but two people could still lock XYZ at the same time (which would fail if someone else did lock first).

@eugeneia I would suggest that we consider this as a future extension if and when it becomes a practical problem that people are waiting too long for their tests to acquire locks. Then we can consider making the locking more sophisticated vs other alternatives like acquiring more hardware.
Goal here is to solve the problem of everybody wanting to work on a separate machine for fear of colliding with each others' tests. I suspect this is costing us most of our effective lab capacity.

Note: These days our new servers (lugano model) only have a small number of CPU cores and PCI cards. On these it is not so wasteful to lock a whole machine. This is the environment I have in mind for most people's day-to-day development and testing.
You might say that the new servers have been chosen to make this script easy to write and use. (Or in other words to make the lab resources easier to partition and share.)
The situation is more complex e.g. on a large server with a lot of resources e.g. 24 cores and 20x10G on Grindelwald. However if we would reserve these beasts for testing highly parallel workloads then again it becomes reasonable to use machine-wide locks on them.
@eugeneia I suppose you are thinking in terms of davos and chur that have about 10 different models of network cards installed. These machines could indeed support many people doing independent driver development at the same time with fine-grained locks. Perhaps we will want to improve on this script's workflow for those machines.
For now I would be happy with the modest goal of optimizing utilization of the lugano servers.

I think its reasonable to incrementally extend this script when the need arises. So should I merge this or is this PR obsoleted by https://github.com/snabblab/snabblab-nixos/issues/20 and can be closed?

Closing. I reckon this script belongs in the snabblab repo and hopefully @domenkozar and cherry pick the source from here.


koa2- remove

Hi, I'm asking for your code.
I saw that you use koa2 is a great framework, but it is only used in the authentication/login phase.
To improve the performance and make the code more homogeneous, I would use only socket.io
So it's better to remove koa2 and use socket.io also for registration and login.
What do you think about it?

Hi, I'm asking for your code.
I saw that you use koa2 is a great framework, but it is only used in the authentication/login phase.
To improve the performance and make the code more homogeneous, I would use only socket.io
So it's better to remove koa2 and use socket.io also for registration and login.
What do you think about it?

Hi, @ciaoamigo .  I think using socket.io in authentication/login/register worries me about the performance because socket.io will take long connection. And in these scenarios, the long connection is not necessary but increasing the server pressure. So I decided to start the long connection by socket.io after the user logs in. It is just my personal opinion, welcome to discuss. 😃

Sure. But just connect via socket only when:

When I log in
When I register.
This makes the application homogeneous with the following advantages:

all connections to the backend come only via socket;
easier to create a sdk-client to use with both react.js and react-native
simpler maintenance as less technology is used;
etc.

Sure. But just connect via socket only when:

When I log in
When I register.
This makes the application homogeneous with the following advantages:

all connections to the backend come only via socket;
easier to create a sdk-client to use with both react.js and react-native
simpler maintenance as less technology is used;
etc.

Good idea.👍
I got it.  Init to connect socket and emit request when the user clicks the button to log in or register.  I will refactor it in the future. Thank you very much.
If you are interested in it, welcome to develop this project together. 😄

Hi, @ciaoamigo. I am going to refactor the part where we talk about. But I find that If I use socket.io instead of the HTTP request When the user clicks the register button but fails, at this time the server has to keep connect to client(long connect, needless performance loss) because the user maybe tries against after a period of time.  What do you think about?


(Date)Time Range Picker

Feature Description
A date/time range picker instead of just the date range picker we have now.
(I see how you implemented the current date picker and realize this is not trivial, but I wanted to add this in here in case you were considering switching to a different one at one point, so that you may included it in the 'requirements' if deemed useful)
Goal of Feature
Make it easier for our users to select specific time ranges.
Current Solution / Workarounds
Use custom Svelte components to obtain the functionality I need. That works, it's just cumbersome.
Alternatives
'Drag to zoom' selection on the charts themselves can provide a partial workaround, but that is also not a support feature atm :-)

Would you expect this as an option in the DateRange picker, or as a distinct component?


Fixing some typos

Hey @raphamorim
just fixing two typos
Cheers!

Thanks @spekulatius

No worries, happy to help out!


Observable/stream support?

I'm sorry if it's not the right place to ask this question. Are there any plans to add Observable and/or Stream support like the old Orbit had? I would really love to use Orbit 2 for my app, but I rely on that kind of functionality.

I Same need Observable/stream support
Are there any plans to add Observable and/or Stream support like the old Orbit had?


Add terms to occurrence status

Mapped some terms to occurrenceStatus, especially to do with Vespa valutina.
blocked by #114 until it's clear why some records were removed.

This PR is not actually blocked


MDM2009 duplicate type error when using a grandchild reference

Scenario: creating a CppWinRT app "App" with two WinRT components "B" and "C" with the following dependencies/references:

App references B and C
B references C

B will copy C.winmd to its output directory since it's a dependency.  App will pass B and C's output directories as metadata directories to mdmerge since they are dependencies.  However, because C.winmd is present in both B and C's output directories, App's mdmerge will fail because it detects duplicate types in the two C.winmds it evaluates.

Any fix in sight ? A show stopper for real world cppwinrt apps. This important issue was raised 6 months back (#318, #454), . MS folks closed it without any reason. Is MS (all related teams in MS) serious about supporting c++ and xaml ?

The msbuild support is a volunteer effort at this stage. @jlaanstra is doing most of that volunteering and hopefully he can get to this one at some point. As a workaround, you can always call midlrt, mdmerge, and cppwinrt from pre and post build steps. That's what I typically do and it works reliably. It's harder to set up, but more complex C++/WinRT projects tend to do just that. You can also restructure your project to avoid the dependency graph issues above. As for C++ and Xaml, I don't think that's going to be practical until C++ supports reflection and can produce the metadata that the Xaml toolchain requires. Again, it can be done manually but it is hard. The Xaml framework itself is built that way. https://github.com/Microsoft/microsoft-ui-xaml

Kenny, thanks for your response. I am not convinced by your arguments. One app referencing a DLL and that in turn referencing another DLL ? Complicated ? We have total broken tool chain even for the simplest of the use cases. MS teams don't seem to get their collective act together. This doesn't require 'reflection' etc. I don't think any body in MS is seriously using cppwinrt with the delivered and publicly available toolset. This is in sane - after how many years of winrt/UWP/Xaml - we can't seem to develop simple apps in c++.

can also restructure your project to avoid the dependency graph
I am not sure the issue is being genuinely understood.  Your suggestion is not possible. This is the same guidance I got one year back. One app and one control library reference standard Win2D package ? how will you break transitiveness ?

You're preaching to the choir. I realize the we have problems (darkness, xaml) and I continue to champion those within Microsoft, but there's only so much I can do.

I don't think any body in MS is seriously using cppwinrt the inbox/publicly available toolset.

That's not entirely true. There are a few heavily used MS apps that use both C++/WinRT and its build support. There are also many many top apps for Windows that use C++/WinRT (with or without build support) including many Windows and Office apps, Adobe products, Spotify, and much more.
So yes, Visual Studio integration continues to be a sore point and developing "simple" apps with C++ may not be that practical but investing in large scale development with C++/WinRT has certainly been very successful for many professional developers.

Others may using this for non-Xaml work effectively or simpler single DLL situations like Microsoft.UI.Xaml. . For Xaml apps, we a long way to go. This particular issue is not build tool issue. I have tried various complicated Msbuild scriptis to intercept midlrt - but was fighting against a conceptual problem in mdmerge. There is a fundamental arch issue with midlrt/mdmerge. Can only be fixed by fixing midlrt/mdmerge. Would be glad to help - but these tools are not open source.

Yes, midlrt and mdmerge have many problems. I'm working very hard to make those tools unnecessary in the future, but that's another story. 😉

This is something that needs to be addressed in mdmerge.exe which ships as part of the Windows SDK. As a workaround you can use:
<ItemDefinitionGroup>
    <Reference>
        <Private Condition="'$(ConfigurationType)' != 'Application'">false</Private>
    </Reference>
</ItemDefinitionGroup>

Thanks for a potential approach. I assume this goes in project B's project reference to C ? Let me try this. The challenge is Win2D is referenced by a nuget install via Win2D.uwp.targets. So there is no direct reference in project B.

@mediabuff the above simply changes the default for all items in the Reference itemgroup, so as long as Win2D doesn't explicity set it to true (which it shouldn't), this should work correctly.

Closing this issue as it is outside the scope of the C++/WinRT project and the fix Johan has been working on is not part of C++/WinRT.

fix Johan has been working on is not part of C++/WinRT.
Where is this being tracked ? Hope MS doesn't drop this once again.

how to resolve by manual?


org.openqa.selenium.InvalidArgumentException: Requested environment is not available

Hi Guys, I tried to launch selenoid  tests on windows machine withcontainers, using selenoid . I have following browsers.json:
{     "chrome": {         "default": "100.0",         "versions": {             "100.0": {                 "image": "selenoid/vnc_chrome:100.0",                 "port": "4444",                 "path": "/",                 "tmpfs": {                     "/tmp": "size=128m"                 }             },             "84.0": {                 "image": "selenoid/vnc_chrome:84.0",                 "port": "4444",                 "path": "/",                 "tmpfs": {                     "/tmp": "size=128m"                 }             }         }     },     "firefox": {         "default": "77.0",         "versions": {             "77.0": {                 "image": "selenoid/vnc_firefox:77.0",                 "port": "4444",                 "path": "/wd/hub",                 "tmpfs": {                     "/tmp": "size=128m"                 }             },             "78.0": {                 "image": "selenoid/vnc_firefox:78.0",                 "port": "4444",                 "path": "/wd/hub",                 "tmpfs": {                     "/tmp": "size=128m"                 }             }         }     } }
ran the command docker run -d --name selenoid -p 4444:4444 -v //var/run/docker.sock:/var/run/docker.sock -v ${current}/config/:/etc/selenoid/:ro -v /c/Users/test/selenoid/video/:/opt/selenoid/video/ -e OVERRIDE_VIDEO_OUTPUT_DIR=/c/Users/test/selenoid/video/ aerokube/selenoid:latest
and got the logs as below:
2022/04/26 15:26:32 [-] [INIT] [Loading configuration files...]
2022/04/26 15:26:32 [-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
2022/04/26 15:26:32 [-] [INIT] [Video Dir: /opt/selenoid/video]
2022/04/26 15:26:32 [-] [INIT] [Your Docker API version is 1.41]
2022/04/26 15:26:32 [-] [INIT] [Timezone: UTC]
2022/04/26 15:26:32 [-] [INIT] [Listening on :4444]
my sample test code:
`public class TestPg {
@Test
public void test2() throws InterruptedException, MalformedURLException {
    DesiredCapabilities dc=new DesiredCapabilities();
    dc.setBrowserName("chrome");
    dc.setVersion("100.0");
    WebDriver driver=new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),dc);
    driver.get("https://www.google.in");
    System.out.println(driver.getTitle());
    Thread.sleep(100000);
    driver.quit();
}

}
`
once the test is triggered from intellij it throws the error Requested environment is not available. Am I missing any steps. Please advise.

@aravindraveendran7 make sure you are editing correct browsers.json file. It seems that you don't have Chrome 100.0 in really used browsers.json.

Could you please elaborate more.. as i could see selenoid/vnc_chrome:100.0 in my browsers.json..

@aravindraveendran7 e.g. docker exec selenoid cat /etc/browsers.json.

closing the thread as the issue was with the power shell command ($current = $PWD -replace "\", "/" -replace "C", "c") where during each run this was not ran.Thank you @vania-pooh  for the support


Error boot execution git not found

Ok noted, i will update it as soon as possible

Please update your job

good job


Auto-save in new Item Submission form breaks the form

Start creating new Item in collection "Books"
Enter Author manually : "John Doe"
Enter Title "QWERTY123"
Switch to next field - auto save happens as Title is marked as save-on-change field
Author values get cleared out !!
BUG
Fill in all the mandatory fields in all the sections of create form and lastly fill the author fields again
The first section "Describe" is still marked as not complete/with errors
BUG
Deposit button is enabled and can be pressed - press that
pop-up message appears about error in Deposit process
error response in Network tab says :

{"timestamp":"2020-08-13T07:11:41.940+0000","status":422,"error":"Unprocessable Entity","message":"Unprocessable or invalid entity","trace":"org.dspace.app.rest.exception.UnprocessableEntityException: Start workflow failed due to validation error on workspaceitem 	at org.dspace.app.rest.submit.SubmissionService.createWorkflowItem(SubmissionService.java:243) 	at org.dspace.app.rest.repository.WorkflowItemRestRepository.createAndReturn(WorkflowItemRestRepository.java:173) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.base/java.lang.reflect.Method.invoke(Method.java:566) 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) 	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:774) 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) 	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) 	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) 	at org.dspace.app.rest.repository.WorkflowItemRestRepository$$EnhancerBySpringCGLIB$$5dbf8ba7.createAndReturn(<generated>) 	at org.dspace.app.rest.repository.DSpaceRestRepository.createAndReturn(DSpaceRestRepository.java:306) 	at org.dspace.app.rest.repository.DSpaceRestRepository$$FastClassBySpringCGLIB$$615525f9.invoke(<generated>) 	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) 	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) 	at org.dspace.app.rest.repository.WorkflowItemRestRepository$$EnhancerBySpringCGLIB$$5dbf8ba7.createAndReturn(<generated>) 	at org.dspace.app.rest.RestResourceController.postUriListInternal(RestResourceController.java:460) 	at org.dspace.app.rest.RestResourceController.postWithUriListContentType(RestResourceController.java:405) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.base/java.lang.reflect.Method.invoke(Method.java:566) 	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) 	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) 	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) 	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879) 	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793) 	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) 	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) 	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.dspace.app.rest.filter.DSpaceRequestContextFilter.doFilter(DSpaceRequestContextFilter.java:45) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.dspace.app.rest.filter.ContentLanguageHeaderResponseFilter.doFilter(ContentLanguageHeaderResponseFilter.java:51) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:84) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) 	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) 	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.dspace.app.rest.security.AnonymousAdditionalAuthorizationFilter.doFilterInternal(AnonymousAdditionalAuthorizationFilter.java:66) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.dspace.app.rest.security.StatelessAuthenticationFilter.doFilterInternal(StatelessAuthenticationFilter.java:101) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:92) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) 	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) 	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) 	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) 	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) 	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:128) 	at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66) 	at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:103) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:121) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) 	at org.apache.catalina.valves.CrawlerSessionManagerValve.invoke(CrawlerSessionManagerValve.java:235) 	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688) 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) 	at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:415) 	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) 	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) 	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639) 	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 	at java.base/java.lang.Thread.run(Thread.java:834)

Other issues with auto-save as mentioned in the meeting on Oct. 1st:

If you're halfway through typing something when an auto-save occurs, the field you were typing in will lose focus (meaning you have to click it again to resume typing), and what you were typing was gone. You can replicate this on demo by typing something in a non-repeatable, clicking another non-repeatable filed (or using the tab key to quickly switch to it) and immediately starting to type again. The reason for this is that when the response comes back from the server after a PATCH, the entire submission form is re-rendered using data from the server. So the input instance you were typing in doesn't exist anymore after that re-render.
To solve this we also shouldn't simply save the half-typed value as metadata for that field, because for an authority controlled or entity field, what you're typing might be a query to search for an authority/entity or it might be a plain metadata value, we can't know (as noted in my comment on #864). We don't want people to have to manually remove queries from the list of metadata values because of auto-save.
When an auto-save occurs all required fields will get a red border, even if the user hasn't interacted with them yet. The standard way of dealing with this is to add a "touched" attribute or class to a field when the user first interacts with it, and only show errors for fields with that attribute/class.
When an auto-save occurs you get the notification "save successful" every time, and usually: “there are incomplete sections". This is too obtrusive in my opinion. Unless the user manually saves, a small little span saying 'saved n seconds ago' somewhere close to the save button would be better, if we even need that. The github editor in which I'm typing this for example, auto-saves without any notification.

To solve these issues I think we should:

Stop autosaving on a timer, instead auto-save whenever a field loses focus
Don't re-render the form when a server response comes in if any field is currently in focus, only when a field loses focus.

this could still mean we lose the tabindex, meaning if you switch fields by using the tab button (something required for a lot accessibility use cases) you could lose your place when the autosave happens
To counter that we could debounce the re-render, so it could only happen if no field was focused for e.g. half a second.

Add a "touched" property to all submission fields, that gets set to true when the user first interacts with a field

Ideally both on the backend and the UI (that way it would be saved across sessions), but only in the UI would still be a major improvement if it proves too much work

Only show popup notifications after manually saving. Show a small unobtrusive message near the save button saying: "saved n seconds ago" that gets updated by both manual and auto-saves. If an auto save triggers an error or a warning, don't show it. Do update touched fields with the error style and message. If a manual save triggers an error or warning, use the same popup notifications we do now.
Store values typed in the top row of a repeatable field on the client but not the server. Whenever the form is re-rendered, check whether there was something typed in the field before and reinstate it if it was.
Replace '+' on the button with the word 'Add', and ensure it is always right next to the input, to make it more clear that it will add the current value, rather than add another empty field below.
All of this can be done in an estimated 40 hours

Our proposal to try to solve problems are :

add a configuration to eventually disable autosave on a timer, in the way institution can choose if use this functionality or not
add a mechanism to detect conflicts between server state of the form and client state, and eventually re-render the form only if is necessary. Additional info can come from the server in case of automatic enrichment via extraction with identifiers or even for competitor edits. The rules that defined when a re-render is necessary are:

If the field has not been touched in the form after autosave wins the server state and form is re-rendered

If the field has been touched, you have saved the initial post-autosave state, if the server sends you back the same state the client wins and the form is not re-rendered

if the server reports a different status, it reports a conflict and form is re-rendered (by default it keeps what is on the client)

If a new autosave starts or the user ignores the conflicts, the client status will be maintained by adding only the additional information received from the server that was never touched by the client.

an additional property could be added to the submission state, that keep track the focus on a field, so it should be easily restored it after

Only show popup notifications after manually saving. Show a small unobtrusive message near the save button saying: "saved n seconds ago" that gets updated by both manual and auto-saves. If an auto save triggers an error or a warning, don't show it. Do update touched fields with the error style and message. If a manual save triggers an error or warning, use the same popup notifications we do now.

we agree with this proposal

Store values typed in the top row of a repeatable field on the client but not the server. Whenever the form is re-rendered, check whether there was something typed in the field before and reinstate it if it was.
Replace '+' on the button with the word 'Add', and ensure it is always right next to the input, to make it more clear that it will add the current value, rather than add another empty field below.

See  more detail on https://github.com/DSpace/dspace-angular/issues/864
Estimation for this is about 40 hours.

In today's meeting, we discussed the two proposals above.  We've decided to limit the scope of this ticket to client side changes only, and therefore are going with the approach suggested by @artlowel above (copied here for reference, with a few minor notes inline).

Stop autosaving on a timer, instead auto-save whenever a field loses focus

We noted today that this change is potentially optional.  Once all other changes below are made, the auto-save on a timer would be much less distruptive to the submitter.  Therefore, we could (as suggested by @atarix83) allow for the timer to remain, with an option to disable it.

Don't re-render the form when a server response comes in if any field is currently in focus, only when a field loses focus.

this could still mean we lose the tabindex, meaning if you switch fields by using the tab button (something required for a lot accessibility use cases) you could lose your place when the autosave happens
To counter that we could debounce the re-render, so it could only happen if no field was focused for e.g. half a second.

Add a "touched" property to all submission fields, that gets set to true when the user first interacts with a field
Ideally both on the backend and the UI (that way it would be saved across sessions), but only in the UI would still be a major improvement if it proves too much work

As noted in today's meeting, this change would be limited to the client side, as the primary goal of this "touched" property is simply to tell whether to put a red outline around a required field.  If that required field is not yet touched, then no red outline is needed.  If the required field was touched, but no value is entered, then a red outline should appear.

Only show popup notifications after manually saving. Show a small unobtrusive message near the save button saying: "saved n seconds ago" that gets updated by both manual and auto-saves. If an auto save triggers an error or a warning, don't show it.
Do update touched fields with the error style and message. If a manual save triggers an error or warning, use the same popup notifications we do now.
Store values typed in the top row of a repeatable field on the client but not the server. Whenever the form is re-rendered, check whether there was something typed in the field before and reinstate it if it was.
Replace '+' on the button with the word 'Add', and ensure it is always right next to the input, to make it more clear that it will add the current value, rather than add another empty field below.

As noted in today's meeting, changing this field to an Add would exactly match the behavior of the DSpace 6 XMLUI.  In the DSpace 6 XMLUI, repeatable fields have an "Add" button and you must press it to save the value.  Obviously, in a future 7.x release we may be able to improve this default behavior, but it's "good enough" for now.
The original estimate of 40 hours will be kept, as we've limited this ticket to UI level changes only.
Tasks moved to other tickets:

Because this ticket is limited to UI changes only, we may want to temporarily disable or rethink "automatic enrichment via extraction with identifiers".  A separate ticket will be created and linked here when ready.
@atarix83's proposal of comparing changes on server & UI may be worth revisiting after 7.0, as it might prove to be a better solution long term. However, we've delayed this work, as it's unclear (currently) which scenarios may require this sort of detailed check & how to resolve conflicts that arise. A separate ticket will be created and linked here when ready.

@tdonohue we are available to work on this, for us is ok even if other community members carry on this issue, if a pull request will be ready within two weeks.
Please let us know, we are ready to start development next Monday.
Thanks

@corrad82-4s : That sounds fine. I've assigned this to your for your team to start work on & moved it to the "in progress" column.
NOTE for the 4Science team (@abollini , @atarix83 ): please be aware that I still consider #787 to be the highest priority of all tasks assigned to your team.  So, while you are welcome to work on this #835 ticket in parallel to the Angular 10 upgrade, please do not remove resources from the Angular 10 upgrade in order to work on this ticket.


why a fork?

There are a few features I wanted from tcell that the original doesn't provide, so I implemented them here. Namely, bracketed paste, events defined by custom escape sequences, and sending escape sequences to the user.


Add in scripts to run initial migrations on Docker deployment

Add in scripts to run initial migrations on Docker deployment

Added to migration Alembic version file in #9.  Now runs as part of the core migrations they are associated with.  Moving forward, after auto-generation of key migration, append stored procedure scripts to available migration or create an empty migration to add in any added or changed objects.


Zscaler corporate proxy companion app is not working with wakatime

Hi, i have issue with current version of Wakatime client app - it can't get thru corporate proxy.
The proxy is running on http://localhost:9000 and other programs seem to respect this setting, however WakaTime replies as follows:
{"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-08-26T09:45:14+02:00","version":"v1.54.0"}
{"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"warning","message":"failed to send diagnostics: failed to send diagnostics to the API: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https://api.wakatime.com/api/v1/plugins/errors\": proxyconnect tcp: dial tcp :0: connectex: The requested address is not valid in its context.","now":"2022-08-26T09:45:14+02:00","version":"v1.54.0"}

I'm not sure if you are verifying somehow the proxy address in the new version, but it's not working as it should. It was working with python version.
Issue is remotely related to https://github.com/wakatime/jetbrains-wakatime/issues/127 but this time i checked deeper - trying the cli.

Hi @mt3o
It doesn't auto-detect proxy settings from the machine. Please try setting up proxy into your ~/.wakatime.cfg file. For more information on how to do please refer to proxy here.

Hi @gandarez
Of course the ~/.wakatime.cfg file has the proper line regarding the proxy. At least the same value that lets wget do to its job.
I tried all sorts of setups, pointing to either zscaler companion app, listening on port 9000 on localhost, or company gateway.
I tried also setting it by inline argument --proxy for wakatime-cli.
Here is what I get at best:
"AppData\Roaming\WakaTime\wakatime-cli\wakatime-cli.exe" --proxy http://localhost:9000 --log-to-stdout --verbose --sync-offline-activity 1000
INFO 2022/08/29 08:46:19 attempting to merge in config file
INFO 2022/08/29 08:46:19 attempting to merge in config file
INFO 2022/08/29 08:46:19 attempting to merge in config file
INFO 2022/08/29 08:46:19 attempting to merge in config file
{"caller":"cmd/run.go:111","func":"cmd.Run","level":"debug","message":"command: sync-offline-activity","now":"2022-08-29T08:46:19+02:00","version":"v1.54.0"}
{"caller":"pkg/offline/offline.go:106","func":"offline.WithSync","level":"debug","message":"execute offline sync with file C:\\Users\\xxxx\\.wakatime.bdb","now":"2022-08-29T08:46:19+02:00","version":"v1.54.0"}
{"caller":"pkg/offline/offline.go:151","func":"offline.Sync","level":"debug","message":"send 25 heartbeats on sync run 1","now":"2022-08-29T08:46:19+02:00","version":"v1.54.0"}
{"caller":"pkg/apikey/apikey.go:31","func":"apikey.WithReplacing","level":"debug","message":"execute api key replacing","now":"2022-08-29T08:46:19+02:00","version":"v1.54.0"}
{"caller":"pkg/api/heartbeat.go:27","func":"api.(*Client)","level":"debug","message":"sending 25 heartbeat(s) to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk","now":"2022-08-29T08:46:19+02:00","version":"v1.54.0"}

...

{"caller":"cmd/run.go:270","func":"cmd.runCmd","level":"error","message":"failed to run command: offline sync failed: failed to sync offline heartbeats: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": read tcp [::1]:53718->[::1]:9000: wsarecv: An existing connection was forcibly closed by the remote host.","now":"2022-08-29T08:43:52+02:00","version":"v1.54.0"}
{"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-08-29T08:43:52+02:00","version":"v1.54.0"}
{"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"warning","message":"failed to send diagnostics: failed to send diagnostics to the API: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https://api.wakatime.com/api/v1/plugins/errors\": read tcp [::1]:53719->[::1]:9000: wsarecv: An existing connection was forcibly closed by the remote host.","now":"2022-08-29T08:43:52+02:00","version":"v1.54.0"}

or
"AppData\Roaming\WakaTime\wakatime-cli\wakatime-cli.exe" --proxy http://gateway.zscaler.net --log-to-stdout --verbose --sync-offline-activity 1000
INFO 2022/08/29 08:48:13 attempting to merge in config file
INFO 2022/08/29 08:48:13 attempting to merge in config file
INFO 2022/08/29 08:48:13 attempting to merge in config file
INFO 2022/08/29 08:48:13 attempting to merge in config file
{"caller":"cmd/run.go:111","func":"cmd.Run","level":"debug","message":"command: sync-offline-activity","now":"2022-08-29T08:48:13+02:00","version":"v1.54.0"}
{"caller":"pkg/offline/offline.go:106","func":"offline.WithSync","level":"debug","message":"execute offline sync with file C:\\Users\\xxxx\\.wakatime.bdb","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}
{"caller":"pkg/offline/offline.go:151","func":"offline.Sync","level":"debug","message":"send 25 heartbeats on sync run 1","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}
{"caller":"pkg/apikey/apikey.go:31","func":"apikey.WithReplacing","level":"debug","message":"execute api key replacing","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}
{"caller":"pkg/api/heartbeat.go:27","func":"api.(*Client)","level":"debug","message":"sending 25 heartbeat(s) to api at https://api.wakatime.com/api/v1/users/current/heartbeats.bulk","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}

...

{"caller":"cmd/run.go:270","func":"cmd.runCmd","level":"error","message":"failed to run command: offline sync failed: failed to sync offline heartbeats: failed making request to \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Post \"https://api.wakatime.com/api/v1/users/current/heartbeats.bulk\": Forbidden","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}
{"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}
{"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"warning","message":"failed to send diagnostics: failed to send diagnostics to the API: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https://api.wakatime.com/api/v1/plugins/errors\": Forbidden","now":"2022-08-29T08:48:14+02:00","version":"v1.54.0"}

Here is the ~/.wakatime.cfg:
[settings]
api_key = xxxx
proxy = localhost:9000
debug = true

status_bar_enabled = true

The messages from cli are a little different from what log tells when using intellij, but still there is no success in pushing the events.

Do you need authentication in order to use proxy? Try setting user and pass like so http://user:pass@localhost:9000.

@gandarez usual programs don't need authentication. If they do, explicit login form is being shown in the browser. However tools like npm, maven or just wget don't have problems when proxy is configured.
What brings issues - is ssl mismatch, as the proxy replaces certificates. Of couse i have no_ssl_verify = true in the config file.


AttributeError: 'NoneType' object has no attribute 'astype'

Hi @rohitgirdhar, I'm now trying to run the training code.
However, when I run this:
python launch.py -c configs/video/2d_best/01_R101_best_hungarian-4GPU.yaml
The error is like:
INFO train_net.py: 144: Outputs saved to: /mnt/data/xiangyiy/Repository/DetectAndTrack/outputs/configs/video/2d_best/01_R101_best_hungarian-4GPU.yaml/train/posetrack_v1.0_train/keypoint_rcnn
Traceback (most recent call last):
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/utils/coordinator.py", line 41, in stop_on_exception
    yield
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/roi_data/loader.py", line 209, in minibatch_loader2
    shared_readonly_dict, lock, mp_cur, mp_perm)
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/roi_data/loader.py", line 161, in _get_next_minibatch2
    blobs, valid = get_minibatch(minibatch_db)
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/roi_data/minibatch.py", line 56, in get_minibatch
    im_blob, im_scales = _get_image_blob(roidb)
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/roi_data/minibatch.py", line 84, in _get_image_blob
    im, cfg.PIXEL_MEANS, [target_size], cfg.TRAIN.MAX_SIZE)
  File "/mnt/data/xiangyiy/Repository/DetectAndTrack/lib/utils/blob.py", line 73, in prep_im_for_blob
    im = im.astype(np.float32, copy=False)
AttributeError: 'NoneType' object has no attribute 'astype'

Solved. This is because the net is feed by no img data. Just following the README.md to use tools/gen_posetrack_json.py and changing paths in lib/datasets/json_dataset.py would solve this.

@yanxiangyi How did you process data by tools/gen_posetrack_json.py? Why should not we use json files provided by the repo? TKS

Same with #34 . This is because the net is feed by no img data. Just following the README.md to use tools/gen_posetrack_json.py.
Your IM_DIR should be the directory to your renamed images. For me, it's
'posetrack_v1.0_train': {
        IM_DIR: 'lib/datasets/data/PoseTrack/posetrack_data/images_renamed/',
        ANN_FN: 'lib/datasets/lists/PoseTrack/v1.0/posetrack_train.json',
        # ANN_DN: 'lib/datasets/data/PoseTrackV1.0_Annots_train_json/',
    }

and so on so forth.


updating to RHEL 8

like on the eventing operator, going w/ latest UBI/RHEL 8

/cc @lberk
/cc @aliok

@lberk background info here, provided by @warrenvw
see: https://github.com/openshift-knative/knative-eventing-operator/pull/72

/close

this shizzle works only behind the firewall ?!?

/reopen


Expose CurrentOpacity on ISkiaDrawingContextImpl.

What does the pull request do?
As requested in #4886, exposes ISkiaDrawingContextImpl.CurrentOpacity to allow custom drawing operations to draw with the current skia opacity setting.
Fixed issues
Fixes #4886

You can test this PR using the following package version. 0.10.999-cibuild0020235-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


v1.3.0 - Include some directives: notify_master, notify_backup e noti…

This commit will add support for notify scripts into keepalived
Notify scripts by default will have no attributes but can be
changed by an override attribute.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

@diegobill these keywords are now supported in the new resource-driven v2 that is having the finishing touches put on it. closing this, but expect to see v2 ship soon!


RuntimeError: output with shape [768, 768, 1, 1] doesn't match the broadcast shape [768, 768, 768, 768]

이번에 데이터 size가 문제네요.
Traceback (most recent call last):
File "/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/train_Chorio.py", line 100, in
net.load_from(weights=np.load(config_vit.pretrained_path))
File "/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/networks/vit_seg_modeling.py", line 445, in load_from
unit.load_from(weights, n_block=uname)
File "/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/networks/vit_seg_modeling.py", line 218, in load_from
self.attn.query.weight.copy_(query_weight)
RuntimeError: output with shape [768, 768, 1, 1] doesn't match the broadcast shape [768, 768, 768, 768]

네 확인하겠습니다
2024년 3월 25일 (월) 13:02, SungHo Jung @.***>님이 작성:

이번에 데이터 size가 문제네요.
Traceback (most recent call last):
File
"/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/train_Chorio.py",
line 100, in
net.load_from(weights=np.load(config_vit.pretrained_path))
File
"/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/networks/vit_seg_modeling.py",
line 445, in load_from
unit.load_from(weights, n_block=uname)
File
"/content/drive/MyDrive/Colab_Notebooks/OCT_code/TranSegnet-master/networks/vit_seg_modeling.py",
line 218, in load_from
self.attn.query.weight.copy_(query_weight)
RuntimeError: output with shape [768, 768, 1, 1] doesn't match the
broadcast shape [768, 768, 768, 768]
—
Reply to this email directly, view it on GitHub
https://github.com/hvy1seok/TranSegnet/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT7K5ZRL3E7OG552XNEFEPDYZ6OURAVCNFSM6AAAAABFGJVY5WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDIOBTGY3TGOI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


QR: transparent

How to set the background color to be transparent?
How do you set the size of the border?

Hi, please have a look at the wiki pages for Colorized-barcode and Quiet-Zones

Thinks


Module types not resolving correctly.

While looking for solutions to unique element ids in a NuxtJS 3 application, i came across this blog leading me to this project, which seems to do exactly what I need it to.
However, in version 0.1.7 i'm getting a typescript error for missing declaration file:

It appears that the types field in the package references a non-existing path, and this is the types location that is being picked up.

once i change the top level types value to match the nested value in exports['.'].types, the issue goes away:

Thanks for letting me know. Working on a fix.

I just released version 0.1.9 with the fix you found in place.
Thanks again.


Correct file loading issue in repeats demo notebook

Addresses #275.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   22.89%   22.89%
=======================================
  Files          21       21
  Lines         760      760
=======================================
  Hits          174      174
  Misses        586      586

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 d13eb08...6ab015d. Read the comment docs.

Woo! :+1:


test: update asyncapi.json files based on current state in the branch

Generate asyncapi.actual.json files by running in springwolf_examples folder:
../gradlew test --tests "**.ApiIntegrationTest" --continue

This is just to update the asyncapi.json files
Tests are expected to fail, but at least they are valid json files.
I think, we will review the json files at end for schema validity.
To me, it seemed that you change the files intentionally, and these are auto-generated by the test now. Feel free to decline this PR when this does not match your workflow


feat: add mint inside dropdown menu on wallet card header

✨ Fix #124
https://user-images.githubusercontent.com/2029172/169411709-e9d26d0a-9647-4bb5-8dec-b48d6b85a408.mov
Tasks

[x] Create a Popover component
[x] Add a numeric input on Mint for amount
[x] Add faucet action and mint inside dropdown menu on wallet card header
[x] General UI improvemets

@pedronauck the amount value on the mint page should be read-only mainly to avoid user to request millions

@pedronauck the amount value on the mint page should be read-only mainly to avoid user to request millions

maybe we can add a limit on this?

@pedronauck the amount value on the mint page should be read-only mainly to avoid user to request millions

maybe we can add a limit on this?

I think a max limit is ok, also was thinking that we could remove the parameter and set it hard coded on the contract

right, how much will be good to have as a limit?

right, how much will be good to have as a limit?

Let's limit to the previous amount 2000.000


When creating a new quest and assigning it to an NPC, Gui does not open.

What is your Quests version / build number (do not say "latest")?
4.4.0
Describe the problem and how to replicate it.
I edited an existing quest and changed the NPC it was assigned to (I also created a new one and had the same issues) and even after assigning a GUI item, It doesn't open the GUI as normal.
Any console errors to share?
None that I've noticed

If applicable, can you provide an example quest from quests.yml?
custom1:
    name: Shopping Spree!
    ask-message: accept this quest and travel to the shopping district!
    finish-message: Well done! Feel free to visit the shopping district at any time
      and even open your own shop!
    npc-giver-uuid: c595e3dc-8490-4506-9e58-c73b1f3ee9c2
    gui-display:
      ==: org.bukkit.inventory.ItemStack
      v: 2975
      type: EMERALD
    stages:
      ordered:
        '1':
          npc-uuids-to-talk-to:
          - 00b005e5-c2e2-4715-8a9a-c20c64930786
        '2':
          password-displays:
          - Visit each shop and look for the emeralds in the item frames. unscramble
            the letters to discover the 4 letter password
          password-phrases:
          - shop
          start-message: To complete the second stage of this quest, visit each shop
            and look for clues to uncover the password!
    rewards:
      commands:
      - token add <player> 200
    planner:
      override: false
    options:
      allow-commands: true
      allow-quitting: true
      ignore-silk-touch: true
      use-parties-plugin: true
      share-progress-level: 1
      same-quest-only: true
      share-distance: 0.0
      handle-offline-players: false

Thanks for the report. Are there any other quests attached to the NPC (and do they have GUI items set), or is it just the one?

same problem here
I am afraid to update quests to latest versions
not sure when did the npc giver npc id became  npc-giver-uuid, maybe the problem appears after this update, need to test test
(actually i am not sure why need to have npc-giver-uuid instead of npc-id , keeping npc id can ensure yml quests maker to make outside of game without knowing the npc uuid

Thanks for the report. Are there any other quests attached to the NPC (and do they have GUI items set), or is it just the one?

Tried replying in email but not usre it worked so replying here again.
Yes, multiple quest and im in the process of adding even more. each quest has a specicif gui item. before the latest update the gui would open no problem and i could select from a couple quests.

Hey @TheBlockForge and @hkkongou, would you be able to send your Citizens/saves.yml and Quests/quests.yml files (preferably using something like pastebin)?

Link to Saves.yml: https://pastebin.com/HKK0LPAx
Link to quests.yml: https://pastebin.com/1qGfE3FC
Let me know if there is anything else I can do to help

Link to Saves.yml: https://pastebin.com/HKK0LPAx Link to quests.yml: https://pastebin.com/1qGfE3FC
Let me know if there is anything else I can do to help

Thanks! I'm going to bed now so I'll take a look in a few hours after work.

Link to Saves.yml: https://pastebin.com/HKK0LPAx Link to quests.yml: https://pastebin.com/1qGfE3FC
Let me know if there is anything else I can do to help

Thanks! I'm going to bed now so I'll take a look in a few hours after work.

Awesome. Thanks guys. Really impressed with the quick responses and dedication you guys have with this plug in!

@TheBlockForge I've tried to reproduce the issue with your NPC and Quest configurations but everything seems to work as intended. What other plugins are you using on your Server? What server software (Paper, Spigot, Purpur, ..) and what version are you running? Is it possible for you to record a video that shows the issue?
In addition to that a server log would be useful. Please restart your server and try to open the gui. After doing that upload the logs/latest.log file to pastebin and send the link here. (Don't forget to censor any IPs)

Ill see what I can do. Bear with me because im new to all this kind of stuff.

 here are my plug ins. My best suspicions as far as plug in conflicts would be tokens plus. its a shitty currency plug in we implemented because i don't know what I'm doing too well yet and it was very easy to set up and implement.
Currently running paper, going to run updates this evening and get the latest version, but im not too far behind the current build. ITs a small server, just a handful fo friends mostly, so it should be empty this evening where i can do some testing on my end with a binary search of the plugins to determine if it is indeed a conflict

Ive been able to upload a video to youtube because i didnt know how else to do it lol
https://youtu.be/THCRdW-DT7o
Ill do a restart and send the logs this evening

I was finally able to replicate this on a fresh Paper 1.16.5 server. Steps as follows:
Paper https://papermc.io/api/v2/projects/paper/versions/1.16.5/builds/794/downloads/paper-1.16.5-794.jar
Quests https://ci.codemc.io/job/PikaMug/job/Quests/327/
Citizens https://ci.citizensnpcs.co/job/Citizens2/2505/
Only other plugins EssentialsX-2.19.1-dev+52-41861a8 and EssentialsXSpawn-2.19.1-dev+52-41861a8
Use /quests editor and add Start NPC to default Mob Hunter quest, save and run /qa reload. Clicking NPC does nothing. Going back and adding a GUI item display to the quest has no effect and does not open a GUI.

I was finally able to replicate this on a fresh Paper 1.16.5 server. Steps as follows:
Paper https://papermc.io/api/v2/projects/paper/versions/1.16.5/builds/794/downloads/paper-1.16.5-794.jar Quests https://ci.codemc.io/job/PikaMug/job/Quests/327/ Citizens https://ci.citizensnpcs.co/job/Citizens2/2505/ Only other plugins EssentialsX-2.19.1-dev+52-41861a8 and EssentialsXSpawn-2.19.1-dev+52-41861a8
Use /quests editor and add Start NPC to default Mob Hunter quest, save and run /qa reload. Clicking NPC does nothing. Going back and adding a GUI item display to the quest has no effect and does not open a GUI.

Just tried that and everything works as intended :D This is quite an interesting bug.

Nice! progress is good to hear. let me know if theres anything else i can do

@hkkongou @TheBlockForge Does deleting the QuestsGUI/gui folder to allow it to regenerate resolve the issue?

it does not seem to.

In your Quests/config.yml file, go ahead and set console-logging: 4. Then try https://ci.codemc.io/job/PikaMug/job/Quests/328/ and share all of the DEBUG information you get in the server console.

This build seemed to fix the issue. no debug info in the console3, and the gui is working again!!

Weird. The only change was adding debug output, which should certainly appear. Truly confounding.
Glad it's working for you, hopefully @hkkongou has similar luck.

@PikaMug uninstalling and reinstalling; the equivalent of turning it on and off again. A simple fix that should have been something i tried earlier!
Thank you for all of the help. this is the first and only plug in that ive had issues with that came with this level of customer service. 10/10!
Ill be in touch if the issue reoccurs.

Weird. The only change was adding debug output, which should certainly appear. Truly confounding.
Glad it's working for you, hopefully @hkkongou has similar luck.

can confirm #440 have no problem

I guess this is resolved then. Thanks all.

@PikaMug Thank you guys for responding and helping! 10/10 would report bugs again

@PikaMug Issue occured again with a different NPC. I backed up quests.yml and deleted the quests folder and jar and reinstalled it, allowed the quests folder to regenerate and then added my quests.yml file and it resolved the issue again. seems to occur after adding multiple quests to an NPC back to back.

Still unable to replicate. At this point I'm going to need exact steps on how to recreate this reliably. If you or anyone should across them, feel free to open a new ticket.


mousejiggler: Update to version 2.0.12

Update to 2.0 release.

Fixed properly in 2.0.12.

Fixed properly in 2.0.12.


Thoughts on creating a "StdConstants" contract?

Would you be open to a PR that separated the constants defined in CommonBase in a separate contract StdConstants, which CommonBase would then inherit from?

Hmm, what's the rationale for it? I would lean towards keeping constants in CommonBase to avoid over-abstracting things.
Currently all Std* contracts are independent of CommonBase, so this suggestion would also break that convention

Well, simply being able to inherit from StdConstants and make use of the constants defined in Foundry without also getting the vm and the stdstore variables. I can't do this currently because I'm using PRBTest.
Good point re convention, I didn't consider that.
I guess, I don't have a strong opinion here and the frankly copy-pasting the constants that I need is not a big chore, not at all, so I'm happy to close this as not planned if you can't think of any easy solution that would at the same not break the contract independence convention and would make it possible to re-use the constants in Test contract equivalents.

There are a few constants from CommonBase that wound up being implemented in Std* files like UINT256_MAX in StdUtils.sol. Some minor duplication to think about.

I want to bump this issue, but I think that StdConstants should be just a Solidity file with a bunch of free constants, not another contract.
This will simplify composition because the user won't need to complicate their inheritance tree just to access a few constants. It will enable massive constants deduplication in forge-std itself without introducing artificial dependencies between components. It will also enable usage of the constants in free functions e.g. to use VM cheatcodes. This is what actually inspired me to write this comment, as of now I need to use one of the specialized libraries to get the single VM address if I want to avoid hardcoding my own copy.

I do like the idea of having them as free constants. The main blocker there is forge-std currently supports as early as solidity 0.6.2, but I believe free functions (and presumably free constants) were not introduced until 0.7.x. I think we could add them as it's own file with it's own pragma, and because nothing in forge-std inherits or imports it, it shouldn't break the codebase of anyone on older versions, though I would want to confirm to be sure solidity doesn't end up compiling it for some reason
cc @klkvr for other thoughts or considerations

That's true, I am equally supportive of a library, which does have the nice side effect of free namespacing of the constants. My nit there would be to name it ForgeConstants since Constants is already a common lib name in projects

I agree that a library should be as flexible and non-intrusive as free constants. It will be usable in all kinds of functions, including library functions and free functions, and should be even usable in initialization of all kinds of constants.
I especially like that it will contain the namespace avoiding pollution. Writing something like import {MY_CONSTANT_1, MY_CONSTANT_2, <...>} from "forge-std/Constants.sol" would unavoidably reexport all the constants that happen to be used in the file causing spread of pollution and leakage of the implementation details. Packing the constants into a library will still pollute the namespace, but only with a single name of a single library, regardless of how many constants are actually needed.