Tensorflow Lite library is crashing in WASM library at 3rd inference

Click to expand!
Issue Type
Support
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
2.7.0
Custom Code
Yes
OS Platform and Distribution
Emscripten, Ubuntu 20.04
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Hello! I have C++ code that I want to deploy as WASM library and this code contains TFLite library. I have compiled TFLite library with XNNPack support using Emscripten toolchain quite easy, so no issue there. I have a leight-weight convolution+dense model that runs perfectly on Desktop, but I am starting having problems in the browser.

In 99% of cases I have an error on the third inference:

Uncaught RuntimeError: memory access out of bounds

Through some trivial debugging I have found out that the issue comes from _interpreter->Invoke() method. Does not matter if I put any input or not, I just need to call Invoke() three times and I have a crash.

First thing first: I decided to add more memory to my WASM library by adding this line to CMake:

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s TOTAL_STACK=134217728 -s TOTAL_MEMORY=268435456")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s TOTAL_STACK=134217728 -s TOTAL_MEMORY=268435456")

128 MB and 256 MB in total for 1 MB model - I think this is more than enough. And on top of that, I am allowing Memory Growth. But unfortunately, I have exactly the same issue.

I am beating on this problem for 2 weeks straight and at this stage I have no clue how to fix it. Also I have tried to set custom allocation using TfLiteCustomAllocation but in this case I have a crash on the very first inference. I guess I was not using it right, but unfortunately I couldn't find even one tutorial describing how to apply custom allocation in TFLite.

I said that I have a crash in 99% of cases. There was one time when WASM library worked and inference worked as well. It happens just randomly once, and I couldn't reproduce it anymore.

Standalone code to reproduce the issue
Here is the code that does TFLite inference

#include <cstdlib>
#include "tflite_model.h"
#include <iostream>

#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/util.h"

namespace tracker {

#ifdef EMSCRIPTEN
	void TFLiteModel::init(std::stringstream& stream) {

		std::string img_str = stream.str();
		std::vector<char> img_model_data(img_str.size());
		std::copy(img_str.begin(), img_str.end(), img_model_data.begin());

		_model = tflite::FlatBufferModel::BuildFromBuffer(img_str.data(), img_str.size());
#else
	void TFLiteModel::init(const std::string& path) {
		_model = tflite::FlatBufferModel::BuildFromFile(path.c_str());

#endif

		tflite::ops::builtin::BuiltinOpResolver resolver;
		tflite::InterpreterBuilder(*_model, resolver)(&_interpreter);

		_interpreter->AllocateTensors();

		/*for (int i = 0; i < _interpreter->tensors_size(); i++) {
			TfLiteTensor* tensor = _interpreter->tensor(i);

			if (tensor->allocation_type == kTfLiteArenaRw || tensor->allocation_type == kTfLiteArenaRwPersistent) {

				int aligned_bytes = tensor->bytes + (tflite::kDefaultTensorAlignment - tensor->bytes % tflite::kDefaultTensorAlignment) % tflite::kDefaultTensorAlignment;

				TfLiteCustomAllocation customAlloc;
				int result = posix_memalign(&customAlloc.data, tflite::kDefaultTensorAlignment, tensor->bytes);
				if (result != 0 || customAlloc.data == NULL) {
					std::cout << "posix_memalign does not work!\n";
				}

				TfLiteStatus st = _interpreter->SetCustomAllocationForTensor(i, customAlloc);
				std::cout << "status = " << st << std::endl;
				if (tensor->bytes % tflite::kDefaultTensorAlignment != 0) {
					std::cout << "bad! i " << i << ", size " << tensor->bytes << std::endl;
				}
				_allocations.push_back(customAlloc);
			}
		}
		exit(0);*/
	}

	void TFLiteModel::forward(const cv::Mat& img_input, const std::vector<float>& lms_input) {

		float* model_in = _interpreter->typed_input_tensor<float>(0);
		std::memcpy(model_in, img_input.data, img_input.total() * img_input.elemSize());

		float* lms_in = _interpreter->typed_input_tensor<float>(1);
		std::memcpy(lms_in, lms_input.data(), sizeof(float) * lms_input.size());

		_interpreter->Invoke();
	}

	float* TFLiteModel::out() {
		return _interpreter->typed_output_tensor<float>(0);
	}

	std::vector<int> TFLiteModel::getOutputShape() const {
		TfLiteTensor* outtensor = _interpreter->output_tensor(0);
		TfLiteIntArray* dims = outtensor->dims;

		std::vector<int> sh;
		for (int i = 0; i < dims->size; i++) {
			sh.push_back(dims->data[i]);
		}

		return sh;
	}
}

Relevant log output
No response

@L1onKing Thanks for reporting the issue.
Have you checked with latest stable version TF 2.12 and see if the issue still exists?
Thanks.

Hi @L1onKing
For C++ library, the TFLite provides libtensorflowlite.so which can be built using bazel build --config=elinux_aarch64 -c opt //tensorflow/lite:libtensorflowlite.so. I've created a sample gist to build the same using bazel which can be found here. Please refer to cross-compilation for ARM with Bazel here.
Also, the TFLite supports for Tensorflow.js in which under the hood, the TFLite C++ runtime is packaged in a set of WASM modules with bazel. Please refer to this documentation for the detailed use and let us know if it helps.
And, please find the relevant thread #46359
Thanks.

bazel build --config=elinux_aarch64 -c opt //tensorflow/lite:libtensorflowlite.so - so to my understanding, I need to run a command of such format from tensorflow repo directory. I have three questions on which I struggle to find an answer:

What is the config value if I want to build libtensorflowlite.a with WASM?
How to enable XNNPack during this build?
Where to find relevant public headers that I need to include in my project?

Hi @L1onKing

What is the config value if I want to build libtensorflowlite.a with WASM?

The config value for WASM is not available in .bazelrc afaik.  We need to build the Bazel Emscripten toolchain manually using the instructions given here and set --confg=wasm.  Also, the bazel build generates the .so sharable dynamic object file instead of .a as CMAKE does.

How to enable XNNPack during this build?

The XNNPACK can be enable by adding --define tflite_with_xnnpack=true during bazel build.
As this comment suggests,  try the TFLite with TFjs which uses WASM backend given the bazel support for which comes with pre built binaries.
Thanks.

Hi @pjpratik !
Thank you for your recommendations, for the time being I am exploring this - https://github.com/tensorflow/tfjs/tree/master/tfjs-tflite
So what I did:

Downloaded this repo
Navigated to tfjs-tflite folder where BUILD.bazel is located
Ran the command bazel build //tfjs-tflite:tf-tflite

But I am having next output
INFO: Repository npm instantiated at:
  /home/nabeel/Documents/algoface/tfjs/WORKSPACE:67:13: in <toplevel>
  /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/index.bzl:83:18: in yarn_install
Repository rule yarn_install defined at:
  /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:1002:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'npm':
   Traceback (most recent call last):
	File "/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 866, column 40, in _yarn_install_impl
		yarn_version = _detect_yarn_version(repository_ctx, yarn_cmd)
	File "/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 844, column 13, in _detect_yarn_version
		fail("yarn --version failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: yarn --version failed:  (/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node)
)
ERROR: /home/nabeel/Documents/algoface/tfjs/WORKSPACE:67:13: fetching yarn_install rule //external:npm: Traceback (most recent call last):
	File "/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 866, column 40, in _yarn_install_impl
		yarn_version = _detect_yarn_version(repository_ctx, yarn_cmd)
	File "/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 844, column 13, in _detect_yarn_version
		fail("yarn --version failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: yarn --version failed:  (/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node)
)
ERROR: Skipping '//tfjs-tflite:tf-tflite': no such package '@npm//@bazel/concatjs': yarn --version failed:  (/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node)
)
WARNING: Target pattern parsing failed.
ERROR: no such package '@npm//@bazel/concatjs': yarn --version failed:  (/home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/nabeel/.cache/bazel/_bazel_nabeel/01ad2d90cd2af4a5ee7bc50cb9e6914b/external/nodejs_linux_amd64/bin/nodejs/bin/node)
)
INFO: Elapsed time: 3.087s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
    currently loading: tfjs-tflite

It looks like the issue is in incompatibility of bazel and glibc.
The output of bazel version on my machine:
Build label: 5.3.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Aug 23 00:45:53 2022<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

Could you please advise what version of bazel should I use in order to make it run? Thank you very much!

Hi @L1onKing
The Bazel version 5.3.0 should be compatible. Moreover, you can build the tfjs-tflite using yarn build which inturn uses bazel with wasm backend.

Navigate to tfjs-tflite repo
Check for yarn  installation
Run yarn build

Please check this gist provided with the tfjs-tflite build and can be tested  withyarn test with successful build.
Thanks.

Hi @pjpratik ! Sorry for a long response, I was unavailable last week. Actually I did try yarn build command from tfjs-tflite folder, but that is the output I got:
tfjs/tfjs-tflite$ yarn build
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'build'
yarn is installed and available in Terminal. Could you advise please?

UPDATE
I have figured an issue with yarn and now yarn build command executes, but I have exactly the same issue:
libc.so.6: version GLIBC_2.28' not found`
Please advise how to fix it

Hi @L1onKing
Can you please check if latest npm and nodejs versions are installed?
Thanks.


AbstractConfigurator#configureIfMatch repeatedly add elements to the conditionKeys collection problem

What is the purpose of the change
AbstractConfigurator#configureIfMatch repeatedly add elements to the conditionKeys collection problem
see more detail from #7453
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

I think it's not necessary.

Small code optimization, including extracting invariants into static variables, etc.


Custom message not working

Hello,
I have the following schema:
const mongoose = require('mongoose');
const beautifyUnique = require('mongoose-beautiful-unique-validation');

const UserSchema = new mongoose.Schema({
  email: {
    type: String,
    lowercase: true,
    required: true,
    unique: 'A user with that e-mail already exists',
  },
  firstName: {
    type: String,
    required: true,
  },
  lastName: {
    type: String,
    required: true,
  },
});

UserSchema.plugin(beautifyUnique);

module.exports = mongoose.model('User', UserSchema, 'Users');

When I try to create a document with a duplicate e-mail, I don't get the custom message, instead I only get the following:
{ ValidationError: Validation failed
    at ValidationError.inspect (node_modules/mongoose/lib/error/validation.js:56:24)
    at ValidationError.deprecated (internal/util.js:70:15)
    at formatValue (util.js:466:31)
    at inspect (util.js:327:10)
    at Object.formatWithOptions (util.js:181:12)
    at Console.(anonymous function) (console.js:188:15)
    at Console.log (console.js:199:31)
    at errorHandler (/middleware/errorHandler.js:2:11)
    at dispatch (/node_modules/koa-compose/index.js:42:32)
    at next (/node_modules/koa-compose/index.js:43:18)
    at dispatch (/node_modules/koa-router/lib/router.js:332:32)
    at dispatch (/node_modules/koa-compose/index.js:42:32)
    at next (/node_modules/koa-compose/index.js:43:18)
    at dispatch (/node_modules/koa-router/lib/router.js:332:32)
    at dispatch (/node_modules/koa-compose/index.js:42:32)
    at next (/node_modules/koa-compose/index.js:43:18)
  errors: {},
  _message: 'Validation failed',
  name: 'ValidationError' }

I am using mongoose 5.0.13 and mongoose-beautiful-unique-validation 7.1.1.
Am I missing anything?

Seems there is a problem with the regexp... :(

Hello! Is this problem fixed? I have a similar situation, but the output differs a little:
{
    "errors": {},
    "_message": "Validation failed",
    "message": "Validation failed",
    "name": "ValidationError"
}

My schema looks like this:
const schema = new mongoose.Schema({
    // other properties
    email: { type: String, required: true, unique: 'Email must be unique: ({VALUE})' },
});

schema.plugin(beautifyUnique);

Hello! Is this problem fixed? I have a similar situation, but the output differs a little:
{
    "errors": {},
    "_message": "Validation failed",
    "message": "Validation failed",
    "name": "ValidationError"
}

My schema looks like this:
const schema = new mongoose.Schema({
    // other properties
    email: { type: String, required: true, unique: 'Email must be unique: ({VALUE})' },
});

schema.plugin(beautifyUnique);

i got the same problem

I did tries with different version of this plugin and the issue seems to be present in mongo version 3.6 to up, with mongo 3.4 works!! but my solution was drop the plugin and focus in parse the  error throwed by mongodb and  so base on the example provide in the mongoosejs website i did this code mimic the exact same response of this plugin.
UsersSchema.post("save", function (error, doc, next) {
  let duplicateError = error.name === "MongoError" && error.code === 11000;
  if (duplicateError) {
    let result = {
      name: "ValidationError",
      message: "Model validation failed",
      errors: {}
    }
    //Object.keys(this._doc) = ["email", "name", "password", ......]
    Object.keys(this._doc).forEach(path => {
      let isDuplicate = error.errmsg.includes(`$${path}_1`);//match with $email_1
      //Check if any attribute of the document is included in the error message as an unique field example:
      //11000 E11000 duplicate key error index: mydb.users.$email_1  dup key: {<EMAIL_ADDRESS>}
      if (isDuplicate) {
        let value = this._doc[path];
        result.errors[path] = {
          name: "ValidatorError",
          kind: "unique",
          message: `Path ${path} (${value}) is not unique.`,
          path,
          value
        }
      }
    })
    next(result);
  } else {
    next()
  }
})

So as long mongoose return the error name as MongoError an the code as 11000 for duplicate values it should work in any version

Having the same problem here in my tests using mongodb-memory-server at least. Instead of returning my unique message it just returns.
{ ValidationError: Validation failed
at ValidationError.Object..ValidationError.inspect (/node_modules/mongoose/lib/error/validation.js:59:24)
at formatValue (internal/util/inspect.js:521:31)
at inspect (internal/util/inspect.js:196:10)
at formatWithOptions (util.js:84:12)
at format (util.js:72:10)
at CustomConsole.log (/node_modules/jest-util/build/CustomConsole.js:156:41)
at Object.log (/database/user.test.js:81:17)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
errors: {},
_message: 'Validation failed',
name: 'ValidationError' }

Is there any update on this issue?

Any Update?

The bug is still there <3.


changed likelihood inheritance. deleted quadrature

I was getting a really aggressive warning from absl for being too brash when extending tfd.Distribution to make likelihood objects. So I changed the inheritance model for the likelihoods. They now have distributions as attributes rather than extending them.
In the process, I realized I no longer support the quadrature based likelihoods in the main branch. So, I just got rid of them.

Codecov Report

Merging #18 (ec42ac8) into main (fbffabc) will decrease coverage by 0.76%.
The diff coverage is 88.67%.

@@            Coverage Diff             @@
##             main      #18      +/-   ##
==========================================
- Coverage   67.90%   67.14%   -0.77%
==========================================
  Files          30       27       -3
  Lines        1153     1111      -42
==========================================
- Hits          783      746      -37
+ Misses        370      365       -5

Flag
Coverage Δ

unittests
67.14% <88.67%> (-0.77%)
:arrow_down:

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

Impacted Files
Coverage Δ

careless/models/likelihoods/base.py
57.14% <50.00%> (-2.86%)
:arrow_down:

careless/models/likelihoods/laue.py
94.44% <89.28%> (+2.28%)
:arrow_up:

careless/models/likelihoods/mono.py
92.50% <91.30%> (+13.08%)
:arrow_up:

careless/models/scaling/nn.py
49.33% <0.00%> (-3.76%)
:arrow_down:

careless/utils/distributions.py
51.16% <0.00%> (-2.69%)
:arrow_down:

careless/models/scaling/image.py
52.77% <0.00%> (-2.49%)
:arrow_down:

careless/models/merging/variational.py
81.25% <0.00%> (-0.17%)
:arrow_down:

Continue to review full report at Codecov.

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


Generic element type to support any ref type (like HTMLCanvasElement etc.)

I wanted to use this to watch for canvas element size and had to cast the ref from HTMLElement to HTMLCanvasElement. This PR makes it possible to use the hook like useDimensions<HTMLCanvasElement>(...).

Sorry for delay. Haven't seen the notification. Published.

Sorry for delay. Haven't seen the notification. Published.


volume failed to attach to node

Question

when i deployed longhorn, the pod cannot use the pvc.

Environment

Longhorn version: 1.3.1
Kubernetes version: v1.24.2
Node config

OS type ：centos7
CPU per node: 4
Memory per node: 8G
Disk type：hdd
Network bandwidth and latency between the nodes: inner network

Underlying Infrastructure: Baremetal

logs

csi-attach log

Error processing "csi-eb0467592e57ad3f10ba2cc1aae84c15b350632a0425e4e5735767af8b4a76c6": failed to attach: rpc error: code = DeadlineExceeded desc = volume pv-test failed to attach to node

longhorn-pvc example  pod logs

Warning  FailedScheduling    21m                  default-scheduler        0/3 nodes are available: 3 persistentvolumeclaim "pvc-test" not found. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.
Warning  FailedScheduling    20m                  default-scheduler        0/3 nodes are available: 3 persistentvolumeclaim "pvc-test" not found. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.
Normal   Scheduled           20m                  default-scheduler        Successfully assigned default/volume-pv-test to wf-dev-mid-k8s-m
Warning  FailedMount         13m                  kubelet                  Unable to attach or mount volumes: unmounted volumes=[vol], unattached volumes=[kube-api-access-vrwh8 vol]: timed out waiting for the condition
Warning  FailedMount         2m11s (x7 over 18m)  kubelet                  Unable to attach or mount volumes: unmounted volumes=[vol], unattached volumes=[vol kube-api-access-vrwh8]: timed out waiting for the condition
Warning  FailedAttachVolume  3s (x17 over 18m)    attachdetach-controller  AttachVolume.Attach failed for volume "pv-test" : rpc error: code = DeadlineExceeded desc = volume pv-test failed to attach to node wf-dev-mid-k8s-m

how to slove this question?
please help me，tks a lot.

 "pvc-test" not found
Can you check if the PVC is already created or missing?

"pvc-test" not found

the pvc and pv existed.
[root@wf-dev-mid-k8s-m ~]# kubectl get pvc
NAME       STATUS   VOLUME    CAPACITY   ACCESS MODES   STORAGECLASS      AGE
pvc-test   Bound    pv-test   10Gi       RWO            longhorn-static   93m

[root@wf-dev-mid-k8s-m ~]# kubectl get pv
NAME      CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM              STORAGECLASS      REASON   AGE
pv-test   10Gi       RWO            Retain           Bound    default/pvc-test   longhorn-static            94m

yes .
is it wrong ?

Can you provide the support bundle?

please tell me how to get this。。。

Please refer to https://www.suse.com/support/kb/doc/?id=000020145
You can also check longhorn-manager and see if there are related error messages.

@zhuw0312 I cannot download the support bundle from the link. BTW, it's not related to the storage-network.

https://trumantaurus.oss-cn-hangzhou.aliyuncs.com/longhorn-support-bundle_ca737ab5-56b8-44ba-8fbc-d7d47bd45434_2022-08-22T12-22-44Z.zip
please try again.
ok,got it.

After investigating the support bundle, I found you change the hostpath of the daemonset during installation.
Can you check this ticket https://github.com/longhorn/longhorn/issues/4441?

@derekbit it workerd after  changing daemonset hostpath config from /data/longhorn to /var/lib/longhorn.
thank u very much.


[BUG Report]: SciSharp.TensorFlow.Redist nuget packages missing OSX binaries

Description
I doubt this is the right place for this but it's the best I could find.
I'm trying to use TF.NET nuget package and everything is fine except the SciSharp.TensorFlow.Redist nuget package is missing the binaries for OSX. Both the Windows and Linux binaries seem to be present.

Mac Homebrew doesn't have the correct binary version, and the default pip package is 2.12 which is missing a symbol that TF.NET tried to load. Currently working to force pip to use TF version 2.11.0
Reproduction Steps

Use a Mac
Create dotnet core project.
Add TF.NET and SciSharp.TensorFlow.Redist nuget packages.
Run code that uses the library.

Known Workarounds
Downloading binaries somewhere other than the SciSharp.TensorFlow.Redist nuget package.
Compiling TF from source.
Configuration and Other Information
On OSX
"SciSharp.TensorFlow.Redist" Version="2.11.0"
"TensorFlow.Keras" Version="0.11.0"
"TensorFlow.NET" Version="0.110.0"
TargetFramework net7.0

Hello, since there are relatively few developers in tf.net, the developer who was responsible for compiling at that time did not have a computer with a macos system, and there are relatively few macos users on tf.net, so the macos version has not been compiled since 2.11. Sorry for the inconvenience.

Thank you for your enthusiasm and attention to TensorFlow.NET. If you can participate in the development of TensorFlow.NET, TensorFlow.NET will definitely become better. BTW, you can join our discord channel or QQ group to get in touch with us more closely. ^_^

@puddlejumper9 @Wanglongzhi2001 Good news @AsakusaRinne just compiled the library for mac os. You can download from this link.
Please keep us updated if the library works or not.

@Oceania2018
dlopen(/Users/nolans/source/repos/ML Chess/EngineTest/bin/Debug/net7.0/runtimes/osx-x64/native/libtensorflow.dylib, 0x0001): tried: '/Users/nolans/source/repos/ML Chess/EngineTest/bin/Debug/net7.0/runtimes/osx-x64/native/libtensorflow.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h' or 'x86_64'))
It seems this binary in osx-x64 folder is for arm64 architecture. This should be in the osx-arm64 folder.
So the issue persists. Now have osx-arm64 binaries, but lacking osx-x64 binaries.

@puddlejumper9 @Wanglongzhi2001 Good news @AsakusaRinne just compiled the library for mac os. You can download from this link. Please keep us updated if the library works or not.

Something is wrong with this library. Arm64 runtime is inside x64 directory.

@puddlejumper9 @Wanglongzhi2001 Good news @AsakusaRinne just compiled the library for mac os. You can download from this link. Please keep us updated if the library works or not.

Something is wrong with this nuget package. Arm64 runtime is inside x64 directory. It does not work.

I am suffering the same problem on macOS, Tensorflow.NET cannot find a backend.
Is there a means to compile this from source code and use it in my own app? .NET was my daily bread and butter for many years, but I haven't done it in nearly a decade!


Nuget package with Square.SocketRocket dependency for Xamarin.iOS

Is there a possibility that you release an updated nuget package with a dependency to Square.SocketRocket for Xamarin.iOS? (See https://github.com/NuGet/Home/issues/2137#issuecomment-186126688)
Thank you for your otherwise nice library.

Im confused, the iOS package includes this dependency
https://github.com/NVentimiglia/Websockets.PCL/blob/master/Websockets.Ios/packages.config

I don't know exactly how you create the nuget package, but it seems that in Websockets.Pcl.nuspec there is only a reference to MonoTouch0.0 target framework:
<group targetFramework="MonoTouch0.0">
	<dependency id="Square.SocketRocket" version="<IP_ADDRESS>" />
</group>

If you install the nuget package in a Xamarin iOS unified project, Square.SocketRoecket dependency will be missing.

We just encountered the same issue.
The nuspec file does not appear to be here in the repo anywhere.
Anyway, yeah, the dependencies in the nupkg are not quite right for the xamarin.ios framework.

FWIW:  Adding the Square.SocketRocket package manually does appear to workaround the problem, as would be expected.


[FIX] generateLibraryPreload: Ignore missing modules

[ ] Proper commit message
[ ] Unit tests

Coverage remained the same at 91.357% when pulling 83cbf860aa37dfa78f6af2a3bf34a4bd3ea2a9b9 on generateLibraryPreload-ignoreMissingModules into 939880b00e2596af0262b08941b4801117975fda on master.


merge conflict resolved

Hopefully this would work

Likely a buggy PR. Will close it and get back later if needed.


cli: add systemd-cgroup option

Add support for cgroup driver systemd.
systemd cgroup is not applied in the VM since in some cases like initrd images
there is no systemd running and nobody can update a systemd cgroup using
systemctl.
fixes #596
Signed-off-by: Julio Montes<EMAIL_ADDRESS>

I'm adding host cgroup support currently: https://github.com/kata-containers/runtime/pull/734
Wondering if this should also apply to host cgroup? When user/docker specify systemd cgroup, which layer do they want to apply? Host Cgroup or Guest Cgroup?

@WeiZhang555

Wondering if this should also apply to host cgroup?

Systemd cgroup should be applied in the host, not in the guest

When user/docker specify systemd cgroup, which layer do they want to apply? Host Cgroup or Guest Cgroup?

https://github.com/kata-containers/runtime/issues/596#issuecomment-422476067

@devimc Oh, I mis-read your description, this is good to me. I'll take this into consideration while doing host cgroup support, but this depends on the flag provided by your PR.
LGTM


Implement gamma sampler using core.Primitive interface

This PR tries to address #1789. While working on a fix, I realize that (compiling time) lax.map outperforms vmap for most usage cases. So I believe that the tests for gamma/beta/dirichlet will be much faster than before. With this, probably #552 and #1188 is not necessary to be addressed anymore.
However, I am getting trouble with translation rule. With the script
import jax; jax.config.update('jax_platform_name', 'cpu')
from jax import vmap, random, jit, grad
import jax.numpy as np

def f(a):
    return random.gamma(random.PRNGKey(0), a)

jit(f)(np.ones(3)) throws an error at printing function

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~/miniconda3/envs/pydata/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
    700                 type_pprinters=self.type_printers,
    701                 deferred_pprinters=self.deferred_printers)
--> 702             printer.pretty(obj)
    703             printer.flush()
    704             return stream.getvalue()

~/miniconda3/envs/pydata/lib/python3.6/site-packages/IPython/lib/pretty.py in pretty(self, obj)
    400                         if cls is not object \
    401                                 and callable(cls.__dict__.get('__repr__')):
--> 402                             return _repr_pprint(obj, self, cycle)
    403
    404             return _default_pprint(obj, self, cycle)

~/miniconda3/envs/pydata/lib/python3.6/site-packages/IPython/lib/pretty.py in _repr_pprint(obj, p, cycle)
    695     """A pprint that just redirects to the normal repr function."""
    696     # Find newlines and replace them with p.break_()
--> 697     output = repr(obj)
    698     for idx,output_line in enumerate(output.splitlines()):
    699         if idx:

~/jax/jax/interpreters/xla.py in __repr__(self)
    655     line_width = onp.get_printoptions()['linewidth']
    656     prefix = '{}('.format(self.__class__.__name__)
--> 657     s = onp.array2string(self._value, prefix=prefix, suffix=',',
    658                          separator=', ', max_line_width=line_width)
    659     dtype_str = 'dtype={})'.format(self.dtype.name)

~/jax/jax/interpreters/xla.py in _value(self)
    608     if self._npy_value is None:
    609       self._npy_value = self.device_buffer.to_py()
--> 610       self._npy_value.flags.writeable = False
    611     return self._npy_value
    612

AttributeError: 'tuple' object has no attribute 'flags'

while jit(f)(np.ones(())) throws the error

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
~/jax/jax/abstract_arrays.py in __len__(self)
    137     try:
--> 138       return self.shape[0]
    139     except IndexError:

IndexError: tuple index out of range

During handling of the above exception, another exception occurred:

TypeError                                 Traceback (most recent call last)
<ipython-input-3-6929b861a3fc> in <module>
----> 1 jit(f)(np.ones(()))

~/jax/jax/api.py in f_jitted(*args, **kwargs)
    148     _check_args(args_flat)
    149     flat_fun, out_tree = flatten_fun(f, in_tree)
--> 150     out = xla.xla_call(flat_fun, *args_flat, device=device, backend=backend)
    151     return tree_unflatten(out_tree(), out)
    152

~/jax/jax/core.py in call_bind(primitive, f, *args, **params)
    590   if top_trace is None:
    591     with new_sublevel():
--> 592       outs = primitive.impl(f, *args, **params)
    593   else:
    594     tracers = map(top_trace.full_raise, args)

~/jax/jax/interpreters/xla.py in _xla_call_impl(fun, *args, **params)
    373   device = params['device']
    374   backend = params.get('backend', None)
--> 375   compiled_fun = _xla_callable(fun, device, backend, *map(abstractify, args))
    376   try:
    377     return compiled_fun(*args)

~/jax/jax/linear_util.py in memoized_fun(fun, *args)
    207       fun.populate_stores(stores)
    208     else:
--> 209       ans = call(fun, *args)
    210       cache[key] = (ans, fun.stores)
    211     return ans

~/jax/jax/interpreters/xla.py in _xla_callable(fun, device, backend, *abstract_args)
    411   xla_consts = _map(c.Constant, consts)
    412   xla_args = _xla_callable_args(c, abstract_args, tuple_args)
--> 413   out_nodes = jaxpr_subcomp(c, jaxpr, backend, axis_env, xla_consts, (), *xla_args)
    414   built = c.Build(c.Tuple(*out_nodes))
    415

~/jax/jax/interpreters/xla.py in jaxpr_subcomp(c, jaxpr, backend, axis_env, consts, freevars, *args)
    260       ans = rule(c, *in_nodes, **eqn.params)
    261     elif eqn.primitive in translations:
--> 262       ans = translations[eqn.primitive](c, *in_nodes, **eqn.params)
    263     elif eqn.primitive in reduction_translations:
    264       new_params = check_backend_params(eqn.params, backend)

~/jax/jax/interpreters/xla.py in f(c, *args, **params)
    533     pvals = [pe.PartialVal((a, core.unit)) for a in avals]
    534     jaxpr, _, consts = pe.trace_to_jaxpr(
--> 535         lu.wrap_init(fun, params), pvals, instantiate=True)
    536     consts = _map(c.Constant, consts)
    537     outs = jaxpr_subcomp(c, jaxpr, backend, axis_env, consts, (), *xla_args)

~/jax/jax/interpreters/partial_eval.py in trace_to_jaxpr(fun, pvals, **kwargs)
    313   with new_master(JaxprTrace) as master:
    314     fun = trace_to_subjaxpr(fun, master, instantiate)
--> 315     jaxpr, (out_pvals, consts, env) = fun.call_wrapped(pvals)
    316     assert not env
    317     del master

~/jax/jax/linear_util.py in call_wrapped(***failed resolving arguments***)
    155     while stack:
    156       gen, out_store = stack.pop()
--> 157       ans = gen.send(ans)
    158       if out_store is not None:
    159         ans, side = ans

~/jax/jax/interpreters/partial_eval.py in trace_to_subjaxpr(master, instantiate, pvals)
    325   in_tracers = map(trace.new_arg, pvals)
    326   ans = yield in_tracers, {}
--> 327   instantiate = [instantiate] * len(ans) if type(instantiate) is bool else instantiate
    328   out_tracers = map(trace.full_raise, map(core.full_lower, ans))
    329   out_tracers = map(partial(instantiate_const_at, trace), instantiate, out_tracers)

~/jax/jax/core.py in __len__(self)
    292
    293   def __len__(self):
--> 294     return self.aval._len(self)
    295
    296   @property

~/jax/jax/abstract_arrays.py in _len(self, ignored_tracer)
    141
    142   def _len(self, ignored_tracer):
--> 143     return len(self)
    144
    145   def strip_weak_type(self):

~/jax/jax/abstract_arrays.py in __len__(self)
    138       return self.shape[0]
    139     except IndexError:
--> 140       raise TypeError("len() of unsized object")  # same as numpy error
    141
    142   def _len(self, ignored_tracer):

TypeError: len() of unsized object

I guess the output with translation rule is a tuple and I need to pack it into an array, but I am not sure how to process. I tried to mimic custom_transform implementation to use tree_flatten, flatten_fun_nokwargs... but don't know how to write a compatible batching rule. Several months ago, the following code works
    jaxpr, out, consts = partial_eval.trace_unwrapped_to_jaxpr(_gamma_impl,
                                                               tuple(lax._abstractify(o) for o in (key, a)))
    aval, _ = out
    return random_gamma_p.bind(key, a, jaxpr=jaxpr, aval=aval, consts=consts)

def _random_gamma_translate(c, key, a, jaxpr, aval, consts):
    xla_computation = xla.jaxpr_computation(jaxpr, consts, (), c.GetShape(key), c.GetShape(alpha))
    return c.Call(xla_computation, (key, alpha))

but those utilities jaxpr_computation, trace_unwrapped_to_jaxpr are no longer available and I am not sure if a similar code will work now.
I appreciate any help!
cc @mattjj @shoyer @jekbradbury

Updated: thanks to @jekbradbury, I am able to make this work. This PR resolves #1789, https://github.com/google/jax/issues/1875#issuecomment-567026911, #1188, #552 (actually, the fourth one is not relevant, but with the change in this PR, it seems fast to get samples from gamma sampler now).
@mattjj It would be great to have this for the next jax release. :)

@mattjj Can we have this for the next JAX release? We need this fix to unblock some issues related to gamma sampler in NumPyro.

Thanks for the ping. We’ve been slow the last few weeks because of NeurIPS then the holidays.
I promise to follow up on this on Monday.
And yes we’ll get it in the next release! Sorry for blocking you.

Please take your time! I saw a new release of JAX so I just wanted to make sure that you get notified about this PR. :)

I suppose we also need to resolve conflicts with master before being able to merge. Let me know if you need any help with that!

@fehiepsi just uploaded jax==0.1.57 to pypi with this change!

Thanks a lot, @mattjj !!


bug:

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.9.0
Operating system/version
windows11
Describe the bug
gcc comments cannot be used when editing vue file.
Error message: (mini.ment) Option 'commentstring' is empty.
I have installed treesitter of vue
Steps To Reproduce

TSInstall vue
open vue file
gcc on any line

Expected Behavior
nvim-ts-context-commentstring is a comment function that supports vue files
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/LazyVim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

I just pushed an update that uses nvim-ts-context-commentstring again. Will make a new release in a bit.
https://github.com/LazyVim/LazyVim/pull/796


[k9s] added k9s strategy

Fixes # .
Changes proposed in this pull request:

Hi @eeekkoo Did you try using https://snapshot.org/#/strategy/balance-of-with-thresholds ? i think it should work for you perfectly

Didn't spot that. Thank you @ChaituVR


Gradle Builds Usually Fail Using buildAPKs.

Gradle builds usually fail using buildAPKs. However, gradle builds compile more successfully on device (a smartphone) than before in Termux. The APK sources compile, install and run more often than before.
This issue concerns the APK source and source tree structure and whether or not there are any build.gradle files. All the selected APK sources for https://github.com/sdrausty/buildAPKs and its' submodules:
https://github.com/sdrausty/buildAPKsApps
https://github.com/sdrausty/buildAPKsLiveWallpapers
https://github.com/sdrausty/buildAPKsTutorials
https://github.com/sdrausty/buildAPKsWidgets et al.
Are not gradle builds. Sources that depend on gradle https://github.com/gradle/gradle like https://github.com/termux/termux-app are more difficult to build. How can the dependencies from build.gradle be automatically downloaded and integrated into the build without using gradle?
Finding and installing dependencies is a stumbling block in developing gradle builds. Where is the list of SDK & NDK files (incl. *.jar && *.arr) to build Android APKs at https://dl.google.com/android/ ? This is open source, therefore it must be there somewhere. Where is it? Well, it's in https://dl.google.com/android/repository/repository-12.xml of sorts... And in https://dl-ssl.google.com/android/repository/addons_list-3.xml MAYBE... Does anyone know where the file list is?

The script for a successful gradle build by using buildAPKs wants major modifications.  Using a tool like sed was a prerequisite to achieve this task. This meant including as many *.jar files as possible. Just like artifacts, as many as you can possibly download and add ⚒👷
Any suggestions regarding closing this issue are welcome. Termux and widget were successfully built on device - summer 2017.

I would love to build apps using Termux

Gradle is not necessary to build apps using https://sdrausty.github.io/buildAPKs/ in Termux on device.
Thanks for posting. Here is a https://wiki.archlinux.org/index.php/Android lead regarding this issue.  It also includes building Android OS information in Arch Linux.
This link https://sdrausty.github.io/TermuxArch/ has information regarding Arch Linux setup in Termux.  More documention, a roadmap how to accomplish gradle builds and similar in Termux on Android, Chromebook and Fire OS is pending development at present.  Assistance is welcome.


Favourites thumbnails

Bug report
Describe the bug
When adding DailyMotion accesses to Favourites, Kore gets same thumbnail as Kodi shows.
But when choosing an image file to set or replace one favourite thumbnail, it's not got by Kore.
Example: Setting thumbnails to PVR channels that are added to Favourites.
Remote: Using Kore 2.5.1 on Android
Player device: Using Kodi 18.7 on Raspbian

duplicate #765


[Protection Level] Table 38 "Purchase Header" - Protected vars needed

Hi,
can you please change the variables SkipBuyFromContact and SkipSkipPayToContact to protected vars, so we can change this variable from a page extension. (Custom Search with setting Contact when validating the Buy-from Vendor No. etc.)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


add pvc autoresize test  in e2e test

What this PR does / why we need it:
add pvc autoresize test  in e2e test
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Codecov Report

Merging #1127 (5cdaae0) into main (39ce353) will not change coverage.
Report is 5 commits behind head on main.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##             main    #1127   +/-   ##
=======================================
  Coverage   39.39%   39.39%
=======================================
  Files          25       25
  Lines        1942     1942
=======================================
  Hits          765      765
  Misses       1075     1075
  Partials      102      102

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Synchronize results from IB history provider

Posting for some early feedback regarding the approach.
The current IB history implementation sychronously executes each HistoryRequest
and forms slices and emits them. This causes issues with multiple requests since
the individual requests never get synced. This PR aims to synchronize the results
from each history request.
This PR also fixes a would-be latent bug in the time zoning of the resultant trade
bars. It was returning the trade bars time stamped in the slice's time zone instead of
the security's configured time zone.
This code has not been tested yet!
Move SynchronizingEnumerator to Common\Util

This is a pretty generic utility class that is capable of accepting multiple
IEnumerator instances and synchronizing them into a single
IEnumerator instance. This can be handy for many things. This move is
to enable usage in the QuantConnect.Brokerages projects where the IB history
provider impl needs to synchronize multiple trader bar streams into Slices.

Refactor GroupByAdjacent into overload

This new overload accepts just the enumerator instead of the full enumerable.
This enables easy usages with the enumerator stack, specifically the
SynchronizingEnumerator.

In addition, the method was updated to return an IList to represent the inner
grouped collection. The current implementation of this method is such that it
emits only full groupings, so this return type change codifies that implementation
detail into the type signature, allowing consumers to depend on it.

WIP: Initial implementation of syncing IB GetHistory

I threw this together this evening as a proof of concept of what I'm going for
here. Each request results in a BaseDataCollection time stamped in the slice time
zone. The separate collections are then synchronized by the SynchronizingEnumerator
and formed into Slice instances.

I've modified the time zone handling of the raw data. It appears as though we're
modifying the time zone of the data to match the requested sliceTimeZone, but
really the data should get fed to the algorithm in the configured exchange time
zone.

Closing as discussed -- seeking a cross brokerage implementation with full history request support (fillforward etc).


indicators: add R018 Single bid received

Methodology:
Required OCDS fields: tender/procurementMethod, (tender/numberOfTenderers, OR tender/tenderers/id OR bids/details/tenderers/id)
Calculation method: For tenders  i  where tender/procurementMethod = 'open',
R018i=1  if  tender/numberOfTenderersi=1

@jpmckinney comment: Can alternatively count the length of the array instead of checking for id

I guess we could also use bids/statistics/value when bids/statistics/measure = 'bids'

Typically our approach is for the indicators command to only look in one place, and for the prepare command to fill in that place based on alternative fields. You can log alternatives in https://github.com/open-contracting/cardinal-rs/issues/86
For the first version, I would just use whatever seems like the best (most correct) option for Ecuador.

For the first version, I would just use whatever seems like the best (most correct) option for Ecuador.

Ok so, when tender/tenderers is present they always set tender/numberOfTenderes but they don't always set bids, so we can use tender/numberOfTenders.


Provide an API to make next extensible

Firstly, next is absolutely awesome—thank you so much for creating such a great framework.
However, I would really like to see an API for third parties to hook into and extend it.
There are a lot of great examples in the repo using Inferno, Preact, Styletron, Aphrodite, Glamor etc. but they typically require a custom server (which has some ramifications), a .babelrc and next.config.js. Though configuration of these libs is pretty straightforward, it is something that has to be repeated from project to project and detracts from Next's purity.
When using React and Styled JSX everything just works. I would like the same experience out of the box for my preferred setup of libs x, y and z and given the number of aforementioned examples in the next.js repo, it would seem this is a shared feeling.
Proposal: next presets and plugins.
My preferred flavour is Inferno + Styletron since they are the 2 most performant libs out there for rendering HTML and styling it.
I started creating a package with the aim of swapping out React for Inferno (during production) BUT without the need for adding a custom server, .babelrc and next.config.js in user-land code. As I mentioned above, I wanted to create the same experience you get with Next in it's purest form, but with Inferno and possibly Styletron—no project level configuration necessary.
The package is called neno (next + inferno) and my idea was that you called neno in place of next from your package scripts (or command line). Doing so would set the module aliases for next's server (mapping react to inferno-compat), configure babel and webpack then forward on process.argv to next. You would continue to use next in your source code, importing modules like Link, Router etc. from it.
https://www.npmjs.com/package/neno
However having spent some time looking through Next's source I realised this wasn't going to be possible since so much of next is hard coded to reading a few very specific files (.babelrc, next.config.js, pages/*, _document.js, _error.js) in the cwd. There is currently no API, or opportunity to hook into this pipeline (at least as far as I can tell).
I thought about reimplementing next's simple CLI in neno, building the webpack config, compiler etc. from next/dist/server/build/webpack.js and trying to insert my config in the middle so that it extended next's but still allowed the user to overwrite it in their project...but that quickly started to feel like I was crowbarring stuff in and repeating code unnecessarily. I wanted neno to be a very lean wrapper around next—essentially just configuring it in a neat package rather than in a project.
So what might a solution look like?
Well in the same way that babel, eslint etc. have both a preset and plugin ecosystem, I thought that next should both enable and promote a similar interface so that third parties could create packages for it.
These plugins and presets could be easily configured in your package.json using a next field like so:
{
  "scripts": {
    "dev": "next"
  },
  "next": {
    "presets": [
      "inferno",
      "styletron"
    ]
  },
  "dependancies": {
    "next": "latest",
    "next-preset-inferno": "latest",
    "next-preset-styletron": "latest"
  }
}

Preset authors would be able to easily override babel and webpack, setup aliases and the like.
Plugin authors could augment next modules, add new ones etc.
Would love to what your thoughts are on this 😄

It's unlikely we are not going to change the .babelrc behaviour since that's the standard for any project.
And I like to have following API options with next's programmatic API.

Option to set the default Document
Option to set the default Error
Path to look for the Next.js config

Since you are using next in your own source code. You can alias modules like React in the server.
Also since we allow to pass a custom path for the Next.js config, you could do anything with Webpack as well.
I think with ^^^ options you could do a lot.
Other than that, we don't think of having a plugin system.

@arunoda
I am thinking of this as well. First of all, Next is an awesome work. I have just deployed it in production. For me, the part that adds friction adopting Next in production that it is opinionated, while the whole React ecosystem is unopinionated. It is true that you can still follow the examples to add this and that to your Next project. But not knowing the magic behind, it makes me feel I am having less control.
In my fancy dream, we could extract the parts that Next was doing out of its core. The core's functionality is just to pass data between parts. Those parts could consist of

Router: maps the url into component (The existing opinionated Router maps url to pages directory structure)
Rendering: takes in the url params and component from Router and render to HTML.
Styling: Process and inject inline style to HTML and/or compile styles into css files
State Hydration: Transfer server-side state to client.
Hooks: Any internal event can be pre/post hooked by external plugins. Getting some configs can also be an event (webpack, .babelrc). This could make those examples a one-liner.

I know that the internal magic behind is very complicated but if we could dissemble the parts like so, it will be highly extensible and unopinionated. I am already excited what could it achieve.

Now we've a way to pass the Next.js config purely as an option: https://github.com/zeit/next.js/pull/2058/

I'm going to close this as we have next-plugins now, they'll be more powerful in the future.


Is this project still active?

@cbiffle do you still actively maintain this project?

It been about 3 weeks and #3 hasn't been responded to in a while. So I'll take that this project is not active.
I'd just like to state that I plan to fork this project and extract the biffield macros out of it. I plan to implement #3 when I get a chance and also investigate SVD :arrow_right: biffields.


Connection invalidation fails when using ssh tunnel

System information:

Operating system (distribution) and version: mac 10.15.3
DBeaver version: postgres 11.2
Additional extensions

Connection specification:

Database name and version
Driver name
Do you use tunnels or proxies (SSH, SOCKS, etc)? ssh tunnel through a VPN

Describe the problem you're observing:
SQL Error [08001]: Connection to <IP_ADDRESS>:15622 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

Clicking "Retry" doesn't help. This happens everytime after returning from AFK - only for connections using an ssh tunnel. The only way to gain the connection back is to manually disconnect and reconnect.
This seems like a regression from 6.3.3 - I tried working with that version for a few hours and it did not occur even after being AFK - the connection invalidation was successful.

A comment from #9752 - might be related

closed as a duplicate of #7952


Add non-activated line selector (pseudo / semi select lines which are activated with enter or mouse click)

Recreate:

Pick a longer shabad
Choose last line (one that requires scrolling viewport of navigator down)
Hide controller
Escape
Unhide controller via ctrl+h, ctrl+enter, or ctrl+c
Line is lost, no indication of where it was in the shabad or the lines that are around it

How do we indicate this, since a highlight means selected lines in the Navigator?

It can be a bordered color like windows file explorer does.
Activated:

Focused:

Can play a pulsing background color to indicate it's pending an activation? Lots of options to play around with.

I like the bordered idea.

On 4 Nov 2019, at 15:28, Bhajneet S.K<EMAIL_ADDRESS>wrote:
It can be a bordered color like windows file explorer does.
Activated:
Focused:
Can play a pulsing background color to indicate it's pending an activation? Lots of options to play around with.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Changing impact, as this would undoubtedly affect almost every user. Whether positive or negative. I'm sure many will be against the change since it will be one more button press for them. However, overall we'll still implement it as it's "safer"


Receycled collectionview cells do not get correct height applied for new template

Which platform(s) does your issue occur on?

iOS
emulator or device. What type of device? emulator and device (iPhone 11) and different emulators

Please, provide the following version numbers that your issue occurs with:

CLI: 8.0.2-next-08-13-2021-1128363962
Cross-platform modules: "@nativescript/core": "~8.1.0-alpha.1",
Runtime(s):"@nativescript/ios": "JSC",
Plugin(s): "@nativescript-community/ui-collectionview": "~4.0.42",

Please, tell us how to recreate the issue in as much detail as possible.
I have a ui collection view with with templates of  different height, see below. In the beginning, the cell display correctly. But it seems when cells are recycled, they do not get the correct height applied anymore. See attached image, rows below "Mittagessen"
<ng-template let-item="item" cvTemplateKey="footerTemplate">
					<GridLayout rows="25" columns="auto,*,auto,*,auto,*,auto" class="bottom-stat-footer">

					</GridLayout>
				</ng-template>

				<ng-template let-item="item" cvTemplateKey="groupTemplate">
					<GridLayout rows="45" columns="*,auto" class="group-header">

					</GridLayout>
				</ng-template>

@cjohn001 i dont really understand what i should see. I dont see the limit of the cells and where it fails. You need to give more details

Good Morning @farfromrefug, ok, sorry I try to explain in more detail. In the following I attached two images. The first one shows a correct layout in order to explain what is on the screen. The green marked part of the screen is not part of uicollectionview. In the collectionview, which is used by the remaining part of the screen, there are three different types of
ng-template used.

Group header with height=45. I marked only a single one in the view in red. It is the topmost, with the white background and green text.

A normal nutrition item, which also has  height=45. Example is also marked in red, second topmost. These all have a transparent background.

A footer item with height=25. I marked two examples in the image below. Footer items can display nutrition information, if the group they belong to, contain nutrition items, or they can be empty. For both cases I marked an example in red.

Alright, let's look now at how things look like if cells get reused (broken layout). In the image below, I marked the extent of the reused cells.
The topmost red cell shows again a footer item. It should have a height=25. It seems that the underlaying reused cell has height=45, therefore the  content of the footer item is shifted to the top and the space below is transparent. If the underlaying cell would have the correct height of 25 for the footer template, then this empty space should not exist.
The second red marked block shows an example were things break the other way around. Here a normal nutrition item with height=45 gets assigned an underlaying cell which previously was created for a footer item (height=25). Part of the new nutrition item content therefore reaches into the cell above.

I hope this helps to understand the problem better. To me it seems like the cells, when they are reused are not selected depending on for which ng-template type they were created for. Maybe this is the intended behavior. But in this case they should recompute their height based on the content of the new ng-template which is to be displayed in them.
Does my explanation make the situation more clear to you? Thanks for taking the time to look into it!

@cjohn001 ok i understand it now, thanks. I might have an idea on what s happening. I will try and and release a version which might fix it. If not i will need a reproducible example

@farfromrefug: Ok thanks!

@cjohn001 you can try 4.0.43

@farfromrefug : Thank you very much. It works great!


Fix/k32w0 shell app

Problem

shell app was not working on K32W0

Change overview

fix linkage error by disabling the ping functionality
fix deadlock in Thread implementation
fix printing by adding CR
This commit relates to #11346

Testing

testing using chip-tool

I am confuse. This PR is to apply to the Test event 7 branch ? If you need it in the branch officially should we not just cherry-pick the shell fixes already in master ?
If you also need other changes for NXP, I think those should first be merged in master and then cherry-picked if need be to the te7 branch

Adding checkmark because merge  from master. The "\r" seems odd to me since that may not be a correct choice for all platforms (I would argue that probably it was added for windows monitoring rather than linux) however that is in master and probably does  not cause that much harm.

I am confuse. This PR is to apply to the Test event 7 branch ? If you need it in the branch officially should we not just cherry-pick the shell fixes already in master ?
If you also need other changes for NXP, I think those should first be merged in master and then cherry-picked if need be to the te7 branch

I made the changes during TE7 and that's why I targeted TE7 branch initially. Later on I also needed it on master branch and opened a PR there. But I agree, In the future I will submit the fix to the master branch and then we can cherry-pick from there.


Suggested README updates

The link to the devfile example configuration file is broken (missing "v" in devfile)
The Appsody example config file references Java microprofile, which is now deprecated. Might be worth replacing with something else to avoid confusion. The title also says "# Sample configuration for Kabanero stack hub" ..Maybe should say IBM Cloud Pak for Applications stack hub"?
The README title is REPO-TOOLS. Should this be updated?
I think the Appsody stack config in the README has incorrect indentation for include:

All of these should be addressed already or in #8.


Implement Response.clone (#125)

This simple commit takes the existing Request.clone implementation and adapts it to work for Response.clone. This was done largely as a learning exercise.
I did have a question regarding the current Response class. It appears that a URL slot is missing from Response where it appears in Request. The spec shows a url attribute which would imply that this slot should be implemented.
Is this intentionally left out or something that just hasn't been added yet?
I have yet to get the WPT tests running properly on my machine, so this has not been tested against those. As such, I am leaving this as a draft until I can validate against those.

This is amazing, thank you for sharing. If you are able to get the tests running it would be great to get the WPT coverage working here.
In order to get the test coverage updated, we run the tests with WPT_FLAGS="--update-expectations". It does seem like some WPT cases have switched from passing to failing in the process as well - it seems like this is actually as a side effect of adding the feature rather than being an explicit regression, so assuming that is the case that should be okay, but it would be worth confirming this first.
With regards to your question, RequestOrResponse is the base class for both which has a URL slot, then the extended slots for Response pick up at this RequestOrResponse::Slots::count so URL is very much still on Response, implemented via its accessor (https://github.com/bytecodealliance/StarlingMonkey/blob/main/builtins/web/fetch/request-response.cpp#L2021).
Let me know if I can assist further at all with getting the WPT setup working for you.

The latest commits expose the URL slot to make Response consistent with Request, as well as make sure to copy the value as part of Response.clone. In addition, the code for cloning Response is greatly simplified, so long as constructing a RootedObject from RequestOrResponse::headers actually works as I am hoping it does. Testing the before and after does appear to work as expected.
I was able to get WPT running on my machine and it is reporting:
1: Running test fetch/api/response/response-clone.any.js
1: Sending request to http://<IP_ADDRESS>:7676/fetch/api/response/response-clone.any.js
1: wasmtime stderr: stderr [83] :: Warning: Using a DEBUG build. Expect things to be SLOW.
1: wasmtime stdout: stdout [83] :: Log: running test /fetch/api/response/response-clone.any.js
1: fetch/api/response/response-clone.any.js                           6 /   21 (   +0,    -0,    ?0) passing in    0ms

This would imply that some amount of tests are failing, so I will dig into these further to see if I can aim for higher success rate in WPT.


FR: Please allow setup alternative keyboard shortcuts

It also require https://github.com/alainfrisch/nostalgy/issues/31 to be fixed.
My Intention have shortcut which work without always switch keyboard layout to English. I use 2: Us and Ru (Russian). So, if I could set two like Shift + S and Shift + ы it will not require me press series of keys.

Not sure if or how this relates to #31 but you should be able to fix/set whatever key shortcuts you want by using an extension called Dorando Keyconfig.  It just exposes a UI for TB's shortcuts and lets you change and/or disable them.
hth.


refactor(html): minor style improvements for usages

Made the usage tab buttons non-selectable and removed the unexpected empty spaces between them.

@crowlKats Forgot to merge?

there was some reason why i didnt, but cant recall what exactly.


Feature/responsive design

"| Developer Portal" breaks a bit weirdly here:

I think the buttons in the navbar looks a bit weird if the screen is small, but not so small that the navbar is collapsed:

Maybe the buttons can be made smaller for medium size? Lower border radius, less padding, smaller text? Or maybe the navbar should collapse earlier? If the chonky look is unavoidable, I think they would look better if the text is centralized both vertically and horizontally


Change SkinData to use a custom ProfileProperty

SpongeAPI | SpongeCommon
This PR implements the changes in the corresponding Sponge API PR.

Can you leave old way?

@kashike Do you want any more changes?

Keys.UPDATE_GAME_PROFILE thing is very confusing.
Why we can't just update GameProfile internally?
And if player will be unvanished, new skin will be sent?

@XakepSDK I've added javadocs explaining how the key works.
Setting it to true will update the GameProfile internally. However, plugins that wish to have more control over players can set it to false. This allows the player's skin to be treated as a purely visual effect, allowing plugins to manipulate the player's tab list and gameprofile separately.

Merged in https://github.com/SpongePowered/SpongeCommon/commit/3d24556ce3c9692377758a493f1c1c6905505b87.


New Data Flow does not show property editor

Describe the bug
When creating a new data flow between two other components, I am not provided the ability to edit the properties, like for example Name, or threats or whatever. I can edit the properties on the demo diagrams. But when I add a new flow to the demo diagram the property editor does not appear then either.
When modifying the name attribute in the underlying json, I still don't see it in the editor, or the generated pdf.
Expected behaviour
To be able to edit the flow propertiers
Environment
v2.02
mac
To Reproduce

Any additional context, screenshots, etc

I figured it out! If you click the arrow of the data flow, it will bring it up.. Very tricky.. And I didn't find that instruction in the doco either.

Leaving this open as a priority, because it is really awkward to select a dataflow


staticmethods do not show in the "Classes and functions" list

From<EMAIL_ADDRESS>on 2010-01-24T21:57:49Z
What steps will reproduce the problem?

Editing a python file
Before a def you put a @-staticmethod parameter. What is the expected output? What do you see instead? - Expected: The method still visible in the middle. Maybe a different color.

Instead:  The method dissapears from the Classes and functions window in
the middle What version of the product are you using? On what operating system? Spyder 1.01 on Windows 7

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=141

From pierre.raybaut on 2010-02-09T00:21:47Z
If you want to try a development version of Spyder, you must create a local mercurial
repository on your machine. The easiest way to do this is to clone the Google Code's
mercurial repository:
hg clone https://spyderlib.googlecode.com/hg/ spyderlib
Once you've done that, you will have an up-to-date development version of Spyder in
the directory named 'spyderlib'. In the future, when you want to update this version
to the latest development version, you would have to pull changes from the Google
Code's mercurial repository:
cd spyderlib
hg pull -u https://spyderlib.googlecode.com/hg/

From<EMAIL_ADDRESS>on 2010-02-08T10:17:04Z
I tried to switch out the .py files but then spyder did not run. How do I update to
fix this?

From pierre.raybaut on 2010-02-06T07:02:21Z
Fixed with the brand new class browser: https://code.google.com/p/spyderlib/source/detail?r=9f74b4027852da90f32c67a0271fbca2c9267fe2
Status: Fixed


Initial deployment

Does it make sense to get a deployment up? If so, how do you all want to deploy?

I ended up deploying the demo version of it on an e2-small GCP instance; it's accessible at https://co-cancer-scope.cu-dbmi.dev/. The app is containerized, so the only requirement for hosting it elsewhere would be a container runtime, e.g. Docker.
I'll close this for now since AFAICT it's completed, but feel free to comment and reopen if you like.


Vagrantfile: Adding DeleteOnTermination to root volume for AWS

By default, the root volumes stick around after the Vagrant goes away. This is not a good default if builder instances are cycled regularly.

The commit needs a DCO sign-off, but other than that, LGTM.

Derp. I always forget the DCO . . . fixed.


⚠ Jenkins Plugins Artifactory has degraded performance

In ba89cbd, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1253 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 340b8f1 after 13 minutes.


External keyboard input bug in TextField

Steps to Reproduce

Execute flutter run on the code sample
use external keyboard input some chinese word
press enter key
Steps 2 and 3 are executed multiple times in a loop
Expected results:
The word selection box should follow the cursor

Actual results:

Code sample

import 'package:flutter/material.dart';
void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}
class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            TextField(
              maxLines: 100,
              minLines: 10,),

          ],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Logs

@burst3166
You are on obsolete version of the framework. Current version is 2.5.3. So I recommend to upgrade to latest and try again to see if issue still persists or not. I am going ahead and closing this for now. After upgrading if you see same behavior, write in comments and I'll reopen it.


ApplicationPublishObject missing subscription-key

Hi,
We are able to associate the Subscription Key from Azure Portal with LUIS app through Publish Settings in Luis.ai portal,
We see that API is accepting the following JSON, {
"endpointUrl": "DummyUrl",
"subscription-key": "DummyEndpointKey",
"endpointRegion": "westus",
"isStaging": false
}
However programmatic client code does not have the subscription-key property. Can you please let us know the ETA for adding this missing property in the client?

+1

@venkatesh-bhupathi
LUIS does not store the subscription keys for security and compliance reasons. It's the responsibilty of the user to maintain the subscription key.
Can you describe the scenario you need to retrieve the subscription key for?

#please-close

Closing this out as there has been no recent engagement.  Please feel free to reopen or file a new issue if this remains a problem with the current version of the library.


Bug with private styling

project (2)test.json

I still don't understand what happened here. But you can see the result in the Cursed Beings section.

Somehow, even though private styling is enabled in your project.json file, it appears that the styling object is missing in that choice. I have fixed it by defining styling where it was missing in choice, so pressing Ctrl+F5 should now work correctly.


Bug: Framework can cause app to crash due to variable data race with async access

Describe the bug
The internal conversationsByTopic property can be accessed and mutated from various threads simultaneously due to concurrency. As access to this storage is not gated by a lock or other synchronization, this can lead to malformed memory and cause unavoidable crashes when the framework accesses that property.
See screenshot for an example of where Xcode caught the error in the debugger:

Expected behavior
The XMTP framework should not induce crashes.
Steps to reproduce the bug
Client code that invokes Conversations methods which internally mutate the conversationsByTopic storage will eventually trigger the crash. This was first observed due to app code that observed streamAllMessages() and then also invoked the list() method.

Thanks for flagging this. Great catch!


fixing infinite worker loop

Signed-off-by: Mike Monaghan<EMAIL_ADDRESS>

Sorry about the numerous PRs, workstation git config was preventing DCO from being validated. :)


Theme customization option

What feature or improvement do you think would benefit Files?
I've seen the theme customization options, but I suggest implementing the color and mica effect in the options menu.
The mica effect should be enabled and adjusted separately in each section.

Requirements

go to settings
appearance
adjusts color and mica effect of sections separately

Files Version
Versione <IP_ADDRESS>
Windows Version
Windows 11 Pro Versione 22H2
Comments
No response

This is already supported https://files.community/docs/configuring/custom-themes
Using a solid color for any area will turn off mica.

if I remove the mica effect from this element "AppThemeBackgroundColor", the effect in the "AppThemeSidebarBackgroundColor" also changes.
There is no instruction only for color customization_1

AppThemeBackgroundColor needs to be transparent for mica to work.

So this section can't be without mica effect, otherwise I'll remove it from everything?

Not currently, I'll see if I can add support.

you would be interested in a set of custom icons. I created them with a new effect for genre element, if it can be interesting I could prepare them for you for a future update

where do i find the folder with the default home folder icons if i want to change them?

It's under src\Files.App\Assets\FluentIcons

I searched for it, but I can't find the Files folder.
Even doing a search with FluentIcons I can't find anything

Its on the repository. Only way to change them if you build the app yourself

https://github.com/files-community/Files/tree/main/src/Files.App/Assets/FluentIcons

What if you want to change these too?

or this of the 2.3 version


Not able to locate the incidents

We are forwarding logs from Logstash to Cyphon through RabbitMQ , where can we locate this log files , do we need to write watchdog rules to create incidents in cyclops for this events ?

If you’re forwarding logs to a watchdogs queue, Cyphon won't save the logs, it will only generate alerts from them (although an alert will save a copy of the data that triggered it).
To save all the logs to Elasticsearch, you either need to use an Elasticsearch output plugin in your Logstash config (while still sending a copy to a RabbitMQ watchdogs queue), or output them to a datachutes queue (if you’re using Logstash to parse the logs into JSON) or a logchutes queue (if you want Cyphon to do the parsing). The default Cyphondock config for Logstash will send one copy to Elasticsearch to be saved, and another copy to a watchdogs queue for alert generation. You can view the configuration here.
In any case, you’ll definitely need to configure watchdogs to generate alerts that will be viewable in Cyclops.


lib/types: Introduce types.unconditional

Motivation for this change
Introduce types.unconditional <elemType> as a type, which when used as e.g. attrsOf (unconditional str) can replace lazyAttrsOf str. This type ensures that conditional mkIf definitions can't influence whether the option is defined or not, and therefore make the attribute set values be evaluated lazily. This notably also works with listOf (unconditional str), making the list elements evaluated lazily, which was not possible before.
Split off from https://github.com/NixOS/nixpkgs/pull/132448
Things done

[x] Write and run tests
[x] Write docs

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tweag-nix-dev-update-25/18003/1

Let's get this in while we wait for NixOS/nix#4090? I think this is a welcome simplification with no downsides.

That proposed change only allows access to attributes on the right hand side of // (or whatever can be translated into //s), and will still require evaluation of left hand sides when the attr is missing on the right. Crucially it will still force evaluation of all the attribute names when the selected attribute is missing, which is a problem because it elevates an easy to debug error (missing attribute) to a difficult error (infinite recursion, aka "uninformative" module system trace deluge).
In case a self-reference is optional, unconditional is the only solution, because it allows self.xyz or null to actually return a null instead of an infinite recursion.


Spread fails

I want to get the rest of the arguments, like _.omit() of lodash does. But I can't get them
Example:
function (args = {}) {
  let { callbackOK, callbackERROR, ...argsWS } = args;
  ..
}

Dont know what you mean...
If I parse this code:
 function a(args = {}) {
    let { callbackOK, callbackERROR, ...argsWS } = args;

}

it works for me. (function needs a name or it's invalid javascript)
see

:


Add crawler for detiknews.com

Adding crawler for pilkada jabar by detiknews.
There is a problem:

for some news, detik will forward your request to mobile site. If this happens,the crawler is not able to read the mobile site data.
Fix #5

@rizkyekoputra please review

Awsome @imrenagi !!!
will review this asap

Add bug fixing for #8


Key input issue with special characters and french keyboards (AZERTY)

Godot version
3.3.4
System information
MX Linux with the french keyboard layout
Issue description
Input.is_key_pressed( ) works with both lower and upper case but with special characters like É it only works in upper case.
Steps to reproduce
The Input.is_key_pressed(KEY_A) for example works for both lower and upper case this is normal but when using special keys like KEY_EACUTE (É key) it only works in upper case with caps lock enabled on my AZERTY keyboard (actually with capslock the é key enters the number 2...). The same applies to other special keys like for example KEY_CCEDILLA (Ç key), it only works with caps lock which enters the number 9 on my keyboard.
This only happens with letters, for example Input.is_key_pressed(KEY_AMPERSAND) (& key) works fine.
Minimal reproduction project
func _process(delta):
print(Input.is_key_pressed(KEY_EACUTE)) # Should display true if é in lower case is pressed

Use physical key inputs if you want to avoid disrepancies across keyboard layouts. These were introduced in Godot 3.4 beta:

@Linko-3D Did you get physical key inputs to work?

Hello,
Yes the Physical option works both on QWERTY and AZERTY keyboard layout.


Developer documentation for API upgrade workflow and tooling

As we work towards the v3 release, many tools are being developed to automate the flow, e.g. the type whisperer, type database, Clang tools for upgrading Envoy source etc. These should be fully documented, together with workflow and how an API update happens in some developer facing Markdown. CC @mattklein123

Design document is available at https://docs.google.com/document/d/1V4YAtC9gpYd_KmI_X5yUJDPVHJX1lGT0IOb74BCoAXc/edit#

Between the design doc and https://github.com/envoyproxy/envoy/blob/master/tools/api_boost/README.md, I'm going to call this one done. Please re-open if anything more is needed here.


simple substep implemenation

Greetings impress.js overlords:
I have made an unobtrusive and clean attempt at providing the basics of a substep feature.
My implementation follows the syntax and behavior modeled by regular steps:

denote a substep by adding the css class 'substep' to elements in a step
init will prepare the substeps with the additional css class 'future'
next/prev will check within the current step for potential substeps
navigation through substeps will set 'present', 'active', and 'past' - just like steps
the only variation is substeps remain 'active' when past
backward navigation removes 'past/active', restores 'future' as needed
I've included substep events, following a similar model as regular steps

Because the only presentation-side change is CSS classes, there would be no effect on existing presentations.  A new presentation would have to implement substep specific css to utilize the feature.  This is outlined in the comments of the example html and css.
I thought it was best to create a separate example, rather than tinker with the existing index.html, as it seems like someone who wants substeps will find the html and figure it out from there.
Substeps are not included as a separate API feature.  I felt this was the right thing because it didn't seem necessary to directly navigate to a substep. I also didn't think deep linking a substep made sense, and the sytax for that would have gotten weird, anyway.  It did make sense to hook into next/prev. If you're adding substeps, you probably wouldn't want prev/next to skip them, even if you're moving via the API.
I felt an expected default behavior was to have substeps remain active, but that's easily changed.  This could also be easily toggled with a 'data-' property.
The TL;DR notes on my commit are:

a couple of helper functions for finding and handling substeps
a small if/else check in next/prev to decide if a substep is available
a separate example html page with it's own CSS.

I know substeps are 'powerpointish', and thus subject to controversy.  They also may not meet the impress.js philosophy.  My coding style might not be exactly in-line with the main repo.  If the philosophical issue can be overcome, I'm happy to revise my code as needed to be acceptable.  Just let me know.
Thanks for considering my contribution!
-- Aaron (aka tehfoo)

Hi @misterbrownlee , in an effort to clear up older issues/PRs we are pinging back to know if you are still tracking this request.
To give a little bit of context, recently a decision was made in the project to make the development more active and the first task is to clear up older PRs like this one to see if the OP is still interested in keep it going.
By the way, this one seems duplicate of #214 and #264.

This looks like pretty much the same thing as #264, just with slightly different naming choices. I think it's a good approach in general, and I don't care which one is merged.

Closing due to the lack of feedback from the OP. If you want to work in the PR again, feel free to comment here to open up the discussion again.
Also, this PR was opened in the dev branch, as from the CONTRIBUTING.md file, it should be opened against the master branch instead.


Google_Client::verifyIdToken return invalid token signature

I'm trying to work with the php client of google Oauth2 api to validate an id_token. The id_token is provided by a javascript app on which the user login his google account, and i'm givin this token to my php api server, in order to validate it and retrieve the right informations from my bdd.
The login in javascript is successfull and the access and id_token seems right, but when I try to verify it with Google_Client->verifyIdToken()
$client = new Google_Client();
$ticket = $client->verifyIdToken(myToken);
, it return an invalid token signature exception (fail when trying to use the google cert to valid the token).
My first assumption was to think the token is not valid, so to make sur it is, i submited it to google validation url https://www.googleapis.com/oauth2/v1/tokeninfo?id_token=token
it return user info, so my token seems to be valid :
{
issuer: "accounts.google.com",
issued_to: "id",
audience: "id",
user_id: "id",
expires_in: 2149,
issued_at:<PHONE_NUMBER>,
email: "mail",
verified_email: true
}
Tried everything i can think of, but can't solve this one. can someone help me ?
Question asked on stackoverflow too : http://stackoverflow.com/questions/23104721/google-oauth2-verifyidtoken-return-invalid-token-signature-with-valid-id-token

It's timezone fault!
in my case it's work(day), not work(night after 12AM), work again(tomorrow)!
when it's stop working, just set timezone to America/New_York and its work, remove timezone then stop working.
And its happened because of some country have future date window rather than usA.
you know that if you change your system date time then SSL stop working.
I think it's the same problem. google sign it for it's own today but actually your yesterday!
php 7.1
macOS Sierra
Timezone 3:30

Are you sure ? i just used both date_default_timezone_set('America/Los_Angeles'); and date_default_timezone_set('America/New_York'); and it's still not working. However, i can confirm that it does work during the day and stops working as darkness conquers the sky.

@ianbarber Moving to OpenSSL/1.0.2l didn't fix the issue. What should i do now ?


Kotlin inline function not detected as lib usage

We have a kotlin module using the artifact:
com.jakewharton.threetenabp:threetenabp:1.2.1
especially the inline function: import org.threeten.bp.temporal.TemporalAdjusters.firstDayOfMonth
and the lib is recognized as unused dependency.

There's something a bit weird here. As far as I can tell, org.threeten.bp.temporal.TemporalAdjusters.firstDayOfMonth is neither an inline function nor a member of the JakeWharton/ThreeTenABP project. It is instead a static function in the core ThreeTenBP project.
I don't know what the actual problem is, nor the expectation.
Looking at the JW project, it looks like the only place that needs his artifact is your custom Application class, where you are meant to call AndroidThreeTen.init(this), and otherwise you're just using the core ThreeTenBP project, which is provided as an api dependency.
Per the design philosophy of this plugin, if you're using a transitive dependency, you're wrong and should declare it directly. If a user finds this to be an unsatisfying answer, they can ignore certain dependencies with the DSL.

@stephanenicolas any more information on this?

I think I am running into this issue. I have a very small android library module that references a single inline function from androidx.core:core-ktx:1.3.0. The library module declares this dependency as implementation. Running adviceDebug on the library module reports the following:
Unused dependencies which should be removed:
- implementation("androidx.core:core-ktx:1.3.0")

Transitively used dependencies that should be declared directly as indicated:
- api("com.google.dagger:dagger:2.28.3")
- api("javax.inject:javax.inject:1")
- implementation("androidx.core:core:1.3.0")

This is the inline function that is being used:
inline fun <reified T : Any> Context.getSystemService(): T? =
        ContextCompat.getSystemService(this, T::class.java)

I understand the transitive usage of androidx.core:core:1.3.0 but it should not be telling me to remove androidx.core:core-ktx:1.3.0.
Unfortunately, I attempted to create a small example project but I am not able to reproduce there so now I am even more confused. Let me know if you have any ideas on how to provide any additional details.

@kyhule thanks for the report. There are two things you could tell me:

provide a usage example so I can see exactly how you're using this, including your import statement
could you share the contents of <module>/build/reports/dependency-analysis/debug/intermediates/inline-usage.json

I went back to my minimal working example to push it up so you could at least see how I have it set up in my real project. I did a quick comparison and found a difference that I originally missed. The lib module in my real project was setting and using the directory src/main/kotlin and adding it in the sourceSets via main.java.srcDirs += 'src/main/kotlin'. Once I made that change, I was able to successfully reproduce. Here is a minimal working example:

The main branch reproduces the false positive: https://github.com/kyhule/unused-ktx-false-positive
This branch does not: https://github.com/kyhule/unused-ktx-false-positive/tree/java-srcDir-fixes-false-positive
The the output of running buildHealth is included on each respective branch.

If instead of
sourceSets {
  main.java.srcDirs += 'src/main/kotlin'
}

you used
android {
  sourceSets {
    main.java {
      srcDir 'src/main/kotlin' // this function adds a single directory
    }
  }
}

then this problem would be solved.
So, two things:

I do think it is more correct to use android.sourceSets for an Android project. The bare sourceSets is for Java libraries.
I believe I should support your use-case nonetheless, and will work to resolve it.

Thanks for the advice. This looks like one of those things that everyone just copy/pastes into a new module's build.gradle in our project not considering what type it is, especially given this is in every one of our build.gradles even for projects that don't even use a kotlin source directory.


docs: fix small typo in Sass doc of $card-background

Hi @piouPiouM, thanks for your contribution which is your first contribution for Foundation Sites 🎉
We have some guidelines for contributors, see https://github.com/zurb/foundation-sites/pull/11167#issuecomment-380942576
I changed the PR title for you.

Hi @DanielRuf, sorry for the inconvenience. I will be more attentive next time :)


Could not cast value of type 'FSCalendarCell' to 'DIYCalendarCell'

Hi I had hard to the create a custom cell.
I followed the example code DIYCalendarCell and basically no any changes.
Just add new file that subclass to FSCalendarCell and then paste the code in the DIYCalendarCell and then register the custom cell to the calendar. However it crashes on the line
let diyCell = (cell as! CalendarDateCell)
it says "Could not cast value of type 'FSCalendarCell' to 'DIYCalendarCell' ", but the same code in the example project works properly.
I would appreciate if you can help me on this. Thank you
Xcode version is 8.3.3
FSCalendar version is the latest.
Device: Simulator iPhone 7
The following informations are requested in a bug report

A brief bug description.
Stack trace.
Integration method.(manually/cocoapods/carthage)
Full steps to reproduce.
Device modal and iOS version.  e.g. iPhone 6s iOS9.1
Xcode version.  e.g. Xcode 8.1
FSCalendar version. e.g. FSCalenda 2.5.1
Does this happen in the demo project? Which one? Or a link to another demo project.

same issue here.... Please who has figured this out...

incase you haven't figured this out yet, here is the solution, add this
func calendar(_ calendar: FSCalendar, cellFor date: Date, at position: FSCalendarMonthPosition) -> FSCalendarCell {
    let cell = calendar.dequeueReusableCell(withIdentifier: "cell", for: date, at: position)
    return cell
}

same issue.. Please  give me any solutions ??

try to import FSCalendar in DIYCalendarCell.swift file than clean and build the project.It solves my error but now app crashes because of did not find identifier "Cell".


Cannot clone repos with git

When I use git clone, stash returns “no module named urlparse”.  The problem is, this module cannot be installed as it is python2-only.

Run launch_stash in py2.  For various reasons, stash git isn't fully supprted in py3 yetOn Mar 19, 2019 12:54 AM, Maxim Kuzmin<EMAIL_ADDRESS>wrote:When I use git clone, stash returns “no module named urlparse”.  The problem is, this module cannot be installed as it is python2-only.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.


Remove shayzien armour from cl or make it obtainable

🐛 Bug Report
As far as I'm aware shayzien armour is unobtainable since the favour update. Would it be possible to either make it obtainable or remove from cl? thanks much love goodnight

just saw tasty added code etc for this, my bad silly me


Loading FaceLandmarker on iOS

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
iOS 17.4
MediaPipe Tasks SDK version
0.10.13
Task name (e.g. Image classification, Gesture recognition etc.)
Face landmark detection
Programming Language and version (e.g. C++, Python, Java)
Swift
Describe the actual behavior
FaceLandmarker constructor throws NOT_FOUND error
Describe the expected behaviour
FaceLandmarker constructor creates an instance
Standalone code/steps you may have used to try to get what you need
I have a Swift class that creates an instance of FaceLandmarker in its constructor. The model exists on `modelPath` and is readable. However, the FaceLandmarker constructor throws this error: "Error Domain=com.google.mediapipe.tasks Code=5 "NOT_FOUND: No file with name: face_detector.tflite. All files in the model asset bundle are: ."

I have another class that constructs a MediaPipe FaceDetector the same way, loading its model from the same bundle and it works fine.

This throws the `NOT_FOUND` error on `try FaceLandmarker(options: options)`:

public class FaceLandmarkDetectionMediaPipe {

    private let faceLandmarker: FaceLandmarker

    public init() throws {
        guard let modelPath = Bundle.module.path(forResource: "face_landmark", ofType: "tflite") else {
            throw FaceDetectionError.modelFileNotFound
        }
        let options = FaceLandmarkerOptions()
        options.baseOptions.modelAssetPath = modelPath
        options.outputFaceBlendshapes = false
        options.outputFacialTransformationMatrixes = false
        options.runningMode = .image
        self.faceLandmarker = try FaceLandmarker(options: options)
    }
}

This works fine:

```swift
public class FaceDetectionMediaPipe {

    private let faceDetector: FaceDetector

    public init() throws {
        guard let modelPath = Bundle.module.path(forResource: "blaze_face_short_range", ofType: "tflite") else {
            throw FaceDetectionError.modelFileNotFound
        }
        let options = FaceDetectorOptions()
        options.baseOptions.modelAssetPath = modelPath
        options.runningMode = .image
        self.faceDetector = try FaceDetector(options: options)
    }
}

### Other info / Complete Logs

_No response_

FaceLandmarker seems expected *.task file contains tflite models and a geometry_pipeline_metadata_landmarks.
You can unzip the original model "face_landmarker.task" in sample.
And will find files as below:
.
├── face_blendshapes.tflite
├── face_detector.tflite
├── face_landmarks_detector.tflite
└── geometry_pipeline_metadata_landmarks.binarypb

Thank you @uranus0206. You were correct. Including the task file and adjusting the modelAssetPath solved it. For completeness, here is the working initialisation code:
public class FaceLandmarkDetectionMediaPipe {

    private let faceLandmarker: FaceLandmarker

    public init() throws {
        guard let modelPath = Bundle.module.path(forResource: "face_landmarker", ofType: "task") else {
            throw FaceDetectionError.modelFileNotFound
        }
        let options = FaceLandmarkerOptions()
        options.baseOptions.modelAssetPath = modelPath
        options.outputFaceBlendshapes = false
        options.outputFacialTransformationMatrixes = false
        options.runningMode = .image
        self.faceLandmarker = try FaceLandmarker(options: options)
    }
}


Error using chip erase

By setting fuses, I have enabled CRC scan of boot section during boot. The CRC scan fails.
Then, I perform chip erase by running:
sudo pymcuprog erase -i updi -d avr64ea48

That does not work, and produces following output:
pyedbglib.protocols.jtagice3protocol - ERROR - JTAGICE3 error response code 0x43: 'AVR8_FAILURE_CRC_FAILURE: CRC error'
pymcuprog.nvm - WARNING - AVR8_FAILURE_CRC_FAILURE: CRC error
pymcuprog.pymcuprog - ERROR - Operation failed with Jtagice3ResponseError: AVR8_FAILURE_CRC_FAILURE: CRC error

The chip erase works when using Microchip Studio: Device Programming -> Memories -> Device -> Erase Now. I assume chip erase should work the same way in pymcuprog.

Hi @strawberryhacker
Yes, this is a bit of a tricky one for pymcuprog...  the catch here is that Studio actually automatically and secretly resets the fuse value after an erase (fuses are untouched through an erase), and we did not want to build in this knowledge to pymcuprog.
A possible workaround is to write the corrected fuse value using pymcuprog, and use the chip-erase-locked-device switch to get in.  This will perform a UPDI-key-based erase, and immediately write the fuse.
for example on my tiny1627:
pymcuprog write -m fuses -o 5 -l 0xC7 --chip-erase-locked-device
will do this.


Can't login, authorization page is not properly configured

Expected Behavior
When clicking the "Continue with GitHub" button, a page opens and redirects to the page to select the provider and shows the code/launches the application
Actual Behavior
Page doesn't properly load and shows a bunch of errors related to MIME types after redirecting to the authorization page

Reproduction Steps

Open the application brand new
Click "Continue with GitHub"
Wait until the page loads in the browser
Click on any of the providers, which does nothing

Tried with different networks, different browsers and the behavior is the same.
Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
No extensions or anything else was enabled (tried using the "Guest" profile on Chrome and the same behavior was seen)
Insomnia Version
9.2.0
What operating system are you using?
macOS
Operating System Version
Sonoma 14.5
Installation method
Homebrew
Last Known Working Insomnia version
No response

same here. bump.

@OneComputerGuy @10ego it should be resolved now.