[BUG] Running out of space?

I seem to be running out of space on the kublet?
What did you do?
Ran 33 pods, ran out of disk space.

How was the cluster created?

k3d create

What did you do afterwards?

OS operations (e.g. shutdown/reboot)?

Restarted Docker several times with normal use of laptop.
What did you expect to happen?
Images to be pulled
Screenshots or terminal output
51s         Normal    ScalingReplicaSet   deployment/logikk-ofc                        Scaled up replica set logikk-ofc-858947857b to 1
51s         Normal    SuccessfulCreate    replicaset/logikk-ofc-858947857b             Created pod: logikk-ofc-858947857b-g99ch
51s         Warning   FailedScheduling    pod/logikk-ofc-858947857b-g99ch              0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.

 Wanted to free<PHONE_NUMBER> bytes, but freed 25951436 bytes
  Warning  ImageGCFailed            14m                    kubelet, k3d-k3s-default-server     failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed      14m                    kubelet, k3d-k3s-default-server     failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed            9m41s                  kubelet, k3d-k3s-default-server     (combined from similar events): failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 25472120 bytes
  Normal   NodeHasDiskPressure      8m6s                   kubelet, k3d-k3s-default-server     Node k3d-k3s-default-server status is now: NodeHasDiskPressure
  Warning  EvictionThresholdMet     7m4s (x7 over 8m6s)    kubelet, k3d-k3s-default-server     Attempting to reclaim ephemeral-storage
  Warning  FreeDiskSpaceFailed      4m41s (x2 over 9m41s)  kubelet, k3d-k3s-default-server     (combined from similar events): failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes

kubectl describe node
Name:               k3d-k3s-default-server
Roles:              master
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/os=linux
                    kubernetes.io/arch=amd64
                    kubernetes.io/hostname=k3d-k3s-default-server
                    kubernetes.io/os=linux
                    node-role.kubernetes.io/master=true
Annotations:        flannel.alpha.coreos.com/backend-data: {"VtepMAC":"c2:e4:46:c6:f0:cd"}
                    flannel.alpha.coreos.com/backend-type: vxlan
                    flannel.alpha.coreos.com/kube-subnet-manager: true
                    flannel.alpha.coreos.com/public-ip: <IP_ADDRESS>
                    node.alpha.kubernetes.io/ttl: 0
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Thu, 17 Oct 2019 18:27:41 +0100
Taints:             <none>
Unschedulable:      false
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  MemoryPressure   False   Sat, 19 Oct 2019 20:18:31 +0100   Fri, 18 Oct 2019 16:06:50 +0100   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Sat, 19 Oct 2019 20:18:31 +0100   Sat, 19 Oct 2019 20:13:51 +0100   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure      False   Sat, 19 Oct 2019 20:18:31 +0100   Fri, 18 Oct 2019 16:06:50 +0100   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            True    Sat, 19 Oct 2019 20:18:31 +0100   Fri, 18 Oct 2019 16:06:50 +0100   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  <IP_ADDRESS>
  Hostname:    k3d-k3s-default-server
Capacity:
 cpu:                2
 ephemeral-storage:  65792556Ki
 hugepages-1Gi:      0
 hugepages-2Mi:      0
 memory:             8403404Ki
 pods:               110
Allocatable:
 cpu:                2
 ephemeral-storage:<PHONE_NUMBER>7
 hugepages-1Gi:      0
 hugepages-2Mi:      0
 memory:             8403404Ki
 pods:               110
System Info:
 Machine ID:
 System UUID:                B53B486A-0000-0000-9F6B-21555A75059D
 Boot ID:                    770613f9-09ef-4e6d-a77f-51f01902fe65
 Kernel Version:             4.14.131-linuxkit
 OS Image:                   Unknown
 Operating System:           linux
 Architecture:               amd64
 Container Runtime Version:  containerd://1.2.8-k3s.1
 Kubelet Version:            v1.15.4-k3s.1
 Kube-Proxy Version:         v1.15.4-k3s.1
PodCIDR:                     <IP_ADDRESS>/24
Non-terminated Pods:         (34 in total)
  Namespace                  Name                                                               CPU Requests  CPU Limits  Memory Requests  Memory Limits  AGE
  ---------                  ----                                                               ------------  ----------  ---------------  -------------  ---
  openfaas                   of-builder-6c8868c77-826wc                                         0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  kube-system                coredns-66f496764-ncwzt                                            100m (5%)     0 (0%)      70Mi (0%)        170Mi (2%)     2d1h
  default                    nginxingress-nginx-ingress-default-backend-5dfb46cbbf-228bj        0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                system-metrics-757fc4459-px7vj                                     0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas                   edge-router-7f987df5dd-s52g5                                       0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  kube-system                ofc-sealedsecrets-sealed-secrets-57d676dd57-fb2rt                  0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas                   basic-auth-plugin-6f5878475f-lhhcv                                 20m (1%)      0 (0%)      50Mi (0%)        0 (0%)         2d1h
  openfaas                   nats-79ffb4bb68-lx47q                                              0 (0%)        0 (0%)      120Mi (1%)       0 (0%)         2d1h
  openfaas-fn                audit-event-7dd458c765-qnjdc                                       0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas                   alertmanager-6f4d78df56-cb2qp                                      0 (0%)        0 (0%)      25Mi (0%)        50Mi (0%)      2d1h
  openfaas-fn                github-push-6c89774b4f-mbvvc                                       0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                echo-fb5ff7954-t79cg                                               0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  kube-system                tiller-deploy-8557598fbc-g7dk6                                     0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                system-dashboard-67cfcd4fb5-65gzc                                  0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                git-tar-78c75fb69-p2hk7                                            0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                list-functions-85d6997654-xrssx                                    0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                github-status-55ddb476c7-5tn6x                                     0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas                   prometheus-6dc96bbdbb-m6tqs                                        0 (0%)        0 (0%)      512Mi (6%)       0 (0%)         2d1h
  openfaas                   cloud-minio-78d969549f-fsjs8                                       250m (12%)    0 (0%)      256Mi (3%)       0 (0%)         2d1h
  openfaas-fn                garbage-collect-5c8665d9dd-vw4fk                                   0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  default                    nginxingress-nginx-ingress-controller-598fc75d7c-cdlgj             0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                system-list-functions-849bf8bfdc-6jm2m                             0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas-fn                pipeline-log-646f694bb9-4jzhd                                      0 (0%)        0 (0%)      0 (0%)           0 (0%)         2d1h
  openfaas                   queue-worker-5d69f8f5d7-qdx8j                                      50m (2%)      0 (0%)      120Mi (1%)       0 (0%)         2d1h
  default                    svclb-nginxingress-nginx-ingress-controller-6gn2w                  0 (0%)        0 (0%)      0 (0%)           0 (0%)         69m
  openfaas                   queue-worker-5d69f8f5d7-ds9t5                                      50m (2%)      0 (0%)      120Mi (1%)       0 (0%)         2d1h
  openfaas                   gateway-54f468c5df-z228c                                           100m (5%)     0 (0%)      240Mi (2%)       0 (0%)         34h
  openfaas-fn                counter-5b96477dc6-q9p6d                                           0 (0%)        0 (0%)      0 (0%)           0 (0%)         27h
  openfaas-fn                system-github-event-7b64cf557d-nmrnt                               0 (0%)        0 (0%)      0 (0%)           0 (0%)         68m
  default                    inlets-operator-5496b5dd7b-pz85f                                   0 (0%)        0 (0%)      25Mi (0%)        128Mi (1%)     62m
  default                    nginxingress-nginx-ingress-controller-tunnel-client-6b58944kdfz    0 (0%)        0 (0%)      0 (0%)           0 (0%)         61m
  openfaas-fn                import-secrets-796bbdc89-cqllq                                     0 (0%)        0 (0%)      0 (0%)           0 (0%)         35m
  openfaas-fn                buildshiprun-6c78fb8d9b-q572d                                      0 (0%)        0 (0%)      0 (0%)           0 (0%)         25m
  openfaas-fn                logikk-ofc-5fcb759cc8-chzl8                                        100m (5%)     500m (25%)  128Mi (1%)       128Mi (1%)     6m54s
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests      Limits
  --------           --------      ------
  cpu                670m (33%)    500m (25%)
  memory             1666Mi (20%)  476Mi (5%)
  ephemeral-storage  0 (0%)        0 (0%)
Events:
  Type     Reason                 Age                  From                             Message
  ----     ------                 ----                 ----                             -------
  Warning  FreeDiskSpaceFailed    60m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          60m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    55m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          55m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          50m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    50m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    45m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          45m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    40m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          40m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          35m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    35m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          30m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 25951436 bytes
  Warning  FreeDiskSpaceFailed    30m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 25951436 bytes
  Warning  ImageGCFailed          25m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  FreeDiskSpaceFailed    25m                  kubelet, k3d-k3s-default-server  failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Normal   NodeHasDiskPressure    18m                  kubelet, k3d-k3s-default-server  Node k3d-k3s-default-server status is now: NodeHasDiskPressure
  Warning  EvictionThresholdMet   17m (x7 over 18m)    kubelet, k3d-k3s-default-server  Attempting to reclaim ephemeral-storage
  Warning  FreeDiskSpaceFailed    15m (x2 over 20m)    kubelet, k3d-k3s-default-server  (combined from similar events): failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Warning  ImageGCFailed          10m (x3 over 20m)    kubelet, k3d-k3s-default-server  (combined from similar events): failed to garbage collect required amount of images. Wanted to free<PHONE_NUMBER> bytes, but freed 0 bytes
  Normal   NodeHasNoDiskPressure  4m50s (x2 over 70m)  kubelet, k3d-k3s-default-server  Node k3d-k3s-default-server status is now: NodeHasNoDiskPressure

Which OS & Architecture?

Linux, Windows, MacOS / amd64, x86, ...?

MacOS
Which version of k3d?

output of k3d --version

k3d version v1.3.3

Which version of docker?

output of docker version

docker version
Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 05:26:49 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 05:32:21 2019
  OS/Arch:          linux/amd64

I think that this might be related to the same problem as https://github.com/rancher/k3d/issues/119 and https://github.com/rancher/k3d/issues/110

https://github.com/rancher/k3d/issues/119#issuecomment-544280733

Closing this in favor of https://github.com/rancher/k3d/issues/133


Run your first app: Android Basics with Compose

While I try to run on Emulator.
** 1)Intel HAXM is required to run this AVD. HAXM is not installed.
Install Intel HAXM for better emulation performance.

2)Asked 2GB RAM > NEXT

Android SDK is up to date.
Running Intel® HAXM installer
Intel HAXM installed successfully!
Done

Again Showing "HAXM is not installed" **

Versions
Android Studio version: Android Studio Flamingo | 2022.2.1 Patch 2
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @debarajbhuyan
Thank you for writing in with your issue.
From the information provided I am unable to determine what might be causing the issue.
I would suggest reading this Stack Overflow post as various suggestions and solutions are provided which hopefully with help you resolve your situation.
Hope this helps.
Regards.


Gracefully handle all failures regarding opening memory pressure moni…

…toring.
Addresses #28#issuecomment-2302729826
Not tested.

See https://github.com/SUPERCILEX/clipboard-history/issues/28#issuecomment-2302751839. I don't blindly ignore errors. Otherwise, you won't even know if the code is working when it's supposed to.


ClickUp Integration 7

From ClickUp Integrations Team (in ClickUp):Test!

Testing!

Test 2

Test 3


Unable to read env file incase of heavy load on server

We are having issue to read env file values during heavy load on server.
Even tried using Config and calling them through static function.
Kindly suggest any changes to fix this.

Yes. We recommend using the config:cache command always. The issue you are seeing is likely not the file not being loaded, but actually the variables leaking across your website's because environment variables are not thread-safe. This is mitigated by Laravel's config caching.


.onSubmitSuccess not work on editionView

Hi,
I want to override the default behavior after editing an entity, ng-admin redirects to the previous page (list view) instead of staying on the edition view.
to reverse this behavior, I added .onSubmitSuccess() on EditionView and it works.
like
.onSubmitSuccess(['progression', function(progression) {
// stop the progress bar
progression.done();
// enable the default redirect to the list view
return false;
}])
But, when I use the same on creationView() the behavior is not changed, it redirect me to /list after the creation.
Is there anything to modify/add to fix it ?
Thanks

You need to reload the current state if you want to your changes (new API call).
Inject $state in your onSubmitSuccess callbak.
$state.reload();

Did you test with the master build?

Hi,
what do you mean by the master build?
I tested it with on all environnement of ded, local, dev.....prod, and the hock is only work on editionView not on creation.

@Taharbenmedjbour, he meant using marmelab/ng-admin as a dependency in your package.json.

Thank's

Thanks

No feedback on this one, closing. Feel free to reopen if you can reproduce.


what is the dataset formulation

for the pocket, i see there are something like
'coordinates':
[array([[ 56.689, -15...e=float32)]
'meta_info':
{'config': {'cx': 56.0925, 'cy': -19.674, 'cz': -36.187, 'sx': 5.4703043478260795, 'sy': 6.121739130434774, 'sz': 4.126855072463773}, 'fpocket': {'Score': '-0.046', 'Druggability Score': '0.000', 'Number of Alpha Spheres': '15', 'Total SASA': '65.409', 'Polar SASA': '37.634', 'Apolar SASA': '27.775', 'Volume': '158.569', 'Mean local hydrophobic density': '3.000', 'Mean alpha sphere radius': '3.835', ...}}
'side':
[0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, ...]
'residue':
['B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', 'B190', ...]
'pdbid':
'7cw4-fep'
can you please explain what does those things stand for?
thank you!

config: The pocket is determined using a rectangle, cx cy cz represents the geometric center of this rectangle, and sx sy sz represents the length, width, and height of this rectangle.
side: Whether to mark it as a side chain
HE2: Definition of H-atom in Amber format. For details, you can refer to openmmforcefields


404 at /desktop/linux/

I found a broken link : https://docs.docker.com/desktop/linux/#credentials-management

Thanks for reporting! Looks like https://github.com/docker/docker.github.io/pull/15219 removed the pages, but didn't add redirects; I opened a pull request to fix this; https://github.com/docker/docker.github.io/pull/15231

In the meantime; the new location for that content is here; https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users


Size of Speaker Images to very large.

Actual Behaviour
Just installed the app on my device and after 10mins of use the app has used 300MB of mobile data.
The size of speaker images is the major reason behind this.
Size of some images is as high as 6.2MB. (Speaker - Blair Layton, Image - https://storage.googleapis.com/eventyay.com/events/6/speakers/2312/photo/TXZMK1JFUm/f3069efd-8cdf-4786-9e59-046f95f41440.png)
Expected Behaviour
The images must be compressed using tinypng or pngcrusher. I guess the same has been done in the project 2017.fossasia.org. We can also reduce size of Sponsor images.
Would you like to work on the issue?
Yes

@mananwason @the-dagger
What can we do about this.
Should I update the URLs of the images or do we need to update the api?

@free4murad
another thing we can do is as we are using picasso we can reduce the size of the image using the .resize() parameter of picasso. I think thats a feasable option right now.

@arp95 That will still download the larger photo and then resize while setting it. The point here is to save precious mobile data for user since he might be roaming.

@arp95
the problem is downloading big files.
We need to solve that.

This in turn is related to #1260 too, app must be crashing while handling the large bitmap. Small bitmaps would also fix that and use very less memory (RAM) for overall better performance.

We can use https://rsz.io/ for resizing the image before loading. Only effort required is to modify the image URL before loading in Picasso. @free4murad can work on that I guess, and if required, I'd be happy to help :smile:

@iamareebjamal That is awesome. I didn't know about existence of such a service.

Good find @iamareebjamal https://github.com/iamareebjamal, we can
definitely use this in the app. :+1:

@the-dagger should i make a PR?

Sure :+1:

Has anyone tried to use this with current image url (https://storage.googleapis.com/eventyay.com/events/6/speakers/2167/photo/ZFd5OHBEam/1485777076.63.png) ? (Not in app but manually on web)

There is one drawback though, if we use https://rsz.io/  the load time of the images will increase drastically.
What should we do.

@free4murad Try to use this : https://storage.googleapis.com.rsz.io/eventyay.com/events/6/speakers/2236/photo/TDdIUVJIRD/717127c3-d441-41c7-808e-f4378f74b940.png?width=200
I mean change the url like this. I could find any significant difference while downloading. (This is a particular case)

@free4murad The load time will be slow for first time only even if that happens, then it will be retrieved from disk cache (Picasso) so it must not make a major difference.

@betterclever @iamareebjamal @the-dagger
I will proceed with this method then.

@the-dagger rsz.io is not Open Source as far as I can see. Also, we want to ensure that the Android builder can work potentially as a commercial service. Depending on third-parties that are neither Open Source nor provide a commercial service, that we can rely on is not a good idea. Please do not use rsz.io and do not merge PRs with rsz.io or similar services. Use existing Open Source libraries like ImageMagick or others - just like many large scale commercial services. Thank you.

Ok, thanks for the heads up @mariobehling.
I was not aware.
@free4murad please try to use any alternative open source solution as Mario
suggested instead of using rsz.io
On Sunday, March 12, 2017, Mario Behling<EMAIL_ADDRESS>wrote:

@the-dagger https://github.com/the-dagger rsz.io is not Open Source as
far as I can see. Also, we want to ensure that the Android builder can work
potentially as a commercial service. Depending on third-parties that are
neither Open Source nor provide a commercial service, that we can rely on
is not a good idea. Please do not use rsz.io and do not merge PRs with
rsz.io or similar services. Use existing Open Source libraries like
ImageMagick or others - just like many large scale commercial services.
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-android/issues/1264#issuecomment-285951018,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGQtlr7RqgqVKEHUsH00siYY2NJ7nmoIks5rlAtvgaJpZM4MWrtW
.

--
Best,
Harshit Dwivedi

Some of the resources mentioned here will help -
https://github.com/adamdbradley/foresight.js/wiki/Server-Resizing-Images

I coded a quick solution for it. Please take a look and test if it fulfills the requirements
https://github.com/iamareebjamal/resizr

Actually I myself started writing an API for this.
I will complete in a day.
I was planning to use that

OK :+1:

@free4murad status?

I am working on# 1244
Will send a PR asap


Bug/#335 fix for a whole lot of memory leaks

This is a large commit (sorry!) that resolves a great deal of memory leaks. It's tested by running a slightly altered version of the instrumentation tests which loops for 100 iterations per sample fragment. If it doesnt crash on api 8 or api 10 devices (which has max heap of 25 MB) then we're in good shape. @MKergall may want to take a look at the changes for FolderOverlay and a few minor changes to Marker.

Huge work.
onDetach should also be added to Polygon and Polyline overlays, and to MinimapOverlay.

Great catch
On Jul 2, 2016 1:10 PM, "MKer"<EMAIL_ADDRESS>wrote:

Huge work.
onDetach should also be added to Polygon and Polyline overlays, and to
MinimapOverlay.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/osmdroid/osmdroid/pull/347#issuecomment-230112126,
or mute the thread
https://github.com/notifications/unsubscribe/AB4kGTDVKzUG3fBBFqqFpyzo2-YsGb0Sks5qRpt4gaJpZM4JDjso
.

long story short, nice quite ready to merge yet. I did add the detach methods for polyline and polygon. I also had to modify the IRegisterReceiver class to have a destroy method. I then found another slow leaker that was making the test process unstable over longer durations. I did add leak canary, ACRA and some code to dump hrpof files to find the error. Eventually I found a slow leak using the hprof file and MAT, ArrayAdapter in the FragmentSamples. It may be a bug in the API8 codebase.

Turns out it wasn't an android bug, just a matter of poor documentation with list view fragments.

MinimapOverlay will be covered by the TilesOverlay that it inherits from. Polyline and polygon were added

yay! finally got ci to pass, any more suggestions @MKergall ?

whoops, didn't mean to merge this, too late now i guess


Optimizing the CompressDir function

Now, the content of each file is no longer fully read into memory, but directly copied into a zip file through io. Copy(). Before the loop, we created the target file and reused the file handle in the loop, thereby reducing disk write operations. Finally, during export, we use the defer statement to release resources and ensure that these resources are properly closed before the program exits

Details: https://github.com/moonD4rk/HackBrowserData/pull/223#issuecomment-1606896105


Potential flaky test

Saw this test failure in CI:
--- FAIL: TestLauncher_Pkger (3.93s)
    --- FAIL: TestLauncher_Pkger/managing_pkg_lifecycle_with_stacks (1.98s)
        --- FAIL: TestLauncher_Pkger/managing_pkg_lifecycle_with_stacks/apply_a_pkg_with_a_stack_and_associations (0.47s)
            --- FAIL: TestLauncher_Pkger/managing_pkg_lifecycle_with_stacks/apply_a_pkg_with_a_stack_and_associations/should_unassociate_resources_from_label_when_removing_association_in_pkg (0.08s)
                pkger_test.go:877:
                    	Error Trace:	pkger_test.go:704
                    	            				pkger_test.go:804
                    	            				pkger_test.go:877
                    	Error:      	Received unexpected error:
                    	            	resource_type="label_mapping" err="failed to apply resource"
                    	            		metadata_name="telegrafs:069ba262537e2000:069ba26252790000" err_msg="Cannot add label, label already exists on resource"
                    	Test:       	TestLauncher_Pkger/managing_pkg_lifecycle_with_stacks/apply_a_pkg_with_a_stack_and_associations/should_unassociate_resources_from_label_when_removing_association_in_pkg
    --- FAIL: TestLauncher_Pkger/apply_a_template_of_all_new_resources (0.43s)
        --- FAIL: TestLauncher_Pkger/apply_a_template_of_all_new_resources/pkg_with_same_bkt-var-label_does_nto_create_new_resources_for_them (0.19s)
            pkger_test.go:3238:
                	Error Trace:	pkger_test.go:3238
                	Error:      	Received unexpected error:
                	            	resource_type="label_mapping" err="failed to apply resource"
                	            		metadata_name="telegrafs:069ba2642bbe2000:069ba263f4390001" err_msg="Cannot add label, label already exists on resource"
                	Test:       	TestLauncher_Pkger/apply_a_template_of_all_new_resources/pkg_with_same_bkt-var-label_does_nto_create_new_resources_for_them

I couldn't reproduce it locally

The entire TestLauncher_Pkger suite was skipped on the 2.0 branch in #20089. I left it running in master (for now) because it contains a large number of tests.


Add Events Section in home page

Need to add Events section in home page
Currently included sections on home page

Intro Section
Latest & Featured Blog posts
Projects Section
Get in touch section

@Levi-11 do we need to list past events on home page ?
Or just featured(past) and upcoming events only !

@Levi-11 do we need to list past events on home page ?
Or just featured(past) and upcoming events only !

Yes, we can


Delayed reduction for M31 summations - from Plonky3

Description
Upon #806
Adds a .sum function for Mersenne31, following the delayed reduction strategy.
There was no summation interface so not labeling this as an optimization, although it is.
Here's a simple setup to test the performance:
let iter = (u32::pow(2, 23)..u64::pow(2, 60)).map(F::weak_reduce).map(|e| F::pow(&e, pow));
let now = Instant::now();
{ F::sum(iter); }
let elapsed = now.elapsed();

// Summation with iter.reduce(|x, y| Self::add(&x, &y)).unwrap_or(Self::zero())
Elapsed: 9.19s
Elapsed: 9.20s
Elapsed: 9.01s
Elapsed: 8.86s
// Summation with Self::from_u64(iter.map(|x| (x as u64)).sum::<u64>())
Elapsed: 8.79s
Elapsed: 8.76s
Elapsed: 8.81s
Elapsed: 8.77s

[X] Linked to Github Issue

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.55%. Comparing base (601ab67) to head (5d41943).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #810   +/-   ##
=======================================
  Coverage   94.55%   94.55%
=======================================
  Files         154      154
  Lines       34587    34594    +7
=======================================
+ Hits        32705    32712    +7
  Misses       1882     1882

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


connection diagram of the programmer

Hi, thanks for your article, it helped me a lot to figure out that usb-c was not created for downloading a sketch
But I have a question, how to connect the programmer in wt32-sc01 plus

it seemed to me mlm on the attached screenshot, you have changed the rx and tx places, could you attach a clear connection diagram of the programmer?
and I understand that you are powering wt32-sc01 plus from 3v3?

If you read the text in the 1st paragraph here is says to connect TX with Rx, Rx with TX, GND with GND, and GPIO0 with GND.
It also says that you cannot power the WT32-SC01+ from the serial programmer because there isn't enough ooomph. You have to power it from its own USB-C port. The 3.3V selector is for the TTL logic value, and like all ESP32 signals, the TX/RX signals are 3.3V not 5V.

thank you, I really appreciate the explanation


Feature request: Linebreak style

A rule or setting to enforce (consistent) linebreaks would be good:
So either CRLF or LF (or CR), and no mixing.

I think this ought to be fairly straight forward to implement. might look at this sometime soon if time permits. I think it's just checking the text content of the NewLineTrivia nodes.

Something I ran into while writing this rule is that the tslint parse.ts file is splitting code on \n to break it up into lines, whereas the typescript scanner (slash source file) is aware of the other potential line endings. This is not a problem for CRLF but is a problem for CR. I'm not sure if literally anyone still uses CR but if they do I cannot lint there line endings properly (likely tslint just doesn't support linting those files altogether).
For now I will leave the CR functionality stubbed in and implementation commented out. I'll leave it to you guys to decide if CR support is a desired bug fix or not.

This is also going to be really hard to write a test for because creating a a test lint file with mixed line endings is going to be a nightmare with git. I think i may have to just settle for very basic tests where each file is just in a different line ending. It just means two tests for each line ending config (one fail and one success).

i am going to mark the entire line as a failure because it is a bit awkward to mark just the line ending as a failure. Open to suggestions on how to better approach the failure range.


alert but the pod were exist

i install the k8s with kops, and install prometheus-operator with  /contrib/kube-prometheus/manifests/

Prometheus Operator version:
 0prometheus-operator-deployment.yaml-image: quay.io/coreos/prometheus-operator:v0.23.1
 prometheus-prometheus.yaml-baseImage: quay.io/prometheus/prometheus

Kubernetes version information:
v1.9.8

Kubernetes cluster kind:
insert how you created your cluster: kops.

Manifests:

/contrib/kube-prometheus/manifests/*

The Alarm expression:

ALERTS{alertname="KubeClientErrors"}
Element | Value
-- | --
ALERTS{alertname="KubeClientErrors",alertstate="firing",instance="<IP_ADDRESS>:10250",job="kubelet",severity="warning"} | 1
ALERTS{alertname="KubeClientErrors",alertstate="firing",instance="<IP_ADDRESS>:443",job="apiserver",severity="warning"} | 1
ALERTS{alertname="KubeClientErrors",alertstate="firing",instance="<IP_ADDRESS>:10250",job="kubelet",severity="warning"} | 1

vector(1)
Element | Value
-- | --
{} | 1

ALERTS{alertname="KubeControllerManagerDown"}
Element | Value
-- | --
ALERTS{alertname="KubeControllerManagerDown",alertstate="firing",severity="critical"} | 1

** I want how the value access, what mistake i did? **

Kops has different labellings on the pods/services, but we already have a mixin prepared for kops so you can just follow this: https://github.com/coreos/prometheus-operator/tree/master/contrib/kube-prometheus#cluster-creation-tools


QuantumVolume QASM circuit error

Information

Qiskit Terra version: qiskit-terra==0.18.1
Python version: 3.7.3
Operating system: macOS Mojave

What is the current behavior?
The method QuantumVolume at qiskit.circuit.library.quantum_volume can be used to  generate quantum volume circuits. Some of the circuits generated by this method throw an error when they are saved as a QASM file, and then read in using QuantumCircuit.from_qasm_file(path)
Steps to reproduce the problem
This circuit:

qasm_error_circuit.txt

was generated using the qiskit.circuit.library.quantum_volume method. When I run this code:
from qiskit import QuantumCircuit

qc = QuantumCircuit.from_qasm_file("qasm_error_circuit.txt")

I get the error
    qc = QuantumCircuit.from_qasm_file("qasm_error_circuit.txt")
  File "//anaconda3/lib/python3.7/site-packages/qiskit/circuit/quantumcircuit.py", line 1900, in from_qasm_file
    return _circuit_from_qasm(qasm)
  File "//anaconda3/lib/python3.7/site-packages/qiskit/circuit/quantumcircuit.py", line 2733, in _circuit_from_qasm
    ast = qasm.parse()
  File "//anaconda3/lib/python3.7/site-packages/qiskit/qasm/qasm.py", line 54, in parse
    return qasm_p.parse(self._data)
  File "//anaconda3/lib/python3.7/site-packages/qiskit/qasm/qasmparser.py", line 1070, in parse
    self.parser.parse(data, lexer=self.lexer, debug=self.parse_deb)
  File "//anaconda3/lib/python3.7/site-packages/ply/yacc.py", line 333, in parse
    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
  File "//anaconda3/lib/python3.7/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
    p.callable(pslice)
  File "//anaconda3/lib/python3.7/site-packages/qiskit/qasm/qasmparser.py", line 525, in p_gate_decl_0
    self.update_symtab(program[0])
  File "//anaconda3/lib/python3.7/site-packages/qiskit/qasm/qasmparser.py", line 77, in update_symtab
    str(prev.line) + ', file', prev.file)
qiskit.qasm.exceptions.QasmError: "Duplicate declaration for gate 'su4_976' at line 88, file qasm_error_circuit.txt.\nPrevious occurrence at line 18, file qasm_error_circuit.txt"

What is the expected behavior?
Suggested solutions
Naming each su4 declaration with additional unique numbers so there are no duplicates.

It seems like a QASM2 exporter bug. The gate su4_976 is indeed declared twice with the same definition.
gate su4_976 p0,p1 {
	u3(1.9655999,2.3987196,-2.2546057) p0;
	u3(1.5148767,-4.4749776,-0.46615319) p1;
	cx p0,p1;
	u3(0.94403169,0,-pi) p0;
	u3(0.032590768,-3*pi/2,0) p1;
	cx p0,p1;
	u3(0.21974522,-3*pi/2,0) p0;
	u3(pi/2,3*pi/2,0) p1;
	cx p0,p1;
	u3(1.3900444,-5.9328549,-0.037958155) p0;
	u3(1.1913644,2.6888198,-1.5405513) p1;
}

Hi @epelofske-LANL , I was trying to reproduce the issue but I could not find any case. The point is to find a qiskit.circuit.library.quantum_volume.QuantumVolume that, when exported to QASM2, ends with to repeated gate declarations. I tried this:
from qiskit.circuit.library.quantum_volume import QuantumVolume
import re
for i in range(100):
    try:
        qasm_str = QuantumVolume(i % 15, i, seed=i).qasm()
    except TypeError:
        qasm_str = QuantumVolume(i % 15, i, seed=i).decompose().qasm()   #because of #7051
    gates = re.findall( r'gate (.*?) \{', qasm_str)
    gate_counts = {i:gates.count(i) for i in gates}
    for gate, count in gate_counts.items():
        if count > 1:
            print(gate, count)

In other words, how did you build qasm_error_circuit.txt?

@1ucian0 For some reason, I never encountered the error while handling the circuit as a qasm string returned by the QuantumVolume method. The only time I ever got an error was when reading in the qasm file using QuantumCircuit.from_qasm_file. As for exactly how to generate a circuit which has this repeat declaration, I do not have a random seed saved that does this. However, in my experience the rate at which these circuits occur is somewhere a bit under 1% of the time - if you generate 1,000 random circuits the error should occur. Also, the error seems to be somewhat independent of the num_qubits argument. I got this error for num_qubits=3,4,4,5, and higher.

The only time I ever got an error was when reading in the qasm file
that's because the file is not valid. QASM2 importer does not allow double gate declaration. That's way the focus should be in how that invalid qasm file was generated. I assumed it came from something like QuantumVolume(3, 4).decompose().qasm(). It this a fear assumption?

btw, 10'000 circuits and still nothing:
from qiskit.circuit.library.quantum_volume import QuantumVolume
import re
for i in range(10000):
    circuit = QuantumVolume(3, i % 20, seed=i)
    try:
        qasm_str = circuit.qasm()
    except TypeError:
        qasm_str = circuit.decompose().qasm()    gates = re.findall( r'gate (.*?) \{', qasm_str)
    gate_counts = {i:gates.count(i) for i in gates}
    for gate, count in gate_counts.items():
        if count > 1:
            print(i, gate, count)

Could you post the output of
import qiskit
print(qiskit.__file__)
print(qiskit.__version__)

I can't produce any errors with your script, and the format of the files you're providing isn't consistent with the output of Terra 0.18.  In yours, each gate is defined immediately before it is used, so the lines go
gate su4_123 p0,p1 { ... }
su4_123 q[0], q[1];
gate su4_234 p0,p1 { ... }
su4_234 q[2], q[3];
...

but Terra 0.18 will output something like
gate su4_123 p0,p1 { ... }
gate su4_234 p0,p1 { ... }
...

qreg q[4];
su4_123 q[0], q[1];
su4_234 q[2], q[3];
...

with all the gate definitions first, followed by the main programme.  I suspect your environment might be slightly off, and  you're importing a Terra from the 0.17 series or earlier by accident, before #5887 was merged to fix many of these problems.

What I mean is that I did not encounter an error when running the code you have above - i.e. circuit.qasm never threw an error even if there was a double gate declaration.

Also, @epelofske-LANL: we understood that the bug was in reading from the file, not generating it.  The error was telling us that there was a duplicate error definition, so @1ucian0's attempt to reproduce it was a streamlined version of that.  Instead of parsing the QASM each time, he just slimmed it down to a quick regular expression that checked if any gates were defined twice, so he could run more loops quickly.

I suspect your environment might have gone wrong somewhere, and a Terra from the 0.17 series or earlier has ended up on the path by accident, which is before #5887 was merged to fix many of these problems.

@jakelishman Yes, that is the problem. According to pip I have qiskit-terra==0.18.1 installed, but  the actual version I am using is 0.17.0:
>>> import qiskit
>>> print(qiskit.__file__)
//anaconda3/lib/python3.7/site-packages/qiskit/__init__.py
>>> print(qiskit.__version__)
0.17.0

Ah, that's good to know!  Thanks - bugs are always super scary when we can't reproduce them, so good to know the cause in the end.
In general, conda and pip play a little weirdly together. When you're using packages from both at once, conda list is typically a little more reliable than pip list, because conda knows how to read pip's status, but it doesn't really work the other way around.


TFS 2017 - DeployTestAgent failed - caused infinite reboot loop

25T22:03:39.3077144Z ##[error]Error occured on ':5985'. Details : 'Exception calling "StopService" : "Not found "'. For troubleshooting, refer https://aka.ms/remotevstest.
2017-08-25T22:03:39.3077144Z ##[error]System.Exception: Error occured on ':5985'. Details : 'Exception calling "StopService" : "Not found "'. For troubleshooting, refer https://aka.ms/remotevstest.
2017-08-25T22:03:39.3077144Z ##[warning]For troubleshooting, refer https://aka.ms/remotevstest.
2017-08-25T22:03:39.3077144Z ##[error]System.InvalidOperationException: Deploy Test Agent task has failed on all machines. Check the logs for more details.
2017-08-25T22:03:39.3077144Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DeployTestAgent.Run()
2017-08-25T22:03:39.3077144Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.TaskRunner.Run(Dictionary`2 arguments, VssConnection connection, TaskType taskType)
2017-08-25T22:03:39.3077144Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.InvokeDeployTestAgentCmdlet.ProcessRecord()
2017-08-25T22:03:39.3077144Z ##[error]PowerShell script completed with 2 errors.
It should deploy as interactive process, without updating the agent. I do expect a reboot because of the session/credentials. But after this it kept rebooting the client, even after the actual release was stopped. Shouldn't a autologoncount parameter be set in the register to prevent this from happening? Can we do any custom steps to prevent this behaviour?

Can you please let us know the version of Deploy Test Agent task? and please share the build logs.

Please see the attached file for logs.
The task version number is 1.*
deploy test agent build logs.txt

@ISAF87 This has been addressed in TFS 2017 Update 2 if you are using On-Prem.
And same is available with v2 version of task in VSTS
Please try out the same and let us know if you are still facing the issue.
For more info - please check this blog https://blogs.msdn.microsoft.com/devops/2017/07/03/deploy-visual-studio-test-agent-task-test-machine-rebooting-scenarios/

Can you briefly explain the cause, so I can clarify on the project what is happening and why we should upgrade?

@ISAF87 For running automated UI tests, we reboot the machine to get interactive session. Due to corporate group policies/Registry settings, we may not be able to auto logon to that machine for running the tests.
In this case, we will end up rebooting continuously. In later releases, we have added proper warnings and reboot limits to let users inform why we failed to get "auto logon" session for running the tests.
This is required to run the tests.


Tune Shadow Priest DungeonSlice APL

DungeonSlice fight type needs to be improved for shadow in regards to the APL.
To fix the issue with SWP uptime, this suggestion was made:
actions.cleave+=/dark_void,if=raid_event.adds.in>10&dot.shadow_word_pain.refreshable
actions.cleave+=/shadow_word_pain,target_if=refreshable&target.time_to_die>4,if=!talent.misery.enabled&cooldown.dark_void.remains>=4

Results: https://www.raidbots.com/simbot/report/mmaStqjCf37GqtVrcTUF2P
Unfortunately this is a loss in uldir composite, need to check if we can specify APL in the conditional or something else.

Also need to test:
actions.cleave+=/shadow_word_pain,target_if=refreshable&target.time_to_die>10,if=!talent.misery.enabled&cooldown.dark_void.remains>=4
actions.cleave+=/vampiric_touch,target_if=refreshable,if=(target.time_to_die>14)

Investigate whether removing the aoe actionlist is worth

APL Changes made here: https://github.com/simulationcraft/simc/pull/4665


Add Suggest Loi Card View

Towards #1541
Adds a new card view for Suggest Loi cards and manages them alongside the Loi cards in the MapCardAdapter

/gcbrun

/gcbrun

/gcbrun


Could you update home page url on pypi?

Currently, it has an old url with a typo.

Thanks! Yes I'll update it for the next release.


Codeunit 6620 "Copy Document Mgt." - OnAfterCopySalesDocument, OnAfterCopyPurchaseDocument with Enum FromDocType as Parameter instead of Option

Hi, would it be possible to move 1st paramter of the existing events OnAfterCopySalesDocument and OnAfterCopyPurchaseDocument to Enum instead of options? It would save me some necessary conversions because of warnings.

Thanks

This is breaking change, can be done by obsoleting exiting event and introducing new one instead. Cost of this change will be much higher compared with conversion of values. I don't think we should do it now.

Closing for now, we will consider this kind of changes later. You can always use construction like
SalesDocTypeAsEnum := "Sales Document Type".FromInteger(SalesDocTypeAsOption)
in your extension code to convert option value to normal enum.


chore(simple_planning_simulator): tmp ci build test

Description
[DO NOT MERGE]
This is for a test of github ci.
related to https://github.com/autowarefoundation/autoware.universe/pull/5062
Tests performed

Not applicable.
Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[ ] I've confirmed the contribution guidelines.
[ ] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

This CI should fail for the reason of https://github.com/autowarefoundation/autoware.universe/pull/5062. I'll investigate it


[red-knot] Mark LoggingGuard as must_use

Summary
Prevents developers like me from trying to use
ruff_db::testing::setup_logging();

without capturing the returned guard in a variable:
warning: unused `LoggingGuard` that must be used
  --> crates/red_knot_workspace/tests/check.rs:24:5
   |
24 |     ruff_db::testing::setup_logging();
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: Dropping the guard unregisters the tracing subscriber.
   = note: `#[warn(unused_must_use)]` on by default

I'm not sure why the inner tracing::subscriber::DefaultGuard is not marked as must_use in tracing, but they do mark the return value of tracing::subscriber::set_default as must_use:
https://github.com/tokio-rs/tracing/blob/15600a3a67c418f53cb80ff21da57d89a5de0486/tracing/src/subscriber.rs#L57
That doesn't trigger anymore because we store the result in LoggingBuilder::build() here:
https://github.com/astral-sh/ruff/blob/1f82731856eb0f199c8b11f8e06c32020a6a9738/crates/ruff_db/src/testing.rs#L182-L206
An alternative might be to mark both setup_logging and setup_logging_with_filter as must_use.
Test Plan
Run cargo test with the code above and observe the compiler warning.

Ah nice!


[docs] Remove oplog capture mode from MongoDB documentation

oplog option was removed in 707eeab3d8c4a3c9 and is not available in 2.x any more. Remove it from Mongo connector documentation.

@vjuranek Applied, thanks for the cleanup!


Fixing typo in dbadbassembly example

Type of Change

[x] Bug fix (non-breaking change, fixes

Purpose
Typo

Errors are irrelevant on CI.


OpsOf.java:87-102: Method call description has to contain...

The puzzle 403-214b0d9e from #403 has to be resolved:
https://github.com/yegor256/jpeek/blob/b62ae0fc337919e1f54d2b8d081343c69d536c97/src/main/java/org/jpeek/skeleton/OpsOf.java#L87-L102
The puzzle was created by sbt-garus-dg on 25-Mar-20.
Estimate: 30 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@paulodamaso/z please, pay attention to this issue

The job #437 assigned to @victornoel/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat refuse

@0crat refuse (here)

@victornoel The user @victornoel/z resigned from #437, please stop working. Reason for job resignation: Order was cancelled

@0crat refuse (here)

@victornoel Job refused in 17 hours - no penalty, see §6

The job #437 assigned to @dgarus/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat status

@0crat status (here)

@dgarus This is what I know about this job in C7JGJ00DP, as in §32:

The job #437 is in scope for 6days
The role is DEV
The job is assigned to @dgarus/z for 5days
There is a monetary reward attached
@dgarus/z will get 50% of their hourly rate for this job
The job doesn't have any impediments
The budget is 30 minutes/points
These users are banned and won't be assigned:

@0pdd/z: This user reported the ticket
@victornoel/z: User was resigned from the ticket

Job footprint (restricted area)

@dgarus/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@0crat status

@0crat status (here)

@dgarus This is what I know about this job in C7JGJ00DP, as in §32:

The job #437 is in scope for 9days
The role is DEV
The job is assigned to @dgarus/z for 8days
There is a monetary reward attached
@dgarus/z will get 50% of their hourly rate for this job
The job doesn't have any impediments
The budget is 30 minutes/points
These users are banned and won't be assigned:

@0pdd/z: This user reported the ticket
@victornoel/z: User was resigned from the ticket

Job footprint (restricted area)

@0crat wait

@dgarus @paulodamaso What are we waiting for here?

@0crat refuse

@vzurauskas sorry, it's my fault. I'm on vacation

@0crat refuse (here)

@dgarus The user @dgarus/z resigned from #437, please stop working. Reason for job resignation: Order was cancelled

The job #437 assigned to @hdouss/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@hdouss/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@0crat wait

@paulodamaso please review or merge PR #464

The puzzle 403-214b0d9e has disappeared from the source code, that's why I closed this issue.

@0pdd 2 puzzles #469, #470 are still not solved.

@sereshqua/z please review this job completed by @hdouss/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat quality good

@0pdd the puzzle #469 is still not solved; solved: #470.

@0pdd the puzzle #515 is still not solved.


Add support for interval offsets

Adds the ability to offset a Task by a specific interval from its Plan, such so that the Task calculates its next run based on adding said interval to the Plan's next interval. This can be useful if one has a preexisting Plan and needs to uniformly adjust the times at which its Task runs (eg. timezone differences, etc.).
Usage examples:
plan.do(offsetBy: 3.hours) { ... }

let calculateOffset = { () -> Interval? in
  // some computation to calculate offsets on the fly
}
plan.do(offsetBy: calculateOffset) { ... }

Codecov Report

Merging #28 into master will decrease coverage by 0.22%.
The diff coverage is 85%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   90.86%   90.63%   -0.23%
==========================================
  Files          16       16
  Lines         832      844      +12
==========================================
+ Hits          756      765       +9
- Misses         76       79       +3

Hi @Wilsonator5000 , Sorry for my late reply! I like the offset idea! But i think it should be part of the plan, not the task, so this may be better:
extension Plan {
    // just a draft
    func offset(_ body: @autoclosure @escaping () -> Interval?) -> Plan {
        return Plan.make { () -> AnyIterator<Interval> in
            let it = self.makeIterator()
            return AnyIterator {
                if let next = it.next() {
                    return next + (body() ?? 0.second)
                }
                return nil
            }
        }
    }
}

And since it's actually a transformation, a map operator seems better, what do you think?

Hi @jianstm, your method makes sense too! A map wouldn't work because it would convert the iterator to an array, and we want the the intervalOffset body to be evaluated when the next run time is calculated (which could be far in the future). I'll look into the iterator method, though.


transition: AccessibilityMap: add more color palettes (instead of only the blue shades)

[ ] red to green
[ ] choose color for gradients
[ ] others?

That should be something that the user can set itself. Maybe have a few "standard" palette, but then make it an full custom option. (That is saved in users preferences, or eventually in the project settings)

(Seem simple enough to be a good first issue, at least the selection of other palette. The full custom one might be more complex)

Currently, it is possible to change the color of the accessibility map in the preferences. @kaligrafy has something else in mind with this, maybe he can add some details here, but it's the good first issue part is already available.


Optimize collision-loop in update

The game checks way to many possible collisions, this could be optimized a lot by only checking for collisions between the ball and objects near it.

Not necessary as amount of blockers is heavily reduced #14


RangeOption for crypt

I went through a lot of iterations of this going this way and that way.
In the end I decided to do the simplest possible thing.
Can you give it the once over and tell me what you think?
I've merged your ChunkedReader as part of this - I only ended up using the interface in the end, I thought it would probably be best to do anything with the ChunkedReader in another commit.

Hmm, I'd better fix it before you take a look :-)

Travis has built now so ready for you to take a look!
(Not sure why I get two travis tests a push one and a PR one!)

Did you have any thoughts on this @B4dM4n ? I'm pretty sure it is OK but would appreciate a once over if you have the time this weekend.  If not, no worries I'll merge it anyway and let the users loose on it!

@B4dM4n thanks for the review :-)

You added the ChunkedReader with this commit but didn't use it. Is this intentional?

Yes, I decided that we should put it in the toolbox as it is a nice piece of code!
Will merge manually...


Build failure: "erro: "entryFile" is not defined."

Describe the bug
I'm currently updating the dev dependencies of the angular component library angular-archwizard.
While updating a bunch of dependencies (see here for the performed changes) I ran into a build failure that occurred during the execution of scss-bundle (see here for the error log).
The build failed with the following error message:
[20:59:56] erro: "entryFile" is not defined.

I am not sure why scss-bundle can't find entryFile, because it is defined inside the scss-bundle.config.json file which consists of:
{
    "bundlerOptions": {
        "entryFile": "./src/css/archwizard.scss",
        "outFile": "./dist/archwizard.scss",
        "logLevel": "warning"
    }
}

The error occurs with scss-bundle version ~3.1.2.
When using scss-bundle version ~3.0.0, the error does not occur.
To Reproduce
Steps to reproduce the behavior:

Clone angular-archwizard using git clone git@github.com:madoar/angular-archwizard.git
Install all necessary dependencies for angular-archwizard using npm i
Build angular-archwizard using npm run build
See error

Expected behavior
The build to succeed.
Package version: v3.1.2
Node version: v12.18.4
OS: Linux

We had this issue and were able to workaround it by adding the --config option
scss-bundle --config scss-bundle.config.json

It seems since --config is new in 3.1.0 it was accidentally made required.


fix fill property for DE flag

This actually isn't an issue though. The default fill color is black, hence any fill=#000 blocks are optimized away by SVGO.
Other cases of this are in:
https://github.com/lipis/flag-icon-css/blob/master/flags/4x3/ae.svg?short_path=a7bdb17#L4
https://github.com/lipis/flag-icon-css/blob/master/flags/4x3/eg.svg?short_path=a755cd7#L2
https://github.com/lipis/flag-icon-css/blob/master/flags/4x3/iq.svg?short_path=ab90fd0#L4
https://github.com/lipis/flag-icon-css/blob/master/flags/4x3/mw.svg?short_path=5bd17f8#L5
This shouldn't be merged because any subsequent SVGO runs will just reoptimize this and revert it.


When I run Train, I get this error "AttributeError: 'NoneType' object has no attribute 'message_types_by_name'"

When I run Train, I get this error "AttributeError: 'NoneType' object has no attribute 'message_types_by_name'"
When I install the dependencies (Build Env), in some point I get
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.10.0 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.1 which is incompatible.
tensorboard 2.10.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.1 which is incompatible.
So I updated protobuf to version 3.12.2, 3.9.2. And apparently, the error message disappears.
But when I try to start the train, I get:
Traceback (most recent call last):
File "/workspace/Dreambooth-Stable-Diffusion/main.py", line 2, in
from ldm.modules.pruningckptio import PruningCheckpointIO
File "/workspace/Dreambooth-Stable-Diffusion/ldm/modules/pruningckptio.py", line 1, in
from pytorch_lightning.plugins.io.torch_plugin import TorchCheckpointIO
File "/venv/lib/python3.10/site-packages/pytorch_lightning/init.py", line 30, in
from pytorch_lightning.callbacks import Callback  # noqa: E402
File "/venv/lib/python3.10/site-packages/pytorch_lightning/callbacks/init.py", line 14, in
from pytorch_lightning.callbacks.base import Callback
File "/venv/lib/python3.10/site-packages/pytorch_lightning/callbacks/base.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "/venv/lib/python3.10/site-packages/pytorch_lightning/utilities/init.py", line 18, in
from pytorch_lightning.utilities.apply_func import move_data_to_device  # noqa: F401
File "/venv/lib/python3.10/site-packages/pytorch_lightning/utilities/apply_func.py", line 29, in
from pytorch_lightning.utilities.imports import _compare_version, _TORCHTEXT_LEGACY
File "/venv/lib/python3.10/site-packages/pytorch_lightning/utilities/imports.py", line 121, in
_WANDB_GREATER_EQUAL_0_10_22 = _WANDB_AVAILABLE and _compare_version("wandb", operator.ge, "0.10.22")
File "/venv/lib/python3.10/site-packages/pytorch_lightning/utilities/imports.py", line 71, in _compare_version
pkg = importlib.import_module(package)
File "/venv/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/venv/lib/python3.10/site-packages/wandb/init.py", line 26, in
from wandb import sdk as wandb_sdk
File "/venv/lib/python3.10/site-packages/wandb/sdk/init.py", line 9, in
from .wandb_init import _attach, init  # noqa: F401
File "/venv/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 30, in
from . import wandb_login, wandb_setup
File "/venv/lib/python3.10/site-packages/wandb/sdk/wandb_login.py", line 25, in
from .wandb_settings import Settings, Source
File "/venv/lib/python3.10/site-packages/wandb/sdk/wandb_settings.py", line 39, in
from wandb.sdk.wandb_setup import _EarlyLogger
File "/venv/lib/python3.10/site-packages/wandb/sdk/wandb_setup.py", line 22, in
from . import wandb_manager, wandb_settings
File "/venv/lib/python3.10/site-packages/wandb/sdk/wandb_manager.py", line 14, in
from wandb.sdk.lib.proto_util import settings_dict_from_pbmap
File "/venv/lib/python3.10/site-packages/wandb/sdk/lib/proto_util.py", line 6, in
from wandb.proto import wandb_internal_pb2 as pb
File "/venv/lib/python3.10/site-packages/wandb/proto/wandb_internal_pb2.py", line 6, in
from wandb.proto.v3.wandb_internal_pb2 import *
File "/venv/lib/python3.10/site-packages/wandb/proto/v3/wandb_internal_pb2.py", line 16, in
from wandb.proto import wandb_base_pb2 as wandb_dot_proto_dot_wandb__base__pb2
File "/venv/lib/python3.10/site-packages/wandb/proto/wandb_base_pb2.py", line 6, in
from wandb.proto.v3.wandb_base_pb2 import *
File "/venv/lib/python3.10/site-packages/wandb/proto/v3/wandb_base_pb2.py", line 21, in
__RECORDINFO = DESCRIPTOR.message_types_by_name['_RecordInfo']
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
I searched this error, and I found: https://github.com/protocolbuffers/protobuf/issues/10075.
So I have tried to install another protobuf versions, but nothing have worked.

ok, I run again today, and apparently It works 🤔


tests.bats: Improvements, enable wnox/xnow for OpenBSD 6.7

PR #447 introduces full W^X support for hvt on OpenBSD 6.7. This followup enables the corresponding tests on OpenBSD 6.7.
As part of this, add some abstractions for declarative skipping of tests and update the call sites to use them where appropriate.
/cc @adamsteen

I've added an OpenBSD 6.7 beta CI node to the mix, and it passes wnox and xnow as expected.
I've also made various improvements to tests.bats, mainly to make it easier to eyeball test results / CI runs -- among other things tests that are skipped due to the underlying target not being built in the fist place are now skipped without printing a reason. What I really want in this case is "pretend this test does not exist" but bats doesn't have that, so this will do for now.

Ok, so 3d460df was "fun". Whoever wrote the FreeBSD ELF loader must have thought "ELF interpreter ... not found" is a fatal error indeed, to bother sending it to the ctty with uprintf() .
/cc @hannesm @sg2342
OpenBSD67 failure is transient, and can't be bothered waiting for Travis ppc64le which will just work, merging this as "good enough for now".


Update cri-dockerd links to point to the official docs

We get a lot of questions around the installation of cri-dockerd in the repo. We've found that many of the questions come from users being linked to the repo from the kubernetes docs and then they try to use the development installation method when they are not developers.
We now have an official documentation page that provides a straightforward installation using the different packages available. This PR is to update the links in the website so users get directed to the official docs rather than the repo.

Looks like a lot of unrelated changes. Some  are good, but it would be better to keep this focused on the primary change.
Also, policy is to only update one language at a time. Can you start with updating the English pages. Then follow up PRs can update the translations.

/lgtm
Thanks!

/remove-language hi
/remove-language ja
/remove-language ko
/remove-language pt
/remove-language zh

/unhold
PR now targets only single language en.


trying out a file pattern instead of passing in the json string directly

Blah, I don't like this. It looks like trying to run terraform show -json > plan.json saves more than just the json plan to the file, but includes some fancy wrapper stuff which then breaks json parsers. I wonder if we just have the user pass in the plan file and let this action parse it to json and then figure things out.


Fixing url type

Coverage remained the same at 100.0% when pulling 5a702c90465b43f9d39fc92b0221ba7ff3df625e on ktutnik:master into 32505cbbba800ba4de712d85c6f882523fc0d91a on kambojajs:master.


Validation | Schedule B |16| v1.4.25

Data Validation:
This card is to implement data validation for Schedule B of the Compliance Report.
Implementation:
Validation occurs automatically during data entry and must be resolved in order to save or submit the report.
Validation Requirements:

Entry rows containing data must be complete (i.e. each editable cell must be filled out within an entry row that contains data; no partially complete rows)
Quantity of Fuel Supplied column:
Only whole numbers (no decimals)
Only positive numbers (no negative or zero)
No duplicates (see below)

Duplicates Definition - Schedule B:
There are three different types of duplicates that we want to prevent:
(1) A duplicate for Schedule B in this first case means that all of the following are identical for two or more row entries:

Fuel Type
Fuel Class
The following Provisions of the Act:
Section 6 (5) (a) - Prescribed carbon intensity
Section 6 (5) (b) - Prescribed carbon intensity
Section 6 (5) (d) (i) - Default Carbon Intensity Value

(2) No duplicate Fuel Codes (i.e. only one BCLCF133.2)
(3) No duplicate GHGenius modelled selections
Validation Errors Communication Design:

See attached screenshot
Highlight problem cells/rows in red
Error messages displayed in red (at the top?). If we do decide to display the error messages at the top, then we should not show the messages during data entry as this will push the report down on the screen; we would need to find a more graceful way to show the errors (when saving?)

Error message wording

There is missing information, please ensure all fields are completed.
The Quantity of Fuel Supplied cannot contain a zero, negative or decimal value.
There are duplicate trade details, please combine the quantity into a single value on one row.
A GHGenius Fuel Code was not found, please create a record in Schedule D.

https://trello.com/c/lFpP7RVW/1713-validation-schedule-b-16#

 Validation | Schedule B |16| v1.4.25

Resolved in sprint tunguska


is Monkey Patch Function.prototype required?

Hi, thanks for this repo @safareli, i am used this repo on my project, and it great so far. To clarify, i am not against the way this library monkey patch the Function prototype, but it just my curiosity, is this required?

In #24 I'm waiting sanctuary-type-classes#2 to be merged and then I would be able to remove that as sanctuary-type-classes will provides Functor interface for Function. Currently it's needed here.


SW-5043 Participants CRUD API

Add CRUD endpoints for participant management.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1814  👈
#1813
#1812
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite

Merge activity

Mar 27, 1:25 PM EDT: Graphite rebased this pull request as part of a merge.


Add support for multiline string configuration options

The text for an configuration string with multiple lines overflows past the text box when a configuration is set, but not when it has a default value.
With default

With option set in config

$ atom --version
0.152.0

This is on OS X 10.9.5.

Work to fix the overflowing is happening at #4400. I changed the title to be a feature request to add multiline string config options.


xgboost.core.XGBoostError: [15:49:05] C:/Users/Administrator/workspace/xgboost-win64_release_1.3.0/src/learner.cc:567: Check failed: mparam_.num_feature != 0 (0 vs. 0) : 0 feature is supplied.  Are you using raw Booster interface?

Hello to everyone!!
I am new to Python and Iam getting this error when running xgBoost: xgboost.core.XGBoostError: [15:49:05] C:/Users/Administrator/workspace/xgboost-win64_release_1.3.0/src/learner.cc:567: Check failed: mparam_.num_feature != 0 (0 vs. 0) : 0 feature is supplied.  Are you using raw Booster interface?
I tried to search for this error, could not find much useful resources.
I guess the error occurs in the prediction stage. But I'm not sure about that.
Μy dataset consists of two columns: ["Posts Frequency","Likes Count"] as seen below.
Here's my code:
# Load Dependencies
import pandas as pd
from numpy import where
import matplotlib.pyplot as plt
import numpy as np
from numpy import unique
from sklearn import metrics
import warnings
warnings.filterwarnings('ignore')

#  Load the Data
# Define Columns
names = ["Posts Frequency","Likes Count"]

data = pd.read_csv("RANKING TEST (1).csv", encoding="utf-8", sep=";", delimiter=None,
                 names=names, delim_whitespace=False,
                 header=0, engine="python")
X = data.values[:,0:1]
y = data.values[:,1]

# Training
from sklearn.model_selection import GroupShuffleSplit

gss = GroupShuffleSplit(test_size=.20, n_splits=1, random_state = 7).split(data, groups=data['Posts Frequency'])

X_train_inds, X_test_inds = next(gss)

train_data= data.iloc[X_train_inds]
X_train = train_data.loc[:, ~train_data.columns.isin(['Posts Frequency','Likes Count'])]
y_train = train_data.loc[:, train_data.columns.isin(['Likes Count'])]

test_data= data.iloc[X_test_inds]

X_test = test_data.loc[:, ~test_data.columns.isin(['Likes Count'])]
y_test = test_data.loc[:, test_data.columns.isin(['Likes Count'])]

from sklearn.model_selection import GroupShuffleSplit

gss = GroupShuffleSplit(test_size=.20, n_splits=1, random_state = 7).split(data, groups=data['Posts Frequency'])

X_train_inds, X_test_inds = next(gss)

train_data= data.iloc[X_train_inds]
X_train = train_data.loc[:, ~train_data.columns.isin(['Posts Frequency','Likes Count'])]
y_train = train_data.loc[:, train_data.columns.isin(['Likes Count'])]

groups = train_data.groupby('Posts Frequency').size().to_frame('size')['size'].to_numpy()

test_data= data.iloc[X_test_inds]

X_test = test_data.loc[:, ~test_data.columns.isin(['Likes Count'])]
y_test = test_data.loc[:, test_data.columns.isin([' Likes Count'])]

import xgboost as xgb

model = xgb.XGBRanker(
    tree_method='gpu_hist',
    booster='gbtree',
    objective='rank:pairwise',
    random_state=42,
    learning_rate=0.1,
    colsample_bytree=0.9,
    eta=0.05,
    max_depth=6,
    n_estimators=110,
    subsample=0.75
    )

model.fit(X_train, y_train, group=groups, verbose=True)

# make predictions
def predict(model, data):
    return model.predict( data.loc[:, ~data.columns.isin( ['Posts Frequency'] )] )

predictions = (data.groupby( 'Posts Frequency' )
               .apply( lambda x: predict( model, x ) ))

Can anyone help me??
Thank you in advance !!
Sofia

Hi, could you please share the RANKING TEST (1).csv file so that I can run the script?

Hi, could you please share the RANKING TEST (1).csv file so that I can run the script?

@trivialfis Yes! How can I upload it here?

@trivialfis  Done!
@trivialfis  Done!
RANKING TEST (1).csv
I will be grateful if you can help me! :)

I printed the data shape before calling fit method of XGBRanker:
print("X_train.shape:", X_train.shape, X_train.size)

and it's
X_train.shape: (84, 0) 0

So you have generated an empty dataset somewhere in your script.

I printed the data shape before calling fit method of XGBRanker:
print("X_train.shape:", X_train.shape, X_train.size)
model.fit(X_train, y_train, group=groups, verbose=True)

and it's
X_train.shape: (84, 0) 0

So you have generated an empty dataset somewhere in your script.

I can't print that. the error still occures...
I can't understand what happens!

So, if you put a zero-size dataset into xgboost, then xgboost doesn't know how many columns it has, which leads to mparam_.num_feature != 0  error.
You need to make sure your dataset has non-trivial size: X_train.size != 0.

I set it, but unfortunately it doesn't run...

You need to debug your code and your dataset.  Your dataset has total 2 columns, this line returns an empty dataframe as X_train due to the negation operator:
X_train = train_data.loc[
    :, ~train_data.columns.isin(["Posts Frequency", "Likes Count"])
]

I'm afraid I can't help you with data preprocessing.

You need to debug your code and your dataset. Your dataset has total 2 columns, this line returns an empty dataframe as X_train due to the negation operator:
X_train = train_data.loc[
    :, ~train_data.columns.isin(["Posts Frequency", "Likes Count"])
]

I'm afraid I can't help you with data preprocessing.

doesν't matter ! I will expand my data. I will add two columns! Maybe it works better..!

I will close this now since the cause is in preprocessing.  Feel free to reopen if there are further issues.

if you have python 3.7 version so you should install xgboost == 0.18. I have solved that problem through this method.

if you have python 3.7 version so you should install xgboost == 0.18. I have solved that problem through this method.

@lakeshkhatri Could not find a version that satisfies the requirement xgboost==0.18 (from versions: )
There isn't 0.18 version.
which other solves the error?
Thank you!

You should try to install xgboost ==0.80
On Fri, Feb 18, 2022, 2:30 PM Sofia Vlachou @.***>
wrote:

if you have python 3.7 version so you should install xgboost == 0.18. I
have solved that problem through this method.
@lakeshkhatri https://github.com/lakeshkhatri Could not find a version
that satisfies the requirement xgboost==0.18 (from versions: )
https://pypi.org/project/xgboost/1.5.0/#history
There isn't 0.18 version.
which other solves the error?
Thank you!
—
Reply to this email directly, view it on GitHub
https://github.com/dmlc/xgboost/issues/7444#issuecomment-1044210844, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AIOBZUEHGKLWLF7FUXK3GI3U3YGS3ANCNFSM5IEL7TKA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

I have also changed my data and now I have 6 columns
["label","id","comments","likes","artist frequency","artwork frequency"]
nothing changed in the error !

any luck on this issue ?
facing the same problem nothing works so far

I got a very similar error as below:
I failed to load new xgboost booster with old spark, here is my details:

booster train by python xgboost 1.6.2
** using on GPU with “reg:pseudohubererror”
** mod=xgb.dask.DaskXGBRegressor().fit
** saved by mod.get_booster().save_model(bst_path)

loader for production by scala(2.11) spark(2.4.0) xgboost(1.1.1)
** load method is through standard way at https://github.com/dmlc/xgboost/issues/3689
** it first failed due to "Unknown objective function: reg:pseudohubererror" - well understood because 1.1.1 has no this objective
** then I modified booster in python training env by: booster.set_param(‘objective’, ‘reg:squarederror’) and booster.save_model; now model is load without any issue, but failed at actual scoring (mod.transform(df)) time with error:
Caused by: ml.dmlc.xgboost4j.java.XGBoostError: [10:39:43] /xgboost/src/learner.cc:946: Check failed: mparam_.num_feature != 0 (0 vs. 0) : 0 feature is supplied. Are you using raw Booster interface?

I am sure my data is correct,
Any help to solve this is highly appreciated? Or this version back compatibility is impossible?

Hello every one I am also facing same kind of error
xgboost.core.XGBoostError: [00:11:36] C:/Users/administrator/workspace/xgboost-win64_release_1.6.0/src/common/io.cc:102: Opening xgb_model.json failed: No such file or directory
Can anyone please help me on this


Add server calls to handle Merchant Sign In

Closes #2

I think you can try placing all your errors inside constants/errors/ instead to avoid them mixing with other constants, I feel that would be neater! (Can use git mv for the existing files so you can keep your git history for those moved files.)
Also I think there are some type errors in your code. Not sure if you see them but when I fetched your branch I get the following type errors:

SignInCard.tsx is complaining that the passed in props do not match SignInSignUpCardProps. I advise you take a look into your errors.general type
setGeneralError(null) does not work. Maybe you should declare it this way instead:

  const [generalError, setGeneralError] = useState<... | null>();

where ... is the expected type of generalError so that it also accepts null as a generalError type

Okay! Yep reorganising the errors into a folder sounds good. Will do that.
Eh, I didn't see those errors, that's why I thought it worked. Will change that.


custom host now works with search_count() method

Codecov Report

Merging #192 (f0df348) into master (5646a2a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #192   +/-   ##
=======================================
  Coverage   89.58%   89.58%
=======================================
  Files          51       51
  Lines        1930     1930
=======================================
  Hits         1729     1729
  Misses        201      201

Flag
Coverage Δ

unittests
89.58% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

asf_search/search/search_count.py
100.00% <100.00%> (ø)


Font sizes for mobile petition and thanks page

I got a report on Friday

Font size and style of state and zip code are different.
Email share button is sized differently than Facebook and Tweet buttons.

I haven't verified this, but before I manage to do so or get screenshots from the reporter wanted to put it in here.

I see what they're saying, but it's the same as legacy

Closing this. I would move it to post-launch list, but redesign will make it irrelevant before then.


Midi message delta time of note on/off displays incorrectly

Hi,
I found the output of this file using this crates is not fully display all info like "midicsv" cli
you can find the mid file in this link: here
here is the output of track has name "relation", midi_file crate:

the midi reader tool (https://signal.vercel.app/edit) as pic below show note number (1) has note off delta time (tick) > 0 (approx 3174) but displayed value in crate is zero.

The output of midicsv cli show the same output as the midireader software

5, 0, Start_track
5, 0, Title_t, "relation"
5, 0, Control_c, 2, 10, 64
5, 0, Control_c, 2, 7, 100
5, 0, Pitch_bend_c, 2, 8192
5, 0, Control_c, 2, 101, 0
5, 0, Control_c, 2, 100, 0
5, 0, Control_c, 2, 6, 12
5, 0, Control_c, 2, 10, 64
5, 0, Control_c, 2, 7, 100
5, 0, Pitch_bend_c, 2, 8192
5, 0, Program_c, 2, 0
5, 0, Control_c, 2, 101, 0
5, 0, Control_c, 2, 100, 0
5, 0, Control_c, 2, 6, 12
5, 0, Control_c, 2, 10, 64
5, 0, Control_c, 2, 7, 100
5, 0, Pitch_bend_c, 2, 8192
5, 0, Program_c, 2, 0
5, 0, Control_c, 2, 101, 0
5, 0, Control_c, 2, 100, 0
5, 0, Control_c, 2, 6, 12
5, 0, Control_c, 2, 10, 64
5, 0, Control_c, 2, 7, 100
5, 0, Pitch_bend_c, 2, 8192
5, 0, Program_c, 2, 0
5, 102, Control_c, 2, 10, 64
5, 102, Control_c, 2, 7, 100
5, 102, Pitch_bend_c, 2, 8192
5, 102, Note_on_c, 2, 14, 127
5, 102, Note_on_c, 2, 18, 97
5, 102, Note_on_c, 2, 21, 97
5, 102, Note_on_c, 2, 0, 96
5, 109, Note_off_c, 2, 14, 64
5, 109, Note_off_c, 2, 18, 64
5, 109, Note_off_c, 2, 21, 64
5, 109, Note_off_c, 2, 0, 64
5, 109, Note_on_c, 2, 1, 96 ------------------------- BEGIN
5, 109, Note_on_c, 2, 16, 127
5, 109, Note_on_c, 2, 19, 97
5, 109, Note_on_c, 2, 23, 97
5, 3174, Note_off_c, 2, 19, 64
5, 3174, Note_off_c, 2, 16, 64
5, 3174, Note_off_c, 2, 1, 64 ------------------------- END
5, 3174, Note_off_c, 2, 23, 64
5, 3174, Control_c, 2, 101, 0
5, 3174, Control_c, 2, 100, 0
5, 3174, Control_c, 2, 6, 12
5, 3174, Control_c, 2, 10, 64
5, 3174, Control_c, 2, 7, 100
5, 3174, Pitch_bend_c, 2, 8192
5, 3174, Program_c, 2, 0
5, 3176, Control_c, 2, 101, 0
5, 3176, Control_c, 2, 100, 0
5, 3176, Control_c, 2, 6, 12
5, 3176, Control_c, 2, 10, 64
5, 3176, Control_c, 2, 7, 100
5, 3176, Pitch_bend_c, 2, 8192
5, 3176, Program_c, 2, 0
5, 3176, End_track
0, 0, End_of_file

update,
after rerun and test, the output of crate is correct
Thanks,


Implement dunder iadd, isub, imul methods for Quantity

imul is implemented only for Percentage because, all other
multiplications that we have produce outputs of a new type, which is
not possible with imul.
With this usage like this becomes possible:
power = Power.from_watts(1000.0)
power += Power.from_watts(3.2)

This should probably be reverted because of this: https://github.com/frequenz-floss/frequenz-sdk-python/pull/535#discussion_r1274774909


Bulk/Batch CRUD Operations

Is there any way to do bulk or batch CRUD operations? For example, I have a script that creates a new user and then I need to add each project permission 1 by 1 to that user. Since there are about 150 permissions I would like to send 1 api request to create them all not 150 individual requests. In my case, there are only 3 parent projects. However when I add the permission on the parent project all the children projects do not get the same permission. I've also tried setting a default permission for the workspace but even after doing this and giving the user a workspace permission they still do not get access to the projects and child projects. Is there a better way to go about this? I noticed the rally frontend doesn't use the api and will let you bulk update permissions in one request.

I created a PR to support batch type requests on the create method (https://github.com/RallyTools/rally-node/pull/47)


Unable to install erpnext using helm chart and azure mariadb database

Hi
I am trying to setup erpnext using below steps referred from: https://helm.erpnext.com.
My k8s cluster is azure AKS.
I have created a storage class named: rook-cephfs which is used in the helm deployment.
nginx ingress controller is also installed.
kubectl create namespace erpnextv904
kubectl apply -f mariadb-password.yaml -n erpnextv904

helm  upgrade --install frappe-bench-0001 --namespace erpnextv904 frappe/erpnext --version 3.2.31 \
 --set mariadbHost=mytestmariadbserver.mariadb.database.azure.com     \
 --set persistence.worker.storageClass=rook-cephfs    \
 --set persistence.logs.storageClass=rook-cephfs

After this I have verified that in the azure storage account 2 file shares are created for pvc's frappe-bench-0001-erpnext and frappe-bench-0001-erpnext-logs.
These are file share contents of frappe-bench-0001-erpnext:

At this point the scheduler and worker containers are in State CrashLoopBackOff (due to healthcheck failure?). The logs dont show any errors.
Here are the default worker pod logs
Attempt 1 to connect to mytestmariadbserver.mariadb.database.azure.com:3306
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-queue:12000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-cache:13000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-socketio:11000
Connections OK
11:12:32 Worker rq:worker:9bc88174c71b4f1a9c21cd4f22f2e165.frappe-bench-0001-erpnext-worker-d-758ccb9f8-k77gc.10.default: started, version 1.8.1
11:12:32 Subscribing to channel rq:pubsub:9bc88174c71b4f1a9c21cd4f22f2e165.frappe-bench-0001-erpnext-worker-d-758ccb9f8-k77gc.10.default
11:12:32 *** Listening on default...

I would guess before installing the site the pods should be in stable/Running state. But I still tried to create site using steps here: https://helm.erpnext.com/kubernetes-resources/create-new-site-job
Here are the create site job logs:
kubectl logs create-new-site-erpnextv904--1-494j7  -n erpnextv904
Attempt 1 to connect to mytestmariadbserver.mariadb.database.azure.com:3306
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-queue:12000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-cache:13000
Attempt 1 to connect to frappe-bench-0001-erpnext-redis-socketio:11000
Connections OK
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/commands/new.py", line 118, in <module>
    main()
  File "/home/frappe/frappe-bench/commands/new.py", line 70, in main
    db_port=db_port,
  File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 74, in _new_site
    no_mariadb_socket=no_mariadb_socket,
  File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 108, in install_db
    setup_database(force, source_sql, verbose, no_mariadb_socket)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/__init__.py", line 16, in setup_database
    return frappe.database.mariadb.setup_db.setup_database(force, source_sql, verbose, no_mariadb_socket=no_mariadb_socket)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/setup_db.py", line 39, in setup_database
    if force or (db_name not in dbman.get_database_list()):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/db_manager.py", line 60, in get_database_list
    return [d[0] for d in self.db.sql("SHOW DATABASES")]
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 122, in sql
    self.connect()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/database.py", line 74, in connect
    self._conn = self.get_connection()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 82, in get_connection
    local_infile=frappe.conf.local_infile
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 353, in __init__
    self.connect()
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 633, in connect
    self._request_authentication()
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 921, in _request_authentication
    auth_packet = self._process_auth(plugin_name, auth_packet)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 1018, in _process_auth
    pkt = self._read_packet()
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/connections.py", line 725, in _read_packet
    packet.raise_for_error()
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, "Access denied for user<EMAIL_ADDRESS>(using password: YES)")

From the default worker pod I verified that connection to the mysql database is successful.
The root user seems to have access from all IPs:
SELECT user,authentication_string,plugin,host,Grant_priv  FROM mysql.user;
+-----------------+-----------------------+-----------------------+---------------------------------------------+------------+
| user            | authentication_string | plugin                | host                                        | Grant_priv |
+-----------------+-----------------------+-----------------------+---------------------------------------------+------------+
| mariadbadminuser      |                       |                       | %                                           | Y          |
I can see the site folder created in the file share. Here are its contents:

What am I missing? Any help greatly appreciated.
Thanks.
Sachin

I've not used Azure's MariaDB.
can you check the contents of common_site_config.json. It should have the correct db and redis host(s)
The healthcheck for workers are trying to ping the db host:port using wait-for-it

Here are contents of common_site_config.json:
{
    "db_host": "mytestmariadbserver.mariadb.database.azure.com",
    "db_port": 3306,
    "redis_cache": "redis://frappe-bench-0001-erpnext-redis-cache:13000",
    "redis_queue": "redis://frappe-bench-0001-erpnext-redis-queue:12000",
    "redis_socketio": "redis://frappe-bench-0001-erpnext-redis-socketio:11000",
    "socketio_port": 9000
}

healthcheck.sh output - ran from within worker container:
Check mytestmariadbserver.mariadb.database.azure.com:3306
wait-for-it: waiting 1 seconds for mytestmariadbserver.mariadb.database.azure.com:3306
wait-for-it: mytestmariadbserver.mariadb.database.azure.com:3306 is available after 0 seconds
Check frappe-bench-0001-erpnext-redis-cache:13000
wait-for-it: waiting 1 seconds for frappe-bench-0001-erpnext-redis-cache:13000
wait-for-it: frappe-bench-0001-erpnext-redis-cache:13000 is available after 0 seconds
Check frappe-bench-0001-erpnext-redis-queue:12000
wait-for-it: waiting 1 seconds for frappe-bench-0001-erpnext-redis-queue:12000
wait-for-it: frappe-bench-0001-erpnext-redis-queue:12000 is available after 0 seconds
Check frappe-bench-0001-erpnext-redis-socketio:11000
wait-for-it: waiting 1 seconds for frappe-bench-0001-erpnext-redis-socketio:11000
wait-for-it: frappe-bench-0001-erpnext-redis-socketio:11000 is available after 0 seconds

I guess you need to tweak configuration on Azure.
There is a wiki for AWS RDS config https://github.com/frappe/frappe/wiki/Using-Frappe-with-Amazon-RDS-(or-any-other-DBaaS)
Change similar settings on Azure. Do add a another wiki article for Azure.
Check this for mariadb custom config https://github.com/frappe/bench/wiki/MariaDB-conf-for-Frappe


Language support error

If i'm on the page /docs/dev-rel-docs in english (EN):

and I change the language to French (FR):

I encounter this error

Hi @ThomasCardin
If you deployed locally by doing yarn start, it will just deploy the english version.
You have to yarn build and then npm run serve to have access to the two versions.
English one :

French one :

Did you just do yarn start ?

Hi Clément, thanks for the instructions. As you can see here, we use a Dockerfile to deploy our applications with Kubernetes. In this file, you can see that there is indeed a yarn build, but no npm run serve, so we are using the nginx image to serve the static pages.
FROM node:18 AS build

WORKDIR /app

COPY package.json yarn.lock ./

RUN yarn install

COPY . .

RUN yarn build

FROM nginx:stable

COPY --from=build /app/build /usr/share/nginx/html

# Copy nginx configuration file
# COPY nginx.conf /etc/nginx/nginx.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]

Everything works normally with npm run serve. I will add the command to a README.md.


Add initial Cache Data Structure

Story
As a maintainer
I want an initial cache data structure with some functions that I can use
So that I can start to add functionality over time
Description
Create a class or interface which will encapsulate the foundation of the cache which will grow and be used by the rest of the system. We only need this to be minimal in functionality for now as the structure will allow us to add features later on.
Acceptance Criteria

New class or interface is defined with the common APIs a user would be expected to use in order to interact with the cache
Tests covering the high level expected functionality.

@bryangators please make any comments or adjustments. My work is going to be based off of this and I will adjust as needed or this issues changes.


Move request_set_<module>_attributes Subscriber to Metaclass

Describe the chore that needs to be addressed.
The request_set__attributes message could be subscribed in the data manager metaclass using string substitution.

Add the following to the data manager metaclass:
pub.subscribe(self.do_set_attributes, "request_set_{}_attributes".format(self._tag))

Update the class attribute _tag to the singular form in each data manager class that isn't already singular (see also #571).

Remove the subscriber in each data manager class.

[ ] This issue is an epic issue which subsumes the following:

Closed to #574


Update pyproject.toml

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 73.98%

Totals

Change from base Build<PHONE_NUMBER>9:
0.0%

Covered Lines:
290

Relevant Lines:
392

💛  - Coveralls


upgrade eyes.selenium version

Required from Applitools:
https://help.applitools.com/hc/en-us/articles/360038739612?mkt_tok=eyJpIjoiTm1FNFpqZzBNamhsT1RBMyIsInQiOiJkWUtneVFRNkV5RTB4NHI2VmxhYUZacWtjNTdWc0hhbDg2SDNYOFgrTjJyek1VTDB5VFhZMGNRXC91VDBZblpcL2RTbGpuNk04cFFhY05VYzQzMnBlXC9Nc2cxV1pPTytJMkFTS1M1QUpOTUk3a0xWWEVubGJPcnV1ODBvZWQwUGs1OSJ9

@shlomitc
I bumped the version, because I had a problem with the tests (found out after running the tests with the api key)
I'd be happy if you could take a look.

@shlomitc
Note that the tests aren't running in the PR.
But I added a real test, with a real server.

Let’s make it run on PRs as well

Let’s make it run on PRs as well

We can't since it's a public repo :(
I'll send you the ticket I opened for this.

Regardless of CI issues, let's split this into two PRs.

add missing test
bump version

Can I merge?

Go for it


Is there any tool to annotate data in the form of LAyoutLMV1 or LayoutLMv2?

I am using this tool UBIAI to annotate the dataset in FUNSD form for LayoutLMv1 .
Are there any open source tools too ?

You might try this https://github.com/microsoft/OCR-Form-Tools

@wolfshow
How do you get the dataset from OCR form tools in JSON for the only selected tags .
I was able to provide the tags, and train the model.But then how do you get the extracted JSON values for only the selected values as below.
My idea is not to get the layout analyse results.

Hi @jyotiyadav94,
I am not quite sure the way of your current usage.
Basically, the official usage with this tool is connect it with Azure Cognitive Service and you can setup your blob storage from Azure. After that, you can label the OCRed document and find the label file from your blob storage directly from my previous usage.
If you prefer a hacker way, you might need to setup this tool locally, and convert your OCR results to the required format correctly. I don't have such experience before, but I think it's doable but required a lot of future development of this tool or data conversion script efforts.

BTW, I do recommend you try the form recognizer API with this open-source labeling tool, and there is a newer version tool: https://formrecognizer.appliedai.azure.com/studio you can also have a try on it.
And for the pricing part, there are some free trial quota https://azure.microsoft.com/en-us/pricing/details/form-recognizer/#pricing and you might not pay it with fewer cases.


Docs: Explicit note that it only works with Node. Not in the browser.

It would be helpful if there is a prominent note in readme.md.

Only works with Node. Not in browser.

Ok, there is a tag (keynames) node set for this repository. But does this exclude all other platforms (browser)? I cannot build with with TypeScript. Because require('fs') in build/index.js. So it's Node only.
Personally, I would remove this dependency. And just return the ArrayBuffer or what ever. So that everyone on browser or Node can handle it.

Hi @y0nd0,
This library should work in the browser, I thought we had that fs dependency setup to be optional but perhaps it needs to be adjusted.
I think that's a good idea though, probably best to just return ArrayBuffer.  I'll try to get to this when I have time, but PRs are always welcome!
-Garrett

Nope, Webpack TypeScript build says "No". Maybe #71 fixes it?

Hi @y0nd0,
I've just released version 2.0.0 which removes the Writer.saveMIDI() function, thus removing the dependency on fs.  It was primarily legacy code I used to use for testing when this library first started, and seems to cause more trouble than it's worth.  There are other methods in the Writer class that can be used to get the raw MIDI data.
Thanks for bringing it up.  Hopefully this solves on your end.
-Garrett


Add hoc for providing data

Closes #1

@vspedr thanks! It will also help #3 :tada:

We could use this:
https://github.com/react-ga/react-ga
And read the tracking code from the same data file