BUG: raw.plot_psd subplot titles broken

in 0.18: "Magnetometers Gradiometers EEG"
https://mne-tools.github.io/stable/auto_examples/time_frequency/plot_compute_raw_data_spectrum.html#plot-the-raw-psd
in current master:  "EEG EEG EEG" and something is wrong with the confidence bands
https://mne-tools.github.io/dev/auto_examples/time_frequency/plot_compute_raw_data_spectrum.html#plot-the-raw-psd
#6451 may have broken this but I haven't dug into the blame deep enough to be sure. cc @jshanna100

Ok, I know what this is.
https://github.com/mne-tools/mne-python/blob/ca870d2f04c20cee8957257df5f2d2c64d448b34/mne/viz/utils.py#L3002-L3004
The mean() operation should be removed from these, like:
np.min(psd, axis=0)
Then it works. I did this for 'std' but forgot to also do it for 'range'. Thanks for bringing this to my attention.
@larsoner Should I do a quick PR for this?

@jshanna100 that would be great

Is there an easy way to test figures? I think matplotlib does it but I'm not sure how easy / complicate is it

@massich in my WIP refactor of plot_compare_evokeds I test title like this

this was fixed in #6506

@drammock link is broken are you referring to #5944 ?

oops, that branch was merged and deleted.  Here are the corresponding lines in master:
https://github.com/mne-tools/mne-python/blob/master/mne/viz/tests/test_evoked.py#L227-L230


Preloaded Nim doesn't work

Preloaded:
const X* = "Test"

The following both fail with STDERR: solution.nim(1, 15) Error: undeclared identifier: 'X':
1. Solution:
proc a = echo X

Tests:
a()

2. Solution:
discard

Tests:
echo X

import setup needs to be added to the solution. See codewars-runner-cli/documentation/environments/nim for more info.
Some of the languages added long time ago implements "preloaded" code by simply prepending to submitted solution. But this causes confusions like mismatching line numbers in error messages. So the newer languages like Nim are avoiding that. We do need to make the documentation easier to find.


AppleScript: add feed property to article

This way you can get the feed from the current article, for one thing.

Yes, it is.

It might be ok for webFeed id "someid" of account "OnMyMac" to find a feed in a subfolder, then.

@Wevah it looks like you were working on this.  Should it be assigned to you?

Yes, that's fine. Still need to sort out specifics.

Fixed in #2294. Open new issues if extra functionality is required!


WIP: v0.2

Summary

Split download remote resource part from entry module
Add Entry::Local to handle already-existing LLVM source
Detect Git/SVN/Tar from URL

2018-10-03T05:11:41.4948396Z tar: Cannot connect to C: resolve failed
2018-10-03T05:11:41.4977605Z Error: ErrorCode { errno: 128, cmd: "\"tar\" \"xf\" \"C:\\\\Users\\\\VSSADM~1\\\\AppData\\\\Local\\\\Temp\\\\tar_download_test.mFcQ9apiEpff\\\\0.1.10.tar.gz\"" }

"C:" seems to cause a path issue :<

2018-10-28T15:19:28.5797448Z failures:
2018-10-28T15:19:28.5797622Z
2018-10-28T15:19:28.5797789Z ---- resource::tests::test_tar_download stdout ----
2018-10-28T15:19:28.5797963Z From = C:\Users\VssAdministrator\.cache\llvmenv\.tmpa331QS\llvmenv-0.1.10, To = C:\Users\VssAdministrator\.cache\llvmenv\_llvmenv_test
2018-10-28T15:19:28.5798188Z Error: Os { code: 5, kind: PermissionDenied, message: "Access is denied." }
2018-10-28T15:19:28.5798486Z thread 'resource::tests::test_tar_download' panicked at 'assertion failed: `(left == right)`
2018-10-28T15:19:28.5798889Z   left: `1`,
2018-10-28T15:19:28.5799067Z  right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', libtest\lib.rs:330:5
2018-10-28T15:19:28.5799474Z note: Run with `RUST_BACKTRACE=1` for a backtrace.
2018-10-28T15:19:28.5799616Z
2018-10-28T15:19:28.5799720Z
2018-10-28T15:19:28.5799883Z failures:
2018-10-28T15:19:28.5800034Z     resource::tests::test_tar_download
2018-10-28T15:19:28.5800168Z

Test on windows has been failed.


[BUG]Mismatch shape and results when negative axis

Describe the bug
When i use tensor.linalg.norm, I found some mismatching between derived tensor shape and result from execution, when i assigned a negative axis.
To Reproduce
To help us reproducing this bug, please provide information below:

Your Python version
3.7.7
The version of Mars you use
0.4.2
Versions of crucial packages, such as numpy, scipy and protobuf
numpy: 1.18.5
scipy: 1.5.0
Full stack of the error.
Minimized code to reproduce the error.

In []: mt.linalg.norm(((1,1,1)), axis = -1).shape
Out[]: (3,)
In []: mt.linalg.norm(((1,1,1)), axis = -1).execute()
Out[]: 1.7320508075688772
In []: mt.linalg.norm(((1,1,1),(1,-1,1)), axis = -1).shape
Out[]: (2, 3)
In []: mt.linalg.norm(((1,1,1),(1,-1,1)), axis = -1).execute()
Out[]: array([1.73205081, 1.73205081])

Expected behavior
the shape should be (1,) and (2,)
Additional context
Add any other context about the problem here.

It seems that we forgot to validate axis for mt.linalg.norm.
Effected code is:
https://github.com/mars-project/mars/blob/50feb684c843fa21da6b7470e305e6acc6f6917c/mars/tensor/linalg/norm.py#L305-L309
There is already an util to the validation work:
https://github.com/mars-project/mars/blob/50feb684c843fa21da6b7470e305e6acc6f6917c/mars/tensor/utils.py#L103-L107
Are you interested to fix the bug? I really encourage you to do this, if so, we would be very grateful about that.
BTW, don't forget to add unittests here:
https://github.com/mars-project/mars/blob/50feb684c843fa21da6b7470e305e6acc6f6917c/mars/tensor/linalg/tests/test_linalg_execute.py#L790

I try to fix this bug but i cannot even run the script under the repository due to import errors. I am tired to fix the import errors. So i hpoe somebody can fix this.

I try to fix this bug but i cannot even run the script under the repository due to import errors. I am tired to fix the import errors. So i hpoe somebody can fix this.

https://docs.pymars.org/en/latest/development/contributing.html#contributing-to-mars this section may help you.

To simplify the process, assume the path you cloned Mars is: /to/path/mars. Then
cd /to/path/mars

Make sure the libraries required by development installed.
pip install -r requirements-dev.txt

Then build protobuf files and compile the code.
python setup.py build_proto
python setup.py build_ext -i

Now you should be able to import mars normally. Just enjoy it.

I fixed this bug at commit #1499

I fixed this bug at commit #1499

Thank you so much, it looks great to me, I have some tiny comments, you can resolve it a little bit. Thank you again for your excellent work.


Always crashes app when job starts

I am defining my background task so that it is not doing anything, simply running, and then finishing.  The task schedules just fine, and adb says the job is running, however my app immediately crashes ('Appname' has stopped).  I double checked based off of the other issues and the manual configuration is correct.  I am running an Expokit project, where the only linked libraries are react-native-background-task and realm (for react-native-queue).  I haven't been able to get any actual error information (adb doesn't show any errors, and I can't run the Android debugger at the same time as expo).  Any ideas on what the issue might be?
Using Galaxy S8+ running 7.0.0 (same issue on GS4 running 5.0.1)
Example adb logs
02-27 09:55:33.844 28582 28582 D BackgroundTask: Setting foreground false
02-27 09:55:33.844 28582 28582 D BackgroundTask: Committing job schedule
02-27 10:04:00.142 28582 29554 D BackgroundTask: Job is running
02-27 10:04:00.166 28582 28582 D BackgroundTask: Returning HeadlessJsTaskConfig, timeout=30 ms
02-27 10:04:33.210 29702 29805 D BackgroundTask: Job is running
02-27 10:04:33.268 29702 29702 D BackgroundTask: Returning HeadlessJsTaskConfig, timeout=30 ms
02-27 10:06:12.750 29966 30016 D BackgroundTask: Job is running
02-27 10:06:12.832 29966 29966 D BackgroundTask: Returning HeadlessJsTaskConfig, timeout=30 ms
02-27 10:08:33.252 30304 30352 D BackgroundTask: Job is running
02-27 10:08:33.339 30304 30304 D BackgroundTask: Returning HeadlessJsTaskConfig, timeout=30 ms
02-27 10:08:46.141 30363 30363 D BackgroundTask: Returning HeadlessJsTaskConfig, timeout=30 ms

Defining Background task in root App.js outside of component as
BackgroundTask.define(() => {
    //tried adding console.log("words") but it doesn't seem to get that far
    BackgroundTask.finish()
});

I think it might be related to this expo issue

I am going to close this issue as it appears that react-native-background-task (and react-native-background-job) or any other library that requires linking to the context is not supported in Expokit.  If anyone knows of a way to make it work, please let me know.


Tensorflow does not work with RTX 3070 on Windows

System information

Code attached below
OS: Windows 10
TensorFlow installed from binary (pip3 install tensorflow)
TensorFlow version: tried latest stable v2.4.0-49-g85c8b2a817f 2.4.1
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
CUDA/cuDNN version: cuda_11.2.0_460.89_win10\cudnn-11.1-v<IP_ADDRESS>
GPU drivers: 460.89
GPU model and memory: seems to be recognized correctly by TF- GeForce RTX 3070 computeCapability: 8.6 coreClock: 1.725GHz coreCount: 46 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 417.29GiB/s

Describe the current behavior
Getting error:
2021-01-25 21:36:01.042433: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
Epoch 1/500
2021-01-25 21:36:03.304809: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublas64_11.dll
2021-01-25 21:36:03.880223: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cublasLt64_11.dll
2021-01-25 21:36:03.911531: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library cudnn64_8.dll
2021-01-25 21:36:04.515409: E tensorflow/stream_executor/cuda/cuda_dnn.cc:336] Could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
2021-01-25 21:36:04.515498: E tensorflow/stream_executor/cuda/cuda_dnn.cc:340] Error retrieving driver version: Unimplemented: kernel reported driver version not implemented on Windows
2021-01-25 21:36:04.515607: W tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at cudnn_rnn_ops.cc:1514 : Unknown: Fail to find the dnn implementation.
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Aleksander\.IntelliJIdea2018.3\config\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Users\Aleksander\.IntelliJIdea2018.3\config\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:/Workspace_GpwScan/dnn/sandbox/reproduce_issue.py", line 110, in <module>
    callbacks=[checkpoint, tensorboard])
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\keras\engine\training.py", line 1100, in fit
    tmp_logs = self.train_function(iterator)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\def_function.py", line 828, in __call__
    result = self._call(*args, **kwds)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\def_function.py", line 888, in _call
    return self._stateless_fn(*args, **kwds)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 2943, in __call__
    filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 1919, in _call_flat
    ctx, args, cancellation_manager=cancellation_manager))
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 560, in call
    ctx=ctx)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.UnknownError:    Fail to find the dnn implementation.
	 [[{{node CudnnRNN}}]]
	 [[sequential/lstm/PartitionedCall]] [Op:__inference_train_function_8782]
Function call stack:
train_function -> train_function -> train_function

tf_2.4.1_issue_on_3070.txt
Tried also with latest nightly 2.5.0.dev20210125 ending up with error:
2021-01-25 21:31:05.429799: E tensorflow/stream_executor/dnn.cc:618] CUDNN_STATUS_EXECUTION_FAILED
in tensorflow/stream_executor/cuda/cuda_dnn.cc(1975): 'cudnnRNNBackwardData( cudnn.handle(), rnn_desc.handle(), model_dims.max_seq_length, output_desc.handles(), output_data.opaque(), output_desc.handles(), output_backprop_data.opaque(), output_h_desc.handle(), output_h_backprop_data.opaque(), output_c_desc.handle(), output_c_backprop_data.opaque(), rnn_desc.params_handle(), params.opaque(), input_h_desc.handle(), input_h_data.opaque(), input_c_desc.handle(), input_c_data.opaque(), input_desc.handles(), input_backprop_data->opaque(), input_h_desc.handle(), input_h_backprop_data->opaque(), input_c_desc.handle(), input_c_backprop_data->opaque(), workspace.opaque(), workspace.size(), reserve_space_data->opaque(), reserve_space_data->size())'
2021-01-25 21:31:05.430291: W tensorflow/core/framework/op_kernel.cc:1763] OP_REQUIRES failed at cudnn_rnn_ops.cc:1926 : Internal: Failed to call ThenRnnBackward with model config: [rnn_mode, rnn_input_mode, rnn_direction_mode]: 2, 0, 0 , [num_layers, input_size, num_units, dir_count, max_seq_length, batch_size, cell_num_units]: [1, 1, 128, 1, 128, 256, 128]
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Aleksander\.IntelliJIdea2018.3\config\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "C:\Users\Aleksander\.IntelliJIdea2018.3\config\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:/Workspace_GpwScan/dnn/sandbox/reproduce_issue.py", line 108, in <module>
    callbacks=[checkpoint, tensorboard])
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\keras\engine\training.py", line 1134, in fit
    tmp_logs = self.train_function(iterator)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\def_function.py", line 818, in __call__
    result = self._call(*args, **kwds)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\def_function.py", line 846, in _call
    return self._stateless_fn(*args, **kwds)  # pylint: disable=not-callable
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 2994, in __call__
    filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 1939, in _call_flat
    ctx, args, cancellation_manager=cancellation_manager))
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\function.py", line 569, in call
    ctx=ctx)
  File "C:\Workspace_GpwScan\stubs\tensorflow\python\eager\execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InternalError:    Failed to call ThenRnnBackward with model config: [rnn_mode, rnn_input_mode, rnn_direction_mode]: 2, 0, 0 , [num_layers, input_size, num_units, dir_count, max_seq_length, batch_size, cell_num_units]: [1, 1, 128, 1, 128, 256, 128]
	 [[{{node gradients/CudnnRNN_grad/CudnnRNNBackprop}}]]
	 [[Adam/gradients/PartitionedCall_2]] [Op:__inference_train_function_8936]
Function call stack:
train_function -> train_function -> train_function

tf_nightly_issue_on_3070.txt
Describe the expected behavior
The script was working on my old gtx 980 and CUDA 10.
Standalone code to reproduce the issue
import datetime
import os

import pandas as pd
from numpy import reshape

import tensorflow as tf

EPOCHS = 500
BATCH_SIZE = 256
TEST_SET_RATIO = 0.2

LEARNING_RATE = 0.001
DECAY = 3e-5
LOSS_FUNC = 'categorical_crossentropy'
DROPOUT = 0.2
OUTPUT_PATH = "e:\\ml"

RNN_SEQ_LEN = 128  # number of RNN/LSTM sequence features
L_AMOUNT = 2  # number of labels

MIN_ACC_TO_SAVE_MODEL = 0.6

def create_model():
    new_model = tf.keras.models.Sequential()

    # NETWORK INPUT
    new_model.add(tf.keras.layers.LSTM(RNN_SEQ_LEN, input_shape=TR_FEATURES.shape[1:], return_sequences=True))
    new_model.add(tf.keras.layers.Dropout(DROPOUT))
    new_model.add(tf.keras.layers.BatchNormalization())

    new_model.add(tf.keras.layers.LSTM(RNN_SEQ_LEN, return_sequences=True))
    new_model.add(tf.keras.layers.Dropout(DROPOUT / 2))
    new_model.add(tf.keras.layers.BatchNormalization())

    new_model.add(tf.keras.layers.LSTM(RNN_SEQ_LEN))
    new_model.add(tf.keras.layers.Dropout(DROPOUT))
    new_model.add(tf.keras.layers.BatchNormalization())

    # NETWORK OUTPUT
    new_model.add(tf.keras.layers.Dense(L_AMOUNT, activation=tf.keras.activations.softmax))

    opt = tf.keras.optimizers.Adam(LEARNING_RATE, decay=DECAY)
    new_model.compile(optimizer=opt,
                      loss=LOSS_FUNC,
                      metrics=['accuracy'])

    print(new_model.summary())
    return new_model

class CustomModelCheckpoint(tf.keras.callbacks.ModelCheckpoint):
    def __init__(self, fp, monitor='val_loss', verbose=0, save_best_only=False, save_weights_only=False, mode='auto', save_freq='epoch', **kwargs):
        super().__init__(fp, monitor, verbose, save_best_only, save_weights_only, mode, save_freq, **kwargs)

    def on_epoch_end(self, epoch, logs=None):
        print("\n-------------------------------------------------------------------------------------------------------")
        print(f"epoch: {epoch}, training_acc: {round(float(logs['accuracy']), 4)}, validation_acc: {round(float(logs['val_accuracy']), 4)}")
        print("-------------------------------------------------------------------------------------------------------\n")

        if MIN_ACC_TO_SAVE_MODEL <= logs['accuracy']:
            super().on_epoch_end(epoch, logs)

if __name__ == '__main__':
    data_filename = 'input_data.csv'
    print("Loading data file: %s" % data_filename)
    dataset = pd.read_csv(data_filename, delimiter=',', header=None)
    dataset = dataset.drop(columns=[0, 1, 2, 3, 4, 5, 6]).values  # drop columns with additional information

    test_set_size = int(len(dataset) * TEST_SET_RATIO)
    print("Test set split at: %d" % test_set_size)

    train_data = dataset[:-test_set_size]
    test_data = dataset[-test_set_size:]  # use most recent data for validation (extract before shuffle)

    TR_F = train_data[:, 0:RNN_SEQ_LEN]
    TS_F = test_data[:, 0:RNN_SEQ_LEN]

    TR_L = train_data[:, RNN_SEQ_LEN:RNN_SEQ_LEN + L_AMOUNT]
    TS_L = test_data[:, RNN_SEQ_LEN:RNN_SEQ_LEN + L_AMOUNT]

    TR_FEATURES = reshape(TR_F, (len(TR_F), RNN_SEQ_LEN, 1))
    TS_FEATURES = reshape(TS_F, (len(TS_F), RNN_SEQ_LEN, 1))

    model = create_model()

    TRAINING_TIMESTAMP = datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
    model_name = "sscce_%s" % TRAINING_TIMESTAMP
    os.mkdir("%s\\models\\%s" % (OUTPUT_PATH, model_name))
    filepath = "%s\\models\\%s\\%s--{epoch:02d}-{val_accuracy:.3f}.model" % (OUTPUT_PATH, model_name, model_name)
    checkpoint = CustomModelCheckpoint(filepath,
                                       monitor='val_accuracy',
                                       verbose=1,
                                       save_best_only=True,
                                       mode='max')

    log_dir = "%s\\logs\\fit\\%s.model" % (OUTPUT_PATH, model_name)
    tensorboard = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1, profile_batch=0)

    model.fit(x=TR_FEATURES,
              y=TR_L,
              epochs=EPOCHS,
              batch_size=BATCH_SIZE,
              shuffle=True,
              validation_data=(TS_FEATURES, TS_L),
              callbacks=[checkpoint, tensorboard])

DATA FILE SAMPLE: input_data.zip
Other info / logs
Providing also path to CUDA 11.0 installation because without it getting errors like:
2021-01-25 21:44:15.989317: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found

Full win sys PATH:
Path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin;C:\cudnn-11.1-v<IP_ADDRESS>\bin;C:\Python36\Scripts\;C:\Python36;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;c:\Java\jdk1.8.0_144_x86;C:\gradle-6.0.1\bin;C:\SVN\bin;C:\MinGW\bin;C:\WinAVR-20100110\;c:\avrdude\;c:\Android\sdk\platform-tools;C:\adb\;C:\TortoiseGit\bin;C:\Git4Windows\cmd;c:\sqlite-tools-win32-x86-3130000\;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\Windows Live\Shared;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.3.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR

I was trying different combinations of cuda/cudnn/tensorflow just for the sake of it but actually only cuda_11.2.0_460.89_win10 comes with win nvidia GPU divers version high enough to support RTX 30xx series.
Still - there is no cudnn build designated particularly for CUDA 11.2 yet... Maybe this is an issue...
Any idea how to make it working all together?

@alewir
Please share all dependencies for us to replicate the issue reported, i ran the code and face this error as train fie is missing.
This issue looks similar to existing issues #45285, #45170

@alewir
Please share all dependencies for us to replicate the issue reported, i ran the code and face this error as train fie is missing.
This issue looks similar to existing issues #45285, #45170

i ran the code and face this error as train fie is missing.

Sry for that, my bad. I've updated code to match filename from DATA FILE SAMPLE: input_data.zip provided in description.
However I'll also try to share full data file in the evening (unfortunately it's too big for github) as from what I've observed data volume has a significant impact here too. Run on full data file fails in 1st epoch while on the above sample files even first couple of hundreds epochs might pass before the error occurs.

Please share all dependencies for us to replicate the issue reported

Is it going to be enough to share here the output of pip3 list?

i ran the code and face this error as train fie is missing.

Sry for that, my bad. I've updated code to match filename from DATA FILE SAMPLE: input_data.zip provided in description.
However I'll also try to share full data file in the evening (unfortunately it's too big for github) as from what I've observed data volume has a significant impact here too. Run on full data file fails in 1st epoch while on the above sample files even first couple of hundreds epochs might pass before the error occurs.

Please share all dependencies for us to replicate the issue reported

Is it going to be enough to share here the output of pip3 list?

@alewir
I'll try the proposal from #45170 as indeed it seems somewhat related.

please do try and update us.

@alewir
I'll try the proposal from #45170 as indeed it seems somewhat related.

please do try and update us.

I've tried this trick ptxas.exe from CUDA 11.1 to apply it use it within 11.2 (which is the one I have installed) but no luck.
I've also installed recently released cuDNN v8.1.0 (January 26th, 2021), for CUDA 11.0,11.1 and 11.2  but I'm getting the same issue on tf 2.4.1 randomly somewhere in the middle of epoch 1.
However, when upgraded to latest nightly from  tf_nightly-2.5.0.dev20210130-cp36-cp36m-win_amd64.whl, currently the first epoch passes but then I'm getting: Process finished with exit code -1073741571 (0xC00000FD) each time.

I've tried this trick ptxas.exe from CUDA 11.1 to apply it use it within 11.2 (which is the one I have installed) but no luck.
I've also installed recently released cuDNN v8.1.0 (January 26th, 2021), for CUDA 11.0,11.1 and 11.2  but I'm getting the same issue on tf 2.4.1 randomly somewhere in the middle of epoch 1.
However, when upgraded to latest nightly from  tf_nightly-2.5.0.dev20210130-cp36-cp36m-win_amd64.whl, currently the first epoch passes but then I'm getting: Process finished with exit code -1073741571 (0xC00000FD) each time.

@alewir
Cuda 11.0 has been tested n suggested, please try it with latest tf version and if you do not face any issues please move this to closed status as cuda 11.2 has not been tested or recommended for the latest tf version as well.

I will check again tf 2.4.1 with CUDA 11.0 and appropriate cuDNN plus newest GPU drivers as well... I'll post the results here within next few days.

I am facing the same problem.
RTX 3070 working very well in other algorithms but incase of CNN it crashes saying Cuda error

any one having a working fix/ specific versions of each that works, seems right now i am not able to make it work with latest drivers. No CNN model training.


Is it possible to add new resolution for mix2s or other devices

Prerequisites

[x] Have you read the readme?
[x] Do you (want to) have your device in the supported list?
[x] Does the device have a Snapdragon 845 SOC?

Description
Currently resolution in Setting-Display, can be only setting to 2160*1080. Can It be changed to other resolution like 1280 * 720 ? It's really useful.
Expected behavior: More resoulution or DPI scaling can be used.
Actual behavior: 2160*1080 and DPI 100% to 175%

Go to Settings->Display->Scaling->change scaling from '100% (Recommended)' to '125%', you'll see the changes with low resolution


Changing inventory_grid for CtrlInventoryGridEx doesn't increase size of custom textures.

When I try to set the inventory just by using:
ctrl_inventory_grid_ex.inventory = inventory_grid
I get this issue when switching to inventories with a larger size than the previous. Is there a way to fix this?

Manually calling _refresh_field_background_grid() on the CtrlInventoryGridEx seems to fix it, but this doesn't seem like a proper solution.

Hmm... I tried to create an identical scene with the latest version, but couldn't reproduce the issue:

Can you provide a Godot project or scene so I can take a closer look?

Is that with a custom field style? That's the part that doesn't seem to scale when changing inventories.
Here's my example project of the problem happening. https://github.com/emilyallerdings/Gloot-Test/

This took me quite some time to fix because I somehow completely misunderstood the issue 🙃.
Anyways, you were right, a _refresh_field_background_grid was missing somewhere. It should be fixed now (250766c3ccff4e3b3084ddaf233b221982ed85f6).


ftp upload not working

I have a problem with the ftp upload of the videos recorded by the camera, I have configured an ftp server in an asus router to which I have a pendrive connected, in the motion events settings, I have ftp upload enabled, in ftp host I have the router address <IP_ADDRESS>, but it doesn't work, we don't upload the videos to the ftp server

Try to run the script ftppush.sh manually and check the logs.

How I run the script, I don't know how to do it

Login with ssh and run the folling commands:
root@yi-hack-allwinner-v2:~# . /tmp/sd/yi-hack/script/env.sh
root@yi-hack-allwinner-v2:~# /tmp/sd/yi-hack/script/ftppush.sh start

This is what I get when I run it manually by ssh, the time and date are not current because I don't have internet on the router where the camera is connected and I don't know how to manually set the date and time on the camera.
root@yi-96dd:~# . /tmp/sd/yi-hack/script/env.sh
root@yi-96dd:~# /tmp/sd/yi-hack/script/ftppush.sh start
2020-04-17 [22-29-25] [INFO] === SERVICE START ===
2020-04-17 [22-29-25] [INFO] checkFiles
ftpput: unexpected server response to STOR: 550 Permission denied (restricted operation).
2020-04-17 [22-29-26] [ERROR] uploadToFtp: ftpput FAILED.
2020-04-17 [22-29-26] [ERROR] checkFiles: uploadToFtp FAILED - [/tmp/sd/record/2020Y04M17D22H/16M35S25.mp4].
ftpput: unexpected server response to STOR: 550 Permission denied (restricted operation).
2020-04-17 [22-29-26] [ERROR] uploadToFtp: ftpput FAILED.
2020-04-17 [22-29-26] [ERROR] checkFiles: uploadToFtp FAILED - [/tmp/sd/record/2020Y04M17D22H/17M00S60.mp4].
ftpput: unexpected server response to STOR: 550 Permission denied (restricted operation).

Line 5 says that the user does not have correct permissions.

The ftp server user is admin, in the asus router's ftp server configuration I have created a video folder which has R / W permissions activated for the admin user and in the motion events configuration, in ftp directory I have selected the video folder that I have created on the ftp server

Try to login manually (eg Filezilla) to the ftp and try to upload a file.

It already works for me, the problem was that the path of the videos folder of the ftp server was incorrectly configured in the camera configuration, the path that I had set was / Videos and the correct path is / sda1 / Videos
Thank you very much.

Same here. Anon user gets cant' t change directory to /home/ftp and normal user seems not providing the correct password to the server.
What can I do?

I get the same here too but my error is:
ftpput: unexpected server response to STOR: 553 12M00S60.mp4: Permission denied.
I have tested the ftpuser in the FTP server with WinSCP and FileZilla and the user / pass works and can create directories/files.
I have disabled unwanted services like ONVIF and Telnet and tried to enable the swap option., Nothing works.
Any tips please?

Run it manually and post the full log:
https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/101#issuecomment-783599076

In my case I'm an idiot)) I used camera's IP as ftp server address.  Cam sends vids to a folder on the ftp server. That folder is synced to OneDrive and set as online only. So the vids don't take up any space on the ftp server and always available online.
Thanks Roleo!

Thanks so much for the replies. I have captured the output showing the error after running the ftppush start. It's here  in pastebin. Is this what you meant or is there a log file I need to grab too?

In my case I'm an idiot)) I used camera's IP as ftp server address.  Cam sends vids to a folder on the ftp server. That folder is synced to OneDrive and set as online only. So the vids don't take up any space on the ftp server and always available online.
Thanks Roleo!

I'm certainly one of those :) - I have checked the IP, user/pass many times.... so hope that's not it. Do you use a port number  in the FTP Host field? I am leaving mine as just IP as the FTP sever is on default port 21.
I wonder if it can be the FTP server. I may spin up a test FTP server in a docker but I'd need to use another port... @roleoroleo does the FTP Host field support IP:PORT?

Sorry to spam the posts. I have used an admin account (instead of my ftpuser account) and it all works. I must have a permission error at my FTP Server end. Sorry for the messing around.
Thank you Roleo for the great work.

Last post, I promise! :)
Is it possible that there is a limit on the password length? I had used a password of 14 characters, no extended. Now I have a 6 char password, the ftpuser works fine. Just posted in case it helps others.

I will check it.

I think the problem is, that the created directory has only chmod 644.
If i chance the permissions to 755 at the ftp server, the uploads runs perfectly.
Maybe there is a error in the scripts, which do the upload?

The script doesn't set permission.
Simply it runs the mkd command to create the directory.
It depends on the user permissions or on the ftp server configuration, if the new directory is 644 or 755.
But you could try to change line 167
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR}"

with this
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}\r\nsite chmod 755 ${FTP_DIR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR}"

and 174
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}/${FTP_DIR_HOUR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR_HOUR}"

with this
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}/${FTP_DIR_HOUR}\r\nsite chmod 755 ${FTP_DIR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR_HOUR}"

Sorry ...
That doesn't change anything:

And: when you restart, the folder with the date 2020 (etc.) is always created. Is that normal?

Check if the user you are using is able to change permissions.

This is the FTP from my web hosting provider, I don't have access to SSH here.
With the same access data, I can use everything in my FTP software, including CHMOD, etc.

Could you try to run this command manually?

log in to you ftp server with a command line client.
run "mkd" to create a new directory
check the permissions
run "site chmod" to change the permissions
check again the permissions

I have a problem with the ftp upload, the upload to the ftp server does not work and if I run the command: /tmp/sd/yi-hack/script/ftppush.sh start by ssh I get this in the registry:
root@porche:~# /tmp/sd/yi-hack/script/ftppush.sh start
2021-08-04 [19-19-45] [INFO] === SERVICE START ===
2021-08-04 [19-19-45] [INFO] checkFiles
2021-08-04 [19-20-30] [INFO] checkFiles
2021-08-04 [19-21-15] [INFO] checkFiles
ash: 080421E2: bad number
2021-08-04 [19-21-15] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E220M00S60.mp4] - already sent.
2021-08-04 [19-22-00] [INFO] checkFiles
ash: 080421E2: bad number
2021-08-04 [19-22-00] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E220M00S60.mp4] - already sent.
ash: 080421E2: bad number
2021-08-04 [19-22-00] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E221M00S60.mp4] - already sent.
2021-08-04 [19-22-46] [INFO] checkFiles
ash: 080421E2: bad number

Sorry, to many Problems...
I've returned the camera.

I have a problem with the ftp upload in the new camera, the camera is yi home ifus version the Firmware: <IP_ADDRESS> and I use the y211ga files version: 0.1.8, the upload to the ftp server does not work and if I run the command: / tmp / sd / yi-hack / script /ftppush.sh start by ssh I get this in the registry:
root@porche:~# /tmp/sd/yi-hack/script/ftppush.sh start
2021-08-04 [19-19-45] [INFO] === SERVICE START ===
2021-08-04 [19-19-45] [INFO] checkFiles
2021-08-04 [19-20-30] [INFO] checkFiles
2021-08-04 [19-21-15] [INFO] checkFiles
ash: 080421E2: bad number
2021-08-04 [19-21-15] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E220M00S60.mp4] - already sent.
2021-08-04 [19-22-00] [INFO] checkFiles
ash: 080421E2: bad number
2021-08-04 [19-22-00] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E220M00S60.mp4] - already sent.
ash: 080421E2: bad number
2021-08-04 [19-22-00] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y08M04D21H/E221M00S60.mp4] - already sent.
2021-08-04 [19-22-46] [INFO] checkFiles
ash: 080421E2: bad number
If I go into the motion event section, the folder of what he has recorded appears, but no file of what he has recorded appears, however if I connect by ftp to the camera if the recorded files appear. you can see it in the following images:
https://drive.google.com/file/d/19Geg0jOIoL_93v00QSzTr1TTJI6ei3F7/view?usp=sharing
https://drive.google.com/file/d/1mavQ6scVDpLs1foJUuoVKucunEw0xAir/view?usp=sharing
https://drive.google.com/file/d/1bATWcqh63VTzi89SxCu_Yc8T9-yLT53k/view?usp=sharing
I need to use the ftp upload function for my video surveillance system.

Probably the script must be updated with the new naming convention.

By when do you think you can have it corrected?

I need a few days.

Try this commit:
https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/6e084f08227871573c05f067f0ee45f23507d2f8

Try this commit:
6e084f0

How is it downloaded? If I click on the link, I don't see the download button.

Try this commit:
6e084f0

I have replaced the files of the micro sd with the new ones and it still does not work, the files are not seen in the web interface and if I run the script by ssh it does not work.

I have created the files, I have copied the new content in each file, I have removed the micro sd from the camera and I have replaced the previous files, if I copy the old files again and run the script it works giving the previous error.

Check the permissions.
Both files must be 755.

Both files have permissions 775

I tested it again and I can't find the problem.
Please check if the format of the files is ok. The size of your files doesn't match the right size.
eventsfile.sh is 1001 bytes long.
ftppush.sh is 7566 bytes long.
Are they in windows format?
CR-LF vs LF?

I do not know what format it is in, create the file with the Windows notepad and change the extension to .sh, my problem may be that I do not create the file correctly, I have the camera in my country house and even the weekend I can not go to test it, I will try to create the files again with visual studio code.

I'm pretty sure that your problem is the format.
If you created the files with notepad the files are in windows format (CR+LF at the end of each line) and linux doesn't run it.
Check this post to fix the problem when you use filezilla:
https://forum.filezilla-project.org/viewtopic.php?t=49059

I have created the files again in ubuntu and the eventsfile.sh already works, but the ftppush.sh still does not work, it gives the same error.

Ok. Wait for a new image to install.

I have upgraded to version 0.1.9 and I keep getting the same error when running the ftppush.sh script

Let's start over.
Are you able to see the file list in the "Events" page?

Yes, I was able to see the recorded files from the events page.

Ok.
Try to run the command manually:
root@yi-hack-allwinner-v2:~# . /tmp/sd/yi-hack/script/env.sh
root@yi-hack-allwinner-v2:~# /tmp/sd/yi-hack/script/ftppush.sh

and check the output.

This is what I get running the script.

What's the model of your cam?

The camera model is a yi home ifus software version <IP_ADDRESS>.202105081647 and the files it has is y211ga.

Ok, I think that I found the problem.
y211ga has a different naming convention: I implemented it but no tested. So there is a bug.
Change "14" with "44" at line 64 of ftppush.sh:
--- a/src/static/static/yi-hack/script/ftppush.sh
+++ b/src/static/static/yi-hack/script/ftppush.sh
@@ -61,7 +61,7 @@ checkFiles ()
        fi
        #
        echo "${L_FILE_LIST}" | while read file; do
-               if [ "${#file}" == "14" ]; then
+               if [ "${#file}" == "44" ]; then
                        FILE_DATE=${file:15:4}-${file:20:2}-${file:23:2}T${file:26:2}:${file:32:2}
                else
                        FILE_DATE=${file:15:4}-${file:20:2}-${file:23:2}T${file:26:2}:${file:30:2}

I have changed the value 14 to 44 in line 64 and it already works, I have also changed it in another camera yi outdoor ifus software version <IP_ADDRESS>_202104231123 with h30ga files that had the same problem and also works correctly.

Hi Roleo,
I am using ftp to push video file on a server and it works for most of the file but there are some that are left on the SD card and in the log I can see that the cam already tried to push them and marked as already sent. The log is:
2021-09-09 [16-01-50] [INFO] checkFiles
2021-09-09 [16-01-50] [INFO] checkFiles: ignore file [/tmp/sd/record/2020Y04M17D22H/16M33S09.mp4] - already sent.
2021-09-09 [16-01-50] [INFO] checkFiles: ignore file [/tmp/sd/record/2021Y09M09D15H/50M54S05.mp4] - already sent.
The problem is that those files aren't on the server and if I reboot the camera they will be sent correctly.
My conf is:
FTPD=no
FTP_DIR=/mnt/Video/
FTP_DIR_TREE=yes
FTP_FILE_DELETE_AFTER_UPLOAD=yes
FTP_HOST=192.168.X.X
FTP_PASSWORD=***
FTP_UPLOAD=yes
FTP_USERNAME=pi
I use the delete file after upload.
The general problem about those file that remain on the SD of the camera is that there probably were some network problem during the upload and anyway the ftppush.sh marked them as already sent: where the information about file sent is stored ?
Thank you and have a good evening,
Michele

I've added the following code in the else part:
else
logAdd "[INFO] checkFiles: [${file}] - already sent, trying again."
if ( ! uploadToFtp -- "${file}" ); then
logAdd "[ERROR] checkFiles: uploadToFtp FAILED - [${file}]."
continue
fi
if [ "${FTP_FILE_DELETE_AFTER_UPLOAD}" == "yes" ]; then
rm -f "${file}"
fi
It seems to work for now and will see in a couple of days if there still are file that remain on the SD card.

There is a var where the script stores the last file sent (only the last).
If a file is not sent and a newer file is sent, the script will skip it on the next run.
This method is not error-free, I know.
Your code is ok but you should try again only if FTP_FILE_DELETE_AFTER_UPLOAD is "yes".
Otherwise you will send all files at every cycle (and not only newer).

Your code is ok but you should try again only if FTP_FILE_DELETE_AFTER_UPLOAD is "yes".
Otherwise you will send all files at every cycle (and not only newer).

You are right: for me it is the same but for who doesn't use the flag "delete after upload", it is.

Hey,
I'm running an FTPD on a non-default port. For now I've changed the ftppush.sh script with the hardcoded port for nc and ftpput, but I'd love to see configurable ports in the webinterface!
Apart from that: Would it be possible to support SSL/TLS FTPS?

Hmm, it also doesn't seem to ever send anything. I've tried running the script manually, this is the output:
cat /tmp/ftppush.log

2022-01-24 [17-20-08] [INFO] === SERVICE START ===
2022-01-24 [17-20-09] [INFO] checkFiles

/tmp/last_file_sent is still default.

Apart from that: Would it be possible to support SSL/TLS FTPS?

I can't embed in the hack but you could use openssh from here:
https://github.com/roleoroleo/yi-hack-utils/


Anchoring with sibilings

Hi Team,
How do we anchor for Component to the sibling component?
Eg:
        return {
            w: 1280,
            h: 720,
            Canvas_1: {
                text:{
                    text: "Sample 1"
                }
            },
            Canvas_2:{
                text:{
                    text: "Sample 2"
                }
            }
        };

How do anchor Canvas_2 to Canvas_1?
Is there any method to access sibling properties?

@basvanmeurs @clopez Any update?

You can just put Canvas 2 as a nested sibling part of Canvas 1.
E.g.
{
    w: 1280,
    h: 720,
    Canvas_1: {
        text:{
            text: "Sample 1"
        },
        Canvas_2:{
            text:{
                text: "Sample 2"
            }
        }
    }
};

@wouterlucas Not all the components can be the child component.
For example, I have 3 components in total
{
  Component_1: {
    x: 50,
    y: 50
  },
  Component_2: {
    x: 300,
    y: 300
  },

  Dependent_Component: {
    // Top position needs to be the same as Component 1
    // Right position needs to be same as of Component 2
  }
}

Closing for now, please reopen if still relevant.


Search results page - filter results

Allows a user to filter search results
As a researcher
I want to filter my search results
in order to quickly and easily view the results by the aspect I’m interested in
Scenarios
Given I am have entered 'FSM' in the seach box
And And i have clicked 'Search'
When select '2017/18' in the 'Years' filter list
Then my results should be filtered to only include results collected during 2017/18
BR1: Filter options:

Years available
--2017/18
--2016/17
--2015/16
--2014/15
Categories
--Attainment and exam information
--Age
--Absence &exclusions
--Ethnicity
Data sources
--YPMAD
--School census
--Autumn census
--Edubase
Education phase
--Early years
--Pimary
--Secondary
--Post 16

BR2: Filter expands
Default page should show top 4 of each option. Option should be given to 'Show more' upon which rest of the available filters for that option will be shown. More than one option can be expanded at any point.
BR3: Options greying out
If an option isn't available for the current results shown, the box and title should be greyed out and unavailable.
BR4: Combinations of filters
It should be possible to combine filters.

Will flesh story out more once we start user testing.


Adding support for custom seasons in validity configuration; COUNTRY=jordan

Description
This update allows seasonal validity configurations to be customized (for example, wet and dry seasons).
This can be configured by providing an (optional) seasons array in the validity section.
"validity": {
      "mode": "season",
      "seasons": [
        {
          "start": "01-March",
          "end": "31-July"
        },
        {
          "start": "01-August",
          "end": "28-February"
        }
      ]
    },

How to test the feature:
A demonstration of this feature is included CDI v1 in Jordan

[ ] REMOVE BEFORE MERGING

Checklist - did you ...

Test your changes with

[x] REACT_APP_COUNTRY=rbd yarn start
[x] REACT_APP_COUNTRY=cambodia yarn start
[x] REACT_APP_COUNTRY=mozambique yarn start
[x] Add / update necessary tests?
[x] Add / update outdated documentation?

Screenshot/video of feature:
https://www.loom.com/share/b4bb333e2db842889d2365b309a0f0e9?sid=f46174ee-dce5-409d-bdde-72d3a15706d4

@gislawill - I updated the config here to just use quarters as seasons. I get an error noting the start date of the season doesn't have valid data in hip-analysis. I think we should +1 day for the start date.
Here's the request:
{
    "begin": "2023-03-31",
    "end": "2023-06-30",
    "area": {
        "min_lon": 34.42,
        "min_lat": 28.36,
        "max_lon": 39.82,
        "max_lat": 34.16,
        "start_date": "2020-12-01",
        "end_date": "2021-07-31"
    },
    "layers": [
        {
            "key": [
                "CHIRPS",
                "R1S_DEKAD"
            ],
            "aggregation": "last_dekad",
            "importance": 0.5,
            "invert": false
        },
        {
            "key": [
                "MODIS",
                "MYD11C2_TDD_DEKAD"
            ],
            "aggregation": "last_dekad",
            "importance": 0.25,
            "invert": false
        },
        {
            "key": [
                "MODIS",
                "NDVI_smoothed_5KM"
            ],
            "aggregation": "average",
            "importance": 0.25,
            "invert": true
        }
    ]
}

And here's the response:

"There is no data available for the dataset ['CHIRPS', 'R1S_DEKAD'] begining on the 2023-03-31. Please use a later ref_begin_date.

Thanks @gislawill. Yes, that logic is correct for the way we handle dekads and start/end periods. But when I tried testing again, I got the same error as before.
The begin date
{
    "begin": "2022-12-31",
    "end": "2023-03-31",
    "area": {
        "min_lon": 34.42,
        "min_lat": 28.36,
        "max_lon": 39.82,
        "max_lat": 34.16,
        "start_date": "2020-12-01",
        "end_date": "2021-07-31"
    },
    "layers": [
        {
            "key": [
                "CHIRPS",
                "R1S_DEKAD"
            ],
            "aggregation": "last_dekad",
            "importance": 0.5,
            "invert": false
        },
        {
            "key": [
                "MODIS",
                "MYD11C2_TDD_DEKAD"
            ],
            "aggregation": "last_dekad",
            "importance": 0.25,
            "invert": false
        },
        {
            "key": [
                "MODIS",
                "NDVI_smoothed_5KM"
            ],
            "aggregation": "average",
            "importance": 0.25,
            "invert": true
        }
    ]
}

There is no data available for the dataset ['CHIRPS', 'R1S_DEKAD'] begining on the 2022-12-31. Please use a later ref_begin_date.

Yes, that logic is correct for the way we handle dekads and start/end periods. But when I tried testing again, I got the same error as before.

Ah, I was able to reproduce this when I set my computer in Singapore time, @wadhwamatic. Looks like the process I used to generate dates based on the August-01 style strings didn't account for different timezones. I've fixed this in the latest commit


XFail symbol-checking test that uses string interpolation

This test is fairly brittle, and breaks with some simple changes in the way string interpolation is compiled, and the commentary in https://github.com/apple/swift-lldb/pull/128 indicates that it's not important. Xfail it for now to unblock https://github.com/apple/swift/pull/7146.
(cherry picked from commit dbb730e8ca79a468e87c49c302c31d1d0fe96f22)

@swift-ci please test

Yay Linux build succeeded


Run tests against NumPy 2

Tim made some fixes in #1228, but there are still some more

... the tests against scikit-allel are still failing. Maybe time to add the scikit-allel test data and drop the dependency?

Originally posted by @timothymillar in https://github.com/sgkit-dev/sgkit/issues/1228#issuecomment-2178140077
I didn't see this before, but I agree - it looks like scikit-allel won't work against NumPy 2 since its cython code is incompatible.
We only use it in the tests for comparing our methods implementations:

test_ld.py - we could drop it from here since it's not testing anything non-trivial.
test_pca.py
test_popgen.py - we could compare to tskit instead of scikit-allel (we already do in a few places).
test_preprocessing.py
test_window.py

As @timothymillar said, we could export some test data from scikit-allel for the few remaining cases where we want to check the output of sgkit.

Another failing case I found was in the VCF writer code.

================================================================================= FAILURES ==================================================================================
__________________________________________________________________________ test_ftoa[0.0005-0.001] __________________________________________________________________________

f = np.float32(0.0005), a = '0.001'

    @pytest.mark.parametrize(
        "f, a",
        [
            (0.0, "0"),
            (0.0001, "0"),
            (0.0005, "0.001"),
            (0.3, "0.3"),
            (0.32, "0.32"),
            (0.329, "0.329"),
            (0.3217, "0.322"),
            (8.0, "8"),
            (8.0001, "8"),
            (8.3, "8.3"),
            (8.32, "8.32"),
            (8.329, "8.329"),
            (8.3217, "8.322"),
            (443.998, "443.998"),
            (1028.0, "1028"),
            (1028.0001, "1028"),
            (1028.3, "1028.3"),
            (1028.32, "1028.32"),
            (1028.329, "1028.329"),
            (1028.3217, "1028.322"),
            (np.nan, "nan"),
            (np.inf, "inf"),
        ],
    )
    def test_ftoa(f, a):
        f = np.array([f], dtype=np.float32)[0]
        buf = np.empty(FLOAT32_BUF_SIZE, dtype=np.uint8)

        p = ftoa(buf, 0, f)
>       assert byte_buf_to_str(buf[:p]) == a
E       AssertionError: assert '0' == '0.001'
E
E         - 0.001
E         + 0

sgkit/tests/io/vcf/test_vcf_writer_utils.py:96: AssertionError
========================================================================== short test summary info ==========================================================================
FAILED sgkit/tests/io/vcf/test_vcf_writer_utils.py::test_ftoa[0.0005-0.001] - AssertionError: assert '0' == '0.001'

I think this was actually passing by accident before. NumPy will round towards the nearest even value, so in this case it would be 0.000, not 0.001. However, due to what I think were changes in NumPy around value-based promotion (https://numpy.org/neps/nep-0050-scalar-promotion.html) this test fails in NumPy 2, while it passed in NumPy 1. Also, in Numba it passes - when using NumPy 1 or 2, since Numba has not yet caught up on that aspect of NumPy 2 (i.e. it is still following NumPy 1 behaviour).
So I think it's best to drop the test for that case, since it is arguably incorrect anyway (0.0005 should round to 0).

I noticed that scikit-allel is now compatible with NumPy 2, which makes this a lot easier! (Thanks @alimanfoo for that!)
I have updated #1237.


Maybe we need an option to set the browser restarted between test suite after version 1.0.

When I upgrade the codeceptjs to version 1.0.0,I found the new change like below:

Don't close browser between suites, when restart option is false. We should start browser only one time and close it only after all tests.

This change makes my test suite failed, before the version 1.0.0, the browser will restart and clean the cookie between the test suite.
And in my test suites, some suites need to login the account but others need not. So with version 1.0.0, the browser will not restart anymore between test siutes.
I think lot of guys will have same problem like me, some test suite need the cookie but others needn't.
If don't close browser between suites, the cookie will always in the browser.
So I suggest, maybe we need an option to set the browser restarted between test suite after codeceptjs 1.0.
@APshenkin Could you have a look on this feature request？

@junguchina
Can you please provide more information?
We clear cookies and local storage between each test, when restart:false. Also there is an option keepCookies that clear only local storage between test
If don't close browser between suites, the cookie will always in the browser. - Please provide more information about this issue
So now you can combine flags to get what you want.
1 option - clear cookies between each test when restart:false
2 option - don't clear cookies between each test (keepCookies) and clear them exact from your tests or in Before hook
BTW I recommend to clear cookies between each test and add auth cookie before each test to provide more idempotency in your tests

Related #629

@APshenkin Pls refer my config in codecept.conf.js like below:

@junguchina can you please provide more information about test cases? or give a link for your web app?
I think you can do this trick
Set restart:false, remove keepCookies option
in suite A add Before hook, where you can set login cookie before each test

BTW, please check https://github.com/Codeception/CodeceptJS/issues/631
Maybe the reason of your problem is the same

Hi @APshenkin ,
I referred the issue #631 and check my cookies in browser, the cookies are stored in same domain between test suites.So I think this is not same with #631.
You can refer the log with tag --verbose between test siuts:

Hi @APshenkin ,
I referred the #631 and checked our web app with developers.
I found that we changed the login mechanism and used the node openid to provide account auth.
There is a auth server named OP and our web app named RP, the codeceptjs will cleared the cookies of RP, but the authentic info still stored in OP, so between test suites, the RP still can pass the auth.
Now I add a login case in first and a logout case in latest of the test suite which needs to login account.
This can make sure the single test suite and all test suites passed with codeceptjs.
Thank you @APshenkin for your help, pls close this issue.


day2: Add description for breakouts as well as Q&A

Helping people to better plan their time!

If there's a suggestion for the adaptions, happy to push a commit. Otherwise, I can leave you guys to add to your PRs.


Ability to set how long the pay message shows on screen

Description of new idea or improvement on existing one
Just like how we can set how long the boss bar showing our job level gets displayed for, we should be able to set how long the message telling us our money/points/xp gain gets displayed for. It gets especially hard to read this message the longer you set the interval before players get paid: on my server for example, players get paid every 2 minutes, so when the message pops up telling them their pay, it can catch them off guard and not leave them enough time to read it.
Detailed information what should do what and when
We need an option in the config for how many seconds to display the message that shows on the bottom of the screen when we get paid.

Adding this would break the minecraft default animation play, decreases the server performance with unnecessary scheduler tasks, show and hide the actionbar according to the minecraft code, so it can't be handled inside a plugin unless it's loaded with unnecessary tasks. So if the minecraft can make this, to handle actionbar tasks, then will be implemented.


Update Release process

Resolves #262.
This borrows HEAVILY from the java instrumentation (upstream) release process.
Would definitely like to try this out on the next release build, because there are bound to be some rough edges.
There's also still some room for improvement, like we don't yet have anything to help generate the CHANGELOG entries, and we're only adding the topmost agent aar to the release page....but we can improve things later.

@trask since you know this stuff really well it would be great to have your eyes on this too. ❤

@trask since you know this stuff really well it would be great to have your eyes on this too. ❤

will review today 👍


Dockerfile

Hey, is Docker Support something you want ? I saw your Reddit Post and wanted to contribute something. If you want i could build you a Dockerfile

Sure it is!
Any suggestion on the implementation? How can we add it to docker images? This contribuition would be great. If you need anything let me know.

If this app fits my needs at work after a proof of concept, I'll build and PR a dockerfile for you, and show you the basics of getting it connected to docker hub w/ auto builds and tags.

I am working on this right now. Currently running into this error, but ill keep trying:
* Listening on unix:/srv/sssm/tmp/puma.sock
bundler: failed to load command: /usr/local/bundle/bin/puma (/usr/local/bundle/bin/puma)
Errno::EACCES: Permission denied - connect(2) for /srv/sssm/tmp/puma.sock
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `initialize'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `new'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `add_unix_listener'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:141:in `block in parse'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:88:in `each'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:88:in `parse'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/runner.rb:151:in `load_and_bind'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/single.rb:96:in `run'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/launcher.rb:184:in `run'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/cli.rb:78:in `run'
  /usr/local/bundle/gems/puma-3.12.0/bin/puma:10:in `<top (required)>'
  /usr/local/bundle/bin/puma:23:in `load'
  /usr/local/bundle/bin/puma:23:in `<top (required)>'

If I make any real progress, I will open a PR.

So this is the Basic Docker File i came up with.
FROM ruby:2.5.3-alpine

# Set local timezone
RUN apk add --update tzdata && \
    cp /usr/share/zoneinfo/Europe/London /etc/localtime && \
    echo "Europe/London" > /etc/timezone

# Install your app's runtime dependencies in the container
RUN apk add --update --virtual runtime-deps postgresql-client nodejs libffi-dev readline sqlite

# Bundle into the temp directory
WORKDIR /tmp
ADD Gemfile* ./

RUN apk add --virtual build-deps build-base postgresql-dev libc-dev linux-headers libxml2-dev libxslt-dev readline-dev && \
    bundle install --jobs=2 && apk del build-deps

# Copy the app's code into the container
ENV APP_HOME /app
COPY . $APP_HOME
WORKDIR $APP_HOME

# Configure production environment variables
ENV RAILS_ENV='production' \
    RACK_ENV='production'

RUN echo production: > config/secrets.yml && echo "  secret_key_base: '$(rake secret)'" >> config/secrets.yml && cat config/secrets.yml

# Expose port 3000 from the container
EXPOSE 3000

# Run puma server by default
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]

This starts the Server and serves the HTML. Just the CSS and JS is missing. Maybe someone finds out where the COPY-Process is failing....

I am working on this right now. Currently running into this error, but ill keep trying:
* Listening on unix:/srv/sssm/tmp/puma.sock
bundler: failed to load command: /usr/local/bundle/bin/puma (/usr/local/bundle/bin/puma)
Errno::EACCES: Permission denied - connect(2) for /srv/sssm/tmp/puma.sock
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `initialize'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `new'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:370:in `add_unix_listener'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:141:in `block in parse'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:88:in `each'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/binder.rb:88:in `parse'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/runner.rb:151:in `load_and_bind'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/single.rb:96:in `run'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/launcher.rb:184:in `run'
  /usr/local/bundle/gems/puma-3.12.0/lib/puma/cli.rb:78:in `run'
  /usr/local/bundle/gems/puma-3.12.0/bin/puma:10:in `<top (required)>'
  /usr/local/bundle/bin/puma:23:in `load'
  /usr/local/bundle/bin/puma:23:in `<top (required)>'

If I make any real progress, I will open a PR.

I think your problem is communicating with the Unix socket. Probably an permission problem... Try reading this Article or post the complete Dockerfile so we all can take a look.

Small criticism, wouldn't UTC time make more sense of a server? Otherwise the dockerfile looks like a good start 👍

@jsirianni Yeah you'r right. Best would be, if we default to UTC and the user can manually change it to his prefered Tomezone

Application is working. Only Problem is serving the static files.
So i spend some time coming up with concepts for the Container.  We can NOT use Unix-Sockets in the Container to let Nginx communicate with puma like the offical installation guide. Best Practice is using TCP-Sockets, or we could serve the static files via puma itself. But to decide this, i need some input from @fbocolowski and @jsirianni

Greetings! :vulcan_salute:
@localleon you can try creating a custom enviroment for Docker (copy from config/environments/production.rb, maybe docker.rb) and set config.public_file_server.enabled = true. To me it looks like the cleanest solution. If this works, we can treat the Docker environment just the same as production.

Hello 👐,
this seems like a good idea. After my Holidays i will work on creating a custom puma config for the docker Container.

Hey, i'm making progress. So i got the App fully working in the dev enviroment. My plan now is to create a puma_docker.rb and get the MongoDB to an external Container and write a docker-compose file (containers don't like stuff centralized).
But i'm failing with the production enviroment. So i created this puma_docker.rb
threads 5, 5
environment "production"

# Containers don't use Unix-Sockets, we serve the static files via puma
@config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
pidfile "/srv/sssm/tmp/puma.pid"
state_path "/srv/sssm/tmp/puma.state"

stdout_redirect "/srv/sssm/log/puma.log", "/srv/sssm/log/puma.log", true

This just gives back this error.
bundler: failed to load command: puma (/usr/local/bundle/bin/puma)
NoMethodError: undefined method `public_file_server' for #<Puma::Configuration:0x000055ed1c320ac8>
Did you mean?  public_send
  config/puma_docker.rb:5:in `_load_from'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/dsl.rb:43:in `instance_eval'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/dsl.rb:43:in `_load_from'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/configuration.rb:194:in `block in load'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/configuration.rb:194:in `each'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/configuration.rb:194:in `load'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/launcher.rb:61:in `initialize'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/cli.rb:71:in `new'
  /usr/local/bundle/gems/puma-3.12.1/lib/puma/cli.rb:71:in `initialize'
  /usr/local/bundle/gems/puma-3.12.1/bin/puma:8:in `new'
  /usr/local/bundle/gems/puma-3.12.1/bin/puma:8:in `<top (required)>'
  /usr/local/bundle/bin/puma:23:in `load'
  /usr/local/bundle/bin/puma:23:in `<top (required)>'

It seems like i am defining the wrong config. I don't know any Ruby so i'm pretty helpless. Can you take a look @fbocolowski ?

@fbocolowski  Any ideas ?

There doesn't seem that much demand for a Docker Container @fbocolowski ?... The Dockerfile itself is finished. I just need  to get the puma config working.... If someone is willing to help out with this one, i would be willing to start working on this issue again.


Back up pwrcoin-qt-x64-v3.0.0

I have backup file "PWR 3_0.DAt" created by my wallet address. Because I lost that wallet. Now how can I back up my wallet from the "PWR 3_0.DAt" file. Help me please!

Hi,
What do you mean with you lost that wallet ?
The way to restore a wallet.dat file is:
1 - stop wallet
2 - check %APPDATA%/Roaming/pwrcoin3/ doesnt already have a wallet.dat if it does rename it wallet.old
2 - copy your pwr_3_0.dat file to %APPDATA%/Roaming/pwrcoin3/wallet.dat
3 - start wallet

ThankS! I success!


Getting started help

Hi all
This looks awesome and would love to try it but I'm battling to find a simple example as to how to get started.
I am a jquery newbie  and would really appreciate a little help from some kind soul with this.
I would like to use the minified version and store the files locally.
I have referenced the files (hopefully correctly as follows
`<l.i.n.k.h.r.e.f="/flatpickr.min.css" rel="stylesheet">

`
In the body I have this
<input type="text" id="onTime" placeholder="onTime">
And my javascript on document load is
$('#onTime').flatpickr();
Sadly this is not working :-(
Have I missed something specific ?
** Sorry about the css reference .. github seems to want to hide the line of code
Kind regards
Den

https://flatpickr.js.org/getting-started/

@ankurk91 Hi there .. Thanks for the reply but did you actually read through and understand my question ?
Particularly this "I would like to use the minified version and store the files locally."
the location has no internet and I need to host the .JS and .CSS files LOCALLY (on the server serving the files)
Does this make sense ?

@denden4444 sorry for the late response.
Check if flatpickr works without jQuery.
flatpickr(document.querySelector("#onTime"));

I have a similar question and wish.
I know HTML and CSS. I know what Javascript is, but never worked with it deeply.
Unfortunately with the manual on https://flatpickr.js.org/getting-started/ I don't get it.
Would it be possible to publish a complete example which can be copy/paste to understand how it works (dummy how-to)? Specially for Non-module environments (with and without jQuery).
I wrote the following code. I think I really do not understand how flatpickr can be integrated. -.-

        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">

<input id="test" class=flatpickr type="text" placeholder="Select Date.." data-id="multiple" />

Thanks in advance
Michael

Regarding getting started, a complete example is appreciated.  I have JQuery included and tried to use the $('#selector').flatpickr(); method and it returned an error on the console stating that $('...').flatpickr is not a function.
I tried running it without jQuery and it worked.  Perhaps it's a problem with the jQuery plugin?  Could be a jQuery version issue as well.
I'm using jQuery 3.3.1 (minified) from the CDN along with bootstrap4

Regarding wrap, it displays an error in the console when set to true.
flatpickr:2 TypeError: Cannot read property 'nodeName' of null
at flatpickr:2
at flatpickr:2
at r (flatpickr:2)
at n (flatpickr:2)
at ve (flatpickr:2)
at :1:1

I am running into the same error. How is this fixed? Always happens when wrap is true.

For me, the problem was with poor documentation regarding this functionality, so this was how I managed to get wrap working:

    <input name="endtDate" type="text" placeholder="Select Date.." data-input>

So basically you need to:

Wrap the input and the button inside a div and set a class or id
Add data-input attribute to the input
Add the .input-button class to the external elements
Call the flatpickr using the class or id set on the step 1

flatpickr(".datetime", {
            wrap: true
});

I hope it helps you

For me, the problem was with poor documentation regarding this functionality, so this was how I managed to get wrap working:

    <input name="endtDate" type="text" placeholder="Select Date.." data-input>

So basically you need to:

Wrap the input and the button inside a div and set a class or id
Add data-input attribute to the input
Add the .input-button class to the external elements
Call the flatpickr using the class or id set on the step 1

flatpickr(".datetime", {
            wrap: true
});

I hope it helps you

Works for me!
Thx


[next branch] what is the difference between qcfractal-manager and  qcfractal-compute-manager

Looking at the code they both seem to start a ComputeManager() object but with different types of configurations.
My question is whether one is the legacy or whether both are legit and simply cover different use cases?
ping @bennybp

The one that is started with qcfractal-manager (in qcfractal_manager_cli.py) is legacy. This one tried to support different backends, but ended up somewhat complex. It is being left in (and function) for a little while.
The newer version qcfractal-compute-manager (slightly better name I hope, although confusing at the moment) supports only Parsl,  but that will allow for some more interesting features in the future.
The new qcfractal-compute-manager also supports handling the QM packages being in different conda envs and apptainer/singularity containers (experimentally). I hope to write some docs soon...

Thanks for the heads-up, I will try moving to qcfractal-compute-manager then.


Unexpected token < in JSON at position 0

  ClickBtn
const handler = (id) => {
Router.push({
pathname: '../../user/circle_user/userInfo',
query: { id: '123' }
})
}

The consolse.error in router.js and asyncToGenerator.js

Unexpected token < in JSON at position 0  -- router.js
Uncaught(in promise) Unexpected token < in JSON at position 0 -- asyncToGenerator.js
After a monment，the error remind disappear and success to 'http://localhost:3000/user/circle_user/userInfo'
When   npm run build, npm run start  ，the page show 'An unexpected error has occurred'

What's the solution for this?


Crash mid-game

Like the title says. Mid-game this crash will happen. The game just freezes and says not responding. I'm not sure if the crash is due to Midnight or NEI, so I will need a bit of help determining that. Here is the log https://pastebin.com/9JxkFssv .
If anyone can figure out whats happening, It would be greatly appreciated. Thanks

Not an NEI crash


set NODE_PATH=.

in my package.json  i have     "start": "NODE_PATH=. NODE_ENV=production node app.js" ...
in /app-root/logs/nodejs.log  line :
nohup: failed to run command `NODE_PATH=.': No such file or directory
how can i set NODE_PATH ?
should i remove " NODE_ENV=production " ?
I've created some question on stackoverflow- the Question

Already replied on stackoverflow, but I'll paste it here for the benefit of other people having similar questions.
Having "start": "node app.js" in your package.json should be just enough.
If you take a look at bin/install, you'll see that NODE_ENV is already set to production by default in the cartridge setup script.
Also, I'm not sure what you're trying to achieve by setting NODE_PATH to .. There's a single Node.js version installed.
If you're generally interested in how you can set custom environment variables in an OpenShift-deployed application, have a look at the docs here. Basically you'll have to use the rhc command-line utility like this:
$ rhc env set <Variable>=<Value> <Variable2>=<Value2> -a App_Name

Hope this answers your question.

Thank you for answering, dear, Ionut-Cristian Florescu.

I have line in main app.js file. There is folder named 'config', in the same directory with app.js, in folder config placed file index.js, file index.js have code with 'module.exports = Object.assign({ ...some conifg object... });' . When i delete NODE_PATH=. , node throws "Error: Cannot find module 'config' " .

That is why i asking .

You're welcome, but I'm not sure I understand what you mean. I mean, I'm quite sure I don't understand what you mean.


Convert to ECMAScript modules for tree shaking support

Tools like webpack and parcel have a feature called tree shaking allowing me to automatically remove dead code from modules. However it relies on ECMAScript modules.
For example since our app doesn't use Google Pay or Apple Pay but we're still shipping code for those providers, resulting in a larger bundle, resulting in slower load times.

You should be able to get similar results from just importing the files like so:
//we only want paypal support, so don't include the whole shebang
//import braintree from 'braintree';
import braintreeClient from 'braintree-web/client';
import braintreePaymentRequest from 'braintree-web/paypal-checkout';

I agree it would be nicer to not have to do this, but perhaps this may be of use to you in the interim

Thought I responded to this, but I guess not.
@719media is correct, that's our recommended way of importing just the components you need.
We can't support ECMAScript modules at this time, because it would break users who are using older versions of build tools that rely on the commonjs require style. I've added a v4 label to this issue so we can keep track of it when we're ready to do a major version bump.

Well, if you guys use Typescript, you can create different builds for different users.
https://stackoverflow.com/questions/30439869/can-typescript-compile-to-es6-code

We are not using Typescript at this time. We are considering it for the next major version. Thanks for the resource!

We are considering it for the next major version.

typescript or not, it's not a breaking change, so this could be included in the next minor version
typescript is an excellent choice, but is not necessary for this task -- we just want something like a dist-esm/ directory containing a converted copy of the library
at this point, for my application, i have to run a build step to convert your library into es modules — it would be much better for that build step to happen in this library's repo, so we can ship the results and save everybody the same hassle
check out the pika ecosystem to learn how to become compatible (package json "module" and "type" fields)

Somewhat of a workaround for now:
// @ts-ignore
import braintreeClient from 'braintree-web/client';

// @ts-ignore
import braintreePayPal from 'braintree-web/paypal';

...

I've heard Stripe SDK has esm dist and is in TypeScript ;)

I would love to have an ES modulized braintree-web lib myself. Is there any progress here?

Any progress on this issue? We are in 2024 now 😅


v1.0.0 beta 4

This is the primary pull request for developing and shipping LCUI 1.0 Beta 4.

Coverage increased (+88.5%) to 88.482% when pulling a8ab0faaa830b9111812a3e10248e4475a725e62 on develop into 42b6141571d11024cd687150bd9a1e7261641197 on master.


2.13.7

https://github.com/catchorg/Catch2/releases/tag/v2.13.7

We have reworked how wraps are stored. All pull requests should be filed against the wrapdb repo. These individual ones are not used and are only here for backwards compatibility.
Closing this, please file a new one against wrapdb. Thanks.

Thanks,sorry I didn't realise. wrapdb is up to date so will just update the downstream project.


[SLUS-21111] Scarface - The World Is Yours (USA)

When starting the game using Neutrino, after a few moments of black screen, I am taken to the memory card browser screen. OPL works perfectly.
SCPH-90010, Neutrino 1.3.1 and "lastest" build, USB

This issue has been fixed here in commit https://github.com/rickgaiser/neutrino/commit/61bdb3685369b221d9111e19658fdaa753c9396c
It will be available in the next release.
Thank you for testing!


no-consecutive-blank-lines quick fix only shows up on the next line

With "no-consecutive-blank-lines": true
Open file:

1;

2;

Place cursor on line 3

Bug
Quick fix in VS Code only shows up on line 4 instead of line 3 where the error is shown

This is actually an upstream issue: https://github.com/Microsoft/vscode/commit/92f9f50a93ba278f7bb637386ac1ffcdfd38a55e
Lightbulb still will not show in this case but you can now get code actions


Favicon, Telegram, Twitter

Some small details helps the representation of the Dashboard:

include Favicon for Browser-Icon
Adapt Telegram link post
Adapt Twitter link post

images must be transferred to correct url
(can also be done after launch of dashboard)


SW-3545 Database schema for observations

Define a set of tables to hold data about observations and their results.
This should include all the raw data required to support the tracking v2
mobile and desktop UI designs.
No application code uses these tables yet.

Current dependencies on/for this PR:

main

PR #1122   👈

This comment was auto-generated by Graphite.


EDC - Bi-directional transfers for Metadata (i.e. Feedback Channel)

As a Dataspace Participant consuming data from a data provider, I want to have a possibility to give feedback about the received data using the negotiated contract and its metadata.
Upstream EDC Some data sharing scenarios require both the provider and consumer to supply transfer metadata. Support the ability to exchange transfer metadata in a full-duplex fashion.

[ ] Concept/Idea for "a Back Channel" has been created.

Initial creator: @jimmarino

Was presented in open planning ⇾ contributors and committer are involved.

Hello @stefan-ettl , @jimmarino , @lgblaumeiser
Since the feature is a 24.08 feature and the development phase is coming to an end, we need a status on the feature.

[ ] Currently you are assigned (Responsible) → Is this correct? If not, please assign the correct contact person
[ ] Please check whether the status (backlog, work in progress ...) is set correctly
[ ] Please check whether there is an assignment to a committee or expert group (supported-by) to be found on the board
[ ] Please comment on the current status of the feature
[ ] Are all SubTasks (issues from other repositories that deal with the feature) linked? → The easiest way is to mention the feature here in the issue (via the ID) so we can see which teams/repositories are involved.

If you need any clarification, please get in touch, thank you very much.
Stephan

@stephanbcbauer , this issue is not on the supported-by board mentioned above, I have not found any reason, why not, can you please have a check?

2024-06-11

[x]  Currently you are assigned (Responsible) → Is this correct? If not, please assign the correct contact person
[x]  Please check whether the status (backlog, work in progress ...) is set correctly
[ ]  Please check whether there is an assignment to a committee or expert group (supported-by) to be found on the board
[x]  Please comment on the current status of the feature:
About to be started, as it is a concept, providing the result is not test relevant for the release
[x]  Are all SubTasks (issues from other repositories that deal with the feature) linked? → The easiest way is to mention the feature here in the issue (via the ID) so we can see which teams/repositories are involved.

Concept document will be ready with the Catena-X release

Duplicate of https://github.com/eclipse-tractusx/sig-release/issues/936


Upgrade ExternalEntity to v1alpha2 and controlplane API to v1beta2

This is the first PR exclusive to the api-change-controlplane-v1beta2 branch. All subsequent PRs that intend to update API types from controlplane.v1beta1 to controlplane.v1beta2 should be opened against this branch first, and eventually will be merged into master before v0.11 release.
This PR contains the following:

Updates ExternalEntity CRD to v1alpha2. The NamedPorts specified in ExternalEntity.Ports will now be associated with all Endpoints.

type ExternalEntitySpec struct {
        Endpoints []Endpoint
+       Ports []NamedPort
        ExternalNode string
}
type Endpoint struct {
        IP string
        Name string
-       Ports []NamedPort
}

Updates controlplane API to v1beta1. The type change relative to this PR is GroupMember struct, which is changed to the following format:

type GroupMember struct {
	Pod *PodReference
	ExternalEntity *ExternalEntityReference
	IPs []IPAddress
	Ports []NamedPort
}

Move the ExternalEntity related logic from controller/networkpolicy/networkpolicy_controller.go to controller/networkpolicy/external_entity.go
addExternalEntity/updateExternalEntity/deleteExternalEntity functions handles v1alpha2 ExternalEntity.
Add conversion functions between v1beta1.GroupMember to controlplane.GroupMember.
Registers v1beta2.controlplane.antrea.tanzu.vmware.com in ca_cert_controller.go and apiserver.go, as well as creating the new APIService.

/test-all

/test-all

/test-all

Codecov Report

Merging #1405 into api-change-controlplane-v1beta2 will decrease coverage by 22.42%.
The diff coverage is 58.98%.

@@                         Coverage Diff                          @@
##           api-change-controlplane-v1beta2    #1405       +/-   ##
====================================================================
- Coverage                            64.44%   42.02%   -22.43%
====================================================================
  Files                                  159       90       -69
  Lines                                12681    10428     -2253
====================================================================
- Hits                                  8172     4382     -3790
- Misses                                3651     5658     +2007
+ Partials                               858      388      -470

Flag
Coverage Δ

#integration-tests
?

#kind-e2e-tests
?

#unit-tests
42.02% <58.98%> (-0.03%)
:arrow_down:

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

Impacted Files
Coverage Δ

pkg/agent/cniserver/server.go
49.14% <0.00%> (-19.12%)
:arrow_down:

pkg/agent/openflow/client.go
9.28% <ø> (-41.08%)
:arrow_down:

pkg/antctl/antctl.go
100.00% <ø> (ø)

pkg/antctl/command_definition.go
41.96% <0.00%> (ø)

pkg/apis/controlplane/helper.go
0.00% <0.00%> (ø)

pkg/apis/controlplane/sets.go
0.00% <0.00%> (-15.39%)
:arrow_down:

pkg/apis/controlplane/v1beta1/register.go
0.00% <ø> (-92.86%)
:arrow_down:

pkg/apiserver/certificate/cacert_controller.go
12.76% <ø> (-43.62%)
:arrow_down:

pkg/ovs/openflow/ofctrl_builder.go
24.25% <0.00%> (-51.58%)
:arrow_down:

pkg/util/ip/ip.go
66.66% <0.00%> (-12.97%)
:arrow_down:

... and 134 more

/test-all

/test-all

LGTM if you can confirm "pkg/controller/networkpolicy/external_entity.go" is a simply code move without any code change.

Confirming that it is merely a code move.


skeleton-webpack is broken under Windows (incorrect paths)

So more bugs:
node ./config/select-language && ./node_modules/.bin/typings install

Is wrong, I guess this is correct version:
node ./config/select-language && node ./node_modules/.bin/typings install

But it's throwing this error:
\node_modules\.bin\typings:4
case `uname` in
^^^^

SyntaxError: Unexpected token case
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

After manually running typings install and npm dedupe, I can see in browser:
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/compose'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/if'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/with'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/repeat'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/show'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/hide'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/replaceable'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/sanitize-html'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/focus'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/compile-spy'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/view-spy'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/binding-mode-behaviors'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/throttle-binding-behavior'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/debounce-binding-behavior'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/signal-binding-behavior'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-resources/update-trigger-binding-behavior'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-router/router-view'.(…)
.*$?2ee5:28Uncaught (in promise) Error: Cannot find module './aurelia-templating-router/route-href'.(…)

This is an issue on Windows. I am not experiencing any issues on OS X. Definitely some weird OS issues going on, probably with paths.

Seems like moduleRootOverride from packages.json does not kick in. And webpack is looking for modules in the root folder of the module

It does appear to be a pathing issue caused by the moduleRootOverride not putting together the right path in Windows.
When I build, here's a part of the console output:
[..\package.json] wants to require "aurelia-templating-resources/compose", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/if", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/with", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/repeat", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/show", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/hide", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/replaceable", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/sanitize-html", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/focus", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/compile-spy", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/view-spy", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/binding-mode-behaviors", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/throttle-binding-behavior", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/debounce-binding-behavior", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/signal-binding-behavior", which does not exist. [..\package.json] wants to require "aurelia-templating-resources/update-trigger-binding-behavior", which does not exist. [..\package.json] wants to require "aurelia-templating-router/router-view", which does not exist. [..\package.json] wants to require "aurelia-templating-router/route-loader", which does not exist. [..\package.json] wants to require "aurelia-templating-router/route-href", which does not exist.

As a temporary solution, you can change your package.json to:
"aurelia-webpack-plugin": "1.0.0-beta.1.0.4",
Then run npm install again

@fabioluz That gets the Skeleton working again on Windows. There is one thing I am noticing and that is the Bootstrap include for the CSS is not working inside of app.html <require from="bootstrap/dist/css/bootstrap.css"></require> the fix is to move this import into the index.js or even app.ts file.

@Vheissu That's because the old plugin (beta.1.0.4) didn't do any static analysis of templates (.html). Includes from within templates will work once webpack-plugin's path resolution under Windows is fixed. I'll get on that soon.

For people who searching solution.
So the simple solution for now is
In your package.json change from:
  "aurelia": {
    "build": {
      "resources": [
        {
          "path": "users",
          "bundle": "users",
          "lazy": true
        },
        "aurelia-templating-resources/compose",
        "aurelia-templating-resources/if",
        "aurelia-templating-resources/with",
        "aurelia-templating-resources/repeat",
        "aurelia-templating-resources/show",
        "aurelia-templating-resources/hide",
        "aurelia-templating-resources/replaceable",
        "aurelia-templating-resources/sanitize-html",
        "aurelia-templating-resources/focus",
        "aurelia-templating-resources/compile-spy",
        "aurelia-templating-resources/view-spy",
        "aurelia-templating-resources/binding-mode-behaviors",
        "aurelia-templating-resources/throttle-binding-behavior",
        "aurelia-templating-resources/debounce-binding-behavior",
        "aurelia-templating-resources/signal-binding-behavior",
        "aurelia-templating-resources/update-trigger-binding-behavior",
        "aurelia-templating-router/router-view",
        "aurelia-templating-router/route-loader",
        "aurelia-templating-router/route-href",
        "aurelia-framework",
        "aurelia-logging-console",
        "aurelia-templating-binding",
        "aurelia-templating-resources",
        "aurelia-templating-router",
        "aurelia-history-browser",
        "aurelia-event-aggregator"
      ],
      "moduleRootOverride": {
        "aurelia-templating-resources": "dist/es2015",
        "aurelia-templating-router": "dist/es2015"
      }
    }
  },

To:
    "aurelia": {
    "build": {
      "resources": [
        {
          "path": "users",
          "bundle": "users",
          "lazy": true
        },
        "aurelia-templating-resources/dist/es2015/compose",
        "aurelia-templating-resources/dist/es2015/if",
        "aurelia-templating-resources/dist/es2015/with",
        "aurelia-templating-resources/dist/es2015/repeat",
        "aurelia-templating-resources/dist/es2015/show",
        "aurelia-templating-resources/dist/es2015/hide",
        "aurelia-templating-resources/dist/es2015/replaceable",
        "aurelia-templating-resources/dist/es2015/sanitize-html",
        "aurelia-templating-resources/dist/es2015/focus",
        "aurelia-templating-resources/dist/es2015/compile-spy",
        "aurelia-templating-resources/dist/es2015/view-spy",
        "aurelia-templating-resources/dist/es2015/binding-mode-behaviors",
        "aurelia-templating-resources/dist/es2015/throttle-binding-behavior",
        "aurelia-templating-resources/dist/es2015/debounce-binding-behavior",
        "aurelia-templating-resources/dist/es2015/signal-binding-behavior",
        "aurelia-templating-resources/dist/es2015/update-trigger-binding-behavior",
        "aurelia-templating-router/dist/es2015/router-view",
        "aurelia-templating-router/dist/es2015/route-loader",
        "aurelia-templating-router/dist/es2015/route-href",
        "aurelia-framework",
        "aurelia-logging-console",
        "aurelia-templating-binding",
        "aurelia-templating-resources",
        "aurelia-templating-router",
        "aurelia-history-browser",
        "aurelia-event-aggregator"
      ],
      "moduleRootOverride": {
        "aurelia-templating-resources": "dist/es2015",
        "aurelia-templating-router": "dist/es2015"
      }
    }
  }

PS: @niieani once again, if it work on Windows - it works everywhere.
Thanks.

@mr47 This indeed temporarily fixes the issue. Thank you for sharing.

I applied mr47's recommendation but the app still did not work. The console showed an error that "aurelia-bootstrapper-webpack" cannot be loaded. I tried to manually add an "index.js" file into the folder "node_modules\aurelia-bootstrapper-webpack\disk\es2015" => the app now works.
I cannot understand why Aurelia team makes everything become complicated like this. The older version of skeleton-webpack was much cleaner, much simpler, much easier.
index.js
export * from './aurelia-bootstrapper-webpack';

Can someone explain why we now need a resources section in packages.json?
What is it that's changing to require this, and what are the implications of not adding all of these configuration lines in the file?
what was it that people were having issues with using the old configuration? I can believe that it may need updating, but telling people to "copy these blocks out of this PR" doesn't help them when they try to add a module not in that PR, and it seems to me that the current flurry of typings and package changes has made things significantly worse

@jsobell In fact, things are much better now -- there will be a blog post explaining changes soon. Default skeleton-navigation configuration probably won't need a resources section once we migrate default resources to aurelia-framework.
They are used to specify which packages should be available for dynamic loading by the dependency injection -- i.e. you need to specify them when loading aurelia plugins or globally available resources, such as ValueConverters or BindingBehaviors. Additionally, you can specify which such resources should be lazy-loaded (on-demand) and/or separated out to their own .js files. Nothing less, nothing more.

@jsobell to answer your other question:

what was it that people were having issues with using the old configuration?

To list only a few issues:

https://github.com/aurelia/webpack-plugin/issues/8
https://github.com/aurelia/webpack-plugin/issues/11

Discussion: https://github.com/aurelia/webpack-plugin/pull/26

@niieani Is this version officially released (I did not see a blog post about it) or are you still working through these windows issues? I was just checking the skeleton and noticed a very significant change. Installed on my Windows machine and ran into problems right away (which led me to this thread). I would like to possibly migrate over to this new structure but don't want to have to work through and around all the issues in the thread (also would be nice to see a blogpost explaining the new project structure to help guide migration). That said, looks like the issues above are fixed which is great (I know they were kind of the skeletons in the webpack skeleton's closet).

@istrau3 no blog post = no official release :) Soon though. I'm plowing through the Windows bugs now.

Fixed in https://github.com/aurelia/skeleton-navigation/commit/e7d9e40921befc417793dc10e4a479ff903ed635 and https://github.com/aurelia/webpack-plugin/commit/425a3d61489218a8e56ae73595b826b730232678 .
Windows should be working after npm updating webpack-plugin (please also note the changes to the skeleton's package.json that fix certain Windows bugs in the npm scripts).
The new skeleton should work once these are merged:

aurelia/bootstrapper-webpack#7
aurelia/templating-resources#231
aurelia/templating-router#27

Can someone help me on this?
https://github.com/aurelia/skeleton-navigation/issues/814


fix dead link

the link to https://developer.chrome.com/docs/devtools/recorder/reference/#export-flows was not working

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