Multi-threaded IDCT

Spawn a thread for each color component in IDCT. Should in theory speed up IDCT by 3x and the entire process by like 2x, but only speeds up end-to-end decoding a bit because we get bottlenecked by the reader thread instead.
The code probably isn't the cleanest, since I wrote this at 5AM, so I'm open to feedback here. The code I started with also wasn't the cleanest, but that's not much of an excuse.
I've run cargo test but haven't tested this on real-world images.

I've tested this on a few images I had lying around, and it seems to be good to go.
The only concern I have is that we parallelize up to 4 threads unconditionally up from the previous default of 2 threads, but seeing that threads are very cheap (I can spawn and joun 50,000 of them per second on a single core) and there's plenty of memory allocation happening regardless for a typical image, I don't see that being a problem.


Error when creating manual connection on <IP_ADDRESS>

I'm trying to add a Docker instance that is available on <IP_ADDRESS>:2375 (but it's not managed through either Docker for Mac or docker-machine), but there's an error message below the IP saying "Local IP added for default connection.".

Hi @wesleylancel
Doh. Yep, we made a validation for unique IP.
So, I think that we'll remake "Connection manager" also we'll looking some additional ways for working with local Docker.

So. We found a solution and we'll publish it into a next release.
Right now you can make a bit lifehack.
Export your settings

Then unzip the settings file, open the settings file via any text editor. And change connections object. Add into this object next
{"name":"Local Docker","ip":"<IP_ADDRESS>","port":2375,"more13":true,"certificate_ca":"","certificate":"","certificate_pk":"","type":"plain","key":"ab85c785-1771-4a09-826f-7f12477ccd7d"}

Then save changes. Zip the changed settings file and import settings into app.

Thanks for finding a solution! Though I don't seem to have that option in my menu bar, just has one label "Dockstation" with a "Quit" item in it.

Hm... What is your OS?

macOS Sierra

Checked. You're right. The menu will load after Docker inits. We'll fix that bug too.
Ok. Your config file is located ~/Library/Application Support/dockstation/Settings.
You can do it manually. But before, I advise to make a backup of the Settings file.

Thanks! It now connects to the Docker instance and shows all my containers in the "Containers" tab. Only thing that doesn't seem to be working yet is the "Projects"-tab, but that's probably related to no Docker being initialized?

Unfortunately, you can't work with Projects right now because for working with Project need to init local connection. Right now you connected like as remote connection.
We'll add options to preferences of the app for set init local connection, where you can set your connection as default.

Great, thanks, will wait for that!


Issue with space between number and character(s) && same with lambda expression

Description

If we have a word starting with number and appended with character(s) then after formatting
there is space between number and character(s).
I was using js-beautify for Jave code formatting as well, but whenever I am using lambda expression("->"), it put a space between symbols.

Input
The code looked like this before beautification:
// 1
function() {
    return 0L;
}

// 2
arrL.forEach(n -> {
    if(n % 2 == 0) System.out.println(n);
});

Expected Output
The code should have looked like this after beautification:
// 1
function() {
    return 0L;
}

// 2
arrL.forEach(n -> {
    if(n % 2 == 0) System.out.println(n);
});

Actual Output
The  code actually looked like this after beautification:
// 1
function() {
    return 0 L;
}

// 2
arrL.forEach(n - > {
    if(n % 2 == 0) System.out.println(n);
});

Environment
OS: Windows
JSBeautify Version : 1.10.2
Settings
Example:
{
    'indent_size': 4,
        'space_in_empty_paren': false,
        'space_in_paren': false,
        'space_before_conditional': false,
        'space_after_anon_function': false,
        'space_after_named_function': false,
        'brace_preserve_inline': true,
        'unescape_strings': true
}

It should be configurable please

Not sure about anything else, but I don't think 0L is valid JavaScript.

Java formatting is not supported.


Check compliance before rolling out

The step-by-step example now checks the compliance previous to plan application. This approach is better suited for use with productive environments.

@8-bit-fox Thanks for the contribution! Merging now.


Fix decode option type

Hello again.
README doc saying below.
encode: (sid) => (sid ? 's:' + signature.sign(sid, secret) : null),

This is mismatched with types.ts at the moment.
The real usage is here https://github.com/hoangvvo/next-session/blob/master/src/core.ts#L157-L159 .
  if (sessId && options.decode) sessId = options.decode(sessId);

  const sess = sessId ? await options.store.__get(sessId) : null;

~And I get this supports falsy values correctly, so I thought this is the types.ts problem.~
Sorry, little confused. Maybe around decode, this pr is applicable.
The side of encode, this may be documentation problem. To make matching with types.ts, it will be like...
encode: (sid) => 's:' + signature.sign(sid, secret),

I, however, am not sure this may not be served nullish values...

Thanks this makes sense. We may choose to return null if the sessionId is invalid/badly encoded.


getAuthorizeUrl and getAccessToken

Two minors updates

Hey Gary, Thanks for the PR.  The purpose of this plugin is that it continues to work with PHP 4.    This may still not be an issue, I've been out of the PHP world for a few years now.  But this was the purpose when it was created.


Update Docker Hub description with JDK17 images instead of JDK11

The current Docker Hub description mentions JDK11 images while the default JDK has been switched to JDK17 since #1724.
This description should be updated.
https://hub.docker.com/r/jenkins/jenkins

Good catch! Updating it now

Done:


Tweak the linux-cross image

Downgrade arm gcc to 4.7
Downgrade aarch64 gcc to 4.8
Install powerpc compilers (4.8)
Install a rumprun compiler

r? @brson

r? @brson
(rust_highfive has picked a reviewer for you, use r? to override)

cc @antonblanchard, is there a powerpc64 toolchain for Linux? I was able to find a powerpc and a powerpc64le one, but unfortunately not just a powerpc64. If there's one readily available I wouldn't mind modifying this image and start cranking out nightlies/releases for the target!

Ok, deployed this image.
rumprun isn't enabled yet as it needs fixes in std, but should be up soon.

Thanks @alexcrichton! gcc-4.8-powerpc-linux-gnu contains a biarch toolchain (ie use powerpc-linux-gnu-gcc -m64 for 64bit). You should just need a libc (libc6-dev-ppc64-powerpc-cross).

Oh excellent, I'll try that out, add it to the list of targets, and see what happens.

Hm, so in a docker container I get:
root@784e90c16040:/# apt-get install gcc-4.8-powerpc-linux-gnu libc6-dev-powerpc-cross libc6-dev-ppc64-powerpc-cross
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6-dev-powerpc-cross is already the newest version.
libc6-dev-ppc64-powerpc-cross is already the newest version.
gcc-4.8-powerpc-linux-gnu is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@784e90c16040:/# echo 'int main() {}' > foo.c
root@784e90c16040:/# powerpc-linux-gnu-gcc-4.8 foo.c -m64
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-gnu/4.8/libgcc.a when searching for -lgcc
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: cannot find -lgcc
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-gnu/4.8/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: skipping incompatible /usr/powerpc-linux-gnu/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: cannot find libgcc_s.so.1
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-cross/powerpc-linux-gnu/4.8/libgcc.a when searching for -lgcc
/usr/lib/gcc-cross/powerpc-linux-gnu/4.8/../../../../powerpc-linux-gnu/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status

Perhaps another package is necessary? It also looks like the CROSS_PREFIX in the makefiles may be wrong if it uses the same compiler with just a -m64 flag

Looks like the image might be missing lib64gcc-4.8-dev-powerpc-cross. I can fire up a container tomorrow to verify exactly what needs to be installed.

Ah yeah that did the trick!


[material-ui][Avatar] Add AvatarGroup spacing demo

We didn't have a spacing demo for the AvatarGroup component.
Preview: https://deploy-preview-44209--material-ui.netlify.app/material-ui/react-avatar/#spacing

I'll rebase on top of master after https://github.com/mui/material-ui/pull/44208 is merged.


Make Build pass on Java 12 and add Java 12 build to Travis

Coverage remained the same at 90.329% when pulling 1b3febaeca7174c64fe0f0a1ba480ee57ce83306 on PascalSchumacher:java_12 into 2a5f27c06b711c588c9f2ec4f8f66a092a4247ef on benas:master.


feat(objectmanager): add option for excluding nested obj on request

Codecov Report

Merging #455 into master will increase coverage by 0.87%.
The diff coverage is 88.23%.

@@            Coverage Diff             @@
##           master     #455      +/-   ##
==========================================
+ Coverage   62.85%   63.73%   +0.87%
==========================================
  Files          71       71
  Lines        4267     4282      +15
==========================================
+ Hits         2682     2729      +47
+ Misses       1367     1329      -38
- Partials      218      224       +6

Impacted Files
Coverage Δ

pkg/objectmanager/objectmanager.go
56.81% <88.23%> (+8.52%)
:arrow_up:

pkg/object/is.go
28.12% <0.00%> (+1.56%)
:arrow_up:

pkg/object/value.go
47.09% <0.00%> (+3.22%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b515c5c...36756cf. Read the comment docs.


Maybe a test for mayavi install should be include in setup.py?

This may be related to https://github.com/Davide-sd/sympy-plot-backends/issues/7.
I updated the conda install for the jupyter hub I maintain to the most recent version of python it will support (3.10.3). The install of sympy-plot-backends (great tool!) failed because the mayavi pip install fails to build the wheel. However, I got it to work by installing mayavi2 on my server using the ubuntu/debian package manager system. Then pip install -U sympy-plot-backends succeeds.
Could a test for a successful install of mayavi be added to setup.py, that outputs the suggestion to install it using the system package manager if there is a failure? The mayavi python package seems to be delicate.

Could a test for a successful install of mayavi be added to setup.py, that outputs the suggestion to install it using the system package manager if there is a failure? The mayavi python package seems to be delicate.

I was afraid that would happen. As I'm not an expert about maintaining a package, I'll have to dig into the setup.py documentation to verify if it's possible to catch such failures. But I'll look into it next week. Thank you for letting me know about this problem.

I am not an expert on setup, but I have used conditional installs (based on OS). You might be able to test for a valid install of mayavi2 (not sure the best way to do that across many OSes) and set some boolean as the condition for installing mayavi. You could then use that boolean to issue a warning to the user as well.
I assume your package would still work as long as mayavi is not used.

I'm going to close this issue, even though I didn't solve it :( In the last few weeks it has become even harder to install Mayavi on different combinations of OS/python. Unfortunately, I don't have time to invest into this. Instead, I've removed Mayavi from the setup dependency: MayaviBackend is still available and is tested on my local machine. I've also updated the documentation (install section) letting users know that if they want to use MayaviBackend they have to install Mayavi.


Refactoring and more

Here is some of the refactoring and other changes in very small commit chucks. There is more refactoring and other changes still to add, but thought you might like to see what I have split up so far.
Note that engine will replace clock later, but there are both here for now.
Welcome your feedback :)

That is it for a bit. Just have the last of the engine change later.

Much better and easier to read. Nice work.
While a size of each commit is correct, one PR shouldn't have 35 commits. You do unrelated many things at the same time. Please split this PR to some PRs considering its purpose or topic. At least "refactoring" and "more" (bug fixes?) MUST be separated PRs.
 Of course, current sources have some meaning to be as they are. Thus "refactoring" is hardly merged. I saw your changes briefly, but they included what based on your personal habits. I want to pick some of them but it's a little hard work if PR has 35 commits.
Please create multiple branches depending on its topic and open PRs for each branch.


[FLINK-31305] fix error propagation bug in WriterCallback and use Tes…

…tSinkInitContext general purpose sink testing tool
What is the purpose of the change
Fixes a regression of a fix to properly propagate the error from WriterCallback. Also improve unit test to capture the case.
Brief change log

fix error propagation bug in WriterCallback and use TestSinkInitContext general purpose sink testing tool

Verifying this change
This change added tests and can be verified as follows:

Added unit tests and ran existing unit tests, integration tests, and e2e tests.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): yes
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: yes
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

@flinkbot run azure

+1, LGTM. Thanks again for fixing this @mas-chen!


Display error tile

Related to: https://github.com/CartoDB/cartodb.js/issues/1717
Cartodb.js PR: https://github.com/CartoDB/cartodb.js/pull/1721
This PR only updates the dependencies.

Error in deploy. Back to Development


Not converting scripts

Version 1.2 from Ludwig Von Drake gives me this error and force close on Windows 10/64 and converted.txt is created but blank
C:\Users\myname\path\test.duck
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Disregard it, not sure where I got ".duck" from


error 500 on https://federa.site/

the website gives error 500 on it
https://federa.site/

Looks like it was working, but for me only.
It should be fixed now.

k, so for me it works fine in chromium, with curl, but not with firefox.
also, i tried to send a direct message, and an indirect message with my mastodon account to my group<EMAIL_ADDRESS>but it is not retooted.
also tried with<EMAIL_ADDRESS>but no retoot


Release Qualification - fortestonly

This is a generated PR that triggers release qualification tests, and will be automatically merged if all tests pass. In case some test fails, you can manually rerun the failing tests using /test. Force merging this PR will suppress the test failures and let the release pipeline continue.
none

@hklai: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

prow/istio-unit-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

prow/istio-unit-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-unit-tests

prow/daily-e2e-rbac-auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

prow/istio-unit-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-unit-tests

prow/daily-e2e-rbac-auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth-default

prow/daily-e2e-cluster_wide-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-cluster_wide-auth-default

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

prow/istio-unit-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-unit-tests

prow/daily-e2e-rbac-auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth-default

prow/daily-e2e-cluster_wide-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-cluster_wide-auth-default

prow/daily-e2e-rbac-no_auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-perf-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-perf-tests

prow/daily-e2e-rbac-no_auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth-default

prow/istio-unit-tests.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test istio-unit-tests

prow/daily-e2e-rbac-auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth

prow/daily-e2e-rbac-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-auth-default

prow/daily-e2e-cluster_wide-auth-default.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-cluster_wide-auth-default

prow/daily-e2e-rbac-no_auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-rbac-no_auth

prow/daily-e2e-cluster_wide-auth.sh
10a4c36b6fd4a01a1ddc81657a1aed15195a19e9
link
/test daily-e2e-cluster_wide-auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


chore: removed deprecated config.package type

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Support for config.package was removed in #8922 (10 month ago) but the type declaration survived the svelte-kit v2 major version. I guess it should be removed now, as I tried using it (encouraged by the type declaration) and failed with this message
> config.package is no longer supported. See https://github.com/sveltejs/kit/discussions/8825 for more information.
    at load_config (file:///@sveltejs/package/src/config.js:21:9)
    at async file:///@sveltejs/package/src/cli.js:29:19

It may be time to remove this message too, it can be found here:
https://github.com/sveltejs/kit/blame/main/packages/package/src/config.js#L20-L24
Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Should we remove these lines too?
https://github.com/sveltejs/kit/blob/31512a998fa0d1beefee7e7a174845f75426dacc/packages/package/src/config.js#L20-L24

No, we should do this in @sveltejs/package version 3 (so that people upgrading from 1 to 2 get a good error message)


UI: gnosis staking

this feature pr adds support for gnosis staking. included are style adjustments, code cleanup, and minimal changes to the hooks and calculations to support multiple chains and network switching.
matic staking (left image shows the same calculated results as the current live site):

gnosis staking:

this query debugger is really cool. It won't render on live site right?

this query debugger is really cool. It won't render on live site right?

@miguelmota yep, it's not compiled for production builds


Debugging Decision Tree

Since I had an issue with DecisionTree classifier which was aborting with following error:
RuntimeError: No best split was found
I tried using the debug_one function instead of predict_one, but I get following error at the first step:
AttributeError: 'Leaf' object has no attribute 'class_counts'

Good catch, this is something I ignored while focusing on the performance. I'll get it fixed soon and will add some unit tests. Cheers!

Fixed in 1ca1eb6.

For me this error still occurs when I call the fit_one function.
I have attached the complete error:

~/.local/lib/python3.7/site-packages/creme/tree/decision/tree.py in fit_one(self, x, y)
54
55     def fit_one(self, x, y):
---> 56         self.root = self.root.update(x, y)
57         return self
58
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
11     def update(self, x, y):
12         if self.split(x):
---> 13             self.left = self.left.update(x, y)
14             return self
15         self.right = self.right.update(x, y)
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
13             self.left = self.left.update(x, y)
14             return self
---> 15         self.right = self.right.update(x, y)
16         return self
17
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in update(self, x, y)
71
72         # Search for the best split given the current information
---> 73         top_2_diff, split = self.find_best_split()
74
75         # Calculate the Hoeffding
~/.local/lib/python3.7/site-packages/creme/tree/decision/node.py in find_best_split(self)
127
128         if best_split is None:
--> 129             raise RuntimeError('No best split was found')
130
131         return best_gain - second_best_gain, best_split
RuntimeError: No best split was found

Hey @dobinder. Could you provide a reproducible example?

@MaxHalford I can try to. The problem is that I'm working with a quite large non public dataset. So I'm not sure what the best way would be to create a reproducible example. I'll try to reproduce the error with one of the included datasets and put it in here if I can.
What I can tell for now is that I perform a multiclass classification with this model:
tree.DecisionTreeClassifier(max_depth=100,max_bins=60,min_child_samples=2)

Actually what you can do before that is to install the latest development version. It's likely that it will fix this bug. You can install with pip install git+https://github.com/creme-ml/creme --upgrade. We should making be making a release in around 2 weeks time.


[CLI]: passing certain data to run.summary.update() causes indefinite hang on run.finish() upload step

Describe the bug

Calling .finish() or otherwise closing a session will hang indefinitely on upload if you pass to run.summary.update() a nested dict with a key _type, not at the root level, with a string value longer than 64 chars. Setting mode="offline" in wandb.init prevents this.

import wandb

run = wandb.init()
run.summary.update({
	"any key works": { # needs to be nested at least once
		"_type": # key must be this string exactly
		# "any suffciently long string will break this aaaaaaaaaaaaaaaaaaaa" # run finishes fine (64 chars)
		  "any suffciently long string will break this aaaaaaaaaaaaaaaaaaaaa" # loops forever (65 chars)
	}
})
run.finish()

code hands indefinitely when attempting to upload on run.finish(). terminating during this gives the traceback
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
File ~/my_script.py
---> 88 run.finish()

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:450, in _run_decorator._noop.<locals>.wrapper(self, *args, **kwargs)
    447         wandb.termwarn(message, repeat=False)
    448         return cls.Dummy()
--> 450 return func(self, *args, **kwargs)

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:391, in _run_decorator._attach.<locals>.wrapper(self, *args, **kwargs)
    389         raise e
    390     cls._is_attaching = ""
--> 391 return func(self, *args, **kwargs)

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:2147, in Run.finish(self, exit_code, quiet)
   2133 @_run_decorator._noop
   2134 @_run_decorator._attach
   2135 def finish(
   2136     self, exit_code: Optional[int] = None, quiet: Optional[bool] = None
   2137 ) -> None:
   2138     """Mark a run as finished, and finish uploading all data.
   2139
   2140     This is used when creating multiple runs in the same process. We automatically
   (...)
   2145         quiet: Set to true to minimize log output
   2146     """
-> 2147     return self._finish(exit_code, quiet)

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:2181, in Run._finish(self, exit_code, quiet)
   2178 self._is_finished = True
   2180 try:
-> 2181     self._atexit_cleanup(exit_code=exit_code)
   2183     # Run hooks that should happen after the last messages to the
   2184     # internal service, like detaching the logger.
   2185     for hook in self._teardown_hooks:

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:2430, in Run._atexit_cleanup(self, exit_code)
   2427         os.remove(self._settings.resume_fname)
   2429 try:
-> 2430     self._on_finish()
   2432 except KeyboardInterrupt:
   2433     if not wandb.wandb_agent._is_running():  # type: ignore

File ~/Python/Lib/site-packages/wandb/sdk/wandb_run.py:2695, in Run._on_finish(self)
   2692 exit_handle.add_probe(on_probe=self._on_probe_exit)
   2694 # wait for the exit to complete
-> 2695 _ = exit_handle.wait(timeout=-1, on_progress=self._on_progress_exit)
   2697 poll_exit_handle = self._backend.interface.deliver_poll_exit()
   2698 # wait for them, it's ok to do this serially but this can be improved

File ~/Python/Lib/site-packages/wandb/sdk/lib/mailbox.py:283, in MailboxHandle.wait(self, timeout, on_probe, on_progress, release, cancel)
    280     if self._interface._transport_keepalive_failed():
    281         raise MailboxError("transport failed")
--> 283 found, abandoned = self._slot._get_and_clear(timeout=wait_timeout)
    284 if found:
    285     # Always update progress to 100% when done
    286     if on_progress and progress_handle and progress_sent:

File ~/Python/Lib/site-packages/wandb/sdk/lib/mailbox.py:130, in _MailboxSlot._get_and_clear(self, timeout)
    128 def _get_and_clear(self, timeout: float) -> Tuple[Optional[pb.Result], bool]:
    129     found = None
--> 130     if self._wait(timeout=timeout):
    131         with self._lock:
    132             found = self._result

File ~/Python/Lib/site-packages/wandb/sdk/lib/mailbox.py:126, in _MailboxSlot._wait(self, timeout)
    125 def _wait(self, timeout: float) -> bool:
--> 126     return self._event.wait(timeout=timeout)

File ~/Python/Lib/threading.py:655, in Event.wait(self, timeout)
    653 signaled = self._flag
    654 if not signaled:
--> 655     signaled = self._cond.wait(timeout)
    656 return signaled

File ~/Python/Lib/threading.py:359, in Condition.wait(self, timeout)
    357 else:
    358     if timeout > 0:
--> 359         gotit = waiter.acquire(True, timeout)
    360     else:
    361         gotit = waiter.acquire(False)

KeyboardInterrupt:

Additional Files
No response
Environment
WandB version: 0.17.7 but confirmed to work on other versions
OS: os-independent, bug is in backend
Additional Context
If for some reason supporting this specific structure of data is not practical, it should be relatively easy to add a check in SummaryDict.update() which throws an exception (or at least a warning) if such data is passed. Currently, the failure mode is very non-obvious to anyone encountering this issue.
I already mentioned this problem in https://github.com/wandb/wandb/issues/6803, but this is distinct from the unicode related bug diagnosed there.

Thanks for filing the issue!
It's specifically the _type field which oddly has a length limit on the value. When the SDK tries to upload the summary, it receives an HTTP 422 error which it then retries for a long time. We definitely shouldn't be retrying 422 (https://github.com/wandb/wandb/pull/8160). There's also work to improve messaging in the console so that it's clear when the SDK is stuck in a retry loop, but that's a little while from now.
I admit that it's surprising that _type is special. I'm not sure if we'll be able to change that, but we should at least check it and raise an error.


Cannot generate nested ref of JSON Schema properly

What are the steps to reproduce this issue?
server.yaml
openapi: 3.0.3
info:
  title: test
  version: 0.0.1
servers:
  - url: abcd.com
paths:
  /signup:
    get:
      operationId: getTest
      responses:
        200:
          description: test
          content:
            application/json:
              schema:
                $ref: 'abc.yaml#/User'

abc.yaml
RoleName:
  type: string
  enum:
    - A
    - B
    - C

User:
  type: object
  required:
    - role
  properties:
    role:
      $ref: '#/RoleName'

What happens?
If there are nested Ref call in JSON Schema, mock does not work properly
Problem is that when I generate mock with server.yaml
import { rest } from 'msw';

export const getGetTestMock = () => ({ role: {} });

export const getTestMSW = () => [
  rest.get('*/signup', (_req, res, ctx) => {
    return res(
      ctx.delay(1000),
      ctx.status(200, 'Mocked status'),
      ctx.json(getGetTestMock()),
    );
  }),
];

Mock Response for this api is empty object
…
What were you expecting to happen?
import { rest } from 'msw';
import { faker } from '@faker-js/faker';

export const getGetTestMock = () => ({
  role: faker.helpers.arrayElement(['A', 'B', 'C']),
});

export const getTestMSW = () => [
  rest.get('*/signup', (_req, res, ctx) => {
    return res(
      ctx.delay(1000),
      ctx.status(200, 'Mocked status'),
      ctx.json(getGetTestMock()),
    );
  }),
];

It should be faker of enums.

Hello @Kanary159357, I did a fix that will be in the next release. Just on your server.yaml specification this ref $ref: '#abc.yaml#/User' should be $ref: 'abc.yaml#/User' right?

RIght It was mistake!

works very well! Thanks


Improve tracetools rosdoc2/doxygen output

This documents the new TRACEPOINT_ENABLED()/DO_TRACEPOINT() macros.
This also modifies tracetools' Doxyfile to improve the rosdoc2 output.  Unfortunately, due to the macro wizardry with the tracepoint declarations in tracetools.h (see DECLARE_TRACEPOINT()), I can't quite get Doxygen to detect the generated functions for the tracepoints properly, so the generated documentation unfortunately does not list the tracepoints. It's at least better than the current output, which is pretty useless: https://docs.ros.org/en/humble/p/tracetools/generated/index.html
Signed-off-by: Christophe Bedard<EMAIL_ADDRESS>

@clalancette do I need to run ROS 2 CI for this? :thinking:

Let's just test tracetools just to be safe and to get this out of the way:

Linux
Linux-aarch64
Windows


Function with arguments in a spec file not parsed correctly?

The code (using Mocha + Chai + expect):
    it('should convert the arguments of a function to an array', function () {
      var testFn = function (a, b, c) {
        return utils.toArray(arguments);
      };
      expect(testFn(1, 2, 3)).to.deep.equal([1, 2, 3]);
    });

Run as above outputs:
error  'c' is defined but never used  no-unused-vars
Remove the third argument:
    it('should convert the arguments of a function to an array', function () {
      var testFn = function (a, b) {
        return utils.toArray(arguments);
      };
      expect(testFn(1, 2)).to.deep.equal([1, 2]);
    });

Run as above outputs:
error  ‘b' is defined but never used  no-unused-vars
And then the same if you take it all the way down to just a.
Same happens if I try it as a named function versus a variable.
Config via package.json:
  "xo": {
    "envs": [
      "browser"
    ],
    "globals": [ "it", "describe", "beforeEach", "afterEach", "before", "after" ],
    "ignore": "src/lib/*.js",
    "rules": {
      "no-unused-expressions": 0
    },
    "space": true
  }

Yes, that's how the no-unused-vars rule works. You never directly use any of the a b c arguments.

Also, instead of defining globals, do this instead:
"envs": [
      "browser",
      "mocha"
]

Hint: remove the arguments 💃 Javascript functions will take any arguments you pass them, but any arguments outside the various named arguments are only accessible in arguments. Therefore, change function (a, b, c) to just function () and it'll work as expected and XO won't be throwing any errors.

I wasn't clear in calling out the root issue - not that it's reporting the error, but that it's only finding the last argument and calling out that error, versus seeing three errors. Unless the eslinting process normally only returns the last error on any given line, it should throw an error for all three arguments that are declared but not used - a, b, and c.
If I include a statement such as var a, b, c; but never use those again, xo correctly reports errors for all three (as well as the expected one-var error). That's what I'd expect from the case above. Because it is always the last argument that causes the error, it feels that there is a parsing/tree error somewhere that's failing to properly iterate through all the passed arguments.
Does that seem reasonable or is this working as expected and I'm missing something else?
Thanks for the hint about the mocha environment.
@Qix- DOH, I should have thought of that. Once I wrote the initial expect line, I zeroed in on passing the three arguments. Thanks.

@plumlee I agree. Probably an oversight. Can you open an issue about it on the ESLint issue tracker? That's what's used underneath for the linting and where that rule belongs.

A direct run of eslint at their most current version (2.11.1) against the same file gives no errors. So I suspect that it's already fixed, but will fork xo and test with that version and get back to you.

@plumlee not sure if I'm wrong here but ESLint doesn't show any errors without being configured. Have you tried updating the version used by XO and testing against it?

That's my test plan for tonight.

@Qix- you were correct. Steps:

fork xo repo
2.edit package.json to require eslint 2.11.x
in that directory run npm link
jumped to my repo with the code above and ran rm -rf node_modules/xo && rm -rf node_modules eslint*
ran npm link xo
Ran the test and I still get the error.

Opened an issue on the eslint repo: https://github.com/eslint/eslint/issues/6316

@Qix- See the link above for their response; this is expected behavior. It could be overridden in the xo configuration, but seems to me that might be getting into the weeds with eslint config. I have no issue with closing this now, even though it’s non-obvious if you don’t do a deep dive into the rules. My own preference would be to have it set to all, but that might start throwing a lot of errors people are not used to seeing.

Ah makes sense. That's a call by @sindresorhus but that's a tricky situation.


Vitest integration

Adds testing supporting via Vitest
Converts existing tests to be run with Vitest
Adds input/output build directory options to the keycloakify build options
Adds a new script test:keycloakify-starter which can be used to test the latest version of keycloakify-starter with the local changes you have

Hi @willwill96,
Just a few thing that I noticed on this PR.

We have to be carefull with path, we need to support windows.
Coding style ( JSON style object declaration:  always " on keys)
Naming convention appInputPath keycloakBuildPath are lack consistency, for example we already had established reactAppBuildDirPath.
We parse the build option all in one place. the src/bin/keycloakify/build-path.ts make a lot of function that where previously pure and easy to reason about dependent to the CWD.
There is almost never a good usecase for else
Never use non boolean as boolean ( path === undefined instead of !path)
In the bin directory you can use the path module.
When introducing new build options they need to be documented. https://github.com/keycloakify/docs.keycloakify.dev/blob/v7/build-options.md
I'd rather avoid upper case const at the top of the file.
For top level function we use function  istead of arrow funct ( because it's the convention of the Deno codebase and function are evaluated first.)

I refactored:  https://github.com/keycloakify/keycloakify/commit/53e38336fbf6ae81f04cff5e25dc2ae647959eef

Sorry for those mistakes and thank you for extra context @garronej!
A couple points of clarification:
2. Just curious, what is the reasoning for this? If it's just code styling, I wonder if prettier could enforce this: https://prettier.io/docs/en/options.html#quote-props
4. I found it easier to reason about having all the logic relating to build paths in one spot without needing to worry about potential circular dependencies, but that may just be personal preference. I agree it makes more sense to expose the options through readBuildOptions though.
8. Ah okay, I was actually wondering where the docs lived. Side note: have you considered converting keycloakify, keycloakify-starter and the docs into a single mono-repo setup? I understand this might take some special considerations but I think it would make it easier to make changes like this (1 PR vs worst case 3 PRs). I can see value in keeping the starter repo separate to make cloning/forking easier, but I could also see it being handled by a generator (ex yeoman).
9. Is the preference camelcase and when necessary instead?

Sorry for those mistakes and thank you for extra context @garronej!

I wouldn't call this mistakes, your PR was legit one of the best I ever revied, and I review a lot. Just some little adjustments if we are going to collaborate.

Just curious, what is the reasoning for this? If it's just code styling, I wonder if prettier could enforce this: https://prettier.io/docs/en/options.html#quote-props

Unfortunately there is no prettier option to enforce this, "preserve" is as close as it gets.
I know this coding style is not standard but it makes my life easyer.
I'm dislexic and without this syntax I have a hard time distinguishing type definition and object instantiation.
JSON style object declaration make it clearer, it makes keys orange.

I found it easier to reason about having all the logic relating to build paths in one spot without needing to worry about potential circular dependencies, but that may just be personal preference. I agree it makes more sense to expose the options through readBuildOptions though.

I explained my point poorly.
Look at it this way, for every function we have to be carefull of a few thing:

Does the function depend of the cwd.
Does the function read/write on the fs.

I would like that the only function that read process.cwd() be the main(), I would like the cwd to be passed as parametter (ad projectRootPath) to every function that needs it.
I pefer having a single function that parse all the options, assigns default ect.
I don't think there is any circular dependencies in the current state of things.

Ah okay, I was actually wondering where the docs lived. Side note: have you considered converting keycloakify, keycloakify-starter and the docs into a single mono-repo setup? I understand this might take some special considerations but I think it would make it easier to make changes like this (1 PR vs worst case 3 PRs). I can see value in keeping the starter repo separate to make cloning/forking easier, but I could also see it being handled by a generator (ex yeoman).

If the Markdown files was actually where I wrote the doc I would do it but I redact the documentation using GitBook's what you see is what you get editor. It saves a ton of time.  I sent you an invite in DM.

Is the preference camelcase and declared when necessary instead?

Yes, this is just a matter of taste. Also whenever possible I do not create variable when it's not used more than once.
Thanks for taking the time to give feeback on this.


Completed case studies for Cogniden and Blocchat

Description : Added case studies for Cogniden and Blocchat.

@praveenyr these are the best student case studies I have ever seen. Really well done. I'm very proud of you!


Update CONTRIBUTERS.MD

What type of PR is this? (check all applicable)

[x] 🚀 Added Name
[ ] ✨ Feature
[ ] 🌟 stared the repo
[ ] 🐛 Grammatical Error
[ ] 📝 Documentation Update
[ ] 🚩 Other

Description
Add Link of GitHub Profile

you filled 1 in starred repo section but you have not starred repo.
so fill 0 if you dont want to star the repo esle star the repo

I Starred The Repo
On Wed, Oct 28, 2020 at 4:05 PM Keshav Singh<EMAIL_ADDRESS>wrote:

Merged #202
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202 into
master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202#event-3931440696,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7AOBC6GVLO4LYEMEKOXL3SNAQLRANCNFSM4TB7D7XQ
.

I Starred The Repo
…
On Wed, Oct 28, 2020 at 4:05 PM Keshav Singh @.***> wrote: Merged #202 <#202> into master. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#202 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7AOBC6GVLO4LYEMEKOXL3SNAQLRANCNFSM4TB7D7XQ .

you haven't starred my repo.
check this repo where you starred my repo

Done
On Thu, Oct 29, 2020 at 12:11 AM Keshav Singh<EMAIL_ADDRESS>wrote:

I Starred The Repo
… <#m_7223384213222506939_>
On Wed, Oct 28, 2020 at 4:05 PM Keshav Singh @.***> wrote: Merged #202
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202 <#202
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202> into
master. — You are receiving this because you authored the thread. Reply to
this email directly, view it on GitHub <#202 (comment)
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202#event-3931440696>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7AOBC6GVLO4LYEMEKOXL3SNAQLRANCNFSM4TB7D7XQ
.
you haven't starred my repo.
check this repo where you starred my repo
https://github.com/keshavsingh4522/hacktoberfest2020/stargazers
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/keshavsingh4522/hacktoberfest2020/pull/202#issuecomment-718237861,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7AOBH37NNNKL5N2ZXK3SLSNCJHPANCNFSM4TB7D7XQ
.


Key source

I am trying to find the source of this key:
https://github.com/nlowe/mousiki/blob/33edafcc14b04df33620a6a383b0d964ff585816/pandora/api/legacy.go#L26
added here:
https://github.com/nlowe/mousiki/commit/01ba342d21f64194077bdb882264bd8c5369e2b2

Found it:
com\pandora\constants\PandoraConstants.java
8:    public static final byte[] b = "6#26FRL$ZWD".getBytes(Charset.defaultCharset());

https://github.com/skylot/jadx


making caches persistent an option for standby pipelines

What is the goal / desired outcome?
When using standby, startup time can be slow as the cache is filled.  It would be nice to have a pipeline returning from standby get a prefilled cached so it comes in hot.
If there is a way to accomplish this today via workaround, what does that require?
No workaround
(Optional) What is your proposal for a feature to solve this?
This should be an option when specifying standby for a pipeline, as it's unclear if it applies to all use cases for standby.

Environment?:

Kubernetes version (use kubectl version):
Pachyderm CLI version (use pachctl version):
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS (e.g. from /etc/os-release):
Others:
gz#17

Agent comment from Dale Georg in Zendesk ticket #17:Feature request is open as a Github issue (#4785); closing the Support request.


fix(progress): moves aria attributes to improve screenreader results

Fixes #1456

Deploy preview for pf-next ready!
Built with commit fcb9775da81cfef77f233f714cdb873e2a7ccea4
https://deploy-preview-1561--pf-next.netlify.com


AddScript Method does not work when hosting PS core remoting script in dot net core console application.

Hello,
I've been experiencing some issues with the AddScript method when hosting PowerShell core in dotnet core console application.
The issue is that the method does not execute when running the application when there is PowerShell core remoting script. I've tested different ways to import the script inside the console app and every time I get the same issue, which is AddScript method doesn't do anything when  running PS core remoting script. AddSciprt method works perfectly fine when the script does not do any PS core remoting. Additional information and problem explanation below with code examples that are producing the same result.
Here is an example of the code that I'm using:
//EXAMPLE CODE 1:
        string userName = "User";
        string server = "<IP_ADDRESS>"; - for example
        string path = "root/ssh/**id_rsa**";

        using (Runspace runspace = RunspaceFactory.CreateRunspace())
        using (PowerShell powershell = PowerShell.Create())
        {

            PSCommand command = new PSCommand();
            command.AddCommand("New-PSSession");
            command.AddParameter("HostName", server);
            command.AddParameter("Username", userName);
            command.AddParameter("KeyFilePath", path);

            powershell.Commands = command;
            runspace.Open();
            powershell.Runspace = runspace;
            Collection<PSSession> result = powershell.Invoke<PSSession>();

            foreach (ErrorRecord current in powershell.Streams.Error)
            {
                Console.WriteLine("Exception: " + current.Exception.ToString());
                Console.WriteLine("Inner Exception: " + current.Exception.InnerException);
            }
            if (result.Count != 1)
                throw new Exception("Unexpected number of Remote Runspace connections returned.");

            command = new PSCommand();
            command.AddCommand("Set-Variable");
            command.AddParameter("Name", "ses");
            command.AddParameter("Value", result[0]);
            powershell.Commands = command;
            powershell.Runspace = runspace;
            powershell.Invoke();

            command = new PSCommand();
            command.AddScript("Import-PSSession -Session $ses");
            powershell.Commands = command;
            powershell.Runspace = runspace;
            powershell.Invoke();

            command = new PSCommand();
            command.AddScript(@"Invoke-Command -Session $ses -ScriptBlock {
           Script here for example - Get-Process
    }");
            powershell.AddCommand("Out-String");
            powershell.Commands = command;
            powershell.Runspace = runspace;

            Collection<PSObject> results = new Collection<PSObject>();
            results = powershell.Invoke();

           foreach (PSObject Obj in results)
           {
             Console.WriteLine(Obj.BaseObject.ToString());
           }

//EXAMPLE CODE 2. Again the AddScript does nothing with the script and no output is visible. When running the PS1 script file, runs successfully and there are no issues.

using (var runspace = RunspaceFactory.CreateRunspace())
{
    try
    {
        var script = File.ReadAllText("MyScript.ps1");
        runspace.Open();
        var ps = PowerShell.Create();
        ps.Runspace = runspace;
        ps.AddScript(script);
        ps.Invoke();
        ps.AddCommand("MyFunction").AddParameters(new Dictionary<string, string>
        {
            { "Param1" , value1},
            { "Param2", value2},
            { "Param3", value3},
        });

        foreach (var result in ps.Invoke())
        {

        }
    }
    catch (Exception ex)
    {
        Debug.WriteLine(ex.Message);
    }
}

Additional Information:

When running the script from the *.PS1 file, it runs without a problem. I'm using PowerShell Remoting core over ssh
Source server (running the dot net core app) - Ununtu 18.04.
Target Server Windows 2012 R2 installed the latest OpenSSH -v<IP_ADDRESS>p1-Beta
When running any other script using the above methods that does not include PS remoting the console app works and I can see output.
I can see that the powershell remoting is successful from the logs on the target server.
When running the csproj file, the solution restores, builds and runs with no errors. The code just exits and the output is missing.
Powershell remoting is configured so it accepts a public key authentication, which when running ps1 script files executes with no errors and It works.
Everytime I run EXAMPLE CODE 1, I can see that a session is created from the logs of the target server. Also to confirm, when I output the Collection result = powershell.Invoke(); to string I can see the details of the PS Session. The moment we reach the AddScirpt method that is executing the Invoke-Command, it runs, but there is no output generated from the script and the Collectionresults = Collection(); the variable is empty.

I hope everything is clear.
I'm not sure If I'm doing something wrong or this is a bug, I would appreciate any help.
-->
Expected behavior
Expecting the output from the PS remoting script to be visible in console output
Actual behavior
the "results" variable is == null and there is no output.
Environment data
$PSVersionTable of Source server
Name                           Value
----                           -----
PSVersion                      6.1.0-rc.1
PSEdition                      Core
GitCommitId                    6.1.0-rc.1
OS                             Linux 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

$PSVersionTable of Target server:
Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Microsoft Windows 6.3.9600
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

C# Project Packages:
<PackageReference Include="Microsoft.PowerShell.Commands.Diagnostics" Version="6.1.0" />
<PackageReference Include="Microsoft.PowerShell.Commands.Management" Version="6.1.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.1.0" />
<PackageReference Include="System.Management.Automation" Version="6.1.0" />

Dotnet version  - dotnet core <IP_ADDRESS>2
PowerShell win32/OpenSSH version - v<IP_ADDRESS>p1-Beta

Hello,
I might have found a simple workaround that I've tested and it works.
Basically instead of asking the don net application to call the remoting script via .AddScript method you ask the dot net app to call a local powershell process that executes the remoting script. The script file should be somewhere on the server you're executing the application from. To show this as a code I'm using the following.
string script  = "start-process pwsh-preview" -argument "path to script file"
using (Runspace runspace = RunspaceFactory.CreateRunspace())
using (Powershell powershell = Powershell.Create())
{
runspace.Open();
PSCommand command = new PSCommand();
command.AddScript(script);
powershell.Commands = command;
powerhell.Runspace = runspace;
Collection results = new Collection();
results = powershell.Invoke();
I'm yet to test calling the script with parameters (not sure how to do it yet maybe someone here can help). As well as hosting in docker container the entire thing. Most likely PowerShell core will need to be installed as well as dot net core in the docker image for it to work.
However the main problem where AddScript method DOES NOT EXECUTE remoting script is still there.

Anyone? Any idea on what the issue is here?

I am not completely sure, what your specific error message will say. Mine was: "Import-PSSession : Files cannot be loaded because running scripts is disabled on this system. Provide a valid
certificate with which to sign the files."
Adding "Set-ExecutionPolicy RemoteSigned" before the "New-PSSession... " did the trick for me.
Inpired by this but the link states, that you will need admin rights, which I did not.

Hello,
I've created a new project yesterday, Installed System.Management.Automation  and Microsoft.PowerShell.SDK versions 6.2.1 .
I've ran the project with EXAMPLE CODE 1 and that worked perfectly. The project was ran on the same environment as the one described in the issue.
Thank you for your help
Closing the Issue


fix(console): permission regex, account switcher null check, restrict app and member create access

:tada: This PR is included in version 0.91.4 :tada:
The release is available on:

GitHub release
v0.91.4

Your semantic-release bot :package::rocket:


Ability to specify environment variables that don't begin with HOOK_

It'd be great to be able to specify environment variables that will get set that aren't prefixed by HOOK_. The situation I just hit was needing to set HOME on a command. The underlying (puppet) libraries that were complaining about HOME not being set would have been a PITA to map HOOK_HOME to HOME in (probably requiring us to run our own forks).

Agreed, the EnvName property should specify the full environment variable name, and it should not be prefixed by HOOK_. It will be fixed in 2.5.0

Perfect, thanks!


/api/reload messes up listeners

Maybe I'm using this wrong, so maybe it's not critical.
Maybe what happens is even logical.
I assumed that using /api/reload would be the same as de- and reselecting AbletonOSC as
Ableton control surface to reset "everything". But it seems this does not work.
a) /live/clip_slot/start_listen/has_clip, 0, 0
b) returns the expected messages when creating / deleting a clip in slot 0,0
c) /live/clip_slot/stop_listen/has_clip, 0, 0
d) stops to return the messages as expected
OK.
a) /live/clip_slot/start_listen/has_clip, 0, 0
b) returns the expected messages when creating / deleting a clip in slot 0,0
c) /live/api/reload
d) listener keeps being active, returning the usual messages
e) /live/clip_slot/stop_listen/has_clip, 0, 0
f) does not work, messages keep coming - seems like AbletonOSC has forgotten about listener, but it's still there in Live
g) /live/clip_slot/start_listen/has_clip, 0, 0
h) messages are returned TWICE
i) every /api/reload + /start_listen/has_clip, 0, 0 adds another listener instance resulting in 3, 4, 5, 6 returned messages
j) can only be resetted by de- and reselecting AbletonOSC as Ableton control surface
As I said, probably kind of logical when you only reset AbletonOSC itself, but not reset the "script-connection" in Live.
But maybe something can be done to make Live reset the script or make AbletonOSC kill all listeners on /reload...?

Oh yes, just taken a look and I can see this happening in the logs. The handlers and listeners are supposed to be killed on /live/api/reload, but I found and hopefully fixed a bug that caused this not to happen properly. Can you test now?

No, that does not work, still behaves as described.
I can only use /stop_listen/has_clip to remove ONE of the has_clip-listeners (e.g. from 4 to 3), propbably the last one added, the others are stuck.

Try now?

First /reload gives
STRING(Error handling OSC message: Python argument types in Clip.remove_name_listener(Clip, function)
did not match C++ signature:
remove_name_listener(class TPyHandle, class boost::python::api::object))
After that /start_listen/name and /reload return
Unknown OSC address

Ah yes, this still wasn't working as expected in the following case:

add a clip and add a name listener to the clip
remove the clip and re-add a clip in the same slot
reload the API
This would cause an error when the API was being setup, which would cause all the other callbacks to fail 🙃

I've now fixed that case too... let me know..!


Plug-in enablement failure

If you click Enable, a message is displayed indicating that the function fails

Now I have installed the following plug-ins, is it plug-in conflict?

Thanks for reporting.
Could you give the following details: which obsidian version and what the exact error is (see developer console for more information)?

I'll close this issue for now.
It might be an issue with the combination of other plugins.


Specify custom headers

In order to test things like HTTP caching, it can be useful to have the whoami respond with specific headers.

Could you give a much more detailed explanation?
flags != Headers

My bad I meant headers indeed. Not sure how they would be passed though. I guess it could take one or more `-header "Header-Key: Header-Value" options, but not sure if that would work with the CLI library that the project uses.
How would you suggest we could pass one or more headers in the whoami's configuration?

What element to do you want to identity by using headers? (the instance, the request, ...)

I'm not sure what you mean exactly, but I'd like to have a whoami that can respond with a Cache-Control: no-cache header for example.


Channel_id?

Isn't channel ID required?

Hi. I believe you should al least give some more detail about your concern.
The data you need from telegram response is very application dependent. Me myself, I'm not using channel id at all.

I am managing my devices through a group. The group has a chat_id. Currently I am using another Bto library and I am evaluating this one, so I am quite confused about where the messages are sent/received

In other words: my bot is part of a group and I need that all users of the group can use it.

You shouldn't have trouble using the chatId to send messages back to the group.
For your bot to to receive messages from the group, it should be added as a member.

Yes. My bot is added as a member tobthe group, but when I send a message
tovthe group the bot doesn't receive it.
It only rrceives messages sent directly to it.

Sent from my mobile phone. Sorry for typos -

Il Ven 16 Apr 2021, 16:22 Gonzalo @.***> ha scritto:

You shouldn't have trouble using the chatId to send messages back to the
group.
For your bot to to receive messages from the group, it should be added as
a member.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cotestatnt/AsyncTelegram/issues/39#issuecomment-821213114,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBCQ3RVP4O6T52VYSUN75DTJBB2ZANCNFSM43BM3DMQ
.

You should read Telegram Bot API Docs

When added to a group, bots do not receive all messages by default (see Privacy mode).
https://core.telegram.org/bots

Gonzalo, it's 3 years that I am working with my bot and another library.
The group has been correctly setup and it is working. I would give
AsyncTelegram a chance, but it is not working in my group.

Sent from my mobile phone. Sorry for typos -

Il Ven 16 Apr 2021, 18:12 Gonzalo @.***> ha scritto:

You should read Telegram Bot API Docs
When added to a group, bots do not receive all messages by default (see
Privacy mode).
https://core.telegram.org/bots http://Link
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cotestatnt/AsyncTelegram/issues/39#issuecomment-821285015,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBCQ3VCH6DNATPU7RLJO5DTJBOYFANCNFSM43BM3DMQ
.

Yes, the chat is in Privacy mode. What is the syntax of sendMessage in this library to send messages to the chan_id of the group?

void AsyncTelegram::sendMessage(const TBMessage &msg, const char* message, String keyboard)
So:
You can define a TBMessage and define its chatIdwith the chatId of your group.
I'm no fan of this part but pay attention to this:
root["chat_id"] = msg.sender.id != 0 ? msg.sender.id : msg.chatId;
FWIW, I have developed my own telegram library (yet not published) that has been based upon this one but has grown very much apart, so my answers are based on my memory from previous usage and reading at  the code.

You should be able to also use:
void AsyncTelegram::sendTo(const int32_t userid, String &message, String keyboard)

I tried setting msg.chatId before sending the message, but it is still
delivered to the bot itself and not into the group.
When will you publish your lib?

Sent from my mobile phone. Sorry for typos -

Il Ven 16 Apr 2021, 19:08 Gonzalo @.***> ha scritto:

void AsyncTelegram::sendMessage(const TBMessage &msg, const char* message,
String keyboard)
So:
You can define a TBMessage and define its chatIdwith the chatId of your
group.
I'm no fan of this part but pay attention to this:
root["chat_id"] = msg.sender.id != 0 ? msg.sender.id : msg.chatId;
FWIW, I have developed my own telegram library (yet not published) that
has been based upon this one but has grown very much apart, so my answers
are based on my memory from previous usage and reading at the code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cotestatnt/AsyncTelegram/issues/39#issuecomment-821316365,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBCQ3VACK2V4TAR5J3HC53TJBVKTANCNFSM43BM3DMQ
.

I am trying this (from lightBot example):
	TBMessage msg;

	// if there is an incoming message...
	if (myBot.getNewMessage(msg)) {
        msg.group.id = -xxxxxxxxxx;
		if (msg.text.equalsIgnoreCase("/LIGHT ON")) {
			digitalWrite(LED, LOW);
			myBot.sendMessage(msg, "Light is now ON");
		}
}

but it is not sending to the group.

I have fixed this way (not elegant, but it works..)
	// if there is an incoming message...
	if (myBot.getNewMessage(msg)) {
        msg.sender.id = 0;
        msg.chatId = -xxxxxx;
		if (msg.text.equalsIgnoreCase("/LIGHT ON")) {      // if the received message is "LIGHT ON"...
			digitalWrite(LED, LOW);                           // turn on the LED (inverted logic!)
			myBot.sendMessage(msg, "Light is now ON");        // notify the sender
		}

closing


Inserting keyword lists as maps

Hi!
I could be wrong, but it seems that I can't insert a keyword list if I've defined the field as a map. From what I can tell, the driver has support for this:

Since BSON documents are ordered Elixir maps cannot be used to fully represent them. This driver chose to accept both maps and lists of key-value pairs when encoding but will only decode documents to lists.
https://github.com/ericmj/mongodb#data-representation

First, am I right about this limitation? Second, if so, how hard is the fix? Is this something I could create a pull request for? I'd need a little direction as to where to look.

Why do you need a specific document order?

This is most probably Ecto limitation rather than mongo_ecto's itself.
I would expect that when ecto is casting a map type it expects a map :smirk: .
A possible solution is a custom Ecto.Type that will list map for it's type/0 callback, but accept keywords alongside maps. I think that the adapter should handle it just fine.

Thanks for the response @ericmj  and @michalmuskala!!
@ericmj : It's not necessary, but really helpful. I have a document which has a map of 300+ dates. Having the dates ordered dramatically helps with debugging. E.g.
{
  dates: {
    "2016-01-01" : { ... },
    "2016-01-02":  { ... },
    "2016-01-03":  { ... } ,
  }
}

@michalmuskala : I'll take a look at trying out a custom type. Thanks for the pointer! I'm going to close this for now and reopen if I run into any trouble with the custom type.


Cleanups

I fixed several compiler and clippy warnings.
No functional changes.

Cool! Thanks a lot for the patch, sorry for my delay to merge it.


Nested CASE WHEN Statement costs lots of time.

Describe the bug
When I parses a sql with Casewhen nested statement，as the number of nested layers increased, it cost lots of time.Is there any way to fix this?

System

Oracle
jdk 1.8
JSqlParser version 4.0

I test with different nested layers in statement.
2 Time cost:210
3 Time cost:250
4 Time cost:309
5 Time cost:417
6 Time cost:573
7 Time cost:1178
8 Time cost:2132
9 Time cost:4656
10 Time cost:15114
11 Time cost:57838

I found it is due to bracket after "ELSE" token. If i remove all brackets it parsers fast.

If you build JSqlParser, then you will see similar tests. Unfortunately, til now I was not able to solve this. Look into NestedBracketsPerformanceTest.java.

@Wumz Please have a look at #1038 which states that JavaCC 21 does fix "Nested syntactic lookahead".
Would that not solve these cases of nested CASE statements WIDTH statements and Brackets?

I have corrected that, your particular Test Case parser now in less than 0.2 seconds.
Please note: The brackets around the nested Case When expressions are redundant (but we support both ways with/without brackets). You can test your statement here online and interactively
You can also get the patched JSQLParser Binary from there, while the PR is pending.

Can we close this now?

As you have a "fixes issue" within your PRs commit, the normal behaviour is to close it.


modulesync 1.1.0

Would you mind fixing the merge conflicts?

@ekohl @HAIL9000's still working on the rubocop fixes etc.

sorry if I broke someones workflow :( I tested it locally and thought we can merge it. puppet-lint + rspec are running well, but I forgot about rubocop....


Handling of ql/v2 root endpoint

Fixes #217 as per the approach discussed.

Hi @chicco785 ,
The build has completed all its steps successfully, But still in the end it shows that build gets no output. Can you please suggest any remedies for the same?

it looks like something is broken in the ci pipeline, i assume this is either due to a change in the alpine docker image or in travis ci, we will look into that

@iamarnavgarg PR #260 should fix the issue. when @c0c0n3 reviews it and we merge it, you should please rebase your code on the master. will let you know when you can proceed

@iamarnavgarg PR #260 just got merged into master. If like @chicco785 said, you could please rebase your branch on master so we can merge your PR in too. Many thanks!!!

Hi @c0c0n3 I have rebased/updated the branch, request you to please merge the PR.
Thanks!

Hi @iamarnavgarg, your PR just got merged into master, thank you so much for working on this!


resource_management.core.exceptions.Fail: Configuration parameter 'yarn-env' was not found in configurations dictionary!

the result of apply_blueprint.sh:

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/mapreduce2_client.py", line 93, in
MapReduce2Client().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/mapreduce2_client.py", line 39, in install
import params
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/params.py", line 29, in
from params_linux import *
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/params_linux.py", line 43, in
import status_params
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/YARN/package/scripts/status_params.py", line 41, in
yarn_pid_dir = format("{yarn_pid_dir_prefix}/{yarn_user}")
File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/format.py", line 95, in format
return ConfigurationFormatter().format(format_string, args, **result)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/format.py", line 59, in format
result_protected = self.vformat(format_string, args, all_params)
File "/usr/lib/python2.7/string.py", line 563, in vformat
result = self._vformat(format_string, args, kwargs, used_args, 2)
File "/usr/lib/python2.7/string.py", line 596, in _vformat
result.append(self.format_field(obj, format_spec))
File "/usr/lib/python2.7/string.py", line 613, in format_field
return format(value, format_spec)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/config_dictionary.py", line 73, in getattr
raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'yarn-env' was not found in configurations dictionary!

My config:

host_group: "hdp-master"
clients: ['ZOOKEEPER_CLIENT', 'HDFS_CLIENT', 'MAPREDUCE2_CLIENT']
services:
- ZOOKEEPER_SERVER
- NAMENODE
- SECONDARY_NAMENODE
- HISTORYSERVER
- AMBARI_SERVER
- METRICS_COLLECTOR
- METRICS_GRAFANA
- METRICS_MONITOR

host_group: "hdp-slave"
clients: ['ZOOKEEPER_CLIENT', 'HDFS_CLIENT', 'MAPREDUCE2_CLIENT']
services:
- DATANODE
- METRICS_MONITOR

The only thing I found related to this is:
[jira] [Updated] (AMBARI-21173) Not able to start Yarn services after restoring the configs to initial value
<EMAIL_ADDRESS>

You have HISTORYSERVER which needs YARN.
The dependencies are not automatically added when doing blueprint deployments.

Also, remove 'MAPREDUCE2_CLIENT' from the clients or simply add the YARN components.

Thanks a lots ! I It works.
And when I try to enable all services and install all kinds of client with "database: 'mysql'"  and external_hostname: ''",  the following is what i get from apply_blueprint.

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_metastore.py", line 201, in
HiveMetastore().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_metastore.py", line 61, in start
create_metastore_schema() # execute without config lock
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive.py", line 483, in create_metastore_schema
user = params.hive_user
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in init
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
returns=self.resource.returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/ ; /usr/hdp/current/hive-server2/bin/schematool -initSchema -dbType mysql -userName hive -passWord [PROTECTED] -verbose' returned 1. SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/<IP_ADDRESS>-187/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/<IP_ADDRESS>-187/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Metastore connection URL:	 jdbc:mysql://HDP-0.local:3306/hive
Metastore Connection Driver :	 com.mysql.jdbc.Driver
Metastore connection User:	 hive
Sat Oct 13 02:56:04 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
Underlying cause: java.sql.SQLException : Access denied for user 'hive'@'HDP-0' (using password: YES)
SQL Error code: 1045
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:94)
at org.apache.hive.beeline.HiveSchemaTool.getConnectionToMetastore(HiveSchemaTool.java:169)
at org.apache.hive.beeline.HiveSchemaTool.testConnectionToMetastore(HiveSchemaTool.java:475)
at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:581)
at org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:567)
at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1539)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
Caused by: java.sql.SQLException: Access denied for user 'hive'@'HDP-0' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1694)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1215)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:88)
... 11 more
*** schemaTool failed ***

It seems i have to manually allow login from anywhere as user hive before apply blueprint. Am i right ?

Well, I assume this is a totally new cluster? Only this way it will work.
Once Hive is on the blueprint_dynamic variable then by running ./prepare_nodes.sh the database will prepare.
Otherwise, if you're adding Hive after a full install, then you'll have to follow: https://docs.hortonworks.com/HDPDocuments/Ambari-<IP_ADDRESS>/administering-ambari/content/amb_using_hive_with_mysql.html

Yes, It's a new cluster and the error message is what i got from apply_blueprint.sh after finished prepare_nodes.sh, install_ambari.sh, configure_ambari.sh. It seems the database is installed in install_ambari.sh stage but the mysql is not allow hive to login.

Underlying cause: java.sql.SQLException : Access denied for user 'hive'@'HDP-0' (using password: YES)
I am not sure what's the right way to use this repository if hive need to be add after full install. If so, I can only allow to install basic HDFS cluster and manually add HIVE and other services right? Or I can still add service by apply_blueprint ? Thanks a lot.

Since i left external_hostname as blank and this repo does what he claims to install mysql on my ambari node, but i think there's something wrong about the creation of user/passwd/database.

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at org.apache.hadoop.hive.metastore.tools.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:88)
... 11 more
*** schemaTool failed ***

after apply_blu

Hi, thanks for reply. Yes, I have  HIVE_SERVER and HIVE_METASTORE in my blueprint_dynamic. I am running the script as the following sequence:

prepare_node.sh
install_ambari.sh
configure_ambari.sh
apply_blueprint.sh

so you mean i have to re-run prepare_node again before running apply_blueprint ? @@

No, I meant if all the variables are set as explained then it will work if you execute the scripts in that order (or simply ./install_cluster.sh).
But you cannot come back and edit stuff. These Ansible playbooks are for building a complete cluster, any further changes or additions have to be done after, outside these playbooks.
You cannot use these playbooks to add new services, etc.
If you want more help I will first need these from you:

what OS you use or any public cloud?
the full contents of the group_vars/all file

If you want a more friendly way to install and manage clusters, including a GUI, you should check cloudbreak:
https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.7.2/content/index.html
https://github.com/hortonworks/cloudbreak
This is a fully supported Hortonworks product (unlike these Ansible playbooks), much more complete and much easier to use.

Hi, I haven't heard a reply back so I assume all is good now!?
I'll close this but you can reopen it if you still have the issue and give the required information I previously asked.
If this a genuine issue I would be more than happy to fix it, but I have to replicate and test first.


CancelAutoFocus and nuget problem

When I try to scan a barcode in older cellphones there's an error with the camera AutoFocus. I've dowloaded the application and fixed this problem adding a simple try in the file master/Rb.Forms.Barcode.Droid/Camera/CameraConfigurator.cs line 75.
e.g. try{ camera.CancelAutoFocus(); } catch (Exception e){ this.Debug(e.Message); }
That solves the problem.
Another error is occuring in the last version of the nuget package. When the package is installed the nuget manager corrupts. I've fixed it too changing the nuspec to the folowing (I don't know where the error was).
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
  <metadata>
    <id>Rb.Forms.Barcode</id>
    <version>0.6.5</version>
    <title>Barcode scanner plugin for Xamarin.Forms</title>
    <authors>Ota Mares</authors>
    <owners>reBuy reCommerce GmbH</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <licenseUrl>https://github.com/rebuy-de/rb-forms-barcode/blob/master/LICENSE</licenseUrl>
    <projectUrl>https://github.com/rebuy-de/rb-forms-barcode</projectUrl>
    <description>Rb.Forms.Barcode is a Xamarin.Forms view for scanning barcodes full of awesomeness and also unicorns. Please check the website for further details.

Beta notice: Now with experimental iOS support.</description>
    <summary>Rb.Forms.Barcode is a Xamarin.Forms view for scanning barcodes.</summary>
    <releaseNotes>0.6.5:
*Fix:in which the scanner sometimes crashes when locking/unlocking the device.

0.6.3-beta:
* Change: downgrade GooglePlayServices.Vision to <IP_ADDRESS>

0.6.2-beta:
* Fix: handle camera permissions to prevent a crash
0.6.1-beta:
* Change: replace deprecated av orientation call

0.6.0-beta:
* New: add iOS support.
* Public API should be nearly the same, only the config for iOS scanner is shorter than the Android config.</releaseNotes>
    <tags>barcode scanner scanning scan xamarin xamarin.forms googleplayservices vision gms rebuy unicorns</tags>
    <dependencies>
      <group>
        <dependency id="Xamarin.Forms" version="<IP_ADDRESS>47" />
      </group>
      <group targetFramework="MonoAndroid1.0">
        <dependency id="Xamarin.GooglePlayServices.Vision" version="26.0.0" />
      </group>
    </dependencies>
  </metadata>
</package>

Can you add a pull-request for that?
thanks

related PRs #50 and #51

autofocus-problem solved.
Issue for nuspec problem is #52


add_task will launch multi times when app run with multi workers

[2017-08-23 22:04:09,755] 4173-INFO server::notify_server_started_after_five_seconds():l21: task started!
[2017-08-23 22:04:09,760] 4174-INFO server::notify_server_started_after_five_seconds():l21: task started!
Actually the task should be run once。
So maybe add_task must bind on one worker

No, these tasks should be run by all workers. Let's say you have,
@app.listener('before_server_start')
    async def init_db(app, loop):
        # Init Db

All workers should have connections to db, they are separate processes. Shutdown one worker should have no effects on other workers.
But you can talk more about your use case if you wanna.

For example, I have migrations which should be executed only by one worker

Maybe, i don't understand your example, but if you just wanna execute one time, why do you put migration in a listener ? Let's say if someone redeploy your service, it will execute migration again..


ck.view fails when using cmap parameter and station data

I just noticed that ck.view(data_to_use, lat_lon = False, cmap = "viridis") fails for station data:
ValueError: failed to validate Line(id='2062', ...).line_color: expected either None or a value of type Color, got 'viridis'

This is a notebook guidance issue not climakitae code issue. Station data doesn't have xy coordinates so passing a variable cmap to it breaks this. Will modify the notebook slightly.


Upgrade rubies to their latest patch release

We use Ruby 2.5.1 for the manual installation guide and the docker
containers and run the specs on the latest 2.5,2.4,2.3 and 2.2 patch
releases.
Fixes #2210

@dsander Can we merge this now?


QN replaceindex!

Define replaceindex! function as discussed in issue #218. Fixes #218.

Codecov Report

Merging #221 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
+ Coverage   84.04%   84.12%   +0.08%
==========================================
  Files          45       45
  Lines        4480     4486       +6
==========================================
+ Hits         3765     3774       +9
+ Misses        715      712       -3

Impacted Files
Coverage Δ

src/index.jl
78.48% <ø> (ø)
:arrow_up:

src/qnitensor.jl
87.87% <100%> (+2.69%)
:arrow_up:

src/mps/mps.jl
100% <100%> (ø)
:arrow_up:

src/itensor.jl
77.96% <100%> (+0.09%)
:arrow_up:

src/qnindex.jl
63.71% <100%> (+0.32%)
:arrow_up:

src/Tensors/truncate.jl
100% <0%> (+2.7%)
:arrow_up:

src/iterativesolvers.jl
93.05% <0%> (+2.77%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74c22d0...d77bb00. Read the comment docs.


Material Theming: Android Basics in Compose

URL of codelab
In which task and step of the codelab can this issue be found?
Task 4 - Get the Starter code
Describe the problem
Step 9 - Clone
Clicking clone installs the final version of the app instead of the starter code.  It did this several times.  I checked the given url was the starter version and confirmed it on github that the readme file referred to the starter code, but after cloning it was the final complete code that was cloned. Don't know why?
In the end I just downloaded the starter version and installed it via open project which gave me the starter code.
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-58-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
external.system.auto.import.disabled=true
debugger.watches.in.variables=false
ide.text.editor.with.preview.show.floating.toolbar=false
Current Desktop: ubuntu:GNOME
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @AntiGolgafrinchum
Thank you for writing in with your issue.
You are correct that Step 9 will clone the final version of the app.
If you continue following the steps listed, it then explains how to change to the starter branch which is what you wanted to do. This is specifically in Steps 12 and 13.
If you try this and still are having an issue, please do not hesitate to open a new issue with additional details so we may further assist you.
Hope you enjoying the course.
Regards.


getImageList not found in module for IOS

getImageList is not working on IOS

OK, we will see

yeah, your library is helpful with me, hope it can work soon. Many thanks


Add FilterModel utility

This is something we developed to help with building queries that were very dependent on association filters. This let us quickly compose the right "shape" of the data and then construct a query from it.
After diving into the internals of Ecto to make it more extensible to all our schemas, we realized it was a generally useful module that might have a home in the core Ecto repository.
The interface was a rough-cut based on our primary use cases, but I'd love to hear how the semantics could be evolved if they don't seem very intuitive.
Thanks!

Hi @andrew-combs , thanks for the PR. I believe this is best suite as a library or part of a project, because if it becomes part of Ecto, then we have to eventually support all of Ecto's query syntax, which will just lead to complexity in the long term. Libraries and usage in your application will be much more comfortable in accepting a limited scope. :)

Makes perfect sense to me! We'll open it up somewhere else as a standalone utility


I can work on website responsive for various platform . Assign me I can do this job very well .

Here are some key reasons why responsiveness is important:
Improved User Experience: Responsive web design ensures that your website adapts and displays correctly on different devices, such as desktops, laptops, tablets, and smartphones. By optimizing the layout, images, and content to fit each screen size, you create a seamless and user-friendly experience. Users can easily navigate, read, and interact with your website regardless of the device they are using.
Increased Mobile Usage: Mobile devices, such as smartphones and tablets, have become the primary means of accessing the internet for many users. Having a responsive website allows you to cater to the growing number of mobile users. It eliminates the need for pinch-zooming, horizontal scrolling, or encountering distorted layouts, making it more likely for visitors to stay on your site and engage with its content.
Enhanced SEO Performance: Search engines like Google prioritize responsive websites in their search results. Google recognizes that responsive design provides a better user experience, so responsive websites tend to rank higher in search engine results pages (SERPs). With improved visibility in search results, you have a higher chance of attracting organic traffic to your website.

enhancement

Hey..I think someone is working on the responsiveness..

No Problem!!
...
On Sun, 21 May 2023, 8:52 pm Monalika Patnaik, @.***>
wrote:

Hey..I think someone is working on the responsiveness..
—
Reply to this email directly, view it on GitHub
https://github.com/MonalikaPatnaik/UMatter/issues/75#issuecomment-1556206228,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2O2YKMNZIRZWETQNUFQVJLXHIXLDANCNFSM6AAAAAAYIVZ4SI
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Implement automatic game deletion after a game has ended

51f5331

not testable, such a test would require an internet connection and run for over 10 minutes at least!


How to run it in PyCharm?

The PyCharm IDE is more powerfull than "Develop tool suite -> command line" or the PyAlaCarte. Is it any way to use PyCharm as code editor and the command line while openning ImagePy window to show result images?

I think it is possible by developing a pycharm plugin, but I has less knowledge about pycharm's development. I prefer to support jupyter in future.
ImagePy's command line is just a toy, which is not suitable for writting complex logic. ImagePy wants to act as a pure connector.

please write your algorithm in advanced IDE
then use ImagePy to wrap it as a plugin.
here is the plugin demo repo with document in detail.

The command line tool is for some trivial operation, very easy but not general, and not worth to be wrote in plugin. So PyAlaCarte is enough.

I think this issue can be closed.
Lately, I also use PyCharm to debug ImagePy plugins. Here is the workflow.

Copy your plugin you develop to the respective directory of ImagePy (e.g. imagepy/plugins/your_plugin/)
Create a new project and add the whole imagepy/ directory to it (which now contains your plugins too).
If you want to run or debug ImagePy, start imagepy/__main__.py. Then you will be able to put breakpoints in any file.


Implement config handling

Overview
Implement a way to handle the server configuration using TOML config files.
Tasks

[ ] TOML handling
[ ] Documentation for TOML in README.md related to  #15
[ ] Environment variable option
[ ] Doc for env-vars in README.md related to  #15

Discussions

What should be the default configuration method, TOML vs. env vars ?

Changed YAML to TOML since TOML is the default in Rust. Makes more sense in my opinion.
For simplicity, in the first implementation there will be the possibility to write non-critical configuration parameters to a configuration file and security relevant parameters to environment variables.