Fix the CI build

The old build on TravisCI.org worked 5 years ago but TravisCI became a .com since then and they don't provide free plans anymore.
I tried a setting up a CI build with AppVeyor but it's failing atm. I can't see any errors in the AppVeyor log but when I run maven test locally on Windows, I get:
C:\Code\morpher-ws3-java-client>mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< ru.morpher:ws3.client >------------------------
[INFO] Building ws3.client 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.pom (10 kB at 12 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/maven-compiler-plugin-3.1.jar (43 kB at 114 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.pom (1.8 kB at 34 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/4/oss-parent-4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/4/oss-parent-4.pom (18 kB at 93 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/<IP_ADDRESS>/jackson-databind-<IP_ADDRESS>.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/<IP_ADDRESS>/jackson-databind-<IP_ADDRESS>.pom (15 kB at 184 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-base/2.12.6/jackson-base-2.12.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-base/2.12.6/jackson-base-2.12.6.pom (9.3 kB at 49 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.12.6/jackson-bom-2.12.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.12.6/jackson-bom-2.12.6.pom (17 kB at 51 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.12/jackson-parent-2.12.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-parent/2.12/jackson-parent-2.12.pom (7.5 kB at 29 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/41/oss-parent-41.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/41/oss-parent-41.pom (23 kB at 51 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.12.6/jackson-annotations-2.12.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.12.6/jackson-annotations-2.12.6.pom (6.0 kB at 27 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.12.6/jackson-core-2.12.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.12.6/jackson-core-2.12.6.pom (5.5 kB at 27 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom (12 kB at 30 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/35/commons-parent-35.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/35/commons-parent-35.pom (58 kB at 43 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/15/apache-15.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/15/apache-15.pom (15 kB at 39 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.12.6/jackson-core-2.12.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/<IP_ADDRESS>/jackson-databind-<IP_ADDRESS>.jar
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar (34 kB at 26 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar (284 kB at 24 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.12.6/jackson-core-2.12.6.jar (366 kB at 21 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/<IP_ADDRESS>/jackson-databind-<IP_ADDRESS>.jar (1.5 MB at 45 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ws3.client ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Code\morpher-ws3-java-client\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ws3.client ---
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom (865 B at 9.3 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom (3.6 kB at 32 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.pom (690 B at 8.6 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.pom (769 B at 7.2 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/2.2/plexus-compilers-2.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/2.2/plexus-compilers-2.2.pom (1.2 kB at 12 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.jar (25 kB at 158 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.jar (4.6 kB at 26 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.jar (19 kB at 48 kB/s)
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 37 source files to C:\Code\morpher-ws3-java-client\target\classes
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/RussianClient.java:[128,22] unmappable character for encoding Cp1251
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/RussianClient.java:[138,29] unmappable character for encoding Cp1251
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/CorrectionForms.java:[8,21] unmappable character for encoding Cp1251
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/DeclensionResult.java:[23,23] unmappable character for encoding Cp1251
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/DeclensionForms.java:[8,21] unmappable character for encoding Cp1251
[WARNING] /C:/Code/morpher-ws3-java-client/src/main/java/ru/morpher/ws3/russian/FullName.java:[8,21] unmappable character for encoding Cp1251
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ws3.client ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Code\morpher-ws3-java-client\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ws3.client ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1251, i.e. build is platform dependent!
[INFO] Compiling 8 source files to C:\Code\morpher-ws3-java-client\target\test-classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/communicator/HttpURLConnectionStub.java:[3,33] sun.net.www.protocol.http.HttpURLConnection is internal proprietary API and may be removed in a future release
[WARNING] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/communicator/HttpURLConnectionStub.java:[18,44] sun.net.www.protocol.http.HttpURLConnection is internal proprietary API and may be removed in a future release
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[65,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[120,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[122,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[166,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[168,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[213,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[221,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[343,33] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[352,33] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/communicator/HttpURLConnectionStub.java:[27,14] unreported exception java.io.IOException; must be caught or declared to be thrown
[INFO] 10 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  45.533 s
[INFO] Finished at: 2022-07-16T21:05:57+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project ws3.client: Compilation failure: Compilation failure:
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[65,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[120,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[122,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[166,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[168,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[213,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[221,25] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[343,33] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/russian/RussianClientTest.java:[352,33] unmappable character for encoding Cp1251
[ERROR] /C:/Code/morpher-ws3-java-client/src/test/java/ru/morpher/ws3/communicator/HttpURLConnectionStub.java:[27,14] unreported exception java.io.IOException; must be caught or declared to be thrown
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I checked the encoding of RussianClientTest.java and it was UTF-8. Not sure why it's thinking it is CP-1252.

Once fixed, the build should show unit test results and the overall status. Update the build status badge in README.md.


B2C sandbox creation

Hello Experts,
I am stuck with sfcc-ci auth:login is failing to authenticate using OAUTH2. What should be the value of SFCC_LOGIN_URL? I wonder if there is a step by step guide for the authentication steps to be followed before the Sandbox creation steps as outlined on the cheatsheet https://sfdc.co/sfcc-cli-cheatsheet
Thanks for your time.
Regards,
Suhel

@suhel1612 What exactly is failing? The SFCC_LOGIN_URL is meant to be the host name of the Account Manager. As Account Manager is multi-tenant, you don't need to adjust SFCC_LOGIN_URL as by default account.demandware.com is being used.
What steps are missing in the README.md and in the wiki?

@suhel1612 Is this still relevant or can we close it?

@suhel1612 Any final thoughts on the ticket you created or can we close this?

hi,
the ticket can be closed.... thnx
On Wed, Nov 16, 2022 at 10:43 AM Tobias Lohr @.***>
wrote:

@suhel1612 https://github.com/suhel1612 Any final thoughts on the
ticket you created or can we close this?
—
Reply to this email directly, view it on GitHub
https://github.com/SalesforceCommerceCloud/sfcc-ci/issues/202#issuecomment-1316785907,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN4YX5KBRSEZUKE524NGLWDWIS3GHANCNFSM4YI76JLA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update README.md file

Update readme file for better understanding of new coders of this project

For package.json, I think it is better to let the project has its initial installation as usual with the version of the current packages for a number of reasons;

Since you are going to install quasar globally, the quasar package in package.json is practically overridden by the global package (with a better version of quasar too).
Changing the default version for the application might lead to features breaking in any of the packages due to different versioning. Some might even still depending on old syntaxes.

We can wait for @iqbalbaharum to hop on the discussion. 😊


Help getting started - PDB API call failed, error code C1090

MS Visual Studio 2019 on x64 machine using latest version (pulled, submodules updated with --init --recursive). Every time it reports an error in a different LVGL source file (using LVGL.Windows instead LVGL.Core and LVGL.Examples). Any advice?

What about your Visual Studio 2019 version?
Maybe you can get help from https://developercommunity.visualstudio.com/t/fatal-error-c1090-pdb-api-call-failed-error-code-3/552999.

Thanks, found solution there: Under the C/C++ properties for the Project select 'Command Line' and add /FS under 'Additional Options'.


Teensy LC does not wake up from on digital interrupt

I am having a hard time getting my Teensy LC to wake up (using pins 21 or 22, pin to ground to wake). Using the sleep, deep sleep, and hibernate examples.
Maybe I'm missing something here. I load the example. Teensy goes to sleep/deepSleep/Hibernate.
I bring pin 21 (or 22) to ground.
Nothing.
Am I doing something bone-headed here? Seems like it should work.
Thanks

I just updated Snooze only deepSleep and hibernate work so far you can download here, let me know if you have any problems.

Thanks; I'll test and report back if there are issues.


Trying to add Binfinex exchange

Trying to add:
exchangeClass: info.bitrich.xchangestream.bitfinex.BitfinexStreamingExchange
Error reporting is:
Caused by: java.lang.ClassNotFoundException: info.bitrich.xchangestream.bitfinex.BitfinexStreamingExchange
But the xchange-stream-bitfinex-5.0.0.jar class is in the same path as the other JARS

Ignore this.
Got it working, not familiar with gradle


[Feature] Embed card - Allow footer to be collapsed

Description
Add the possibility to also collapse the footer on card embed.
Changes 📋

New embed param: footer_collapsible
Add private variable _collapsible_class to be more clear
Change use of _id only for the body id
Change button.action_collapsebutton target on class name instead of id

Preview
Openned

Before

After

How to use
{% embed<EMAIL_ADDRESS>with {collapsible : true, footer_collapsible : true} %}
    [...]
{% endembed %}

Types of changes

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

Checklist

[ ] I updated the documentation (see here)
[x] I agree that this code will be published under the MIT license

@kevinpapst I know you've said card was really a monster, but it's a must have feature.
And I think it's not too complex to implement it.

Hm, I never tried collapse on cards with footer.
I wonder if we should instead make that default behavior.
Is there a good use-case for only collapsing the body?
I mean, there certainly is, but what is the 80:20 rule here?
My gut feeling is that you want to collapse the entire card including the footer in 80% of the case, so we should make that default.
Why did you remove the ID?


suggestion-composer test workaround

fixes: https://github.com/PolymerLabs/arcs/issues/2523

PTAL


Don't allow setting a global if it was declared with a computable expression

Schema:
module default {
    global test := 'hello';
}

> set global test := 'world'; <--- this should error out, but it does not
OK

> select global test;
{'hello'}    <--- because this is confusing

We'll also want to test that it fails when trying to set it directly from a client, also. That might be either more or less gnarly.
See test_edgeql_globals_composite for a test where we set globals using the protocol


Bayesian Optimization documentation page

Hi! I think here the correct import is from emukit.core.initial_designs import RandomDesign, at least in the current version now as of pip install. Thanks,

Thanks! Also brought up in #310 . Fixed now


Exclude camel.* properties by default #30

Signed-off-by: Aurélien Pupier<EMAIL_ADDRESS>

Thanks @apupier !


download is 404

https://github.com/PurpRabbit/antidetect/releases/download/0.1.1/Antidetect.rar
can not be opened

Fixed


Allow property getter and setters to work with .extend

This enables computed properties like this.
export default Model.extend({
  account: belongsTo(),

  get parent() {
    return this.account;
  }
});

interesting. (Thanks for the contrib!)
Could you explain the use case here? Does this get serialized & sent across the network?
(I'm a little hesitant because this might affect the mental model around what belongs on the model. Traditionally it has just been "database" columns, i.e. the persisted fields and the foreign keys. Also, I'd like to move away from the extend module and to ES6 classes soon, but that's a separate issue.)

The use case is that I want to be able to define a property alias that references another property.
If you really want to emulate a relational database, getters could be a computer column while setters could be used to enforce validation constraints 😁
Of course, doing all this on plain es6 classes requires no changes.

On Dec 14, 2018, at 7:04 AM, Sam Selikoff<EMAIL_ADDRESS>wrote:
interesting. (Thanks for the contrib!)
Could you explain the use case here? Does this get serialized & sent across the network?
(I'm a little hesitant because this might affect the mental model around what belongs on the model. Traditionally it has just been "database" columns, i.e. the persisted fields and the foreign keys. Also, I'd like to move away from the extend module and to ES6 classes soon, but that's a separate issue.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

How do you use the alias? In your Mirage code, or does it get sent to your Ember app in any way?

Both actually. So our product’s relationship model is like a tree with 5 layers of hasMany. They reference each other by model name, but they can  also reference each other by parent / children alias. We have a generic search endpoint that can return anything in this tree by name and the endpoint must also return reference to the model’s parent id. If putting this as part of the serializer, it’ll quite a big stack of if else. So I got this idea of putting an alias on the model.

Closing this as stale. (We need an API for synthetic/derived attributes, I think it should be Resources.)


Change repositories naming convention to be consistent

Description
In our EddieJaoudeCommunity organization, we have many repositories where some use Pascal case and others use kebab-case. We could choose one naming convention and use that across all present and future repositories 😃.
Context
Being consistent with the naming convention was mentioned on this live stream. I searched on this repo's issues and discussions and didn't find something already opened for this topic.
What does everyone think about this and what naming convention should we adopt 😃?

I agree with kebab-case :)

I agree with kebab-case :)

thanks @BOLT04 for raising 👍 - yep I want to be consistent, not sure why I was not 🤦♂

thanks @BOLT04 for raising 👍 - yep I want to be consistent, not sure why I was not 🤦♂

I don't really understand what this is all about!

I don't really understand what this is all about!

I don't really understand what this is all about!

Hi @chryzcodez 😃, this issue was a question to see if the community agrees we should keep the repositories naming consistent. Meaning, we change this (current naming):

to this (kebab-case):

That is only an example, this issue is supposed to also decide which convention to choose.
Hope that clears your doubts.

ok, I get now, thanks @BOLT04
I feel that would be nice!

I think this can be done by the community members with special privileges and freedom.

I think it's best if Eddie or someone from the @EddieHubCommunity/coreteam does this, after the community agrees

I think kebab_case is fine
but some ppl here might like Camel case :P (looks at js people)

kebab-case is fine by me too 👍
Not sure if only @eddiejaoude has permissions to do this, but yeah let's agree on a convention first 😃

kebab-case is fine by me too 👍
Not sure if only @eddiejaoude has permissions to do this, but yeah let's agree on a convention first 😃

Yeah!

Thanks everyone 👍 - I will do this soon 🤓

Okay!

This is still on my to do list 🤓

@eddiejaoude a friendly reminder 🙈

Why do we even have stalebot, it makes important issues/hacktoberfest prs stale 🤔

Why do we even have stalebot, it makes important issues/hacktoberfest prs stale thinking

We need it. Because you are looking from the perspective of a contributor while the teams are looking from the maintainer's perspective. It would be really hard to get back to the issues which are not active for a long time. I agree that sometimes it marks important issues as stale but I guess there was discussion about the same in the community and they would be coming up with a different solution than removing it.

@eddiejaoude a friendly reminder 🙈

thanks @schmelto I need to do this asap 🤦♂

I really need to do this 🤦♂

No pressure (and get that green square), When will you do this? :smile:

perhaps we could mention this on the next live stream and do it live. It's a chance to learn for those who don't know how to do it 😃

Great idea @BOLT04 👍 I will do it on a live and show people how to update their git remotes too

No pressure (and get that green square), When will you do this? 😄

Do we get a 🟩 for this? 😅

Great idea @BOLT04 👍 I will do it on a live and show people how to update their git remotes too

Awesome!

This interesting.

Agree with kebab_case


installation error / npm i

I'm having problems installing!
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/animations
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@swimlane/ngx-charts
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\leona\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR!      C:\Users\leona\AppData\Local\npm-cache\_logs\2022-03-06T00_47_09_128Z-debug-0.log

are you still having this problem? I am with the same problem

I had this issue for a little while before realising that the freshly cloned project folder had set itself to Read Only. Check folder permissions and run install again

I solved my issue by deleting the node_modules directory and package-lock.json, then run command npm install.

I'd like to come back and say this issue is actually persisting, my initial suggestion of setting permissions did not fix the issue.
Deleting node_modules and package-lock does not fix the issue.
It's having peer dependency issues with smart table, karma-jasmine-html, jasmine-core, etc. When  you update each individual package that it complains about, the next package in the tree throws an error.

Solution is simple.. Clone the project Remove any node_modules Remove package-lock.json
npm install
And it's done.. @Aaron-Linkforce

Brand new clone this morning, and as soon as I remove package-lock and run install, it returns
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/animations
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@swimlane/ngx-charts
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Issue type
I'm submitting a ...  (check one with "x")

[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Issue description
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:
npm, node, OS, Browser
<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular
<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->

same errors.
have another way?

Dear sir or madam,
Please tell us which nod, npm version you are using. And tell us when you run npm start if the template works.

Dear sir or madam,
Please tell us which node, npm version you are using. And tell us when you run npm start if the template works.

win10 21H2
npm 8.5.0
node v16.14.2


[EventRequest] codeunit 6620 “Copy Document Mgt.”, CopyArchPuchLine [Local]

Please add a new publisher event OnCopyArchPurchLineOnBeforeToPurchLineInsert in Codeunit 6620 on function CopyArchPurchLine and call it as shown in the image below (in the end of the function)

Please add the corresponding Integration Event In the bottom of the codeunit

Please let me know if this is sufficient !

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.


Make draggable attribute take a Bool

Even though the draggable attribute is enumerated, it has only 2 valid values that can be assigned to it: "true" and "false".
Given that, I think it would be a nicer interface to expose this as taking a Bool rather than any arbitrary String.

Can you share MDN or W3C docs that prove this?

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable

Adding to #53 so it's easier to figure out how to batch it with some other MAJOR changes. Thanks for bringing this up and linking to docs to back it up!
As an aside, that API is crazy! Three possible values, but only two can be written down!


V1ContainerRegistery operator issues

Issues:

[x] Looks like we're executing podman login to log into each registry for every IDLE event from KubeOps.  We should have the operator maintain state so we only execute this command when there are actual changes.

[x] It's probably a good idea to do this login every time for the local registry, to ensure that we almost always have connectivity on the node.  This shouldn't really impact Harbor much.
[x] This is more problematic for external registries who will see logins on IDLE from every node in the cluster all day long.  I could image upstream registries getting pissed off at this.

Login Management Approach:
We need to solve these problems to avoid spamming registries with multiple logins with the same credentials:

[x] Detect when we're logging CRI-O into a registry for the first time
[x] Detect when we're already logged into a registry with specific credentials
[x] Detect when we're already logged into a registry with different credentials
[x] Periodically repair a login that looks like it's logged in but that was somehow broken

We'll need to maintain per-node state indicating which upstream registries are currently logged-in as well as an ability to verify that the login used a specific password.
The basic idea is to have neon-node-agent create a file for each container registry login on each node like this:
/var/run/neonkube/container-registries
    209FE194ACB6D19AB8FDB0EB1F34E2466CB4ED240BBCC55FD1543D31AF0A1E13.login
    D475D617DE21EFAE3A19B94446226E8ACE115C4B68F75AB7283F83CF6C18D3CD.login
    ...

where each file describes the current known state of an upstream registry login with the file name including the SHA-256 of the registry URI, and login credentials formatted as like:
LOCATION,USERNAME,PASSWORD

The contents of these files will look something like:
{
  "location": "https://docker.io",
  "username"<EMAIL_ADDRESS>  "updatedUtc": "2022-06-22T12:01:02"
}

where time is the UTC time of the last login using these credentials.
So here's how container registry controller reconcile will work:
Controller receives an IDLE event and then:

Queries the API server for all registry records
Generates SHA-256 hashes for all registry records with logins
Lists all cached login files
Looks for any cached login files that don't match any of the computed hashes.  These represent logins that have either been deleted or have changed.  The controller will examine these login files and logout of those registries and then remove these login files.
The controller will list the login files again, looking for container-registry SHA-256s that don't have a corresponding login file.  We'll login these container registries and write new login files.
Any container-registries that match a login file are theoretically already logged in, but it's possible for the registry to be logged out (e.g.

DONE


Problem with some websites

Hi, has anyone tried this website: http://www.bing.com/translator/?
When you use that website, you might have a error message in red:

We are experiencing some service problems. Refresh page or try again later

Other site that I have problems is: http://www.dailymotion.com/video/x24gmtq_l-arc-en-ciel-vivid-colors_music
The video loses the connection or it don't have the reply of the video getting the 403 error.
Have you the same problems with those sites?.

This has no relationship to net-isp-balance.


Detailed instructions on how to do this

Hello,
I am kinda new to all this and I am currently using my WeMos D1 mini in connection with Homebridge. It would be very cool, if it was possible to do all this without Homebridge, but even if you have instructions, I still can not manage to get this on my board. I would very appreciate it if anyone had detailed step by step instructions on how to do this ! :)

@eneski , I think that homekit/include is well documented, and you have a lot of working examples in this repo.
This HomeKit API is very easy to use, but maybe you are talking about coding with esp-open-rtos SDK for your device.

the problem is not the documentation .. the problem is that I don‘t even know where to enter those commands. I got a Windows PC and a Mac, do i enter that at the command line or terminal or something?

Prefer a Linux machine (like Ubuntu) on a VM, I had success with Ubuntu on Parallels on Mac

Follow These two video Tutorials, they will teach you how to setup a dev environment in a Linux Virtual Machine using free VirtualBox, After that, you will have a place were to enter all the commands, run the demos and don't mess with your system.
https://www.youtube.com/watch?v=kYEzEFH5LiM
https://www.youtube.com/watch?v=T-oSjMCmNYk
Additional to what is installed in the videos, you will need to clone and compile Free-Rtos and ESP-Homekit by following the instructions in the repos

don't understand your problem if you have a mac
detailed description have all involved project

you need install esp-open-sdk
open https://github.com/pfalcon/esp-open-sdk#macos
and you will see detailed instruction for macOS also
checkout esp-open-rtos (instruction here https://github.com/SuperHouse/esp-open-rtos)
if simple just run
this can be inside /Volumes/case-sensitive folder
git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
run
SDK_PATH=/Volumes/case-sensitive/esp-open-rtos
set the correct path for your serial device
export ESPPORT=/dev/tty.SLAB_USBtoUART
you can found correct device run /dev/tty.

Hi - I'm also using a Wemos D1 mini on a Linux box (Ubuntu) - was switching between examples and occasionally getting distracted so wrote a bash script to handle setting the environment variables, build and flash.
See pull request #54 - it might make life a little easier...

I wrote in PR but will duplicate it here.
I personally do it like this:

Install autoenv:brew install autoenv

In my project directory create .env file:export SDK_PATH=~/Projects/eps8266/esp-open-rtos
export ESPPORT=/dev/tty.SLAB_USBtoUART
export FLASH_SIZE=32
export HOMEKIT_DEBUG=1

Autoenv extension modifies your shell to source .env file whenever you enter directory with that file or any subdirectory.
Then, you do not actually need to do make -C <dir> all, you can just do cd <dir> and then you can do simple commands like make all, make test or make monitor. E.g.
cd ~/Projects/esp8266/esp-homekit-demo/examples/led
make all
make erase_flash
make test

Subsequent changes can be flashed with only one command:
make test

Arghghghghhg.... When adding your PATH variables, make sure they are separated with a ":"...
/some/path/to/variable:/other/path/to/variable.
Thus, when editing the bashrc file with;
$ nano ~/.bashrc
make sure to add the code like this;
export PATH=$PATH:/home/usr/esp-open-sdk/xtensa-lx106-elf/bin
and not like this
export PATH=$PATH/home/usr/esp-open-sdk/xtensa-lx106-elf/bin

I'm sorry to hear that you had problems figuring that out.
I want to articulate that: this project is a framework for developers to develop firmwares. That means that it's a DIY kit, not a finished product that works out of the box. As author I do not have neither resources, nor intent to invest into making this a product. I (selectively) accept patches that add more examples, but I do not plan to have a comprehensive set of examples for each and every ESP8266 enabled product on the market.
There are other developers that might fill the gap. E.g. @RavenSystem has a repository with more Sonoff firmwares. You should probably check those.


Support xcode 8 & iOS 10

This PR addresses the issues raised in #10.
In order to add support to add support to Xcode 8 and iOS 10, the following was required:

Bump minimum support iOS version to iOS 8.0, so the latest KIF (3.5.1) could be used.
Add a category to extend KWSpec to run KIFEnableAccessibility() on set up.
Update example project and its pods to use the latest KIF and KIF-Kiwi versions.

Devs: @ecaselles & @emmaviolet

@glentregoning thanks! Should we release a new version?

Yes I'm working on that. There are some build issues with Travis I'm going
to clean up. Once that's sorted I'll make a release.
On Tue, Nov 8, 2016 at 2:06 AM Emma Makinson<EMAIL_ADDRESS>wrote:

@glentregoning https://github.com/glentregoning thanks! Should we
release a new version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/indiegogo/KIF-Kiwi/pull/11#issuecomment-259096120,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABsbbps3rg0w4f2YTDze3THTN8IT51sPks5q8EnBgaJpZM4KrjjE
.


South Korea dataset module

Extraction and formatting of the dataset of confirmed cases, deaths and recovered per patient in South Korea #20

Hello guys,
I have made the edits and have commited some of the changes @ManuelAlvarezC have requested.
I havent had the audit.md and the datapackage.json file ready yet, but if someone else is willing to do so, by all means i'd appreciate the help.
huge apologies for the delay since last week.

Update: audit.md is done, some changes are made to comply with the lint for flake8 (checks during commit).
Just have the datapackage.json left to do


Problem setting up proxy

Hi, i am new here i am having some issues setting up the proxy correctly. After generating manually the certificate i transferred it to my phone and i installed it and left all the settings untouched ( Name: ca VPN/Apps ) than i went to wi-fi settings and i followed the guide that @rastapasta linked. Proxy Host Name: what should i write here? I tried with my ip but it doesn't work. Proxy Port: 8081. with my ip and the port mentioned before i can't get it working
ubuntu@ubuntu-virtual-machine:~$ cd pokemon-go-mitm-node/
ubuntu@ubuntu-virtual-machine:~/pokemon-go-mitm-node$ npm start

<EMAIL_ADDRESS>start /home/ubuntu/pokemon-go-mitm-node
coffee example.logTraffic.coffee

[+++] PokemonGo MITM Proxy listening on 8081
[!] Make sure to have the CA cert .http-mitm-proxy/certs/ca.pem installed on your device
Maybe the problem is that i am on a Ubuntu VMware

see #150

Thanks i will let you know if it works!


Correction for raw affiliation Department of Geomatics Engineering University of Calgary

Correction needed for raw affiliation Department of Geomatics Engineering University of Calgary
raw_affiliation_name: Department of Geomatics Engineering University of Calgary
new_rors: 03yjb2x39
previous_rors:
works_examples: W2938157501;W1583002010;W2360998721
contact: 7b431fef9b434a3f3a462a5f08485b6a:a4041d2c @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-09. The new affiliations should be visible within the next 7 days.


HP Laserjet 1020: After getting out of paper, could not print any more

OS: Ubuntu 22.04
After connecting the printer to laptop, Ubuntu added the printer automatically. Then tried to print a PDF file. But the papers was a bit out and printer ran to error (With red light).
Fixed the papers and turned off/on printer again. But When I tried to print again, it did not print.
Installed hplip-gui to check and it showed the file is printing and then, shows printing completed, but printer has no reactions to the print.
Other things I tested:

Restart system.
Disconnect/Connect the printer cable
Delete the printer and Ubuntu added printer again
Cleaning the job queue

I would like to debug it myself, but I don't know from where to start. Just set the status of cups log to debug, tried to print again and uploaded the logs here.
Error log: error.log
Printer info (~$ hp-info -i):
HP Linux Imaging and Printing System (ver. 3.22.2)
Device Information Utility ver. 5.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp:/usb/HP_LaserJet_1020?serial=JL00ZPV

Device Parameters (dynamic data):
  Parameter                     Value(s)
  ----------------------------  ----------------------------------------------------------
  agent1-ack                    False
  agent1-desc                   Black toner cartridge
  agent1-dvc                    0
  agent1-health                 0
  agent1-health-desc            Good/OK
  agent1-hp-ink                 False
  agent1-id                     0
  agent1-kind                   4
  agent1-known                  False
  agent1-level                  100
  agent1-level-trigger          0
  agent1-sku                    Q2612A
  agent1-type                   1
  agent1-virgin                 False
  back-end                      hp
  cups-printers                 ['HP-LaserJet-1020']
  cups-uri                      hp:/usb/HP_LaserJet_1020?serial=JL00ZPV
  dev-file
  device-state                  1
  device-uri                    hp:/usb/HP_LaserJet_1020?serial=JL00ZPV
  deviceid                      MFG:Hewlett-Packard;MDL:HP LaserJet
                                1020;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1020;
  duplexer                      0
  error-state                   0
  host
  in-tray1                      1
  in-tray2                      1
  is-hp                         True
  media-path                    1
  panel                         0
  panel-line1
  panel-line2
  photo-tray                    0
  port                          1
  r                             0
  revision                      254
  rg                            000
  rr                            000000
  rs                            000000000
  serial                        JL00ZPV
  status-code                   1000
  status-desc                   Idle
  supply-door                   1
  top-door                      1

Model Parameters (static data):
  Parameter                     Value(s)
  ----------------------------  ----------------------------------------------------------
  align-type                    0
  clean-type                    0
  color-cal-type                0
  copy-type                     0
  embedded-server-type          0
  family-class                  ['LJ-Class4']
  fax-type                      0
  fw-download                   True
  icon                          HP_LaserJet_1012.png
  io-mfp-mode                   6
  io-mode                       1
  io-support                    2
  job-storage                   0
  linefeed-cal-type             0
  model                         HP_LaserJet_1020
  model-ui                      HP LaserJet 1020
  model1                        HP LaserJet 1020 Printer
  model2                        HP LaserJet 1020 Plus Printer
  monitor-type                  0
  panel-check-type              0
  pcard-type                    0
  plugin                        1
  plugin-reason                 1
  power-settings                0
  pq-diag-type                  0
  r-type                        0
  r0-agent1-kind                4
  r0-agent1-sku                 Q2612A
  r0-agent1-type                1
  scan-src                      0
  scan-type                     0
  status-battery-check          0
  status-dynamic-counters       0
  status-type                   8
  support-released              True
  support-subtype               16556
  support-type                  2
  support-ver                   2.7.10
  tech-class                    ['LJZjsMono']
  tech-subclass                 ['Normal']
  tech-type                     3
  usb-pid                       11031
  usb-vid                       1008
  wifi-config                   0

Status History (most recent first):
  Date/Time             Code   Status Description                        User      Job ID
  --------------------  -----  ----------------------------------------  --------  --------
  09/08/22 15:17:43     1000   Idle                                      mohammad  0
  09/08/22 15:12:15     501    Print job has completed                   mohammad  12
  09/08/22 15:11:50     500    Started a print job                       mohammad  12
  09/08/22 15:11:40     1005   Canceling                                 mohammad  0
  09/08/22 15:11:35     1000   Idle                                      mohammad  0
  09/08/22 15:03:14     501    Print job has completed                   mohammad  11
  09/08/22 15:02:48     500    Started a print job                       mohammad  11
  09/08/22 14:55:18     1000   Idle                                      mohammad  0

cups web
I also removed the added printers by CUPS web interface and add again. Then again when I tried to print, I saw the following message in jobs:
completed at
Thu 08 Sep 2022 03:31:00 PM +0430
"Use "pdftops-renderer" option (see cups-filters README file) to use Ghostscript or MuPDF for the PDF -> PostScript conversion."

But still no reaction from printer

Hi @metemaddar ,
thank you for reporting the issue!
Can you try canceling all jobs, enabling the queue and restarting the printer:
$ cancel -a
$ cupsenable <queue_name>

did it help?
In case it didn't help, remove the queue via lpadmin -x <queue>, unplug the printer and plug it in again (it should install the print queue again).
If the printer works again, have the debug logs enabled and:

get a correct printing
then try to print more pages, but put less sheets into printer (to get the error you got previously)
do the same things as you did before (fix sheets and restart printer, and print again)

then please attach the error_log file here.
The current logs show the job 10 is cancelled, but jobs 11 and 12 are shown as completed... so I would like to see the logs for correct printing, printing with not enough sheets in printer and printing after that.
Other thing to check would be system journal via journalctl - you use hp backend and it writes to journal.
Thank you in advance!

Thanks @zdohnal
I need another help.
I tried to remove the hplip. Because after my report, I tried to install the driver using hplip-tool and it worked. But after removing the hplip and hplip-gui, I think the printer still behaves like using the driver from hplip and not the open source one.
How should I remove the hplip's driver?

@metemaddar you can check whether it uses hplip by checking the printer connection via lpstat -v (if the listed printer has hp:// in its device, then it uses hplip) and by checking its PPD in /etc/cups/ppd/ directory - PPD from HP will have its copyright there.
Either way, hplip is an open source driver (except for its binary plugin you have to download for some models - yours is one of them), so you can use as well if it works for you.
In case your printer still has hp:// in its device uri or has HP PPD, I would check the installed packages - maybe some hplip subpackages have been left on the system.

Closing due inactivity - do let me know if the problem persists and I can look into further.


Make worker connections configurable

See discussion in https://github.com/openmicroscopy/prod-playbooks/pull/37#issuecomment-362008707
This PR makes worker_connections configurable via the role.
Proposed tag: 1.7.0

LGTM, but I have a similar question as on https://github.com/openmicroscopy/ansible-role-network/pull/2 a la https://github.com/maruina/ansible-role-nginx/blob/master/templates/nginx.conf.j2

I think this change is fine since the number of directives we're likely to need in nginx.conf is limited, unlike the main proxy config which could do with a refactor.

Expanding on https://github.com/openmicroscopy/ansible-role-network/pull/2#issuecomment-363383282 a bit more: by having enabling arbitrary configs in the form of key-value pairs we're telling the user "for these configs go to the upstream documentation to understand what's going on, and it's your problem if there's a mistake", whereas by having explicit parameters which are documented in the README we're saying (or at lerast trying to say) "these are things you may want to change, and we'll ensure it goes in the correct place in your config file even if we don't validate the values you've specified".
Obviously it's not clear cut choice.

f25c114  is my initial attempt at refactoring the top-level nginx configuration template using a dictionary of key/values as discussed above. I haven't done the log_format section yet. Looking forward to hearing feedback at the upcoming sysadmin meeting.

What are your expectations for how peopel would use these new variables?

Override nginx_proxy_main_conf.worker_processes? (straightforward)
Override nginx_proxy_main_conf? (means they have to redefine the entire dictionary, unless they've modified their ansible.cfg to merge dicts)

Force pushed away f25c114 as discussed this morning

Tag pushed


Make flowconfig smaller.

flow still passes.

Coverage remained the same at 39.638% when pulling ac254ade7f87757962259c5faba901932ab7c8e4 on LegNeato:smaller-flow-config into 2a6e2eaf8c3e90ec4a72e6b9343e9c97d74ab59b on mozilla:master.

Failure is unrelated.

Rebased and landed.  Thanks, @LegNeato!
https://github.com/mozilla/tofino/commit/72a49904f4faeaa46142890bb8a9f1102a915430


updated workflows

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


Just my notes

"id (MUST be valid for dereferencing)" ---> I'm not sure what this means. If this means what I think it means. I would prefer "MUST agree with the URL."
I would prefer if it was clearly stated that inbox is a POST endpoint. A similar URI = URL sentence is appropriate.
"Must support inbox Follow activity processing" -> There is no such thing. What there is processing for sending an Accept to a Follow activity and receiving one. Similarly for Undo.
" ActivityPub Minimal Core " -> A better name would include 'federation API', I know it's all people use from AP but it pays to be precise.

"id (MUST be valid for dereferencing)" ---> I'm not sure what this means. If this means what I think it means. I would prefer "MUST agree with the URL."

 Maybe the requirement is too obvious and doesn't need to be stated. I'll take another look.

I would prefer if it was clearly stated that inbox is a POST endpoint. A similar URI = URL sentence is appropriate.

I'll update the text.

"Must support inbox Follow activity processing" -> There is no such thing. What there is processing for sending an Accept to a Follow activity and receiving one. Similarly for Undo.

I'm not understanding your point here. Requiring Undo support makes sense to me, but I don't think that's your point.

" ActivityPub Minimal Core " -> A better name would include 'federation API', I know it's all people use from AP but it pays to be precise.

I used the name in the context of discussion around AP Minimal Core + Domain-specific Interop/Compliance profiles. It's not really a complete federation API for most domains (in the absence of an interop profile) but I agree the core effectively strips out C2S.

I'll open a new issue for the Follow stuff. It will take some time as I should probably make sure I can express myself clearly.
Feel free to close this issue if you consider the other stuff completed.

Sounds good. Thanks for your comments. I've made some related README updates and look forward to the Follow-related information.


Rate limiting

I keep on getting 429 errors using this for my app, is there any built in rate limiting for outgoing requests using the sync client?

Unfortunately, there isn't. We can use an exponential backoff strategy on any 429 errors as recommended by Spotify here: https://developer.spotify.com/documentation/web-api/#rate-limiting
We can use this lib: https://pypi.org/project/backoff/
I'm open for pull requests if you're willing to fix this issue.

I ended up using a try/except and retrying the api call after the Retry-After time. Will check backoff out, thanks!


Fix NPE in GetAttributeExpression

The recent change to allow map access via primitives introduced an NPE situtation when null was being passed as the map key.  This PR fixes that issue by skipping Number.class.isAssignableFrom if the attributeNameValue is null

As it appears this repo is dying, I have decied to create and maintain a new fork of Pebble at JavaEden/Pebble, and I would love to get this PR merged into the new repo. Please take this PR and open a new one to the dev branch of JavaEden/pebble.
The future of Pebble has been shaky for a while now, but I refuse to let Pebble die. It is a great project, and I hope to give it same love and care that the original maintainers have as they built Pebble. If you have any questions about the future of Pebble, please reach out on Gitter. Let's keep this community alive, I hope to see you over at the new location!
New Pebble Home

Original announcement of new ownership: https://github.com/PebbleTemplates/pebble/issues/311#issuecomment-379496941
https://github.com/JavaEden/pebble
https://bintray.com/javaeden/Eden/Pebble
https://gitter.im/JavaEden/pebble


Scraper: Fixed reversed ternary operator

Scraper was discarding valid materials and returning null strings instead because the logic was backwards.

Nice catch. Thanks for the help.


Rename fieldMiddleware to middleware

Changed in yoga: https://github.com/prismagraphql/graphql-yoga/pull/276

Hey @ztec, thanks for addressing this. Could you change middleware to middlewares as the latest Yoga points to the following name? Thanks for the great PR!

I could but I will wait for this PR to be merged, or another one done to fix the s thing first :-D
https://github.com/prismagraphql/graphql-yoga/pull/346

;-) done


re-enabling

had some internal discussions and we are still going to be publishing these rubygems to rubygems.org

Description

Related Issue

Types of changes

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

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
[ ] All new and existing tests passed.
[ ] All commits have been signed-off for the Developer Certificate of Origin.

@GeorgeWestwater @rahulgoel1 confirming we are okay with this.

@brianLoomis

@tpowell-progress @sean-simmons-progress I think this is good to merge. Just replying to the comment here as well to keep folks in loop after our discussion in the community PR review call yesterday.


[Request] https://github.com/lukesampson/scoop/issues/3660

see https://github.com/lukesampson/scoop/issues/3660
latest version for 6 Oct is : https://ftp.mozilla.org/pub/firefox/releases/69.0.2/

that 3660 issue needs to be closed.

possible description could be "firefox with DRM-support disabled by default"
see https://hacks.mozilla.org/2014/05/reconciling-mozillas-mission-and-w3c-eme/

autoupdate should be simple.

they actually think powershell's long command names are verbose

Well, it is indeed verbose, if you compare remove-item -r -fo $item to rm -rf item


Remove copying GUID-to-guid conversions

Description
winrt::guid const has a non-copying conversion to GUID const&, but the only conversion from GUID const to winrt::guid const is a copying constructor.
That's because conversion operators must be members of the converted-from type, but we cannot inject methods into the system-provided struct GUID, so we cannot provide a non-copying conversion from GUID& to winrt::guid&.
Our custom NonDelegatingQueryInterfaces accepted GUID const& by mistake when they should have accepted winrt::guid const&. The conversion from winrt::guid const& to GUID const& is free, but the reverse conversion (which occurs when we try to forward the id parameter to other methods) is expensive.
Note that the changes to NonDelegatingQueryInterface have to be made in sync so that they can override each other.
Fix this by changing the signature of NonDelegatingQueryInterface to match what C++/WinRT uses. The places where the winrt::guid const& is used as a GUID can be handled by the non-copying conversion.
Our implementation of QueryInterface must accept a GUID const& in order to match the ABI. However, we immediately convert it (non-copying) to a winrt::guid const& and operate on the winrt::guid const& from then on.
Motivation and Context
This removes four GUID copies from every instance of ReferenceTracker (there are over 200 of them).
How Has This Been Tested?
Verified vtable construction. Light interactive testing to make sure nothing exploded.

/azp run


How to make it run offline?

when i use it and then turn off the internet, it still works. but when i turn off the internet before launching it, it doesn't work anymore. is there any way to make it work offline?

This works for me on my system. I can run scripts offline as long as the models are already downloaded. Could you share a little more information about your setup so that I can reproduce this?

Sorry, it worked but it's slower starting offline so I thought it wasn't working. Is there a reason for that?

Without knowing more about your environment, it is difficult to say for sure, but my guess is that your system is waiting on a timeout when checking for model updates. You should be able to skip those checks by setting the HF_HUB_OFFLINE environment variable:

HF_HUB_OFFLINE
If set, no HTTP calls will me made when trying to fetch files. Only files that are already cached will be accessed. This is useful in case your network is slow and you don’t care about having absolutely the latest version of a file.
Note: even if the latest version of a file is cached, calling hf_hub_download still triggers a HTTP request to check that a new version is not available. Setting HF_HUB_OFFLINE=1 will skip this call which speeds up your loading time.

Let me know if that helps.

it work !  thank you


link to map

Adding a link to the map route from the frontend component overview page

THX @ryanj !


Rename project

Fix for comment in #2

I did some touchups on the README and HISTORY, should be fine now!

Oh yes, forgot those, great, so I'll pull in your changes, put it on pypi and delete the avconv one :)

Sounds great, thanks for your efforts! Ping me when it's done and I will update the Super User post using the new link.

New link!
https://pypi.python.org/pypi/ffmpeg-normalize/

Awesome, thanks! Everything updated on SU as well.


Implement testing patterns

My biggest fear in proposing changes is unknowingly breaking something else. It’s less of an issue for devs who have a deep understanding of the code base, but I’m not there yet.
My forte is java and I feel very comfortable over there with the build tools and unit testing. I have started a java port of the project. I have gotten pretty far but I also don’t mind learning c++.
So I have started looking into unit testing. I found a few libraries that seems popular

Boost.Test
Catch2
ut
Google Test
doctest
CMakes built in CTest

do you have any opinions on unit testing? Any experience with these unit testing libs? What are your thoughts?
edit: this might be a good overview for me https://www.jetbrains.com/help/clion/unit-testing-tutorial.html

Certainly a good idea to have, particularly for parsing and rules. No preference, other than something easy to maintain. I suspect some of these may have a bit more overhead to integrate. For example, the project doesn't use Boost, so using Boost.Test may not be ideal.

I have something working on my machine with Google Test. chosen strictly due to good IDE support (CLion, VisualStudio). I'll get a PR over sometime to show you

closed by #34


await tryFoo() highlights as an error

The await try check needs to respect token boundaries.

We might be able to sneak this in just in time for GitHub's release tomorrow :)

Next release it is! https://github.com/github-linguist/linguist/pull/6603#issuecomment-1853176361

Thanks for the quick turnaround! Even if the integration will take a bit.


Port forward global exclude

Great work getting the pods ports to automatically show up, that's awesome.
In some cases where we have sidecar that we usually do not want to port forward (istio).  These sidecars typically all share the same port and make performing multiple port forwards annoying as I have to go in and delete the shared port.  In this case, port 15090

Can we have a global port forward exclude from auto generate configuration array?

@brendandburns Thoughts on this?  It makes sense, but feels a bit awkward to have this as a global config setting.

In case you were wondering, I was imagining adding it as a workspace setting which I have committed to source.  That way the problem is solved for my team and everyone has the annoyance lifted automagically :)


Strip GPG signature information from date

Fixes #154
I was only able to fix this in from_cvs.py so far. I don't really know how to fix this in the other sections, to be honest. It probably comes down to date = date.strip("\n")[-1] again, but I frankly don't know where.

I think this is it :) I just don't know the codebase too well to know whether this covers all bases.

Or maybe not :( I'm breaking Travis and I don't know why. I am thinking it doesn't like the use of "\n" in the file? I really don't know. Either way it's just the tests that break for me, not the program itself.

Fixed :) Some of it, at least. There's still an error in the tests remaining, but when I run the tests locally on the master branch, the same tests fail. So I think this about does it?

The Travis errors are due to the new pydocstyle, and should be fixed with https://github.com/warner/python-versioneer/pull/157

Thanks!  You are right.

Converting the date stamp from ISO 8601-like to actual ISO 8601 (i.e. the replace chain) happens before extracting the last line in from_keywords.py but after extracting the last line on from_vcs.py; I think it should be after to make sure nothing is mistakenly applied to the part that should be stripped out.

@thurask Agreed.

Hey, thanks, this looks good. Could you do two things?:

rebase to current master (which should fix the travis problem), also squash down to one commit
add a test?

I think the new tests should go into test/git/test_git.py. The Keywords class could be enhanced to add a ["date"] key to the dict that it passes into git_versions_from_keywords, and the test should exercise all of (no date, single-line date, multi-line date).
The from_vcs side can be tested in ParseGitDescribe.test_pieces by changing the way fake_run_command works when it is run with rev-parse, and again we should exercise all the possible options.
thanks!

Something like that.
I dislike rebasing and force-pushing, but there you go.
I haven't the faintest idea how to go about returning no date from git-show, so that test was not implemented.

And of course some tests fail.  I had initially assumed that master was broken as it was last time, but apparently some of my changes (I assume in Keywords.parse) broke a couple of tests.  I do not know how to fix those tests, because not a single line of code I touched should affect the version output of git_versions_from_keywords.

We're working on reviving this project. Can you rebase/merge master to refresh the CI?

I've rebased this branch and fixed unit tests in #222.


[QUESTION] Can not verify Refresh Token

Question
Can not verify Refresh Token.
Error mesage : JwtParseError: JWT string does not consist of exactly 3 parts (header, payload, signature).
I want to get refresh token payload, but it decode error. The tokenUser has type id and access. Is this lib only support decode access token and id token.
Test code
import { CognitoJwtVerifier } from "aws-jwt-verify";
try {
    // decode refresh token
    const verifier = CognitoJwtVerifier.create({
        userPoolId: "USER_POOL_ID",
        // tokenUse: 'id',
        tokenUse: null,
        clientId: "CLIENT_ID",
    });
    const payload = await verifier.verify(
        "refresh-token"
    );
    console.log("Token is valid. Payload:", payload);
} catch(e) {
    console.log(e);
    console.log("Token not valid!");
}

Versions
Which version of aws-jwt-verify are you using?
2.1.3
Which version of Node.js are you using? (Should be at least 14)
v16.13.0
If using TypeScript, which version of TypeScript are you using? (Should be at least 4)
not use TypeScript

Hi @wzhonggo !
Cognito Refresh Tokens are in fact encrypted JWTs and nobody can decode or verify them except the Cognito service itself.
The only way to know if a Cognito refresh token "is valid" is by actually using it against the Cognito APIs (e.g. by doing an InitiateAuth with REFRESH_TOKEN_AUTH)

What's your use case, that you'd want to verify a Cognito refresh token?

@ottokruse
I use Ampfliy js with <IP_ADDRESS> and a random port in browser with a desktop application.  I hope user can auto login in borwser after first time login. The Amplify js save refresh token, id token, access token and other in localStorage, but port will change after next time relaunch app, so the token which save in localStorage is lost, user need login again . Now I save the refresh token to file after user login and pass refresh token to browser when next time launch app. But Ampfliy js not api to accept refresh token, it need manua do this, see  https://github.com/aws-amplify/amplify-js/issues/5198.  You must set CognitoIdentityServiceProvider.${APP_CLIENT_ID}.LastAuthUser ,  CognitoIdentityServiceProvider.${APP_CLIENT_ID}.${LastAuthUser}.refreshToken and CognitoIdentityServiceProvider.${APP_CLIENT_ID}.${LastAuthUser}.idToken(any not empty string) if want Amplify restore user. But now only has refresh token, so i find this lib can decode access token and id token. I hope can decode refresh token and get username, but in fact it is not possible.
Now i use a new way to get username by refresh token, see https://docs.aws.amazon.com/zh_cn/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html.
Thanks


Improve performance of ClickBench Q18, Q35,

Is your feature request related to a problem or challenge?
While looking at the results of the most recent clickbench run

https://github.com/apache/datafusion/issues/13099

Here is the ClickBench page (link)
I see there are a few queries where DataFusion is significantly slower

The queries are:
Q18: https://github.com/apache/datafusion/blob/73507c307487708deb321e1ba4e0d302084ca27e/benchmarks/queries/clickbench/queries.sql#L19

[ ] https://github.com/apache/datafusion/issues/13275
[ ] https://github.com/apache/datafusion/issues/13188
[ ] Optimize date_part

Q35: https://github.com/apache/datafusion/blob/73507c307487708deb321e1ba4e0d302084ca27e/benchmarks/queries/clickbench/queries.sql#L36
Describe the solution you'd like
I would like the queries to go faster
Describe alternatives you've considered
Both queries look like
SELECT COUNT(...) cnt ... ORDER BY cnt DESC LIMIT 10

In other words they are "top 10 count" style queries
By default, DataFusion will  compute the counts for all groups, and then pick only the top 10.
I suspect there is some fancier way to do this, perhaps by finding the top 10 values of count when emitting from the group operator or something. It would be interesting to see if we can see what other engines like DuckDB do with this query
Additional context
No response

Perhaps we can use some variant of the topk grouping: https://github.com/apache/datafusion/tree/main/datafusion/physical-plan/src/aggregates/topk

First step for this project would be to profile the queries and see what we can improve

I run them and store here. Can download it for analysis

It seems GroupedTopKAggregateStream is not used for handling topK but SortExec with fetch 🤔
query TT
explain SELECT "UserID", extract(minute FROM to_timestamp_seconds("EventTime")) AS m, "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", m, "SearchPhrase" ORDER BY COUNT(*) DESC LIMIT 10;
----
logical_plan
01)Sort: count(*) DESC NULLS FIRST, fetch=10
02)--Projection: hits.UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)) AS m, hits.SearchPhrase, count(*)
03)----Aggregate: groupBy=[[hits.UserID, date_part(Utf8("MINUTE"), to_timestamp_seconds(hits.EventTime)), hits.SearchPhrase]], aggr=[[count(Int64(1)) AS count(*)]]
04)------TableScan: hits projection=[EventTime, UserID, SearchPhrase]
physical_plan
01)SortPreservingMergeExec: [count(*)@3 DESC], fetch=10
02)--SortExec: TopK(fetch=10), expr=[count(*)@3 DESC], preserve_partitioning=[true]
03)----ProjectionExec: expr=[UserID@0 as UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1 as m, SearchPhrase@2 as SearchPhrase, count(*)@3 as count(*)]
04)------AggregateExec: mode=FinalPartitioned, gby=[UserID@0 as UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1 as date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)), SearchPhrase@2 as SearchPhrase], aggr=[count(*)]
05)--------CoalesceBatchesExec: target_batch_size=8192
06)----------RepartitionExec: partitioning=Hash([UserID@0, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1, SearchPhrase@2], 4), input_partitions=4
07)------------AggregateExec: mode=Partial, gby=[UserID@1 as UserID, date_part(MINUTE, to_timestamp_seconds(EventTime@0)) as date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)), SearchPhrase@2 as SearchPhrase], aggr=[count(*)]
08)--------------ParquetExec: file_groups={4 groups: [[WORKSPACE_ROOT/benchmarks/data/hits.parquet:0..3694994112], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:3694994112..7389988224], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:7389988224..11084982336], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:11084982336..14779976446]]}, projection=[EventTime, UserID, SearchPhrase]

query TT
explain SELECT "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3, COUNT(*) AS c FROM hits GROUP BY "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3 ORDER BY c DESC LIMIT 10;
----
logical_plan
01)Sort: c DESC NULLS FIRST, fetch=10
02)--Projection: hits.ClientIP, hits.ClientIP - Int64(1), hits.ClientIP - Int64(2), hits.ClientIP - Int64(3), count(*) AS c
03)----Aggregate: groupBy=[[hits.ClientIP, __common_expr_1 AS hits.ClientIP - Int64(1), __common_expr_1 AS hits.ClientIP - Int64(2), __common_expr_1 AS hits.ClientIP - Int64(3)]], aggr=[[count(Int64(1)) AS count(*)]]
04)------Projection: CAST(hits.ClientIP AS Int64) AS __common_expr_1, hits.ClientIP
05)--------TableScan: hits projection=[ClientIP]
physical_plan
01)SortPreservingMergeExec: [c@4 DESC], fetch=10
02)--SortExec: TopK(fetch=10), expr=[c@4 DESC], preserve_partitioning=[true]
03)----ProjectionExec: expr=[ClientIP@0 as ClientIP, hits.ClientIP - Int64(1)@1 as hits.ClientIP - Int64(1), hits.ClientIP - Int64(2)@2 as hits.ClientIP - Int64(2), hits.ClientIP - Int64(3)@3 as hits.ClientIP - Int64(3), count(*)@4 as c]
04)------AggregateExec: mode=FinalPartitioned, gby=[ClientIP@0 as ClientIP, hits.ClientIP - Int64(1)@1 as hits.ClientIP - Int64(1), hits.ClientIP - Int64(2)@2 as hits.ClientIP - Int64(2), hits.ClientIP - Int64(3)@3 as hits.ClientIP - Int64(3)], aggr=[count(*)]
05)--------CoalesceBatchesExec: target_batch_size=8192
06)----------RepartitionExec: partitioning=Hash([ClientIP@0, hits.ClientIP - Int64(1)@1, hits.ClientIP - Int64(2)@2, hits.ClientIP - Int64(3)@3], 4), input_partitions=4
07)------------AggregateExec: mode=Partial, gby=[ClientIP@1 as ClientIP, __common_expr_1@0 - 1 as hits.ClientIP - Int64(1), __common_expr_1@0 - 2 as hits.ClientIP - Int64(2), __common_expr_1@0 - 3 as hits.ClientIP - Int64(3)], aggr=[count(*)]
08)--------------ProjectionExec: expr=[CAST(ClientIP@0 AS Int64) as __common_expr_1, ClientIP@0 as ClientIP]
09)----------------ParquetExec: file_groups={4 groups: [[WORKSPACE_ROOT/benchmarks/data/hits.parquet:0..3694994112], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:3694994112..7389988224], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:7389988224..11084982336], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:11084982336..14779976446]]}, projection=[ClientIP]

Note that q18 and q35 got some speedup in https://github.com/apache/datafusion/pull/12996 and https://github.com/apache/datafusion/pull/13133

For q18, I found string view lead to some regression?

<EMAIL_ADDRESS>16:10:45 ~/arrow-datafusion
$ sudo perf record -F 99 -g --call-graph dwarf /home/db/arrow-datafusion/target/release/dfbench clickbench --iterations 5 --path /home/db/arrow-datafusion/benchmarks/data/hits.parquet --queries-path /home/db/arrow-datafusion/benchmarks/queries/clickbench/queries.sql --query 18 --force-view-types
Running benchmarks with the following options: RunOpt { query: Some(18), common: CommonOpt { iterations: 5, partitions: None, batch_size: 8192, debug: false, force_view_types: true }, path: "/home/db/arrow-datafusion/benchmarks/data/hits.parquet", queries_path: "/home/db/arrow-datafusion/benchmarks/queries/clickbench/queries.sql", output_path: None }
Q18: SELECT "UserID", extract(minute FROM to_timestamp_seconds("EventTime")) AS m, "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", m, "SearchPhrase" ORDER BY COUNT(*) DESC LIMIT 10;
Query 18 iteration 0 took 8186.2 ms and returned 10 rows
Query 18 iteration 1 took 8292.9 ms and returned 10 rows
Query 18 iteration 2 took 8276.1 ms and returned 10 rows
Query 18 iteration 3 took 8327.8 ms and returned 10 rows
Query 18 iteration 4 took 8165.0 ms and returned 10 rows
[ perf record: Woken up 762 times to write data ]
[ perf record: Captured and wrote 190.757 MB perf.data (24029 samples) ]

<EMAIL_ADDRESS>16:11:38 ~/arrow-datafusion
$ sudo perf record -F 99 -g --call-graph dwarf /home/db/arrow-datafusion/target/release/dfbench clickbench --iterations 5 --path /home/db/arrow-datafusion/benchmarks/data/hits.parquet --queries-path /home/db/arrow-datafusion/benchmarks/queries/clickbench/queries.sql --query 18
Running benchmarks with the following options: RunOpt { query: Some(18), common: CommonOpt { iterations: 5, partitions: None, batch_size: 8192, debug: false, force_view_types: false }, path: "/home/db/arrow-datafusion/benchmarks/data/hits.parquet", queries_path: "/home/db/arrow-datafusion/benchmarks/queries/clickbench/queries.sql", output_path: None }
Q18: SELECT "UserID", extract(minute FROM to_timestamp_seconds("EventTime")) AS m, "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", m, "SearchPhrase" ORDER BY COUNT(*) DESC LIMIT 10;
Query 18 iteration 0 took 7820.3 ms and returned 10 rows
Query 18 iteration 1 took 7648.6 ms and returned 10 rows
Query 18 iteration 2 took 7847.3 ms and returned 10 rows
Query 18 iteration 3 took 7629.2 ms and returned 10 rows
Query 18 iteration 4 took 7709.3 ms and returned 10 rows

Yes, that was tracked here as well https://github.com/apache/datafusion/issues/13188
Also https://github.com/apache/datafusion/issues/13275 tracks some further improvements in vectorized_append which seems to be pretty hot in the flamegraphs.

I think

Yes, the regression was tracked here #13188
Also #13275 tracks some further improvements in vectorized_append which seems to be pretty hot in the flamegraphs.

Yes, I profiled an verbose version flamegraph and found  Vec::push in vectorized_append is so hot...

Also date_part from extract(minute FROM to_timestamp_seconds("EventTime") seems to be taking some time
I added the following items to query 18 in the issue description:

[ ] https://github.com/apache/datafusion/issues/13275
[ ] https://github.com/apache/datafusion/issues/13188
[ ] Optimize date_part

For the queries it seems also possible (but tricky) if the cardinality is high enough (i.e. copying into aggregation columns doesn't reduce memory usage very much), to first execute the aggregation, keep original data in RecordBatches and delay the materialization of other columns until at the end.

Possible improvement for date_part (required to upstream chrono crate) https://github.com/apache/arrow-rs/issues/6746

I think we can optimize the plan to improve it for q35.
I found clickhouse has following optimization:
// Before
SELECT "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3, COUNT(*) AS c FROM hits GROUP BY "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3 ORDER BY c DESC LIMIT 10;

// After
SELECT "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3, COUNT(*) AS c FROM hits GROUP BY "ClientIP" ORDER BY c DESC LIMIT 10;

I am trying it in https://github.com/apache/datafusion/pull/13617

Amazing! q35 get 1.35x faster in my local, when add this optimize rule!

It seems like a hack on specific query 😆 but still great 👍🏻 !

Perhaps we can use some variant of the topk grouping: https://github.com/apache/datafusion/tree/main/datafusion/physical-plan/src/aggregates/topk

Similar optimization proposals were found in ClickHouse：
https://github.com/ClickHouse/ClickHouse/issues/72610

It seems GroupedTopKAggregateStream is not used for handling topK but SortExec with fetch 🤔
query TT
explain SELECT "UserID", extract(minute FROM to_timestamp_seconds("EventTime")) AS m, "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", m, "SearchPhrase" ORDER BY COUNT(*) DESC LIMIT 10;
----
logical_plan
01)Sort: count(*) DESC NULLS FIRST, fetch=10
02)--Projection: hits.UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)) AS m, hits.SearchPhrase, count(*)
03)----Aggregate: groupBy=[[hits.UserID, date_part(Utf8("MINUTE"), to_timestamp_seconds(hits.EventTime)), hits.SearchPhrase]], aggr=[[count(Int64(1)) AS count(*)]]
04)------TableScan: hits projection=[EventTime, UserID, SearchPhrase]
physical_plan
01)SortPreservingMergeExec: [count(*)@3 DESC], fetch=10
02)--SortExec: TopK(fetch=10), expr=[count(*)@3 DESC], preserve_partitioning=[true]
03)----ProjectionExec: expr=[UserID@0 as UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1 as m, SearchPhrase@2 as SearchPhrase, count(*)@3 as count(*)]
04)------AggregateExec: mode=FinalPartitioned, gby=[UserID@0 as UserID, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1 as date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)), SearchPhrase@2 as SearchPhrase], aggr=[count(*)]
05)--------CoalesceBatchesExec: target_batch_size=8192
06)----------RepartitionExec: partitioning=Hash([UserID@0, date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime))@1, SearchPhrase@2], 4), input_partitions=4
07)------------AggregateExec: mode=Partial, gby=[UserID@1 as UserID, date_part(MINUTE, to_timestamp_seconds(EventTime@0)) as date_part(Utf8("MINUTE"),to_timestamp_seconds(hits.EventTime)), SearchPhrase@2 as SearchPhrase], aggr=[count(*)]
08)--------------ParquetExec: file_groups={4 groups: [[WORKSPACE_ROOT/benchmarks/data/hits.parquet:0..3694994112], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:3694994112..7389988224], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:7389988224..11084982336], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:11084982336..14779976446]]}, projection=[EventTime, UserID, SearchPhrase]

query TT
explain SELECT "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3, COUNT(*) AS c FROM hits GROUP BY "ClientIP", "ClientIP" - 1, "ClientIP" - 2, "ClientIP" - 3 ORDER BY c DESC LIMIT 10;
----
logical_plan
01)Sort: c DESC NULLS FIRST, fetch=10
02)--Projection: hits.ClientIP, hits.ClientIP - Int64(1), hits.ClientIP - Int64(2), hits.ClientIP - Int64(3), count(*) AS c
03)----Aggregate: groupBy=[[hits.ClientIP, __common_expr_1 AS hits.ClientIP - Int64(1), __common_expr_1 AS hits.ClientIP - Int64(2), __common_expr_1 AS hits.ClientIP - Int64(3)]], aggr=[[count(Int64(1)) AS count(*)]]
04)------Projection: CAST(hits.ClientIP AS Int64) AS __common_expr_1, hits.ClientIP
05)--------TableScan: hits projection=[ClientIP]
physical_plan
01)SortPreservingMergeExec: [c@4 DESC], fetch=10
02)--SortExec: TopK(fetch=10), expr=[c@4 DESC], preserve_partitioning=[true]
03)----ProjectionExec: expr=[ClientIP@0 as ClientIP, hits.ClientIP - Int64(1)@1 as hits.ClientIP - Int64(1), hits.ClientIP - Int64(2)@2 as hits.ClientIP - Int64(2), hits.ClientIP - Int64(3)@3 as hits.ClientIP - Int64(3), count(*)@4 as c]
04)------AggregateExec: mode=FinalPartitioned, gby=[ClientIP@0 as ClientIP, hits.ClientIP - Int64(1)@1 as hits.ClientIP - Int64(1), hits.ClientIP - Int64(2)@2 as hits.ClientIP - Int64(2), hits.ClientIP - Int64(3)@3 as hits.ClientIP - Int64(3)], aggr=[count(*)]
05)--------CoalesceBatchesExec: target_batch_size=8192
06)----------RepartitionExec: partitioning=Hash([ClientIP@0, hits.ClientIP - Int64(1)@1, hits.ClientIP - Int64(2)@2, hits.ClientIP - Int64(3)@3], 4), input_partitions=4
07)------------AggregateExec: mode=Partial, gby=[ClientIP@1 as ClientIP, __common_expr_1@0 - 1 as hits.ClientIP - Int64(1), __common_expr_1@0 - 2 as hits.ClientIP - Int64(2), __common_expr_1@0 - 3 as hits.ClientIP - Int64(3)], aggr=[count(*)]
08)--------------ProjectionExec: expr=[CAST(ClientIP@0 AS Int64) as __common_expr_1, ClientIP@0 as ClientIP]
09)----------------ParquetExec: file_groups={4 groups: [[WORKSPACE_ROOT/benchmarks/data/hits.parquet:0..3694994112], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:3694994112..7389988224], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:7389988224..11084982336], [WORKSPACE_ROOT/benchmarks/data/hits.parquet:11084982336..14779976446]]}, projection=[ClientIP]

count(*) needs to traverse all data, top k aggregation is not applicable here


Appstudio update test-component-pac-smzf

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-smzf-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
10 seconds
init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
9 seconds
sast-snyk-check

✅ Succeeded
26 seconds
inspect-image

✅ Succeeded
25 seconds
deprecated-base-image-check

✅ Succeeded
12 seconds
clair-scan

✅ Succeeded
9 seconds
sbom-json-check

✅ Succeeded
41 seconds
clamav-scan

✅ Succeeded
6 seconds
show-summary

✅ Succeeded
6 seconds
show-sbom


vite build  'Vue' is not exported by

Contact Details
<EMAIL_ADDRESS>What happened?
import { Options,Vue} from 'vue-class-component'; error
error during build:
Error: 'Vue' is not exported by node_modules\vue-class-component\dist\vue-class-component.esm-bundler.js, imported by node_modules\particles.vue3\dist\particles.vue.js
Version
1.22.0
Which library are you using?
Vue.js 3.x (particles.vue3)
tsParticles Configuration
background: {
          color: {
            //背景颜色
            value: '#171912',
          },
        },
        fpsLimit: 60,
        interactivity: {
          events: {
            onClick: {
              enable: true,
              mode: 'push',
            },
            onHover: {
              enable: true,
              mode: 'repulse',
            },
            resize: true,
          },
          modes: {
            bubble: {
              distance: 400,
              duration: 2,
              opacity: 0.8,
              size: 40,
            },
            push: {
              quantity: 4,
            },
            repulse: {
              distance: 200,
              duration: 0.4,
            },
          },
        },
        particles: {
          color: {
            value: '#49B896',
          },
          links: {
            color: '#ffffff',
            distance: 150,
            enable: false,
            opacity: 0.5,
            width: 1,
          },
          collisions: {
            enable: true,
          },
          move: {
            direction: 'none',
            enable: true,
            outMode: 'bounce',
            random: false,
            //粒子移动的速度
            speed: 1,
            straight: false,
          },
          number: {
            density: {
              enable: true,
              value_area: 800,
            },
            value: 80,
          },
          opacity: {
            value: 0.5,
          },
          shape: {
            type: 'circle',
          },
          size: {
            random: true,
            value: 3,
          },
        },
        detectRetina: true,
      }"

What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi, can you give me some instructions on how to reproduce the issue? I don't know how to create a Vite app. If you have a project that you can share or on GitHub is fine as well.

The project of our company cannot be uploaded to GitHub ， I'll create a new project to test. If there are still the same problems, I'll upload it to my GitHub
------------------ 原始邮件 ------------------
发件人: "Matteo @.>;
发送时间: 2022年1月20日(星期四) 下午4:16
收件人: @.>;
抄送<EMAIL_ADDRESS>@.***>;
主题: Re: [matteobruni/tsparticles] vite build  'Vue' is not exported by (Issue #2903)
嗨,你能给我一些如何复制的问题指示?我不知道如何创建访问页如果你有一个项目，你可以分享或者在 GitHub 上也可以。
—
直接回复此邮件，在 GitHub 上查看或者取消订阅.
GitHub Mobile 上的分流通知IOS 系统或机器人.
你收到了这是因为你是这个线程的作者。留言 ID @.***与>

Hi, can you give me some instructions on how to reproduce the issue? I don't know how to create a Vite app. If you have a project that you can share or on GitHub is fine as well.

Sorry, I just downloaded it from the new package and tried it. There was no error. Excuse me

Turn this off  pr


Tray: Add username to info

Changelog Description
Tray info received with /tray endpoint does return username.
Additional info
Username will be important check for running webactions, which can be available from the start of tray process. Cache the username as user change requires restart.
Testing notes:

You can get tray information to validate that "username" is there.

Would love to test - but how do I "get" this tray info? How do I request it? Do you have an example for dummies?

Would love to test - but how do I "get" this tray info? How do I request it? Do you have an example for dummies?

Oh, when you start a tray, you can open Admin > Console and do
import json
import requests
from ayon_core.tools.tray import get_tray_server_url

response = requests.get(f"{get_tray_server_url()}/tray")
print(json.dumps(response.json(), indent=4))

By the way, also works when running the code not from console in tray but e.g. from a DCC (to showcase the point that it does get it via the request)


Lifetime issue with query_as and String

I'm hacking on a SQL query builder kinda thing. It lets you write stuff like this:
let (query, binds): (String, Binds) = users::table.select(users::star).to_sql();

So basically its a DSL for creating SQL. The .to_sql() method returns the SQL as an owned String. I'm trying to add sqlx integration but I'm running into an issue executing queries that are owned Strings. Basically I'm trying to write a function like this:
async fn fetch_all_as<'q, 'e, O, E>(query: String, executor: E) -> Vec<O>
where
    'q: 'e,
    E: 'e + Send + RefExecutor<'e, Database = Postgres>,
    O: 'e + Send + Unpin + for<'c> FromRow<'c, PgRow<'c>>,
{
    let mut query = sqlx::query_as::<_, O>(&query);
    query.fetch_all(executor).await.unwrap()
}

That fails to compile with:
error[E0597]: `query` does not live long enough
  --> src/integrations.rs:26:44
   |
20 | async fn fetch_all_as<'q, 'e, O, E>(query: String, executor: E) -> Vec<O>
   |                           -- lifetime `'e` defined here
...
26 |     let mut query = sqlx::query_as::<_, O>(&query);
   |                                            ^^^^^^ borrowed value does not live long enough
27 |     query.fetch_all(executor).await.unwrap()
   |     ------------------------- argument requires that `query` is borrowed for `'e`
28 | }
   | - `query` dropped here while still borrowed

As far as I understand this fails because fetch_all requires that the lifetime of the SQL string being executed ('q in the docs) to be a subtype of 'e ('q: 'e). Since we're borrowing query inside the function it isn't tied to 'e or 'q in anyway and therefore it makes sense that it wouldn't live as long.
I've tried a whole bunch of things but cannot come up with anything that works. Any suggestions?
If you're interested this branch fails to compile because of this error.

0.3 misused the lifetime 'e to mean both the execution and the connection.
This is fixed on master. Execution methods use three lifetimes now:

'c for the connection
'q for the query string (and borrowed arguments for SQLite but not PostgreSQL or MySQL)
'e for the execution (the lifetime of the future produced by fetch_all, for example)

'c must outlive 'q and 'q must outlive 'e.
This should allow your example. A similar example is here: https://github.com/launchbadge/sqlx/blob/master/sqlx-core/src/postgres/transaction.rs#L36
The rollback_ansi_transaction_sql function returns a Cow<str>.


move function doesn't run 2nd time (in typescript)

Hello,
I am trying to run move function in a for-loop, its working fine during 1st loop but whenever i update my state it stops working, i am getting 'null' value.
let tempLiveGameMoves = liveGameData.ms;
for (var i = 0; i < tempLiveGameMoves.length; i++) {
let game_movement = game.move(tempLiveGameMoves[i].move, {sloppy:true});
console.log(game_movement);
}
i am new to typescript so can you pls me with this ? am i missing something ?

Hi @aniq-makrani.  Are you calling chess.reset() in between loops?  If not, the moves you're attempting (during the second loop) are illegal in the current board position.

Hi @jhlywa, i was using chess.reset() before my loop that's why it was not working, as you said i shifted it after my loop so its working now, thank you very much for your help :)


flutter-freezed plugin

Dart is awesome, but defining a "model" can be tedious. We may have to:

define a constructor + the properties
override toString, operator ==, hashCode
implement a copyWith method to clone the object
handling de/serialization

On top of that, Dart is also missing features such as union types and pattern-matching.
Implementing all of this can take hundreds of lines, which are error-prone and the readability of your model significantly.
Freezed tries to fix that by implementing most of this for you, allowing you to focus on the definition of your model.
https://pub.dev/packages/freezed

Creating these models by hand becomes even more complex when you are working with a GraphQL server that can handle nested mutations.
See this GraphQL Playground and ask yourself, how would I create a model to handle this nested mutation?
Please change the address in the playground to use https instead of http
# Write your query or mutation here
mutation createProgramme{
  createProgramme(input: {
    title: "GraphQL + Flutter",
    programmeCode: "graphql-dart-flutter-101",
    startLevel: 100,
    endLevel: 100,
    programmeOutlines: {
      create: {
        level: 100,
        course: {
          create:{
            title: "Flutter Freezed",
            courseCode: "CS-FF-101",
            books: {
              create:{
                title: "GraphQL is way awesome",
                author: "Parables Boltnoel"
              }
            }
          }
        }
      }
    }
  }){
    id
    title
    programmeCode
    programmeOutlines{
      level
      course{
        books{
          id
          title
          author
        }
      }
    }
  }
}

Fortunately enough, GraphQL is strongly typed, and so is Dart.
Save yourself from implementing a model to match your strongly typed GraphQL operations, and let Freezed handle the work while you chill with this flutter-freezedplugin
Currently supports the following features
Features
Currently, the plugin  supports the following features

[x] Generate Freezed classes for ObjectTypes
[x] Generate Freezed classes for InputTypes
[x] Support for EnumsTypes
[x] Support for custom ScalarTypes
[x] Support freeze documentation of class & properties from GraphQL SDL description comments
[x] Ignore/don't generate freezed classes for certain ObjectTypes
[x] Support directives
[x] Support deprecation annotation
[x] Support for InterfaceTypes
[x] Support for UnionTypes union/sealed classes
[x] Merge InputTypes with ObjectType as union/sealed class union/sealed classes

TODO:

[ ] Support Queries, Mutations, and Subscription: make it way easier to use GraphQL in flutter without going through any complex process. Inspired by KitQL

This plugin is now available here https://www.graphql-code-generator.com/docs/guides/flutter-freezed
For any issues relating to this plugin, open a new issue here and tag me @Parables.


Can't generate .cs file

When I tried to import Twine story into unity and I have a problem with generate .cs file from html
I get en error:
NotSupportedException: The invoked member is not supported in a dynamic module.
System.Reflection.Emit.AssemblyBuilder.get_Location () (at :0)
Cradle.Editor.StoryImporter+d__30.MoveNext () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:78)
System.Collections.Generic.HashSet1[T].UnionWith (System.Collections.Generic.IEnumerable1[T] other) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
System.Collections.Generic.HashSet1[T]..ctor (System.Collections.Generic.IEnumerable1[T] collection, System.Collections.Generic.IEqualityComparer1[T] comparer) (at <1b13ba6391c74847bbc3eddc86df7eee>:0) System.Collections.Generic.HashSet1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
Cradle.Editor.StoryImporter.Transcode () (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/StoryImporter.cs:42)
Cradle.Editor.CradleAssetProcessor.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at C:/Projects/(external)/Cradle/unity/Cradle/Assets/Cradle/.src/Cradle.Editor/Editor/CradleAssetProcessor.cs:83)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:141)
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
PS: I'm using mac

Hi, this was fixed in #74, if you're using the asset store version it hasn't yet been updated. I recommend cloning the repository straight into your project.


Adding and deleting edges don't affect loaded edges array on GPNode

Proposal

If removeAll is called then set loaded edges to empty array (if loaded)
If removeEdge is called, remove that edge from loaded array  (if loaded)
if addEdge is called and that edge type is loaded, add that edge to loaded array.

@WilsonGregory

This all makes sense to me, it reduces the need for a bunch of saves. You can do a bunch of operations, and then save at the end.