tf.scatter_nd doesn't support int32 updates when some indices are out of bounds

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
tf2.6
Custom Code
Yes
OS Platform and Distribution
win10
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
When the type of updates is int32 and some of the indices are out of bound, tf.scatter_nd can't return the expected value.

Standalone code to reproduce the issue
import tensorflow as tf

print(tf.scatter_nd(tf.constant([[0],[1],[2]]), tf.constant([10,11,12],dtype=tf.int32), [5]))
print(tf.scatter_nd(tf.constant([[-1],[1],[2]]), tf.constant([10,11,12],dtype=tf.float32), [5]))
print(tf.scatter_nd(tf.constant([[-1],[1],[2]]), tf.constant([10,11,12],dtype=tf.int32), [5]))

Relevant log output
tf.Tensor([10 11 12  0  0], shape=(5,), dtype=int32)
tf.Tensor([ 0. 11. 12.  0.  0.], shape=(5,), dtype=float32)
2022-06-24 23:12:02.730401: W tensorflow/core/framework/op_kernel.cc:1692] OP_REQUIRES failed at scatter_nd_op.cc:130 : Invalid argument: indices[0] = [-1] does not index into shape [5]
print(tf.scatter_nd(tf.constant([[-1],[1],[2]]), tf.constant([10,11,12],dtype=tf.int32), [5]))
  File "D:\miniconda\envs\tf2.6\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9006, in scatter_nd
    return scatter_nd_eager_fallback(
  File "D:\miniconda\envs\tf2.6\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9049, in scatter_nd_eager_fallback
    _result = _execute.execute(b"ScatterNd", 1, inputs=_inputs_flat,
  File "D:\miniconda\envs\tf2.6\lib\site-packages\tensorflow\python\eager\execute.py", line 59, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0] = [-1] does not index into shape [5] [Op:ScatterNd]

Hi @chunduriv,
I was able to reproduce the issue on tensorflow v2.8, v2.9 and nightly. Kindly find the gist of it here.

@wangwei-cmd,
According to scatter_nd documentation -

Note that on CPU, if an out of bound index is found, an error is returned. On GPU, if an out of bound index is found, the index is ignored.

On windows using TF2.9.1 the tf.scatter_nd doesn't support if some indices are out of bounds.

print(tf.scatter_nd(tf.constant([[-1],[1],[2]]), tf.constant([10,11,12],dtype=tf.float32), [5]))
2022-07-01 17:18:04.169866: W tensorflow/core/framework/op_kernel.cc:1745] OP_REQUIRES failed at scatter_nd_op.cc:131 : INVALID_ARGUMENT: indices[0] = [-1] does not index into shape [5]
Traceback (most recent call last):
  File "", line 1, in
  File "C:\Users\XXXXXXXX.conda\envs\tf\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9166, in scatter_nd
    return scatter_nd_eager_fallback(
  File "C:\Users\XXXXXXXX.conda\envs\tf\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9215, in scatter_nd_eager_fallback
    _result = _execute.execute(b"ScatterNd", 1, inputs=_inputs_flat,
  File "C:\Users\CV00616867.conda\envs\tf\lib\site-packages\tensorflow\python\eager\execute.py", line 54, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0] = [-1] does not index into shape [5] [Op:ScatterNd]

print(tf.scatter_nd(tf.constant([[-1],[1],[2]]), tf.constant([10,11,12],dtype=tf.int32), [5]))
2022-07-01 17:18:07.161196: W tensorflow/core/framework/op_kernel.cc:1745] OP_REQUIRES failed at scatter_nd_op.cc:131 : INVALID_ARGUMENT: indices[0] = [-1] does not index into shape [5]
Traceback (most recent call last):
  File "", line 1, in
  File "C:\Users\XXXXXXXX.conda\envs\tf\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9166, in scatter_nd
    return scatter_nd_eager_fallback(
  File "C:\Users\XXXXXXXX.conda\envs\tf\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9215, in scatter_nd_eager_fallback
    _result = _execute.execute(b"ScatterNd", 1, inputs=_inputs_flat,
  File "C:\Users\XXXXXXXX.conda\envs\tf\lib\site-packages\tensorflow\python\eager\execute.py", line 54, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0] = [-1] does not index into shape [5] [Op:ScatterNd]

I can confirm this is the case, not just for tf.scatter_nd but for tf.tensor_scatter_nd_{add,max,min,sub,update}.
However, the bug only occurs when params is type int32.  If indices (and shape) are type int32, but params is either int64, float32, float64, it works:
idx32 = tf.cast(idx_ten, dtype=tf.int32)
idx64 = tf.cast(idx_ten, dtype=tf.int64)
sh32 = tf.cast(shape_ten, dtype=tf.int32)
sh64 = tf.cast(shape_ten, dtype=tf.int64)
upd32 = tf.cast(upd_ten, dtype=tf.int32)
upd64 = tf.cast(upd_ten, dtype=tf.int64)
updf32 = tf.cast(upd_ten, dtype=tf.float32)
updf64 = tf.cast(upd_ten, dtype=tf.float64)

# integer type for index and shape must match:
ipdb> tf.scatter_nd(idx64, updf64, sh32)
*** tensorflow.python.framework.errors_impl.InvalidArgumentError: cannot compute ScatterNd as input #2(zero-based) was expected to be a int64 tensor but is a int32 tensor [Op:ScatterNd]

# all of these work  (using float32, float64, or int64 updates)
tf.scatter_nd(idx32, updf32, sh32)
tf.scatter_nd(idx32, upd64, sh32)
tf.scatter_nd(idx32, updf64, sh32)
tf.scatter_nd(idx64, upd64, sh64)
tf.scatter_nd(idx64, updf32, sh64)
tf.scatter_nd(idx64, updf64, sh64)

# using int32 for the updates does not work (for either int32 or int64 indices and shape)
tf.scatter_nd(idx32, upd32, sh32)
2022-07-11 12:08:21.502263: W tensorflow/core/framework/op_kernel.cc:1692] OP_REQUIRES failed at scatter_nd_op.cc:130 : Invalid argument: indices[1,0] = [-1] does not index into shape [8]
*** tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[1,0] = [-1] does not index into shape [8]
tf.scatter_nd(idx64, upd32, sh64)
2022-07-11 12:08:49.281631: W tensorflow/core/framework/op_kernel.cc:1692] OP_REQUIRES failed at scatter_nd_op.cc:130 : Invalid argument: indices[1,0] = [-1] does not index into shape [8]
*** tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[1,0] = [-1] does not index into shape [8]

I looked at the code, and cannot tell what could be the problem.  This is the only line in which the kernel is sensitive to the update (and output) type T: Here
or 4th line from bottom.  Any ideas?  I would also like to solve this bug.

template <typename T, typename Index, scatter_nd_op::UpdateOp op, int IXDIM>
__global__ void ScatterNdOpKernel(
    const Index* indices, const T* updates, T* out,
    const Eigen::array<Eigen::DenseIndex, IXDIM> output_shape_prefix,
    const Eigen::array<int64, IXDIM> batch_strides, const int64 num_indices,
    const Index slice_size) {
  auto update = LeftUpdate<T, op>();

  GPU_1D_KERNEL_LOOP(index, num_indices) {
    Index i = 0;
    bool out_of_bounds = false;
#pragma unroll
    for (int dim = 0; dim < IXDIM; ++dim) {
      int offset = (IXDIM * index + dim);
      const Index ix_d = internal::SubtleMustCopy(ldg(indices + offset));
      out_of_bounds |= !FastBoundsCheck(ix_d, output_shape_prefix[dim]);
      i += ix_d * batch_strides[dim] * slice_size;
    }
    if (!out_of_bounds) {
#pragma unroll
      for (int si = 0; si < slice_size; si++) {
        update(out + i + si, ldg(updates + (index * slice_size + si)));
      }
    }
  }

My vote would be to change the CPU behavior to be like the GPU behavior, with a possible non-default fallback to the old behavior.  It is hard to imagine users who actually rely on the CPU behavior, because then they would not be able to run their model on GPU at all without accepting the different behavior.  So, although technically this is a change in behavior, my guess is there will be almost no-one who would object to this change.
Thoughts?


Can't run service with docker-compose v2 defined volume on different nodes

Rancher Versions:
Server: v1.3.3
healthcheck: v0.2.0
ipsec: v0.0.2
network-services: v0.0.8
scheduler: v0.3.0
Docker Version:
v1.11.2
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu 16.04 LTS on Openstack
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher with external DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
Create a stack with this docker-compose.yml:
version: '2'
services:
  hello:
    image: tutum/hello-world
    labels:
      io.rancher.scheduler.global: 'true'
    volumes:
      - test:/test
volumes:
  test: {}

Results:
The service starts on one node and fails to start on all the other nodes with:
Failed to allocate instance [container:1i514421]: Bad instance [container:1i514421] in state [error]: Scheduling failed: valid host(s) [2], volume [509390] must have exactly these pool(s): [3]

Are you expecting a unique volume for each host?

yes exactly. The use case is a database service that is declared as "global" so that we have a replicate on each host ; each replicate having its own volume.

Container-scoped volumes: https://docs.rancher.com/rancher/v1.5/en/rancher-services/storage-service/#container-scoped-1

I'm seeing the same error, but don't want a unique volume for each host
Using the vsphere storage plugin. After starting the upgrade to schedule the container to run on a different host this error occurs.
version: '2'
volumes:
mysqldata58:
external: false
driver: vsphere
services:
mysql:
image: mariadb
environment:
MYSQL_DATABASE: rancher
MYSQL_PASSWORD: P@ssword01
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: P@ssword01
MYSQL_USER: rancher
stdin_open: true
volumes:
- mysqldata58:/var/lib/mysql/data
tty: true
labels:
io.rancher.container.pull_image: always
Also tried the following

external: true          container is stuck in a starting state in Rancher UI. On the docker host container is started and volumes are mounted
remove volumes from compose: same result as external:true

Working on rancher 1.1.3
Docker 1.12.6
mysql:
environment:
MYSQL_DATABASE: rancher
MYSQL_PASSWORD: P@ssword01
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: P@ssword01
MYSQL_USER: rancher
labels:
io.rancher.container.pull_image: always
tty: true
image: mariadb
volumes:

mysqldata:/var/lib/mysql
mysqllog:/var/log/mysql
mysqlconf:/etc/mysql/conf.d
stdin_open: true
volume_driver: vsphere

@baillieny can you file a new issue. The original issue doesnt seem related


prevent the creation of a one-category delimited set

perhaps also add a warning or auto conversion from delimited set to single when reading data?

done and merged


De-duplicate logic for file upload views

Presently, we have Azure and AWS-based file upload strategies that contain a fair amount of duplication for rendering the applicant-facing UI. This duplication has led to bugs where functionality is only implemented in one strategy but not the other (#2487). We can likely consolidate a fair amount of the logic and tie it in with our other rendering strategy used for other question types.

Going to be addressed in fix-it week.

Work here is complete!


Importing tailwind config file in a Create-React-App breaks while attempting a production build

Hi, first of all thank you for all your work on this wonderful project.
I faced this particular edge case while importing the tailwind config so I could extract breakpoint variables using resolveConfig according the referencing config in Javascript guide.
import tailwindConfig from "../../../tailwind.config";
import resolveConfig from "tailwindcss/resolveConfig";

const config = resolveConfig(tailwindConfig);

const mdBreakpoint = config.theme.screens.md

While this works just fine in development, it breaks when I run yarn build with this error:
Failed to compile.

./src/core/utils/tailwindUtils/tailwindTheme.ts
Attempted import error: '../../../tailwind.config' does not contain a default export (imported as 'tailwindConfig').

I apologize if the problem is with CRA and not tailwind but I definitely would like to get to the bottom of this.

I think it has something to do with Webpack seeing mixed import and module.exports
What happens if you change your imports to requires?
const tailwindConfig = require("../../../tailwind.config");
const resolveConfig = require("tailwindcss/resolveConfig");

*considering that both files export using module.exports

It then compiles fine but throws a runtime error.
TypeError: "exports" is read-only


DEV-40: Provide access to the hidden pages

At the moment there are several places in the project that the user cannot access easily without making some extra effort. They are for example:

Storybook documentation
Styleguidist documentation
404 page

I think it would be much more user-friendly to provide an easy access to these pages so the user could easily check them. For example, it could be 3 links on the "Help" page which redirect the user to the corresponding place.
To work on this issue, please use a branch DEV-40 created from devel. When the work is finished - create a PR to the devel branch. At the end of each development circles, code from the devel branch (if everything is ok) goes to the master branch and deploys to production.
IMPORTANT! Before creating a PR be sure that all the tests are passing and the coverage is 100%.

Finally, the links look like this:

Desktop:

Mobile:

The PR is merged so the issue can be closed.


Example not working.

http_client_sync.cpp example doesn't compile on the latest boost 1.69.
Error	C1083	Cannot open include file: 'boost/beast/core/tcp_stream.hpp': No such file or directory
Did beast::tcp_stream move?

If you want to use the examples from develop or master then you have to use the corresponding version of Beast. You can't compile the latest examples with the older release.

Ahh. That makes so much sense. Thanks!


CI: Run under gdb

Lets see if gdb can tell us something useful about the failures

It seems like we are running out of memory :(

It seems like we are running out of memory :(

How do you figure that?

Here's what ldc-1.24 is showing:
Thread 394 "agora-unittests" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffd2e675700 (LWP 8284)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff5979921 in __GI_abort () at abort.c:79
#2  0x00005555560b4d0c in core.thread.fiber.Fiber.allocStack(ulong, ulong) (this=0x7ffd4c7b1780, sz=528384, guardPageSize=4096) at fiber.d:1283
#3  0x00005555560b4d90 in _D4core6thread5fiber5Fiber6__ctorMFNbDFZvmmZCQBrQBpQBlQBi (this=0x7ffd4c7b1780, dg=..., sz=524288, guardPageSize=4096) at fiber.d:817
#4  0x0000555555ec050f in _D6geod2411concurrency14FiberScheduler9InfoFiber6__ctorMFNbDFZvmZCQCmQCiQByQBl (this=0x7ffd4c7b1780, op=..., sz=524288) at concurrency.d:933
#5  0x0000555555ebffa3 in geod24.concurrency.FiberScheduler.create(void() delegate) (this=0x7fff5bf03660, op=...) at concurrency.d:918
#6  0x0000555555ec0314 in geod24.concurrency.FiberScheduler.spawn(void() delegate) (this=0x7fff5bf03660, op=...) at concurrency.d:843
#7  0x000055555584aedc in _D6geod249LocalRest__T9RemoteAPITC5agora4test4Base7TestAPITSQBaQxQu10SerializerZQCg__T7spawnedTCQCkQChQCf17TestValidatorNodeZQBnFNbSQFa11concurrency3TidAyaiSQEt6common6ConfigQhPOSQGv8RegistryQjAySQGg9consensus4data5BlockQgISQHiQHfQHd8TestConfPOmZ7runNodeMFZ__T6handleTSQKhQKd7CommandZQyMFNbQwZv (arg=...) at /home/runner/work/agora/agora/submodules/localrest/source/geod24/LocalRest.d:602

(Removed a lot of warning: (Internal error: pc 0x5555560b4d0b in read in psymtab, but not in symtab.) for readability).
The abort is raised on L1283, which is here. So mprotect fails.

I wonder if druntime shouldn't be using the proper flags (MAP_GROWSDOWN) here...

We are hitting this again then. Should we just apply the vm.max_map_count workaround?

Merging those localrest changes will also fix the issue, right?

Yes, this should help

We are hitting this again then. Should we just apply the vm.max_map_count workaround?

It's worth a shot. We can revert it once the LocalRest changes get merged.

Ok, rerunning with a higher vm.max_map_count


Update Docs [suggestions]

[x] Have you signed the Contributor License Agreement?
[ ] Are you working against an Issue?

Microsoft Reviewers: Open in CodeFlow

@denelon One more question. Should I update the docs here (https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/package-manager) also or there is some backend automation that will automatically update the changes?

@vedantmgoyal2009 there is no back end automation. Feel free to create Issues or submit PRs on docs.microsoft.com. Just keep in mind we would like to limit documentation at docs.microsoft.com for stable released features there. Now that we've shipped the 1.0 version, we're culling anything preview and keeping "development"/"Pre-release" build information here at GitHub. Those PRs tend to take longer to filter in, but they are also very highly appreciated.


Update to Molo version 6

This PR aims to do the following things:

Update NurseConnect to run on Molo v6 and thus Django 1.11 and Wagtail 1.13
Update and test NurseConnect to run Python 3
Small syntax cleanups
Improve test coverage by updating what code is monitored

Currently blocked by https://github.com/praekelt/molo/pull/525


Add support for getters, setters and deleters

Fixes #248.

Thanks! Would it be possible to add some tests as well? I wonder if the attribute as well could be something like webidl_setter and such? The name "special" doesn't necessarily imply much.
Finally, could some small docs be added to the guide for these attributes?

It is not necessarily tied to WebIDL. It just means another syntax in JS (mode dynamic variants of getters and setters and the deletion syntax).

Hm true yeah! "dynamic" seems plausible (preferrable to "special" to me at least), we could also do something like "index", "index_set", "delete" or something like that to

Maybe IndexingGetter, IndexingSetter and IndexingDeleter?

Sure yeah, internally I don't mind too much what we call these, I'm mostly worried for the name of the attribute which is part of the public API. Names seem fine by me though!

Thanks so much!


how can notification readOne() ?

i create Notifynder = answerQuestion
when user answer on question Notifynder question->user

in notifications table

id
form_id
to_id
category
url

1
5
2
1
http://site.dev/question/99

i want when user(to_id) visit question(99) readOne
how get notification-> id ??
in my QuestionCntroller
    public function show($id)
    {
        $question = Question::findOrFail($id);

        if(Auth::user()->id == $question->user->id){

            Notifynder::where('url','http://respostat.dev/question/99');
        }

        return view('question.show');
    }

but you dont use elquent

Hi @AbdullahGhanem, I remind you that all the models that Notifynder use are available for you.
use the Model Fenos\Notifynder\Models\Notification so that it use eloquent.
something like that:
Notification::where('url','http://respostat.dev/question/99')->update(['read' => 1]);

thanks


Add SMT Array primitives.

Depends on GaloisInc/saw-core#54

As with the crucible-saw patches, I'd prefer to see proper handling of multidimensional arrays.


Weird strawberry_django.field resolver slowdown.

It seems there's a big slowdown somewhere in the strawberry_django field/model_property resolver code.
It's really hard to debug it though.
It's a general slowdown between 2.5-3 times in speed.
Describe the Bug
On the strawberry type level. (HelloType is made with strawberry_django.type())
    # this has no slowdown
    @strawberry.field()
    def hello(self) -> str:
        return "test"

    #this has slowdown
    hello: str = strawberry_django.field(annotate=Value("test"))
    hello: str = strawberry_django.field(annotate={"hello": Value("test")})
    @strawberry_django.field()
    def hello(self) -> str:
        return "test"

On the django model level. (HelloModel(models.Model))
With hello: strawberry.auto in HelloType
    # this has slowdown
    @model_property()
    def hello(self) -> str:
        return "test"

    # this has no slowdown.
    @model_property(annotate={"hello": Value("test")})
    def hello(self) -> str:
        # this code is not triggered
        return "test"

System Information
django = "~5.1"
strawberry-graphql = "~0.253"
strawberry-graphql-django = "~0.51"

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

I just found out that this only happens with the AsyncGraphQLView and not the GraphQLView.

This suggests to me that this happens because every model_property will be resolved inside sync_to_async when using AsyncGraphQLView. This happens, because a model property might access the database.
So every model_property access requires a context switch to the main thread, which adds overhead. If you add a prefetching annotation, this is handled by the optimizer in one go so you don't have many context switches, but just one for loading the optimized QuerySet.
If you make your model_property function async, it should remove the slowdown, because it won't need to be passed through sync_to_async.

Making my model_property function async doesn't work unless I manually await it in the strawberry_django.field.
I tried it with strawberry.auto and it got a coroutine back instead of the expected result. (Seems like the resolving code doesn't check model_property for asyncness?


Sync Slider: navigate to first slide

Hi,
In sync slider if you click navigation background it start to navigate to first slide.
you can see that issue in below fiddle.
http://jsfiddle.net/shabith/jg00v3ue/

navigate to 4th slider
click on that navigation background(sky-blue or teal color)

Any idea why this is happening?

You might want to take a look at Flickity. Flickity supports asNavFor as well and this problem does not persist, althought, it does not not support slidesToShow or slidesToScroll yet.

@desandro Thanks :+1: But I need something with slidesToShow option.
Hi @kenwheeler Any idea about this issue?

@shabith This should be fixed on master

Thanks @kenwheeler :+1: I can confirmed that It has been fixed.


Auto-generated bios aren't working perfectly

For example: Arnavi's page

Same with this example:

Another example:

Specifically "and as well as"


fix: reduce logging noise on configuration

The override of a component configuration can be done several time a flow with the same value
This happens if extension is done at component initialization. This is actually a common use case
Proposed change

Related issues

:bug: Fixes #(issue)

I understand that this fix is mainly to reduce the number of emitted messags in case of network logger reporter but I still think that the issue is more on the reporter side as it is quite standard to have verbose debug messages.


Need to FFC on python

I try to FFC the Lepton 3.5
but the problem said that Segmentation fault (core dumped)

def set_manual_ffc(devh):
LEP_SYS_FFC_SHUTTER_MODE_MANUAL = 512 + 60
set_extension_unit(devh,SYS_UNIT_ID,LEP_SYS_FFC_SHUTTER_MODE_MANUAL,16,32)

def call_extension_unit(devh, unit, control, data, size):
return libuvc.uvc_get_ctrl(devh, unit, control, data, size, 0x81)

def set_extension_unit(devh, unit, control, data, size):
return libuvc.uvc_set_ctrl(devh, unit, control, data, size, 0x81)

But they keep said that Segmentation fault (core dumped)
Please . . . guide me thank you so much

Please search or consult the flir lepton group before raising a bug here. There are lots of posts like this. Here is one, where the problem was that the size should be specified in bytes (hint hint):
https://groups.google.com/forum/#!topic/flir-lepton/bL1ZrNdBcg8


Fix issue with gemini temperature

issue is due to this: https://github.com/langchain-ai/langchain/issues/17658
updating to this version will make llm-service match retrieval-service in the versions as well.

Updated along with other deps.


Will the binary tiles work with mapbox/mapnik-vector-tile?

Hi,
Thank you for providing the vector tile service. This is very useful for getting our feet wet with vector tiles.
This is not really an issue, but a question.
I was experimenting with the mapnik-vector-tile project on GitHub and was able to render a tile that is present in their examples/data folder, but could not render a tile obtained through your service.
I am wondering if the binary tiles from your service are compatible with the the latest code from mapnik-vector-tile, using mapping 3.0.5?
Thanks

Oops..sorry. Just got it to work. Never mind.

Re-opening...seem to be able to render (1) below but not (2).

http://vector.mapzen.com/osm/roads/14/8716/8015.mvt

but cannot render:

http://vector.mapzen.com/osm/roads/13/4091/2724.mvt

tileinfo --verbose also does not seem to give good geometries for (2)

I'm seeing what looks like the same bug. I have only seen it when requesting specific layers, not with "all", and at zooms of 18 or lower.
Here is an example (I chose a tile that has just one building):
$ curl -o buildings_18_74972_100295.mvt 'https://vector.mapzen.com/osm/buildings/18/74972/100295.mvt?api_key=...'
$ curl -o all_18_74972_100295.mvt 'https://vector.mapzen.com/osm/all/18/74972/100295.mvt?api_key=...'

$ tileinfo --verbose buildings_18_74972_100295.mvt
message: appears not to be compressed
layer: buildings
  version: 2
  extent: 4096
  keys: landuse_kind,id,area
  values: park,66418986,474
  feature: 0
    type: Polygon
    tags: 0,0,0,0,0,0
    geometries: 9,153,8114,194,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15

$ tileinfo --verbose all_18_74972_100295.mvt
message: appears not to be compressed
layer: water
  ...

layer: buildings
  version: 2
  extent: 4096
  keys: landuse_kind,id,area
  values: park,66418986,474
  feature: 0
    type: Polygon
    tags: 0,0,0,0,0,0
    geometries: 9,1385,7316,194,64,19,31,99,17,53,100,31,85,271,5,17,180,57,760,245,103,327,25,81,47,147,1,5,562,181,34,108,240,758,16,46,73,24,21,67,439,142,140,438,267,86,387,126,493,158,75,235,15

layer: places
  ...

Note the correct geometries in the "all" file, but 0s in the "buildings" file. The length of the geometry matches between the two files.
Tileinfo is from https://github.com/mapbox/mapnik-vector-tile, but the same problem is visible directly in the protobuf using:
protoc ./node_modules/vector-tile/proto/vector_tile.proto --decode=tile < buildings_18_74972_100295.mvt

This should be fixed now. Do you mind verifying if it works for you now?

Sorry, I tore down my test environment for this a while back, so unable to test. Perhaps @jamesbursa can test. If really need to, I can set up another environment.

Tiles Meeting: Closing this for now since it's on prod. If it's an issue again, please comment here and we either reopen or create new issue.

Sorry for the delay. I can confirm that the bug is fixed. Thanks!
I tested it as in my comment above, and by rendering the layer using Mapbox GL.

Wonderful to hear, thanks for verifying!


Changing Temp in Homekit or Siri sets AC to 86 Deg

Installed the hoobs plug in. Added all configuration information except for the IP address for the device (unsure where to get that). The AC appeared in homekit. I can switch the device on/off and change mode. However, when I use homekit app or Siri to change/set temperature, the AC goes to the maximum allowed setting of 86deg (both Siri and homekit app respond with the setting I requested).
I then grabbed an IP address for the wi-fi unit in the AC (from Eero mesh app) and updated the configuration for the plugin. The behavior was as before.
Any ideas! Thanks in advance.

Screen shot from some testing today.
I turned the AC on in Homekit, set the mode to cool. Then set the temp to a few different settings (all between 73-78). Looks like the plug in is sending out 86deg for any temperature change (which is the maximum set in the configuration section of the plug in).


⚠ Secret Website 3 has degraded performance

In d78c469, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3161 ms

Resolved: Secret Website 3 performance has improved in a38db6c.


Wrong assign behavior with combination of view and reshape_view

This example shows than using a combination of xt::view and xt::reshape_view can lead to wrong results when assigning to. The example works fine if you replace the transform function in L16 simply by
template <class E>
auto transform(E& x) {
   x *= 2;
}

Tested with tensor 0.20.1.
(this is a follow-up to #1485)

Thanks for opening this issue! We'll look into asap (probably monday).

@dseuss this should work now that #1512 has been merged. Can you confirm?

Yep, I believe that this should work now.

Thanks for your support. Unfortunately, the example linked above still fails on 95878007f5af4057e7302a4c4bb48cf2ed4fa302

The problem is reshape_view creates a strided_view with given strides over a view; since this view has a data interface, the strided_view does not operate on a flat adaptor on this view, but on the underlying buffer itself. Here is a simple example to illustrate this:
xtensor<int, 2> a = {{ 1,  2,  3,  4,  5,  6,  7,  8},
                     {11, 12, 13, 14, 15, 16, 17, 18}};

auto v1 = view(a, xt::all(), xt::range(0, 4));
std::cout << "v1" << std::endl;
std::cout << v1 << std::endl;

auto rv1 = reshape_view(v1, {2, 2, 2});
std::cout << "rv1" << std::endl;
std::cout << rv1 << std::endl;

This prints
v1
{{ 1,  2,  3,  4},
 {11, 12, 13, 14}}
rv1
{{{1, 2},
  {3, 4}},
 {{5, 6},
  {7, 8}}}

where we expect
v1
{{ 1,  2,  3,  4},
 {11, 12, 13, 14}}
rv1
{{{ 1,  2},
  { 3,  4}},
 {{11, 12},
  {13, 14}}}

A good fix for that would be to use an xiterator_adaptor instead of the flat_expression_adaptor or underlying buffer depending on whether the expression has a data interface.


[Automation] Generate Fluent Lite from policyinsights#package-2021-01

[Automation] Generate Fluent Lite from policyinsights#package-2021-01

/azp run prepare-pipelines

/azp run java - policyinsights - ci


Remove usage of deprecated ioutil package

Depends on #34

Thank you!

you are welcome any time 😄


download video in 4g/5g mode is very slow[ Android]

but it work well in wifi

Is this issue solved?
Same issue here. (react-native-video v5.2.0 / react-native 0.68.3)


Translation Docs

This Project looks promising but could someone translate the docs and add a architectural overview.

yes, we need more documents in English.
in fact we are not native speaker in English so it seems a bit harder for us to write long paragraphs, and i have to admit i am lazy...
we will try to publish more documents, both in English and Chinese, if possible, in the near future. and i think u can write an issue when u need help, and we will try to respond asap.


(com.aws.greengrass.Nucleus): Reduce volume of INFO level logging

Feature Description
Thousands of log lines are written into the greengrass.log log file for even relatively simple operations such as deployments. The logging volume should be reduced to increase usability of the logs and reduce wear on embedded storage.
Use Case
Embedded solutions may often run on devices which not only are storage-constrained, but the storage may also have limited write cycles or poor wear leveling, such as is the case for inexpensive eMMC storage.
While logs are important for monitoring the status of the device and especially crucial for troubleshooting, and log rotation reduces the logs stored to a manageable amount, a large volume of logging will wear down embedded device storage faster.
Proposed Solution
Move all current INFO level logging to the DEBUG log level and only hand-pick the most useful log messages back to INFO.
Other

[ ] :wave: I may be able to implement this feature request
[ ] :warning: This feature might incur a breaking change

Hi Santtu,
Another thing you can consider is to update the log level which is used by Greengrass. You can configure it to log any level of logs, so you should configure it to only log WARN and ERROR logs.

That is beside the point.
Nearly everything is logged at the INFO level. If I were to raise the bar to WARN, I would lose most useful log input, such as "deployment started" and "deployment successfully finished".
The problem is that there are thousands of lines of redundant logging that conveys very little information in between. Most of this logging is internal and technical in nature and would belong on the DEBUG log level.

If there are specific logs which you don't think should be at info level, can you please point them out? We're also very happy to accept pull requests if you want to do that as well.

When I install a GGv2 device from scratch and deploy a deployment that has ten or so components, afterwards the greengrass.log log file contains roughly 1500 lines.
For me the most useful ones are

nucleus started (x1)
new deployment job received (x1)
deployment job started (x1)
deployment of a component started (x10)
deployment of a component finished (x10)
deployment job finished (x1)

That would be 24 lines. Everything else related to the deployment process is only noise.

Understood, thank you. We'll audit our logging at info level to make sure the logs are as relevant as possible.


rkt: include preparing containers when matching a uuid

Though the uuid isn't returned until rkt prepare completes, it's still
discoverable via rkt list, and rkt status --wait a01b should work if
a01b is in the preparing phase.

LGTM


Unable to connect to an instance on Scaleway after reboot or waking up from standby mode

It looks like the authorized_keys file is erased at every boot. It requires to use the AUTHORIZED_KEY tag to set it up permanently

This looks like a bug with scaleway's authorized_keys handling process ...
Fixed as we now create our own admin user and copy the public key manually.

Not done. Same problem. Unable to connect to an instance on Scaleway after waking up from standby mode.


Add notifications to each webpage

We should be able to show notifications on the webpages that we can set in the admin backend.

Do you mean like announcements? Like on the thalia website? Or just the messages from the django messages framework?


Twitter url detection bug

My twitter handle is tipy and the renderer fails with the url and consider my username as markdown
You can see the big live in this post :
https://ecency.com/hive-131619/@cre47iv3/7o-weekly-contest-up-to-5-passports-and-10-nfts-giveaway#@cre47iv3/re-tipy-qyv8ss

arf github also tries to render markdown (looks like a curse) my handle is "tipy"


Divide model dimension of Transformer into encoder/decoder

Codecov Report

Merging #159 into master will decrease coverage by 0.06%.
The diff coverage is 10.86%.

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


feat: demo setup and teardown scripts

Provides scripts to set up and tear down the PostgreSQL distributed cluster in the demo folder.
Closes #18

the setup.sh script is working.
due to slow networking the timeout killed the script, but restarting it is also working fine


Add a BOM to the CSV file to enforce UTF-8

Changes
The CSV was not displaying correctly in MS Excel, due to UTF-8 encoding not being enforced. Enforce UTF-8 via a BOM prepended to the CSV data.
Screenshot below to show the aprostrophe in "Children's services" is being rendered correctly in Excel.

Checklist

[ ] Attach this pull request to the appropriate card in Trello.
[x] Update the CHANGELOG.md if needed.

 Help Excel handle special characters in funding agreement letter export: The BOM


[WIP] Integrate wfm module with imported UI modules

ping @wtrocki for progress

companion to https://github.com/feedhenry-raincatcher/raincatcher-angularjs/pull/5

@paolobueno is that still actuall? Maybe we can integrate this into another PR ?

Closing as outdated. Feel free to reopen if needed.


Use the click expose_value flag instead of popping off

Coverage decreased (-0.02%) to 63.953% when pulling 58210f9a3a027de9380322e820e16c61160c957b on AlanCoding:exposed_values into a3bad1e117e35a056d36c9f8f3a6bad40781b900 on ansible:master.

Coverage decreased (-0.02%) to 63.953% when pulling 58210f9a3a027de9380322e820e16c61160c957b on AlanCoding:exposed_values into a3bad1e117e35a056d36c9f8f3a6bad40781b900 on ansible:master.

Coverage decreased (-0.02%) to 63.953% when pulling 58210f9a3a027de9380322e820e16c61160c957b on AlanCoding:exposed_values into a3bad1e117e35a056d36c9f8f3a6bad40781b900 on ansible:master.


Add Help

add help pages to the app? showing web help or gin-cli help maybe.

Closed in #145.  Basic embedded browser opens GIN help pages.  Could be enhanced with offline help in the future but for now it will do.


improve graphs download names

suggested name format:
CBEClima_Location_GraphName.svg

@giobetti I tried to solve the problem and I partially succeeded. I was able to give a different name to figures in different tabs but all figures in the same tab have the same name. I used the following format: CBEClima_Location_TabName.
Kindly let me know what you think, if this suffices I will implement this in all the tabs and then close the issue (I have implemented this only in the climate summary and tmp and rh tabs. Alternatively, I can look more into it, I did try for an hour but it did not work.

Thanks, this is already an improvement.
Let me have a look at it.
Best,
G
Sent from my iPhone
On 16. Jun 2021, at 09:32, Federico Tartarini @.***> wrote:

@giobettihttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgiobetti&data=04|01||9e41127993724d795d9a08d93098d3b0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637594255210229252|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=BsCzgQUKynQQRl%2BkWEGhz%2BAbPkZg75O5ItBa1mEL%2BNU%3D&reserved=0 I tried to solve the problem and I partially succeeded. I was able to give a different name to figures in different tabs but all figures in the same tab have the same name. I used the following format: CBEClima_Location_TabName.
Kindly let me know what you think, if this suffices I will implement this in all the tabs and then close the issue (I have implemented this only in the climate summary and tmp and rh tabs. Alternatively, I can look more into it, I did try for an hour but it did not work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCenterForTheBuiltEnvironment%2Fclima%2Fissues%2F39%23issuecomment-862124779&data=04|01||9e41127993724d795d9a08d93098d3b0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637594255210229252|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=RKbGWYIhIrIjy40%2BZlFLxPNRPCK%2BzCjdz5YTUWPE1UE%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIWZJAEYKPCA2FYTV35S663TTBHO5ANCNFSM46V7LM4A&data=04|01||9e41127993724d795d9a08d93098d3b0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637594255210239243|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=UjEmkFgMmd%2BDTFzto22q96aVbKsZfz1jUS2uVRlFEwA%3D&reserved=0.

ok, I looked into this and I think the solution is to get rid of the
'toImageButtonOptions' inside the main config and then add the following lines in each graph
I have implemented it in the violin plots in the colab and it works
`graphName="CBE_Clima_"+City+"_"+Title
config['toImageButtonOptions']= {
'format': 'svg',
'filename': graphName }`

Found the solutin, found the error!
We should insert as well the name of the graph type or the name of the tab...

No unfortunately the solution you found does not work in Dash. I have already tried to add the toImageButtonOptions to each figure but still does not work. Or at least I cannot make it work. What shall we do?

...mmm... this s strange, I wonder why it does not work?
let's leave this for the moment and let's pick it up in the next phone call, maybe we can fix it together?

@giobetti I have finally fixed this issue. Now each chart is saved with its own unique name.


BilinearFormIntegrator using device memory

Hi all,
I see device memory functionality is not implemented for bilinear form integrators.
https://github.com/mfem/mfem/blob/master/fem/bilininteg.cpp
Is there any plan to introduce this functionality in the coming releases? I would appreciate it if you indicate to me if some branch is dealing with this issue.
Thank you in advance.

Device support for bilinear form integrators (mass and diffusion, for now) is in separate files:
https://github.com/mfem/mfem/blob/master/fem/bilininteg_mass.cpp
https://github.com/mfem/mfem/blob/master/fem/bilininteg_diffusion.cpp

Is there any plan to introduce this functionality in the coming releases?

Yes, we will be extending the device support to other integrators in the near future.

I am closing this now, but please don't hesitate to reopen if you have further questions.


Clear header search

Coverage: 94.318%. Remained the same when pulling a2fb0b796c4038ad7a8099e5632dd577e15b758d on cody-clear-header-search into eb1e8e86510af2694504f980dab3dc967f8e9c8a on main.


cant restart go:run inside watch task

I`m trying to live reload go webserver
my sample Gruntfile is:
go:
  options:
    GOPATH: ["."]
  backend:
    root: "src/backend"
    run_files: ["main.go"]
watch:
  backend:
  files: ["src/backend/**/*.go"]
  tasks: ["go:run:backend"]
  options:
    atBegin: true
    interrupt: true
    spawn: true

and main.go is simplest web server on port :8080
after changing main.go i see in console:
Running "watch:backend" (watch) task
Waiting...
Running "go:run:backend" (go) task
executing: go run main.go

Scheduled tasks have been interrupted...>> File "src/backend/main.go" changed.
Running "go:run:backend" (go) task
executing: go run main.go
>> 2014/10/19 10:27:30 listen tcp :8080: bind: address already in use

port used -> go binary not restarted
i`m think need some like
process.on('SIGINT', function () {
  proc.kill("SIGTERM");
});

inside spawnFunc but i`m trying this - it`s not enough :(

With the pull request above. you can us go:run:myapp:watched inside watch task.
watch: {
  go: {
        files: ['./myapp/{,*/}*.go'],
        tasks: ['go:run:myapp:watched'],
        options: {
          atBegin: true,
          interrupt: true
        }
      },
  \\ ...
}


Possible to pair airtag 3-party without macbook/Appel device

A script thats can setup New airtag and get a priv key compatible with https://github.com/dchristl/macless-haystack

I'm not sure I understand the question, but you can generate a new private key simply by using KeyPair.new(). When deployed on a tracker device, it will then be picked up by the FindMy network and become findable through this library (and macless haystack).
If that's not what you meant, please clarify 🙂

Closing due to inactivity, feel free to reopen if your question has not been answered.


Fixed a lot of issues with backend

Pull-request

[x] I have read the code of conduct.
[x] I have created a relating issue.

Changes

[x] Existing code
[x] New feature

Closes : NaN
Description
Replace this sentence with general description of what your Pull Request does.

Codecov Report

Merging #41 (9143c64) into main (2900df1) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff          @@
##            main     #41   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files         64      64
  Lines       2034    1994   -40
  Branches     133     134    +1
=====================================
+ Misses      2034    1994   -40

Impacted Files
Coverage Δ

...ming/backend/extension/MessageCommandExtender.java
0.00% <0.00%> (ø)

...amming/backend/extension/SlashCommandExtender.java
0.00% <0.00%> (ø)

...ramming/backend/extension/UserCommandExtender.java
0.00% <0.00%> (ø)

...ramming/backend/handler/MessageCommandHandler.java
0.00% <0.00%> (ø)

...ogramming/backend/handler/SlashCommandHandler.java
0.00% <0.00%> (ø)

...rogramming/backend/handler/UserCommandHandler.java
0.00% <0.00%> (ø)

.../io/github/org/programming/bot/ProgrammingBot.java
0.00% <0.00%> (ø)

...hub/org/programming/bot/RegisterSlashCommands.java
0.00% <0.00%> (ø)

...b/org/programming/bot/commands/ExampleCommand.java
0.00% <0.00%> (ø)

...org/programming/bot/commands/help/HelpCommand.java
0.00% <0.00%> (ø)

... and 30 more


[could not send message - file already closed - could not decode json] Playwright randomly crash after somes times.

Hi, i am facing multiples issues that make my program crash, it seems that i can't handle these errors.
When you see restarting it mean my browser is just closing and restarting.
Is there any way to handle theses errors instead of making the program panic?, thanks !
os: windows 11
cpu: i9 11900K
golang: 1.21.0

Logs
could not decode Json
2023/09/06 04:37:05 restarting
could not send message to server: Target closed
could not send message to server: Target closed
could not send message to server: Target closed
2023/09/06 04:37:05 could not decode json: read |0: file already closed
exit status 1
Appuyez sur une touche pour continuer... node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: EPIPE: broken pipe, write
    at Socket._write (node:internal/net:61:25)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at PipeTransport.send (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\protocol\transport.js:51:21)
    at dispatcherConnection.onmessage (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\cli\driver.js:53:57)
    at DispatcherConnection._sendMessageToClient (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:188:10)
    at DispatcherConnection.sendCreate (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:161:10)
    at new Dispatcher (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:66:40)
    at new AndroidDispatcher (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\androidDispatcher.js:28:5)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4047,
  syscall: 'write',
  code: 'EPIPE'
}

Node.js v18.16.0

File already closed
could not send message to server: could not send message: write |1: file already closed
could not send message to server: could not send message: write |1: file already closed
2023/09/06 14:04:26 could not decode json: read |0: file already closed
could not send message to server: could not send message: write |1: file already closed
exit status 1
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: EPIPE: broken pipe, write
    at Socket._write (node:internal/net:61:25)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at PipeTransport.send (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\protocol\transport.js:51:21)
    at dispatcherConnection.onmessage (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\cli\driver.js:53:57)
    at DispatcherConnection.dispatch (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:224:12)
    at transport.onmessage (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\cli\driver.js:52:57)
    at Immediate._onImmediate (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\protocol\transport.js:77:34)
    at process.processImmediate (node:internal/timers:476:21)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at process.processImmediate (node:internal/timers:447:9) {
  errno: -4047,
  syscall: 'write',
  code: 'EPIPE'
}

Node.js v18.16.0
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: EPIPE: broken pipe, write
    at Socket._write (node:internal/net:61:25)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at PipeTransport.send (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\protocol\transport.js:51:21)
    at dispatcherConnection.onmessage (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\cli\driver.js:53:57)
    at DispatcherConnection._sendMessageToClient (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:188:10)
    at DispatcherConnection.sendCreate (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:161:10)
    at new Dispatcher (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\dispatcher.js:66:40)
    at new AndroidDispatcher (C:\Users\arm\AppData\Local\ms-playwright-go\1.35.1\package\lib\server\dispatchers\androidDispatcher.js:28:5)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4047,
  syscall: 'write',
  code: 'EPIPE'
}

Node.js v18.16.0

The error shown in the log occurs in nodejs, which means the error occurred on the server side. And the upstream version shown by the log is v1.35.1. Please update playwright-go to the latest version and test again.

I'm having the same problem, it works fine on macOS, but on Win10 I get this error.
PS E:\Project\Workspace\Golang\auto-mooc> go run .\main.go
2023/09/19 22:58:42 could not decode json: invalid character 'v' looking for beginning of value
exit status 1
PS E:\Project\Workspace\Golang\auto-mooc> node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: EPIPE: broken pipe, write
    at Socket._write (node:internal/net:61:25)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at PipeTransport.send (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\protocol\transport.js:51:21)
    at dispatcherConnection.onmessage (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\cli\driver.js:53:57)
    at DispatcherConnection._sendMessageToClient (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:189:10)
    at DispatcherConnection.sendCreate (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:162:10)
    at new Dispatcher (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:66:40)
    at new AndroidDispatcher (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\androidDispatcher.js:28:5)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4047,
  syscall: 'write',
  code: 'EPIPE'
}

Node.js v18.17.0

I'm having the same problem, it works fine on macOS, but on Win10 I get this error.
PS E:\Project\Workspace\Golang\auto-mooc> go run .\main.go
2023/09/19 22:58:42 could not decode json: invalid character 'v' looking for beginning of value
exit status 1
PS E:\Project\Workspace\Golang\auto-mooc> node:events:492

@skye-z It appears that the data received from the io pipe has an incorrect message format. Can you debug it and see what happened before the error occurred?
Set environment variable DEBUGP=1 can print verbose log.

@canstand Ok, I manually set the environment variable os.Setenv("DEBUGP", "1") in the code, and here is the new output
E:\Project\Workspace\Golang\auto-mooc>go run main.go
SEND>
{"guid":"","id":1,"metadata":{"apiName":"SerializeCallStack","isInternal":false,"location":{"file":"connection.go","line":138},"wallTime":371571000},"method":"initialize","params":{"sdkLanguage":"javascript"}}
2023/09/20 21:33:44 could not decode json: invalid character 'v' looking for beginning of value
exit status 1

E:\Project\Workspace\Golang\auto-mooc>node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: EPIPE: broken pipe, write
    at Socket._write (node:internal/net:61:25)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at PipeTransport.send (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\protocol\transport.js:51:21)
    at dispatcherConnection.onmessage (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\cli\driver.js:53:57)
    at DispatcherConnection._sendMessageToClient (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:189:10)
    at DispatcherConnection.sendCreate (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:162:10)
    at new Dispatcher (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\dispatcher.js:66:40)
    at new AndroidDispatcher (C:\Users\Skay\AppData\Local\ms-playwright-go\1.37.1\package\lib\server\dispatchers\androidDispatcher.js:28:5)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4047,
  syscall: 'write',
  code: 'EPIPE'
}

Node.js v18.17.0

The new output has more SEND>  JSON, which I've formatted below for ease of viewing.
{
    "guid": "",
    "id": 1,
    "metadata": {
        "apiName": "SerializeCallStack",
        "isInternal": false,
        "location": {
            "file": "connection.go",
            "line": 138
        },
        "wallTime": 371571000
    },
    "method": "initialize",
    "params": {
        "sdkLanguage": "javascript"
    }
}

I suspect it's due to anti-virus software. Because playwright-go will run ~\AppData\Local\ms-playwright-go\1.37.1\playwright.cmd and bind to its stdin and stdout to communicate. The log above shows that the first response format of playwright.cmd is incorrect, so it may have been intercepted.

@canstand  Sorry, I don't have a standalone antivirus installed, I'm just using Microsoft Defender that comes with Windows 10.
I disable the real-time and tamper protection features of Microsoft Defender, but it still gives the same error message when it runs 😥

Considering that there might be a problem with playwright, I ran it manually, and it works fine.

Notice Active code page: 65001 , maybe it’s because of this: https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window

@canstand It's working fine now, thanks a lot. 👍
I added the autorun field to the registry, which automatically executes chcp 65001 when Command starts, deleted it, and everything is back to normal. 😀


Get all listings for a moment?

Instructions
Please fill out the template below to the best of your ability and include a label indicating which tool/service you were working with when you encountered the problem.
Issue To Be Solved
I was wondering if there was a feature where I can put in a moment ID and get all the listings with the serial number and price for that particular moment, similar to what we see on NBATopShot. If it already exists, can someone point me to the write API code? If not, are you guys planning to add that?

@arishabh this isn't possible in Cadence, because sales are stored in each users accounts. We might in the future have a central aggregator that you can query, but it won't happen any time soon. Your best bet right now is to query event history to find sale listings.


why init_kvcache need vattention.reserve_physical_pages(GPU_MEM_RESERVE)

I believe this is similar to how vLLM reserves actual resources at startup. According to the paper, no actual resources should be allocated at startup; the CUDA interface should only be invoked to allocate resources when processing inference requests.

The reserve_physical_memory API currently only allocates physical memory pages from the driver during initialization. It does not map physical pages into the virtual tensors of KV cache; mapping is done when processing inference requests as you mentioned.  You are also right that this is not fundamentally required but we use it simply to use the same amount of memory for KV cache as vLLM; it helps us do a fair performance comparison between the two systems (otherwise batch sizes between vLLM and vAttention could differ).  Caching physical pages also helps with optimizing latency. If we allocate physical pages on demand, it will double to latency of growing the KV cache.


ClassNotFoundException: com.google.inject.Module

I've been using Guice for quite a while now and since like 1 or 2 days, every time I try to compile it with Gradle, it just doesn't seem to work. I'm using the same build.gradle file I've used throughout all my projects. I also tried downloading the jar file from: https://github.com/google/guice/releases and putting it inside of a libraries folder and compiling it from there and that didn't work either... All my libraries compile except Guice.

My build.gradle file was horrible. Sorry about that.


[ICON]: Java package-info/module-info.class

Icon Path or AllIcons Field
AllIcons.FileTypes.Java
What does it look like?

What Plugin?
No response
How to get to it?
Step One: Open Project

I added this in #27

Are you wanting something different?

Oh, this time it's .class not .java.

Think that it's odd that it uses /fileTypes/java.svg and it does not use the coffee cup. Might be related to https://github.com/doki-theme/doki-theme-icons-jetbrains/issues/34#issuecomment-1384698137 at the moment.


[cloud] set ssh ControlPath and use it to detect existing VM Host

Summary
We would like devbox cloud shell sessions in multiple terminal tabs to connect
to the same VM Host. Reason:

Speed: that VM host already has the correct packages installed
User may want to monitor some existing process from the other tab

Unfortunately, fly.io isn't reliably connecting to the gateway of the same region,
so we need to implement a manual solution.
Solution:

Use a single ssh connection using ControlMaster and ControlPath in ssh config.
Set its timeout to be 300 seconds, which matches the scale-to-zero timeout in the VM's
docker image for when it shuts down.
Inspect the ~/.config/devbox/ssh directory for a ControlPath socket, and derive
the existing VM hostname from the socket name.

How was it tested?
started devbox cloud shells in two tabs and ensured it reuses the VM hostname from
the socket of the ControlPath

Current dependencies on/for this PR:

main

PR #418   👈

This comment was auto-generated by Graphite.

This is pretty cool! It almost seems too simple. I'm trying to think through if there are any edge cases where we can end up with more than 1 connection. Does all of this play nice with mutagen too?


PageController addListener not triggers on page zero

Steps to Reproduce
1- Add a PageView.builder with a PageController attached to it
2- Listen to page changes by the help of pageController.addListener and print "Page changed"
3- Change the PageView page by the help of pageController.jumpToPage(index)
Expected results:
It should prints "Page changed" on every page change.
Actual results:
It just prints on page changes except page 0.
• Flutter version 2.2.3
• Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4

Hi @papmodern,
I am not able to reproduce the issue  I could see the "page Changed" getting printed when jumpToPage()  is executed. here's the sample code to try.

code sample
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: PageViewDemo(),
      ),
    );
  }
}

class PageViewDemo extends StatefulWidget {
  PageViewDemo({Key? key}) : super(key: key);

  @override
  PageViewDemoState createState() => PageViewDemoState();
}

class PageViewDemoState extends State<PageViewDemo> {
  final PageController pageController = PageController(initialPage: 0);

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    pageController.addListener(() {
      print('page Changed');
    });
  }

  int page = 1;
  @override
  Widget build(BuildContext context) {
    double width = MediaQuery.of(context).size.width;
    return Column(
      children: [
        Expanded(
          child: PageView.builder(
            itemCount: 20,
            scrollDirection: Axis.horizontal,
            controller: pageController,
            itemBuilder: (_, index) => Center(
              child: Text('Page $index'),
            ),
          ),
        ),
        Expanded(
            child: Container(
                alignment: Alignment.center,
                child: ElevatedButton(
                  child: Text('Jump to page'),
                  onPressed: () {
                    pageController.jumpTo(page * width);
                    page += 1;
                  },
                )))
      ],
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-GB)
    • Flutter version 2.2.3 at /Users/mahesh/Documents/flutter
    • Framework revision f4abaa0735 (2 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.58.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

Thank you.

@maheshmnj Thanks for the sample code. It works fine. I'll investigate more and reopen the issue in case of potential bug


Creating output_file matrix and heatmap

Hi, can you kindly help me with this error. Seems seaborn has issues with making the plots.
Thank you
#####################
Creating output_file matrix and heatmap...
There are no modules above 50% completeness. Plotting all modules regardless of completeness.
Traceback (most recent call last):
File "/root/miniconda3/envs/microbeannotator/bin/microbeannotator", line 981, in
main()
File "/root/miniconda3/envs/microbeannotator/bin/microbeannotator", line 971, in main
metabolism_matrix_dropped_relabel, module_colors = ko_mapper.create_output_files(metabolic_annotation, metabolism_matrix, module_information, cluster, prefix)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/microbeannotator/pipeline/ko_mapper.py", line 568, in create_output_files
cbar_kws= {'orientation': 'horizontal', 'label': 'Module Completeness (%)'}, dendrogram_ratio=0.1)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/_decorators.py", line 46, in inner_f
return f(**kwargs)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 1412, in clustermap
tree_kws=tree_kws, **kwargs)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 1234, in plot
self.plot_matrix(colorbar_kws, xind, yind, **kws)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 1187, in plot_matrix
xticklabels=xtl, yticklabels=ytl, annot=annot, **kws)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/_decorators.py", line 46, in inner_f
return f(**kwargs)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 537, in heatmap
yticklabels, mask)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 156, in init
cmap, center, robust)
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/seaborn/matrix.py", line 194, in _determine_cmap_params
vmin = np.nanmin(calc_data)
File "<array_function internals>", line 6, in nanmin
File "/root/miniconda3/envs/microbeannotator/lib/python3.7/site-packages/numpy/lib/nanfunctions.py", line 319, in nanmin
res = np.fmin.reduce(a, axis=axis, out=out, **kwargs)
ValueError: zero-size array to reduction operation fmin which has no identity

Hi @eddykay310!
Would it be possible for you to share the results of the annotation? Mostly the KO identifiers so I can debug it? Thanks!

Any mail I can send the files to?
Thanks

Also I would like to ask what could be the reason for getting the same set of genes in the metabolic_summary__module_completeness tab file after running the analysis. I used two different fasta files but got the same output

same problem here.
@cruizperez can you provide a small data set for testin purpose ?
regards
Eric


8.0.2xx compatibility known issue

Will VS 17.10 be released soon? It feels strange to require a pre-release version.


Handle spaces in TOTP secret

Hi, when I enter a TOTP secret with spaces and klick register, nothing happens. Pls handle this, show an error message or trim the secret.

When you enter a secret with spaces and click saves, still nothing happens (v. 1.1.1)


Adopt ruff

Fixes #152
I used https://pypi.org/project/flake8-to-ruff and added line-length and isort config.

hey @blink1073 👋🏻 this is AMAZING. we were just talking about ruff and moving everything to ruff and here is the pr!! THANK YOU so so much!!

also are you interested in joining our slack? i can't remember if i already asked you this!


NIFI-2280 marked methods as deprecated which will be removed in next major release

This PR must only be applied to the 0.x line.

Looks good overall, a couple of the deprecated markings are missing a corresponding "@deprecated use other getCipher requiring a salt" javadoc. I'll just add them for you because everything else looks good.

@joewitt just pushed out the change but since it's only on the 0.x branch you'll need to close this PR manually.
https://git1-us-west.apache.org/repos/asf?p=nifi.git;a=commit;h=537b3d0d


Exclude tags from being reported by knative.dev/test-infra/tools/go-ls-tags tool

Changes
Fixes https://github.com/knative/pkg/issues/2643
Fixes https://github.com/knative/actions/issues/86
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs included if any changes are user facing
[ ] Has Tests included if any functionality added or changed
[ ] Follows the commit message standard
[ ] Meets the Tekton contributor standards (including
functionality, content, code)
[ ] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

This feels like an abstraction violation. Why should this repo need to maintain a file so that tests in some other repo don't fail? People adding new build tag scenarios to Tekton might (even "should") have no idea that some remote test could be affected by it.
Can this be maintained in knative/pkg instead? Or, should we just disable knative's failing downstream test of Tekton?

Can this be maintained in knative/pkg instead? Or, should we just disable knative's failing downstream test of Tekton?

Ofc it is violation. That's the purpose of the downstream test.
The downstream test benefit Tekton because you are using knative/pkg. If someone refactors something from knative/pkg that you are using, it will not pass the downstream test. So, it saves you from upstream breaking changes.
So, I'd say your call...

Worth adding that knative/pkg doesn't have tags, so you always rely on latest commit being merged. That's why there is this downstream test in the first place.

@vdemeester said:

We do not rely on the last commit though, most of the time, we "rely" on the versionned branches (release-*).

If so, maybe we can remove the downstream test for tektoncd/pipeline?

@vdemeester said:

We do not rely on the last commit though, most of the time, we "rely" on the versionned branches (release-*).

If so, maybe we can remove the downstream test for tektoncd/pipeline?

Probably yes.

/ok-to-test
/approve

I don't think this PR is necessary anymore since the downstream tests got removed. Feel free to reopen if that's not the case
/close


Changing titles

Following the change of title for CS folks, making the necessary changes to reflect this in this doc.

Deleting this since V is working on a PR to make changes to the titles on CS handbook


[4.1]Ease the get of inputs from dependant fields in api's

I found this issue while debugging relationships and dependencies as part of my work on #3065
As it is now when you are using dependencies with ajax fields, the docs says the way to grab the inputs is to use:
$form = collect($request->input('form'))->pluck('value', 'name');

If your form have any select multiple field you would endup with articles[] or categories[] in your form request, as many times as many of those entities you have selected. When you grab the request('form') this is what you get:

After you call pluck('value', 'name') on it you get:

### Notice we only have one of the selected articles[] and one of the selected categories[] ?
Also the names of the HasOne relations comes as they are in html address[street] but developer used address.street as the field name.
So with this PR the result of $form_values = backpack_input_parse(request('form')); would be:

So the docs should be updated accordingly to:
    public function fetchCategory()
    {
        return $this->fetch([
            'model' =>  \Backpack\NewsCRUD\app\Models\Category::class,
            'query' => function($model) {

                $form = backpack_input_parse(request('form'));

                return $model->where('category_id', $form['category_id']);
            }
        ]);
    }

//same for api request
$form = backpack_input_parse(request('form'));
if(!is_null($form['field'])) {
}

Best,
Pedro

A new inspection was created.

The inspection completed: 1 updated code elements

@pxpm I think this is a great helper 👌
Quick question on this, in your example, shouldn't address be an array too?
'address' => [
    'street' => 'my new address',
    'icon_id' => 31,
]

Developers would access like $form['address']['street'], instead of $form['address.street'] even though they defined the field as address.street.

@pxpm I think this is a great helper 👌
Quick question on this, in your example, shouldn't address be an array too?
'address' => [
    'street' => 'my new address',
    'icon_id' => 31,
]

Developers would access like $form['address']['street'], instead of $form['address.street'] even though they defined the field as address.street.

I agree with array instead of dot.
will refactor accordingly. Thanks @promatik

I agree with array instead of dot.
will refactor accordingly. Thanks @promatik

A new inspection was created.

A new inspection was created.

A new inspection was created.

A new inspection was created.

Just refactored according to our conversation @promatik , renamed to backpack_form_input(), removed the required parameter and refactored to return arrays instead of dot notation names.
I searched for a regex vs str functions and it seems str functions perform better than regex.
Let me know.
Best,
Pedro

Just refactored according to our conversation @promatik , renamed to backpack_form_input(), removed the required parameter and refactored to return arrays instead of dot notation names.
I searched for a regex vs str functions and it seems str functions perform better than regex.
Let me know.
Best,
Pedro

The inspection completed: 1 new issues, 1 updated code elements

The inspection completed: 1 new issues, 1 updated code elements

A new inspection was created.

A new inspection was created.

The inspection completed: 1 new issues, 1 updated code elements

The inspection completed: 1 new issues, 1 updated code elements

The inspection completed: 1 new issues, 1 updated code elements

The inspection completed: 1 new issues, 1 updated code elements

@pxpm can you also add the PR to fix the docs?

@pxpm can you also add the PR to fix the docs?

A new inspection was created.

A new inspection was created.

A new inspection was created.

A new inspection was created.

Docs here: https://github.com/Laravel-Backpack/docs/pull/224

Docs here: https://github.com/Laravel-Backpack/docs/pull/224

The inspection completed: 1 new issues, 1 updated code elements

The inspection completed: 1 new issues, 1 updated code elements


darkened the button colors and updated hover color for better visualization closes #456

… fixes #456
Made minor changes to the hover color and highlights of the links.

@swapagarwal can I get a review on this PR whether it can be merged or not.


Potential support for double-slash comments.

Hello! I see in the readme that there is hesitancy to adding support for double-slash comments within styled components, but with it being a syntax error rather than a rule, it can create some roadblocks in the developer experience.  Because they aren't parsed properly, the developer doesn't have an explicit explanation of what caused the error (for example the no double slash comments rule).  In larger organizations where it might not be widespread knowledge that we should not be using double-slash comments in styled components, there is unclear messaging on how to move past this issue.  As a workaround currently (in my own fork), I'm modifying the tokenizer to classify double slash comments the same as block comments so developers don't encounter this.  Is this, or a similar solution where we can have the double-slash moments parsed normally, something you would consider merging?  I'd be happy to write a PR.  Thanks!

I find this messaging:

to be more explicit and helpful than this messaging:

let me know what you think!  This package is really helpful and I would love to be able to use it in our project.  Thanks again

Hello! I see in the readme that there is hesitancy to adding support for double-slash comments within styled components, but with it being a syntax error rather than a rule, it can create some roadblocks in the developer experience.

Hesitance comes from few points:

I don't want to spend time implementing and maintaining it.
For a 4 years previous CSS-in-JS syntax for PostCSS existed I don't remember much complain about it not supporting double-slash comments.
Standard CSS comments work great. While it is possible to use double-slash comments in Styled Components, I see no point of encouraging it.

Because they aren't parsed properly, the developer doesn't have an explicit explanation of what caused the error (for example the no double slash comments rule). In larger organizations where it might not be widespread knowledge that we should not be using double-slash comments in styled components, there is unclear messaging on how to move past this issue.

I agree messaging is not clear. It is comming directly from PostCSS default parser. I tried to change as minimal as possible in the parser. Because I'm not a parser expert, and I would rather rely on PostCSS authors experience. Even for future updates of a parser.
Stylelint with default parser also shows “Unknown word” error. no-invalid-double-slash-comments could detect only few cases, and only if parser could parse styles.

Is this, or a similar solution where we can have the double-slash moments parsed normally, something you would consider merging? I'd be happy to write a PR. Thanks!

I'm not sure it worth the effort to complicate parser with double-slash comments. As history showed us, it is not a big deal that they are not supported.
Also, adding support for it will make future update to parser harder. As the idea is to backport changes from PostCSS default parser back to this parser as CSS spec evolves.

-1 for this feature request. We are so happy this is a default rule in the checker because all minifiers strip out whitespace and if there are any // in the CSS the remainder of it gets considered a comment.
Obvious example:
body {
  color: red;
}
// override body color
body {
  color: blue;
}

gets minified to:
body{color:red;}// override body color body{color:blue;}

and as you can imagine doesn't have the desired effect.


Adds Config for Highlighted Mould color

I had trouble noticing the default green.

Updates runeliteVersion to latest.release, inline with the example plugin repo.
Adds a config item mouldHighlightColor
Uses config.mouldHighlightColor when highlighting the mould.

I initially started to implement full-widget highlighting but there were a few issues I wasn't confident were elegantly solved. (highlight-widgets branch) -- happy to work through full widget highlighting if you prefer!

Full highlight example
 Blue highlight is the bestWidget from the MouldHelper and the other is the normal selected highlight, just for comparison.

Hi, thanks for your efforts. This will be added among other color highlights in another PR I just made. When it's updated there will be a section called Colour at the bottom of the plugin config for customizing almost all of the colours used in the plugin.


[BUG]: Error: Cannot find native module 'ExpoSQLiteNext'

What version of drizzle-orm are you using?
0.31.2
What version of drizzle-kit are you using?
0.22.7
Describe the Bug
Create an Expo SDK 51 app, and follow the expo SQLIte Guide and setup drizzle-kit for migrations with the db initialization stuff in your root layout file
Alternatively, you can see my complete setup at: https://codeberg.org/devramsean0/CardManager
Expected behavior
It loads up fine and creates the db before doing the migration.
Instead gives the error `Cannot find native module 'ExpoSQLiteNext'
Environment & setup
Expo SDK v51 with expo-sqlite 14.03, running in an Android simulator with dev-client

I solved it, turns out my sim was running an outdated dev client


Fix invisible poster in Safari

Link to related issue (if applicable)
#2064
Summary of proposed changes
Safari needs to have a set z-index on .plyr__video-wrapper to not hide the poster image, so we inherit z-index from .plyrwith the value of 0.
Checklist

[x] Use develop as the base branch
[x] Exclude the gulp build (/dist changes) from the PR
[x] Test on supported browsers

Hey guys, seems like setting the z-index to 0 explicitly instead of "inherit" solves the issue for me without any side effects. If that's the case for you guys maybe we can update this pull request and get it merged?


update

Can one of the admins verify this patch?

Is this PR created by mistake, by any chance?
I do not think we can accept this change, but just to make sure,
cc/ @josh11b @asimshankar @skye

I'm guessing this was accidentally created too.
If I'm wrong, @jsonkey , would appreciate some discussion on what you're trying to achieve here and the best way to do so (for example, we'd want to avoid enhancements to TF_DeprecatedSession and instead have changes focused on TF_Session).


Posing Polygon2D by Skeleon2D is not affected by bones transformation

Godot version
v4.0.beta.custom_build [3ef8d3e4e]
System information
Pop_OS! Linux, NVIDIA GeForce GTX 1050 Ti 4GB GDDR5
Issue description
When using Skeleton2D and Nonde2D with Polygon2D and rotating a bone, rotation pivot of Polygon2D seems not to be affected by its transformation.
Steps to reproduce
Create a project with Skeleton2D, Bone2D and assign them to some Polygon2D and rotate some bones
Minimal reproduction project
Here is project in Godot 4:
https://github.com/elmordo/SkeletonProblem_v4
https://youtu.be/BHGpk0PJ6s0
In Godot 3 works all fine:
https://github.com/elmordo/SkeletonProblem_v3
https://youtu.be/irPcaZ0ETEY

Seems like a duplicate of https://github.com/godotengine/godot/issues/71108

@clayjohn  I read the #71108 and yes, it is the same. And read your comment there

Right now to have rotations work correctly you need to set the polygon's pivot to be the origin (i.e. 0,0). This was not the case in 3.x, but due to how bones work in 4.0, it may be necessary.

so it is not bug and in Godot 4 we will have to set origin to [0, 0] and move texture around with Polygon2D.offset property?

so it is not bug and in Godot 4 we will have to set origin to [0, 0] and move texture around with Polygon2D.offset property?

I hesitate to say that as the new behaviour is really annoying and I would like for us to find a way to get back to the old behaviour if we can.
There is a button in the editor to place the root which sets the origin and Polygon2D.offset automatically, but it still feels like an unnecessary manual step

I hesitate to say that as the new behaviour is really annoying and I would like for us to find a way to get back to the old behaviour if we can.

Yep, it is really annoying, but it is still beta.

There is a button in the editor to place the root which sets the origin and Polygon2D.offset automatically, but it still feels like an unnecessary manual step

Where is this button? I can't see it (I have build from yesterday's evening - 3ef8d3e4e80887d21009abc84def627e8a1c031f ). This button can save my sanity :-D

Oh, sorry, my bad. I didn't thing of this. Thank you very much :-)
(also closing this issue as duplicate)


Can no longer create pipelines after upgrading to 1.x from 0.27.0

Describe the bug
After following the steps to upgrade to v1.0 I am no longer able to create new pipelines for my GitHub repositories using the terraform provider.
The error I get:
buildkite_pipeline.this: Creating...
╷
│ Error: Failed to create pipeline
│
│   with buildkite_pipeline.this,
│   on main.tf line 35, in resource "buildkite_pipeline" "this":
│   35: resource "buildkite_pipeline" "this" {
│
│ Failed to create pipeline: input: Please ensure at least one team is added to this pipeline
│
╵

To Reproduce
Original terraform, working in 0.27.0:
locals {
  organization = "my-org"
  repo = "my-repo"
  buildkite_team = "my-team"
  team_access = "MANAGE_BUILD_AND_READ"
}

terraform {
  required_providers {
    buildkite = {
      source = "buildkite/buildkite"
      version = "0.27.0"
    }
    github = {
      source = "integrations/github"
    }
  }
}

provider "buildkite" {
  organization = local.organization
}

provider "github" {
  owner = local.organization
}

data "github_repository" "this" {
  full_name = "${local.organization}/${local.repo}"
}

resource "buildkite_pipeline" "this" {
  name           = local.repo
  repository     = data.github_repository.this.ssh_clone_url
  default_branch = data.github_repository.this.default_branch
  steps          = <<EOF
agents:
  queue: "something"

steps:
  - command: "blah.sh"
  - command: "blahblah.sh"
  - label: "Yada"
    command: "yada.sh"
    agents:
      queue: "other"
EOF

  provider_settings {
    publish_commit_status                         = true
    publish_commit_status_per_step                = true
    separate_pull_request_statuses                = true
    build_branches                                = true
    build_tags                                    = true
    build_pull_requests                           = true
    build_pull_request_forks                      = false
    skip_pull_request_builds_for_existing_commits = false
    trigger_mode                                  = "code"
  }

  team {
    slug         = local.buildkite_team
    access_level = local.team_access
  }
}

resource "github_repository_webhook" "this" {
  repository = data.github_repository.this.name

  configuration {
    url          = resource.buildkite_pipeline.this.webhook_url
    content_type = "json"
    insecure_ssl = false
  }

  active = true

  /* According to Buildkite docs:
   *
   * Check Let me select individual events. and the following events:

      - Deployments

      - Pull Requests

      - Pushes
  */
  events = ["deployment", "pull_request", "push"]
}

New terraform, broken in 1.x (I tested on 1.1.1 when writing this issue):
locals {
  organization = "my-org"
  repo = "my-repo"
  buildkite_team = "my-team"
  team_access = "MANAGE_BUILD_AND_READ"
}

terraform {
  required_providers {
    buildkite = {
      source = "buildkite/buildkite"
    }
    github = {
      source = "integrations/github"
    }
  }
}

provider "buildkite" {
  organization = local.organization
}

provider "github" {
  owner = local.organization
}

data "github_repository" "this" {
  full_name = "${local.organization}/${local.repo}"
}

data "buildkite_team" "team" {
  slug = local.buildkite_team
}

resource "buildkite_pipeline" "this" {
  name           = local.repo
  repository     = data.github_repository.this.ssh_clone_url
  default_branch = data.github_repository.this.default_branch
  steps          = <<EOF
agents:
  queue: "something"

steps:
  - command: "blah.sh"
  - command: "blahblah.sh"
  - label: "Yada"
    command: "yada.sh"
    agents:
      queue: "other"
EOF

  provider_settings = {
    publish_commit_status                         = true
    publish_commit_status_per_step                = true
    separate_pull_request_statuses                = true
    build_branches                                = true
    build_tags                                    = true
    build_pull_requests                           = true
    build_pull_request_forks                      = false
    skip_pull_request_builds_for_existing_commits = false
    trigger_mode                                  = "code"
  }
}

resource "buildkite_pipeline_team" "pipeline_team" {
  pipeline_id  = resource.buildkite_pipeline.this.id
  team_id      = data.buildkite_team.team.id
  access_level = local.team_access
}

resource "github_repository_webhook" "this" {
  repository = data.github_repository.this.name

  configuration {
    url          = resource.buildkite_pipeline.this.webhook_url
    content_type = "json"
    insecure_ssl = false
  }

  active = true

  /* According to Buildkite docs:
   *
   * Check Let me select individual events. and the following events:

      - Deployments

      - Pull Requests

      - Pushes
  */
  events = ["deployment", "pull_request", "push"]
}

Difference between old and new terraform:
12d11
<       version = "0.27.0"
31a31,34
> data "buildkite_team" "team" {
>   slug = local.buildkite_team
> }
>
49c52
<   provider_settings {
---
>   provider_settings = {
59a63
> }
61,64c65,68
<   team {
<     slug         = local.buildkite_team
<     access_level = local.team_access
<   }
---
> resource "buildkite_pipeline_team" "pipeline_team" {
>   pipeline_id  = resource.buildkite_pipeline.this.id
>   team_id      = data.buildkite_team.team.id
>   access_level = local.team_access

Expected behavior
New pipelines are able to be created using the Buildkite terraform provider.
Additional context
I think this is related to https://github.com/buildkite/terraform-provider-buildkite/issues/84, where I also commented.

Hey @daxxog!
If you have access to a state backup - that would be the most ideal way. The only callout of course being that v0.27.0 is the specific version where that team block removal -> buildkite_pipeline_team translation for all team membership in your pipeline resources needs to occur, which is what I believe is blocking you here.
There will be that small window where the translation to the buildkite_pipeline_team occurs (teams removed then added again), but after that, you should be able to move over to v1.1.1+ and create new pipelines again without issues.
Let us know how you go 👍

Yes, to confirm, the two terraform snippets I shared and the results I am encountering (v1.1.1-->Please ensure at least one team is added to this pipeline) are both tested against fresh terraform states.

Thanks @daxxog
Given you said that this is also happening on fresh state: I'll have a more closer look and attempt to replicate. The only other indicator being is that is the API token that you are using to invoke the plans/applies an Administrator of the organization? That error message is a directive from that from the API, though from the provider's side, the vXX -> v0.27.0 -> v1.0+ would need that intermediary switch for the team membership as we chatted on above

No worries - that looks like the full-suite of REST scopes, and GraphQL being permissive too.
Shall do some investigating - we'll relay if any more information is needed

Thank you @james2791 !

@james2791 I am running into the same issue on my end as well.  I am not a BK org admin and the pipeline cannot be created.
I have the same scopes as above, testing the same way, and also just finished migrating to 0.27.0 to 1.1.0 and having this issue.

Hey @lucasoskorep - thanks for letting me know a similar case has occurred - on the premise as above, was there a point on v0.27.0 where you transitioned from the team block over to the new buildkite_pipeline_team  resource and then moving over to v1.0.0+?
My working assessment as of writing is the jump over without the initial transition (also through tests on my side) but would be also good to know how that team <-> pipeline relationship was handled too to nail the case down!

Hey @james2791
So I reformatted the state from scratch at 0.27.0. I created the new pipeline_team resources in addition to our pipelines and then imported all of them into the state using the provided instructions and terraform import.
From there I bumped the version to 1.0.0+ , changed the equals sign on provider_settings in the pipeline_team, planned,  and applied.
After this everything works with existing pipelines but I cannot create any new pipelines.

Thanks for the loop @lucasoskorep! (also applies to you @daxxog)
Seems like this one might be a little more tricky to reproduce as all attempts on my side are proving fruitful with the team block -> buildkite_pipeline_team resource through a v0.26.0 -> 0.27.0 -> v1.x upgrade process. Will close this one out for now, but would like to look at each of your cases closer specifically to reproduce/see a common trend and then take action on what can be done with resolving the creation errors. Could you both please send through org links/names of tokens etc and any/all resource configuration (outside additionally shared as above)?
Much obliged and thanks for the patience so far 🙂

Full loop also to you @lucasoskorep - Happy New Year also!
We've worked out that this is a quirky side-effect of using an API token tied to a User (non Administrator BK account as discussed above) and the ruling around what these users can do (as that small, intermediate window where a pipeline is moved from the team block over to the buildkite_pipeline_team is something an Administrative token can only do . We'll be looking into this in the near future but will liaise on any potential updates that we have (also with any releases that directly target this).
Thanks for your patience too!

Fixed in https://github.com/buildkite/terraform-provider-buildkite/pull/479 I believe.


"name 'ifilterfalse' is not defined" in Python3

Hi,
I've tried to run PyTorch implementation in Python 3.6 and got the error:
    226     l = iter(l)
    227     if ignore_nan:
--> 228         l = ifilterfalse(isnan, l)
    229     try:
    230         n = 1

NameError: name 'ifilterfalse' is not defined

I think the function needs to be aliased after import in Python 3 like this:
from itertools import filterfalse as filterfalse

I suppose you meant from itertools import filterfalse as ifilterfalse. That is correct. I'm open to a PR if you want to send one. Cheers, Maxim

https://github.com/bermanmaxim/LovaszSoftmax/pull/16
PR for solving this problem.

Thanks!


More design love for the offer manager

This PR refactors the layout for the offer overview and limits the number of rows in the item selection view to 6 rows.

 More design love for the final offer overview

I like the icons and explicitly stating what information is shown. I also like using the textareas to show the details and experiment design 🚀
What would you think about having the titles like "project manager" above the actual project manager name? I think that would make it look more clean and would show the information more condensed (take up less space) which would be good especially for small screens.

Thank you Jenny for your review. The layout is due to the FormLayout i use underneath it. I decided for this approach, because the label + content order we had before, was more cluttery.


v5: Revisit table styles

#26678 has conflicts and tried to tackle a ton, so let's revisit style scoping, Sass maps, and more in v5.

A list of the table style issues:

Nested table

#26678, #29244, #27800, ＃30251

Color variants

#24529 Inconsistent .table-active color caused by the opacity
#27879 .table-dark is used in two conflicting contexts
#28160 Hover style for table rows/cells color classes
#25675 Table row-variants does not respect font-color
#29290 Contextual table classes apply tr class instead of td class to individual cells

Others

#25057 Table cell padding in card
#29244 Table child elements (thead, tbody, tfoot, tr, td, th) should inherit parent background color

Perhaps a .table-reset class for child nested tables to negate the parent class inheritance?

@mdo Sorry but I don’t get it. Even if not many people requested a bug or problem there is still a reason to improve a selectors. Current behavior is just confusing. With not much effort we can provide a better tool. I can prepare the PR for example 😁

https://github.com/twbs/bootstrap/pull/30466 closed this issue


Logs are not inserted when the app is closing or if the app crashes

Hi. Thanks for the library.
To reproduce the steps:

Create WPF app on .net core 3.1
Add Application Exit event in App.xaml
Add "Global exception handler" to the start up of the app and hook up to AppDomain.CurrentDomain.UnhandledException / Application.Current.DispatcherUnhandledException / TaskScheduler.UnobservedTaskException etc..
Inform the user that the app crashed and let it crash

Scenario number 1

Start the app
Click on "x" button in a corner
App is closing, putting breakpoint on Application Exit to make sure it does happen, but when I say "log some information", that string is never inserted in the database

Scenario number 2

Start the app
Call some method that will throw unhandled exception
Some of the events that we hooked up in global ex class fire
Again log.error the type of the error for example, but it never gets inserted

Can you confirm the behaviour that I described here?

Closing since looks like this library is no longer actively maintained....

Sorry not really active on this repo, you got a PR which can be merged?
On Wed, Jan 26, 2022, 21:00 sekulicb @.***> wrote:

Closed #13 https://github.com/vip32/serilog-sinks-litedb/issues/13.
—
Reply to this email directly, view it on GitHub
https://github.com/vip32/serilog-sinks-litedb/issues/13#event-5959184717,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABIDT6SABFIFXFYEG4I2F3UYBHHHANCNFSM5DEM26YA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>


Compilation error in v0.6.1 build

Hi, I just tried to compile the latest released version v0.6.1 and this error appeared:

error[E0658]: use of unstable library feature 'duration_checked_float'
--> src\ffprobe.rs:99:13
|
99 |             Duration::try_from_secs_f64(duration_f)
|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #83400 https://github.com/rust-lang/rust/issues/83400 for more information
For more information about this error, try rustc --explain E0658.
error: could not compile ab-av1 due to previous error

This problem was introduced in this version, the previous one gave no error to compile.

I made use of a new std function in recently released rust 1.66.
This actually shouldn't apply to v0.6.1 itself but does to the main git branch and future releases.
Run rustup update to update rustc.

Thanks, fixed.


Use Proof Chain for witnesses

To have the witness signing on top of the DID Controller's signature we should use a proof chain. To accomplish this we need to:

Add an id to the DID Controller's proof item
Add a previousProof of the above id to Witness proof items

Duplicate of #66