FileNotFoundError: snmn/exp_clevr_snmn/data/resnet101_c4/train/CLEVR_train_000000.npy'

I followed all the steps and got an error here. Do you know how I could fix it?
[jalal@goku snmn]$ python exp_clevr_snmn/train_net_vqa.py --cfg exp_clevr_snmn/cfgs/vqa_gt_layout.yaml
/scratch/sjn/anaconda/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
2018-09-28 15:59:46.158093: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-09-28 15:59:46.348097: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705
pciBusID: 0000:05:00.0
totalMemory: 10.92GiB freeMemory: 5.96GiB
2018-09-28 15:59:46.348160: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0, compute capability: 6.1)
Loading imdb from ./exp_clevr_snmn/data/imdb/imdb_train.npy
Done
imdb does not contain bounding boxes
Traceback (most recent call last):
  File "exp_clevr_snmn/train_net_vqa.py", line 33, in <module>
    vocab_layout_file=cfg.VOCAB_LAYOUT_FILE, T_decoder=cfg.MODEL.T_CTRL)
  File "/snmn/util/clevr_train/data_reader.py", line 136, in __init__
    self.batch_loader = BatchLoaderClevr(self.imdb, self.data_params)
  File "/snmn/util/clevr_train/data_reader.py", line 45, in __init__
    feats = np.load(self.imdb[0]['feature_path'])
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/numpy/lib/npyio.py", line 370, in load
    fid = open(file, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/snmn/exp_clevr_snmn/data/resnet101_c4/train/CLEVR_train_000000.npy'

Hi, did you run the feature extraction step?
cd ./exp_clevr_snmn/data/
python extract_resnet101_c4.py

If yes, is there any error from running this file?
Also, could you check whether the CLEVR dataset correctly linked (so that there are files like exp_clevr_snmn/clevr_dataset/images/train/CLEVR_train_000000.png)

yes I did that step and got that error
[jalal@goku snmn]$ ls exp_clevr_snmn/clevr_dataset/images/train/CLEVR_train_000000.png
exp_clevr_snmn/clevr_dataset/images/train/CLEVR_train_000000.png

Hmm.. Somehow the absolute paths of the feature files are not correct. From the error above (/snmn/exp_clevr_snmn/data/resnet101_c4/train/CLEVR_train_000000.npy), it looks that os.path.abspath in https://github.com/ronghanghu/snmn/blob/master/exp_clevr_snmn/data/build_clevr_imdb.py#L18 thinks that the repo is in the root of the file system (/snmn), which shouldn't happen in most cases.
If the following file exists exp_clevr_snmn/data/resnet101_c4/train/CLEVR_train_000000.npy, then maybe you can try changing the line https://github.com/ronghanghu/snmn/blob/master/exp_clevr_snmn/data/build_clevr_imdb.py#L18
from
    abs_feature_dir = os.path.abspath(feature_dir % image_set)

to
    abs_feature_dir = './exp_clevr_snmn/data/resnet101_c4/%s/' % image_set

And re-run build_clevr_imdb.py to see if it solves the problem.

thank you. I changed line 18 to what you mentioned above and got this new error. Should I use a very specific version of tools?

[jalal@goku snmn]$ vi exp_clevr_snmn/data/build_clevr_imdb.py
[jalal@goku snmn]$ python exp_clevr_snmn/train_net_vqa.py --cfg exp_clevr_snmn/cfgs/vqa_gt_layout.yaml
/scratch/sjn/anaconda/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
  return f(*args, **kwds)
2018-09-28 17:56:01.104008: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-09-28 17:56:01.267412: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705
pciBusID: 0000:05:00.0
totalMemory: 10.92GiB freeMemory: 6.08GiB
2018-09-28 17:56:01.267476: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0, compute capability: 6.1)
Loading imdb from ./exp_clevr_snmn/data/imdb/imdb_train.npy
Done
imdb does not contain bounding boxes
Traceback (most recent call last):
  File "exp_clevr_snmn/train_net_vqa.py", line 45, in <module>
    num_choices=num_choices, module_names=module_names, is_training=True)
  File "/scratch2/nlp_cs591/assignment1/snmn/models_clevr_snmn/model.py", line 33, in __init__
    lstm_seq, q_encoding, embed_seq, seq_length_batch, num_module)
  File "/scratch2/nlp_cs591/assignment1/snmn/models_clevr_snmn/controller.py", line 85, in __init__
    module_prob = tf.nn.softmax(module_logit, axis=1)
TypeError: softmax() got an unexpected keyword argument 'axis'

can you please a requirements.txt file?
I upgraded tf and ended up with another problem

[jalal@goku snmn]$ pip install --upgrade tensorflow
Collecting tensorflow
  Downloading https://files.pythonhosted.org/packages/ce/d5/38cd4543401708e64c9ee6afa664b936860f4630dd93a49ab863f9998cd2/tensorflow-1.11.0-cp36-cp36m-manylinux1_x86_64.whl (63.0MB)
    100% |████████████████████████████████| 63.0MB 46kB/s
Collecting keras-applications>=1.0.5 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/3f/c4/2ff40221029f7098d58f8d7fb99b97e8100f3293f9856f0fb5834bef100b/Keras_Applications-1.0.6-py2.py3-none-any.whl (44kB)
    100% |████████████████████████████████| 51kB 631kB/s
Requirement already satisfied, skipping upgrade: six>=1.10.0 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (1.11.0)
Collecting tensorboard<1.12.0,>=1.11.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/9b/2f/4d788919b1feef04624d63ed6ea45a49d1d1c834199ec50716edb5d310f4/tensorboard-1.11.0-py3-none-any.whl (3.0MB)
    100% |████████████████████████████████| 3.0MB 300kB/s
Requirement already satisfied, skipping upgrade: gast>=0.2.0 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (0.2.0)
Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (1.1.0)
Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (1.10.0)
Requirement already satisfied, skipping upgrade: numpy>=1.13.3 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (1.14.2)
Requirement already satisfied, skipping upgrade: astor>=0.6.0 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (0.6.2)
Collecting keras-preprocessing>=1.0.3 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/fc/94/74e0fa783d3fc07e41715973435dd051ca89c550881b3454233c39c73e69/Keras_Preprocessing-1.0.5-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: absl-py>=0.1.6 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (0.1.10)
Requirement already satisfied, skipping upgrade: setuptools<=39.1.0 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (39.0.1)
Collecting protobuf>=3.6.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/c2/f9/28787754923612ca9bfdffc588daa05580ed70698add063a5629d1a4209d/protobuf-3.6.1-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 305kB/s
Requirement already satisfied, skipping upgrade: wheel>=0.26 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorflow) (0.31.0)
Requirement already satisfied, skipping upgrade: h5py in /scratch/sjn/anaconda/lib/python3.6/site-packages (from keras-applications>=1.0.5->tensorflow) (2.7.1)
Requirement already satisfied, skipping upgrade: werkzeug>=0.11.10 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (0.14.1)
Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in /scratch/sjn/anaconda/lib/python3.6/site-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow) (2.6.11)
tensorflow-tensorboard 0.4.0 has requirement html5lib==0.9999999, but you'll have html5lib 1.0b8 which is incompatible.
Installing collected packages: keras-applications, protobuf, tensorboard, keras-preprocessing, tensorflow
  Found existing installation: protobuf 3.5.2.post1
    Uninstalling protobuf-3.5.2.post1:
      Successfully uninstalled protobuf-3.5.2.post1
  Found existing installation: tensorboard 1.7.0
    Uninstalling tensorboard-1.7.0:
      Successfully uninstalled tensorboard-1.7.0
Successfully installed keras-applications-1.0.6 keras-preprocessing-1.0.5 protobuf-3.6.1 tensorboard-1.11.0 tensorflow-1.11.0
[jalal@goku snmn]$ python exp_clevr_snmn/train_net_vqa.py --cfg exp_clevr_snmn/cfgs/vqa_gt_layout.yaml
Traceback (most recent call last):
  File "exp_clevr_snmn/train_net_vqa.py", line 4, in <module>
    import tensorflow as tf
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/__init__.py", line 22, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 81, in <module>
    from tensorflow.python import keras
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/__init__.py", line 24, in <module>
    from tensorflow.python.keras import activations
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/activations/__init__.py", line 22, in <module>
    from tensorflow.python.keras._impl.keras.activations import elu
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/_impl/keras/__init__.py", line 21, in <module>
    from tensorflow.python.keras._impl.keras import activations
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/_impl/keras/activations.py", line 23, in <module>
    from tensorflow.python.keras._impl.keras import backend as K
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/_impl/keras/backend.py", line 36, in <module>
    from tensorflow.python.layers import base as tf_base_layers
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/layers/base.py", line 25, in <module>
    from tensorflow.python.keras.engine import base_layer
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/engine/__init__.py", line 23, in <module>
    from tensorflow.python.keras.engine.base_layer import InputSpec
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 34, in <module>
    from tensorflow.python.keras import backend
  File "/scratch/sjn/anaconda/lib/python3.6/site-packages/tensorflow/python/keras/backend/__init__.py", line 22, in <module>
    from tensorflow.python.keras._impl.keras.backend import abs
ImportError: cannot import name 'abs'

What version of CuDNN are you using?
[jalal@goku snmn]$ export PYTHONPATH=.:$PYTHONPATH
[jalal@goku snmn]$ python exp_clevr_snmn/train_net_vqa.py --cfg exp_clevr_snmn/cfgs/vqa_gt_layout.yaml
/scratch/sjn/anaconda/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
2018-10-02 14:47:18.080624: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-10-02 14:47:18.280280: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1105] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.6705
pciBusID: 0000:05:00.0
totalMemory: 10.92GiB freeMemory: 10.05GiB
2018-10-02 14:47:18.280375: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:05:00.0, compute capability: 6.1)
Loading imdb from ./exp_clevr_snmn/data/imdb/imdb_train.npy
Done
imdb does not contain bounding boxes
2018-10-02 14:47:48.502526: E tensorflow/stream_executor/cuda/cuda_dnn.cc:378] Loaded runtime CuDNN library: 7104 (compatibility version 7100) but source was compiled with 7004 (compatibility version 7000).  If using a binary install, upgrade your CuDNN library to match.  If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.
2018-10-02 14:47:48.503460: F tensorflow/core/kernels/conv_ops.cc:717] Check failed: stream->parent()->GetConvolveAlgorithms( conv_parameters.ShouldIncludeWinogradNonfusedAlgo<T>(), &algorithms)
Aborted
[jalal@goku snmn]$ ls -l /usr/local/cuda/include/cudnn*
-r--r--r--. 1 root root 100962 Oct  2 07:30 /usr/local/cuda/include/cudnn.h
[jalal@goku snmn]$  ls -l /usr/local/cuda/lib64/libcudnn*
lrwxrwxrwx. 1 root root        13 Oct  2 07:31 /usr/local/cuda/lib64/libcudnn.so -> libcudnn.so.7
lrwxrwxrwx. 1 root root        17 Oct  2 07:31 /usr/local/cuda/lib64/libcudnn.so.7 -> libcudnn.so.7.3.0
-rwxr-xr-x. 1 root root 298233616 Oct  2 07:30 /usr/local/cuda/lib64/libcudnn.so.7.3.0
-rw-r--r--. 1 root root 298484726 Oct  2 07:31 /usr/local/cuda/lib64/libcudnn_static.a

CuDNN 7.0.5, with CUDA 9 and TF-GPU 1.5 worked for me.
$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 7
#define CUDNN_MINOR 0
#define CUDNN_PATCHLEVEL 5
--
#define CUDNN_VERSION    (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#include "driver_types.h"


Updated build.gradle, fixed rotation issues #176, fixed device orient…

…ation issues #121, fixed stretching #90, fixed an issue with autofocus

@ejezisek please resolve the conflicts


Use "rendering" to link to the PDF in the manifest when there is one available

http://iiif.io/api/presentation/2.1/#linking-properties

Closed as duplicate of #296


chore: added date to separate package changelog

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
9252

Relevant Lines:
10141

💛  - Coveralls


Add support for custom models within any infrastructure

Built a custom way to log a model. Added a new provider called "Custom" and change the requestBuilder to check the provider and see if it is "CUSTOM" and if it is, then we render based on the types sent to the worker
test("customModel", async () => {
  const config = new HeliconeAsyncConfiguration({
    heliconeMeta: {
      apiKey: process.env.MY_HELICONE_API_KEY,
    },
  });

  const logger = new HeliconeLogger(config);

  const llmArgs = {
    model: "llama-2",
    prompt: "Say hi!",
  };
  const builder = new HeliconeLogBuilder(llmArgs);

  /*
  result = callToLLM(llmArgs)
  */
  const result: ResponseBody = {
    text: "This is my response",
    usage: {
      total_tokens: 13,
      prompt_tokens: 5,
      completion_tokens: 8,
    },
  };

  builder.addResponse(result);
  builder.addUser("test-user");
  const response = await logger.submit(builder);
  if (response.status !== 200) {
    throw new Error(response.data);
  }
}, 60000);

HeliconeLogger -> HeliconeLog


Is there a way to get the bytes that shell receives?

I'm using shell in UART2 but I need that the bytes in this interface be redirected to a msg queue in my firmware. How can I do that?

All of the bytes? If you only need specific sequences and use some SLIP code of some sort you can use the mcumgr hooks. Search for MCUMGR in the shell code

Hi,
It is not possible from the command context to get all bytes received by the shell. The command is already trimmed and escape codes are handled (if activated in Kconfig).


Could not find a declaration file for module '@material-ui/core/Box'.

There is not index.d.ts neither Box.d.ts file for the Box component at @material-ui/core/Box! this has been giving me a lot of issues. Please fix this.

[ ] This is not a v0.x issue.
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
Should render my Box component

Current Behavior 😯
Throws error :

Uncaught TypeError: Object(...) is not a function
at Array.onCreateRule (jss-plugin-rule-value-function.esm.js:10)
at PluginsRegistry.onCreateRule (jss.esm.js:1212)
at createRule (jss.esm.js:33)
at RuleList.add (jss.esm.js:825)
at new StyleSheet (jss.esm.js:1034)
at Jss.createStyleSheet (jss.esm.js:1961)
at attach (withStyles.js:146)
at WithStylesInner.render (withStyles.js:311)
at finishClassComponent (react-dom.development.js:15276)
at updateClassComponent (react-dom.development.js:15231)
at beginWork (react-dom.development.js:16221)
at performUnitOfWork (react-dom.development.js:20241)
at workLoop (react-dom.development.js:20282)
at HTMLUnknownElement.callCallback (react-dom.development.js:147)
at Object.invokeGuardedCallbackDev (react-dom.development.js:196)
at invokeGuardedCallback (react-dom.development.js:250)
at replayUnitOfWork (react-dom.development.js:19465)
at renderRoot (react-dom.development.js:20395)
at performWorkOnRoot (react-dom.development.js:21319)
at performWork (react-dom.development.js:21229)
at performSyncWork (react-dom.development.js:21203)
at requestWork (react-dom.development.js:21058)
at scheduleWork (react-dom.development.js:20871)
at scheduleRootUpdate (react-dom.development.js:21566)
at updateContainerAtExpirationTime (react-dom.development.js:21592)
at updateContainer (react-dom.development.js:21660)
at ReactRoot.render (react-dom.development.js:21973)
at eval (react-dom.development.js:22125)
at unbatchedUpdates (react-dom.development.js:21448)
at legacyRenderSubtreeIntoContainer (react-dom.development.js:22121)
at Object.render (react-dom.development.js:22196)
at eval (index.js:8)
at Module../src/index.js (main.chunk.js:679)
at webpack_require (bundle.js:782)
at fn (bundle.js:150)
at Object.0 (main.chunk.js:713)
at webpack_require (bundle.js:782)
at checkDeferredModules (bundle.js:46)
at Array.webpackJsonpCallback [as push] (bundle.js:33)
at main.chunk.js:1
Steps to Reproduce 🕹
Just try to use the Box core component with create-react-app
Context 🔦
I'm just renderin a Box component that contains a Grid but my VSCode is telling me there is not d.ts file and is giving me an Error while rendering in the browser, but the error dissappears when I disable the Box Component
Your Environment 🌎
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.2",
"@material-ui/styles": "^3.0.0-alpha.10",
"@types/material-ui": "^0.21.6",

Tech
Version

Material-UI
v3.?.?

React
16.8.3

Browser
Chrome

If there's a error in the browser then it's unlikely that missing type definitions are the cause of this.
Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

"@types/material-ui": "^0.21.6",

This is outdated. You don't need extra typings anymore. They are included in the core install.

this is the typescript error that box should give right now JSX element type 'Box' does not have any construct or call signatures.ts(2604) (and does give)

this is the typescript error that box should give right now JSX element type 'Box' does not have any construct or call signatures.ts(2604) (and does give)
cra (ts 3.33~, most recent 4.0 alphas of system and core)

Since this is a different error message please open a separate issue and fill out the template. It should have proper typings: https://unpkg.com/<EMAIL_ADDRESS>


Bluetooth: Host: Fix deadlock calling API functions from SMP callbacks

Fix deadlock in Bluetooth Host. Deadlock could happen from the SMP
callbacks when calling Bluetooth API functions. This is because the
callbacks was given directly from the HCI TX thread. If the calling
API function resulted in trying to send a new HCI command it would post
this HCI command to the HCI TX thread and then wait for command complete
event. This would result in the HCI TX thread blocked waiting for the
itself to process the command.
Example:
Calling bt_conn_le_conn_param_update from pairing_complete callback.
Fixes: #20833

This is because the callbacks was given directly from the HCI TX thread

But the code actually says: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/host/conn.c#L1245
Which is right?

This is because the callbacks was given directly from the HCI TX thread

But the code actually says: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/host/conn.c#L1245
Which is right?

bt_conn_notify_tx is called either through conn_cleanup from  bt_conn_preprace_events
or from process_events. Both of these paths are from hci_tx_thread. So TX thread is right, and it seems RX thread is wrong.

This is because the callbacks was given directly from the HCI TX thread

But the code actually says: https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/host/conn.c#L1245
Which is right?
EDIT: TX thread is correct, we could probably fix the comment at the same time.

Fixed this comment to say TX thread.


Enable Keccak AVX-512 support

After testing, I think that OpenSSL 3.0.8 (and older) as available in current
Fedora 38, Keccak acceleration with AVX-512 is seemingly not activated. I
performed a timing with a file that I generated as follows:
dd if=/dev/zero of=/dev/shm/file count=8 bs=1GB
I am maintaining my own crypto library [1]. That library contains an AVX-512
implementation whose timing is:
$ time build/hash/tests/hasher -h SHA3-512 -f /dev/shm/file
Message digest =
b2cc3439955e990d319bfc5b0bc1401ae18de07ff275abad5fec77e0f921e8e3d77b9a58b769cd44c7b0fa5c300782a97d151259bd63a76cd16f278c3a4c0126
real    0m54,888s
user    0m53,969s
sys     0m0,762s
Using OpenSSL's implementation on the very same system:
time openssl dgst -sha3-512 /dev/shm/file
SHA3-512(/dev/shm/file)=
b2cc3439955e990d319bfc5b0bc1401ae18de07ff275abad5fec77e0f921e8e3d77b9a58b769cd44c7b0fa5c300782a97d151259bd63a76cd16f278c3a4c0126
real    1m20,355s
user    1m18,127s
sys     0m1,984s
After forcing my implementation to use AVX2 (as opposed to AVX-512):
$ time build/hash/tests/hasher -h SHA3-512 -f /dev/shm/file
Message digest =
b2cc3439955e990d319bfc5b0bc1401ae18de07ff275abad5fec77e0f921e8e3d77b9a58b769cd44c7b0fa5c300782a97d151259bd63a76cd16f278c3a4c0126
real    1m17,026s
user    1m15,906s
sys     0m0,901s
You see, it seems to be the case that AVX-512 support is not active for Keccak.
[1] https://www.chronox.de/leancrypto.html

Yes, the AVX2, AVX-512 and other keccak implementations are present in the sources but unused by the build. There would have to be some runtime-selection routine added to utilize them. We do not want to make use of these implementations determined at build time.


added swagger api video link to docs

Signed-off-by: Aditya Chaterjee<EMAIL_ADDRESS>Description
added the swagger docs video link to contributing to Meshery CLI docs
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit 06ab113240f3f4cbbc74235eabae08847804aeb0 at: https://61004605b29a465f3c9c9613--meshery-docs-preview.netlify.app

@piyushsingariya is famous!


docs: translate zh/resources

[x] faq.md
[x] comparison.md

Wait for #79 merged

Can this be merged now?


global var socks and tcp_pcb pcbs

i found that ths socks's len is 128 and , tcp_pcbs'len is 16, so is the tcp_pcb's len  is small and socks var'len  is too big. Should they be equal.
And we use array index to associate this  2 variables. can we use list or other to associate this 2 var, so that we can use more fd ,

I have reserved a larger array for the socket, but surely it would be better to match the sum of the TCP and UDP PCB arrays.
The use of array indexes to tie sockets to PCBs is for simplicity. I'm sure there are other, more efficient ways to do this, but I don't want to complicate the code too much for this project.

yes , i get it , thanks very much. I was wrong.


Question about the position embedding.

Many Thanks for the great work!
As the report says, the model use PE interpolation to better adapt to different reslotuions. But I failed to find any related code, would you kind to point out the PE Interpolation code? Beside, have you tried RoPE? RoPE may be more suitable for different resolutions.
Thanks!

CogVideo-Fun-5b uses the Rope embedding like CogVideoX-5b.

Thanks, could you kind point out the related PE Interpolation code? I failed to find it.

@SanGilbert I guess it is here
https://github.com/aigc-apps/CogVideoX-Fun/blob/1b0e754e6c25ea9024e603d5b5c45465d9cb990c/cogvideox/models/transformer3d.py#L298

I will close this issue first. If there is anything unclear, you can reopen it.


Android EditText height not grow automatically when used inside YogaLayout

Report
Android EditText height not grow automatically when used inside YogaLayout, but height grow automatically when used inside a constraintLayout or LinearLayout

[ ] I have searched existing issues and this is not a duplicate

Issues and Steps to Reproduce
Replaces this with steps to repro your issue.
create xml like below
`

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:yoga="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fl_scroll_root"
>

<com.facebook.yoga.android.YogaLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
yoga:yg_flexDirection="column"
yoga:yg_width="100%"
android:id="@+id/fl_sv_scroll"
app:layout_constraintTop_toBottomOf="@+id/set_input1"
app:layout_constraintStart_toStartOf="@+id/fl_scroll_root"
app:layout_constraintEnd_toEndOf="@+id/fl_scroll_root"
>

</com.facebook.yoga.android.YogaLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
`
Expected Behavior
Describe what you expected would happen.
the second edittext grow automatically as the first edittext
Actual Behavior
Describe what actually happened.
the second edittext act like single line

Link to Code
If you have some code that maintainers can clone/test for themselves, bugs can be resolved much faster. Please paste a link here.
When applicable, use this fiddle to post a web repro.

Afaict (not a lot of specific familiarity with YogaLayout), invalidation of native views does not propagate to dirtying Yoga nodes. So if a leaf-node view changes, you need to do something like:
yogaLayout.invalidate(editText);

yogaLayout.requestLayout();
yogaLayout.invalidate();

From https://github.com/facebook/yoga/issues/956, I'm not 100% sure that will work as expected though.
There may very well be done reason for this, but it does seem strange YogaLayout doesn't participate in native layout invalidation. My understanding from quick googling is that on invalidation, EditText would call requestLayout() on its parent. So if the YogaLayout is the parent of a view with self measure function, it should be able to do the Yoga node dirtying itself.

Afaict (not a lot of specific familiarity with YogaLayout), invalidation of native views does not propagate to dirtying Yoga nodes. So if a leaf-node view changes, you need to do something like:
yogaLayout.invalidate(editText);

yogaLayout.requestLayout();
yogaLayout.invalidate();

From #956, I'm not 100% sure that will work as expected though.
There may very well be a reason for this, but it does seem strange YogaLayout doesn't participate in native layout invalidation. My understanding from quick googling is that on invalidation, EditText would call requestLayout() on its parent. So if the YogaLayout is the parent of a view with self measure function, it should be able to do the Yoga node dirtying itself.

Afaict (not a lot of specific familiarity with YogaLayout), invalidation of native views does not propagate to dirtying Yoga nodes. So if a leaf-node view changes, you need to do something like:
yogaLayout.invalidate(editText);

yogaLayout.requestLayout();
yogaLayout.invalidate();

From #956, I'm not 100% sure that will work as expected though.
There may very well be a reason for this, but it does seem strange YogaLayout doesn't participate in native layout invalidation. My understanding from quick googling is that on invalidation, EditText would call requestLayout() on its parent. So if the YogaLayout is the parent of a view with self measure function, it should be able to do the Yoga node dirtying itself.

yogaLayout.invalidate(editText);
this works


Doedre's Skin

Hello,
I am running into what I think is an issue with the handling for Doedre's Skin. I currently have a 4S skin, with 4 curses socketed, but when checking the DPS calcs, only 2 are listed among the curses and debuffs.
The pastebin can be found here: https://pastebin.com/29ntCB48
Temp Chains, Despair, Assassin's Mark and Enfeeble are socketed, but only Temp Chains and Despair are listed in the calcs.
I am running PoB version 1.4.74

This is still an issue, you can get curses from your normal limit, plus doedres (so with 2 limit, you can get 8 curses up at the same time).  But PoB wont consider more than 2.  Please llook into this

any solution yet?

Personnal dirty workaround:
Edit item and add several lines of "Enemies can have 1 additional Curse"
Doedre's Skin
Widowsilk Robe
Unique ID: 9467dfd03260dcd6c1dd18bb7de459089d193d84ae18738127389cdab8109686
Item Level: 77
Quality: 20
Sockets: G-B-B-G-B-B
LevelReq: 65
Implicits: 0
Socketed Curse Gems are Supported by Level 20 Blasphemy
Grants Level 20 Summon Doedre's Effigy Skill
Socketed Curse Skills are Triggered by Doedre's Effigy when Summoned
Socketed Curse Skills ignore Curse Limit
+35 to Intelligence
136% increased Energy Shield
25% reduced Effect of your Curses
Enemies can have 1 additional Curse
Enemies can have 1 additional Curse
Enemies can have 1 additional Curse
Enemies can have 1 additional Curse
Enemies can have 1 additional Curse
Enemies can have 1 additional Curse

edizbak's solution works , it just needs the following line added :
70% reduced Mana Reserved

edizbak's solution works , it just needs the following line added :
Socketed Gems Reserve No Mana


Best example to start with for time-dependent conduction problem?

I am new to MFEM. I'm trying to figure out how to create a time-dependent heat simulation with Neumann boundary conditions. My input is a 2D tri-mesh. The initial condition is constant temperature throughout, and then there should be a period of constant non-zero heat flux through the boundary, followed by a period of no heating (insulated boundary).
I've looked at ex16.cpp, since it seemed like it was pretty similar to my problem. I got it to compile and run, and even modified it to add Dirichlet boundary conditions following ex1.cpp. But I can't figure out how to add the Neumann boundary conditions. I also don't need the temperature-dependent conduction coefficient, and I think the problem should be much simpler than what's implemented in ex16.
I'm really impressed by what this library can do. I'm just frustrated because this is one of the simplest problems and I just can't figure out where to start. Thanks in advance.

You can take a look at example 27 which illustrates different types of boundary conditions. Specifically, the Neumann b.c. is applied here: https://github.com/mfem/mfem/blob/0effa7abffb019f087ef4a84a9ae0c917c29e6da/examples/ex27.cpp#L243-L244
In a time-dependent setting, if the coefficient m_nbcCoef depends on time, the linear form will need to be re-assembled when time changes.

Oh thanks, I didn't see that example before.
How then do we use that in a time-dependent problem? So far, example 16 is the closest I found to what I would like to do. But there is no LinearForm to add the boundary integrator to--that's where I'm getting stuck.

Hi Eric,
For explicit time integration, the RHS in ex 16 is constructed here:
https://github.com/mfem/mfem/blob/0effa7abffb019f087ef4a84a9ae0c917c29e6da/examples/ex16.cpp#L331-L332
If you create a LinearForm (as in ex 27), you can Assemble it and add its contribution to the RHS at that point.
For implicit time integration, if your BC doesn't depend on u, you can do the same, but here:
https://github.com/mfem/mfem/blob/0effa7abffb019f087ef4a84a9ae0c917c29e6da/examples/ex16.cpp#L349-L350
Hope this helps,
Vladimir

Try z.Add(1.0, n); or simply z += n;
The class LinearForm inherits from class Vector, thus it can be treated as a Vector.

Oh, gotcha! I got it working. Thank you so much!
I'm simulating local heating of a metal part from laser cutting. The results are looking brilliant. Thanks for this terrific software.


Uncaught TypeError: Cannot read property 'dispose' of null

Open 2 terminal windows
Switch between them by clicking the button (the one you can give a color)
Try to close one of the terminals
Additional info:
Prior to this the terminals stacked instead of switching. A reload fixed the issue but it came back once more. Maybe just a fluke?
Atom Version: 1.2.0
System: Microsoft Windows 10 Home
Thrown From: terminal-plus package, v0.14.1
Stack Trace
Uncaught TypeError: Cannot read property 'dispose' of null
At /C:/Users/Tristan/.atom/packages/terminal-plus/lib/status-icon.coffee:95

TypeError: Cannot read property 'dispose' of null
    at status-icon.module.exports.StatusIcon.destroy (file:///C:/Users/Tristan/.atom/packages/terminal-plus/lib/status-icon.coffee:63:28)
    at TerminalPlusView.module.exports.TerminalPlusView.destroy (file:///C:/Users/Tristan/.atom/packages/terminal-plus/lib/view.coffee:145:17)
    at HTMLButtonElement.<anonymous> (C:\Users\Tristan\AppData\Local\atom\app-1.2.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:220:36)
    at HTMLButtonElement.jQuery.event.dispatch (C:\Users\Tristan\AppData\Local\atom\app-1.2.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (C:\Users\Tristan\AppData\Local\atom\app-1.2.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands
     -1:26.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -1:24.6.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -1:23.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:23.5.0 browser-plus:open (atom-text-editor.editor)

Config
{
  "core": {
    "disabledPackages": [
      "markdown-format",
      "linter-jshint"
    ],
    "autoHideMenuBar": true
  }
}

Installed Packages
# User
.bin, vundefined
atom-handlebars, v1.2.0
atom-ternjs, v0.8.4
browser-plus, v0.0.54
data-atom, v0.14.1
language-tsql, v0.19.0
linter, v1.11.1
markdown-scroll-sync, v0.4.2
meteor-api, v2.20.0
minimap, v4.16.0
pdf-view, v0.34.0
pigments, v0.18.1
Repl, v0.5.0
terminal-plus, v0.14.1

# Dev
No dev packages

I'll take a look. Thanks for reporting this!

Two terminal views should not be able to be open at the same time which makes this rather interesting. Either way, I have dealt with the situation where this error would occur.
Fixed as of v0.14.2


Record videos for notebook 09

Done!
All videos completed for 09, this section was the biggest so far with 50+ videos covering the fundamentals of model deployment with PyTorch.
See the finished deployed demos in https://github.com/mrdbourke/pytorch-deep-learning/tree/main/demos


[I need advice][Few Features to implement] Try to implement simple questionary but have some issues with resulted behavior

Reproduced: https://uat_reproducing_errors.saltcorn.com/view/Questionary
I tried to implement simple questionary using Stepper plugin but have some issues with resulted behavior.

Scenario:

User goes through Questions and gives Answers.
The question text and some other fields will be readonly.
The Answer and comment will be available for edition.

But this doenst work (of course ;-)
Currently imlementation:

The stepper plugin only supports view Show so I create QuestionShow []Show] and embeds ShowAndwer [Edit] view to it.
The some fields are readonly so I used QuestionShow []Show] view for such fields.
The some fields are used for Answer to Question so I used ShowAnswer [Edit] view.
The Save button in  is superfluous and I try to delete it but in result I cannot save edition results.
After press Save button the screen tried to redirect to  https://uat_reproducing_errors.saltcorn.com/view/Questionary?id=1
But Stepper waits call like https://uat_reproducing_errors.saltcorn.com/view/Questionary?_offset=1
and as result the UI has incorrect state (Prev, Next buttons are disabled)

My suggestions:

We can improve Stepper (but see 4 for Stepper replacement logic).

Allow to use Edit view in Stepper. Currently only Show views are supported.
Implement correct return from Edit.

Add readonly flag for fields in viewedit and resulted Edit View.

Correct problem https://github.com/saltcorn/saltcorn/issues/604

Add new actions like "Next"/"Prev" into viewedit for Edit/Show view in addion to "Save" - those buttons will navigate records - this will replace stepper as view option.

Add new action button "Delete" into viewedit for Edit/Show view - this will delete record.

Add new action button "Edit" into viewedit for Show view - this will switch to Edit View/Edit mode.

Add new action button "Cancel" into viewedit for Edit view - this will swithch to Show View/Readonly view.

Also will be great to have few javascript expressions for working with the particular fields:

show field or not expression. Example - show comment field only if answer column has one of values  "1" or "10".
readonly or not expression. Example - check status field for value "Draft".
check value expression. Exampe - check that End date greater than Start Date.
In those expression we can make decision based on current View state / View type.

I've wanted to do questionnaires for a long time, but I always assumed I would have to write some plug-in for it. Using the stepper never occurred to me. This could be a great idea. I like a lot of your suggestions anyways, so let me at least do the ones that can be done with little work and let's see how far we can go!

You can do some of this already with the show if.. In the container in Edit views. I think this accepts a JavaScript expression

2 is now done - instead of a read-only flag, you can simply choose field views that are not inputs but show the data in the Fieldview choice. Try for instance as_text for
Strings or show for a number.
Thinking more about questionnaires @AleksandrSokolov, the problem here is how do you represent the answers when those answers can be of different types. Even if you were coding this, if you were using an SQL database then it is not clear what our field type should be If the answers to some questions are strings and others are numbers, checkboxes et cetera. You would probably end up using some kind of Entity-attribute-value system or json column. I guess in Saltcorn we could think about allowing Json fields to use field views of any other type, But in any case there would be trouble if you wanted to show the data in a different view.
I can think of two specific types of questionnaires that we could easily implement:

This works now: simply create a table with a field for each of the answers. Create several forms (Edit views) With one or more questions in each form. These forms should all be based on the same table. Then when you have Created all the views, go through again and for each Edit View, Set the view when done to the next form in the sequence of the questionnaire. I have just tried this and it works - you load the first form without an ID in the query string, Then for the subsequent forms the ID gets appended to the query string and you end up modifying the same database row.

Example: I want to ask your name (string) The industry work in, how satisfied are you with my product (1 to 10), any other comments (textarea string) - Each on a separate form, with a "next" button.
Solution:
-create a table called questionnaire_answers. Fields should be name: string, industry: string (Maybe with options if you want a drop-down), satisfied: integer, comments string
-create an Edit view of questionnaire_answers called NameForm. This form should contain only one field, the name
-create an Edit view of questionnaire_answers called IndustryForm. This form should contain only one field, the industry
-create an Edit view of questionnaire_answers called SatisfiedForm. This form should contain only one field, satisfied
-create an Edit view of questionnaire_answers called CommentForm. This form should contain only one field, the comments
-Edit the NameForm to set the view when done to IndustryForm
-Edit the IndustryForm to set the view when done to SatisfiedForm
...SatisfiedForm... CommentForm
-Edit the CommentForm to set the view when done to where ever you want the used to go when done with the entire questionnaire
Although this is a little bit of work to set up, I think it's okay as long as you have less than 10 pages. You can still put more than one question on each form. For instance you could have one of the forms have a bunch of checkboxes for if you have several boolean fields. The huge advantage is that the data is now in the right format, you have a nice table with one row per user and all of the questions in a column each

Multiple-choice quizzes or satisfaction ratings

This is the type of questionnaire where the answers are all of the same type, typically A-E on A multiple-choice quiz where there is a right answer, or satisfaction rating 1-5 or 1 to 10, Where are you are asked how satisfied you are on a number of dimensions, for instance for hotel you might be asked how clean was your room 1-5, How was breakfast 1-5, How helpful was our concierge staff 1-5 etc.
This is not something we can do right now but I think I should write a plug-in for this. Then you can have allsorts of nice support, for instance make a nice interface for staff users to add new questions and get some analytics on the answers. We can probably still support the case where are you want to have a three form entry box at the end of the questionnaire by Allowing the specification of the view when done, like in the edit view template, so the user can get directed to any form
There are small differences between these two scenarios, For instance whether there is a right answer and whether there are specific labels for each of the choices, I would hope that can be reconciled with some options/specifying fields in the configuration

@glutamate Tom, thank for your work and help with great explanation. I'll use those recipes soon.


Installation problem

Error in installing module
gyp: binding.gyp not found ... binding.gyp

Solved adding binding.gyp on files section in package.json


Override default mapping for the / key

I use the mapping <C-/> for commenting several lines. However, I noticed that neovide maps the / key to the Command Mode making it impossible to remap /.

I'm guessing that this is actually a keyboard handling issue rather than explicit keybinding because to my knowledge neovide doesn't bind any keybindings itself.

I found the solution to this, it turns out that for some reason the mapping <C-/> doesn't work for neovim on the terminal. So I had to use <C-_> which is exactly the same thing, in my neovim config. But now that I have <C-/> on my neovim config, it all works out.


Create different security contexts and project managers according to the request

Coverage increased (+0.5%) to 55.917% when pulling f5e12f80a1ab90cfae10c1330bda6e5442d520a3 on ywk253100:170504_security_context into 7b0daca06a058ef113929a1639328f9cb93dc800 on vmware:master.

Coverage increased (+0.7%) to 56.137% when pulling 1d999fd39553c4567dd6d9bdec91d3c0ba2c3b28 on ywk253100:170504_security_context into 7b0daca06a058ef113929a1639328f9cb93dc800 on vmware:master.

Coverage increased (+0.4%) to 56.137% when pulling f8615e474623f886edd93d40a704d986f89f9c04 on ywk253100:170504_security_context into 68cc911373d1c13a8812b7e5c7fbbce849d69627 on vmware:master.


Following directions to install ibm-fhir on windows ... install.bat fails

The install.bat has an issue with the line ...
echo Error: JAVA_HOME not set; make sure JAVA_HOME points to a Java 8 JVM (or above) and then re-try.
On my system the parens around '(or above)' causes issues that causes the bat file to stop ... remove the parens on that line

PR https://github.com/IBM/FHIR/pull/561
Waiting on my virtual machine tests to complete

Merged

We're going to add e2e tests at some point.


Fix two substantive bugs in the PEP text

All modern 32-bit linux uses linux_i686 for its tag, not
linux_i386. My fault for trusting PEP 425. Confirmed by spinning up a
real CentOS 5 VM in VirtualBox.
distutils.util.get_platform() uses hyphens; they get normalized to
underscore later. Fix the is_manylinux1_compatible() code to match.

@rmcgibbo: I'd like to upstream these to the official PEP soon because they're embarrassing :-) Since I guess we're both currently looking at github, any comments? :-)

I agree. No substantial comments -- these seem like good (minor) bugfixes.

Just merge than then email the PEP editors -- is that the protocol?

I guess so? There's no real protocol on our end, but I figured it's nice to go through a PR for double-checking and for a diff URL I can send to distutils-sig. And I can send the diff to the pep editors list.

Sounds good.


Is it possible to access to the data maintained or written by Redisson in Nodejs? And would it be a bad practice?

Hi, I have using Redisson for not a long time, and I realize that I need my old project to access to Redis and retrieve data that is maintained by the current Java code which use Redisson.
But Redisson is not just a redis client but a In-Memory Data Grid, therefore it's quite different and not compatible friendly for nodejs program for it only has pure redis client tools to use.
So the idea I have is:

Write a Java Redisson program as a proxy and serve data for nodejs program.
Figure out how Redisson save data, for sorted set, and Bucket, and write a package for nodejs to decode data from Redis.
Give up Redisson and use pure redis client, like Redis.

Is there any other solutions? Or is there any nodejs middleware for Redisson? Would that be difficult to write one for Redisson(I haven't read much source code of Redisson yet)?
Thanks.

Yes, you can use data stored by nodejs as long as you use the same codecs.

But Redisson is not just a redis client but a In-Memory Data Grid, therefore it's quite different and not compatible friendly for nodejs program for it only has pure redis client tools to use.

It's still remains redis client and compatible with others as long as they store the data in the same format.

But Redisson is not just a redis client but a In-Memory Data Grid, therefore it's quite different and not compatible friendly for nodejs program for it only has pure redis client tools to use.

It's still remains redis client and compatible with others as long as they store the data in the same format.

Hi, thanks for you reply. I see that Redisson use Marshalling Codec as default codec, and it store true as "\x04P" and false as "\x04Q", and String "A" as ""\x04>\x01A". I think these prefixes are added by MarshallingCodec`, so are you saying I should write a nodejs program to decode these value if it's possible, or I should write a Codec on my own?
Am I going to the right direction and which one should be preferred by your opinion? Thanks.

You can use json codec, for example.

Locks maintained by Redisson might be bit tricky to cooperate with in Node.js. Use JsonJacksonCodec or other codec is easy for sharing data between different program written in different language. Issue closed, thanks for the help @mrniko .


Suggestion: Automatic day/night theme change support.

We can already patch spotify to follow system scheme, while using custom .js why we can't add automatic day/night color scheme switch ?

Yeah that will be a great functionality

But bloom theme is dark oriented theme, to successfully implement this feature we must enhance light theme first

But bloom theme is dark oriented theme, to successfully implement this feature we must enhance light theme first
And that's going to take some time

Sorry about referencess, Spicetify Default Dynamic theme has this feature, you can take inspire from them. It uses custom .js to switch colors. For Light theme, Fluent theme already has Light orianted color scheme you can use it.

Bloom and fluent themes are associated
So we have a light theme too
But we got some bugs on light theme
Im currently working on to fix them
Afterwards ill try to implement this option
@SupLiCatinG


The dropout layer is not disabled after setting the Module to Eval.

Here is the code for reproducing the bug.
Defining Module
Approach 1
Using a Sequential to store Modules
class Reproduce : Module
{
    private readonly Module layers;
    public Reproduce(string name) : base(name)
    {
        var modules = new List<(string, Module)>();
        modules.Add(("fc_linear_1", Linear(100, 7)));
        modules.Add(("fc_dropout_1", Dropout(0.5)));
        layers = Sequential(modules);
    }

    // Following code can work for version 0.96.3, not work for version 0.93.1
    //public override void eval()
    //{
    //    base.eval();
    //    layers.eval();
    //}

    public override Tensor forward(Tensor input)
    {
        return layers.forward(input);
    }
}

Approach 2
class Reproduce2 : Module
{
    private readonly Module layers;
    private Module dropout;
    private Module dense;
    public Reproduce2(string name) : base(name)
    {
        dense = Linear(100, 7);
        dropout = Dropout(0.5);
    }

    public override Tensor forward(Tensor input)
    {
        return dropout.forward(dense.forward(input));
    }
}

Results
Results for Approach 1
torch.random.manual_seed(0);
var x = torch.arange(0, 100, 1, torch.float32, torch.CPU).reshape(1, 100);

var model = new Reproduce("reproduce");
model.eval();
Console.WriteLine("Reproducing 1...");
Tensor y;
for (var run = 0; run < 3; run++)
{
    Console.WriteLine($"{run}th running...");
    y = model.forward(x);
    for (var i = 0; i < 7; i++)
    {
        Console.Write($"{y.ReadCpuSingle(i)} ");
    }
    Console.WriteLine("");
}

Version 0.96.3 with override eval method:
Reproducing 1...
0th running...
-1.7911556 -39.207882 -24.935097 61.1867 -8.499707 14.684342 26.447653
1th running...
-1.7911556 -39.207882 -24.935097 61.1867 -8.499707 14.684342 26.447653
2th running...
-1.7911556 -39.207882 -24.935097 61.1867 -8.499707 14.684342 26.447653

Version 0.96.3 without override eval method:
Reproducing 1...
0th running...
-3.5823112 -78.415764 -0 0 -16.999414 0 0
1th running...
-3.5823112 -0 -49.870193 122.3734 -0 29.368685 0
2th running...
-3.5823112 -0 -49.870193 122.3734 -16.999414 29.368685 52.895306

Version 0.93.1 with override eval method:
Reproducing 1...
0th running...
-3.5823007 -78.415764 -0 0 -16.999403 0 0
1th running...
-3.5823007 -0 -49.870197 122.373405 -0 29.368685 0
2th running...
-3.5823007 -0 -49.870197 122.373405 -16.999403 29.368685 52.895294

Results for Approach 2
Console.WriteLine("Reproducing 2...");
var model2 = new Reproduce2("reproduce");
model2.eval();
for (var run = 0; run < 3; run++)
{
    Console.WriteLine($"{run}th running...");
    y = model2.forward(x);
    for (var i = 0; i < 7; i++)
    {
        Console.Write($"{y.ReadCpuSingle(i)} ");
    }
    Console.WriteLine("");
}

Version 0.96.3:
Reproducing 2...
0th running...
4.2551045 118.96411 -0 13.26274 -97.54702 80.192764 0
1th running...
4.2551045 118.96411 -0 0 -97.54702 0 0
2th running...
4.2551045 118.96411 -0 0 -97.54702 80.192764 0

Version 0.93.1:
Reproducing 2...
0th running...
-1.0717726 93.69564 -0 2.073273 -83.66095 47.344925 0
1th running...
-0 93.69564 -81.99559 0 -0 47.344925 99.293015
2th running...
-0 0 -0 2.073273 -83.66095 47.344925 99.293015

Conclusion

In 0.93.1, the two approaches above cannot disable the dropout layer.
In 0.96.3, Approach 2 cannot disable the dropout layer, Approach 1 has to manually override the eval method to disable the dropout layer.

PS: Don't forget to change eval to Eval in version 0.93.1

@Leo-LiHao: from what I can tell, the problem (in 0.96.3) is that your model constructor doesn't have a RegisterComponents() call after the construction of all submodules.
When I change the ctor to look like this:
public Reproduce(string name) : base(name)
{
    var modules = new List<(string, Module)>();
    modules.Add(("fc_linear_1", Linear(100, 7)));
    modules.Add(("fc_dropout_1", Dropout(0.5)));
    layers = Sequential(modules);
    RegisterComponents();
}

It seems like it's doing the right thing on my system.

Thank you. It works in 0.96.3. However, I can still reproduce that in 0.93.1. Any idea about which PR fixes this issue?

Thank you. It works in 0.96.3. However, I can still reproduce that in 0.93.1 (and also 0.93.9). Any idea about which PR fixes this issue?

Bug #500, fixed in PR #501


feat(web/applications): add retry option on got and blbostorage (boas…

…-1472)
Describe your changes

Issue ticket number and link
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[ ] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

one thing you could do would be to abstract the retry config:
{   limit: 3,   statusCodes: [500, 502, 503, 504] }
if we need to change any of it we don't need to go through each instance


Have travis fail tests if go fmt makes any changes

Also allows travis to use docker containers to build via sudo: false, which probably saves them some money.


Data Compression (game saves, network packets)

Any other use cases?

Moved to https://github.com/AlmasB/FXGL/wiki/Issue-Feature-Question


Fix too tiny font in textareas on Windows

Default font on Windows was 9pt, which was nearly impossible to read on HiDPI screens:

Hello @kuc,
I appreciate that you have created PR, but I am afraid to tell you that your solution might work well for you, and work badly for other users. I am usually against of hard-coded values such as the font size.
Here is the small test that I made on my PC: Windows 10, Display: 27 in., 2560x1440. I haven't changed the font size:
Before the patch is applied (100% Text Size):

After the patch is applied (100% Text Size):

Before the patch is applied (150% Text Size):

After the patch is applied (150% Text Size):

As you can see, in my case, the font size in the log view is slightly taller with your code in both cases. So I would say that the text wasn't scaled proportionally.
I can ask you to do similar screenshots and update the PR. At least this can give us some clue how the issue can be fixed.
I expect that all fonts should be scaled proportionally when you increase the text size:

Thanks!

Below screenshot from different computer.  This time non-HiDPI screen (1366x768), Windows 8.1 instead of 10 as previously in my example, 100% font scaling, but problem is the same - font size in textarea is super-tiny:

After my patch:

I think that problem is that on your computer you have different default font family applied to textarea (side effect of different OS localization settings?). I will change my commit to more flexible solution.

After latest changes font size looks good, too:

Looks good also on HiDPI:

Hm, I do not know @kuc. I am not the maintainer, but I do not like the proposed solution. To me it looks like a magic number that I'd like to avoid at any costs. E.g. this is how your code looks on my Mac:

But even without the fix, it is not bad:

I am still confident that your machines override the text area font size. Otherwise, I do not understand why our screens are so different.


Get realtime price

how is it possible to just check real time price for any crypto coin?

Gourl Bitcoin/Altcoin Gateway use bitcoin prices from - https://www.bitstamp.net/ (update every 10min)
Altcoin prices from poloniex.com https://poloniex.com/exchange#btc_eth
Current live prices - https://gourl.io/bitcoin-payment-gateway-api.html (right column)


Dispatch events during the table reorder operations

We need to be able to run operations either before or after the table reordering operations run. This PR adds a before and after event to Filament\Tables\Concerns\CanReorderRecords::reorderTable() and passes the owning record as part of the event.
This mirrors a similar PR submitted against spatie/eloquent-sortable (in case that context is important for this PR).

Thanks for the PR, @lhilton!
I think we'd rather have hook methods to configure instead of dispatching events. What do you think, @danharrin?

Yeah, I feel like this should be on the table-level so you can hook for 1 table and not all tables at once. Are you able to handle that @lhilton? We just need new protected beforeTableRecordSorted() and afterTableRecordSorted() methods? Also, I don't think that passing the owner record is appropriate here, that's only available in relation managers...

Hey @lhilton just checking in to see if you're still intending to work on this?


Get decimal, group and minus

I use formatter for output to the form and I want to parse formatted value from form too.
I can`t get decimal, group and minus for creation float number. I wanna replace:
decimal -> "."
group -> "" (delete)
minus -> "-"
and after parse to number.
Could you add getter methods to generated files?

created pull request: https://github.com/go-playground/locales/pull/16

Thanks


Differences with PEG.js

Hi,
nice project, thank you for sharing.
I was wondering if you could highlight the differences with PEG.js
Thank you

Hi. Thank you for your feedback. For some legal and technical reasons, we strictly avoid learning similar libraries while designing ours. The main goal of Parser.js is to provide a tool for meta-parsing (similar to meta-programming). An example can be defining a new operator like | for non-ordered choices.


Add link to cra-ts migration guide

For users coming from create-react-app-typescript, the added link provides instructions on how to port their app to Create React App.
@Timer suggested I create a PR to add this link. Not sure if this is the best place; let me know if there's a better place for links like this :)

Perfect, thank you!


Module '../polymer-analyzer/lib/index"' has no exported member 'FsUrlLoader'. Did you mean 'FSUrlLoader'

I'm getting the error in title when trying to run the following code:
import {PolymerProject} from 'polymer-build';

const project = new PolymerProject({
  root: "src/html-modules"
});

package.json deps:
  "dependencies": {
    "polymer-build": "^2.5.0",
    "typescript": "^2.8.3"
  }

-> % ./node_modules/.bin/tsc -v
Version 2.8.3

tsconfig:
{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "es2016",
      "es2017",
      "esnext.asynciterable"
    ],
    "module": "commonjs",
    "rootDir": "src",
    "outDir": "lib"
  },
  "include": [
    "src/**/*"
  ]
}

What am I doing wrong?

I fixed it with npm i --save<EMAIL_ADDRESS>Strange dependency with analyzer on version 2.5.0 of polymer-build

I am unable to reproduce this issue, so I suppose this has been fixed along the way.


Fixing Infoblox incorrect match of zone dns names

Addressing https://github.com/kubernetes-incubator/external-dns/issues/1126

/lgtm
/approve


Version catalogs aren't available for code inside of build[logic/Src]/src, so they're not compatible with the guidelines for multi-module projects

I structured our org's project using the Gradle guidelines for multi-module builds:

The problem is, if you use a version catalog to aggregate your dependencies in one place, you can't actually use this (from what I understand) in code inside of buildSrc/src -- e.g., buildSrc/src/main/kotlin/my-kotlin-library-conventions.kts

https://stackoverflow.com/questions/67795324/gradle7-version-catalog-how-to-use-it-with-buildsrc

I've put this in my buildSrc/settings.gradle.kts:
dependencyResolutionManagement {
    versionCatalogs {
        create("libs") {
            from(files("../gradle/libs.versions.toml"))
        }
    }
}

But it's only available in buildSrc/build.gradle.kts, not the contents of src/**
Is there any way around this? It's like the crack in the wall of the dam when the rest of your very large project has entirely managed versions.
Thank you

Actually on second thought, if you specify the full version in the version catalog, and you always use it from the catalog, then the net effect is the same as providing a constraint I suppose.
There's still the larger question of whether the other information in the version catalog is meant to be present/accessible inside of the src files

Sorry that you're having trouble with Gradle!
Your issue lacks information about how to reproduce the problem you're having. A minimal reproducible example can really help us track down and fix your problem. We may also be able to suggest workarounds or ways to avoid the problem if we can reproduce it.
The ideal way to provide a reproducer is to leverage our reproducer template.
This issue will be closed after 7 days, unless you can provide more information.

Duplicate of https://github.com/gradle/gradle/issues/15383

Ah whoops, my apologies!


Fix pop up functionality

In this branch I:

Fix pop up functionality

[# Status: Approved! 🟢
Hi @tasnimchy96 ,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉 🎉
![congrats]
Highlights 🎉
✅ Professional and customized README.
✅ Linters tests passing.
✅ Correct use of GitHub Flow.
✅ Good job creating your functions for add and remove books.

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me @Obimbo07  in your question so I can receive the notification.
If you need any further help or have any questions, feel free to reach out to me on Slack as Austin Obimbo.🎯

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form. ](https://github.com/tasnimchy96/Restaurant-System/pull/28#issuecomment-1722149194)https://github.com/tasnimchy96/Restaurant-System/pull/28#issuecomment-1722149194


Working with Openframeworks

I have found that global integration while working with Openframeworks can cause a number of issues, since OF contains specific version of a number of popular libs, and its easy to have vcpkg replace these.
Are there any specific settings that can be adjusted to remove integration with a project or solution in vs2015?

Yep! The you probably want <VcpkgEnabled>false</VcpkgEnabled>, which will completely disable all our project modifications (include directories, link directories, link libraries, and dll deployment). This can be safely added to any project and will do nothing if the user doesn't have Vcpkg.
I found an example[2] by searching GitHub for VcpkgEnabled.
You might also find it useful to browse through our MSBuild integration file[1] which has a few other properties that can configure our behavior (such as VcpkgTriplet and VcpkgConfiguration).
It also sounds like OpenFrameworks might be a nice library addition as well, since we have so many of their dependencies already packaged 😄!
[1] https://github.com/Microsoft/vcpkg/blob/master/scripts/buildsystems/msbuild/vcpkg.targets
[2] https://github.com/congzhangzh/vld/blob/0fbf335bab5cfdde85cdfacee9ba9a20bb986017/src/vld.vcxproj#L45

where would I add: false
I tried a couple spots in the xml, but got loading errors.

Try here:
  <PropertyGroup Label="Globals">
    ...
    <VcpkgEnabled>false</VcpkgEnabled>
  </PropertyGroup>

This issue hasn’t been updated in two year, if it is still an issue, please reopen.


[google_maps_flutter] Empty map when resuming from background on Android

Steps to reproduce
Related closed issue: https://github.com/flutter/flutter/issues/40284
Open app with GoogleMap -> displays ok
Put app into background, without it being killed by the system.
Resume the app after a while
Expected results
Map should not dissapear
Actual results
Maps disappears,
could not repro on some devices,
Pixel works fine, it does not work on Samsung S22 Ultra (the device recorded) and Moto G6 Plus (with Lineage OS 21) had this issue
an older Samsung S20 (or something) work fine too
Samsung S22 Ultra (Fails)
https://github.com/flutter/flutter/assets/11444489/c3d901dc-702e-40fe-b927-a7ab90f978f0
Moto G6 Plus (Fails)
https://github.com/flutter/flutter/assets/11444489/0d17426b-0a60-44c9-ad81-f5da4df8f102
Emulated Pixel (Works)
https://github.com/flutter/flutter/assets/11444489/61196b65-f08e-45d2-a2b8-0f1dfc143914
Code sample
Code is basic Map code with custom styles,
it uses the latest flutter map version 2.6
the workarounds like setting setMapStyles on the closed issue mentioned did not work to fix this issue.
Did not add all variables since its most standard code, this widget is a stateful widget that gets rendered from other stateful widget
   @override
  Widget build(BuildContext context) {
    const CameraPosition initialPosition = CameraPosition(
      target: LatLng(-27.302103, -50.424208),
      zoom: 8,
    );

    return Stack(
      children: [
        Container(
          key: gmapsKey,
        ),
        GoogleMap(
          initialCameraPosition: initialPosition,
          style: charge_map_style_light,
          onMapCreated: (GoogleMapController controller) {
            if (mapController.isCompleted) {
              mapController = Completer<GoogleMapController>();
            }
            mapController.complete(controller);
          },
          compassEnabled: true,
          myLocationEnabled: true,
          myLocationButtonEnabled: true,
          minMaxZoomPreference: MinMaxZoomPreference(7, 20),
          zoomControlsEnabled: false,
          indoorViewEnabled: false,
          rotateGesturesEnabled: false,
          trafficEnabled: false,
          mapToolbarEnabled: false,
        ),
      ],
    );
  }

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.3, on Microsoft Windows [Version 10.0.22621.3235], locale pt-BR)
    • Flutter version 3.19.3 on channel stable at X:\FlutterSDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (2 days ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at X:\AndroidSDK
    • Platform android-34, build-tools 34.0.0
    • ANDROID_SDK_ROOT = X:\AndroidSDK
    • Java binary at: X:\AndroidStudio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.8.34408.163
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2023.1)
    • Android Studio at X:\AndroidStudio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[✓] VS Code, 64-bit edition (version 1.87.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.84.0

[✓] VS Code (version 1.84.0-insider)
    • VS Code at C:\Users\angel\AppData\Local\Programs\Microsoft VS Code Insiders
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • SM S908E (mobile) • RQCT303TF2F • android-arm64  • Android 14 (API 34)
    • Windows (desktop) • windows     • windows-x64    • Microsoft Windows [Version 10.0.22621.3235]
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 122.0.6261.112
    • Edge (web)        • edge        • web-javascript • Microsoft Edge 122.0.2365.52

[✓] Network resources
    • All expected network resources are available.

• No issues found!

@johnmccutchan @darshankawar i wanted to ping you since you participated and closed the last thread related to this issue, do you have a similar device to test this case? i think that this issue is a not repro on Pixel, but other devices still can repro it.

I also can't reproduce this issue on my device Realme 6, Android 11. It could be a device-specific issue. Could you confirm this with google_maps_flutter package's example? (to ensure that this is not caused by your native code change)
Also, could you try running this Android native sample on that device to see if the issue also appears?

I have this issue on my google pixel 6 with android 14 and it's happens almost each time when i switch app to background -> launch another app -> switch another app to background -> come back to my app

As a workaround I found way to refresh map each time when user comes back from background using key like:
ValueKey<String> key = ValueKey<String>(DateTime.now().toString());
and with WidgetsBindingObserver
@override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    super.didChangeAppLifecycleState(state);

    if (Platform.isAndroid && state == AppLifecycleState.resumed) {
      setState(() {
        mapController = null;
        key = ValueKey<String>(DateTime.now().toString());
      });
    }
  }

also to fix gap with user changing map position Im doing like:
initialCameraPosition: _cameraPosition ?? widget.initialCameraPosition,
      onCameraMove: (position) {
        _cameraPosition = position;
      },

I know it's not prefect but at least it fix issue

I guess this issue is related to Android 14 and Samsung ONE UI 6.x.
I have Galaxy S20(Android 13, ONE UI 5.x) AND Galaxy S24(Android 14, ONE UI 6.x).
But I only have this issue on Galaxy S24.
So I'm tracking this issues.
#139630 and #139039

I have same issue with @Andrushka1012 .
I have Galaxy S20(AOS 13) ans Galaxy S24(AOS 14).
But I only have this issue on Galaxy S24.

I checked this on Pixel 7, Android 14 but the issue is not reproduced. Since the issue occurs on google pixel 6 as @Andrushka1012  reported above, this doesn't look like a Samsung device-specific issue.

I was't able to reproduce it on google_maps_flutter package's example project. Also maybe it's related that in my project we still using previous map version:  google_maps_flutter: 2.5.3

in flutter_naver_map package, similar issue occured.
see this issue page: https://github.com/note11g/flutter_naver_map/issues/201

@huycozy Found the root of the issue, partially lack of proper mvp in the https://pub.dev/packages/google_maps_flutter
after attempting to test on the example and not having success, i investigated why, i found that there is some important pieces of code that are not mentioned in the pub page (suggestion to add this there please), witch is related to initializing the render to the latest one.
the issue can be fixed by using this code in the main.dart
void main() {
  final GoogleMapsFlutterPlatform mapsImplementation =
      GoogleMapsFlutterPlatform.instance;
  if (mapsImplementation is GoogleMapsFlutterAndroid) {
    mapsImplementation.useAndroidViewSurface = true;
    initializeMapRenderer();
  }
  runApp(MyApp());
}

Future<AndroidMapRenderer?> initializeMapRenderer() async {
  if (_initializedRendererCompleter != null) {
    return _initializedRendererCompleter!.future;
  }

  final Completer<AndroidMapRenderer?> completer =
      Completer<AndroidMapRenderer?>();
  _initializedRendererCompleter = completer;

  WidgetsFlutterBinding.ensureInitialized();

  final GoogleMapsFlutterPlatform mapsImplementation =
      GoogleMapsFlutterPlatform.instance;
  if (mapsImplementation is GoogleMapsFlutterAndroid) {
    unawaited(mapsImplementation
        .initializeWithRenderer(AndroidMapRenderer.latest)
        .then((AndroidMapRenderer initializedRenderer) =>
            completer.complete(initializedRenderer)));
  } else {
    completer.complete(null);
  }

  return completer.future;
}

also adding these to the pubspec.yaml
  google_maps_flutter: ^2.6.0
  google_maps_flutter_android: ^2.6.0
  google_maps_flutter_platform_interface: ^2.6.0

this solves the issue of the map vanishing on One UI and on LineageOS UI (and some others)

@Andrushka1012 @whitesoil can you repro with this change?

@angelorodem It is documented at Map renderer. Could you check if it's sufficient?

@angelorodem Your solution didn't work for me TT
I guess this is Android 14 and Samsung ONE UI 6.x specific problem.
Because webview_flutter package has same symptom on Android 14 and Samsung ONE UI 6.x.

@huycozy since this can be an easy pitfall it should be at least mentioned in the pub page, i would create a PR if i new where are these strings.
i suggest something like:
To avoid device specific issues, it is recommended to set the map renderer to the latest, as done in the main function of this example: Example

@angelorodem I think there is already a warning there about renderers:
WARNING: AndroidMapRenderer.legacy is known to crash apps and is no longer supported by the Google Maps team and therefore cannot be supported by the Flutter team.

But since @whitesoil still encounters this, we need to make sure this is indeed renderer issue. @whitesoil Could you confirm you still have this issue with maps instead of webview plugin?

@huycozy maybe PlatformView (TLHC) issue... (it's occured on flutter_naver_map too.)

@angelorodem I think there is already a warning there about renderers:
WARNING: AndroidMapRenderer.legacy is known to crash apps and is no longer supported by the Google Maps team and therefore cannot be supported by the Flutter team.

But since @whitesoil still encounters this, we need to make sure this is indeed renderer issue. @whitesoil Could you confirm you still have this issue with maps instead of webview plugin?

Hi @huycozy, i see this message and i think, what if i was in the other side of this message, what action can i take? i see this message and there is nothing that i can do without having to websearch for it, we can atleast there slightly improve the messaging to specify to the user some followup action like "Please use the latest renderer".
But i think this is still not good, this warning gets hidden in the IDE, a simple doc or pub change will help people avoid headaches in the future, agree?

Closing this as a duplicate of https://github.com/flutter/flutter/issues/139039


What is the reason behind the attestation certificate during registration?

At least in the example client app, the certificate is hardcoded and used only during registration, so it doesn't seem to add any security when using it to sign the attestation.
It seems like it would make more sense to sign the attestation with the private key corresponding to the public key that is sent at registration, right?
If so we can send a PR making that change :)

Thank you for your interest in the FIDO UAF, and our open source project.
You have a valid point. It would be the right thing to use Surrogate Attestation as described here: https://fidoalliance.org/specs/fido-uaf-v1.1-id-20170202/fido-uaf-protocol-v1.1-id-20170202.html#surrogate-basic-attestation
If you like to contribute this code it would be very welcome.
Thanks,
Neb.


I can't setup nuxt-i18n

I follow the official guide but it didn't work, nuxt-i18n has not been injected correctly in the vue instance, it throws me that _vm.$t and this.$i18n does not exists

This question is available on Nuxt community (#c218)

Hi, did u figure out?
I've been trying setup this for hours by now and nothing works =/


React native / expo - reference error: can`t find variable: document

Describe the bug
React native / expo - reference error: can`t find variable: document
To Reproduce
run version v2.5.8 of react-query on react native / expo
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Additional context
Add any other context about the problem here.

Oops! This PR should fix it: https://github.com/tannerlinsley/react-query/pull/817


Add async version of atomically write file and move it to tedge_utils

Signed-off-by: Lukasz Woznicki<EMAIL_ADDRESS>Proposed changes
Add async version of atomically write file and move it to tedge_utils
Types of changes
What types of changes does your code introduce to thin-edge.io?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Improvement (general improvements like code refactorings that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)

Codecov Report

Merging #364 (5460d9d) into main (f942b1c) will increase coverage by 0.17%.
The diff coverage is 79.48%.

@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   71.02%   71.19%   +0.17%
==========================================
  Files          90       91       +1
  Lines        5283     5312      +29
==========================================
+ Hits         3752     3782      +30
+ Misses       1531     1530       -1

Impacted Files
Coverage Δ

tedge_config/src/tedge_config_repository.rs
91.42% <ø> (+6.98%)
:arrow_up:

common/tedge_utils/src/fs.rs
79.48% <79.48%> (ø)

mapper/tedge_mapper/src/collectd_mapper/batcher.rs
82.58% <0.00%> (+2.23%)
:arrow_up:

Continue to review full report at Codecov.

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


WIP: Added dynamic resizing to support orientation changes

I added Auto Layout constraints to added pages that are dynamically updated when the BWWalkthroughViewController's view is resized, particularly when the orientation changes.

Whats the update on this? Need landscape orientation

I check it in a couple of  days. Sorry guys I was very busy with Linia :P (linia.blackrobotgames.com)

@knly just checked this code. It seems navigation buttons are not longer working. If you try to click next/previous buttons the navigation to the next/previous view controllers doesn't start anymore. The problem seems to be in the goToPage method, scroll view is no longer animating to the right position, I cannot understand why though...

kills @ariok @knly simple error kills next/prev button. Here https://github.com/ariok/BWWalkthrough/pull/60/files#diff-f82ac6ba0676c48e8d8d7ae32483e8f1R225

It has been implemented with #80.


RedisPubSubAdapter.message() being called with wrong channel

This is happening with 5.0.0.  I have a pretty simple pubsub listener that I'm using to listen to a LOT of different pubsub topics.  One of those topics is "heartbeat", which I use as a keepalive for downstream processes.  After one of my listeners has been up for a while, it starts seeing messages published on the "heartbeat" topic that were not published on it.  I assume this is also happening for other topics, but that one is easy to debug because only one message is every actually published on it.
I have confirmed this by manually connecting to redis with redis-cli and doing a SUBSCRIBE heartbeat and watching the raw output in a terminal window.  The message() callback is invoked for messages that were not received on that channel.
The java code boils down to this:
public class MessageProcessor {
     private static final Logger LOG = LoggerFactory.getLogger(MessageProcessor.class);
     private final StatefulRedisPubSubConnection<String, String> conn;

     // default constructor, takes a connection and adds a listener to it
     public MessageProcessor(StatefulRedisPubSubConnection<String, String> conn) {
        this.conn = conn;

        conn.addListener(new RedisPubSubAdapter<String, String>() {
          @Override
          public void message(String channel, String message) {
              // debug print every heartbeat received
              if ("heartbeat".equals(channel)) {
                  LOG.info("RECEIVED HEARTBEAT: " + message);
               }
               processMessage(channel, message);
          }
        });
    }

    // tell the listener to subscribe to more topics
    public void subscribeToChannels(Set<String> channels) {
        conn.async().subscribe(channels.toArray(new String[] {}));
    }
}

When the message processor is created, it's passed a connection.  It creates a listener that passes received messages off to be processed elsewhere.  Since I was seeing weird behavior, I had it print every message it receives on the "heartbeat" channel.
The subscribeToChannels() method adds to the list of topics the connection is subscribed to.  This list never decreases in size, i.e. unsubscribe(channels) is never called, but it grows toward a finite maximum (around 8000).
Eventually, I start seeing log messages "RECEIVED HEARTBEAT:" that include messages that definitely were not published on the "heartbeat" channel.  Also weird, some of those messages appear to be topic names themselves, i.e., the message(channel, message) callback is invoked as message("heartbeat", "someOtherTopicName")
I've confirmed that the bogus messages aren't sent on the heartbeat channel manually via redis-cli, and also because I have several different copies of this java code running simultaneously, and generally only one of them will "go bad" and start claiming to have received messages with the wrong channel.
I'm reverting to 4.4.0 to see if I can reproduce the problem there as well.  I'd be happy to help debug and reproduce however I can.

Thanks a lot for reporting your issue, great level of detail. Do you use the same connection to publish messages?
Depending on the load you have on the server, you could enable debug logging and dump log events via asynchronous logging to a file (to not create side-effects caused by I/O wait/fsync). Debug/trace logs show the actual payload that helps to investigate what's going on.

I was originally using the same connection to publish some messages, but for the sake of narrowing this down I removed that code and the problem remains.  This connection is only ever used to receive messages.
I'll see if I can get the async logging going on the server.  I just reverted to 4.4.0 this morning and am waiting to see if the problem still exists there.  Even with 5.0.0, it wouldn't start happening until the process had been up and running for the better part of 24 hours, so it'll probably be until tomorrow before I know more.

One thing that can play into that as well is how messages are received.
The receiving piece can't be always sure where to route the Pub/Sub response: To a command or to a Pub/Sub listener. The thing is, when you go into subscribe mode, then responsed are attempted to be decoded to active commands first, then to Pub/Sub listeners.
Assume that you send a command (SUBSCRIBE) the server while you're already subscribed to some other channel, the command is set to receive the next incoming response. At the same time, a different client publishes a message and Redis processes the PUBLISH first, notifying your client that has just sent another SUBSCRIBE.
A client isn't able to distinguish whether the response it has received belongs to the command or whether it's a subscribe confirmation without parsing the actual content.
Something similar can happen for other commands.

PS: If you know the number of channels is finite, then either subscribe to them all at once or use PSUBSCRIBE * until we figured out how to fix the issue.

Assume that you send a command (SUBSCRIBE) the server while you're already subscribed to some other channel, the command is set to receive the next incoming response. At the same time, a different client publishes a message and Redis processes the PUBLISH first, notifying your client that has just sent another SUBSCRIBE.

Oh, that's got to be it.  Fits the observed problem to a T.
I can use PSUBSCRIBE - but what's the preferred workflow if you need to subscribe to a changing list of topics?  Disconnect and re-subscribe when the list of topics changes?  Sounds like it's maybe a race condition in any case to SUBSCRIBE and then change the list of subscriptions?

TBCH, at that point, I don't know the answer yet. PSUBSCRIBE * and maintaining the known channels/pattern in the application might be the way to go for now. I wouldn't recommend unsubscribing since you might lose messages.

I think I found an approach how to deal with this issue. The crucial bit is whether one or more commands are in progress. Responses can arrive in-line while command decoding is in process.
Client side

Send command SUBSCRIBE
Send PING command

A second client

Send command PUBLISH

Server side

SUBSCRIBE command arrives
PUBLISH command arrives
PING command arrives

Redis sends responses to commands as they are received/processed, meaning:
Client side

Receives SUBSCRIBE command response (correlated correctly to SUBSCRIBE command)
Receives Pub/Sub message (correlated to PING command)
Receives PING command response (treated as Pub/Sub message - ugh)

Conclusion
We need to record and inspect the actual response if we're using Pub/Sub connections and there are commands without a response. Then we need to inspect the response to see whether it's a PMESSAGE or MESSAGE response to either propagate the message to Pub/Sub listeners or to complete the command.
Does this make sense?

Snapshot builds are in place (4.4.4 up to 5.1.0).


.lang files only contains texts for Sawbench ingredients and tools (no shapes, also "%s makes %s" in the GuiSawbench)

Mod version: 2.68.
Well, the title has it all.
Imagine a bunch of Russian users stuck with English hard-coded shape names trying to communicate using those.
P.S. The mod needs to stop using TEs in 1.13 in favor of blockstates, since they are now stored as-is, can be arbitrarily large and don't lag the game as much.

I'll take a look at the lang files, TEs will still be used in future versions though. There's still a lot of data that gets stored for each block in the world, if I just used block states then I would literally be doubling the amount of block states that the game has to register. Tiles are relatively cheap if they don't tick, all they take is a bit of memory usage.

https://github.com/TridentMC/ArchitectureCraft/commit/1c3445ddf3ce591aa5620ac8e6c7b4bd4cdc412b#diff-40245bfd67f7ceca7b24446fe40f9cc0
done, only took like 11 months.


GFX Crash in windows release

When using graphics, shards crashes in windows on release mode using the vulkan backend

Hey @guusw , is this the case?

@sinkingsugar still the case, hence why we need export GFX_BACKEND=D3D12 before running in release.

That's weird/sad @guusw what's the reason?

Ok now that I found it I remember looking at it before, but this time I'll record here that it was because of stack space.
The vulkan driver calls a bunch of functions, wrapping MainWindow inside the following fixes it.
(def test-wire (Wire "" :Looped :LStack
 ...
))

Maybe anyways we should increase the default stack size, currently it's 128kb (1MB in debug)

Hmm yeah I will think about it 👍


allow simulating static site

We could pass indexDocument and errorDocument to s3rver which will then simulate the AWS S3 static site functionality.

@niom
Thanks for your great PR ! I merged it and published new version. Please check it via npm.


[DRAFT] watcher.stats Request

The request is failing to validate based on the casting of true a string "true". The docs state that emit_stacktraces is of type boolean but the compiler presents a string:
expectAssignable<T.WatcherStatsRequest>({
  "metric": "all",
  "emit_stacktraces": "true"
})

Opened PR to assert type sanity in the upstream project: https://github.com/elastic/elasticsearch/pull/71361

With https://github.com/elastic/elasticsearch/pull/71361 merged, I assume this can be merged as it's only adjusting the version string.


Feat: Add UI sign in / sign up page

Describe the feature
current app does not contain sign in/ sign up. I would like to add sign in/ sign up page UI.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[X] I want to work on this issue

please assign to me

@PatilHarshh assign me


Travis fails with a PDD error of type ArgumentError: invalid byte sequence in UTF-8

The build fails on travis due to:
INFO: "reading src/site/resources/logo.png..."
/home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd/source.rb:144:in `rescue in puzzles': ["in /home/travis/build/yegor256/takes/src/site/resources/logo.png", #<PDD::Error: ["in line #0", #<ArgumentError: invalid byte sequence in UTF-8>]>] (PDD::Error)
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd/source.rb:142:in `puzzles'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:98:in `block (3 levels) in xml'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:97:in `each'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:97:in `block (2 levels) in xml'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/builder.rb:391:in `call'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/builder.rb:391:in `insert'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/builder.rb:375:in `method_missing'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:96:in `block in xml'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/builder.rb:293:in `initialize'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:94:in `new'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/lib/pdd.rb:94:in `xml'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/pdd-0.17.1/bin/pdd:91:in `<top (required)>'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/pdd:23:in `load'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/pdd:23:in `<main>'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval'
	from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'

The goal of this ticket is to find the root cause and fix it.
Here is a build failure for more details.

@yegor256 please take a look at it and dispatch (see par.21)

@essobedo fixed already, thanks


Protect STDIN

In build environments where data is being written to STDIN, it will receive unwanted data in addition to the file
By surrounding our Ruby puts with delimiters we can ignore any garbage that was written to STDIN during the build

I noticed this from a Heroku build, when cron job setup output being logged ended up breaking the build.

@jdlehman Ah, nice one. We had similar problems where occasionally some initializer would log out some other information. Good solution.
I'll test it soon and re-release.

@jdlehman Released 1.1.0


gitignore: ignore pylib/cqlshlib/pycache

@fruch please review... (I cannot add you as a reviewer BTW)

@fruch please review... (I cannot add you as a reviewer BTW)

I'll fix it soon


python310Packages.pyjwt: 2.3.0 -> 2.4.0

Description of changes
https://github.com/jpadilla/pyjwt/releases/tag/2.4.0
https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24
Looks like there is a little mix up with the assigned CVE at the moment.

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

What's the hold up here?

Nixpkgs-review used to show some breakage, maybe that changed.

torchinfo failure addressed in #176271

What's the hold up here?

There was an issue with beets.

Result of nixpkgs-review pr 173284 run on x86_64-linux 1

1 package built:

tts

Looks that I have to move this into #175805 as nix-review takes forever locally.

The status looked like this before pytorch came...
[6/826/837 built (16 failed),...

Around 50 % of the failures are AVX instructions-related.

FYI, staging-next is just starting up, PR https://github.com/NixOS/nixpkgs/pull/177171

Let's merge this into staging-next and address the failures there.

The pyjwt update was done with #175396.

The pyjwt update got to master now.

Oh and PR https://github.com/NixOS/nixpkgs/pull/177450
... so I'll assume that this PR isn't needed anymore.


Reduce trait bounds

Closes #1024 , re-enables the testing-macros crate tests
Down the line we should probably do something cleverer for the communication channels in the testing-macros crate, but this is fine as a stop gap.

This is great! LGTM


Add another xor filter migrate cli command

move to front.
Event balancing the xor filters was a bad idea because you get charged
by the size of the filter, not the size of the diff you're causing.
If you get a few thousand devices in a filter, you can start making
updates that cost 3mil DC. That's not very sustainable.
So the idea is you move most of your devices to the front filters, then
slowly add more devices to the end/cheaper filters. When those start to
get large and expensive, you compact them into the front ones again.

Could this include some documentation on XOR and why we are doing this?


[SPARK-49331][FOLLOWUP] Fix cpu to cpus in setup-minikube setting

What changes were proposed in this pull request?
This PR is a follow-up of the following PR to fix cpu to cpus in setup-minikube setting.

#82

Why are the changes needed?
This was a typo and CI complains like the following.

https://github.com/apache/spark-kubernetes-operator/actions/runs/10503328332/job/29096477836

Warning: Unexpected input(s) 'cpu', valid inputs are ['start', 'cache', 'minikube-version', 'driver', 'container-runtime', 'kubernetes-version', 'cpus', 'memory', 'network-plugin', 'cni', 'addons', 'extra-config', 'feature-gates', 'listen-address', 'mount-path', 'install-path', 'wait', 'insecure-registry', 'start-args']

Does this PR introduce any user-facing change?
No, this is an infra bug fix.
How was this patch tested?
Manually check the CI logs.
Was this patch authored or co-authored using generative AI tooling?
No.

cc @TQJADE

Thank you, @TQJADE .

For your Spark PR, I fixed it.

Looks good to me.

Thank you! Merged to main.


Yeelight Ceiling Light combine night and day light into one entity.

Do you know if we can merge the two light entity's (daymode / nightmode) into one?
I know there would be a jump in brightness but I would rather deal with that than having to control the lights separately.

I didn't merge both because at the daymode the color temperature can be changed at the nightmode the color temperature is fix. The UX is horrible of you use cold white in daymode and move the brightness slider to some low brightness (providing warm white at some point).