Added Entity Mapping trait

resolve https://github.com/nettrine/orm/issues/33
alternative for IEntityProvider.

How is it working? I think it can't.

After rebase (+- 19-20h) trait will work in this way:

find annotationDriver
add Paths

you will use:
class ForumExtension extends CompilerExtension
{
    use EntityMapping;

	public function loadConfiguration(): void
	{
		...
		$this->setEntityMappings([
                    'Forum' => __DIR__ . '/../Entity',
                ]);
	}
}

I have it in my project and work it ;)

@f3l1x thanks, I will look to qa (new PR)

Hi, @f3l1x any ETA when this finds its way into stable version?

I hope soon. Stay tuned.


feat(relayer): Separate HTTP API into its own subcommand

Describe the feature request
currently indexer sub ommand starts http server, this should be separated
Describe alternatives you've considered
No response
Additional context
No response

Hi, I started working on this. :)

it has already been completed! sorry, this was assigned to me and should be marked as done.

it has already been completed! sorry, this was assigned to me and should be marked as done.

Can you propose any other / related tickets to work on ?


Deleting a resource => Resource tree-view is still visible

After deleting a resource the resource tree-view is still visible. The history view is not shown anymore :)

Thanks for the report! It's fixed now.


Update dynamic-data-masking.md

Added a limitation of dynamic data masking not supported in External tables

@NandanHegde15 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @NandanHegde15 - Thanks for making these changes.
@DavidTrigano - Hey David, can you help confirm this?

@DavidTrigano - Hey David, can you please help check this? Thanks!

Hi @NandanHegde15 - Thank you for your contribution! As this has been updated already, I will go ahead and close this PR. Thank you so much for helping with our documentation.


BaseFold: Add and reimplement some utility functions.

Extracting small PRs from #294

Thanks for breaking down the big PR into more digestible chunks!


Add .odoignore documentation

Adds .gitignore documentation.
Closes https://github.com/redhat-developer/odo/issues/1427

Not too sure if this is enough @kadel
Or do you suggest separate documentation?

:white_check_mark: odo build 2176 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/a37c6d9e3b by @cdrage)

Yeah you're right, one line of code depicts that: https://github.com/redhat-developer/odo/blob/f816d9f41ae2d3be64bd5b28e7fa841bc48f3c77/pkg/util/util.go#L403
I'll update the documentation.

Thanks @mik-dass I've updated this based upon your suggestions.

/approve

Can anyone else please LGTM it? :+1: @anmolbabu @surajnarwade @girishramnani @amitkrout @kadel

/lgtm


Rustup to rustc 1.61.0-nightly (4b043faba 2022-02-24)

Please don't squash this PR when merging.

The only new test failure is ui/attributes/main-removed-2/main.rs which is a newly introduced tests that uses a proc macro.

Thanks a lot!


pkg: Add EnforcedSampleLimit which enforces a global sample limit

for each ServiceMonitor or/and PodMonitor. EnforcedSampleLimit is taken
in favour of any SampleLimit set per ServiceMonitor or/and PodMonitor
resource. This is meant to be used by admins to be able to enforce a
limit of samples/series for each target.
cc @coreos/team-monitoring

As discussed we should also have a way for admins can enforce certain Service/Pod Monitors to be excluded from this limit, but this can be done in a follow up.

@brancz PTAL, thanks!

Nice! lgtm


AMC: Multiple instances?

Just wondering if there's a way to run multiple AMC scripts in a single container. At the moment I'm using a single parent folder, with child folders for "TV" and another for "Movies". I'd like to force the ut_label=TV option and ut_label=Movie for each respective folder, especially since I also throw anime into the "TV" folder and like using TVDB instead of AniDB.
I know I could just make another container pointing to each folder, but I thought I'd try to save some resources and see if I can run two instances of AMC with their own settings.
Also, is there an "exclude_folder" option that I'm missing? I have a 3rd child-folder that I'd like it to ignore, but again I don't see an option for it.
P.S
It'd be great if there was a env variable we could specify to disable everything except AMC. I know that you can just exclude port exposure, but having a web-service running in the background indefinitely seems like a waste.

Just wondering if there's a way to run multiple AMC scripts in a single container. At the moment I'm using a single parent folder, with child folders for "TV" and another for "Movies". I'd like to force the ut_label=TV option and ut_label=Movie for each respective folder, especially since I also throw anime into the "TV" folder and like using TVDB instead of AniDB.
I know I could just make another container pointing to each folder, but I thought I'd try to save some resources and see if I can run two instances of AMC with their own settings.

Did you check on the Filebot forum to see if this can be already accomplished with AMC ?

Also, is there an "exclude_folder" option that I'm missing? I have a 3rd child-folder that I'd like it to ignore, but again I don't see an option for it.

It seems that there is an option to ignore directories:
https://www.filebot.net/forums/viewtopic.php?t=5022
You can use the AMC_CUSTOM_OPTIONS environment variable to set this option.

P.S
It'd be great if there was a env variable we could specify to disable everything except AMC. I know that you can just exclude port exposure, but having a web-service running in the background indefinitely seems like a waste.

Yes, this is eventually be possible :)

Thanks for the help! I was only reading through the documentation, I didn't browse much around the forums. I'll mark this as closed since it seems that my answers were already answered there.


Add Version Sort

Description
Addresses https://github.com/lsd-rs/lsd/issues/801. The root cause is that the external library that is being used does not have sufficient test coverage and is no longer maintained.
I took a look at how GNU sort is implemented and it looked simple enough to be included into this repo. I added a few test cases, including the one from the issue.
I'm still pretty new to Rust, so any code/organizational feedback is greatly appreciated

TODO

[x] Use cargo fmt
[ ] Add necessary tests (You tell me 🙂)
[ ] Add changelog entry
[ ] Update default config/theme in README (if applicable)
[ ] Update man page at lsd/doc/lsd.md (if applicable)

It looks like I have some refactoring artifacts. I'll fix and add more documentation

Codecov Report

Merging #843 (bef4588) into master (c267a04) will decrease coverage by 0.71%.
The diff coverage is 93.70%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master     #843      +/-   ##
==========================================
- Coverage   87.38%   86.67%   -0.71%
==========================================
  Files          45       50       +5
  Lines        4280     4729     +449
==========================================
+ Hits         3740     4099     +359
- Misses        540      630      +90

Impacted Files
Coverage Δ

src/main.rs
29.41% <ø> (ø)

src/sort.rs
98.00% <ø> (-1.49%)
:arrow_down:

src/versionsort.rs
93.70% <93.70%> (ø)

... and 24 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I think it's cleaner to break out the sorting logic into a separate crate. Once it's published I'll update this PR to use that crate instead. The code in the create has been updated and has more robust testing

hi @juansc, I have read the PR and vsort crate, and it seems great!
please add a changelog here https://github.com/lsd-rs/lsd/blob/master/CHANGELOG.md and we should be good to go.
/lgtm

@zwpaper Changelog has been added

thanks so much @juansc


chore(deps): update tomcat to v8.5.51

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

I'm wondering why renovate isn't working to update a such "dependency"

uPortal-start's renovate was unavailable due to https://github.com/renovatebot/renovate/issues/4467, the awesome folks on the renovate team have resolved that, currently the bot is catching back up.
Now there appears to be a regression on https://github.com/renovatebot/renovate/issues/3194 PRs are being opened and closed in a loop :sweat:
We may look into the renovate logs and at the dashboard to see if there are any remaining errors/bugs we can help resolve to get the updates coming through smoothly, as they are on other uPortal projects.

@jgribonvald the renovate config has been updated to setup a dashboard issue: https://github.com/Jasig/uPortal-start/issues/440
to give insights into what renovate has open and has queued for updates

Thanks @ChristianMurphy


Support actual time EL function for coordinator actions

Actual time specifies the time when a coordinator time is actually created in oozie. Currently oozie supports nominal time EL function. The same way coordinator should support the actual time EL function.
Propose prototype of function: coord:actualTime()
Return: Date stamp string in UTC format.
Scope: All the places in coordinator xml where current coord:nominalTime() could be used

@LazyBoy248 - Yes this is available now, in current releases.


rpl: update to 4467bd4

old version is unmaintained, see https://github.com/kcoyner/rpl/issues/7
im too lazy to package argparse-manpage for this useless manpage, so i simply removed argparse-manpage via patch
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

maintainer @teto

fine by me. Do you want to list yourself as maintainer ? I dont use this software anymore.

Do you want to list yourself as maintainer ? I dont use this software anymore.

nope, i dont use it too : D
i found this tool when patching xml files ... not happy with the python dependency, would prefer a rust binary

[…] not happy with the python dependency, would prefer a rust binary

Then check out ruplacer.


Adding support for assigning workspace capacity

Assigns capacity ID to workspace

Secrets from my repository are being ignored I believe it's mentioned here and not possible from forked repository.
https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow
"With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository."
do you have any other idea?

Secrets from my repository are being ignored I believe it's mentioned here and not possible from forked repository.
https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow
"With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository."
do you have any other idea?

Secrets from my repository are being ignored I believe it's mentioned here and not possible from forked repository.
https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow
"With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository."
do you have any other idea?

Thats annoying, seems like github dont even have any possible solutions. Best I can do is merge it into a branch on this repo then merge that branch into master.

Secrets from my repository are being ignored I believe it's mentioned here and not possible from forked repository.
https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#using-encrypted-secrets-in-a-workflow
"With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository."
do you have any other idea?

Thats annoying, seems like github dont even have any possible solutions. Best I can do is merge it into a branch on this repo then merge that branch into master.

There are no tests for this change, although even if there were I wont be able to run them as I don't have a premium licence. Do you have a premium licence which you have tested this against?
Is it possible to introduce some test cases and a POWERBI_IS_PREMIUM flag to only run the tests if the licence is a premium licence?

There are no tests for this change, although even if there were I wont be able to run them as I don't have a premium licence. Do you have a premium licence which you have tested this against?
Is it possible to introduce some test cases and a POWERBI_IS_PREMIUM flag to only run the tests if the licence is a premium licence?

There are no tests for this change, although even if there were I wont be able to run them as I don't have a premium licence. Do you have a premium licence which you have tested this against?
Is it possible to introduce some test cases and a POWERBI_IS_PREMIUM flag to only run the tests if the licence is a premium licence?

Yes..feature does work, I've tested in my environment. I will try to implement POWERBI_IS_PREMIUM flag

There are no tests for this change, although even if there were I wont be able to run them as I don't have a premium licence. Do you have a premium licence which you have tested this against?
Is it possible to introduce some test cases and a POWERBI_IS_PREMIUM flag to only run the tests if the licence is a premium licence?

Yes..feature does work, I've tested in my environment. I will try to implement POWERBI_IS_PREMIUM flag

Added PowerBI workspace capacity assigning tests, and controlling flag POWERBI_IS_PREMIUM can be set to true or false
Tests would be included if POWERBI_IS_PREMIUM is set to true in addition to POWERBI_CAPACITY_ID.

Added PowerBI workspace capacity assigning tests, and controlling flag POWERBI_IS_PREMIUM can be set to true or false
Tests would be included if POWERBI_IS_PREMIUM is set to true in addition to POWERBI_CAPACITY_ID.


[BZ-1201370] add deps used in OSGi features to POM

@mariofusco I added the KIE deps. I would also like to add simple test which would take deps from the features.xml and the POM and compared those to make sure they are in sync. I will look at that tomorrow.

Merged by https://github.com/droolsjbpm/droolsjbpm-integration/commit/7320cbf048313f6b4156e2b54d71cfd049f1d24c


libusb & hidapi bindings

libusb is an open-source, cross-platform C library that allows for communication through the USB standard.
Supports:

macOS (32 and 64 bit; PowerPC, Intel, and M1)
Windows (32 and 64 bits)
Linux
Solaris & Haiku
OpenBSD, NetBSD, and Android partially supported

hidapi is another open-source, cross-platform C library, but interacts with USB and Bluetooth human interface devices.
Supports:

Windows
Linux
macOS
Linux/BSD [sic]

Motivation
While LWJGL provides GLFW, application developers may want to tinker with specialized USB devices that GLFW doesn't cover. These may be digital instruments, interfaces, or a whole host of things. Accessing them in the efficient manner that LWJGL does would give Java a leg up.
For example, if I wanted to interface with an Arduino or Raspberry Pi with a not-invented-here mindset, or I needed to get inputs from a digital knob, these libraries would allow me to access those devices directly.
Alternatives and their drawbacks

usb4java (github) - Uses JNI
libusb-java - Uses JNI, inactive
hid4java - Uses JNI (inactive?)
purejavahidapi - Pure Java, seemingly inactive

Apologies for hijacking on the thread - but @SWinxy what is your recommendation for USB Java bindings that work on Raspberry Pi (4) with custom USB controllers?

what is your recommendation for USB Java bindings that work on Raspberry Pi (4) with custom USB controllers?

I don't know. My best advice would to try the alternatives?


Replaced specifying options to yaml config file

While providing config via the parameters when submit the Spark job can be quite verbose, it also exposes the password which is not very secure. I replaced with users specifying options in a yaml config file. I hope this helps

@jpeddicord @hyandell @abhi1993,
Kindly review the pull request


Release name typo

On GitHub page here:
https://github.com/citusdata/cstore_fdw/releases
two latest releases share the same name "cstore_fdw v1.6.1", which is probably a typo
Thanks!

closing this since we have a release v1.7.0 available


Init git module before database migration

Close #21761
Some database migrations depend on the git module.

Maybe we should move migrations out of models

make lgtm work


BFMatcher SigSegv (OpenCL implementation)

My application very rarely segfaults around BFMatching.knnMatch (OpenCL via transparent API).
After investigation I created sample code that also segfaults:
#include <opencv2/features2d.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core/ocl.hpp>
#include <vector>
#include <iostream>
#include <stdio.h>
#include <tuple>

using namespace std;
using namespace cv;

void print_ocl_device_name() {
    vector<ocl::PlatformInfo> platforms;
    ocl::getPlatfomsInfo(platforms);

    for (size_t i = 0; i < platforms.size(); i++) {
        const cv::ocl::PlatformInfo* platform = &platforms[i];
        cout << "Platform Name: " << platform->name().c_str() << "\n";

        for (int j = 0; j < platform->deviceNumber(); j++) {
            cv::ocl::Device current_device;
            platform->getDevice(current_device, j);
            int deviceType = current_device.type();
            cout << "Device " << j << ": " << current_device.name() << "\n";
        }
    }

    ocl::Device default_device = ocl::Device::getDefault();
    cout << "Used device: " << default_device.name() << "\n";
}

int main(void) {
    print_ocl_device_name();

    RNG r(239);
    Mat desc1(5100, 64, CV_32F);
    Mat desc2(5046, 64, CV_32F);
    r.fill(desc1, RNG::UNIFORM, Scalar::all(0.0), Scalar::all(1.0));
    r.fill(desc2, RNG::UNIFORM, Scalar::all(0.0), Scalar::all(1.0));

    for (int i = 0; i < 1000 * 1000; i++) {
        BFMatcher matcher(NORM_L2);

        UMat udesc1, udesc2;
        desc1.copyTo(udesc1);
        desc2.copyTo(udesc2);
        vector< vector<DMatch> > nn_matches;

        matcher.knnMatch(udesc1, udesc2, nn_matches, 2);

        printf("%d\n", i);
    }

    return 0;
}

Note: this happens very rare. I see it after tens of thousands of iterations (tens of minutes on fast GPU).
Environment
OpenCV version: 3.0.0
I have segfaults on Nvidia GTX 680 (OpenCL 1.1):
Device name: GeForce GTX 680
Nvidia driver verison: 331.113
Platform Version: OpenCL 1.1 CUDA 6.0.1

The same behaivour on Nvidia GTX 580 with 352.30 driver (OpenCL 1.1).
On CPU device (not CPU implementation, here I mean CPU as OpenCL device) I was trying - but for now there is no segfaults. But I think this is only because of speed difference between CPU and GPU. (On GPU it takes tens of minutes or even more - CPU slower up to to one or two orders). Or these can be explained driver implementation details, or the reason, that CPU RAM is the same that the Host RAM.
GDB backtraces:
Thread 7 (Thread 0x7f64ad44a700 (LWP 2212)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00007f64b1784a7e in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b0ffe548 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#4  0x00007f64b2dad0a5 in start_thread (arg=0x7f64ad44a700) at pthread_create.c:309
#5  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f64acc49700 (LWP 2213)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00007f64b1784a7e in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b0ffe548 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#4  0x00007f64b2dad0a5 in start_thread (arg=0x7f64acc49700) at pthread_create.c:309
#5  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f64adc4b700 (LWP 2211)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00007f64b1784a7e in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b0ffe548 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#4  0x00007f64b2dad0a5 in start_thread (arg=0x7f64adc4b700) at pthread_create.c:309
#5  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f64b6209780 (LWP 2208)):
#0  0x00007f64b48cc774 in __GI___libc_malloc (bytes=32) at malloc.c:2903
#1  0x00007f64b4e84688 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007f64b5d8b42e in allocate (this=0x26997e0, __n=<error reading variable: Cannot access memory at address 0xfffffffffffffcc8>)
    at /usr/include/c++/4.9/ext/new_allocator.h:104
#3  allocate (__a=..., __n=<error reading variable: Cannot access memory at address 0xfffffffffffffcc8>) at /usr/include/c++/4.9/ext/alloc_traits.h:182
#4  _M_allocate (this=0x26997e0, __n=<error reading variable: Cannot access memory at address 0xfffffffffffffcc8>)
    at /usr/include/c++/4.9/bits/stl_vector.h:170
#5  _M_allocate_and_copy<cv::DMatch*> (this=0x26997e0, __last=0x0, __first=0x0,
    __n=<error reading variable: Cannot access memory at address 0xfffffffffffffcc8>) at /usr/include/c++/4.9/bits/stl_vector.h:1224
#6  std::vector<cv::DMatch, std::allocator<cv::DMatch> >::reserve (this=this@entry=0x26997e0, __n=__n@entry=2) at /usr/include/c++/4.9/bits/vector.tcc:75
#7  0x00007f64b5d913b0 in ocl_knnMatchConvert (compactResult=<optimized out>, matches=std::vector of length 4825, capacity 5100 = {...}, distance=...,
    trainIdx=...) at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:240
#8  ocl_knnMatchDownload (compactResult=<optimized out>, matches=std::vector of length 4825, capacity 5100 = {...}, distance=..., trainIdx=...)
    at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:270
#9  cv::ocl_knnMatch (query=..., _train=..., matches=std::vector of length 4825, capacity 5100 = {...}, k=k@entry=2, dstType=<optimized out>,
    compactResult=compactResult@entry=false) at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:713
#10 0x00007f64b5d938ac in cv::BFMatcher::knnMatchImpl (this=0x262b720, _queryDescriptors=..., matches=std::vector of length 4825, capacity 5100 = {...},
    knn=2, _masks=..., compactResult=false) at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:786
#11 0x00007f64b5d8bade in cv::DescriptorMatcher::knnMatch (this=0x262b720, queryDescriptors=..., matches=std::vector of length 4825, capacity 5100 = {...},
    knn=knn@entry=2, masks=..., compactResult=compactResult@entry=false)
    at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:630
#12 0x00007f64b5d8c68c in cv::DescriptorMatcher::knnMatch (this=<optimized out>, queryDescriptors=..., trainDescriptors=...,
    matches=std::vector of length 4825, capacity 5100 = {...}, knn=2, mask=..., compactResult=false)
    at /home/polarnick/libraries/opencv/opencv_3.0.0/modules/features2d/src/matchers.cpp:577
#13 0x0000000000401c13 in main () at bfmatcher_segfault.cpp:50

Thread 3 (Thread 0x7f64af9ee700 (LWP 2209)):
#0  0x00007f64b493984d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f64b1785373 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b1135f15 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#4  0x00007f64b2dad0a5 in start_thread (arg=0x7f64af9ee700) at pthread_create.c:309
#5  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f64ae44c700 (LWP 2210)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00007f64b1784a7e in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b0ffe548 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#4  0x00007f64b2dad0a5 in start_thread (arg=0x7f64ae44c700) at pthread_create.c:309
#5  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f64a7fff700 (LWP 2214)):
#0  0x00007f64b0ffdae2 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#1  0x00007f64b0ffe514 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#2  0x00007f64b17872d9 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
#3  0x00007f64b2dad0a5 in start_thread (arg=0x7f64a7fff700) at pthread_create.c:309
#4  0x00007f64b4943cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Valgrind can't help because of too big slow down.
AddressSanitizer just fails on startup with SigSegv, this seems to be bad combination of ASan and OpenCL.
Workaround
It seems, that explicit sync needed after calculating and before result downloading.
If I change return k.run(2, globalSize, localSize, false); to return k.run(2, globalSize, localSize, true);, i.e. pass sync=true - I stops encounter SigSegv.
This fix must be applied in:

ocl_matchSingle: https://github.com/Itseez/opencv/blob/3.0.0/modules/features2d/src/matchers.cpp#L114
ocl_knnMatchSingle: https://github.com/Itseez/opencv/blob/3.0.0/modules/features2d/src/matchers.cpp#L214
ocl_radiusMatchSingle: https://github.com/Itseez/opencv/blob/3.0.0/modules/features2d/src/matchers.cpp#L327

Results
clEnqueueMapBuffer fetches data in concurrent with unfinished kernel, and this is undefined behaviour.
May be sync=false is just randomly passed param? While line at https://github.com/Itseez/opencv/blob/3.0.0/modules/core/src/ocl.cpp#L3382 should change sync to true? But this is not so - I checked, this if branch does not executes in my scenario. The reason is in https://github.com/Itseez/opencv/blob/3.0.0/modules/core/src/ocl.cpp#L3119 - m.u->tempUMat() fails that if-branch. Because UMatData.flags=3 for all Kernel.addUMat(UMat) calls, while TEMP_UMAT=8.
What is TEMP_UMAT? Are those umats should be tempUMat? And even if so - all three Kernel.run in matchers.cpp should be called with sync=true, because there are no async behaviour.
It seems that such bug with OpenCL methods result fetching can be in a lot of places, can you check them please? It is quite dangerous bug. (I checked LKOptFlow - there Kernel.run called with sync=true)
Also, there are no bugfixes bug-porting to 3.0.0 version, because there is no 3.0.0 stable branch. Why so? 3.0.0 branch like 2.4 branch seems to be useful.

clEnqueueMapBuffer fetches data in concurrent with unfinished kernel, and this is undefined behaviour.

Could you provide a link about this from OpenCL specification?
BTW, clEnqueueNDRangeKernel / clEnqueueMapBuffer operations are scheduled into the same OpenCL "command queue" (and there is no out-of-order flag used).

clEnqueueMapBuffer fetches data in concurrent with unfinished kernel, and this is undefined behaviour.

Could you provide a link about this from OpenCL specification?

BTW, clEnqueueNDRangeKernel / clEnqueueMapBuffer operations are scheduled into the same OpenCL "command queue" (and there is no out-of-order flag used).

Yes, I was wrong, the default behaivour is in-order execution, and queue is constructed without params. But workaround works for me (but for now I have no explanation).
Have you ideas of the reason of SigSegv?

Fixed in https://github.com/PolarNick239/opencv/commit/5bf01cc1dfbecc9fc12ded917217ab3bea750704

This commit has not been intergated into upstream yet. @alalek , what do you think?

Also that is not fix - it is workaround. The real reason of segfault can affect other places, so IMHO it is important to investigate the real reason of segfault.

clEnqueueMapBuffer fetches data in concurrent with unfinished kernel, and this is undefined behaviour.

It should be fine If both operation (calculation + result reading) are processed by the same OpenCL command queue (we don't use out-of-order queues, so all operations are executed in order) without synchronization events.
But OpenCV creates command queue per thread, so we need to check that buffer is not shared between multiple threads.


Addition transfer process

Unknown user, first time landing page -> Browsing or contact formular for free.
While browsing present hint "If you are interessted in re-use or sharing, please register"
After frist registering user has the same browsing screen as without registering but hint is hidden and there should be a possibility to mark objects (studys) for re-use and a button "like to share". Pressing the button leads to a form with prefilled Reason, Name and Email.
Manager to set up Studys, DTP and give user permission to view DTP, edit Studys and add objects. If user is part of a known organisation, give permission to see all DUP and DTP+Studys+Objects of that organisation.

see #69


cilium: Fix agent configuration API

Fixes two issues:

Multiple PATCH /config API calls were issued
CLI was not checking response for disabled/false

Signed-off-by<EMAIL_ADDRESS>

This pull request is now managed with CodeReviewHub. Refresh.


Add Windows Server 2016 Technical Preview 4 images

Don't know if you are interested in supporting tech previews in the module. But if you are, this adds the Windows Server 2016 Technical Preview images to the media config

I still have got around to testing these just yet. Would you mind trying one with the latest Register-LabMedia cmdlet in v0.8.5 - if you have time? They seem like a good candidate!

Sure thing. Will try it out shortly

Took a little longer than expected to find the time to test it, but finally managed.
I have tested with addition of a single image from the Win2016 TP4 media so far, and it seem to work a treat.
Ran the following:
C:\> $Parameters = @{

    Id           = '2016TP4_x64_Standard_EN'
    MediaType    = 'ISO'
    Uri          = 'http://download.microsoft.com/download/C/2/5/C257AD1A-45C1-48F9-B31C-5D37D6463123/10586.0.151029-1700.TH2_RELEASE_SERVER_OEMRET_X64FRE_EN-US.ISO'
    Architecture = 'x64'

    Description  = 'Windows Server 2016 Technical Preview 4 Standard 64bit English'
    ImageName    = 'Windows Server 2016 Technical Preview 4 SERVERSTANDARD'
    Filename     = '2016TP4_x64_EN.iso'
    Checksum     = '935BA77651210BD1BD71A114C92B0CAA'

    CustomData   = @{ WindowsOptionalFeature = @('NetFx3') }
}

C:\> Register-LabMedia @Parameters -Verbose

Resulting in this output:
C:\> Register-LabMedia @Parameters -Verbose
WARNING: [16:30:42] No custom media '2016TP4_x64_Standard_EN' registered.
VERBOSE: [16:30:42] Adding '2016TP4_x64_Standard_EN' media entry.
VERBOSE: [16:30:42] Saving configuration '2016TP4_x64_Standard_EN'.
VERBOSE: [16:30:42] Directory 'C:\ProgramData\VirtualEngineLab\Config' already exists.

Id           : 2016TP4_x64_Standard_EN
Filename     : 2016TP4_x64_EN.iso
Description  : Windows Server 2016 Technical Preview 4 Standard 64bit English
Architecture : x64
ImageName    : Windows Server 2016 Technical Preview 4 SERVERSTANDARD
MediaType    : ISO
Uri          : http://download.microsoft.com/download/C/2/5/C257AD1A-45C1-48F9-B31C-5D37D6463123/10586.0.151029-1700.TH2_RELEASE_SERVER_OEMRET_X64FRE_EN-US.ISO
Checksum     : 935BA77651210BD1BD71A114C92B0CAA
CustomData   : {WindowsOptionalFeature}
Hotfixes     :

And this in the CustomMedia.json
[
    {
        "Id":  "2016TP4_x64_Standard_EN",
        "Filename":  "2016TP4_x64_EN.iso",
        "Description":  "Windows Server 2016 Technical Preview 4 Standard 64bit English",
        "Architecture":  "x64",
        "ImageName":  "Windows Server 2016 Technical Preview 4 SERVERSTANDARD",
        "MediaType":  "ISO",
        "Uri":  "http://download.microsoft.com/download/C/2/5/C257AD1A-45C1-48F9-B31C-5D37D6463123/10586.0.151029-1700.TH2_RELEASE_SERVER_OEMRET_X64FRE_EN-US.ISO",
        "Checksum":  "935BA77651210BD1BD71A114C92B0CAA",
        "CustomData":  {
                           "WindowsOptionalFeature":  "NetFx3"
                       },
        "Hotfixes":  null
    }
]

I have also verified that I could deploy a VM with the new media, including download of media, and generation of parent VHDX.

W00t! Thanks for testing.
Now – do we think the preview media should be in the included media list? Is having pre-release media a good idea?
My inclination would be ‘yes’ – where would you test pre-release software? In a lab of course!

I agree Iain - being in the labs included media list just makes sense :-)

For me it is a definite yes :+1:

Thx!

Well ... thank you! :)

From: Pluralsight<EMAIL_ADDRESS>Sent: 18 December 2015 11:40
To: Iain Brighton<EMAIL_ADDRESS>Subject: Thanks for renewing with Pluralsight
[PLURALSIGHT]http://tmail.pluralsight.com/track/click/30210868/www.pluralsight.com?p=eyJzIjoiNGNVRTUzbjIwS095MjRWaVlkRUJjUEZmZmZjIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LnBsdXJhbHNpZ2h0LmNvbVxcXC9cIixcImlkXCI6XCI4MTkzN2MwN2YwM2E0NzJiYWQ3ZmYxNmQ4YTMyNGJhY1wiLFwidXJsX2lkc1wiOltcImY2MjZiYjNkN2RkZGM1NTAxNWJhN2MwMzdkYTQwZWY5MzI4YTExZjJcIl19In0
You’ve got Pluralsight for another month
Hi Iain,
Thanks for renewing your Pluralsight subscription! You can check the status of your subscription at any time by logging into your account. Keep learning with 4,500+ courses at your fingertips.
Log inhttp://tmail.pluralsight.com/track/click/30210868/app.pluralsight.com?p=eyJzIjoiYTM1MnUxLThLYldaSS1SaWRUOWJzbFVOZnRjIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwczpcXFwvXFxcL2FwcC5wbHVyYWxzaWdodC5jb21cXFwvXCIsXCJpZFwiOlwiODE5MzdjMDdmMDNhNDcyYmFkN2ZmMTZkOGEzMjRiYWNcIixcInVybF9pZHNcIjpbXCJkMWEzODNlYjA5MGZjNTNjNDFmZjViY2EyMjBmMGYwMTViYTcwMGZjXCJdfSJ9
Happy learning!
[PLURALSIGHT]http://tmail.pluralsight.com/track/click/30210868/www.pluralsight.com?p=eyJzIjoiNGNVRTUzbjIwS095MjRWaVlkRUJjUEZmZmZjIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LnBsdXJhbHNpZ2h0LmNvbVxcXC9cIixcImlkXCI6XCI4MTkzN2MwN2YwM2E0NzJiYWQ3ZmYxNmQ4YTMyNGJhY1wiLFwidXJsX2lkc1wiOltcImY2MjZiYjNkN2RkZGM1NTAxNWJhN2MwMzdkYTQwZWY5MzI4YTExZjJcIl19In0
182 N Union Ave Suite 200 Farmington, UT 84025
[facebook]http://tmail.pluralsight.com/track/click/30210868/www.facebook.com?p=eyJzIjoiMXFpUHdYRVh6ME00WUdFR2dfaU5ybU9oU2drIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvd3d3LmZhY2Vib29rLmNvbVxcXC9wbHVyYWxzaWdodFwiLFwiaWRcIjpcIjgxOTM3YzA3ZjAzYTQ3MmJhZDdmZjE2ZDhhMzI0YmFjXCIsXCJ1cmxfaWRzXCI6W1wiMTM3YWIxZjgxMmM0YTk3YTI4NTk5NDI0MTQyZWRkOTAzNzU3OGI2N1wiXX0ifQ
[instagram]
[twitter]http://tmail.pluralsight.com/track/click/30210868/twitter.com?p=eyJzIjoiM0tLb3FvMzkxOEtBQ1FEbUVTYTBZWHVWMzFnIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvdHdpdHRlci5jb21cXFwvcGx1cmFsc2lnaHRcIixcImlkXCI6XCI4MTkzN2MwN2YwM2E0NzJiYWQ3ZmYxNmQ4YTMyNGJhY1wiLFwidXJsX2lkc1wiOltcImFmNTZmNjZjZmMwMjBhMDYyZmJhYjBlYTc1ZGNlMWFkYzdjMGFhODJcIl19In0
[linkedin]
[Google Plus]http://tmail.pluralsight.com/track/click/30210868/plus.google.com?p=eyJzIjoiYUdYcmxRZVRrdldGRW0wVkJ1M0k4TnZIdXEwIiwidiI6MSwicCI6IntcInVcIjozMDIxMDg2OCxcInZcIjoxLFwidXJsXCI6XCJodHRwOlxcXC9cXFwvcGx1cy5nb29nbGUuY29tXFxcLytwbHVyYWxzaWdodFwiLFwiaWRcIjpcIjgxOTM3YzA3ZjAzYTQ3MmJhZDdmZjE2ZDhhMzI0YmFjXCIsXCJ1cmxfaWRzXCI6W1wiOGM4MzFiYzRkYzYxYTAwNzVjY2FmYTBmYjkyNTY5NGIzNTU0ZDgzNlwiXX0ifQ
[You Tube]
Copyright© 2015 Pluralsight LLC.
All logos and trademarks are the properties of their respective owners.

@iainbrighton Did you intend to send your Pluralsight renewal mail this way?

Errr no! How did that happen?! Thx - deleted!

Didn't think so


Partial deployment

Description
Currently deploy creates package from all resources and deploys all the content. But let's say I have many UI5 (or any other frontend) applications in one MTA package and I want to push only one of them (because the rest is unchanged). Is this possible/planned behaviour?
Currently I have one UI5 app per MTA but there is another problem with HTML5-Repository where I have to have separate ui deployer for each of this MTA packages, but this is another story.
Having all the applications within one MTA with all other resources would lead to quite a long term operation to push one simple change of the frontend code.
Regards
Michal

A quick workaround would be building just the UIs (invoking grunt in the respective directory) and the using the HTML5 apps repo cf cli plugin to deploy the contents of the dist folder.  This would also shortcut building the whole MTAR.
In the long-term, however, having partial deployments would be really great, as having manifest.yamls for everything you might want to push individually is not optimal.

Hello,
There is a feature in the latest release of the plugin which enables the usage of the partial deployment.
The usage is simple:

execute deploy or bg-deploy and pass -m <module_name> -m <another_module_name> in order to deploy only certain modules. The same applies for the resources(-r).
provide --all-modules or --all-resources for deploying all modules/resources
combine the above two cases

Behavior:
The information about the modules/resources is taken from the deployment descriptor in the current folder. The deployment descriptor is not changed during the deployment!
An MTAR will be created using the provided information about modules and resources, which will contain the binaries of the modules and resources. The binaries for the modules should be specified via the path module element. The binaries for the resources should specified via the path parameters in the parameters section of the resource.
For more info of the usage: cf help deploy or cf help bg-deploy
Best regards,
Encho
P.S. Before using the feature, update to the latest version of the plugin using the cf install-plugin

The issue is closed because it was not an issue :)
If there is a problem with the deployment, re-open it

Hi Encho,
thanks for the detailed info, i will try that asap :)
Regards
Michal

Hi,
is it possible that this feature is not yet available on the windows version of the plugin?

@IObert - it's highly unlikely. Can you tell which version of the plugin you're running on win?
cf plugins


Outputs with the same input but different number of processes (examples: 1, 2, 4) are different (kind of unordered )

Issue in fftw3-mpi_helloworld.c
// PRINTING THE OUTPUT (of each process) (in order)
  for(int i=0;i<world_size;i++){
          sleep(1);
          if(i==rnk)
              print_complex_array(local_out, local_no);
          MPI_Barrier(MPI_COMM_WORLD);
    }

I did some experiments using sleep() function and the problem seems to be happening while printing the output. If the program sleep() for 1 second before printing each process' output, it prints equal across all n's tested (1,2,3,4,5). Of course we don't want to sleep().
One solution might be outputting to one file or different files (not to terminal)
It might get solved if we send output to file: mpiexec -n 4 ./a.out > out.txt ?
Maybe work with a bigger sample (FFTW specifies in their documentation that their algorithms are not deterministic and they may vary slightly across identic runs, our sample is of 15 so maybe we need a bigger one, though it worked perfectly with a 128 sample) Maybe not cancelled: maybe printing is so fast because the sample is very little, so maybe there's no time to finish printing on screen one process' output by the time the other print signal has been sent so now there are two printing task at the same time. Maybe?

Fixed by adding print_to_file function.


[enhancement](jdbc catalog) support postgresql partition table

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.36 seconds
stream load tsv:          554 seconds loaded<PHONE_NUMBER>9 Bytes, about 128 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size:<PHONE_NUMBER>5 Bytes

run p0

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.5 seconds
stream load tsv:          535 seconds loaded<PHONE_NUMBER>9 Bytes, about 133 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size:<PHONE_NUMBER>5 Bytes


Standardize config classes

Downgrade symfony/cache to 6.4 (LTS): 7.x requires PHP 8.2+
Move openai-php/client to require-dev & suggest: OpenAI is not required for Ollama or Anthropic chats. Treat it like other soft deps
Standardize config classes: Config classes were rather different. One used public properties only, another accepted constructor params as well. One used constants, another enums. One set its defaults in the config class, another used a constant in the respective chat class and so on... Now everything concerning configuration is found in the config classes.

Error is false-positive. Runs without any issues with latest pestphp/pest*, phpstan/phpstan, rector/re
ctor versions

Hey everyone, sorry for being a bit busy lately (starting my company).
Good point—it should be moved to require-dev.
@BreyndotEchse, the dependency config is set to "dependency-version: [prefer-lowest, prefer-stable]" to ensure compatibility with older versions.


feat: add thread safety type WebviewMut

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] New Binding Issue #___
[ ] Code style update
[x] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[x] Yes.
[ ] No

The PR fulfills these requirements:

[x] It's submitted to the dev branch and not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
This PR adds some addition in the library to make users able to call webview methods with thread safety manner for sure.

Webview instance remains the same which has !Send/!Sync.
WebviewMut is introduced which can be created by as_mut method from Webview. This is a NewType pattern for users calling API across threads. Note that only chosen methods are implemented in this type. Some calls like run should be definitely called by main thread. Here are the methods provided in WebviewMut:

terminate
get_window
navigate
eval
bind
r#return

WebviewRef is not introduced since the only call it can provide is get_window which is pretty useless imo. Let me know if anyone still thinks this is necessary.
Remove destructors destroy since it shouldn't expose to public. The drop trait should handle itself.
Add a example run_and_terminate to show how users could do other than main thread.

get_window -> can it help resolve my concerns about the scope of the callee as mentioned here:
https://github.com/tauri-apps/tauri/issues/814

Window API is still not defined in webview yet. But I guess it can provide the possibility. Might need to dive into it deeper to figure out.


Profiling and logging

The glass.user.profile() functionality is awkward, and we need a more user-friendly way to profile and log how GLASS runs.
An idea would be to go back to logging directly from the library code, but less intrusively. Every function could use a @glass.user.prof decorator which logs the function start and end using the standard logger under the glass namespace. These logs would not be displayed, unless someone attaches a handler to the logger.
One could even take this further, and make the @glass.user.prof decorator be a no-op based on e.g. environment variables, a config setting, or Python flags.

The idea at this point is to remove the GLASS-specific logging features altogether, and instead rely on more general solutions like the new easyprofile package.


need to tag 3.0.0 in git for bower

yes, release will happen this weekend.
also https://github.com/components/es6-promise is where the bower stuff resides

sorry for the delay, both here and components are now correct tagged.
FYI: latest release is v3.0.2, thank you for your patience.


2 links from README.md don't work

Hello, these 2 links from the 'Learn More' section don't work (I get 404 error):
Design & UI > Animations and any other #animations updates on Google Developers

Description for io2015 exercise is in following link
http://clmirror.storage.googleapis.com/codelabs/web-animations-transitions-playbackcontrol/index.html?index=..%2F..index#0


Static files getting locked on windows

There is a known issue in Jetty which locks static files on windows due NIO. Can you please follow the guidelines from following link to put the workaround in Spark.
http://www.eclipse.org/jetty/documentation/current/troubleshooting-locked-files-on-windows.html

actually found what needs to be changed.
In class SparkServer, where you are creating instance of ResourceHandler,  calling resourceHandler.setMinMemoryMappedContentLength(0); fixes the issue. Would be nice if you can integrate this with build
                if (System.getProperty("os.name").startsWith("Windows"))
                    externalResourceHandler.setMinMemoryMappedContentLength(0);

I built 2.4 and tested, this is fixed now.

I have the same issue with spark version 2.5.2, I've tested on Windows 7, using IntelliJ to remove static files and many git comands.
Spark is run directly as a jar file, without any servlet container.


Cowboy has troubles handling more than ~340000 connections

UBUNTU Version: 11.10
Erlang version: R14B04
HEAD commit id: 66da37e30c306963a19173a1ec77a6253a9cc48d
We have a test on amazon EC2 in which we have a single server and websocket clients connecting to it at a rate of 1000 connections per sec. The clients are also running on amazon. After 340000 clients, we begin to get:
(myserv001@ip-10-17-56-75.ec2.internal)101> 16:17:38.189 [error] Supervisor cowboy_acceptors_sup had child {acceptor,<0.166.0>,79} started with cowboy_acceptor:start_link(#Port<0.4369>, cowboy_tcp_transport, cowboy_http_protocol, [{dispatch,[{'_',[{[<<"ping">>],myserv_healthcheck_handler,[]},{'_',myserv_websocket_handler...}]}]}...], 1024, <0.164.0>, <0.165.0>) at <0.245.0> exit with reason {timeout,{gen_server,call,[<0.164.0>,{add_connection,default,<0.10127.10>}]}} in context child_terminated
16:17:56.330 [error] Supervisor cowboy_acceptors_sup had child {acceptor,<0.374.0>,93} started with cowboy_acceptor:start_link(#Port<0.4393>, cowboy_tcp_transport, myserv_http_or_flash_protocol, [{dispatch,[{'_',[{[<<"ping">>],myserv_healthcheck_handler,[]},{'_',myserv_websocket_handler...}]}]}...], 1024, <0.372.0>, <0.373.0>) at <0.467.0> exit with reason {timeout,{gen_server,call,[<0.372.0>,{add_connection,default,<0.10137.10>}]}} in context child_terminated
16:17:56.396 [error] Supervisor cowboy_acceptors_sup had child {acceptor,<0.374.0>,95} started with cowboy_acceptor:start_link(#Port<0.4393>, cowboy_tcp_transport, myserv_http_or_flash_protocol, [{dispatch,[{'_',[{[<<"ping">>],myserv_healthcheck_handler,[]},{'_',myserv_websocket_handler...}]}]}...], 1024, <0.372.0>, <0.373.0>) at <0.469.0> exit with reason {timeout,{gen_server,call,[<0.372.0>,{add_connection,default,<0.10138.10>}]}} in context child_terminated
16:17:56.421 [error] Supervisor cowboy_acceptors_sup had child {acceptor,<0.374.0>,20} started with cowboy_acceptor:start_link(#Port<0.4393>, cowboy_tcp_transport, myserv_http_or_flash_protocol, [{dispatch,[{'_',[{[<<"ping">>],myserv_healthcheck_handler,[]},{'_',myserv_websocket_handler...}]}]}...], 1024, <0.372.0>, <0.373.0>) at <0.394.0> exit with reason {timeout,{gen_server,call,[<0.372.0>,{add_connection,default,<0.10139.10>}]}} in context child_terminated
16:17:56.504 [error] Supervisor cowboy_acceptors_sup had child {acceptor,<0.374.0>,73} started with cowboy_acceptor:start_link(#Port<0.4393>, cowboy_tcp_transport, myserv_http_or_flash_protocol, [{dispatch,[{'_',[{[<<"ping">>],myserv_healthcheck_handler,[]},{'_',myserv_websocket_handler...}]}]}...], 1024, <0.372.0>, <0.373.0>) at <0.447.0> exit with reason {timeout,{gen_server,call,[<0.372.0>,{add_connection,default,<0.10140.10>}]}} in context child_terminated
16:17:56.557 [error] gen_server redis_srv terminated with reason: {timeout,{gen_server,call,[stat_srv,{global_metrics,hide}]}}
16:17:56.596 [error] CRASH REPORT Process redis_srv with 1 neighbours crashed with reason: {timeout,{gen_server,call,[stat_srv,{global_metrics,hide}]}}

I think this may be a timeout in https://github.com/extend/cowboy/blob/25ae2028d6a9ce516b01f0ec126abeab00eb329d/src/cowboy_listener.erl#L90
Do you have any idea what may be causing this? When running a similar test on UBUNTU 11.04 and erlang R14B03 with older cowboy revisions I was able to get about 500000 connections, now I am getting problems after ~340000.

Can you show me what sys:get_status(Pid) gives you when it starts happening? With Pid the cowboy_listener's Pid.

My guess is that the cowboy_listener process gets flooded with messages because of monitors and is thus unable to reply fast enough. Not sure how to take on this issue but I'll think of something.

The solution is probably to not monitor. After all the websocket code uses a pool that has no maximum connection so it should probably just remove the connection from the default pool instead of moving it into a separate pool.

Change https://github.com/extend/cowboy/blob/master/src/cowboy_http_websocket.erl#L69
cowboy_listener:remove_connection(ListenerPid, self()),

And tell me if that improves things for you.

I have managed to detect a more isolated version of this. It appears to be that in some cases cowboy gets a request timeout for sockets:
I wrote a simple cowboy based server which sends messages to clients once every 25 secs since the client connected. I have ran a test in which clients connect at a rate of 500 per sec to the server. It seems that after about 375000 clients, the server sees the clients as connecting but not sending the request and therefore closes the connection (It occurs in wait_request as a timeout). I tried increasing cowboy timeout to 60000 but it did not help. I ran this test on EC2 with 1 cc4.xlarge instance as the server and 9 m1.large instances as clients. I have also tried applying your change of removing connections from the pool and it did not help. I am sending you the code for our simple server, we run it with ebin/go.sh and then typing: simple_ws_server:start().
We are using erlang r14b04 with ubuntu 11.10
[Attachment in email]

I'll look, thanks.

I'm not sure where we actually are on this issue to be honest, i think we have ruled out the amount of monitors and that using that amount of timers is in itself a problem. What we don't know is how the call time of cowboy_listener:add_connection is affected by the amount of connections added over time, is it linear or does it spike because a large amount of websockets happen to wake up at the same time?
We couldn't find any existing profiling tools to help with that so we wrote a minimal tool to profile a single function over time without adding and modifying instrumentation in the code under test for each change.
https://gist.github.com/1322649
On my system, using cowboy_listener in isolation with a small amount of work being done at intervals, calling a slow fibonacci function, the "acceptors" end up timing out once the node becomes overloaded enough. There had to be a certain amount of other processes doing work competing with the listener process, just a few doesn't affect it as much as one would think.
The solution i've been suggesting is to run the listener at a higher priority using erlang:process_flag(priority, high) because the round-robing scheduler erlang uses gives the same amount of reductions to each process of the same priority, it doesn't matter if it's a websocket connection or a central server that they all depend on. Have we really tried this? It helped keep it responsive in my tests.

Glad that solved it, I'll commit the priority change tonight.
I don't have a link, I just have my own experience. The more timers you add, the more performance drops (and that includes timers implicitly created by receive .. after N -> .. end). It doesn't matter for most applications though so that's probably often overlooked.

Using the timer module has caveats listed here, http://www.erlang.org/doc/efficiency_guide/commoncaveats.html
In general though timers are generally tied to some ordered set with callbacks attached. It can be very costly to maintain large numbers of timers regardless of the timer module caveats. Think about how you might implement timers in a looping program and it quickly becomes clear.
Avoiding the cost of the timer management (ordered set inserts/removes, and callback dispatching) can improve things greatly when your talking about 1 timer compared to hundred's of thousands.

Pushed. Thanks for all the help getting that issue fixed!


fix(java): invalid collections returned with non-class elements

The Java runtime for jsii used to not be able to necessarily hold the
type information necessary to correctly process the contents of
collections, as the generic information is lost.
In order to address this, introduced a new NativeType<T> class that is
able to carry:

The actual declared type of the value (via generic type parameter)
The raw type of the value (reified)
The correct JavaType to pass to Jackson to obtain the correct result

It also preserves the specific behavior around de-serialization of
JsiiObject sub-classes as well as jsii interfaces, correctly
requesting de-serialization as the JsiiObject class, and in a second
phase transform this into the correct value type as needed.
Introduced a new test that validates the List<T> and Map<String, T>
values received from node are deserialized to instances with the
appropriate content type.
Fixes #1196

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Labelled with do-not-merge as I'm pondering whether the old code paths need to be preserved in order to ensure proper interoperability with code generated against older versions of the Java runtime.

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

To help me review, since this change is ungodly:
This was flagged as a regression (since jsii 0.17 if I'm reading the breadcrumb trail directly). Can you explain succinctly what the changes were that caused this breakage (starting from the wire protocol changes, if any) and what the approach for the fix is?
To the uncultured plebeian that I am, it would seem that if the wire protocol says:
[ { "jsii$ref": "my.MyObject@1" }]

It should be easy enough to construct a List with a MyObject in it?
It's probably trickier than that but I need it explained to me like I'm 5 :).


Sentence Parser Error

I get this error when I try to define a Sentence Parser Object.
Traceback (most recent call last):
  File "/Users/cameronbaab/Documents/Marker-Reader4/{DELETE} TESTER.py", line 63, in <module>
    print biomarkerGenerator(parseDocIntoWords())
  File "/Users/cameronbaab/Documents/Marker-Reader4/{DELETE} TESTER.py", line 28, in parseDocIntoWords
    sentence_parser = SentenceParser()
  File "/Users/cameronbaab/Documents/Marker-Reader4/snorkel/snorkel/parser.py", line 138, in __init__
    loc = os.path.join(os.environ['SNORKELHOME'], 'parser')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'SNORKELHOME'

The SNORKELHOME environment variable needs to be set- this will be done automatically if you run with ./run.sh.  Updating README now, sorry you beat me to this!


Wich counter to use and how to set it

Hi,
My physical water counter gives me the consumption 777365Liters
I'd like one counter to be equal to this number in order to check my measurements
Which one should I use (main or primary)
And how can i set it please ?
Thanks

I answer myself, if it could help someone :
I added an api service "set_main_counter" to my water meter yaml :
api:
    services:
    - service: reset_main_counter
      then:
        - script.execute: reset_main_counter
    - service: reset_secondary_counter
      then:
        - script.execute: reset_secondary_counter
     - service: set_main_counter
       variables:
         my_count: int
       then:
         - globals.set:
             id: main_counter_pulses
             value: !lambda 'return my_count;'

after reflashing the esp32, the service is published to home assistant and can be called using developper tools


Trigger external open

Can I open the calendar other than clicking the input element?

You can either trigger a click event on the element:
element.trigger("click");

Or you call the show method on the daterangepicker instance:
element.data("daterangepicker").show();

This does not work for me. Is it possible to open the daterangepicker using a button outside of daterangepicker?

This worked for me, on the click event of the button I wanted to use to open the datepicker I just did:
$('#date-picker-input-id').data('daterangepicker').show();

This is how I solved the issue of opening from an external button:
Controller/Component side:
vm.dateRangePicker = {
    date: {
        // date options here
    }
    picker: null, // daterangepicker initialized on this prop
    toggle() {
        // need to use $timeout here to avoid $apply errors for digest cycle
        $timeout(() => {
            this.picker.toggle();
         });
    }
    options: {
        // options here
    }
}

From template side:
<button type="button" ng-click="vm.dateRangePicker.toggle()">


Add 'im' feature for supporting the im crate collections

This is an experiment; the idea is to encourage the use of these
types over std::collections.
There's currently an issue or two with im::Vector, so this includes
a poor implementation of Data there, for the time being.

keep in mind that in this PR the impl of Data for Vector is slow, because there's an upstream issue; hope that is resolved soon.

okay, let's get this in and we can play around from here.


Add Kubermatic to pick-right-solution.md

Adding information for Kubermatic to Picking the Right Solution documentation

This change is

@chaosaffe @xiangpengzhao Sorry about the delay. Are you ready for me to merge this? Or would you like to make the alphabetizing change? Thanks.

@steveperry-53 I'm fine with merging it as-is if @chaosaffe has no cycles to change the order. That can be a follow-up PR. I'm not strong on changing the order either.


Will pcluster status show failed creating or deletion?

I want to use --nowait on pcluster create and pcluster delete. But I want to later be able to poll/check if the cluster creation or deleting failed or not.
Would I be able to do that with pcluster status?

Hi @calebwin,
Yes, you are able to retrieve cluster creation or deletion status by pcluster status command. --nowait option is specified to skip displaying the status of cloudformation stack events like MasterSeverSubstack or CloudWatchDashBoardSubstack etc., but pcluster status will still return the cluster stack(main stack) status, even if you use --nowait in commands.


App not opening in Android (Play store opening instead)

In IOS everything works, I am able to open the app and it if doesn’t exist AppStore opens. But in android, only the play store opens even when the app I want to open is installed. Any idea?

Can you find the solution?

Please were you able to fix this, i'm having same issue.

I don't remember what I did exactly, but the function that is used is like this:
 const funcName = () => {     AppLink.maybeOpenURL(       Platform.OS === 'ios'         ? 'com.appios.app://'         : 'com.appandroid.app://',       {         appName: 'appName',         appStoreId: 00000000,         playStoreId: 'com.appandroid.app,       },     );   };


Loading a specific material causes Material Maker to crash

Material Maker version:
0.92, some 0.93 versions
OS/device including version:
Windows 10
NVIDIA GeForce GTX 1060 (3GB VRAM)
24GB RAM
Issue description:
Ive been developing a texture and after several iterations the components inside it cause Material Maker to crash.  The file can load but at some point (I assume during the process it takes to build all the textures to create the preview) the app simply crashes.
Steps to reproduce:
https://pastebin.com/2U2dbKma
Add this sub-graph into a scene and see if it crashes?  My guess is that it's due to the Splatter node as the app always stutters when you push the node even a little.

In the node I have added many buffers and it still crashes T _ T

Adding buffers is generally not the best solution. Splatter nodes with many instances can generally be replaced with Tiler nodes, that are a lot cheaper.
In your case, MM seems to crash on a really simple shader, so that may be a different problem.

I can get away with grid tiles sometimes but it doesn't always get me the result I want, and with circular patterns I have to use the Circular Splatter node which heavily slows down the program even when only dealing with a count of 15.  In more recent nodes ive been trying to create brushes of pre-scattered objects to scatter again in order to avoid this but it also has it's specific use cases.

@Takanu That blur update should solve the problem with your material. I'll check if other nodes require the same optimization.


fix: display mfa prompt during lambda layer data fetching

Description of changes
I've added import of singleton spinner from cli core, in order not to create a new ora spinner that blocks the mfa input
Also ora doesn't have any mentions in amplify-category-function, so I removed it from package.json
Before:

After:

Issue #, if available

Description of how you validated changes
Manual testing + yarn test
Checklist

[x] PR description included
[x] yarn test passes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #12267 (fe6ffe9) into dev (984c0f8) will decrease coverage by 2.37%.
The diff coverage is 57.30%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##              dev   #12267      +/-   ##
==========================================
- Coverage   49.45%   47.09%   -2.37%
==========================================
  Files         692      836     +144
  Lines       33424    38036    +4612
  Branches     6840     7716     +876
==========================================
+ Hits        16529    17912    +1383
- Misses      15370    18486    +3116
- Partials     1525     1638     +113

Impacted Files
Coverage Δ

...mplify-appsync-simulator/src/resolvers/function.ts
15.38% <ø> (ø)

...s/amplify-appsync-simulator/src/type-definition.ts
100.00% <ø> (ø)

...sync-simulator/src/velocity/util/dynamodb-utils.ts
6.55% <0.00%> (ø)

...y-appsync-simulator/src/velocity/util/map-utils.ts
10.00% <ø> (ø)

...tor/src/velocity/util/transform/dynamodb-filter.ts
4.93% <0.00%> (ø)

...appsync-simulator/src/velocity/value-mapper/map.ts
86.88% <ø> (ø)

...ackages/amplify-category-auth/src/commands/auth.ts
0.00% <0.00%> (ø)

...ges/amplify-category-auth/src/commands/auth/add.ts
0.00% <ø> (ø)

...es/amplify-category-auth/src/commands/auth/help.ts
0.00% <0.00%> (ø)

.../amplify-category-auth/src/commands/auth/import.ts
0.00% <0.00%> (ø)

... and 94 more

... and 468 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Cant run on a raspberry pi

Hi @Hentra,
i try to run this on an raspberry pi 4 b with rasbian installed.
I had to specify the platform in my compose file, otherwise it would not start.
  netcup:
    container_name: netcup
    restart: unless-stopped
    image: ghcr.io/hentra/dyndns-netcup-go
    platform: linux/x86_64
    volumes:
      - './netcup/confi.yml:/config.yml'
    environment:
      - INTERVAL=300

now, the following error is present in the logs:
exec /dyndns-docker: exec format error

do you have an idea how i can fix that?

What version of Raspbian / Raspberry Pi OS are you using?


Added Theme support for Treeview control

Q
A

Bug fix?
[ ]

New feature?
[X]

New sample?
[ ]

Related issues?
fixes #1196

What's in this Pull Request?
With this PR I resolved the problem described in #1196.
I made these changes:

added to the theme property to the control
changed the CSS file using CSS variables
changed the TreeView main control to inject CSS variables for theming and child controls to add the Theme object as property
changed the documentation
updated the test Web Part.

In preferred to not rewrite all the control (because it's a complex control) and maintain the original CSS file by using CSS variable to inject the correct colors.
This is the result:

Thank you @fabiofranzini!
Please, next time do not shuffle the import declarations. This complicates review process.

Thank you @fabiofranzini! Please, next time do not shuffle the import declarations. This complicates review process.

Yes, sorry for that!
I thought about it when I did it, I'm used to always "organize using".


Possible wrong hint in part1.Relations exercise Bin-predicates

First of all, thanks for writing and making the book available. I am learning Agda from it, and I think it's great.
I believe there is a mistake in the hint for the exercise Bin-predicates in part1.Relations. It says

you may need to prove that 1 is less or equal to the result of from b

but 1 is greater than from (⟨⟩ O) which satisfies from (⟨⟩ O) ≡ 0. Is there something I am not seeing here? Thanks again.

Thank you for the kind words, and for bringing up the issue. According to my records, Jeremy Siek added that phrase. I've written to him to ask why. I agree, it looks wrong to me; inequality is irrelevant to that exercise.

Since my point was not the irrelevance of inequality to that exercise -- my proof used the fact that binary strings which start with a one are greater than zero
zero-<-from-one : ∀ (bin : Bin)
  → One bin
     -------------
  → 0 < (from bin)

and that binary strings obtained from adding these numbers two times is equivalent to adding an O to the end of their binary strings
to-suc-n-2-O : ∀ (n : ℕ)
  → 0 < n
     ---------------------
  → to (n + n) ≡ (to n) O

-- I am now curious about how to prove the exercise without inequality; maybe it was the hint's suggestion that lead me to that path. I don't know whether this is the appropriate place to ask, nor if it is too much to ask, but could you illustrate the point?

I think this was fixed in 8ef93f790bdc17c487972b0054e0369d55861a6f:

Also, you may need to prove that if One b then 1 is less or equal to the result of from b.

Your theorem is responsive to the hint, it seems to me. For what it's worth, I also used similar inequality theorems.

I think this was fixed in 8ef93f7

I agree, and I am closing the issue because of that. Thanks for the update.


TravisCI shield

For additional shields, syntax can be found at this website
Description of this addition:
Two changes occour in the readme.

An inner most is a hidden link to the shield for TravisCI.
An outer link to the specific TravisCI project so that when they click on the readme it takes them right to that projects build status on TravisCI.

Next I am going to work on a codecov sheid. ✌

You may want the shield above or below the title but I thought it looked good to the right of it for now.
Willing to change the placement of the shield upon request.


Change notifications should support SNS/SQS

Change notifications currently go out over email.
It should also support dropping messages into a queue/topic.

What do you think about Alerter base class with some overloadable methods and ability to make them pluggable. Then we can use this mechanism to implement emails, JiraSync, SNS/SQS etc.

I have an implementation of this internally (custom alerter sending things to SNS).
I'll work to open source this.

Hi @monkeysecurity,
any updates for this issue?


Is there a way to send LWT?

If there is not, may I suggest adding it? I quickly went through the MQTT standard and found no mention to LWT.  Is a description of what, and when to send the LWT somewhere?
If this helps on the implementation, the signature for different clients is as follows:
paho-mqtt:
will_set(topic, payload=None, qos=0, retain=False)
NodeMCU client:
mqtt:lwt(topic, message[, qos[, retain]])
IBM WebSphere MQ Telemetry:
MqttConnectionOptions.setWill(MqttTopic lastWillTopic, byte [] lastWillPayload, int lastWillQos, boolean lastWillRetained)

homie will leave LWT in devices/<id>/$online topic. When it not cleanly disconnect from broker (i.e. network failure) broker will set this topic to false.
You can read more about lwt here:
http://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament

Fair enough,  but is there a way where I can set the topic and message for the LWT?  There are many reasons for going offline,  in my especial case, deep sleep.

In version 2.0 there is new functionality. Have a look at here
Yo can also try to define your own LWT by getting acces to underlying homie mqtt client: mqtt-client, but I'm not sure if it won't broke homie itself.
Here is the link to async-mqtt-client used by homie async-mqtt-client

LWT is defined in the spec here.
Only one LWT can be defined, and, following the Homie convention, homie-esp8266 defines one as @benzino77 explained. So yes, you can use the prepareForSleep() function which will take care of cleaning the MQTT connection so you can deep sleep.


Feature/jenkins chef

Resolves ceros/ceros-product#3841
This changes are regarding the replication of all chef-recipes that today are done by rightscale. Now each recipe has your equivalent in the Jenkinsfile.sharejs.
Deploy notes:
No need to deploy.
Testing Steps:
To test it, go to Jenkins (https://jenkins.cerosdev.com) and run the job do_sharejs_operations.

First round of review complete. May have more questions once I figure out what the difference between the Jenkinsfiles is.

Thanks for the explanations! Code 👍 here, so I think the ceros-product PR is the only one left with necessary changes.

This has a functional on ceros/ceros-product#3936 so I'm going to merge it to make reviewing the resize docker branch easier.


Spark pool name only allows alphanumeric characters. Please consider removing "-" from abbrev.

[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8c22eb33-2fde-55b4-021d-e229c857e51b
Version Independent ID: 1f767675-7d50-6ea5-b798-1323cd4a63a1
Content: Recommended abbreviations for Azure resource types - Cloud Adoption Framework
Content Source: docs/ready/azure-best-practices/resource-abbreviations.md
Service: cloud-adoption-framework
Sub-service: ready
GitHub Login: @BrianBlanchard
Microsoft Alias: brblanch

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 438751

Also please consider shortening the abbrev. since the max size is 15 chars.

Thanks for your feedback. We are in the process of updating the abbreviations in the article.


Add support for test_list::InplaceListOperationTests::test_add_str

My first pull request in PyBee - just getting used to the process.

@freakboy3742 Thanks for the review! Since the output of list_add_set is expected to be the original list with an unsorted set appended (for all SAMPLE_DATA), there are a lot of permutations. So, I have updated the SAMPLE_SUBSTITUTIONS in utils.py to handle these cases as well.

Thanks for your contribution! However, the handling for Set and Str was added in #643 (see https://github.com/pybee/voc/pull/643/files#diff-d2a25b564b697db2462757d0b7fa5dfbR111), so closing this PR.


string not being replaced by their translation in web UI in en-US, Mac OS Safari

Rancher versions:
rancher/server: v2.0.0-beta4-rc3
rancher user interface: v2.0.37
Steps to Reproduce:

Mac OS X 10.13.2
Safari Version 11.0.2 (136<IP_ADDRESS>.6)
Mac OS X UI in English
Github login, pick english-US language
go to a cluster page and projects

Results:

a few strings are not converted to the targeted language and shown as for example %projectGroup.label%*
it is everywhere across the UI
in any other browser version or operating system it works fine
in any other language (tried french and japanese) it works fine on Safari and others

example of the problem:

@mimizone - I cannot reproduce your issue.  We do have a backend that turns off/on the language tags.  Click anywhere in rancher that isn't a field to bring the browser to the font, then hit Shift+L.  Sometimes people accidentally turn it on.

Closing - he had an old cached version of the file, so new fields were not showing up properly.

@tfiduccia I saw your message too late. Clearing the entire cache of Safari solved the problem. I was advised by vincent on slack that the en-us.json file may be the older version and that a bug that omits specifying the version of the file makes safari load the older version.


Request: typing support (for mypy)

It would be cool if the huggingface-hub package had either:

Type hints + py.typed
Type stub

This would enable type checking with mypy.  Thanks in advance!

Arf so huggingface_hub is already statically typed but doesn't have the py.typed file. Actually we removed it in https://github.com/huggingface/huggingface_hub/pull/1329 after getting reports in https://github.com/huggingface/datasets/issues/3841 that it was making Pyright complain. The main issue is how we handle our main __init__.py that doesn't have a static __all__ attribute as we generate it on-the-fly so that modules are only lazy-loaded (see __init__.py). A possibility would be to generate statically this __all__ object but we haven't done it (main reason being that no-one ever requested typing support,... yet).

Reminds me of pylint's --generated-members for torch.
  I believe pandas-stubs exists due to dynamic code.
Feel free to close this out if it's something you don't want to support, otherwise feel free to leave open.  Thank you!

I will leave it open at it is for now and if we see more demand from the community in the coming months, I will re-assess. Thanks for the links, typing in Python is not yet perfect so it's good to see how other libraries handle it^^

following https://github.com/huggingface/huggingface_hub/pull/2714
I think this would be a great addition, and you should be able to ignore any type issues encountered on your end with static imports right? Simply type: ignore or disable entire files from being checked, unless I'm misunderstanding.
For now, if anyone is struggling here, add to your pyproject.toml
[[tool.mypy.overrides]]
module = "huggingface_hub.*"
ignore_missing_imports = true


slight refactoring of hubbard model

I added some inline comments; overall this is a good change!

I've made these final changes, including removing normal ordering.
The only one I disagree with is using FermionOperator() instead of FermionOperator.zero(). The static method ensures that no matter what FermionOperator() does (which can and has changed in the past!) that we get a zero operator. If we're committed to never changing the default behaviour of FermionOperator() again, I'll make this change.


Amber Eval Improvement

separate slurm args from the eval args, treat it as an option to allow users without slurm to run eval
update README
upload missing files

Can you please elaborate on the number of GPUs that are required to reproduce the evaluation?


mongo-connector with elasticsearch fails to update a document in elasticsearch when "_source":false in the target mapping in ES

In my index mapping, I have set "_source" to false.  I am not sure, whether this is the reason why my updates are not getting synced by mongo-connector, however, the exception /stacktrace points to something of this sort.
2014-07-02 19:24:36,156 - INFO - PUT http://localhost:9200/analytics.alerts/string/8019C821-E24B-1031-90EA-005056A54F88?refresh=false [status:201 request:0.004s]
2014-07-02 19:24:37,273 - INFO - GET http://localhost:9200/analytics.alerts/_all/8019C821-E24B-1031-90EA-005056A54F88 [status:200 request:0.004s]
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "build/bdist.linux-x86_64/egg/mongo_connector/oplog_manager.py", line 225, in run
docman.update(doc, entry.get('o', {}))
File "build/bdist.linux-x86_64/egg/mongo_connector/doc_managers/init.py", line 24, in wrapped
File "doc_managers/elastic_doc_manager.py", line 68, in update
updated = self.apply_update(document['_source'], update_spec)
KeyError: '_source'
Let me know how I could get more details to get this resolved.

Closing this. This question is now part of the FAQ


Why do buttons overlap other elements indefinitely?

Elements with position absolute and a high zIndex always appear behind the button no matter where I put the element (before or after). Adjusting the zIndex doesn't bring it over the button.
Looking at the source code, there isn't anything that indicates the button should overlap other elements.
Here is a demo, this is on Android
https://snack.expo.io/trgIzinmU

I also having same issue. Button always overlay on top of any other element


chore(package): update statetransition-mixin to version 3.1.21

Codecov Report

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

@@           Coverage Diff           @@
##           master     #250   +/-   ##
=======================================
  Coverage   88.42%   88.42%
=======================================
  Files           1        1
  Lines         216      216
=======================================
  Hits          191      191
  Misses         25       25

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 c81b0fc...a542e48. Read the comment docs.


Support for jquery ui draggable, dropable and selectable.

I'm using listjs on unordered list (ul) together with paging plugin and jquery ui draggable/droppable/selectable. I am able to drag items out from the list to another area (after DnD operation I call List API remove) , but then I've fallen into ambushes.

situation: first we initialize listjs with paging plugin , then draggagble; therefore only first page items will be catched by draggable. Therefore when I remove items from the lists - new items "arrive" to the current page  and I need to include them into draggable (the same I should do when I move to another page)  but  I can't find how I could catch "shown first time" event.
It can be solved initializing draggable/selectable first, but then we will meet the same problem again when we  drop items to the listjs - lets say we add them using lisjs add - how to initialize them when they arrive on the page?

What is also missed: it seems the "add" method doesn't work for me. By drop operation I would like  to include  the same  that were dragged, and not recreate them with List.Add(anonymous_object) from template. They are quite complex, have html5 data, and data in other attributes, it seems templates doesn't cover such situations. What I'm searhching for: Add should accept jquery selector (and/or html text) and include items as they are (parsing them for values of course).  May be it is allready implemented and I just can't find...

how to get listjs item API from $('li')? I would like to experiment with item's hide and show but it seems there are only one way: loop through items array.

I'm sorry but this is to much of a special case for me to take it in account for the core lib. List.js is very dependent on where the items are in the DOM and adding other libs such as draggable & droppable will most likely mess up a lot of stuff for List.js.


fix: Locked wallet should show password screen

:books: Linear Ticket :books:
Expected: Starting screen should be password if wallet is locked
Actual: Starting screen was the splash screen with "Open wallet" button

LGTM


Devs SBAT profile + measure time from cold start to fetching balance completion

Expected Behavior
We know how long it takes till a user can see their current balance after a cold start
Current Behavior
Not measured

See https://github.com/celo-org/celo-monorepo-old/pull/4279/files for reference

See logs here: https://console.cloud.google.com/logs/viewer?authuser=0&project=celo-testnet-production&minLogLevel=0&expandAll=false&timestamp=2019-08-19T18:11:23.024000000Z&customFacets=&limitCustomFacetWidth=true&interval=NO_LIMIT&scrollTimestamp=2019-08-19T02:13:44.842000000Z&resource=global&advancedFilter=resource.type%3D"global"
jsonPayload.event%3D"COMPONENT_UNMOUNT"
to see where about PR logs to

From cold start, takes about 5 seconds if user immediately pulls down balance refresh screen. See the branch annakaz/local-measure-fetch-time

Closing this issue as we have a rough estimate. Opened https://github.com/celo-org/celo-monorepo/issues/662 to look into formalizing the measurement process


[T4A3][W14-B4]Lee Han Cheng

Ready for review.

Good effort.
Some comments added. Please close the PR after reading comments.


Update starknetkit demo to the latest version of starknetkit

We have a demo that uses starknetkit that needs to be updated to the latest release of starknetkit. We should also test that the demo works with the latest release.

Hi

Hi

Please can I on work on this ?

hello @fracek i would love to participate on this issue

Hi @kateberryd @Oshioke-Salaki @martinvibes @Gift-Naomi @ShantelPeters , all applications must go through the ODHack hackathon page. All information are in the main telegram group or here: https://app.onlydust.com/hackathons/odhack-70
Maintainers will be reviewing applications via the platform, not through the comments. Thanks for understanding and respecting this way!

@fracek can i pls work on this ?

@Blumebee The issue doesn't appear in onlydust

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have experience with starknetkit and good reserch skills.
How I plan on tackling this issue
Check the lateste release, see where the version is set, update , test

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hi! My name is Lindsay, and I'm a Software Engineer based in Costa Rica. I'm part of Dojo Coding and thanks to that I've already successfully contributed to 4 ODHacks in various projects, feel free to check my profile and contributions.
I've been working over the past 4.5 years as a full stack developer, specializing myself in frontend development. I've successfully integrated APis, developed new features, optmize projects, improving responsiveness, etc with the most known/used FE frameworks such as React, Next, Vue, and Angular. All this experience plus some courses I've taken had helped me master both javascript and typescript languages.
How I plan on tackling this issue
First I’ll start by setting up and get the demo project running.
Then, I’ll check the kit version it is using and start the upgrade to the latest version. And made any needed changes.
Finally I’ll test the app throughly to make sure it keeps working as before.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
As an experienced Full Stack Blockchain Developer, I'm excited to contribute my expertise to Edition 7 of the OnlyDust hackathons. With a strong background in Next.js, TypeScript, JavaScript, React, Node.js, Solidity, and Cairo, I've honed my technical skills across the blockchain development landscape.
My journey with OnlyDust began at Edition 2, and I've since made 28 contributions across 11 projects. This extensive experience on the platform has allowed me to develop a keen understanding of delivering high-quality solutions under tight deadlines. I bring a unique blend of technical prowess and user-centric design to every project, whether I'm crafting immersive 3D experiences or developing innovative smart contracts.
My track record demonstrates my ability to adapt quickly and contribute effectively to diverse challenges. I'm confident in my capacity to tackle new problems and drive innovation in the blockchain space. As we embark on Edition 7, I'm eager to leverage my hackathon experience and technical skills to push the boundaries of what's possible in blockchain development.
With a passion for creating cutting-edge solutions, I'm excited to collaborate with the OnlyDust community and contribute to the advancement of the blockchain ecosystem.
How I plan on tackling this issue
To solve it, i would:
Update Starknetkit Dependencies
Review the current version of Starknetkit used in the demo.
Update the package.json file to use the latest stable release of Starknetkit.
Run npm update or yarn upgrade to update all related dependencies.
Code Refactoring
Review the demo codebase and identify areas that need to be updated due to API changes in the latest Starknetkit release.
Refactor the code to align with any new patterns or best practices introduced in the latest version.
Update any deprecated method calls or components.
Testing
Set up a test environment that mirrors the production setup.
Perform comprehensive testing of all features in the demo:
Wallet connection
Transaction signing
Contract interactions
Any other Starknetkit-specific functionalities
Test across different browsers and devices to ensure compatibility.
Document any issues or unexpected behaviors encountered during testing.
Bug Fixes and Optimizations
Address any bugs or issues found during the testing phase.
Implement any necessary optimizations to improve performance or user experience.
Documentation Update
Update the demo's README file to reflect the new Starknetkit version and any changes in setup or usage.
Update any inline comments in the code to reflect changes made.
Cross-compatibility Check
Ensure the demo works with different Starknet wallets (e.g., ArgentX, Braavos).
Verify compatibility with both Starknet mainnet and testnet.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Please can I be assign this issue
How I plan on tackling this issue
I'm an familiar with starknet@latest and starknet@next updates

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I am a Full Stack blockchain Developer with expertise in Next.js, Nest.js, TypeScript, JavaScript, React, Node.js, Three.js, and Solidity. My journey with OnlyDust hackathons began at Edition 1, and I've since made 47 contributions across 11 projects. With my extensive experience on the OnlyDust platform (profile:  https://app.onlydust.com/u/Ugo-X), I've honed my skills in delivering quality solutions under pressure.
I bring a unique blend of technical proficiency and user-focused design to every project, whether it's crafting immersive 3D experiences or developing smart contracts. My track record shows I can adapt quickly and contribute effectively to diverse challenges.
As we surf through Edition 7, I'm excited to leverage my skills and hackathon experience to push the boundaries of blockchain development. I'm confident in my ability to tackle new challenges and drive innovation in this space.
How I plan on tackling this issue
I will approach the task of updating the demo that uses starknetkit to the latest release and testing its functionality as follows:

Review current demo and starknetkit version:
a. I will examine the existing demo to understand its structure and how it currently uses starknetkit.
b. I will identify the current version of starknetkit being used in the demo.

Update starknetkit dependency:
a. I will update the package.json file to specify the latest stable version of starknetkit.
b. I will run the package manager's update command (npm update or yarn upgrade) to install the latest version.

Refactor demo code:
a. I will review the changelog or release notes of starknetkit to identify any breaking changes or new features.
b. I will update the demo code to accommodate any API changes in the latest starknetkit release.
c. I will implement any new features or best practices introduced in the latest version, if applicable.

Update development environment:
a. I will ensure that all related dependencies are compatible with the new starknetkit version.
b. I will update any development tools or configurations if necessary.

Test functionality:
a. I will run the demo locally to verify that it starts without errors.
b. I will test all existing features of the demo to ensure they still work as expected with the new starknetkit version.
c. I will pay special attention to wallet connection, transaction signing, and any Starknet-specific functionality.

Implement additional tests:
a. I will create new test cases to cover any new features or changes introduced in the latest starknetkit release.
b. I will ensure that error handling and edge cases are properly tested.

Documentation updates:
a. I will update any documentation within the demo project to reflect the new starknetkit version and any changes in usage.
b. I will add notes about the update process and any significant changes to the README file.

Performance check:
a. I will compare the performance of the demo with the new starknetkit version against the previous version.
b. I will identify and address any performance regressions, if found.

Cross-browser and cross-device testing:
a. I will test the updated demo across multiple browsers to ensure compatibility.
b. I will verify that the demo works correctly on both desktop and mobile devices.

Final review and submission:
a. I will conduct a final code review to ensure all changes are correct and follow best practices.
b. I will create a pull request with a detailed description of the updates made and the test results.
c. I will be prepared to address any feedback or questions from the review process.

By following these steps, I will ensure that the demo is successfully updated to use the latest release of starknetkit and that it functions correctly with the new version. This approach covers not only the update process but also thorough testing and documentation to maintain the demo's quality and usefulness.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hi there
I’m a frontend developer skilled in TypeScript and ReactJS with years of experience
How I plan on tackling this issue
With a strong grasp of the latest updates in Starknetkit, including changes between starknet@next and starknet@latest, I will go through all the import statements and update it, also check for errors to ensure compattibility.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
i'm a frontend dev and i have skills in react, typescript, next.js, tailwind, sass, boostrap etc. i would love to work on this i i'm giving the oppotunity
How I plan on tackling this issue
Identify Current Version: Check the package.json file for the installed StarknetKit version.
Update StarknetKit: Use npm update or yarn upgrade to update to the latest version.
Verify Installation: Ensure the version has been updated correctly.
Test the Demo: Run the demo and thoroughly test all functionalities.
Address Issues: If you encounter issues, investigate and make necessary adjustments.
Retest: Retest the demo to ensure it's working as expected with the latest StarknetKit version.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hello Group lead I am Joseph Chimebuka I'm a full-stack software developer with 4+ years of experience in crafting innovative products. I've built a range of projects, including https://mattedsgn.vercel.app/ and https://metacrypt.vercel.app/ showcasing my expertise in React, Next.js, and blockchain technologies. I'm also an active contributor onlydust. here's my account https://app.onlydust.com/u/josephchimebuka.
How I plan on tackling this issue
I'll look up the latest version of StarknetKit in its official repository or documentation to ensure I'm updating to the most recent release.
I'll update the StarknetKit dependency in my project's package.json file to the latest version. This can typically be done by running a command like npm install starknetkit@latest or yarn add<EMAIL_ADDRESS>make any necessary changes to my code to accommodate updates or new features introduced in the latest version of StarknetKit.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have extensive experience in front-end and full-stack web development, working with a variety of frameworks and libraries, including React, Vue.js, and various state management solutions. I'm particularly adept at integrating third-party libraries and APIs into web applications
How I plan on tackling this issue
I would approach this issue with following steps
Set up the environment:
Install the latest starknetkit version using pnpm add starknetkit@next.
Set up the demo application's codebase.
Understand the codebase:
Review the code and identify areas using starknetkit.
Update the codebase:
Migrate to the latest starknetkit API, addressing any breaking changes.
Test the updated code locally.
Implement testing:
Create a comprehensive test suite covering the application's key functionality.
Run tests to ensure no regressions.
Optimize the application:
Refactor and optimize the codebase for performance, maintainability, and responsiveness.
Document the changes:
Update the project's documentation with instructions for setup, running, and testing.
Prepare for future updates:
Set up a process for monitoring starknetkit releases and updating the demo accordingly.
Implement CI/CD to streamline the update process.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
To update the demo with the latest release of starknetkit:

Upgrade Package: Install the latest version of starknetkit using pnpm add starknetkit@next.
Update Demo: Refactor the demo code to be compatible with any breaking changes or new features in the latest release.
Test Functionality: Ensure the demo works as expected with the updated starknetkit, verifying all features and interactions.

How I plan on tackling this issue

Install Latest Version: Run pnpm add starknetkit@next to update to the latest release.
Update Demo: Modify the demo code to be compatible with changes in the new version.
Test Thoroughly: Verify that the demo functions correctly with the updated starknetkit, checking for any issues or regressions.

Thank you @fracek will start right away and let you know if I encounter any issues

Hi @fracek just opened the PR. Please read the solution description I wrote there to make sure the issue was approached correctly.


Ability to run smart-log in silent mode

I run gl pretty often and I set LESS to clear terminal after quitting, so I see a lot of:
$ gl
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph
$ gl
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph
$ gl
Executing: git log --pretty=format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset --graph

Therefore I would like ability to prevent output of obvious Executing: ... line, I did it in this pull-request by redirecting it to STDERR, so I can silence it with alias gl='git smart-log 2>/dev/null without affecting functionality of this command.

+1