Inconsistency in TensorFlow's Handling of Associative Operations: (a+b)*c - (a+b)*c vs. - (a*c + b*c) + a*c + b*c

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.16.0-dev20231122
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.3
Mobile device
No response
Python version
3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
This bug is also seen on nightly version of tf(2.16.0-dev20231122).
I have two TensorFlow models (Model1 and Model2) that are semantically the same but produce different outputs when executed. This discrepancy might indicate an underlying issue in TensorFlow's execution or optimization paths, particularly with XLA compilation.
class Model1(tf.keras.Model):
    def __init__(self):
        super().__init__()
        # Tensor objects (with comments for shapes)
        self.p0 = tf.Variable(params[0]) # [1] float32
        self.p1 = tf.Variable(params[1]) # [] float32

        # Layers or other Keras model objects

    @tf.function(jit_compile=True)
    def __call__(self, inp):
        # Forward pass logic using TensorFlow operations
        # inp: [52, 33, 4] : float32
        v9_0 = tf.add(self.p1, self.p0)
        v5_0 = tf.multiply(v9_0, inp)
        v0_0 = tf.negative(v5_0)
        v11_0 = tf.add(v5_0, v0_0)
        return v11_0

class Model2(tf.keras.Model):
    def __init__(self):
        super().__init__()
        # Tensor objects (with comments for shapes)
        self.p0 = tf.Variable(params[0]) # [1] float32
        self.p1 = tf.Variable(params[1]) # [] float32

        # Layers or other Keras model objects

    @tf.function(jit_compile=True)
    def __call__(self, inp):
        # Forward pass logic using TensorFlow operations
        # inp: [52, 33, 4] : float32
        v10_0 = tf.multiply(self.p0, inp)
        v12_0 = tf.multiply(self.p1, inp)
        v13_0 = tf.add(v12_0, v10_0)
        v17_0 = tf.negative(v13_0)
        v38_0 = tf.add(v17_0, v10_0)
        v39_0 = tf.add(v38_0, v12_0)
        return v39_0

Given that Model1 and Model2 are semantically the same (i.e., model1 = (p0+p1)*inp - (p0+p1)*inp and model2 = - (p0*inp + p1*inp) + p0*inp + p1*inp), I would expect them to produce identical outputs for the same input.
However, the models are yielding different results, which is unexpected and suggests a potential issue in TensorFlow's computation or optimization mechanisms.
Standalone code to reproduce the issue
from typing import Dict
import tensorflow as tf
import os
import numpy as np
params = [
tf.random.uniform(shape=[1], dtype=tf.float32),
tf.random.uniform(shape=[], dtype=tf.float32),
]
class Model1(tf.keras.Model):
    def __init__(self):
        super().__init__()
        # Tensor objects (with comments for shapes)
        self.p0 = tf.Variable(params[0]) # [1] float32
        self.p1 = tf.Variable(params[1]) # [] float32

        # Layers or other Keras model objects

    @tf.function(jit_compile=True)
    def __call__(self, inp):
        # Forward pass logic using TensorFlow operations
        # inp: [52, 33, 4] : float32
        v9_0 = tf.add(self.p1, self.p0)
        v5_0 = tf.multiply(v9_0, inp)
        v0_0 = tf.negative(v5_0)
        v11_0 = tf.add(v5_0, v0_0)
        return v11_0

class Model2(tf.keras.Model):
    def __init__(self):
        super().__init__()
        # Tensor objects (with comments for shapes)
        self.p0 = tf.Variable(params[0]) # [1] float32
        self.p1 = tf.Variable(params[1]) # [] float32

        # Layers or other Keras model objects

    @tf.function(jit_compile=True)
    def __call__(self, inp):
        # Forward pass logic using TensorFlow operations
        # inp: [52, 33, 4] : float32
        v10_0 = tf.multiply(self.p0, inp)
        v12_0 = tf.multiply(self.p1, inp)
        v13_0 = tf.add(v12_0, v10_0)
        v17_0 = tf.negative(v13_0)
        v38_0 = tf.add(v17_0, v10_0)
        v39_0 = tf.add(v38_0, v12_0)
        return v39_0

inputs = [
tf.random.uniform(shape=[10,10,10], dtype=tf.float32),
]

model1 = Model1()
model2 = Model2()

tf.config.run_functions_eagerly(True)
out1 = model1(*inputs)
out2 = model2(*inputs)
print(f'=========eager_output(version:{tf.__version__})================')
try :
    for i in range(min(len(out1),len(out2))):
        np.testing.assert_allclose(out1[i].numpy(), out2[i].numpy(), rtol=0.01, err_msg=f'at checking {i}th')
    print("XLA_eager does not trigger assertion")
except AssertionError as e:
    print("XLA_eager triggers assertion")
    print(e)
tf.config.run_functions_eagerly(False)
out1 = model1(*inputs)
out2 = model2(*inputs)
print(f'=========compiled_output(version:{tf.__version__})================')
try :
    for i in range(min(len(out1),len(out2))):
        np.testing.assert_allclose(out1[i].numpy(), out2[i].numpy(), rtol=0.01, err_msg=f'at checking {i}th')
    print("XLA_complie does not trigger assertion")
except AssertionError as e:
    print("XLA_complie triggers assertion")
    print(e)

Relevant log output
2023-11-23 17:14:24.344078: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-11-23 17:14:25.779158: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-23 17:14:28.121908: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1929] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5558 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:02:00.0, compute capability: 7.5
2023-11-23 17:14:28.122693: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1929] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 4932 MB memory:  -> device: 1, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:04:00.0, compute capability: 7.5
2023-11-23 17:14:28.123338: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1929] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 4080 MB memory:  -> device: 2, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:83:00.0, compute capability: 7.5
2023-11-23 17:14:28.123938: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1929] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 6062 MB memory:  -> device: 3, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:84:00.0, compute capability: 7.5
=========eager_output(version:2.16.0-dev20231122)================
XLA_eager triggers assertion

Not equal to tolerance rtol=0.01, atol=0
at checking 0th
Mismatched elements: 66 / 100 (66%)
Max absolute difference: 5.9604645e-08
Max relative difference: 1.
 x: array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
 y: array([[ 5.960464e-08, -2.980232e-08,  0.000000e+00, -1.490116e-08,
        -2.980232e-08,  5.960464e-08,  0.000000e+00,  5.960464e-08,
         7.450581e-09, -2.980232e-08],...
2023-11-23 17:14:28.641380: I external/local_xla/xla/service/service.cc:144] XLA service 0x950adf0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2023-11-23 17:14:28.641420: I external/local_xla/xla/service/service.cc:152]   StreamExecutor device (0): NVIDIA GeForce RTX 2070, Compute Capability 7.5
2023-11-23 17:14:28.641432: I external/local_xla/xla/service/service.cc:152]   StreamExecutor device (1): NVIDIA GeForce RTX 2070, Compute Capability 7.5
2023-11-23 17:14:28.641444: I external/local_xla/xla/service/service.cc:152]   StreamExecutor device (2): NVIDIA GeForce RTX 2070, Compute Capability 7.5
2023-11-23 17:14:28.641455: I external/local_xla/xla/service/service.cc:152]   StreamExecutor device (3): NVIDIA GeForce RTX 2070, Compute Capability 7.5
2023-11-23 17:14:28.679907: I external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:456] Loaded cuDNN version 8904
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1700730868.755509 2277729 device_compiler.h:187] Compiled cluster using XLA!  This line is logged at most once for the lifetime of the process.
=========compiled_output(version:2.16.0-dev20231122)================
XLA_complie triggers assertion

Not equal to tolerance rtol=0.01, atol=0
at checking 0th
Mismatched elements: 66 / 100 (66%)
Max absolute difference: 5.9604645e-08
Max relative difference: 1.
 x: array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],...
 y: array([[ 5.960464e-08, -2.980232e-08,  0.000000e+00, -1.490116e-08,
        -2.980232e-08,  5.960464e-08,  0.000000e+00,  5.960464e-08,
         7.450581e-09, -2.980232e-08],...

@tilakrayal Hey, I was wondering, have you replicated this issue?

Hi @Gwihwan-Go,
I have reproduced the issue in TF 2.15.0 and also latest Tensorflow version (TF 2.18.0). The output shows that the assertions in code are being triggered in both eager and compiled modes (using tf.function with jit_compile=True). This indicates that the outputs of Model1 and Model2 are not considered "close enough" based on the specified tolerance (rtol=0.01). Try increasing the relative tolerance (rtol) in assertion. Could you please refer this gist file.
Thank you.


Add support for picking time as well?

Great work so far!
A couple of suggested improvements:

the ability to pick times (timePicker: true; timePickerIncrement: x)
the ability to select an output format. It handles being given an ISO8601 input (Ember standard), but outputs a JS standard date.

Are you sure an ISO 8601 string as input is working? As far as I have tested and unterstood the code everything else than a Date object is not supported as input. https://github.com/soulim/ember-cli-bootstrap-datepicker/blob/master/addon/components/datepicker-support.js#L110-119 tests the type of input. If it's not a Date object or an array (multiple option) value is set to null. If you use multiple option and use anything else than a Date object you run in a TypeError because method setHours does not exist.
If you need to convert the Date object to another format you should use a computed property as value.
If you need to select dates with specified times you should consider using ember-bootstrap-datetimepicker.

@nesevis there'are no plans for time picking feature. Strictly speaking this component is just a wrapper around awesome bootstrap-datepicker library. So time picking might be available when someone adds it to the bootstrap-datepicker.
@jelhan is right - if you need time picking functionality it's better to play with ember-bootstrap-datetimepicker.
And again @jelhan is totally correct. The component uses Javascript native Date objects, not ISO8601 strings.
Thank you @jelhan for help and support! :heart:

I close this issue because time picking functionality doesn't belong to the component itself.


Temperature sensor

Hi
Is it possible to have value of temperature sensor from amazon device? Dot and dot plus.
Instead of a weather station, for interior of house it's a good alternative!
Thank you for development.

Yes, dupe of #197 . Likely not to do it though since it would require polling the sensor.

I've just updated my alexa media player, I have 2 4th gen echos, the temperature sensor is showing for one but the other one isn't.
Any suggestions as to why it's only added the entity for one device?

I've just updated my alexa media player, I have 2 4th gen echos, the temperature sensor is showing for one but the other one isn't.
Any suggestions as to why it's only added the entity for one device?

Hi
How do you have this in HA ?


Type safe project accessor generation fails if root project and subproject names are the same

I've got a multi-project build. The root project is called mc-java. One of its direct subprojects is called mc-java as well.
When enabling the type-safe project accessors (by adding enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") in settings.gradle.kts), the build fails with an exception:
FAILURE: Build failed with an exception.

* What went wrong:
org.gradle.api.internal.catalog.GeneratedClassCompilationException: Unable to compile generated sources:
  - File RootProjectAccessor.java, line: 39, method getMcJava() is already defined in class org.gradle.accessors.dm.RootProjectAccessor
> Unable to compile generated sources:
    - File RootProjectAccessor.java, line: 39, method getMcJava() is already defined in class org.gradle.accessors.dm.RootProjectAccessor

If I change the name of the root project, the build passes.
Expected Behavior
The build passes and the type-safe project accessors are generated.
Current Behavior
An exception.
Your Environment
Gradle v7.2.

Closing as duplicate of #16608


tart: init at 1.5.0

Description of changes

macOS VMs on Apple Silicon to use in CI and other automations https://tart.run
Resolves #228159
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

As a note 0.38.0 from 2023-02-20 is their last AGPL v3.0 release
Probably no benefit packaging that version too but I wonder if anyone would fork it in the future

Thanks for reviving this PR. I found later on that I had an external dependency that was installed outside of nix that probably would need to be included too https://github.com/cirruslabs/softnet

Softnet looks like it requires a setuid-bit which usually makes things more complicated. On NixOS this is usually done with a module that creates a wrapper program (security.wrappers.<name>.setuid) but I'm not sure if there's a nix-darwin equivalent. The most generic way would probably to have the user install it outside nix as you had before.

I've added softnet as an optional dependency. It's from a release binary for now but I will keep an eye out for the Darwin SDK bump (https://github.com/NixOS/nixpkgs/pull/229210) and rewrite it as a source-build afterwards.

@khaled would you please give this a test and let me know if there's anything that doesn't meet your needs yet? :)


Allow manually adding canonical and amphtml links

Since a user might have a very custom AMP set up, this allows them to manually handle it

I don't think we should land this change based on

Since a user might have a very custom AMP set up

Ideally an issue is created first that explains the exact issue this one user had.

I'm also think that we should have possibility to add canonical manually. Here's my AMP setup:

An AMP only page with config : {amp: true} with route "/amp/notowania/{slug}"
An Non-AMP page with route "/notowania/{slug}"

and here's my issue..
AMP docs says that AMP page should have rel="canonical" pointing to Non-AMP page if exists (like in my case) but because my amp page have config = {amp: true} NextJS framework thinks that it's one and only page that i have and not allowing me to change AMP's canonical.
Error message: "Found conflicting amp tag "link" with conflicting prop rel="canonical" in /amp/notowania/[slug]"


does ticdc support specify column for dispatching to kafka partition？

Before asking a question, make sure you have

[X] Searched existing Stack Overflow questions
[X] Googled your question
[X] Searched open and closed GitHub issues
[X] Read the documentation

What is your question?
i wanna to use custom table column for dispatching to kafka partition，how can i do？
reference https://docs.pingcap.com/zh/tidb/stable/manage-ticdc
i found ticdc currently only support ts,table and rowid  mode

Distribution by specific columns is not supported, in what case would you encounter this requirement?

thanks  for reply
for example:  support we hava follow table structure
create table order(id int primary key, device_id int,  orders_id int)

for business，we should guarantee same device_id are in order, so we need dispatch same device_id to the same kafka partition


Dark themes use black text in editor window on MacOS 11

Azure Data Studio Version: 1.24.0
Azure Data Studio Insiders Version: Version: 1.25.0-insider

Steps to Reproduce:

Update to MacOS 11 Big Sur
Activate a dark theme in Azure Data Studio

I've tried a number of dark themes and they all produce the same results. Switching to a light theme is a workaround, but I didn't see this reported anywhere so hopefully it's helpful.
Dark Azure Data Studio (Default Dark)

Light Azure Data Studio (Default Light)

@patrickserrano is this a remote machine or a local one?

@aasimkhan30 this is local on a 16" MacBook Pro. It looks like the issue is actually with my font Source Code Pro. I'm basing that on this issue I found today https://github.com/adobe-fonts/source-code-pro/issues/250 which I found from this VS Code issue https://github.com/microsoft/vscode/issues/100840
Installing an updated version of Source Code Pro with the SVG table removed looks to have resolved the issue so I'm going to close this. Thanks for taking a look though :)


MXNet initialization with Constant, One or Zero returning errors

I am using mxnet initializer.Mixed to provide a mixed initialization, and get an error whenever I try to use Constant, One or Zero.
Examples below:

net =
init = mx.initializer.Mixed(['fcout_bias', '.*'], [mx.init.Constant(-10.0), mx.init.Normal(0.01)])
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Constant'
'
Same error with mx.init.One or Zero

But if I try

init = mx.initializer.Mixed(['fcout_bias', '.*'], [mx.init.Uniform(10.0), mx.init.Normal(0.01)])

no error. Have the other initializers not been implemented in the MXNet version present in the AMI How do I make sure I have all the latest features?
Environment info
Operating System:
Ubuntu
Compiler:
AWS EC2 Deep Learning AMI
Package used (Python/R/Scala/Julia):
Python
Python version and distribution:
Python 2.7.6
Error Message:
AttributeError: 'module' object has no attribute 'Constant'
Minimum reproducible example

all_layers = net.get_internals()
all_layers.list_outputs()
['data', 'fc1_weight', 'fc1_bias', 'fc1_output', 'ac1_output', 'kl1_moving_avg', 'kl1_output', >>>'dl1_output', 'fcout_weight', 'fcout_bias', 'fcout_output', 'acout_output', 'softmax_label', >>>'ce_preds']
init = mx.initializer.Mixed(['fcout_bias', '.*'], [mx.init.Constant(-10.0), mx.init.Normal(0.01)])
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Constant'

The error message says the init module does not have Constant. Maybe you happen to be using a very old version of MXNet?

I'm using what comes as the default in the DeepLearning AMI. Is there a way
I can upgrade that?
On Mon, May 8, 2017 at 8:25 PM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

The error message says the init module does not have Constant. Maybe you
happen to be using a very old version of MXNet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300051170, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLAZXwj2lU3bYQLOlHKbpHwo3lU3jks5r39yagaJpZM4NUlJP
.

What is your mx.__version__?

0.9.3
On Mon, May 8, 2017 at 9:12 PM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

What is your mx.version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300056463, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLAdgMxbN_avoCSMDi2ZN_fHrp27Qks5r3-eegaJpZM4NUlJP
.

Isn't this the latest release? Would you still suggest I update?
On Mon, May 8, 2017 at 9:13 PM, Nikhil Rao<EMAIL_ADDRESS>wrote:

0.9.3
On Mon, May 8, 2017 at 9:12 PM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

What is your mx.version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300056463, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLAdgMxbN_avoCSMDi2ZN_fHrp27Qks5r3-eegaJpZM4NUlJP
.

Yes, it seem to be the latest stable release. However, mx.init.Constant was added after that. You can try to upgrade to the pre-release v0.9.5 or if the only thing you need is mx.init.Constant, you could probably just copy that piece of code from the latest github code. https://github.com/dmlc/mxnet/blob/master/python/mxnet/initializer.py#L346

I replaced the file with the one you linked to, but get the same error
still.
btw when i try to re-compile, i get another error after this (after git
pull and git submodule):
sudo make clean
Makefile:35: mshadow/make/mshadow.mk: No such file or directory
Makefile:36: /home/ubuntu/src/mxnet/dmlc-core/make/dmlc.mk: No such file or
directory
Makefile:131: /home/ubuntu/src/mxnet/ps-lite/make/ps.mk: No such file or
directory
make: *** No rule to make target `/home/ubuntu/src/mxnet/ps-lite/make/ps.mk'.
Stop.
On Tue, May 9, 2017 at 9:45 AM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

Yes, it seem to be the latest stable release. However, mx.init.Constant
was added after that. You can try to upgrade to the pre-release v0.9.5 or
if the only thing you need is mx.init.Constant, you could probably just
copy that piece of code from the latest github code.
https://github.com/dmlc/mxnet/blob/master/python/mxnet/initializer.py#L346
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300227155, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLOqite3E-28rGNf7tlb6KGNPtz_Lks5r4JgqgaJpZM4NUlJP
.

Can you run
git submodule init
git submodule update --recursive

and make again?

did it, still the same error. Would you like me to send you the logs from
make?

Can you check mx.__version__ to make sure you are running the latest version that you compiled? (should be 0.9.5)

nope. still 0.9.3
On Tue, May 9, 2017 at 11:09 AM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

Can you check mx.version to make sure you are running the latest
version that you compiled? (should be 0.9.5)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300253637, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLPRjk87QGKal0bHdX90qBIqAb8xkks5r4KvMgaJpZM4NUlJP
.

so is this some issue with make?
On Tue, May 9, 2017 at 11:21 AM, Nikhil Rao<EMAIL_ADDRESS>wrote:

nope. still 0.9.3
On Tue, May 9, 2017 at 11:09 AM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

Can you check mx.version to make sure you are running the latest
version that you compiled? (should be 0.9.5)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300253637, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLPRjk87QGKal0bHdX90qBIqAb8xkks5r4KvMgaJpZM4NUlJP
.

I think it is the way that you are compiling somehow does not overwrite the system wide existing code. You might be importing from some other sources, and that is also why when you directly replace the initializer.py, it does not work. I have not used the AMI environment, maybe you will need to figure out where the default mxnet is located in this environment.

OK. Let me retry the whole thing but with installing MXNet on a GPU from
scratch
thanks
On Tue, May 9, 2017 at 6:03 PM, Chiyuan Zhang<EMAIL_ADDRESS>wrote:

I think it is the way that you are compiling somehow does not overwrite
the system wide existing code. You might be importing from some other
sources, and that is also why when you directly replace the initializer.py,
it does not work. I have not used the AMI environment, maybe you will need
to figure out where the default mxnet is located in this environment.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/issues/6166#issuecomment-300344293, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASlOLIiICf9tdcmC2_9lNdSpvIPgHn69ks5r4QzYgaJpZM4NUlJP
.


Clean up I/O routines

Currently, I/O is strewn around this code, base and we keep reinventing the wheel as a result. We are using many different ways of interacting with the filesystem and GCS. These include

gcsfs/fsspec
vcm.cloud.gcs (wrapper routines around the basic google python api)
vcm.cloud.gsutil (wrappers around gsutil)
vcm.cloud.remote_data (some gcsfs and intake).
vcm.cubedsphere.io (manual open_mfdataset and ds.to_netcdf calls). Moreover, combine_subtiles should probably be moved to vcm.combining.
vcm.convenience many I/O functions using a random assortment of utilties.  Some unused and some not.
some of the DataFlow pipelines use Apache Beams fileio API, which is similar in flavor to fsspec.
vcm.fv3_restarts uses fsspec.

Obviously this situation is much more complicated than the functionality we need. I think we should develop a coherent API for I/O operations. Some of these are specific to GFDL data (e.g. tiles/subtiles) others are more general purposes (e.g. opening a remote netCDF file lazily).  I think intake  is designed to solve this problem, but we can always write our own custom solutions.

I think vcm.convenience.get_root should be deleted.

Still a bit of an issue imo.


Modified Consumer image name kubnetes-kafka -> kubernetes-kafka

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remember to delete this note before submitting your pull request.
For pull requests on 1.17 Features: set Milestone to 1.17 and Base Branch to dev-1.17
For pull requests on Chinese localization, set Base Branch to release-1.16
Feel free to ask questions in #kubernetes-docs-zh
For pull requests on Korean Localization: set Base Branch to dev-1.16-ko.<latest team milestone>
If you need Help on editing and submitting pull requests, visit:
https://kubernetes.io/docs/contribute/start/#improve-existing-content.
If you need Help on choosing which branch to use, visit:
https://kubernetes.io/docs/contribute/start#choose-which-git-branch-to-use.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@jessfraz  Please review the Pull request.

content/en/blog/_posts/2017-09-00-Kubernetes-Statefulsets-Daemonsets.md contains wrong image name( kubnetes-kafka ) hence modified to correct image name( kubernetes-kafka).


Getting search option to work properly

Can you give an example of how line 7 in the tmdb.js file should look if using the /search/movie method? I'm having some trouble getting it to pull data from the site.
As an example, I have this for line 7 in my code: call: function(/search/movie, ?=title, success, error)
an I keep getting an error saying it has an unexpected string.

The url parameters you give when you tmdb.call must be in JSON format.
So for example, when you're looking for the Star Wars films :
tmdb.call('/search/movie',
  {
    "query": "Star Wars",
    "include_adult": false
  },
  success,
  function(e){
    console.error("An error happened : "+e);
  }
);

I'm still getting the same error at tmdb.call('/search/movie',
Is this from me working on localhost?
And I wanted to ask, how would you set up the query so it takes the value from a submitted search? Would it be something like this:
{
"query":$(#search).val(),
"include_adult": false
}

I apologize if my answers are trivial - this is my first API site so I'm having a little bit of trouble.

Did you set your API key line 3 in tmdb.js ? If not, you will only get HTTP 401 Errors (Unauthorized).
You can request an API key on https://www.themoviedb.org by crating an account, or you can browse http://docs.themoviedb.apiary.io/ to try the API without an API key (by changing the uri in tmdb.js with the uri for a Mock Server)
For your second question, yes, it will be this way to get the value of a text input.
If you have any questions left, I'm still here ;)

Thanks for being so patient with me. Yes, I have an API key set on line 3. I'm also running the site off of http-server that I started in the Command Console. When I run the site, it asks me if I;m serving from the file system and if I want to add files to my workspace. Maybe this is why I keep getting the error. Any ideas?
I'll see if I can pull information from the Mock Server. I do have an API key so, is this how I would set up  lines 1-17 without the api key?
(function() {
	window.tmdb = {
		"api_key": " ",
		"base_uri": "http://private-anon-b8582645b-themoviedb.apiary-mock.com/3/search/movie",
		"images_uri": "http://image.tmdb.org/t/p",
		"timeout": 5000,
		tmdb.call('/search/movie',
			{
				"query": $(#search).val(),
				"include_adult": false
			},
			success,
			function(e){
				console.error("An error happened: " +e);
				}
			);
		{

Are you modifying the content of tmdb.js (except the api_key and URIs ? You don't have to, it will break everything. ;)
Let's start from zero.
Download again tmdb.js to be sure that you got an unmodified file.
Check that you have this included in your HTML file (accord the path for the file):
<script src="tmdb.js"></script>

And then you can use tmdb.call inside your HTML file, like this :
<script>
tmdb.call('/search/movie',
  {
    "query": $(#search).val(),
    "include_adult": false
  },
  success,
  function(e){
    console.error("An error happened: "+e);
  }
);

function success(e){
  alert("I got results, check console.");
  console.log(e);
</script>

To answer your first question, yes I was editing the tmbd.js file, so that explains the first set of errors I was getting. I went back and followed what you suggested from step 1 and added the script to my html.  I'm still getting an error and have no idea why. Here's a screenshot of what I'm getting - hopefully this will help with the confusion.

This is a syntax error, line 111 (?), but I can't see from here. I need to see the code :)

Yeah hang on let me move the screen up and zoom in...
Hopefully this will help. Sorry about that - didn't know how well the image would show the error.

I don't use jQuery, but I think it must be $("#search") instead of $(#search)

Than you'll have to attach this code (tmdb.call part) to the submit button.

Ok! It was the jQuery part, and some syntax errors, but I was able to get everything set up properly with no errors. Sadly I'm still getting the "Serving from file system" alert. Really not sure what that's about. Any ideas? Here's a screenshot of what I'm talking about.

Ah ok, I got it now. It's a Chrome feature, a built-in code editor for web languages.
It's not a problem. I thought you were saying at start that you were on file:// and not with an http server (which can cause AJAX problem sometimes) ;)

No I'm on http-server. glad to know it isn't something I'm doing wrong. I'll try things out on file:// and hope for the best. Thanks for all your help! :)

What I said was confused
On file:// there can be Ajax problem, not when you're using an Http server.
So stay with localhost and your server.
Good luck with your project ;-)


clearer instructions for setting up server

Adds more info about how to setup server and run the app.

Thanks! I'll tweak the README in the next update. Working on collision detection today :)

@jeffbeene  Sorry I accidentally made a PR on your repo instead of my fork. But feel free to merge it from my fork! I can also collaborate directly on your repo if its ok with you.

No worries, I'll make a separate commit in my own repo 👍


Use slots for DOFs

Reduces the memory footprint of DOFs objects

I'm curious if this makes a measurable difference. Dofs are usually no more than a few hundred floats.


Template string highlighting issue

I have a method call that uses a long template in one arg string so that I have to split the args of the call onto separate lines. Notice what happens to the template string highlighting when I do that:

You can see the back-ticks are green, but the text should also be green as it is in other template strings.

Please report this on the appropriate language package, eg atom/language-javascript for JavaScript.


install: Two rootfs cleanups

install: Reduce usage of absolute path for rootfs
In the install flow we have both rootfs and rootfs_fd which
hold the physical root. Using fd-relative accesses where we
can provides a lot of advantages, so switch most uses over
to the file descriptor.
Signed-off-by: Colin Walters<EMAIL_ADDRESS>
install: Rename rootfs -> physical_root
In the install flow we juggle three file systems in general:

The container/host root
The physical root
The deployment root

"rootfs" in theory could be any of those three. In the install code
it's the physical (target) root, so rename the variable
to clarify.
Signed-off-by: Colin Walters<EMAIL_ADDRESS>

                      × Assignment operations require a variable.
                        ╭─[/var/tmp/tmt/run-002/plans/test-20-local-upgrade/tree/tests/booted/test-image-pushpull-upgrade.nu:86:5]
                     85 │     let booted_digest = $booted.imageDigest
                     86 │     print booted_digest = $booted_digest
                        ·     ─────────┬─────────
                        ·              ╰── needs to be a variable
                     87 │     # We should already be fetching updates from container storage
                        ╰────
                      help: try assigning to a variable or a cell path of a variable

Hmm, I think the nushell update here in EPEL broke our test scripts. Looking at this

https://github.com/nushell/nushell/issues/14333 is also related to this I think


ANR -> trySendBlocking is incorrectly called in callBackFlow

I think trySendBlocking is incorrectly called here: https://github.com/alexstyl/contactstore/blob/1addc3efad4b9abf6d9e8210a9aa98e2f4d9c255/library/src/main/java/com/alexstyl/contactstore/UriFlow.kt
I already saw couple of ANR's in production, probably when a user removes a group of contacts at once. Then onChanged gets() called frequently in a row. Tested it with a log statement.
To resolve this we should check if the Channel is open, and if so call trySend(). PR to fix this: https://github.com/alexstyl/contactstore/pull/20

Many thanks for the contribution @rbenza.
I'm planning of shipping a new version earlier in the day with this changed included.
Closing this as resolved.

Great, you're welcome


Add a Jest setup

Issues
Closes #14
Closes #9 (was removed right after it was merged)
Description
This is solely to get the structure in and start raising the questions/patterns around it. Included a few unit tests around pure functions to kickstart. We can increment the structure later on by introducing RTL to test component rendering, but would be an overkill for this PR.

Add tests for isUpperCase, getNewHsl, getGradientType, getDegrees and gradientParser
Adjust gradientParser to accept RGB colors in the format of rgb(<r> <g> <b> / <a>)

@jourdanrodrigues Thanks for putting this together, I think it is a great idea. The project has gotten a lot more attention than I initially expected and it is probably passed time to start putting some of these things in place. Appreciate the help and looking forward to getting everything updated.


Update deye_2mppt.yaml

Ha say by w is wrong by energy
W need Power not energy

Sure. It's a typo. 👍


[ON HOLD][#167506774] Buildpack upgrade 11 September '19

What
Upgrades the buildpacks, and bumps the version of paas-aiven-broker to a version that is supported by the upgraded Go buildpack
How to review

Code review
Run it down your pipeline

Once you've approved

Send out the tenant comms email
Put a time-based blocker on the story in Pivotal

Who can review
Anyone

Ran this down my pipeline, all good, need to wait until 11th sept


pkg/trace/api: name the OOM kill metric datadog.trace_agent.receiver.oom_kill

Original name might be offending.

Original name might be offending.

Oh yeah good catch. I didn't even think of that.


release(testnet): Update miner to latest GA 2<IP_ADDRESS>

Why

Update miner to latest GA 2<IP_ADDRESS>
How

Bump miner container and version numbers
References

https://github.com/NebraLtd/hm-miner/commit/31eeca0c7d85eeaa8bac799f943217f5f3541fbd
Relates-to: #255

Pushing to testnet


Forward JS errors to Ruby

See if uncaught JS errors can be forwarded to Ruby console.

Long time ago I used window.onerror to do so.

It's best to catch all and forward what you cannot handle. window.onerror has often empty parameters, but I think in FF and Webkit you get now the original error object as last parameter, including stack. I had to deal with it also in my Console+.

Yea, I've caught errors before, I used something like this:
window.onerror = function(message, file, line, column, error) {
  try
  {
    // Not all browsers pass along the error object. Without that it's not
    // possible to get full backtrace.
    // http://blog.bugsnag.com/js-stacktraces
    var backtrace = [];
    if (error && error.stack)
    {
      backtrace = String(error.stack).split("\n");
    }
    else
    {
      backtrace = [file + ':' + line + ':' + column];
    }
    var data = {
      'message' : message,
      'backtrace' : backtrace,
      'user-agent': navigator.userAgent,
      'document-mode': document.documentMode
    };
    Sketchup.callback('Window.js_error', data);
  }
  catch (error)
  {
    debugger;
    throw error;
  }
};

As Andreas mentions, not all browsers hand over the backtrace. For one project where I used Vue I assigned my own custom error handler that would give me nice backtraces. I left window.onerror in place as a fallback.
Vue.config.errorHandler = sketchupErrorHandler;

I'm currently hooking refactoring the TestUp dialogs with Vue so I'll probably use the same approach.


not as beautiful as blur-admin project

this UI  is urgly,not as good as blur-admin project  How do you think?

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

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

Issue description
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

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

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

@wuzhenda
Beauty is in the eye of the beholder.
I think NGX Admin is better then blur admin, but....
There is still some work to be done. if you are a programmer you can overcome the flaws in ngx admin, and make it work for you.

Overall I think it's great looking.  However, a dark theme that's clean and flat like corporate would be awesome.


Fix sub-heading markdown

The title 'Running specs' needed a space for it to properly show up as a title via markdown.
The irony of fixing a typo in a readme - while using a branch whos name is misspelled due to a typo is not lost on me.

Looks like this is a duplicate of #20

Gah - I should have looked at the open PRs.  Closing.


Improve logging and block direct requests to server IP

Tidied up logs
Trimmed down request latency
Simplified colours
Implemented blocking of requests to the server's IP (during testing a spambot started hammering me!) - using http://checkip.amazonaws.com at the moment, but could use another service or just use this as a fallback if it is not supplied as a parameter?

Hey @BenHarris! Thanks for the PR! Maybe instead of calling on the external, we can just do a check to see if the request was made to an IP address and fail out? Also, mind adding some documentation to the round functions?

Sure. I’m not 100% happy with the rounding stuff. Pretty sure there must be a simpler way. Will see what I can do 😀.
I had a few other thoughts about using the external IP, but can switch it to just detect if it’s an IP for now.

Just realised I wasn't getting Github emails 🤦♂. Have updated that now. Also implemented an initial version of the log detail functionality. It might be worth always logging the full version to the server, but it's a handy option for now.

Sorry for all of the noise! Looks like CI is setup properly now! Would you mind taking care of those issues and then we can looking at getting things moving?

I'm working on a much more flexible implementation of this now

@antoniomika let me know what you think!
Realised the log format wasn't that useful when it was the same for client and server, so created two log formats for client and server.

@BenHarris Awesome! I'll do a review on it real quick!

There was some weirdness when using newlines directly in the log definition, hence using {newline}

Closing for now as there have been quite a few changes in the v1 branch that likely solve many of these issues


Change order of cases in supported

Changes in this PR
Cases in supported are now ordered by  created_at: :desc, ie newest cases first, rather than by the date of the latest interaction.

 Change order of cases in case lists to be by Case number.


value: livenessProbe.failureThreshold never used

In https://github.com/SonarSource/helm-chart-sonarqube/blob/master/charts/sonarqube-lts/templates/sonarqube-sts.yaml
The  key : LivenessProbe.failureThreshold  is never set.

Hi @fredbzh56 ,
thanks for the report. it seems to be missing from all templates :eyes:
I created DOCKER-47 to track this


Improve sort to BatchedTensor(Seq)

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (16446af) 100.00% compared to head (649a2b9) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #374   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           17        17
  Lines         1698      1699    +1
  Branches       179       179
=========================================
+ Hits          1698      1699    +1

Files Changed
Coverage Δ

src/redcat/tensor.py
100.00% <100.00%> (ø)

src/redcat/tensorseq.py
100.00% <100.00%> (ø)

src/redcat/types.py
100.00% <100.00%> (ø)

src/redcat/utils/random.py
100.00% <100.00%> (ø)

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


fix flake8 warnings

Current coverage is 66.29% (diff: 100%)

Merging #1755 into master will not change coverage

@@             master      #1755   diff @@
==========================================
  Files            54         54
  Lines          6195       6195
  Methods           0          0
  Messages          0          0
  Branches       1225       1225
==========================================
  Hits           4107       4107
  Misses         1868       1868
  Partials        220        220

Powered by Codecov. Last update 26c2de1...24398ad

Thanks!


Add navBarTitleImage prop

Sometimes we need an image rather than a text on the title. This pull request adds a prop and the lib decides to show an image or a text title.
@aksonov  re-open pull request #1634

@aksonov I did merge with master, but build keeps failing. Did I make something wrong?

@filipemonteiroth Check eslint warnings there ("Details"):
/Users/travis/build/aksonov/react-native-router-flux/src/NavBar.js
52:24  error  Missing trailing comma                           comma-dangle
464:7   error  'state' is not defined                           no-undef
466:9   error  'state' is not defined                           no-undef
474:1   error  Line 474 exceeds the maximum line length of 100  max-len
474:9   error  Empty components are self-closing                react/self-closing-comp
477:6   error  Missing semicolon                                semi
517:1   error  Line 517 exceeds the maximum line length of 100  max-len
517:10  error  Do not nest ternary expressions                  no-nested-ternary

@aksonov I haven't seen that logs. Now everything looks ok. Thanks!


Bootloader

That's great - thanks! When you're tweaking stuff like this, please could you bump the version and ChangeLog? I'll do it now anyway though.

sure. did you forgot to merge this? I see you already bumped version. https://github.com/espruino/BangleApps/commit/ca0dcb53d7d83db20deec3022c54da0c0638815e

added additional optimisation.

Yep - sorry about that...


Can you control the probability?

Can you control the probability? how to set？

Nope, don't have such function yet.
I think it's unfair for users.


Allow customizing tag NAME like tag_message

We prefix all our git tags that are for versions with v, so a tag for 0.8.5rc51 would be v0.8.5rc51.
Currently it's possible to customize the tag_message but it doesn't seem to affect the tag name.
$ bumpver update --tag-num
INFO    - fetching tags from remote (to turn off use: -n / --no-fetch)
INFO    - Old Version: 0.8.5rc51
INFO    - New Version: 0.8.5rc52
INFO    - git commit --message 'bump version 0.8.5rc51 -> 0.8.5rc52'
INFO    - git tag --annotate 0.8.5rc52 --message 'v0.8.5rc52'  # both should be v0.8.5...
INFO    - git push origin --follow-tags 0.8.5rc52 HEAD         # should be v0.8.5...

Hi @pirate
I'm not sure I follow. If you simply prefix your version_pattern with a v, does that not work?
$ bumpver test 'v0.8.5rc51' 'vMAJOR.MINOR.PATCH[TAGNUM]' --tag-num
New Version: v0.8.5rc52
PEP440     : 0.8.5rc52

Does your configuration look something like this?
[bumpver]
current_version = "v0.8.5rc51"
version_pattern = "vMAJOR.MINOR.PATCH[TAGNUM]"


[SDK] Change SKThings.customPlaygroundQuickLook to return a non-optional image

While squashing some warnings, looks like the warning in this case is flagging a genuine error, and the intention is to use an empty image in case of nil so that you don't see Some { stuff } in the quick look when there's something to see.
Since this is a change with actual functional impact, splitting into a separate PR.

@swift-ci please test


[Question] The best way to consume latest message if there are no unread messages.

What will be the best way to create consumption of messages in such way that on application startup:

If there are no messages in topic – do not consume;
If there are unread messages in topic – consume them;
If there are messages in topic and all of them were read already – consume the latest of them.

Is it possible to implement this behavior using only one consumer?
Is it possible to implement this behavior without reading metadata through adminClient? (it's okay if this would the best solution, just curious)

[ 1.0.0 ] Confluent.Kafka nuget version.

you can call the consumer's QueryWatermarkOffsets method. if you're using subscribe, it's possible to call this in the partitions assigned handler using the passed in consumer instance, and return a collection of TopicPartitionOffsets to specify the start offsets.

Thanks for the idea, seems to work as intended. My implementation:
var consumer = new ConsumerBuilder<Null, string>(config)
                .SetPartitionsAssignedHandler((c, tps) =>
                {
                    var partitionOffsets = c.Committed(tps, TimeSpan.FromSeconds(10));
                    var watermarkOffsets = tps.Select(tp => c.QueryWatermarkOffsets(tp, TimeSpan.FromSeconds(10)));
                    var offsets = watermarkOffsets.Zip(partitionOffsets, (watermarkOffset, topicPartitionOffset) =>
                    {
                        if (topicPartitionOffset.Offset.IsSpecial || watermarkOffset.High.IsSpecial)
                        {
                            return topicPartitionOffset.Offset;
                        }

                        var lastTopicOffset = watermarkOffset.High - 1;
                        var lastCommittedOffset = topicPartitionOffset.Offset - 1;

                        if (lastTopicOffset == 0)
                        {
                            return new Offset(0);
                        }
                        if (lastCommittedOffset == lastTopicOffset)
                        {
                            return new Offset(lastCommittedOffset);
                        }
                        return new Offset(lastCommittedOffset + 1);
                    });

                    return tps.Zip(offsets, (partition, offset) => new TopicPartitionOffset(partition, offset));
                })
                .Build()


pdf file can be published even if it has not been previewed

Upload a pdf file in sharepoint
Select the newly uploaded file to sharepoint
Hit Publish

This leads to a scary error message:

This could be avoided by not letting the user publish the file if it has not been previewed first.
Side note: if you select a mix of previewed / non-previewed files, more feedback need to be given to the enduser.

:tada: This issue has been resolved in version 6.42.0 :tada:
The release is available on:

GitHub release
v6.42.0

Your semantic-release bot :package::rocket:


Excellent work! Looking forward your code.

When would you release your code? It has been 3 months since you open this git repository.

Released. Thanks for waiting


corner pooling and torch.cummax

Hi, I notice that you are adding corner pooling module as a new feature. But in PyTorch 1.5, a new function named torch.cummax is introduced, which I think behaves just like corner pooling. As a known fact that corner pooling runs at a slow speed, would torch.cummax runs faster?

Thanks for the reference. @tianyuandu may have a look.

Hi @Scalsol , thanks for your suggestion. I found the output of torch.cummax and our corner pool is same, but the grad is mismatching.
Here is the verification script:
import torch

from mmdet.ops import CornerPool

if __name__ == '__main__':
    input_tensor = torch.tensor([[[[0, 0, 0, 0, 0], [2, 1, 3, 0, 2],
                                   [5, 4, 1, 1, 6], [0, 0, 0, 0, 0],
                                   [0, 0, 0, 0, 0]]]]).float().cuda()
    cum_tensor = input_tensor.detach().requires_grad_()
    pool_tensor = input_tensor.detach().requires_grad_()

    pool = CornerPool('bottom')
    pool_out = pool(pool_tensor)
    pool_loss = pool_out.sum()
    pool_loss.backward()

    cum_out = torch.cummax(cum_tensor, dim=2)[0]
    cum_loss = cum_out.sum()
    cum_loss.backward()

    print("pool_out:")
    print(pool_out)
    print("cum_out:")
    print(cum_out)
    print("pool_tensor's grad:")
    print(pool_tensor.grad)
    print("cum_tensor's grad:")
    print(cum_tensor.grad)

and the output is:
pool_out:
tensor([[[[0., 0., 0., 0., 0.],
          [2., 1., 3., 0., 2.],
          [5., 4., 3., 1., 6.],
          [5., 4., 3., 1., 6.],
          [5., 4., 3., 1., 6.]]]], device='cuda:0',
       grad_fn=<BottomPoolFunctionBackward>)
cum_out:
tensor([[[[0., 0., 0., 0., 0.],
          [2., 1., 3., 0., 2.],
          [5., 4., 3., 1., 6.],
          [5., 4., 3., 1., 6.],
          [5., 4., 3., 1., 6.]]]], device='cuda:0', grad_fn=<CummaxBackward>)
pool_tensor's grad:
tensor([[[[1., 1., 1., 2., 1.],
          [1., 1., 4., 0., 1.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')
cum_tensor's grad:
tensor([[[[1., 1., 1., 1., 1.],
          [1., 1., 4., 1., 1.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')

Do you have any opinion about this?

@tianyuandu It seems that the gradient difference occurs when two elements have the same value. When the current value is the same as the max value, CornerPool prefers to use the original index, while cummax would update the index. I think this assumption could be easily verified. In my opinion both implementation are current.
BTW, as the values of different position in a feature map could hardly be the same when training the network, I think this gradient difference would not influence the final result.
And one more thing, will torch.cummax runs faster?

@tianyuandu It seems that the gradient difference occurs when two elements have the same value. When the current value is the same as the max value, CornerPool prefers to use the original index, while cummax would update the index. I think this assumption could be easily verified. In my opinion both implementations are correct.
BTW, as the values of different position in a feature map could hardly be the same when training the network, I think this gradient difference would not influence the final result.
And one more thing, will torch.cummax runs faster?

I think your assumption is correct. I expand the input tensor to
tensor([[[[0, 0, 0, 0, 0],
          [0, 0, 0, 0, 0],
          [2, 1, 3, 0, 2],
          [2, 1, 3, 0, 2],
          [5, 4, 1, 1, 6],
          [0, 0, 0, 0, 0],
          [0, 0, 0, 0, 0]]]]

and the grad of two ops are:
corner_pool:
tensor([[[[2., 2., 2., 4., 2.],
          [0., 0., 0., 0., 0.],
          [2., 2., 5., 0., 2.],
          [0., 0., 0., 0., 0.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')

cummax:
tensor([[[[1., 1., 1., 1., 1.],
          [1., 1., 1., 1., 1.],
          [1., 1., 1., 1., 1.],
          [1., 1., 4., 1., 1.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')

I'm also checking whether using different op would effect on final mAP, I will reply once I get the result. And using torch.cummax could get ~10% speedup on V100(from 1.86s/iter to 1.68s/iter, img_per_gpu=6).

@tianyuandu It seems that the gradient difference occurs when two elements have the same value. When the current value is the same as the max value, CornerPool prefers to use the original index, while cummax would update the index. I think this assumption could be easily verified. In my opinion both implementations are correct.
BTW, as the values of different position in a feature map could hardly be the same when training the network, I think this gradient difference would not influence the final result.
And one more thing, will torch.cummax runs faster?

I think your assumption is correct. I expand the input tensor to
tensor([[[[0, 0, 0, 0, 0],
          [0, 0, 0, 0, 0],
          [2, 1, 3, 0, 2],
          [2, 1, 3, 0, 2],
          [5, 4, 1, 1, 6],
          [0, 0, 0, 0, 0],
          [0, 0, 0, 0, 0]]]]

and the grad of two ops are:
corner_pool:
tensor([[[[2., 2., 2., 4., 2.],
          [0., 0., 0., 0., 0.],
          [2., 2., 5., 0., 2.],
          [0., 0., 0., 0., 0.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')

cummax:
tensor([[[[1., 1., 1., 1., 1.],
          [1., 1., 1., 1., 1.],
          [1., 1., 1., 1., 1.],
          [1., 1., 4., 1., 1.],
          [3., 3., 0., 3., 3.],
          [0., 0., 0., 0., 0.],
          [0., 0., 0., 0., 0.]]]], device='cuda:0')

I'm also checking whether using different op would effect on final mAP, I will reply once I get the result. And using torch.cummax could get ~10% speedup on V100(from 1.86s/iter to 1.68s/iter, img_per_gpu=6).

@Scalsol  The verification experiment is done. Both torch.cummax and our corner_pool could reach 41.0 mAP with batch_size=6 * 16 on V100. Now I'm going to open a PR to fix this problem. Thanks for your suggestion!

@tianyuandu glad to hear that!


feature: dockerize metabase test tarball generation

Overview
Creates a docker stage for creating a test tarball containing pre-compiled Metabase tests and a number of required runtime dependencies.

the first two commits here are garbage

Will

merge this after a clean CI run in https://github.com/Xeograph/xgsrc/pull/24502
publish a new release for the Metabase tests
build a new tarball from the new release
upload the new build to COS ext
update tarball sha in https://github.com/Xeograph/xgsrc/pull/24502
merge https://github.com/Xeograph/xgsrc/pull/24502
Document steps


inquire if there are any issues with the version of Ray

when i ray start,
error:
from ray._private.utils import remove_ray_internal_flags_from_env
ImportError: cannot import name 'remove_ray_internal_flags_from_env' from 'ray._private.utils' (/usr/local/lib/python3.10/dist-packages/ray/_private/utils.py)
my envs is from your recomend docker

https://github.com/OpenRLHF/OpenRLHF/issues/598#issuecomment-2550649198


[editor][client] helper util to generate a session id

[editor][client] helper util to generate a session id
Added a helper method to generate a uuid. This uuid is to be used as a session ID for telemetry data.

Stack created with Sapling. Best reviewed with ReviewStack.

#899
-> #898
#864

Just noting datadog already generates a unique session_id for logging

datadog browser logs already includes a session ID. No longer needed


Fix typo

Space is needed so that GitHub markdown renders the subsection heading correctly

Nice! Thank you!


Restore deleted whitespaces, Remove unsafe biome formatting

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
This PR focuses on improving the user interface by adding space between certain text elements and enhancing readability across various components in the dashboard application.
Detailed summary

Added space after text in various components to improve readability.
Updated text elements in templates.tsx, index.tsx, TransactionModeScreen.tsx, and others.
Ensured consistent formatting in HeroSection.tsx, PricingCard.tsx, and various settings pages.

The following files were skipped due to too many changes: apps/dashboard/src/components/embedded-wallets/Configure/index.tsx, apps/dashboard/src/contract-ui/tabs/claim-conditions/components/snapshot-upload.tsx, apps/dashboard/src/contract-ui/tabs/overview/components/ContractChecklist.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx, apps/dashboard/src/core-ui/batch-upload/upload-step.tsx, packages/thirdweb/package.json, apps/dashboard/src/pages/template/[id].tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4789  👈
main

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

Join @MananTank and the rest of your teammates on  Graphite


Voxel Size

I have a pre-defined voxel size (dx, dy, dz) in meters for example (0.01, 0.01, 0.01)m. If possible, how can I change the resolution/other parameters so that the voxels created by the stl-to-voxel library are of similar size say (dx', dy', dz' ). They may not be exactly same but approximately same (so the round value of dx/dx' =1 ,  dy/dy' =1 and dz/dz' =1 ). We can talk in respect to the Bunny and Pyramid.

Hi @karban8,
Currently you can specify resolution which controls how many voxels the model is divided into in either the x or y dimension (whichever is larger). So given the size of the model you can work out what resolution should be set to.
Would you find it useful if there was a feature to specify voxel size?

Hi @cpederkoff, I have worked out a way that enables the user to have separate resolutions for x, y and z axis. Therefore the voxel size can be adjusted. Currently I am using it to output 1x1x1 unit dimension voxel size.
Thank You

Currently I have the code on my local would you like me to make a pull request to add the new feature?

That would be great if you could make a pull request. Thanks!

Hi @cpederkoff I have made a PR in this regard.


Fix Xamarin obsolete warning/error & Support Android 4.4

Fix Obsolete warning (which was reported as error): CS0618  'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed,  we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
Support Android 4.4 (was first 5.0)

Fixes https://github.com/NLog/NLog/issues/1527

[Current coverage][cc-pull] is 76%
[][cc-pull]

No coverage report found for master at cb9e97d.

Powered by Codecov. Last updated by [cb9e97d...5ac0c3a][cc-compare]
[cc-base-branch]: https://codecov.io/gh/NLog/NLog/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/NLog/NLog/compare/cb9e97d4b8a6fcf3ccf5c8ca67819236bd9562d1...5ac0c3a3db91e50d443e22f64c7b70678a12785d
[cc-pull]: https://codecov.io/gh/NLog/NLog/pull/1531?src=pr


"Merge on approval" on GitHub-native Dependabot

"Treat PR approval as a request to merge" setting was available on Dependabot dashboard but it isn't possible to configure in .github/dependabot.yml.

Perhaps related to https://github.com/github/roadmap/issues/107?
I currently work around the lack of automatic merges by creating a bot user and applying the following job (see https://github.com/ergebnis/php-library-template/blob/main/.github/workflows/integrate.yaml#L384-L478):
  merge:
    name: "Merge"

    runs-on: "ubuntu-latest"

    needs:
      - "code-coverage"
      - "coding-standards"
      - "dependency-analysis"
      - "mutation-tests"
      - "static-code-analysis"
      - "tests"

    if: >
      github.event_name == 'pull_request' &&
      github.event.pull_request.draft == false && (
        github.event.action == 'opened' ||
        github.event.action == 'reopened' ||
        github.event.action == 'synchronize'
      ) && (
        (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) ||
        (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) ||
        (github.actor == 'ergebnis-bot' && github.event.pull_request.title == 'Enhancement: Update license year') ||
        (github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge'))
      )
    steps:
      - name: "Request review from @ergebnis-bot"
        uses<EMAIL_ADDRESS>        with:
          github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
          script: |
            const pullRequest = context.payload.pull_request
            const repository = context.repo
            const reviewers = [
              "ergebnis-bot",
            ]
            await github.pulls.createReviewRequest({
              owner: repository.owner,
              pull_number: pullRequest.number,
              repo: repository.repo,
              reviewers: reviewers,
            })

      - name: "Assign @ergebnis-bot"
        uses<EMAIL_ADDRESS>        with:
          github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
          script: |
            const pullRequest = context.payload.pull_request
            const repository = context.repo
            const reviewers = [
              "ergebnis-bot",
            ]
            await github.issues.addAssignees({
              assignees: reviewers,
              issue_number: pullRequest.number,
              owner: repository.owner,
              repo: repository.repo,
            })

      - name: "Approve pull request"
        uses<EMAIL_ADDRESS>        if: "github.actor != 'ergebnis-bot'"
        with:
          github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
          script: |
            const pullRequest = context.payload.pull_request
            const repository = context.repo
            await github.pulls.createReview({
              event: "APPROVE",
              owner: repository.owner,
              pull_number: pullRequest.number,
              repo: repository.repo,
            })

      - name: "Merge pull request"
        uses<EMAIL_ADDRESS>        with:
          github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
          script: |
            const pullRequest = context.payload.pull_request
            const repository = context.repo
            await github.pulls.merge({
              merge_method: "merge",
              owner: repository.owner,
              pull_number: pullRequest.number,
              repo: repository.repo,
            })

@localheinz Actually it's slightly different from https://github.com/github/roadmap/issues/107, as this doesn't merge without manual intervention. This requires user's explicit approval.

If you want your dependency updates to be merged after approval, you could setup an automerge bot as described here: https://github.com/dependabot/dependabot-core/issues/1973#issuecomment-646868334
Once you approve the dependabot PR the bot would merge it, assuming all your status checks are passing.

Is this relevant to this task as well?

In case anyone stumbles across this issue.
The official GitHub Docs now document a process for Dependabot auto merge here.
Sadly, it looks like the fetch-metadata-action is not getting a lot of attention.

Originally posted by @dihmandrake in https://github.com/dependabot/dependabot-core/issues/1973#issuecomment-995664569

This can be achieved with the auto-merge.

This can be achieved with the auto-merge.

Just to clarify -- is it possible to configure auto-merge to ONLY apply to dependabot?
We have a developer flow where the person opening a PR clicks the merge button (after approval). I'd love for dependabot to auto-merge after approval (as the entity that opened the PR), but we don't want our human PRs to auto-merge after approval.

This. I want Dependabot to work like any other person in my team: if you're assigned to the PR, you know when to merge. First step is passing all checks and receiving approval(s), but then you decide when to merge. Dependabot has the "@dependabot merge" command, but you must manually type it every time, which is more work than simply clicking merge yourself. Thus, I have tried automating that comment with another bot, see if that way the moment a Dependabot PR is approved, Dependabot itself merges it if possible. I haven't tried it yet, but leaving this for posterity in case someone else runs into this issue as a possible solution

@BoscoDomingo Can you just use https://github.com/marketplace/actions/enable-automerge-action ?

@mwaddell Uhmmm, yes sir, it would seem like a perfect fit! How that did not pop up as the very first result when Googling this issue blows my mind... I'll try it out and see if it works, thanks!!


Security: content_url in chcp.json

Hi all,
this issue is not a bug.
I'm trying to hide the content_url parameter for security.
I have removed this parameter from chcp.json local file in the build in the first step but this parameter is mandatory in chcp.json content file to the server.
When the plugin download the new version the new chcp.json is downloaded in the appdata in new www folder.
Is it possible to hide this parameter to improve the app security?
Thanks in advance,
Davide

Hi,
If you want to prevent someone from knowing this url - it's pretty easy to capture it with other methods. I.e., just use network sniffer and you will get all data, that the app is trying to get.
If you want to restrict access to your server - use authorisation headers in fetchUpdate request. For more info you can check this document.
Another alternative - you can fork this plugin repo and alter the code by hardcoding your content url into the native code and obfuscating it. But again, this is not a problem for network sniffer.


add AsRef impl for Index

This is useful for generic code, as the comment says. As a workaround
I've had to define a newtype wrapper around Index to achieve the same
goal, so it would be lovely to have this be upstream! 😄

I don't have any objections to this PR per se, but I do have an honest question: What makes Index special? Conceivably this same impl could be applied to every type. In std, AsRef is only used when there are other types that convert to the same thing, but proptest has no other types that could sensibly be AsRef<Index>.

Yeah, good question! I agree that proptest itself doesn't have any other types that implement AsRef<Index>, but I as a consumer have already written around 5 types so far all of which do implement AsRef<Index>.
It's up to you whether you'd like to take it or not, but it would certainly make my life (as someone who's written several thousand lines of proptest-based code) quite a bit easier. I don't know if other types need it -- Index has been the only one that's been clear to me so far.


Parity: NSKeyedArchiver: Consider response to setting an output format other than .xml or .binary

NSUnimplemented() is a marker for yet-to-be-implemented functionality. We do not support .openStep as a format at all; move this to fatalError() instead, since setting .openStep is a programmer error on Darwin.
https://bugs.swift.org/browse/SR-10416

@swift-ci please test

@swift-ci please test

@swift-ci test macos


Add a handler to allow visualization of storage

This mimics the Rest API
https://docs.microstream.one/manual/storage/rest-interface/rest-api.html
In Micronaut, so multiple storage managers can be queried on pathed URLs
using the Client GUI tool
https://docs.microstream.one/manual/storage/rest-interface/client-gui.html

This fixes both #34 and #35
Even after our agreement to do smaller PRs 😅
Sorry about that

I don't see the value of def for test function definitions, nor using the type instead of def for fields inside test.
Where it is important (ie: a function returns a Long) then that's fine as it's a contract
But IntelliJ fills in the types where it can, and we don't punish Kotlin with this same rule
https://github.com/micronaut-projects/micronaut-microstream/blob/6907bbc20520ce2e53e712b1e3cecdd0b2c1c144/test-suite-kotlin/src/test/kotlin/io/micronaut/microstream/docs/CustomerControllerTest.kt#L29-L30
(I am not saying we should punish Kotlin, but I feel we should be extolling the virtues of Spock and the Groovy language)


[B16] Arcane Pedestals + Hopper issues

As of Beta 16, it appears that Arcane Pedestals take an entire stack of an item from an adjacently connected hopper. After a while the item on the pedestal then stops rendering (still goes into player inventory on right click). Even worse, the infusion altar recipe (in my specific test, the traveller's boots) consumes the entire stack as if it were one item.

I believe the rendering issue is a separate one as sometimes without any hoppers involved the item on the central pedestal disappears.


fix: allows symlinks in node_modules

Having dependencies as symlinks (because of Lerna or npm link for example) in a monorepo causes some fails in unit tests and Storybook because those dependencies are not detected as external dependencies because the absolute path is outside the node_modules and then they are not properly processed (as for example transpiling them).
Enabling the symlinks those problems are fixed and sibling projects are detected as external dependencies.
On the other hand, the function defineCE has been refactored because the counter only works when we had just one file in the same location. With symlinks we have several locations and that caused some tag name collisions, so I refactored it to obtain a random number instead a counter and also checks if the random number is available before defining the component.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Error in present Image, video on iphone X

One line summary of the issue here.
I using twitterkit ver 3.3 and twittercore ver 3.1
In iphone X, when i click one item in timeline (video or image) the close button (X button) is over and under the status bar as attached image.
Can some one help me ?

Even less clear when the menu is white:

I have the same issue - any one working on this? It results in having to force quit the app, since you can’t close the presented viewcontroller that is displaying the photo.

i try but 🤷🏻♂
If I find a solution I will publish here 🙂

I opened a PR for this: https://github.com/twitter/twitter-kit-ios/pull/56

We are having this issue too for our high profile client. Can we please take a look at this PR and get it into the next release asap.
Thanks guys

@MatthewpHarding I tweeted at them and was told they are including a fix for this when they release the next and last updated version of Twitterkit, but there is no estimation on when that will be. Could be soon, could be a few months.

Anyone know how to change the color of the media nav bar or close button.
Apple is updating their review guidelines in July, and if this iPhone X issue isn't fixed within TwitterKit by then apps that use this SDK will start to be rejected. Source: App Store engineer at WWDC.

Thanks for the info @kaylagalway

Np @alexpersian - good luck

There will be last release in next few days, and it includes PR by @kaylagalway. Thank you everyone.


InheritDoc errors do not consistently fail the build

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=653592&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=45862c6e-83c5-515f-73e2-e7009eff9f9b
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=655334&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=45862c6e-83c5-515f-73e2-e7009eff9f9b
The same error was produced in both build but only one failed.
cc @maririos I think this is what you've hit as well.
cc @christothes

Yeah, I was actually looking into this. And after re-trying the failed job, it passed.
Same is true for KeyVault:

Failed: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=653643&view=results
Passed: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=655397&view=results


Fix crash when cache folder is not in the subpath of the test directory

Pythlib cannot handle this case while os.path has no problems.
Example:
INTERNALERROR>   File "<string>", line 11, in __init__
INTERNALERROR>   File "/Users/berres/venv/weplan3.9/lib/python3.9/site-packages/pytest_insta/session.py", line 101, in __post_init__
INTERNALERROR>     self.record_dir = Path(record_dir).relative_to(Path(".").resolve())
INTERNALERROR>   File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/pathlib.py", line 928, in relative_to
INTERNALERROR>     raise ValueError("{!r} is not in the subpath of {!r}"
INTERNALERROR> ValueError: '/Users/berres/Devel/mpptool/.pytest_cache/d/insta' is not in the subpath of '/Users/berres/Devel/mpptool/backend/cdb/cdb/tests/flaskapp' OR one path is relative and the other is absolute.

Good catch! I experimented a bit with this and fixed another issue related to recording and reviewing snapshots when running pytest from a subdirectory. The changes will be released very soon.

Valentin, thanks a million, especially for the quick release. Our CI pipelines (sadly closed source) now nicely pass.


Crash after "Login procedure started"

Bot is crashing.
Expected Behavior
Before my last pull everything worked fine.
Actual Behavior
After logging in ("login procedure started") the App crashes and comes back to the start screen.
Steps to Reproduce
Happens to me every time. I cloned a fresh directory to make sure its not related to the config file. Also i tried different PTC accounts.
npm version: 3.10.3
node version: 6.3.1
Python version: 2.7.10
pgoapi version: 1.1.6
Information

OS
Mac OS 10.11.6 El Capitan
Git commit ( to get git commit run git log -1 --format="%H")
584782fa1425e19ff9d94d16728d95781ade3312
App's logs

nilss-mac-mini:PokemonGo-Bot-Desktop-2 nils$ npm start
><EMAIL_ADDRESS>start /Users/nils/Documents/PokemonGO/PokemonGo-Bot-Desktop-2
> electron main.js

GVA info: Successfully connected to the Intel plugin, offline Gen6
Starting Python process...
Bot path: /Users/nils/Documents/PokemonGO/PokemonGo-Bot-Desktop-2/gofbot
python ./pokecli.py
Python: 2016-08-10 16:26:09,198 [       cli] [INFO] PokemonGO Bot v1.0

Python: 2016-08-10 16:26:09,200 [       cli] [INFO] No config argument specified, checking for /configs/config.json

Python: 2016-08-10 16:26:09,202 [       cli] [INFO] Configuration initialized

Python: 2016-08-10 16:26:09,202 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-10 16:26:09,203 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics

Python: 2016-08-10 16:26:09,632 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com

Python: 2016-08-10 16:26:09,678 [PokemonGoBot] [INFO] [set_start_location] Setting start location.

Python: 2016-08-10 16:26:09,679 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.

Python: 2016-08-10 16:26:09,679 [PokemonGoBot] [INFO] [location_found] Location found: 52.366857, 9.737020 (52.366857, 9.73702, 0.0)

Python: 2016-08-10 16:26:09,680 [PokemonGoBot] [INFO] [position_update] Now at (52.366857, 9.73702, 0)

Python: 2016-08-10 16:26:09,680 [PokemonGoBot] [INFO] [login_started] Login procedure started.

Python: Traceback (most recent call last):
  File "./pokecli.py", line 522, in <module>

Python:     main()
  File "./pokecli.py", line 138, in main
    report_summary(bot)

Python:   File "./pokecli.py", line 147, in report_summary
    metrics.capture_stats()

Python:   File "/Users/nils/Documents/PokemonGO/PokemonGo-Bot-Desktop-2/gofbot/pokemongo_bot/metrics.py", line 73, in capture_stats
    request = self.bot.api.create_request()
  File "/Users/nils/Documents/PokemonGO/PokemonGo-Bot-Desktop-2/gofbot/pokemongo_bot/api_wrapper.py", line 27, in create_request
    self._position_alt
  File "/Users/nils/Documents/PokemonGO/PokemonGo-Bot-Desktop-2/gofbot/pokemongo_bot/api_wrapper.py", line 43, in __init__

Python: PGoApiRequest.__init__(self, *args)
TypeError: __init__() takes exactly 6 arguments (5 given)

Python: Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds

Python: Press Ctrl-C to quit

Bot exited

Same issue

<EMAIL_ADDRESS>start /Users/Ding/Documents/pokemon/PokemonGo-Bot-Desktop
electron main.js

Starting Python process...
Bot path: /Users/Ding/Documents/pokemon/PokemonGo-Bot-Desktop/gofbot
python ./pokecli.py
Python: 2016-08-10 21:05:11,282 [       cli] [INFO] PokemonGO Bot v1.0
Python: 2016-08-10 21:05:11,285 [       cli] [INFO] No config argument specified, checking for /configs/config.json
Python: 2016-08-10 21:05:11,292 [       cli] [INFO] Configuration initialized
Python: 2016-08-10 21:05:11,292 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
Python: 2016-08-10 21:05:11,294 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
Python: 2016-08-10 21:05:11,313 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
Python: 2016-08-10 21:05:11,782 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
Python: Traceback (most recent call last):
File "./pokecli.py", line 522, in
Python:     main()
File "./pokecli.py", line 138, in main
report_summary(bot)
File "./pokecli.py", line 147, in report_summary
Python:     metrics.capture_stats()
File "/Users/Ding/Documents/pokemon/PokemonGo-Bot-Desktop/gofbot/pokemongo_bot/metrics.py", line 73, in capture_stats
request = self.bot.api.create_request()
File "/Users/Ding/Documents/pokemon/PokemonGo-Bot-Desktop/gofbot/pokemongo_bot/api_wrapper.py", line 27, in create_request
self._position_alt
File "/Users/Ding/Documents/pokemon/PokemonGo-Bot-Desktop/gofbot/pokemongo_bot/api_wrapper.py", line 43, in init
Python:     PGoApiRequest.init(self, *args)
TypeError: init() takes exactly 6 arguments (5 given)
Python: Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Python: Press Ctrl-C to quit
Bot exited


Revisions changes via Umbraco Cloud

Noticed that we get alot of "Adding vendr-payment-method 'Opayo'" etc commits on our cloud repo after a deployment.
Two things keep coming up

The amount of decimals in Prices array value property, locally it puts 1 dp cloud sets it to 3 dp

We see that the order of properties inside the "PaymentProviderSettings" json section is changing but to no specific order its different every time. eg

local pushed structure
"PaymentProviderSettings": {
"ErrorUrl": "/checkout/error",
"IntegrationKey": "....",
"ContinueUrl": "/checkout/confirmation",
"VendorName": "sprucewoolltd",
"IntegrationPassword": "...",
"Three3dSecureRedirectUrl": "/checkout/3d-secure",
"NotificationUrl": "https://#####/umbraco/surface/OpayoPI/Notify",
"CancelUrl": "/checkout/cancel"
},
Umbraco Cloud Commit changes it too
"PaymentProviderSettings": {
"ContinueUrl": "/checkout/confirmation",
"ErrorUrl": "/checkout/error",
"NotificationUrl": "https://#####/umbraco/surface/OpayoPI/Notify",
"VendorName": "sprucewoolltd",
"IntegrationPassword": "...",
"Three3dSecureRedirectUrl": "/checkout/3d-secure",
"CancelUrl": "/checkout/cancel",
"IntegrationKey": "..."
},

Hmm, good spot.
I could have sworn we resolved the decimal places issue as we definitely have something in place for this, but maybe it's not working as expected.
Regarding the settings order, maybe we need to look at enforcing a sort order on these alphabetically or something. I'll have to see what is possible.

I think the settings order needs to be fixed. I'm seeing a never ending story of vendr-payment-method__***.uda files needing to be pulled from the Cloud Dev environment, and later needing to be pushed from the local environment. Here's screenshot of differences between the files in our case:

Ok, so I've submitted an update that's currently building that swaps the use of dictionaries for those values to a SortedDictionary which I believe should ensure the keys remain sorted during serialization. This should be on our unstable feed at https://nuget.outfield.digital/unstable/vendr/v3/index.json (v3.1.1-beta0002) if you want to give this a try and see if it resolves your issue

Thanks. That beta looks to of fixed the ordering of properties.
Still getting the number of decimal places issue.

Oops, forgot about that one. I think i've found that issue too now so if you want to try beta0003 and confirm this, that would be great

Shoot. Ok, well have have to try and setup a cloud environment to test this on then and see what it's not doing what it should. I'll get back to you when I can.

Could someone experiencing this issue share screenshots of the differing prices in the uda files on the different environments?

Hi Matt,
Here a image of the commit after a push that then changes the dp of the price for shipping methods and payment methods

Excellent! Thank you. We've managed to replicate this and are looking at a fix in Umbraco Deploy 👍


Stylua Tab Formatting

FAQ

[X] I have checked the FAQ and it didn't resolve my problem.

Issues

[X] I have checked existing issues and there are no issues with the same problem.

Neovim Version
0.10.0-dev
Dev Version?

[ ] I am using a stable Neovim release version, or if I am using a dev version of Neovim I have confirmed that my issue is reproducible on a stable version.

Operating System
Ubuntu
Minimal Config
builtins.formatting.stylua

Steps to Reproduce
Attempt to format this code
M = {}

function M.find_duplicates(table1, table2)
    for _, v in pairs(table1) do
        for _, v2 in pairs(table2) do
            if
                M.sanitise_modifier_keys(v.prop1)
                    == M.sanitise_modifier_keys(v2.prop1)
                and v.prop2 ~= v2.prop2
            then
                return true
            end
        end
    end
end

return M

column_width = 80
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 4
quote_style = "AutoPreferDouble"

the if statement indenting on line 7 is missing a tab
Reproducibility Check

[ ] I confirm that my minimal config is based on the minimal_init.lua template and that my issue is reproducible by running nvim --clean -u minimal_init.lua and following the steps above.

Expected Behavior
to be formatted
                    == M.sanitise_modifier_keys(v2.prop1)

Actual Behavior
Formatted
                == M.sanitise_modifier_keys(v2.prop1)

Debug Log
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/rpc.lua:106: received LSP request for method textDocument/formatting
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_FORMATTING
[DEBUG Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/helpers/generator_factory.lua:329: spawning command "stylua" at /home/tris/code/hawtkeys.nvim with args { "--search-parent-directories", "--stdin-filepath", "/tmp/random.lua", "-" }
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/helpers/generator_factory.lua:207: error output: nil
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/helpers/generator_factory.lua:208: output: M = {}

function M.find_duplicates(table1, table2)
    for _, v in pairs(table1) do
        for _, v2 in pairs(table2) do
            if
                M.sanitise_modifier_keys(v.prop1)
                    == M.sanitise_modifier_keys(v2.prop1)
                and v.prop2 ~= v2.prop2
            then
                return true
            end
        end
    end
end

return M

[DEBUG Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/formatting.lua:89: received edits from generators
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/formatting.lua:90: {
  newText = "    ",
  range = {
    ["end"] = {
      character = 16,
      line = 7
    },
    start = {
      character = 16,
      line = 7
    }
  },
  rangeLength = 0
}
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/rpc.lua:131: received LSP notification for method textDocument/didChange
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS
[DEBUG Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/generators.lua:24: no generators available
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/rpc.lua:131: received LSP notification for method textDocument/didChange
[TRACE Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS
[DEBUG Fri 05 Jan 2024 20:41:14 GMT] /home/tris/.local/share/nvim/lazy/none-ls.nvim/lua/null-ls/generators.lua:24: no generators available

Help
Yes
Implementation Help
I am not sure if this is a none-ls bug, or a upstream nvim bug to do with writing the text back into the buffer
Requirements

[X] I have read and followed the instructions above and understand that my issue will be closed if I did not provide the required information.

Try invoking the stylus CLI manually and see if the behavior changes.

No. From the stylua CLI it works correctly

Seems like I'm getting the same thing. @tris203 does formatting the first time after opening work? The first time after I open neovim the format works every time. After that it doesn't work at all and I get the same no generators available log errors.
Running the stylua CLI outside of neovim works every time.
I'm on neovim 0.9.5.

Seems like I'm getting the same thing. @tris203 does formatting the first time after opening work? The first time after I open neovim the format always works. After that first one it doesn't work at all and I get the same no generators available log errors until I restart neovim.
Running the stylua CLI outside of neovim works every time.
I'm on neovim 0.9.5.

I don't think any of them work for me
Additionally, if I use the CLI to format it. None-ls will then reformat it to be wrong

Could anyone reproduce this on older Neovim releases?

Could anyone reproduce this on older Neovim releases?

I need to test again. But I wasn't having issues the other day in nightly. So it's possible this was an upstream nightly bug which has been resolved

I'm not sure if this is the right issue, but I thought I'd put this here before opening a new one. Let me know if you'd rather have me open a new one:
Formatting with stylua doesn't seem to be respecting stylua.toml, .stylua.toml or .styluaignore on the cwd where nvim was run. I've tried on two different projects, each with different .stylua.toml files, one with .styluaignore on them. Regardless of what's on the stylua.toml on cwd, buffer is formatted the same, and it is formatted even if it's on the local .styluaignore (I'm even passing --respect-ignores as an extra_args). Hadn't tried with config files before, but formatting with stylua via conform.nvim (which I was using before configuring stylua with null-ls) was respecting the local .styluaignore. Could it be something to do with how the command is being called?
Let me know what extra info I can get for you.

I'm pretty sure this was an upstream issue which has been fixed now
Closing


Permission based object ownership

Roadmap: https://cockroachlabs.atlassian.net/browse/CRDB-888
PR: https://github.com/cockroachdb/cockroach/pull/51856
From release notes:

Added "ownership" concept objects. Objects must now have an owner; all objects that do not have owners currently will have admin set as the default owner except system objects. System objects without owners will have node as their owner. By default, owners are the creator of the object. Owners have all privileges to the objects they own. Similarly, any roles that are members of the owner role also have all privileges on the object. Roles cannot be dropped if they own objects. This PR does not add support for changing the ownership of objects; that will be added in a future PR to support dropping roles. [#51856][#51856] {% comment %}doc{% endcomment %}

Update: Related issues:

release-20.2: sql: don't allow cross-database sequence owners #8511
release-20.2: sql: disallow role/user drops if they own a schema or a type #8506

@Amruta-Ranade FYI, @RichardJCai is back in school for the semester.

@Amruta-Ranade, this is an IAM user journey, so it's on your plate, but the work was done by SQL and has impact on backup/restore work, so please reach out to @ericharmeling and @lnhsingh for support as needed.

@Amruta-Ranade, are there any docs I can glance at? I'm trying to write up the 20.2 release note features summaries, and I'm not sure how to capture this.

Yes! Eric's doc: https://www.cockroachlabs.com/docs/dev/owner-to.html

Ah, ok. This issue is assigned to you. Are you doing additional work on this?

Yep..working on updating IAM docs based on Eric's doc.


Triage on ostracon#497

The subject of the triage:

Finschia/ostracon#497

It seems that p2p/upnp/upnp.go does not exist at the stage of v0.38.0.
https://github.com/cometbft/cometbft/tree/v0.38.0/p2p
p2p/upnp/upnp.go was considered for removal in cometbft#1113 and removed in cometbft#1114.
https://github.com/cometbft/cometbft/issues/1113
https://github.com/cometbft/cometbft/pull/1114
It seems that there is no need to reflect it in cometbft.


[TH2-2269] Add setting to be able to change maxMessageSize

Closed because duplicated in https://github.com/th2-net/th2-common-j/pull/230


Added aria-labelledby for table of content

Demo:
https://user-images.githubusercontent.com/103434939/196456079-919f2079-6b8d-472d-bdb9-2269a88b7b42.mov
References
https://github.com/github/accessibility-audits/issues/2747

@pavlov-kirill In the acceptance criteria mentioned here, role also needs to be added. Can you once check acceptance criteria again?

@20shivangi added roles


NLog.Schema and NLog.Config not working with .Net Core

Type (choose one):

Bug

NLog version: 4.3.5
Platform: .Net Core
In case of a BUG:
What is the current result?
I am trying to include the NLog.Schema and NLog.Config NuGet packages in my ASP.Net Core project (in project.json). Unfortunately, the package restore fails and no files (NLog.Config, NLog.Schema) are included in my project.
What is the expected result?
The relevant files should be included in the project.

this is expected. It's not supported by nuget v3 :(

Is there anything that can be done to address the problem in the future?

Maybe complaining at Nuget. ;)

The issue on nuget github https://github.com/NuGet/Home/issues/1792

Will close this as this is a known issue as it's polluting the issue list - there is no action for us here.


Logitech G502 Proteus Spectrum RGB Lighting issue

After using Aurora app RGB backlight on my Logitech g502 stop working right. Shades of colors on DPI and LOGO have differences when i choose one basic color in LGS.
I try to explain how this is actually looks and take a photo:
https://drive.google.com/open?id=1o1P7Ky181MU5ALr14tFBR17fwQiCPzbG
https://drive.google.com/open?id=17y3C86rD1mLMfaRVmcTsLLoJutnioYqR
Screenshot of Logitech game software:
https://drive.google.com/open?id=1sry6CZqHywnGQ0XO0GEgHNpsvo914RQr
https://drive.google.com/open?id=1GhYRmEa1fbIAV1Jy96fVE_F9a8pEaQnM
Any ideas what can i do with it? Maybe hard reset of g502 hardware or something?

It seems like your blue led is failing. Try setting the color to blue (0,0,255) and see what lights up

It seems like your blue led is failing. Try setting the color to blue (0,0,255) and see what lights up
Dpi and logo colors looks the same but Dpi is brighter
https://drive.google.com/open?id=1wNVJ3BK0dd978JConzAX6Ro2kD312EgT

It seems like your blue led on the G logo is less bright somehow? If you set it to red or green do they look the same?

If you set it to red or green do they look the same?
Yes, look the same

yeah, then it's a hardware problem with the blue led i think. if it's still under warranty try that :/


Dispatcher link generation: Remove usage of RouteTemplate from MatcherEndpoint

From here: https://github.com/aspnet/Routing/pull/546/files#r195517026
I don't like the idea of putting RouteTemplate on any new public APIs because the design of it is kinda wack.

I wrote a clean version of RouteTemplate and the parsing code that we can use if necessary, but that kinda duplicates the concept so I'm not in love with that idea either.

Could we find a way to make this usage less prominent? (not a public property on a public class).

I'm also OK with doing this temporarily if there's an issue to clean it up.

Taking this over as part of the RoutePattern work.


functions shell treats timestamps as date, deployed functions like Timestamps

We are running firebase-admin "^6.3.0" and firebase-functions "^2.1.0". We haven't updated to the v7 of firebase admin because we have code that expects the data to be a date and we don't want to deal with timestamps yet.   When testing with the functions shell my date is shown as a string:
 console.log('modified date', comment.modified, oldComment.modified, comment.modified === oldComment.modified)
output is:
modified date 2019-04-10T10:08:38.142Z 2019-04-10T10:08:38.141Z false
on the server however - comment.modified is shown as Timestamp object? whaaaat?
Timestamp { _seconds:<PHONE_NUMBER>, _nanoseconds: 961000000 } Timestamp { _seconds:<PHONE_NUMBER>, _nanoseconds: 925000000 }
Am I missing something here? Why this discrepancy?
Just for the test I tried doing:
admin.firestore().settings( { timestampsInSnapshots: true })
but even with that the functions shell is treating my dates as string.
Why are the deployed functions treating the dates as timestamps? Has something in the firestore backend changed so that it always returns a timestamp, no matter what SDK is used?
On my machine the functions shell is running on node 11, the deployed functions are running with node 8?

Hi @compojoom. I think you're getting a Timestamp back, which gets printed to the console as a string. Try console.log(new Date()) for comparison.
I believe the latest versions of the Functions SDK treat Firestore time values as timestamps. You should follow up at https://github.com/firebase/firebase-functions.


Toast CToastClose empty

The examples on https://coreui.io/vue/docs/components/toast.html are not visible.
I've tried to use CToastClose but it renders an empty html element. I've checked the example on https://coreui.io/vue/docs/components/toast.html but this seems to render a html cbutton element instead of rendering CButton component.

@ElBart00 I fixed demos. Can you show me your code?


CI: Pin kernel and user to same nightly

I have done the opposite in https://github.com/hermitcore/rusty-hermit/pull/184.


chore: update rollup to 0.47.6

Require a bunch of test case reworking after bundle.generate() started returning a Promise. Hopefully I got the formatting right, linter didn't seem to mind at least!

Sorry, missed this — wish I hadn't as I had to do the exact same thing for 0.48 😩 Thanks anyway!