Add default replica capacity as a cluster map config

Moving configuration for default replica capacity from helix to local server configuration for simplicity. We just have to make sure that same capacity is used in offline Tools (HelixBootstrap or lipy-clustermap) when migrating or bootstrapping new cluster in FULL_AUTO mode.

Codecov Report
Patch coverage: 66.66% and project coverage change: -39.00% :warning:

Comparison is base (ab579d1) 72.57% compared to head (6d999aa) 33.57%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2589       +/-   ##
=============================================
- Coverage     72.57%   33.57%   -39.00%
+ Complexity    11402     5105     -6297
=============================================
  Files           803      803
  Lines         64710    64714        +4
  Branches       7901     7900        -1
=============================================
- Hits          46965    21730    -25235
- Misses        15169    41288    +26119
+ Partials       2576     1696      -880

Files Changed
Coverage Δ

...a/com/github/ambry/clustermap/ClusterMapUtils.java
63.39% <ø> (-28.44%)
:arrow_down:

...ub/ambry/clustermap/HelixBootstrapUpgradeUtil.java
72.96% <ø> (-0.12%)
:arrow_down:

...m/github/ambry/clustermap/HelixClusterManager.java
42.13% <0.00%> (-39.01%)
:arrow_down:

...java/com/github/ambry/config/ClusterMapConfig.java
96.92% <100.00%> (-3.08%)
:arrow_down:

... and 538 files with indirect coverage changes

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


Update the work pool selection wizard to better handle push work pools

Currently the work pool selection wizard has a long list of work pool types - some of them look similar but are push and others are non-push versions of the same work pool type.
We should update the [select infrastructure step of the work pool creation wizard] (prefect-ui-library/src/components/WorkPoolCreateWizardStepInfrastructureType.vue) to improve the display.  Where push work pools are present, (i.e. in cloud - we do not offer them in OSS) we should show an option to seelct push pools or not.  The design can follow this one created by @brandonreid in figma: https://www.figma.com/file/beL45DX4b5Zls9Vffm1Nqn/Work-Pools-create-form?type=design&node-id=0%3A1&mode=design&t=m6nF68yhS4CdCjK0-1
The ? icon should link to the docs about push work pools which are (in my view!) the simplest way to get started in a cloud environment in prefect.

Suggestion:

Current (list goes off the page and there's two types of google cloud run etc work pools)

Completed as part of managed execution updates


Forbid AST modifications during code generation

This change adds an ast_freeze function that sets an AST as immutable. Mutable AST functions will then assert if called on a frozen AST.
The program AST is frozen after all AST passes are done, before reachability analysis and code generation.
The eventual goal of this change is to help with ensuring correctness when implementing ad-hoc AST reification in code generation to reduce memory usage.

The OSX tests have failed on the net/Broadcast test. Since this is most likely a result of an environment modification on Travis, I'm going to go ahead and merge this PR.


change history menu

this is a request to make using the history faster. currently there is a popup menu with two options, restore and delete.
it would be faster if the options menu were replace with a trashcan button for deleting and making the rest of the history box clickable as a way of restoring the history item. If the whole item box is too much to have clickable, then maybe make the URL path clickable to restore.

I see that I should be using Collections instead of History so I'll close this. Please disregard.


typable: formating before I finish typing the date.

When typing a date, for example 30.11.2023
the watch(input.value) triggers and formats my date. The problem is, as soon as I start writing the year (in this case number 2), I get the formatted date 30.11.0002. In other words, it formats my dates before I finish writing it.
A possible solution would be to check if the input.value is at least as long as the property inputFormat before validation.
watchEffect(
      () =>
        (input.value =
          props.modelValue && isValid(props.modelValue)
            && props.inputFormat.length === input.value.length
              ? format(props.modelValue, props.inputFormat, {
                  locale: props.locale,
                })
            : '')
      )

This is also happening to me, do you have any workaround?
I really need to use a datepicker in my company project

@Arthurin915 yep! Fork the repo and in the file datepicker.vue inside on const keyUp you have to replace:
if (isValid(parsedDate))
with
if (isValid(parsedDate) && input.value.length === props.inputFormat.length)
this will make the trick as long as you give an inputFormat ;)

Fixed in https://github.com/icehaunter/vue3-datepicker/pull/61 (since v0.3.2)


Create AdminPanel tab and subtabs.

@finnzink For your work in progress, please rebase off the latest master to work with the new tabs created


Unify normalization layers

Refactor normalization helpers to share code and remove subtle differences in implemenation.
Use clipping to avoid negative variances due to fusion optimization.

Codecov Report

Merging #1545 (6dadc9e) into main (f458637) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1545      +/-   ##
==========================================
+ Coverage   82.73%   82.81%   +0.08%
==========================================
  Files          68       68
  Lines        5572     5576       +4
==========================================
+ Hits         4610     4618       +8
+ Misses        962      958       -4

Impacted Files
Coverage Δ

flax/linen/normalization.py
96.61% <100.00%> (+3.56%)
:arrow_up:

flax/core/scope.py
93.78% <0.00%> (+0.01%)
:arrow_up:

Continue to review full report at Codecov.

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


Deleted Link Module

Link Module was deemed unneccessary and therefore I decided to delete it and move on to a new more complex project.

Deleted Link Module


Remove volume permission init containers for openshift (#790)

Please note that this is only a temporary solution as it let ResourceMojo directly reference hardcoded the VolumePermissionEnricher. This is necessary as the enricher have no knowledge whether they are enriching for OpenShift of Kubernetes when called. If #678 is tackled this will be resolved and the hack in ResourceMojo which references VolumePermissionEnricher.ENRICHER_NAME must be removed.
Fixes #790

Codecov Report

Merging #836 into master will increase coverage by 0.13%.
The diff coverage is 58.33%.

@@             Coverage Diff              @@
##             master     #836      +/-   ##
============================================
+ Coverage     17.65%   17.79%   +0.13%
- Complexity      441      445       +4
============================================
  Files           153      153
  Lines          8059     8071      +12
  Branches       1451     1452       +1
============================================
+ Hits           1423     1436      +13
+ Misses         6470     6467       -3
- Partials        166      168       +2

Continue to review full report at Codecov.

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

self-[merge]


Restricted mode can't be disabled for remote path

Issue Type: Bug
I am connecting to my Windows machine and my path starts with "D:/". VS Code adds this path as "SSH: ababak /d:/..." and then it is not recognized as trusted.
VS Code version: Code 1.57.0 (b4c1bd0a9b03c749ea011b06c6d2676c8091a70c, 2021-06-09T17:22:31.215Z)
OS version: Darwin x64 20.5.0
Restricted Mode: Yes
Fetching remote diagnostics for 'SSH: ababak' failed: Canceled
Fetching remote diagnostics for 'SSH: ababak' failed: Canceled
Fetching remote diagnostics for 'SSH: ababak' failed: Canceled
Remote OS version: Windows_NT x64 10.0.18363
Remote OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (0.60GB free)

Process Argv
--crash-reporter-id 6b07c24f-9000-4ee2-8c83-e060f2be359f

Screen Reader
no

VM
0%

Fetching remote diagnostics for 'SSH: ababak' failed: Canceled
Fetching remote diagnostics for 'SSH: ababak' failed: Canceled
Fetching remote diagnostics for 'SSH: ababak' failed: Canceled

Item
Value

Remote
SSH: ababak

OS
Windows_NT x64 10.0.18363

CPUs
Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz (8 x 3702)

Memory (System)
63.94GB (54.44GB free)

VM
0%

Item
Value

Remote
SSH: ababak

OS
Windows_NT x64 10.0.18363

CPUs
Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz (8 x 3702)

Memory (System)
63.94GB (54.44GB free)

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

remote-containers
ms-
0.183.0

remote-ssh
ms-
0.65.7

remote-ssh-edit
ms-
0.65.7

remote-wsl
ms-
0.56.5

vscode-remote-extensionpack
ms-
0.21.0

gitlens
eam
11.5.1

jupyter
ms-
2021.6.999406279

hexeditor
ms-
1.7.0

docker
vsc
1.0.0

yaml
vsc
1.0.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30311712
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255cf:30319632
vscorehov:30309549
vscod805:30301674
vscextlang:30322306

P.S. This happened on an unsaved workspace. After saving a workspace, the problem has gone.

@ababak can you clarify the exact repro steps including the start of the connection, when you granted trust, and when you saved the workspace?

I tried to reproduce it from scratch and couldn't get the same result. But I still have several windows that show that I am not crazy. I tried to delete the highlighted (active) entry and recreate it by pressing "Trust" for this window and after a third attempt and automatic window reload it eventually became trusted. So it seems to be a rare bug and I can't help to catch it :(

I think this is an artifact of https://github.com/microsoft/vscode/issues/126015, let me know if I'm mistaken


ci/cd: consider generating binaries for other platforms

One may want to run zot on a raspberrypi k8s cluster.
https://ubuntu.com/tutorials/how-to-kubernetes-cluster-on-raspberry-pi#1-overview
https://cbrgm.net/post/2018-01-07-kubernetes-raspi/
https://anthonynsimon.com/blog/kubernetes-cluster-raspberry-pi/
For example,
.PHONY: binary-minimal
binary-minimal: swagger
-       go build -o bin/zot-minimal -tags minimal,containers_image_openpgp -v -trimpath -ldflags "-X  github.com/anuvu/zot/pkg/api/config.Commit=${COMMIT} -X github.com/anuv>
+       env GOOS=linux GOARCH=arm64 go build -o bin/zot-minimal -tags minimal,containers_image_openpgp -v -trimpath -ldflags "-X  github.com/anuvu/zot/pkg/api/config.Commit=>

$ file bin/zot-minimal

bin/zot-minimal: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=PymrasYps4fKuOdEgVen/5a9P0hsAckMS6rRdiwgQ/2R0-vmPbGDH7VydX0Loi/q1KTfGUjgqf-bkkEoafx, not stripped

Currently supporting arm64 which should work for ARM servers and Raspberry Pis.
Will add more based on interest.


widget disappear after compliments refresh

Hi,
I am using compliments module and Widget module(MMM-Widget) together on the same screen. Compliments module basically refreshes every 30 sec. once 30 sec cycle ends(updateInterval), my module widget gets blank ☹
Here is the widget module that I’m using. (this is the out of the box one that’s provided, I didn’t modify anything here. I changed the references in config.js file only).
/* Magic Mirror
* Module: MMM-Widget
*
* By eouia
*/

const DefaultWidgetFormat = {
  url: "",
  position: "top_left",
  width: "200px",
  height: "200px",
  backgroundColor: "#000"
}

Module.register("MMM-Widget",{
  defaults: {
    widgets: []
  },

  start: function() {
    this.sendSocketNotification("INIT", this.config)
  },

  notificationReceived: function(noti, payload, sender) {
    if (noti == "DOM_OBJECTS_CREATED") {
      this.sendSocketNotification("START")
    }
  },

  socketNotificationReceived: function(noti, payload) {
    if (noti == "READY") {
      this.loadWidgets()
    }
  },

  loadWidgets: function() {
    var widgets = this.config.widgets
    for (i in widgets){
      var widget = Object.assign({}, DefaultWidgetFormat, widgets[i])

      var iFrame = document.createElement("iframe")
      iFrame.id = "WIDGET_" + i
      iFrame.className = "widget_item"
      iFrame.style.width = widget.width
      iFrame.style.height = widget.height
      iFrame.style.border = "none"
      iFrame.style.display = "block"
      iFrame.style.overflow = "hidden"
      iFrame.style.backgroundColor = widget.backgroundColor
      iFrame.scrolling = "no"
      iFrame.src = "/widget/" + i
      var position = "." + widget.position.replace("_", ".") + " > .container"
      var regionContainer = document.querySelector(position)
      regionContainer.appendChild(iFrame)
      if (regionContainer.style.display == "none") {
        regionContainer.style.display = "block"
      }
    }
  },

  suspend: function() {
    var doms = document.getElementsByClassName("widget_item")
    if (doms.length > 0) {
      for (let dom of doms) {
        dom.style.display = "none"
      }
    }
  },

  resume: function() {
    var doms = document.getElementsByClassName("widget_item")
    if (doms.length > 0) {
      for (let dom of doms) {
        dom.style.display = "block"
      }
    }
  }
})

the compliments module that I’m using is also one that is provided out of the box.
Here is my config file.
modules: [

		{
			module: "compliments",
			position: "top_center"
		},

		{
			module: "MMM-Widget",
			config: {
				widgets: [

					{
						html: `
								Tweets by Salesforce

				`,
						position: "top_left",
						width: "400px",
						height: "500px",
					},

					{
						html: `

								`,
						position: "bottom_left",
						width: "400px",
						height: "111px",
						backgroundColor: "#FFF"
					},
				]
			}
		},

please let me know on how can I fix this, this is very confusing.
Also need some help on auto refreshing this MMM-Widget module for every 30 seconds to show latest feed.
Thanks,
Sunny

I think it is fixed. Update and try again.

Hey @eouia ,
Thanks man!!! This worked like charm. Can you please tell me what change did adding module make. Sorry for my dumb question.
Thanks

When every refreshment of screen occurs, MM checks whether each region has modules in it. if some div element which has module as classname, MM think it is regareded as module so that region needs to appear. if not so, MM would try to hide that region because there is no module in it.
My MMM-Widget is using some tricks to show contents regardless of original position of module. But I missed to give a classname module to them. That's why.


EC2 Instance ebs_block_device should be immutable

What happened?
When EBS-backed instance is created, it's EBS disk will be added to ebs_block_device field in TF. If EBS volume is added through VolumeAttachment, which creates another entry, next reconciliation will try to override VolumeAttachment and recreate instance.
How can we reproduce it?

Create EBS volume in us-east-1 using CP or AWS Console.
Create Composition with EC2 and VolumeAttachment using this created Volume:

- name: vm
    base:
      apiVersion: ec2.aws.upbound.io/v1beta1
      kind: Instance
      spec:
        deletionPolicy: Delete
        forProvider:
          ami: ami-00b5b48d6335258a3
          instanceType: t2.small
          region: us-east-1
          availabilityZone: us-east-1a
    patches:
      - type: ToCompositeFieldPath
        fromFieldPath: metadata.name
        toFieldPath: metadata.annotations.vmname
- name: storage_volume_attachment
    base:
      apiVersion: ec2.aws.upbound.io/v1beta1
      kind: VolumeAttachment
      spec:
        forProvider:
          region: us-east-1
          deviceName: /dev/sdf
          instanceIdRef:
            name:
            policy:
              resolution: Required
              resolve: Always
          volumeIdRef:
            name: CreatedExternallyVolumeName
            policy:
              resolution: Required
              resolve: Always
          availabilityZone: us-east-1a
      patches:
      - type: FromCompositeFieldPath
        fromFieldPath: metadata.annotations.vmname
        toFieldPath: spec.forProvider.instanceIdRef.name

Apply Composition/CRD and Claim.
Observe than on second reconcile, provider will want to destroy Instance.
To debug - get UID of the Instance resource, attach to provider pod, copy /tmp/ to /tmp/test, change deletion prevention policy to false and run terraform plan. Plan should show that it wants to recreate EBSes again and this forces replacement.

What environment did it happen in?

Crossplane Version:  1.12.1
Provider Version: v0.34.0
Kubernetes Version:  1.26.1
Kubernetes Distribution:  EKS

Terraform has special note about this block being not detectable for changes and I believe this logic should be the same in this provider: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#volume_type (the Note block)
For now workaround is to use CP terraform-provider

The issue is reproducible.
Also while try to reproduce it found problem for the Instance with late init:
message: |-
observe failed: cannot run refresh: refresh failed: Conflicting configuration arguments: "cpu_core_count": conflicts with cpu_options.0.core_count
Conflicting configuration arguments: "cpu_threads_per_core": conflicts with cpu_options.0.threads_per_core
Conflicting configuration arguments: "cpu_options.0.core_count": conflicts with cpu_core_count
Conflicting configuration arguments: "cpu_options.0.threads_per_core": conflicts with cpu_threads_per_core


Update Composer dependencies (2024-08-02-00-19)

Visual regression test passed!
View the visual regression test report


[Feature Request] Check status of bus routes

Subject of the issue
This addresses the feature request issue: https://github.com/IEEEKeralaSection/rescuekerala/issues/1028, for checking status of routes.
Perhaps this can help in some way: https://www.gizmolead.com/keralaroutes/
Code: https://github.com/AnandBaburajan/route-status-for-kerala-floods
The routes are updated by the people, for the people.
It uses PHP with JSON files and is fully functional. It's currently hosted on a test site (my blog) and can be hosted somewhere else if needed.
Would this be helpful if used as an iframe on a page at keralarescue.in?

the sites need more data. can you update the contents

Yes, I'll add some more affected routes connecting prominent locations.

I've updated around 15 affected routes and a few good routes.
The rest of the routes can be voluntarily updated by people with info.
Is this good to go?

The idea is nice and if we could set this up for bus and train routes, get enough publicity, it can help a lot of people. Most routes are okay now. For the future.

Can we at least try to get it up and running?

@AnandBaburajan Thank you for making this website. But it doesn't have enough data to be used by the public. It feels more like a beta website to me. You can try to onboard people  from our slack channels.


Why not the same?

In the repo:
https://github.com/ShiJess/Link.WPF.Toolkit/blob/d07b4970ceff3642146b4ed467c225bb3d09b693/src/Link.WPF.Toolkit/IPAddrBox/IPAddrBox.cs#L251-L259
In the Nuget package:
public bool IsValidInput() 		{ 			return this.IsValidIP() || string.IsNullOrWhiteSpace(this.IPTextA.Text + this.IPTextB.Text + this.IPTextC.Text + this.IPTextD.Text); 		}
There is a logical difference between that two methods, why the Nuget package is not the same as the repo?

I use ILSpy check it and they are consistent.
Maybe,you should check your decompiler tool.

Yeh, you right, it looks like the problem is on the decompiler.


FileCache integration with warm indices

Is your feature request related to a problem? Please describe
Coming from https://github.com/opensearch-project/OpenSearch/issues/9987, we'll need to support tiering of data for writable warm indices.
Describe the solution you'd like
Integrate FileCache for writable warm indices
High level changes:

Initialize the FileCache on all data nodes based on the feature flag.
Consume the FileCache with Composite Directory implementation to allow block level file fetch.
Update the FileCache during shard lifecycle events (created, deleted, relocated, etc)

Related component
Storage:Remote
Describe alternatives you've considered
No response
Additional context
No response

[Triage - attendees 1 2 3 4]
Thanks for filing.


Updated Spring Boot Version

Thanks for the contribution!
The project's not quite ready to accept outside contributions yet (I have to fix up the CI and bring the code up to standard), but it's very appreciated anyway :)


Fix: update showValidations on form elements wrapped by another component

I see your use case here, and it certainly is a valid one.
However I have some concerns over the implementation:

it uses an method instead of a computed property, which lacks caching for example. And making it a CP would be more ember way I guess. I think your implementation would still allow turning this into a CP with some slight modifications, but...
childViews is a private API, which I would not use anymore. Not your fault, it was used before, probably for historical reasons. However there is a different implementation possible, that is used for other components of this addon (DropDown for example) that need to be aware of their parent<>child relationship. That is using the component-parent and component-child mixins. I would prefer this one, as it is not using a private API anymore

If you have the time to update your PR, that would be great. If not, no problem, I can do that as well. I would then just pick your tests, which are fine, and add the implementation for the form and form-element components...
Cheers, and thanks for your effort so far!

Refactored with component-parent and component-child mixins. Those are nice ones!

I have an edge case in ember.js 1.13.13 where parent lookup works in didInsertElement hook but not in willDestroyElement hook. this.nearestOfType(ComponentParentMixin); return undefined. Child does not got removed from parent therefore. I have no idea if it's related to this PR or a general bug and what is causing it. @simonihmig do you have any hint?

Bug mentioned in last comment (https://github.com/kaliber5/ember-bootstrap/pull/95#issuecomment-222692509) is not related to this PR. I've opened a separate issue: #99

#99 has an indirect impact. Since childFormElements contains destroyed objects in these case this.get('childFormElements).setEach() executed on submit throws:

ember.debug.js:33540 Error: Assertion Failed: calling set on destroyed object


manhattan_dist_algo

🛠 Issue (824)

Issue no # 824
👨💻 Changes proposed
In this repo I have added a new algo Manhattan Distance Algorithm in C, C++, Python and Java.

✔ Check List (Check all the applicable boxes)

[ +] My code follows the code style of this project.
[ +] This PR does not contain plagiarized content.
[ +] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

Hey @Kumar-laxmi there was a small discrepancy in the code which I have fixed in the new commit


Model trains extremely slow after upgrade to tf 2.9

Click to expand!
Issue Type
Performance
Source
binary
Tensorflow Version
tf 2.9
Custom Code
Yes
OS Platform and Distribution
Windows
Mobile device
No response
Python version
3.10
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
CUDA 11.2 cuDNN 8.1
GPU model and memory
No response
Current Behaviour?
Model training is extremely slower than tf 2.8.
First, I thought GPU isn't been using so I checked it by "print(tf.config.list_physical_devices('GPU'))".
Everything was fine. And nothing changed even with "with tf.device('/device:gpu:0'):"
When I downgrade tf to 2.8, training speed became normal suddenly.

Standalone code to reproduce the issue
Model from [here](https://keras.io/examples/vision/vit_small_ds/#build-the-vit).

Relevant log output
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting ImageProjectiveTransformV3
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting ImageProjectiveTransformV3
Epoch 1/2000
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting ImageProjectiveTransformV3
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting RngReadAndSkip
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting Bitcast
WARNING:tensorflow:Using a while_loop for converting StatelessRandomUniformV2
WARNING:tensorflow:Using a while_loop for converting ImageProjectiveTransformV3
3/3 [==============================] - 14s 1s/step - loss: 4.9424 - accuracy: 0.3194
Epoch 2/2000
3/3 [==============================] - 5s 1s/step - loss: 5.1579 - accuracy: 0.2903
Epoch 3/2000
3/3 [==============================] - 5s 1s/step - loss: 2.8383 - accuracy: 0.2806
Epoch 4/2000
3/3 [==============================] - 5s 2s/step - loss: 2.0193 - accuracy: 0.3032
Epoch 5/2000
3/3 [==============================] - 5s 1s/step - loss: 1.7683 - accuracy: 0.2677
Epoch 6/2000
3/3 [==============================] - 6s 2s/step - loss: 1.6382 - accuracy: 0.2484
Epoch 7/2000
3/3 [==============================] - 6s 2s/step - loss: 1.5515 - accuracy: 0.3129
Epoch 8/2000
3/3 [==============================] - 6s 1s/step - loss: 1.4848 - accuracy: 0.3290
Epoch 9/2000
3/3 [==============================] - 5s 2s/step - loss: 1.4735 - accuracy: 0.2871
Epoch 10/2000
3/3 [==============================] - 6s 2s/step - loss: 1.4442 - accuracy: 0.3194
Epoch 11/2000
3/3 [==============================] - 7s 2s/step - loss: 1.5043 - accuracy: 0.2806
Epoch 12/2000
3/3 [==============================] - 9s 2s/step - loss: 1.4329 - accuracy: 0.3032
Epoch 13/2000
3/3 [==============================] - 7s 2s/step - loss: 1.4456 - accuracy: 0.3194
Epoch 14/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3863 - accuracy: 0.3323
Epoch 15/2000
3/3 [==============================] - 7s 2s/step - loss: 1.3881 - accuracy: 0.3387
Epoch 16/2000
3/3 [==============================] - 7s 2s/step - loss: 1.3851 - accuracy: 0.3452
Epoch 17/2000
3/3 [==============================] - 6s 1s/step - loss: 1.4353 - accuracy: 0.2935
Epoch 18/2000
3/3 [==============================] - 5s 1s/step - loss: 1.4537 - accuracy: 0.3097
Epoch 19/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3740 - accuracy: 0.3452
Epoch 20/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3845 - accuracy: 0.3387
Epoch 21/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3990 - accuracy: 0.3065
Epoch 22/2000
3/3 [==============================] - 5s 1s/step - loss: 1.4265 - accuracy: 0.3065
Epoch 23/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3932 - accuracy: 0.3290
Epoch 24/2000
3/3 [==============================] - 5s 1s/step - loss: 1.4290 - accuracy: 0.3000
Epoch 25/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3516 - accuracy: 0.3161
Epoch 26/2000
3/3 [==============================] - 6s 2s/step - loss: 1.4167 - accuracy: 0.2581
Epoch 27/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3771 - accuracy: 0.3161
Epoch 28/2000
3/3 [==============================] - 7s 2s/step - loss: 1.3567 - accuracy: 0.3484
Epoch 29/2000
3/3 [==============================] - 7s 2s/step - loss: 1.3472 - accuracy: 0.2968
Epoch 30/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3214 - accuracy: 0.3323
Epoch 31/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3627 - accuracy: 0.3323
Epoch 32/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3597 - accuracy: 0.3290
Epoch 33/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3425 - accuracy: 0.3581
Epoch 34/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3398 - accuracy: 0.3548
Epoch 35/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3045 - accuracy: 0.3581
Epoch 36/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3544 - accuracy: 0.3323
Epoch 37/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3534 - accuracy: 0.3226
Epoch 38/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3467 - accuracy: 0.3129
Epoch 39/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3483 - accuracy: 0.3484
Epoch 40/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3432 - accuracy: 0.3387
Epoch 41/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3118 - accuracy: 0.3677
Epoch 42/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3486 - accuracy: 0.3677
Epoch 43/2000
3/3 [==============================] - 7s 2s/step - loss: 1.3060 - accuracy: 0.3710
Epoch 44/2000
3/3 [==============================] - 6s 2s/step - loss: 1.3532 - accuracy: 0.3323
Epoch 45/2000
3/3 [==============================] - 6s 1s/step - loss: 1.3577 - accuracy: 0.3194
Epoch 46/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3188 - accuracy: 0.3710
Epoch 47/2000
3/3 [==============================] - 5s 2s/step - loss: 1.3294 - accuracy: 0.3613
Epoch 48/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3581 - accuracy: 0.3097
Epoch 49/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3758 - accuracy: 0.3516
Epoch 50/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3494 - accuracy: 0.3032
Epoch 51/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3446 - accuracy: 0.3290
Epoch 52/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3520 - accuracy: 0.3290
Epoch 53/2000
3/3 [==============================] - 5s 1s/step - loss: 1.2753 - accuracy: 0.3742
Epoch 54/2000
3/3 [==============================] - 5s 1s/step - loss: 1.3350 - accuracy: 0.3323

@qlzh727 I think a good plan of action here is to extend the KerasCV benchmark to include a layer that has operations that rely on fallbacks.  I opened https://github.com/keras-team/keras-cv/issues/455 to track this issue.

@LukeWood In this case are Keras only layers: https://github.com/keras-team/keras-cv/issues/291#issuecomment-1136522926

I've added a more detailed rationale at https://github.com/keras-team/keras-cv/issues/455#issuecomment-1137111935

@kaitolucifer ,
Thanks for opening this issue. Development of keras moved to another repository.
Could you please post this issue on keras repo
To know more please refer:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!

Just wanted to say that I am also affected by this issue.

reopened this because we should probably fully trace back the root cause of this issue

We already know the perimeter of the issue as It was tracked in specific Keras-cv tickets.
The augmentaion used  in this case was from Keras (not Keras-cv):
https://keras.io/examples/vision/vit_small_ds/#build-the-vit
But when the Keras layers were converterted with the new base class they have adopted the within batch randomizzation policy + v_map. So we have introduced vmap fallbacks that we didn't had with the previous classical randomizzation policy. This Is the root cause of the performance regressione that the users reported here but I've already submitted many doubts about fallback performance impact when we discussed/intorduced that within batch randomizzation policy with the current native ops API and vmap.
We have already a ticket in Keras-cv tracking a quite long list of these TF ops fallbacks.

@bhack I'm experiencing what I believe to be a related issue when I try to train a ResNetRS152 model with TF 2.9 (this model was only added to tf.keras.applications in TF 2.9). I also tried running on tf-nightly and Keras-nightly just now, and besides the log messages getting more helpful, I did not see any change versus TF 2.9. Is there a particular issue on the Keras repo where I should chime in, or should I open a fresh issue? Since this is a canned tf.keras model, would the solution basically be to wait until converters are introduced for all of these ops, or might there be a workaround in the meantime?
I also tried setting include_preprocessing=False on the model, but the issue persisted.
Gist with console output

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


Add full loader for download business summary

*Issue:*https://github.com/bcgov/entity/issues/24518
Description of changes:
Added full screen modal and made it display when downloading business summary and hide when finished. Note that while there does seem to be a downloading flag for the common template, it doesn't appear to be passed through properly so I can't simply set it to true to cause them all to download and there is quite the chain that I'd have to add it to props and pass it through on so I went this way as it's easier
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://business-dashboard-dev--pr-94-ziv1i9va.web.app

While testing this, I found a new bug. Try this business (which is actually in Test only). Compare with Filings UI.
https://business-dashboard-dev--pr-94-ziv1i9va.web.app/BC1151476


kubectl v1.19.9 not supported in ANY Azure Location

Terraform Version Details
malepr@cldlgn04:~/public/fsbu-v4aks-mm-mrm/viya4-iac-azure$ ./files/tools/iac_tooling_version.sh
{
"terraform_version": ""1.0.0"",
"terraform_revision": "null",
"terraform_outdated": "true",
"provider_selections": "{"registry.terraform.io/hashicorp/azuread":"1.5.0","registry.terraform.io/hashicorp/azurerm":"2.62.0","registry.terraform.io/hashicorp/cloudinit":"2.2.0","registry.terraform.io/hashicorp/external":"2.1.0","registry.terraform.io/hashicorp/kubernetes":"2.3.1","registry.terraform.io/hashicorp/local":"2.1.0","registry.terraform.io/hashicorp/null":"3.1.0","registry.terraform.io/hashicorp/template":"2.2.0","registry.terraform.io/hashicorp/tls":"3.1.0"}"
}
Terraform Variable File Details
# !NOTE! - These are only a subset of CONFIG-VARS.md provided as examples.
# Customize this file to add any variables from 'CONFIG-VARS.md' whose default values you
# want to change.

# ****************  REQUIRED VARIABLES  ****************
# These required variables' values MUST be provided by the User
prefix   = "fsbu-v4aks-mm-mrm" # this is a prefix that you assign for the resources to be created
location = "centralus" # e.g., "eastus2"
ssh_public_key = "~/.ssh/azure/id_rsa.pub" # Name of file with public ssh key for connecting to the VMs
# ****************  REQUIRED VARIABLES  ****************

# !NOTE!  In a SCIM environment,
#          the AzureActiveDirectory service tag must be granted access to port
#          443/HTTPS for the ingress IP address.

# **************  RECOMMENDED  VARIABLES  ***************
# tags in azure
tags                                 = { "owner" = "$USER",  "resourceowner" = "$USER" , project_name = "fsbu-v4aks-mm-mrm", environment = "dev" }

## Admin Access
# IP Ranges allowed to access all created cloud resources
default_public_access_cidrs         = ["<IP_ADDRESS>/27", "<IP_ADDRESS>/16", "<IP_ADDRESS>/28", "<IP_ADDRESS>/32"]

create_static_kubeconfig  = true

#default_public_access_cidrs = [] # e.g., ["<IP_ADDRESS>/32"]
# **************  RECOMMENDED  VARIABLES  ***************

# Tags can be specified matching your tagging strategy.
# tags = {} # for example: { "owner|email" =<EMAIL_ADDRESS>"key1" = "value1", "key2" = "value2" }

# Postgres config - By having this entry a database server is created. If you do not
#                   need an external database server remove the 'postgres_servers'
#                   block below.
postgres_servers = {
  default = {},
}

# Azure Container Registry config
create_container_registry           = false
container_registry_sku              = "Standard"
container_registry_admin_enabled    = false

# AKS config
kubernetes_version         = "1.19.9"
default_nodepool_min_nodes = 2
default_nodepool_vm_type   = "Standard_D8s_v4"

# AKS Node Pools config
node_pools = {
  cas = {
    "machine_type" = "Standard_E16s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 1
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=cas:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "cas"
    }
  },
  compute = {
    "machine_type" = "Standard_E16s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 1
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=compute:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class"        = "compute"
      "launcher.sas.com/prepullImage" = "sas-programming-environment"
    }
  },
  connect = {
    "machine_type" = "Standard_E16s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 1
    "max_nodes"    = 1
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=connect:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class"        = "connect"
      "launcher.sas.com/prepullImage" = "sas-programming-environment"
    }
  },
  stateless = {
    "machine_type" = "Standard_D16s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 1
    "max_nodes"    = 2
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=stateless:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "stateless"
    }
  },
  stateful = {
    "machine_type" = "Standard_D8s_v3"
    "os_disk_size" = 200
    "min_nodes"    = 1
    "max_nodes"    = 3
    "max_pods"     = 110
    "node_taints"  = ["workload.sas.com/class=stateful:NoSchedule"]
    "node_labels" = {
      "workload.sas.com/class" = "stateful"
    }
  }
}

# Jump Server
create_jump_public_ip = true
jump_vm_admin        = "jumpuser"
jump_vm_machine_type = "Standard_B2s"

# Storage for SAS Viya CAS/Compute
storage_type = "standard"
# required ONLY when storage_type is "standard" to create NFS Server VM
create_nfs_public_ip = false
nfs_vm_admin         = "nfsuser"
nfs_vm_machine_type  = "Standard_D8s_v4"
nfs_raid_disk_size   = 128
nfs_raid_disk_type   = "Standard_LRS"

# Azure Monitor
create_aks_azure_monitor = false

Steps to Reproduce
Hello Experts!
I'm running the terraform apply and I'm running into an issue where the kubectl version required v1.19.9 is incompatible with AKS in ANY region. See the error below, and the script Ii made to FIND ANY region that has it. None support it.
I created a little shell script:
malepr@cldlgn04:~/public/fsbu-v4aks-mm-mrm/viya4-iac-azure$ cat ./bf_aksversion.sh
#!/bin/bash
for region in eastus, westeurope, francecentral, francesouth, centralus, canadaeast, canadacentral, uksouth, ukwest, westcentralus, westus, westus2, australiaeast, australiacentral, australiasoutheast, northeurope, japaneast, japanwest, koreacentral, koreasouth, eastus2, southcentralus, northcentralus, southeastasia, southindia, centralindia, eastasia, southafricanorth, brazilsouth, brazilsoutheast, australiacentral2, jioindiacentral, jioindiawest, swedencentral, westus3, germanynorth, germanywestcentral, switzerlandnorth, switzerlandwest, uaenorth, uaecentral, norwayeast, norwaywest
do
echo "region $region" >> ./bf_aksversion.txt
az aks get-versions --location $region --output table >> ./bf_aksversion.txt
done
See attached file for review :)
bf_aksversion.txt

│ Error: creating Managed Kubernetes Cluster "fsbu-v4aks-mm-mrm-aks" (Resource Group "fsbu-v4aks-mm-mrm-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="AgentPoolK8sVersionNotSupported" Message="Version 1.19.9 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list"
│
│   with module.aks.azurerm_kubernetes_cluster.aks,
│   on modules/azure_aks/main.tf line 27, in resource "azurerm_kubernetes_cluster" "aks":
│   27: resource "azurerm_kubernetes_cluster" "aks" {
Expected Behavior
kubectl version required by this package and AKS should be aligned and this version mismatch error should not have occurred
Actual Behavior
module.jump[0].azurerm_linux_virtual_machine.vm: Creation complete after 49s [id=/subscriptions/fd027923-0ba6-4fb3-8d64-623608ea2a44/resourceGroups/fsbu-v4aks-mm-mrm-rg/providers/Microsoft.Compute/virtualMachines/fsbu-v4aks-mm-mrm-jump-vm]
╷
│ Error: creating Managed Kubernetes Cluster "fsbu-v4aks-mm-mrm-aks" (Resource Group "fsbu-v4aks-mm-mrm-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="AgentPoolK8sVersionNotSupported" Message="Version 1.19.9 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list"
│
│   with module.aks.azurerm_kubernetes_cluster.aks,
│   on modules/azure_aks/main.tf line 27, in resource "azurerm_kubernetes_cluster" "aks":
│   27: resource "azurerm_kubernetes_cluster" "aks" {
│
Additional Context
I have used this error message from listing regions to populate the regions I checked:
malepr@cldlgn04:~/public/fsbu-v4aks-mm-mrm/viya4-iac-azure$ az aks get-versions --location unitedstates --output table (NoRegisteredProviderFound) No registered resource provider found for location 'unitedstates' and API version '2019-04-01' for type 'locations/orchestrators'. The supported api-versions are '2017-09-30, 2019-04-01, 2019-06-01, 2019-08-01, 2019-10-01, 2019-11-01, 2020-01-01, 2020-02-01, 2020-03-01, 2020-04-01, 2020-06-01, 2020-07-01, 2020-09-01, 2020-11-01, 2020-12-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-07-01, 2021-08-01'. The supported locations are 'eastus, westeurope, francecentral, francesouth, centralus, canadaeast, canadacentral, uksouth, ukwest, westcentralus, westus, westus2, australiaeast, australiacentral, australiasoutheast, northeurope, japaneast, japanwest, koreacentral, koreasouth, eastus2, southcentralus, northcentralus, southeastasia, southindia, centralindia, eastasia, southafricanorth, brazilsouth, brazilsoutheast, australiacentral2, jioindiacentral, jioindiawest, swedencentral, westus3, germanynorth, germanywestcentral, switzerlandnorth, switzerlandwest, uaenorth, uaecentral, norwayeast, norwaywest'.
References
No response
Code of Conduct

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

FYI for additional context - I have used this error message from listing regions to populate the regions I checked:
malepr@cldlgn04:~/public/fsbu-v4aks-mm-mrm/viya4-iac-azure$ az aks get-versions --location unitedstates --output table (NoRegisteredProviderFound) No registered resource provider found for location 'unitedstates' and API version '2019-04-01' for type 'locations/orchestrators'. The supported api-versions are '2017-09-30, 2019-04-01, 2019-06-01, 2019-08-01, 2019-10-01, 2019-11-01, 2020-01-01, 2020-02-01, 2020-03-01, 2020-04-01, 2020-06-01, 2020-07-01, 2020-09-01, 2020-11-01, 2020-12-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-07-01, 2021-08-01'. The supported locations are 'eastus, westeurope, francecentral, francesouth, centralus, canadaeast, canadacentral, uksouth, ukwest, westcentralus, westus, westus2, australiaeast, australiacentral, australiasoutheast, northeurope, japaneast, japanwest, koreacentral, koreasouth, eastus2, southcentralus, northcentralus, southeastasia, southindia, centralindia, eastasia, southafricanorth, brazilsouth, brazilsoutheast, australiacentral2, jioindiacentral, jioindiawest, swedencentral, westus3, germanynorth, germanywestcentral, switzerlandnorth, switzerlandwest, uaenorth, uaecentral, norwayeast, norwaywest'.

Hi @mleprince018 you can run this command:
az aks get-versions --location eastus --output table
KubernetesVersion    Upgrades
-------------------  -----------------------
1.21.2               None available
1.21.1               1.21.2
1.20.9               1.21.1, 1.21.2
1.20.7               1.20.9, 1.21.1, 1.21.2
1.19.13              1.20.7, 1.20.9
1.19.11              1.19.13, 1.20.7, 1.20.9

Where you can change eastus to any viable location and get the current list of kubernetes versions.
To work around the problem you cat adjust the following variable in your tfvars file:
# AKS config
kubernetes_version         = "1.19.13"

Hi Thomas,
Thank you - I've updated the terraform.tfvars file, rebuilt the terraform plan, and applied it.
Unfortunately I cannot consider this a complete success and resolution as AKS seems to have run into an error. I'll update you later if this completes successfully.
module.aks.azurerm_kubernetes_cluster.aks: Still creating... [6m1s elapsed]
╷
│ Error: waiting for creation of Managed Kubernetes Cluster "fsbu-v4aks-mm-mrm-aks" (Resource Group "fsbu-v4aks-mm-mrm-rg"): Code="ProvisioningControlPlaneError" Message="AKS encountered an internal error while attempting the requested Creating operation. AKS will continuously retry the requested operation until successful or a retry timeout is hit. Check back to see if the operation requires resubmission. Correlation ID: 1f650d94-7a26-12a3-f1c9-5bbbb21b4932, Operation ID: 7795b569-583b-4981-bc04-9a75347c574f, Timestamp: 2021-09-14T20:53:12Z."
│
│   with module.aks.azurerm_kubernetes_cluster.aks,
│   on modules/azure_aks/main.tf line 27, in resource "azurerm_kubernetes_cluster" "aks":
│   27: resource "azurerm_kubernetes_cluster" "aks" {
│

Yup, that's an AKS issue. You'd have to check the portal and see if there are any issues there.

Just wanted to close this out - modifying the below parameter, then rebuilding the terraform and applying it fixed the issue.
kubernetes_version         = "1.19.13"

Adding this one back in as the default value does need to be changed.

Marking as closed as kubernetes_version is now set to 1.23.8


Some small changes

Here are some small changes to scipy/.

Hi. Sorry about getting back so late on this. Thanks for the suggestions!
The log() suggestions you make are much better. I wasn't sure if that was the protocol because I think I found some samples where the log_pdf() and log_cdf() were computed directly. I also might've been trying to computationally clever, but cleverness isn't always good.
Also, if any tests aren't appropriate for this section, please just remove them. I was going for more completeness than anything but if there are some previous conventions about what to include/exclude, I'll definitely follow those.
Thanks again! I'll make any necessary changes (if this code is still valid).

Looks like this code is still valid. Would be good to get it integrated before the next release.


Equation Change Thats important

This change prevents the equation from truncating at 1/height. Without this is truncates to 0 and the distance becomes negative.

It changes distance_from_height, right? I told Blair and he changed 1 to
1.0 on his code, and I'll merge your code when I get a chance.
On Mar 8, 2012 9:34 AM, "JeffTolbert" <
<EMAIL_ADDRESS>wrote:

This change prevents the equation from truncating at 1/height. Without
this is truncates to 0 and the distance becomes negative.
You can merge this Pull Request by running:
git pull https://github.com/JeffTolbert/612-code master
Or you can view, comment on it, or merge it online at:
https://github.com/rbmj/612-code/pull/53
-- Commit Summary --

Merge branch 'master' of git://github.com/rbmj/612-code
Merge branch 'master' of git://github.com/rbmj/612-code
Important Commit

-- File Changes --
M vision/vision_processing.cpp (2)
-- Patch Links --
https://github.com/rbmj/612-code/pull/53.patch
https://github.com/rbmj/612-code/pull/53.diff

Reply to this email directly or view it on GitHub:
https://github.com/rbmj/612-code/pull/53


Reactor Logic Adapter Port missing canConnectRedstone still

The block itself is solid, but it still needs the IBlockAccess flag canConnectRedstone in order for Project Red framed red alloy and colored insulated wire, and other similiar cables, to be able to connect to it.  I promise this is the last time I make an issue regarding this =)
Also just wanted to say that I absolutely love Mekanism (I've been using it since it was a UE mod back in 1.5.2) and I hope to continue to see it grow and progress for some time to come.

Have you done any manual compilations? It might've been fixed in development but they haven't pushed it to their build server as a stable release build.

I've taken a look at the code, and didn't see the flag in it. In the current version, you can place things like red alloy wire (Non-framed) and it works, but I'd like something that looks a bit cleaner.  I recently had a similar issue with another mod, and when that particular flag was added, framed insulated wire worked lovely with it =)

ahhh... i assume that by framed you mean stuff like insulated and bundled cable?

Yes.  Bundled cable itself wouldn't work, as you have all 16 colors in one, but yes, insulated wire is what I'm going for.  I use an addon to Project Red called Project Blue, which lets you have levers, buttons, and lights for all 16 colors in a single block, so you can control and monitor things easier.  Example below:

ahhh... I've barely even touched Project Blue so i was unaware. Do you happen to have an example of the flag you're referring to? I know you mentioned another mod added it and that fixed the issue.

https://github.com/bdew/generators/commit/907ec52a374ba34f077afcbf4999b3960b30fdd2
As you can see in this commit, the import was changed a bit, and the flag itself was added onto the redstone control module block.  I would assume (I know little about actual modding, I'm just able to read code and such) that the same could be done for the RLA in Mekanism for it to work.

Kodos: let me try and see what I can do in regards to this. I'm not that great a coder but I'll make sure it's stable before i give you a build to test.

@Kodos-Atoz I've got my code edit in (it's not been submitted as a PR yet as I still need to test the functionality of the code.) I'm testing it as we speak. Currently encountering crashing related to other mods but will make sure that main compatibility is present before uploading it to my server for download and submitting a PR on this repo.

@Kodos-Atoz so in Bdew's mods the insulated/framed ones work directly from bluepower? I've added the same code (slightly modified for mekanism functionality but mostly the same) and yet the blue power ones do not get output. I'll continue testing. Red alloy wire itself works. I've got a few ideas left to try though.

I'm... not sure what you're doing, but I'm referring to Project Red, not Bluepower. Also, it's a simple flag addition, not sure what you  needed to modify...  I think I'll just wait for aidan's input on this.  I would think it's a simple fix.

D'oh! i forgot that I was using Blue Power not Project Blue. Give me about 10 minutes. The code change I made was referring to the function isSideSolid in BlockReactor.java located here: https://github.com/aidancbrady/Mekanism/blob/development/src/main/java/mekanism/generators/common/block/BlockReactor.java <--- I'm of the belief be more safe than sorry. I might've overthought it but I'll let @aidancbrady or @unpairedbracket look it over and decide whether or not I needed to have the modification.

I basically copied the isSideSolid function and changed the function name while leaving the case switch statement in.

and i got it! I'll upload the code to my repo as well so people can see the code change.
But here it is: (Starts at line 353)
@Override
public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side)
{
ReactorBlockType type = ReactorBlockType.get(this, world.getBlockMetadata(x, y, z));
	switch(type)
	{
		case FRAME:
		case PORT:
		case ADAPTER:
			return true;
		default:
			return false;
	}
}

public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, ForgeDirection side)
{
	ReactorBlockType type = ReactorBlockType.get(this, world.getBlockMetadata(x, y, z));

	switch(type)
	{
		case FRAME:
		case PORT:
		case ADAPTER:
			return true;
		case CONTROLLER:
			return true;
		default:
			return false;
	}
}

Here I got the system to work:

You've got a piece of red alloy wire (Non-framed) against the facing of hte reactor.  With the flag I'm talking about, that piece isn't necessary, and the framed wire would connect on its own.  As I said, I'll just wait for Aidan, as it seems there's a miscommunication going on.

Yeah. Probably best. I can't get it even firing up a second server with the flag non-modified. My java knowledge is limited. I don't know where else to put that flag because the block interfacing seems to all be going through BlockReactor.java. But i tried.

Thanks for pointing this out @Kodos-Atoz :)


bower install breakpoint-sass --save-dev next steps?

After I ran bower install breakpoint-sass --save-dev it installed correctly in bower_components.
How do I reference it? Do I call it by
@import "bower_components/compass-breakpoint/stylesheets/breakpoint"
in my main.scss file ?  Do I have to add the folder using Compass's add_import_path config option instead of the standard require?
I am using https://github.com/yeoman/generator-gulp-webapp

If you're using Gulp or Grunt, you can add the includePaths setting:
    settings: {
        includePaths: ['bower_components/breakpoint-sass/stylesheets/']
    }

And then just use: @import "breakpoint" in your main app.scss file to use it in any partial.

Thanks @bewards , this can be closed.


oidc support for dbt-trino

A great and unique feature of Trino is that it allows users to authenticate through OIDC. This is not something commonly seen with databases (only Snowflake and Denodo support this feature). it's a much safer use as it doesn't require storing any local credentials.
I saw that this feature is implemented in the trino-python-client but not yet supported in the dbt adapter.
Some gotchas:

As you can specify # of threads and each model usually generates lots of queries, it might be annoying to see lots of browser windows opening. So ideally the access token is cached and reused for every query.
Some dbt jobs may take a long time, we need to ensure that queries don't fail because of token expiration while running a dbt project.

See following thread on dbt slack channel for more info.

When changing the authentication method to oauth as in the PR, the url is printed in the console.

If you follow each url, the driver will execute the openid connect flow, of course you need to follow this url's in the order specified in the console. of course his is not a great user experience.

Modified trino-python-client to launch a webbrowser instead of printing the link

def handle_redirect_auth_url(auth_url):
    print("Opening your browser for the external authentication:")
    webbrowser.open_new(auth_url)

This approach has two issues:

it will launch a new browser window for each executed query.
It seems to not work when multiple queries are launched simultaneously (not investigated in detail)

Some initial conclusions:
Comparing with how this is done in the snowflake pyhon connector, they actually provide a localhost callback url for the authentication flow, so they can capture the access token on the clientside, while in Trino's case the access token is retrieved on the server side and not exposed to the client (implicit flow vs authorization code.
A workaround could call the OIDC endpoint and retrieve a token and use that token (jwt authentication method in dbt-trino), in our case we would have to enable the implicit flow as our custom OIDC provider doesn't provide any means to request a token outside of the standard flows. Also this has to take into account token expiration. Most important i think this pushes complexity down upon the dbt user instead of providing a plug & play experience (which is really what dbt is about).


Revert "Disallow downgrade"

Breaks all current BCI test runs.

test failures are due to helm getting a version bump, should be fixed via https://github.com/SUSE/BCI-tests/pull/325

I'm not finding a more precise check before midday


macOS: toolbar icons in black and white following the macOS standard UI

It would be good to have toolbar icons in black and white as other macOS integrated apps. Also the side bar could have gray scale

I'm open to a (hidden?) pref for the toolbar, at least, depending on others' thoughts.

The color is part of the spirit of the app! Lots of apps have toolbar icons with color — Pages and Numbers, for example.

@brentsimmons Is an option to choose between colored and grayscale icons something you would be open to a PR for?

Not right now — with NNW 6.0 we’ll be making UI changes to adapt to Big Sur, and I have no idea yet what that will mean for our toolbar icons.


BlobClient download failed with " 'NoneType' object has no attribute 'status_code' "

Package Name:  azure.core
Package Version:  1.13.0
Operating System: Ubuntu-18.04.
Python Version: 3.7

Describe the bug
Using the BlobClient, for time to time downloading a blob return a exception which seems to be incorrectly processed, it ends with inability to know what went wrong.
To Reproduce
Unfortunately it's very sporadic error.
Expected behavior
I would expect be able to catch initial error encountered while downloading the blob.
Additional context
Please find the stack trace:
  data = await blob_client.download_blob()
  File "/usr/local/lib/python3.7/site-packages/azure/core/tracing/decorator_async.py", line 74, in wrapper_use_tracer
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/azure/storage/blob/aio/_blob_client_async.py", line 361, in download_blob
    await downloader._setup()  # pylint: disable=protected-access
  File "/usr/local/lib/python3.7/site-packages/azure/storage/blob/aio/_download_async.py", line 225, in _setup
    self._response = await self._initial_request()
  File "/usr/local/lib/python3.7/site-packages/azure/storage/blob/aio/_download_async.py", line 289, in _initial_request
    if self._start_range is None and error.response.status_code == 416:
Exception 'NoneType' object has no attribute 'status_code'

Thanks for opening this issue, we'll investigate as soon as possible.

@tasherif-msft can you please look at this?

Hi @cmonmouton, what is the size of the file you're attempting to download?

Hi @tasherif-msft , the blob file is a parquet file of ~5MB.

Hi @cmonmouton
thanks for the info! Can you do pip freeze and check the azure-core version you are using?

Hi @xiafu-msft,
Please find below the result of pip freeze of azure packages:
azure-common==1.1.27
azure-core==1.13.0
azure-datalake-store==0.0.52
azure-identity==1.5.0
azure-keyvault==4.1.0
azure-keyvault-certificates==4.2.1
azure-keyvault-keys==4.3.1
azure-keyvault-secrets==4.2.0
azure-storage-blob==12.6.0

hi @cmonmouton
thanks for your reply! can you upgrade you blob to 12.8.1 and see if that still happens?

Hi @xiafu-msft, sure I will let you know.
Thanks.

Hi @xiafu-msft,
Good news, we didn't see the exception happen for while, even before upgrade to latest version.
Just by curiosity I looked up at the changes on master branch of azure blob storage, there is no change on faulty line.
And I guess, since response attribute of [HttpResponseError](https://github.com/Azure/azure-sdk-for-python/blob/af456fe75579532bdc9d02f54755137a0f75d1d0/sdk/core/azure-core/azure/core/exceptions.py#L267) can be None, even it's unfortunate the error could still happen.
Thanks all, for your replies and your time.


Minor typos

FYI, signed CLA.

Thanks @alecxe. Merged at https://github.com/angular/protractor/commit/c94c388e400db0a128da202d6ac72be6fbe7873a


Move to purescript-deprecated

Should this repo be moved under the purescript-deprecated organization as it is no longer needed?  (also referenced in #7)

Yes, thanks for the report.


Zoom by left-click and drag not working

Using
using GLMakie, GeoMakie; fig = Figure(); ax = GeoAxis(fig[1,1], coastlines = true); fig
I am not able to zoom into a selection as can be done in regular plots in GLMakie by left-click and drag. Instead, it for some strange reason zooms strongly towards the origin.

This issue has been resolved in v0.6.0 as the following works properly
using GLMakie, GeoMakie; fig = Figure(); ax = GeoAxis(fig[1,1]); lines!(ax, GeoMakie.coastlines()); fig


[Actions] Runner unable to find files

Description
Hello,
I'm having a bug on Gitea which I am unable to get on GitHub when running the same identical setup on one of their public free tier runners.
In short, this (https://github.com/diamante0018/setup-oat) workflow can be used without issues on GitHub. I self-test it there with its own workflow so we can see that the pipeline is green. What it does is very simple, it downloads a tar from a release page, extracts it, sets executable permissions and moves it to the .OAT folder relative to the workspace environment.
We can see from this line that on GitHub "this just works" fine https://github.com/diamante0018/setup-oat/blob/main/.github/workflows/test.yml#L38
I can run the "Linker" program without issues, I can't say the same for gitea.
On my gitea runner after my setup-oat action is finished the Linker can be found in my .OAT folder However no matter what I try it's completely inaccessible. Any tips? Please see the attached screenshots. I am not 100% sure this behaviour could be gitea's fault but seeing how it works on Github it might be?
Unable to reproduce on try.gitea because actions are not set up for Linux, furthermore clicking on the "actions" tab after enabling them in the settings on that website throws a 500 error code
My repo is open-source, so if someone who can set up a runner on try.gitea wishes to do so feel free to.
https://git.alterware.dev/AlterWare/iw5-menus/src/branch/build/add-oat-build (just this branch)
Update 1:
I was able to use my own action on GitHub by copy and pasting the workflow I was using without success from my gitea I linked
See how it is successful on GitHub:
Repo: https://github.com/diamante0018/PlutoIW5Arena
Actions: https://github.com/diamante0018/PlutoIW5Arena/actions
Gitea Version
1.21.5
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
I tried with both absolute path (like in the screenshot) and without (like in the test.yml I link on Github), same error.

Git Version
Git Version 2.34.1
Operating System
OS Ubuntu 22.04 64 Bit
How are you running Gitea?
Running via binary using systemd
Database
MySQL/MariaDB

This may not be a Gitea action problem.
The Linker requires some dependencies that you need to install.
Before you test this, you may need to change your action runner labels. Here, I use the 'Test' label, which is node:20.11.1, because its Debian version is 12 (which contains glibc higher than 2.34).
this is example:
name: link

on: [push]

jobs:
  link-linux:
    name: Link on Linux
    runs-on: Test

    steps:
      - name: Check out files
        uses: actions/checkout@main
        with:
          submodules: true
          fetch-depth: 0

      - name: Setup OAT
        uses: diamante0018/setup-oat@main
        with:
          version: "0.8.3"

      - name: Install deps
        run: |
          apt update
          apt install gcc g++ gcc-multilib g++-multilib -y

      - name: Debug
        run:
          ls -a ./.OAT

      - name: Create code_post_gfx_mp
        run: |
          ./.OAT/Linker -v -l "./deps/iw5-zones/zone/english/code_post_gfx_mp.ff" code_post_gfx_mp

      - name: Create localized_ui_mp
        run: |
          ./.OAT/Linker -v -l "./deps/iw5-zones/zone/english/localized_ui_mp.ff" localized_ui_mp

result:

The failed messages are output by the Linker, so you will need to debug it yourself.

Thank you very much for pointing me in the right direction. Yes, I unfortunately setup the labels incorrectly because I did not know the docker image was Debian or something (and I'm using the last non-nightly docker that was pushed 5 months ago or so).
I can confirm it's a glibc issue on my side, thanks.


test: require Kokoro compliance test run

The Kokoro Compliance Tests check isn't required on this PR. Does this mean this PR isn't WAI?

Ah, there's some background job that updates the repo settings once this is merged. I can also manually force it for now in the repo settings.


Require parentheses around single param arrow functions

This rule is driving me crazy.

I tend to disagree, but 🤷♂
I'm fine with either style, I just prefer it without the parenthesis since it's less visual clutter for the common cases where you only have one argument.

Style quirks, amirite? (My own preference is no parens if it's one argument and an expression-type invocation, parens if it's multiple arguments or it's a block-type invocation.)


New Device: Lepro bulbs

Got some new RGBW bulbs from Amazon - they are Lepro LE bulbs. They seem to be detected just fine, but any control does not work. I've been able to control them from the LampUX app on the phone, but not via this plugin. I'm an IT professional by trade, so I'm happy to help with some debugging here. Very similary to #206
Edit: These are the bulbs https://www.lepro.com/4-pack-a19-e26-rgbw-color-changing-smart-light-bulbs.html
[2021-04-23, 2:26:24 p.m.] [TuyaLan] Connected to Desk Left
[Tuya] Sending first query to Desk Left (3.3)
[Tuya] Heard back from Desk Left with command 10
[2021-04-23, 2:26:24 p.m.] [TuyaLan] Ready to handle Desk Left (RGBTWLight:3.3) with signature {"20":true,"21":"white","22":1000,"23":0,"24":"000003e803e8","25":"000e0d0000000000000000c80000","26":0}
[Tuya] Color format for Desk Left (3.3) is undetectable.
[2021-04-23, 2:26:24 p.m.] [homebridge-tuya] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info.

Here you go, everyone:
    {
        "type": "RGBTWLight",
        "name": "Desk Left",
        "id": "xxxx",
        "key": "xxxxx",
        "manufacturer": "Lepro",
        "model": "Color",
        "dpPower": 20,
        "dpBrightness": 22,
        "dpColorTemperature": 23,
        "dpMode": 21,
        "dpColor": 24,
        "colorFunction": "HSB",
        "scaleBrightness": 1000,
        "scaleWhiteColor": 1000
    },

Please let us know if the device is now working with the correct dp values and we can tag this issue as a new device to add.

I was having a similar issue with Smart Ape branded bulbs. The config above fixed it for me.

I was able to configure LeproLE bulbs correctly with the aforementioned configuration, thank @johnstegeman

thank you @johnstegeman! this config worked on these non-RGB bulbs too: https://www.amazon.co.uk/gp/product/B07MBXCNQS

This config also worked for my SmartLife RGBW bulbs I got off Amazon as well, thanks!
https://www.amazon.com/dp/B083BRRZ4Y?psc=1&ref=ppx_yo2_dt_b_product_details

This config also fixed this problem for me and my InfiBrite lights.


Docker base image for NodeJS and Ruby

We need this image for running Plutonium (Parsing Service).

:+1:


sorting bug, when moving element up one from bottom the sort order is not saved

We did a fresh install of elemental using SS4.6 and latest version of Elemental. What we found is that if move a block from bottom position up by one using the drag and drop UX, it works fine, BUT it does not save (i.e. when we save and publish the block is back in its original position). This does not happen if:
a. block is moved up more than one position
b. block is not move from bottom position (i.e. there is/are other blocks below it).
Note: further replication steps in comment below

@haseganats could you post your composer show? I'm unable to replicate this issue.

bramus/ansi-php                           3.0.3              ANSI Control Functions and ANSI Control Sequences (Colors, Erasing, etc.) for PHP CLI Apps
bramus/monolog-colored-line-formatter     2.0.3              Colored Line Formatter for Monolog
composer/ca-bundle                        1.2.8              Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
composer/installers                       v1.9.0             A multi-framework Composer library installer
dnadesign/silverstripe-elemental          4.4.1              Elemental pagetype and collection of Elements
doctrine/instantiator                     1.3.1              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
embed/embed                               v3.4.9             PHP library to retrieve page info using oembed, opengraph, etc
guzzlehttp/psr7                           1.7.0              PSR-7 message implementation that also provides common utility methods
intervention/image                        2.5.1              Image handling and manipulation library with support for Laravel integration
league/csv                                8.2.3              Csv data manipulation made easy in PHP
league/flysystem                          1.0.70             Filesystem abstraction: Many filesystems, one API.
m1/env                                    2.2.0              Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env fil...
marcj/topsort                             1.1.0              High-Performance TopSort/Dependency resolving algorithm
monolog/monolog                           1.25.5             Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                         1.10.1             Create deep copies (clones) of your objects
nikic/php-parser                          v4.10.2            A PHP parser written in PHP
phpdocumentor/reflection-common           2.2.0              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock         5.2.2              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that...
phpdocumentor/type-resolver               1.4.0              A PSR-5 based resolver of Class names, Types and Structural Element Names
phpspec/prophecy                          v1.10.3            Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage                 4.0.8              Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator                 1.4.5              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template                 1.2.1              Simple template engine.
phpunit/php-timer                         1.0.9              Utility class for timing
phpunit/php-token-stream                  2.0.2              Wrapper around PHP's tokenizer extension.
phpunit/phpunit                           5.7.27             The PHP Unit Testing framework.
psr/cache                                 1.0.1              Common interface for caching libraries
psr/container                             1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/http-message                          1.0.1              Common interface for HTTP messages
psr/log                                   1.1.3              Common interface for logging libraries
psr/simple-cache                          1.0.1              Common interfaces for simple caching
ralouphie/getallheaders                   3.0.3              A polyfill for getallheaders.
sebastian/code-unit-reverse-lookup        1.0.1              Looks up which function or method a line of code belongs to
sebastian/comparator                      1.2.4              Provides the functionality to compare PHP values for equality
sebastian/diff                            1.4.3              Diff implementation
sebastian/environment                     2.0.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                        2.0.0              Provides the functionality to export PHP variables for visualization
sebastian/global-state                    1.1.1              Snapshotting of global state
sebastian/object-enumerator               2.0.1              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/recursion-context               2.0.0              Provides functionality to recursively process PHP variables
sebastian/resource-operations             1.0.0              Provides a list of PHP built-in functions that operate on resources
sebastian/version                         2.0.1              Library that helps with managing the version number of Git-hosted PHP projects
silverstripe/admin                        1.6.1              SilverStripe admin interface
silverstripe/asset-admin                  1.6.1              Asset management for the SilverStripe CMS
silverstripe/assets                       1.6.1              SilverStripe Assets component
silverstripe/campaign-admin               1.6.0              SilverStripe campaign admin interface
silverstripe/cms                          4.6.0              The SilverStripe Content Management System
silverstripe/config                       1.0.18             SilverStripe configuration based on YAML and class statics
silverstripe/errorpage                    1.6.0              ErrorPage component for SilverStripe CMS
silverstripe/framework                    4.6.2              The SilverStripe framework
silverstripe/graphql                      3.3.0              GraphQL server for SilverStripe models and other data
silverstripe/login-forms                  4.1.2              A collection of templates for the CMS login screens
silverstripe/mimevalidator                2.0.0              Checks uploaded file content roughly matches a known MIME type for the file extension.
silverstripe/recipe-cms                   4.6.1              SilverStripe recipe for fully featured page and asset content editing
silverstripe/recipe-core                  4.6.1              SilverStripe framework-only core recipe
silverstripe/recipe-plugin                1.4.0              Helper plugin to install SilverStripe recipes
silverstripe/reports                      4.6.0              Reports module for SilverStripe CMS
silverstripe/siteconfig                   4.6.0              Site wide settings administration.
silverstripe/spamprotection               3.0.2              Spam protection module for SilverStripe.
silverstripe/vendor-plugin                1.5.1              Allows vendor modules to expose directories to the webroot
silverstripe/versioned                    1.6.2              SilverStripe Versioned component
silverstripe/versioned-admin              1.6.0              SilverStripe versioned admin interface
sminnee/phpunit-mock-objects              3.4.10             Mock Object library for PHPUnit (fork to add PHP 7.4 support to 3.4)
sunnysideup/email_address_database_field  2.0.0              E-mail address database field for the Silverstripe CMS
sunnysideup/error-log-made-easy           dev-master 15ec0c0 Set up error logging on your silverstripe website: emails every error to a designated email.
sunnysideup/phone_field                   2.0.2              Silverstripe Module that adds a phone field to your database field options, such as Varchar and HTMLText
swiftmailer/swiftmailer                   v5.4.12            Swiftmailer, free feature-rich PHP mailer
symbiote/silverstripe-gridfieldextensions 3.2.4              A collection of useful grid field components
symfony/cache                             v3.4.46            Symfony Cache component with PSR-6, PSR-16, and tags
symfony/config                            v3.4.46            Symfony Config Component
symfony/filesystem                        v4.4.16            Symfony Filesystem Component
symfony/finder                            v3.4.46            Symfony Finder Component
symfony/polyfill-apcu                     v1.20.0            Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype                    v1.20.0            Symfony polyfill for ctype functions
symfony/polyfill-mbstring                 v1.20.0            Symfony polyfill for the Mbstring extension
symfony/translation                       v2.8.52            Symfony Translation Component
symfony/yaml                              v3.4.46            Symfony Yaml Component
webmozart/assert                          1.9.1              Assertions to validate method input/output with nice error messages.
webonyx/graphql-php                       v0.12.6            A PHP port of GraphQL reference implementation

@haseganats could you post your composer show? I'm unable to replicate this issue.

Hi, see above

Same issue here.
I have to manually publish the whole page to save the order of elements.
But then all archived Elements are published too.

Same issue here.
I have to manually publish the whole page to save the order of elements.
But then all archived Elements are published too.

Cannot replicated with elemental 4.6.x-dev and framework 4.8.x-dev using 5x regular Content blocks
I've tried page save + publish and inline block save + publish, everything works as expected
We'll need further replication steps in order to do anything here

THANK YOU for checking.

I have experienced this issue, but it is only seen if you (somehow) enter a state where you have multiple blocks with the same Sort value.
For me, this was caused by fixtures generation.
Scenario (in short)

I have some fixtures that generate pages and blocks.
The sequence of events is that it creates the block, saves it, and then adds it to the page. Psudocode example:

$block = ElementContent::create();
$block->write();

$page->ElementalArea()->add($block);

Of course, at the time when the block is initially written, there is no ParentID, so a Sort of 1 is written to it.
When the block is then added to the ElementalArea, the Sort is not updated.
The result is that initially I have a Page with many blocks assigns to Sort: 1.

Result
When we trigger ReorderElements::reorder(), it fetches $afterElement and stores the current Sort (which is 1) to the variable $sortAfterPosition, we then get down to the condition where we determine how we wish to update the current record.

We skip past the first condition, because $sortAfterPosition is not less than $currentPosition, which means we set $newBlockPosition to $sortAfterPosition, which is of course, the same position.
Some thoughts
I think that a lot of these potential scenarios could be avoided if we only set a default Sort value once a ParentID exists.
I'm not sure if there is any downside to this?

My other thought is whether we need something somewhere that catches theses duplicate Sort values and .. .. sorts them out (sorry). But then I'm unsure when the best time to do that would be. Page publish is risky, as you might end up changing to sort of items to something unexpected.

Ahh, this came up in a different PR too, here: https://github.com/silverstripe/silverstripe-elemental/pull/931
@chrispenny, might that PR be an answer to your question about sorting-the-sort?

Yea, I think the comments there are fair (and are similar to what I mentioned above about "not knowing when a good time to re-order is"). I've added a note on that PR 😃

I think that a lot of these potential scenarios could be avoided if we only set a default Sort value once a ParentID exists.

I think this makes a lot of sense. I'd welcome a PR to implement this.

My other thought is whether we need something somewhere that catches theses duplicate Sort values and .. .. sorts them out (sorry).

Yeah as I said on the other issue, I'd prefer to deal with situations where the sort order is breaking, rather than some process that will audit and rearrange. The problems with the latter is that rearranging the elements automatically doesn't guarantee an order that the content author actually wants, and it's an expensive operation that we should not put somewhere as a side-effect.
If we have it, I'd like "reorder everything" to be an action that's performed with intent. We'd need to figure out why a content author would see it as a problem, and come up with a mechanism to let them fix it.


tidy_licences

changed the function tidy_licence to avoid the need to manually list each variation of licences.

I'm not sure about some of this...
I think too much is being processed to "No license". CC0 at least is definitely a license and I think better to keep that information. I don't think "public domain" and "no license" are really the same either. I'm also sceptical of the mapping of "No Known Copyright" to "No license" that was already there.
I'm a bit worried about matching anything containing the key strings in case they match things that shouldn't ("ogl" would match "Google's evil proprietary license" and transform that into "Open Government Licence v3.0")

@ormiret could you review and merge if ok please?

@ormiret: I changed my initial way, because I probably misunderstood Karen's last comment on Alternative NLS scraper PR 107  . I can apply the required changes to CC0, Public Domain and "No Known Copyright" easily. About "ogl", you're absolutely right about Google's evil license ;) However, 527 datasets from different sources return either "uk-ogl" or "OGL3" as licence (see merged_output_untidy.csv). How about using these two strings, instead of only "ogl"?
@KarenJewell: aren't your last changes to the PR basically reverting everything back to the current main branch?

@nutcracker22 haha yes I did think that too, but once the changes for the other functions not to do with licences were removed and the string matching removed (agreed with @ormiret), there was not much left. The NLS scraper was also included in the original commits but again once the relevant edits were isolated it ended up having little left, except in its place is a fix for #133 relevant to licences.
Perhaps a potential improvement to keep with the original scope (and my comment in PR107) is to same-case both the keys and the data value to compare - rather than changing the stored keys themselves. The licenses come pretty standard so I am reluctant to change those. See https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
@ormiret's point about

I'm also sceptical of the mapping of "No Known Copyright" to "No license" that was already there.

is still open - what is the proposed change? Retain "No Known Copyright"?
Ultimately, any change should consider what the end impact on the user is - let's keep variation on the displayed licences as light as possible. It's challenging enough for us!

@KarenJewell: I just committed an updated version of the tidy_licences function. It should keep the old key-value combinations, but removed some of the variations, as you suggested in this comment.
In case I overlooked something, just let me know. And I hope it addresses all problems you two mentioned ;)

I'm not keen on the "license contains key" approach. I don't think we can come up with a set of keys that will match what we want without (potentially) having spurious matches.
"cco" that's there at the moment matches 113 words in /usr/share/dict/words on my system and we can't guarantee that no one is going to use one of those words in the name of a license (or any other word that contains one of the other keys).
Even for the more complicated keys (like the URL based ones) I don't think we can match on that existing within the license string we have for a dataset. I have seen (though not sure if we're pulling in any of them yet) license strings along the lines of "OGL3 except location data that came from $GIS_SYSTEM and is under $OTHER_LICENSE" and we shouldn't collapse that to just OGL3.

okay, it seems that it automatically closed this PR when I synced my main branch with that of OpenDataScotland. I will try to tidy the tidy_licence function by keeping the current approach, and then create a new PR.

Switching the comparison to be case insensitive should give a bit of clean up, looking forward to seeing if you can find any other improvements.
Thanks for looking at this @nutcracker22


experience_batch_size in PPO training

ColossalAI/applications/Chat/coati/trainer/ppo.py:
replay_buffer = NaiveReplayBuffer(train_batch_size, buffer_limit, buffer_cpu_offload)
Because this is constructing experimental data,should the train_batch_size in the above code be experience_batch_size?

OK,thanks


Microsoft.Rest.ClientRuntime net45 is referencing Newtonsoft 6

The two .NetStandard's reference Newtonsoft v9, but net45 references v6. Was this overlooked or on purpose? It is causing reference issues with Azure SDKs that reference this along with Netwonsoft v9.

@johnwc we have taken dependency on v6 for .net 45.
We are looking to updating to v9 in future release.

Why is it closed, it is causing a reference issue with the rest of the Azure SDKs.  Shouldn't this be left open and marked closed once the issue is resolved?
In the work that I am doing, I have no control of the assembly redirection in the .config files. So we can not simply redirect the assembly. ( Orchestrator )

This issue is only getting worse as Newtonsoft.Json is now at version 10 and now no frameworks support the latest.

Agree this should not be closed.  This is blocking install of latest SDK.

@shahabhijeet can you please change this back to open, this is a real issue and it is not resolved.


I would like to implement GANs

I think the ideal way would be to submit a PR hooked up against this issue as well


Schema cache fix

Codecov Report

Merging #66 into master will increase coverage by 0.07%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   92.54%   92.61%   +0.07%
==========================================
  Files         122      122
  Lines        1811     1815       +4
  Branches      100      102       +2
==========================================
+ Hits         1676     1681       +5
+ Misses        135      134       -1

Impacted Files
Coverage Δ

.../hydra/avro/registry/ConfluentSchemaRegistry.scala
100% <100%> (ø)
:arrow_up:

.../scala/hydra/kafka/config/KafkaConfigSupport.scala
100% <100%> (ø)
:arrow_up:

.../src/main/scala/hydra/core/protocol/Messages.scala
100% <100%> (ø)
:arrow_up:

...ala/hydra/avro/resource/SchemaResourceLoader.scala
100% <100%> (ø)
:arrow_up:

core/src/main/scala/hydra/core/Settings.scala
100% <100%> (+20%)
:arrow_up:

...in/scala/hydra/core/akka/SchemaRegistryActor.scala
97.14% <100%> (+0.04%)
:arrow_up:

Continue to review full report at Codecov.

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


Javadoc Missing

It would not hurt having comments in the code. I am trying to read the code and am feeling a bit wobbly.
Thanks in advance for adding them!

This is already discussed here: #24


Update socket.io dependency

Description
A specially crafted HTTP request can trigger an uncaught exception on the engine.io
This impacts all the users of the engine.io package starting from version 4.0.0, including those who uses depending packages like socket.io.
Changes

Change the version range of @socket.io from 4.1.2 to 4.5.1 in server/routerlicious/lerna-package-lock.json

The change disabled strict dependency on express.js thus typecasted express.js Request & Response in server/packages/services-utils/src/morganLoggerMiddleware.ts

Overload error in server/packages/routerlicious-base/src/alfred/app.ts thus separately call app.use(cors());

We need to change the package.json where this comes from to ensure a lower version can't be installed. If someone were to regenerate the package lock, this change could be removed.

@jenn-le That said we should think thru whether to update explicit versus in minor releases (main branch) versus major releases (next branch).  There is a chance that updating dependencies version will cause conflicting dependency versus in our user's build if the version range doesn't overlap.
Not saying we shouldn't do it for this case. It depends on how big the version jump and what is the risk it will cause problem for package users.
@tylerbutler @skylerjokiel we should write up some policy around this.

Changed socket.io in package.json to 4.5.0 and checked that the versions within the package-lock.json are correctly generated.

@andre4i - FYI. Does this version bring changes to properly propagate error codes (cases like hitting 1Mb limit)?

@vladsud it should! https://github.com/socketio/socket.io-client/issues/1518#issuecomment-1124764579
However, your last change which accounts for messages sizes (https://github.com/microsoft/FluidFramework/pull/11878) would make the point moot wrt to the payload size as it would fail sooner than socket.io even getting it. However it can definitely improve our general error flow.


Document fetcher

The acl document can now fetch documents so the groups tests all pass.
Note. I rebased the changes in master because I thought I had not merged the changes nicola made to the tests. I don't think this will affect anything since git states the changes can be merged, but if there's any problem I can create a new branch and recreate my work there.

I think everything is valid, but we should avoid sync, and start to use callbacks.


Forward Pass Residual Transformer

Greetings,
With the residual transformer, you want to predict the residual layer tokens. So I am a little bit confused as to why you take the tokens of the first $n - 1$ layers here. That is, you take the base layer + 4 residual layers. Shouldn't you take all_indices[..., 1:] to get the residual tokens?

Ah nvm, to predict the $n$-th layer, it needs to take the $n-1$ previous layers as input.


ci: use cosmwasm/optimizer to build

closes: #25

I'm also including Cargo.lock since this is a contract that builds to a wasm binary, and not a library


ARXIVNG-775 handling wildcards in msc and acm classification fields

We weren't offering a wildcard query on those fields. This checks for wildcards, and if present returns a wildcard query instead of a match.

Coverage decreased (-0.01%) to 82.849% when pulling 9ca96cc12d40afb3e01012fa5cd1c594ac968ce4 on bug/ARXIVNG-775 into 4c1f295243a033753cbd9f68db20e3115bab2bb4 on develop.


[Schema] Support TensorOrTupleTensor

Description
Per offline discussion with @zhen-jia and investigation, we put the idea of merging cast and group_cast together away for now. The reason is that although we could allow cast(data, "float16") and cast([data1, data2], "float16"), the output type of these two ops are different (tensor type and tuple type), which results in incompatibility of existing passes. Given that group_cast is currently only used by ZeRO and fixing all passes is impractical and complicate, we decided to keep group_cast for now.
On the other hand, if we will have another non-collective group op in the future, we should definitely find a systematic solution.
Meanwhile, this PR still makes some improvements to the schema system: When the argument schema is TensorTuple, support the argument type to be a tensor or a list of tensors.
Checklist

[x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented

cc @awslabs/raf-reviewer @zhen-jia @yzhliu

Thanks @hgt312


Consider supporting both compressed and uncompressed SECP256K1 public key

Background:
Currently, our SDK libraries assume uncompressed SECP256K1 keys.
Compressed key is now the new default for @noble/secp256k1 v2, instead of uncompressed keys.
Task Details:
Consider supporting both compressed and uncompressed SECP256K1 public key.
A good place to start is https://github.com/TBD54566975/dwn-sdk-js/blob/660bc91b916f3b4d4b4a9daf16851bc7675cbd30/src/utils/encryption.ts#L70
Picking Up This Issue:

If you'd like to work on this, please comment "picking this up" below, and I'll assign the issue to you

Questions:

If you need assistance or clarification, feel free to comment below.
Feeling overwhelmed? Join our #hack-together channel and collaborate with a buddy.
New to open-source? Check out our Hacktober #getting-started channel.
Leaderboard: Check your ranking after finishing this task.

Resources:

Creating a Pull Request: If you're new to GitHub and unsure how to create a pull request, follow this step-by-step guide.

Remember, communication is key! If you have any questions or face any challenges, we're here to help so please don't hesitate to reach out.
Good Luck! 🍁

picking this up

It looks that eciesSecp256k1Encrypt() does already accepts both compressed and uncompressed, because internal eciesjs.encrypt() accespts both.
const { PrivateKey, encrypt, decrypt} = await import("eciesjs");
const sk = new PrivateKey();
const data = Buffer.from("Hello world");
console.log(decrypt(sk.secret, encrypt(sk.publicKey.uncompressed, data)).toString());
// Hello world
console.log(decrypt(sk.secret, encrypt(sk.publicKey.compressed, data)).toString());
// Hello world

So, I think uncompressedPublicKey can be just renamed to publicKeyBytes.

looks that eciesSecp256k1Encrypt() does already accepts both compressed

That's good news, probably just double check if there are tests or add tests to make sure both compressed and uncompressed key paths work.
Also just did a quick search on uncompressed and found that there is also publicJwkToBytes() that can be switched to output compressed key instead.

Hey there, @hkwi! I'm just checking to see if you're still working on this issue!

Thank you for ping, sorry for delay, I created a PR.