Error creating model with pre-trained weights

Hi,
I have some problems during creating the model with the pretrained weights as follow :
when I copy and paste the "Example of Use" without any change , firstly I got this error that the "model_hyparams" is not defined.
then I defined it as model_hyparams= dict( ) , and it continued.
however, after reaching the "model.load_weights('EEGSym_pretrained_weights_{}_electrode.h5'.format(ncha))"
I got this error:
---------------------------------------------------------------------------

ValueError                                Traceback (most recent call last)

[<ipython-input-5-5786c8fa12e0>](https://localhost:8080/#) in <module>
     50 # Load pre-trained weight values
     51 if pretrained:
---> 52     model.load_weights('EEGSym_pretrained_weights_{}_electrode.h5'.format(ncha))
     53
     54 # Early stopping

2 frames

<__array_function__ internals> in transpose(*args, **kwargs)

[/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py](https://localhost:8080/#) in _wrapfunc(obj, method, *args, **kwds)
     55
     56     try:
---> 57         return bound(*args, **kwds)
     58     except TypeError:
     59         # A TypeError occurs if the object does have such a method in its

ValueError: axes don't match array

how can I fix this ?
another question: " why in the model summary, I got the dimension of the model's Input_layer as a 4 with "None" in the axis=0, is that correct?
if it is correct, how can I make my x_train in this form ?
https://colab.research.google.com/drive/1b0LI54aT7p4sWQQ87EgDKEa0-8Hgts_9?usp=sharing
looking forward to hearing from you.
shamim.

Hello Shamim,
Thank you for your interest in the open implementation of EEGSym. I am sorry for the error that you have encountered, I have updated the repository and now the code should not show you errors.
I have just updated it, solving the problem that you were getting and others that I found. The new code you can also creates a random signal and tests the whole process with pretrained weights for fine-tuning.
I have updated the requirements and tested the code for python==3.10.
I am sorry for the late response.
Can you confirm that there are no further issues?
Kind regards,
Sergio Pérez-Velasco

Hi Serpeve,
thank you for your response and also the update of the code. I will check them today and get back to you for confirmation about the fixed errors.
can you give me a direct email so I can contact you for further questions as well?
here is my email<EMAIL_ADDRESS>best regards,
shamim

I have checked the new example code presented in the README.md file available. and here is the results:
Model: "model"
__________________________________________________________________________________________________
 Layer (type)                   Output Shape         Param #     Connected to
==================================================================================================
 input_1 (InputLayer)           [(None, 384, 16, 1)  0           []
                                ]

 tf.expand_dims (TFOpLambda)    (None, 1, 384, 16,   0           ['input_1[0][0]']
                                1)

 tf.compat.v1.gather (TFOpLambd  (None, 1, 384, 7, 1  0          ['tf.expand_dims[0][0]']
 a)                             )

 tf.compat.v1.gather_2 (TFOpLam  (None, 1, 384, 2, 1  0          ['tf.expand_dims[0][0]']
 bda)                           )

 tf.compat.v1.gather_1 (TFOpLam  (None, 1, 384, 7, 1  0          ['tf.expand_dims[0][0]']
 bda)                           )

 concatenate (Concatenate)      (None, 1, 384, 9, 1  0           ['tf.compat.v1.gather[0][0]',
                                )                                 'tf.compat.v1.gather_2[0][0]']

 concatenate_1 (Concatenate)    (None, 1, 384, 9, 1  0           ['tf.compat.v1.gather_1[0][0]',
                                )                                 'tf.compat.v1.gather_2[0][0]']

 concatenate_2 (Concatenate)    (None, 2, 384, 9, 1  0           ['concatenate[0][0]',
                                )                                 'concatenate_1[0][0]']

 conv3d (Conv3D)                (None, 2, 384, 9, 2  408         ['concatenate_2[0][0]']
                                4)

 conv3d_1 (Conv3D)              (None, 2, 384, 9, 2  792         ['concatenate_2[0][0]']
                                4)

 conv3d_2 (Conv3D)              (None, 2, 384, 9, 2  1560        ['concatenate_2[0][0]']
                                4)

 batch_normalization (BatchNorm  (None, 2, 384, 9, 2  96         ['conv3d[0][0]']
 alization)                     4)

 batch_normalization_1 (BatchNo  (None, 2, 384, 9, 2  96         ['conv3d_1[0][0]']
 rmalization)                   4)

 batch_normalization_2 (BatchNo  (None, 2, 384, 9, 2  96         ['conv3d_2[0][0]']
 rmalization)                   4)

 activation (Activation)        (None, 2, 384, 9, 2  0           ['batch_normalization[0][0]']
                                4)

 activation_1 (Activation)      (None, 2, 384, 9, 2  0           ['batch_normalization_1[0][0]']
                                4)

 activation_2 (Activation)      (None, 2, 384, 9, 2  0           ['batch_normalization_2[0][0]']
                                4)

 dropout (Dropout)              (None, 2, 384, 9, 2  0           ['activation[0][0]']
                                4)

 dropout_1 (Dropout)            (None, 2, 384, 9, 2  0           ['activation_1[0][0]']
                                4)

 dropout_2 (Dropout)            (None, 2, 384, 9, 2  0           ['activation_2[0][0]']
                                4)

 concatenate_3 (Concatenate)    (None, 2, 384, 9, 7  0           ['dropout[0][0]',
                                2)                                'dropout_1[0][0]',
                                                                  'dropout_2[0][0]']

 add (Add)                      (None, 2, 384, 9, 7  0           ['concatenate_3[0][0]',
                                2)                                'concatenate_2[0][0]']

 average_pooling3d (AveragePool  (None, 2, 192, 9, 7  0          ['add[0][0]']
 ing3D)                         2)

 conv3d_3 (Conv3D)              (None, 2, 192, 1, 7  648         ['average_pooling3d[0][0]']
                                2)

 batch_normalization_3 (BatchNo  (None, 2, 192, 1, 7  288        ['conv3d_3[0][0]']
 rmalization)                   2)

 activation_3 (Activation)      (None, 2, 192, 1, 7  0           ['batch_normalization_3[0][0]']
                                2)

 dropout_3 (Dropout)            (None, 2, 192, 1, 7  0           ['activation_3[0][0]']
                                2)

 add_1 (Add)                    (None, 2, 192, 9, 7  0           ['average_pooling3d[0][0]',
                                2)                                'dropout_3[0][0]']

 conv3d_6 (Conv3D)              (None, 2, 192, 9, 2  6936        ['add_1[0][0]']
                                4)

 conv3d_7 (Conv3D)              (None, 2, 192, 9, 2  13848       ['add_1[0][0]']
                                4)

 conv3d_8 (Conv3D)              (None, 2, 192, 9, 2  27672       ['add_1[0][0]']
                                4)

 batch_normalization_6 (BatchNo  (None, 2, 192, 9, 2  96         ['conv3d_6[0][0]']
 rmalization)                   4)

 batch_normalization_7 (BatchNo  (None, 2, 192, 9, 2  96         ['conv3d_7[0][0]']
 rmalization)                   4)

 batch_normalization_8 (BatchNo  (None, 2, 192, 9, 2  96         ['conv3d_8[0][0]']
 rmalization)                   4)

 activation_4 (Activation)      (None, 2, 192, 9, 2  0           ['batch_normalization_6[0][0]']
                                4)

 activation_5 (Activation)      (None, 2, 192, 9, 2  0           ['batch_normalization_7[0][0]']
                                4)

 activation_6 (Activation)      (None, 2, 192, 9, 2  0           ['batch_normalization_8[0][0]']
                                4)

 dropout_4 (Dropout)            (None, 2, 192, 9, 2  0           ['activation_4[0][0]']
                                4)

 dropout_5 (Dropout)            (None, 2, 192, 9, 2  0           ['activation_5[0][0]']
                                4)

 dropout_6 (Dropout)            (None, 2, 192, 9, 2  0           ['activation_6[0][0]']
                                4)

 concatenate_4 (Concatenate)    (None, 2, 192, 9, 7  0           ['dropout_4[0][0]',
                                2)                                'dropout_5[0][0]',
                                                                  'dropout_6[0][0]']

 add_2 (Add)                    (None, 2, 192, 9, 7  0           ['concatenate_4[0][0]',
                                2)                                'add_1[0][0]']

 average_pooling3d_1 (AveragePo  (None, 2, 96, 9, 72  0          ['add_2[0][0]']
 oling3D)                       )

 conv3d_9 (Conv3D)              (None, 2, 96, 1, 72  648         ['average_pooling3d_1[0][0]']
                                )

 batch_normalization_9 (BatchNo  (None, 2, 96, 1, 72  288        ['conv3d_9[0][0]']
 rmalization)                   )

 activation_7 (Activation)      (None, 2, 96, 1, 72  0           ['batch_normalization_9[0][0]']
                                )

 dropout_7 (Dropout)            (None, 2, 96, 1, 72  0           ['activation_7[0][0]']
                                )

 add_3 (Add)                    (None, 2, 96, 9, 72  0           ['average_pooling3d_1[0][0]',
                                )                                 'dropout_7[0][0]']

 conv3d_12 (Conv3D)             (None, 2, 96, 9, 36  41508       ['add_3[0][0]']
                                )

 conv3d_15 (Conv3D)             (None, 2, 96, 9, 36  2592        ['add_3[0][0]']
                                )

 batch_normalization_12 (BatchN  (None, 2, 96, 9, 36  144        ['conv3d_12[0][0]']
 ormalization)                  )

 batch_normalization_15 (BatchN  (None, 2, 96, 9, 36  144        ['conv3d_15[0][0]']
 ormalization)                  )

 activation_8 (Activation)      (None, 2, 96, 9, 36  0           ['batch_normalization_12[0][0]']
                                )

 activation_9 (Activation)      (None, 2, 96, 9, 36  0           ['batch_normalization_15[0][0]']
                                )

 dropout_8 (Dropout)            (None, 2, 96, 9, 36  0           ['activation_8[0][0]']
                                )

 dropout_9 (Dropout)            (None, 2, 96, 9, 36  0           ['activation_9[0][0]']
                                )

 add_4 (Add)                    (None, 2, 96, 9, 36  0           ['dropout_8[0][0]',
                                )                                 'dropout_9[0][0]']

 average_pooling3d_2 (AveragePo  (None, 2, 48, 9, 36  0          ['add_4[0][0]']
 oling3D)                       )

 conv3d_14 (Conv3D)             (None, 2, 48, 1, 36  11664       ['average_pooling3d_2[0][0]']
                                )

 batch_normalization_14 (BatchN  (None, 2, 48, 1, 36  144        ['conv3d_14[0][0]']
 ormalization)                  )

 activation_10 (Activation)     (None, 2, 48, 1, 36  0           ['batch_normalization_14[0][0]']
                                )

 dropout_10 (Dropout)           (None, 2, 48, 1, 36  0           ['activation_10[0][0]']
                                )

 add_5 (Add)                    (None, 2, 48, 9, 36  0           ['average_pooling3d_2[0][0]',
                                )                                 'dropout_10[0][0]']

 conv3d_16 (Conv3D)             (None, 2, 48, 9, 36  10404       ['add_5[0][0]']
                                )

 conv3d_19 (Conv3D)             (None, 2, 48, 9, 36  1296        ['add_5[0][0]']
                                )

 batch_normalization_16 (BatchN  (None, 2, 48, 9, 36  144        ['conv3d_16[0][0]']
 ormalization)                  )

 batch_normalization_19 (BatchN  (None, 2, 48, 9, 36  144        ['conv3d_19[0][0]']
 ormalization)                  )

 activation_11 (Activation)     (None, 2, 48, 9, 36  0           ['batch_normalization_16[0][0]']
                                )

 activation_12 (Activation)     (None, 2, 48, 9, 36  0           ['batch_normalization_19[0][0]']
                                )

 dropout_11 (Dropout)           (None, 2, 48, 9, 36  0           ['activation_11[0][0]']
                                )

 dropout_12 (Dropout)           (None, 2, 48, 9, 36  0           ['activation_12[0][0]']
                                )

 add_6 (Add)                    (None, 2, 48, 9, 36  0           ['dropout_11[0][0]',
                                )                                 'dropout_12[0][0]']

 average_pooling3d_3 (AveragePo  (None, 2, 24, 9, 36  0          ['add_6[0][0]']
 oling3D)                       )

 conv3d_18 (Conv3D)             (None, 2, 24, 1, 36  11664       ['average_pooling3d_3[0][0]']
                                )

 batch_normalization_18 (BatchN  (None, 2, 24, 1, 36  144        ['conv3d_18[0][0]']
 ormalization)                  )

 activation_13 (Activation)     (None, 2, 24, 1, 36  0           ['batch_normalization_18[0][0]']
                                )

 dropout_13 (Dropout)           (None, 2, 24, 1, 36  0           ['activation_13[0][0]']
                                )

 add_7 (Add)                    (None, 2, 24, 9, 36  0           ['average_pooling3d_3[0][0]',
                                )                                 'dropout_13[0][0]']

 conv3d_20 (Conv3D)             (None, 2, 24, 9, 18  2610        ['add_7[0][0]']
                                )

 conv3d_23 (Conv3D)             (None, 2, 24, 9, 18  648         ['add_7[0][0]']
                                )

 batch_normalization_20 (BatchN  (None, 2, 24, 9, 18  72         ['conv3d_20[0][0]']
 ormalization)                  )

 batch_normalization_23 (BatchN  (None, 2, 24, 9, 18  72         ['conv3d_23[0][0]']
 ormalization)                  )

 activation_14 (Activation)     (None, 2, 24, 9, 18  0           ['batch_normalization_20[0][0]']
                                )

 activation_15 (Activation)     (None, 2, 24, 9, 18  0           ['batch_normalization_23[0][0]']
                                )

 dropout_14 (Dropout)           (None, 2, 24, 9, 18  0           ['activation_14[0][0]']
                                )

 dropout_15 (Dropout)           (None, 2, 24, 9, 18  0           ['activation_15[0][0]']
                                )

```add_8 (Add)                    (None, 2, 24, 9, 18  0           ['dropout_14[0][0]',
                                )                                 'dropout_15[0][0]']

 average_pooling3d_4 (AveragePo  (None, 2, 12, 9, 18  0          ['add_8[0][0]']
 oling3D)                       )

 conv3d_22 (Conv3D)             (None, 2, 12, 1, 18  2916        ['average_pooling3d_4[0][0]']
                                )

 batch_normalization_22 (BatchN  (None, 2, 12, 1, 18  72         ['conv3d_22[0][0]']
 ormalization)                  )

 activation_16 (Activation)     (None, 2, 12, 1, 18  0           ['batch_normalization_22[0][0]']
                                )

 dropout_16 (Dropout)           (None, 2, 12, 1, 18  0           ['activation_16[0][0]']
                                )

 add_9 (Add)                    (None, 2, 12, 9, 18  0           ['average_pooling3d_4[0][0]',
                                )                                 'dropout_16[0][0]']

 conv3d_24 (Conv3D)             (None, 2, 12, 9, 18  1296        ['add_9[0][0]']
                                )

 batch_normalization_24 (BatchN  (None, 2, 12, 9, 18  72         ['conv3d_24[0][0]']
 ormalization)                  )

 activation_17 (Activation)     (None, 2, 12, 9, 18  0           ['batch_normalization_24[0][0]']
                                )

 dropout_17 (Dropout)           (None, 2, 12, 9, 18  0           ['activation_17[0][0]']
                                )

 add_10 (Add)                   (None, 2, 12, 9, 18  0           ['add_9[0][0]',
                                )                                 'dropout_17[0][0]']

 average_pooling3d_5 (AveragePo  (None, 2, 6, 9, 18)  0          ['add_10[0][0]']
 oling3D)

 conv3d_25 (Conv3D)             (None, 1, 6, 1, 18)  5832        ['average_pooling3d_5[0][0]']

 batch_normalization_25 (BatchN  (None, 1, 6, 1, 18)  72         ['conv3d_25[0][0]']
 ormalization)

 activation_18 (Activation)     (None, 1, 6, 1, 18)  0           ['batch_normalization_25[0][0]']

 dropout_18 (Dropout)           (None, 1, 6, 1, 18)  0           ['activation_18[0][0]']

 add_11 (Add)                   (None, 2, 6, 9, 18)  0           ['average_pooling3d_5[0][0]',
                                                                  'dropout_18[0][0]']

 conv3d_26 (Conv3D)             (None, 1, 6, 1, 18)  5832        ['add_11[0][0]']

 batch_normalization_26 (BatchN  (None, 1, 6, 1, 18)  72         ['conv3d_26[0][0]']
 ormalization)

 activation_19 (Activation)     (None, 1, 6, 1, 18)  0           ['batch_normalization_26[0][0]']

 dropout_19 (Dropout)           (None, 1, 6, 1, 18)  0           ['activation_19[0][0]']

 add_12 (Add)                   (None, 2, 6, 9, 18)  0           ['add_11[0][0]',
                                                                  'dropout_19[0][0]']

 conv3d_27 (Conv3D)             (None, 1, 6, 1, 18)  648         ['add_12[0][0]']

 batch_normalization_27 (BatchN  (None, 1, 6, 1, 18)  72         ['conv3d_27[0][0]']
 ormalization)

 activation_20 (Activation)     (None, 1, 6, 1, 18)  0           ['batch_normalization_27[0][0]']

 dropout_20 (Dropout)           (None, 1, 6, 1, 18)  0           ['activation_20[0][0]']

 conv3d_28 (Conv3D)             (None, 1, 1, 1, 18)  1944        ['dropout_20[0][0]']

 batch_normalization_28 (BatchN  (None, 1, 1, 1, 18)  72         ['conv3d_28[0][0]']
 ormalization)

 activation_21 (Activation)     (None, 1, 1, 1, 18)  0           ['batch_normalization_28[0][0]']

 dropout_21 (Dropout)           (None, 1, 1, 1, 18)  0           ['activation_21[0][0]']

 add_13 (Add)                   (None, 1, 6, 1, 18)  0           ['dropout_20[0][0]',
                                                                  'dropout_21[0][0]']

 conv3d_29 (Conv3D)             (None, 1, 1, 1, 36)  216         ['add_13[0][0]']

 batch_normalization_29 (BatchN  (None, 1, 1, 1, 36)  144        ['conv3d_29[0][0]']
 ormalization)

 activation_22 (Activation)     (None, 1, 1, 1, 36)  0           ['batch_normalization_29[0][0]']

 dropout_22 (Dropout)           (None, 1, 1, 1, 36)  0           ['activation_22[0][0]']

 conv3d_30 (Conv3D)             (None, 1, 1, 1, 36)  1296        ['dropout_22[0][0]']

 batch_normalization_30 (BatchN  (None, 1, 1, 1, 36)  144        ['conv3d_30[0][0]']
 ormalization)

 activation_23 (Activation)     (None, 1, 1, 1, 36)  0           ['batch_normalization_30[0][0]']

 dropout_23 (Dropout)           (None, 1, 1, 1, 36)  0           ['activation_23[0][0]']

 add_14 (Add)                   (None, 1, 1, 1, 36)  0           ['dropout_22[0][0]',
                                                                  'dropout_23[0][0]']

 conv3d_31 (Conv3D)             (None, 1, 1, 1, 36)  1296        ['add_14[0][0]']

 batch_normalization_31 (BatchN  (None, 1, 1, 1, 36)  144        ['conv3d_31[0][0]']
 ormalization)

 activation_24 (Activation)     (None, 1, 1, 1, 36)  0           ['batch_normalization_31[0][0]']

 dropout_24 (Dropout)           (None, 1, 1, 1, 36)  0           ['activation_24[0][0]']

 add_15 (Add)                   (None, 1, 1, 1, 36)  0           ['add_14[0][0]',
                                                                  'dropout_24[0][0]']

 conv3d_32 (Conv3D)             (None, 1, 1, 1, 36)  1296        ['add_15[0][0]']

 batch_normalization_32 (BatchN  (None, 1, 1, 1, 36)  144        ['conv3d_32[0][0]']
 ormalization)

 activation_25 (Activation)     (None, 1, 1, 1, 36)  0           ['batch_normalization_32[0][0]']

 dropout_25 (Dropout)           (None, 1, 1, 1, 36)  0           ['activation_25[0][0]']

 add_16 (Add)                   (None, 1, 1, 1, 36)  0           ['add_15[0][0]',
                                                                  'dropout_25[0][0]']

 conv3d_33 (Conv3D)             (None, 1, 1, 1, 36)  1296        ['add_16[0][0]']

 batch_normalization_33 (BatchN  (None, 1, 1, 1, 36)  144        ['conv3d_33[0][0]']
 ormalization)

 activation_26 (Activation)     (None, 1, 1, 1, 36)  0           ['batch_normalization_33[0][0]']

 dropout_26 (Dropout)           (None, 1, 1, 1, 36)  0           ['activation_26[0][0]']

 add_17 (Add)                   (None, 1, 1, 1, 36)  0           ['add_16[0][0]',
                                                                  'dropout_26[0][0]']

 flatten (Flatten)              (None, 36)           0           ['add_17[0][0]']

 dense (Dense)                  (None, 2)            74          ['flatten[0][0]']

==================================================================================================
Total params: 162,152
Trainable params: 160,496
Non-trainable params: 1,656
__________________________________________________________________________________________________
Epoch 1/500
18/18 [==============================] - 204s 11s/step - loss: 1.6567 - accuracy: 0.5083 - val_loss: 0.7143 - val_accuracy: 0.4550
Epoch 2/500
18/18 [==============================] - 190s 10s/step - loss: 1.6622 - accuracy: 0.4833 - val_loss: 0.7552 - val_accuracy: 0.5000
Epoch 3/500
18/18 [==============================] - 189s 10s/step - loss: 1.6357 - accuracy: 0.4783 - val_loss: 0.8154 - val_accuracy: 0.5100
Epoch 4/500
18/18 [==============================] - 187s 10s/step - loss: 1.5270 - accuracy: 0.5050 - val_loss: 0.8799 - val_accuracy: 0.5250
Epoch 5/500
18/18 [==============================] - 185s 10s/step - loss: 1.4210 - accuracy: 0.5000 - val_loss: 0.9373 - val_accuracy: 0.5200
Epoch 6/500
18/18 [==============================] - 183s 10s/step - loss: 1.4004 - accuracy: 0.4967 - val_loss: 0.9849 - val_accuracy: 0.5250
Epoch 7/500
18/18 [==============================] - 181s 10s/step - loss: 1.3900 - accuracy: 0.4883 - val_loss: 1.0248 - val_accuracy: 0.5250
Epoch 8/500
18/18 [==============================] - 177s 9s/step - loss: 1.3331 - accuracy: 0.4850 - val_loss: 1.0522 - val_accuracy: 0.5200
Epoch 9/500
18/18 [==============================] - 176s 9s/step - loss: 1.3708 - accuracy: 0.4733 - val_loss: 1.0724 - val_accuracy: 0.5150
Epoch 10/500
18/18 [==============================] - 176s 9s/step - loss: 1.2359 - accuracy: 0.4883 - val_loss: 1.0799 - val_accuracy: 0.5050
Epoch 11/500
18/18 [==============================] - 175s 9s/step - loss: 1.2221 - accuracy: 0.5000 - val_loss: 1.0771 - val_accuracy: 0.5050
Epoch 12/500
18/18 [==============================] - 174s 9s/step - loss: 1.0934 - accuracy: 0.5233 - val_loss: 1.0807 - val_accuracy: 0.5000
Epoch 13/500
18/18 [==============================] - 175s 9s/step - loss: 1.1810 - accuracy: 0.4900 - val_loss: 1.0726 - val_accuracy: 0.5000
Epoch 14/500
18/18 [==============================] - 175s 9s/step - loss: 1.1158 - accuracy: 0.5117 - val_loss: 1.0626 - val_accuracy: 0.5000
Epoch 15/500
18/18 [==============================] - 177s 9s/step - loss: 1.0876 - accuracy: 0.4967 - val_loss: 1.0460 - val_accuracy: 0.5000
Epoch 16/500
18/18 [==============================] - 176s 9s/step - loss: 0.9918 - accuracy: 0.5300 - val_loss: 1.0278 - val_accuracy: 0.5000
Epoch 17/500
18/18 [==============================] - 183s 10s/step - loss: 0.9795 - accuracy: 0.5250 - val_loss: 1.0102 - val_accuracy: 0.4950
Epoch 18/500
18/18 [==============================] - 186s 10s/step - loss: 0.9753 - accuracy: 0.5283 - val_loss: 0.9909 - val_accuracy: 0.4900
Epoch 19/500
18/18 [==============================] - 188s 10s/step - loss: 0.9106 - accuracy: 0.5283 - val_loss: 0.9738 - val_accuracy: 0.5050
Epoch 20/500
18/18 [==============================] - 193s 10s/step - loss: 0.9821 - accuracy: 0.5217 - val_loss: 0.9567 - val_accuracy: 0.4900
Epoch 21/500
18/18 [==============================] - 182s 10s/step - loss: 0.9361 - accuracy: 0.4883 - val_loss: 0.9362 - val_accuracy: 0.4900
Epoch 22/500
18/18 [==============================] - 183s 10s/step - loss: 0.9371 - accuracy: 0.5017 - val_loss: 0.9185 - val_accuracy: 0.4800
Epoch 23/500
18/18 [==============================] - 179s 10s/step - loss: 0.8806 - accuracy: 0.5133 - val_loss: 0.9018 - val_accuracy: 0.4800
Epoch 24/500
18/18 [==============================] - 177s 9s/step - loss: 0.8786 - accuracy: 0.4967 - val_loss: 0.8869 - val_accuracy: 0.4800
Epoch 25/500
18/18 [==============================] - 175s 9s/step - loss: 0.8668 - accuracy: 0.5033 - val_loss: 0.8689 - val_accuracy: 0.4850
Epoch 26/500
19/18 [==============================] - ETA: -2s - loss: 0.8193 - accuracy: 0.5233Restoring model weights from the end of the best epoch: 1.
18/18 [==============================] - 175s 9s/step - loss: 0.8193 - accuracy: 0.5233 - val_loss: 0.8558 - val_accuracy: 0.4900
Epoch 26: early stopping
7/7 [==============================] - 11s 2s/step

--------------------------------------------------------------------------------------------
so far it got no errors and this is the best it got and then `eary_stopping `worked.

I am training the model with a real small data set just now, I've removed the `callbacks=[early_stopping]` and reduced the `epochs `to 200 for faster results. dose it going to lower the expected accuracy you mentioned in the paper? because the other `hyperparameters ` are the same as you set them.

looking forward to hearing from you.
Best regards,
shamim.


Get current 3mf png does not work

I've deployed your container and all works very well but the "Get current 3mf png" (thumbnail of printing model).

If I'll open the missing image I receive of course the following message:

Link: /api/get_current_3mf_png
Is there something to fix on my site?
I've defined the following environment variables for the container:

BAMBU_HOSTNAME
BAMBU_ACCESS_CODE
PRINTER_SERIAL_NUMBER

I'm using a Bambu P1S on latest firmware release <IP_ADDRESS>.

This is likely one of two things.

I had a preprocessor bug related to "." characters in the filename not tied to the actual .gcode.3mf extension.  This is fixed in an up and coming build I'll be releasing in a day or two.
The .gcode.3mf file was not uploaded by BPM.  In this scenario BPM does not have a "cached" copy of the 3mf and therefore can't find it.  I haven't decided yet if I want to go through the trouble of syncing storage between the printer and container and suggest you always upload from BPM for now as this ensures both the printer and BPM get a copy of the archive.


Bug in removeTestStorageSnapshot.pl

"my" variable $filename masks earlier declaration in same scope at /usr/sap/HR1/HDB10/exe/removeTestStorageSnapshot.pl line 55.
"my" variable $sshCmd masks earlier declaration in same scope at /usr/sap/HR1/HDB10/exe/removeTestStorageSnapshot.pl line 56.
Global symbol "$LOG_CRIT" requires explicit package name at /usr/sap/HR1/HDB10/exe/removeTestStorageSnapshot.pl line 703.
Issues resolved by deleting lines 55 and 56
my $filename = "HANABackupCustomerDetails.txt";
my $sshCmd = '/usr/bin/ssh';
and adding line
my $LOG_CRIT=3;

Thanks.  Easy fixes.  Have updated removeTestStorageSnapshot.pl as per bug report.


Make it easier for new users to save untitled files

We notice that beginners often get tripped up when they launch VS Code for the first time and create their new file. They are not sure how to run their file, because they often don't realize they have to save their file and save it as a particular file extension to get language support. From @burkeholland's user test, one idea that came up was to include the options to Save an untitled file from the right-click tab menu. Thoughts on also adding an option to "Choose language" from the right-click menu which would open up the language mode quick pick?

I wonder though: for someone that does not know the concept of untitled vs files, would it help to see a "Save" entry in the context menu? Wouldn't that require to know this concept to begin with?
I find the idea of having a new type of editor that saves automatically (like a scrapbook kind of thing) more interesting imho, but maybe we should have a UX discussion about this.
//cc @misolori

I wonder though: for someone that does not know the concept of untitled vs files, would it help to see a "Save" entry in the context menu? Wouldn't that require to know this concept to begin with?
I find the idea of having a new type of editor that saves automatically (like a scrapbook kind of thing) more interesting imho, but maybe we should have a UX discussion about this.
//cc @misolori

@bpasero I think you bring up the core point - which is that what the user is really expecting is that the file is already saved for them. The fully abstracted file experience of phones has done this to our brains. I'm also interested in an experience where you can create a new file of a type and it just "is". And when you change it, it's just changed.
That said, when beginners do try and save files as eventually they will, it seems like they will head for a the context menu. My kid is still doing it even though I've taught him about File/Save.

@bpasero I think you bring up the core point - which is that what the user is really expecting is that the file is already saved for them. The fully abstracted file experience of phones has done this to our brains. I'm also interested in an experience where you can create a new file of a type and it just "is". And when you change it, it's just changed.
That said, when beginners do try and save files as eventually they will, it seems like they will head for a the context menu. My kid is still doing it even though I've taught him about File/Save.

Related scrapbook feature request from a while ago: https://github.com/microsoft/vscode/issues/44100

Related scrapbook feature request from a while ago: https://github.com/microsoft/vscode/issues/44100

I don't mind adding a save action in the context menu, though I'm not sure if that will help for those that don't know you can right-click on tabs. I like the idea of a scrapbook concept, kinda like saving everything to a "untitled" workspace that the user never has to manage (like codepen).
Another idea, what if we showed a codelens that asked the user to choose a language mode on empty untitled files? Then we could prompt a save afterwards:

I don't mind adding a save action in the context menu, though I'm not sure if that will help for those that don't know you can right-click on tabs. I like the idea of a scrapbook concept, kinda like saving everything to a "untitled" workspace that the user never has to manage (like codepen).
Another idea, what if we showed a codelens that asked the user to choose a language mode on empty untitled files? Then we could prompt a save afterwards:

Related scrapbook feature request from a while ago: #44100

I think having a temporarily saved "untitled" workspace would be greatly valuable, because I think many people expect that nowadays anyway. I compare this to the experience when creating a new file on Google Drive - when I create a blank Google Docs document, the file name is "untitled" until I've explicitly renamed it, but it is saved on my drive as "untitled" as well. We could save this for a duration of a session, and if the user adds code to this untitled file and tries to execute the code, then they will be prompted to save it because of https://github.com/microsoft/vscode/issues/111850.

I don't mind adding a save action in the context menu, though I'm not sure if that will help for those that don't know you can right-click on tabs. I like the idea of a scrapbook concept, kinda like saving everything to a "untitled" workspace that the user never has to manage (like codepen).
Another idea, what if we showed a codelens that asked the user to choose a language mode on empty untitled files? Then we could prompt a save afterwards:

It's a good point about new users not realizing you can right click on a tab, though I would say the action of right clicking a tab might be more likely for these users than them going to File -> Save or realizing the keyboard shortcut for saving a file, so it could still be a worthwhile option to add. Perhaps we can try this as an experiment? And see which options for saving an untitled file is most common. cc @digitarald.
I also really like the codelens for the untitled file @misolori ! It's a simple instruction that can offer a lot of guidance, without being too annoying. Repl.it has a similar flow. You are first asked what kind of repl to create (python, node.js, java, etc) and asked to name it, then presented with an empty tab with this codelens. When you click on "examples", it opens up a modal with sample snippets of code to insert.

Something like this in the editor to guide new users would be enormously helpful. Clicking on the "language" would open the language picker, and clicking on "save" could open the native save dialog.

I feel this issue is still in the process of being figured out and does not provide a clear solution yet, so switching owners. I think this needs a UX champion that figures out the best solution and needs more discussion in the UX calls.

@sana-ajani your original reasoning was:

We notice that beginners often get tripped up when they launch VS Code for the first time and create their new file. They are not sure how to run their file, because they often don't realize they have to save their file and save it as a particular file extension to get language support.

But didn't we just fix this for 1.53 (@isidorn):

I really think that is the right way to go because I think the intent of the user is to run a file, it is not necessarily to save it. Again, a new user may not understand the concept of a file or where to save it, so I like the fact that we just guide the user now whenever you try to run it.

To also write this down (since we discussed in UX):
Setting files.defaultLanguage should have a better default. A default that would try to figure out what kind of file a user wants to create and based on it the untitled editor would have the correct type and thus user would not have to worry about saving the file...
Ideas how to correctly guess the files.defaultLanguage:

Look at installed extensions
Look at content of the workspace

@sana-ajani if you think this makes sense, feel free to assign this issue also to me and I can look into it from the engineering side this milestone. Thanks

@isidorn sounds good! If we can add logic for detecting default file based on the majority of files in an open workspace, perhaps that is a new value we can add to the files.defaultLanguage setting.

Pushed a first version of this to insiders to gather feedback
Next step: how to improve the files.defaultLanguage default value - how to detect the language the user wants.

@isidorn implementation wise I wonder if there is a better way of adding the hint than listening for each editor opening and adding it. I feel this should be a code editor contribution like the "Open Workspace" button is, would you agree?
For example here is how we do that: https://github.com/microsoft/vscode/blob/a5b078b5514cbe30ba3b9447c44faf910ca98799/src/vs/workbench/browser/codeeditor.ts#L210-L210
I feel we could do something similar, do a real code editor contribution there to make it appear.

@bpasero hey there. I was actually thinking about that, but some reasons why I decided to do it like a workbench contributions:

I only want to show it for the active editor, not for every editor
I was not 100% sure how to get IEditorInput from the ICodeEditor. I needed the IEditorInput to figure out if the ICodeEditor is Untitled

Though I can change to the IEditorContribution. Let me know what you think. Thanks!

@isidorn you can use get the URI of the editor easily, see how we do it here:
https://github.com/microsoft/vscode/blob/a5b078b5514cbe30ba3b9447c44faf910ca98799/src/vs/workbench/browser/codeeditor.ts#L247-L254
You can just check for scheme being untitled.

Great feedback from the zurich standup: use the blue floating button instead since:

it is a ux pattern that we already have
does not confuse users that they can not type
might allign better with our future plans to detect language as user types

So I plan to move to using the blue button instead and after that try to use ML to auto detect language

@bpasero changed it to be an editor contribution
After feedback here are the changes I pushed

For inline text we will render the keybinding in brackets to teach to user how to always do this
Added a setting workbench.editor.untitled.hint to be either text (default)` 'button' or 'hidden'. When we go to production the idea is to not have a setting for this. The setting is just that we can easily switch the approach for user testing
Added the button option

@stevencl it would be cool if you could run some user studies with insiders from tomorrow, just makes sure to set "workbench.editor.untitled.hint": "button"

After trying out the button I definitely think it is not too heavy. Quite the opposite my suspicion is that users will not see it. That is why it would be interesting to do a couple of user studies.

Like the direction this is going! Small knit: since this is aimed at newer users, not sure we should include the keyboard shortcut. While it is useful to know, it could add unnecessary complexity because it introduces "chord" keyboard shortcuts. Also, we don't have this for "Open Folder" on the explorer empty view.

I still like the editor hint because it's more instructional and obvious, but I would be curious to see what users prefer. Depending on the feedback and if there is not an obvious preference, we could also run the button and the editor hint as an A/B experiment. Main metric of success being how many new users change their language mode and then install the recommended extension for the language they choose.

Thanks for the feedback.
Here's some info from @stevencl who is running user studies

Some more discussions, pasting here to have it all in one place

Created this issue for next milestone for modal dialog recommendations https://github.com/microsoft/vscode/issues/117051

We have done what we have planned for this milestone. I have also created a test plan item so we get feedback on our inital solution,
For stable release we just think what would be the default value for the setting, I would probably go with hidden and then next milestone release it in stable. Let me know what you think, for now pushing this to next milestone

I think hidden is okay for this release! We can try this as an experiment in Insiders and see which options gets more engagement before the next release. (Personally, I also like the button on the bottom right a lot)

I changed this to be hidden for this release. I will not mention it in the release notes.
Next milestone we will change the default and we can advertise it in release notes.

I have changed it back to be button by default for insiders. Though we Insiders will have this change end of week (once we release the stable - which has the hint as hidden).

We will be running an experiment with the two choices for the untitled hint.
I believe no further changes are planned for this milestone here, we are waiting for feedback on the Experiment. Thus moving to April.
I will change the default to be hidden again while we are waiting for results
@sana-ajani let me know if I should change something.

@isidorn The button hint not hidden after start typing like text hint.

Yeah, that is expected for now. I planned not to change this yet

For now we have decided to go with the inline text.
Closing this issue.
Feel free to open additional issues for furhter disucssions
@stevencl we have also polished the debug extension is not there, you can check out the details here https://github.com/microsoft/vscode/issues/119110#issuecomment-823263742


add overflow panic at ratatui-0.21.0/src/layout.rs:464:22

Description

Again, function intersection panics but it panics at /ratatui-0.21.0/src/layout.rs:464:22
To Reproduce

fn main() {
    let _local4 = ratatui::layout::Rect::new(65280, 2, 29696, 640);
    let mut _local5 = ratatui::backend::TestBackend::new(37492, 37492);
    let _local12 = if let Ok(x) = ratatui::backend::Backend::size(&(_local5)) {
        x
    } else {
        use std::process;
        process::exit(0);
    };
    let _ = ratatui::layout::Rect::intersection(_local4, _local12);
}

Error message
thread 'main' panicked at 'attempt to add with overflow', /home/yxz/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ratatui-0.21.0/src/layout.rs:464:22

Screenshots

Please stop creating redundant issues for such edge cases. A single issue should be enough for a cleanup. If you want to contribute, please create a single issue or a single cleanup PR where we can have proper discussions. Closing this.


documentation: examples are not shown

Since https://sttp.softwaremill.com/en/v3.3.17/examples.html till current latest examples are gone from documentation.

Should be fixed: https://sttp.softwaremill.com/en/latest/examples.html


My notifications, empty screen.

My notifications:
Minor issue:
If i search for [my ] i can find [My notifications] and [My settings] (in webclient and windows client).
If I open [my notifications] in webclient I only see an empty screen.
If I open [my settings] in web client I can go to [change when i receive notifications].
In the windows client [my notifications] opens this page directly.
So it seems [my notifications] cannot be called directly in the web client. Maybe it's better to remove this option from the departments, because in both webclient and windowsclient you can set this setup through [my settings] page.
See docx.
My notifications.docx

Unfortunately this is out of scope of this repo. We are dealing only with AL development issues. You'd need to go through regular support.


Return a dedicated error (error type) when byte stream ownership loss

Problem description
Return a dedicated error (error type) when byte stream ownership loss
current behavior: a generic error Custom { kind: BrokenPipe, error: "conditional check failed" } is returned which is hard to check (assertion of ownership loss)
ideal behavior: create a dedicated type for above error so caller can know to ownership loss
Problem location
Suggestions for an improvement

Fixed by https://github.com/pravega/pravega-client-rust/pull/296
Now it returns Error type here https://github.com/pravega/pravega-client-rust/blob/master/src/error.rs#L16


Remove single-threaded

New dask release, checking if our problems persist

Looks like it's still there


copying breadcrumb path

When having a discussion with a teammate about changing a file/method then i would like to refer to the code as the one pointed out in the breadcrumbs

but you can't right click and copy the path.
it would be a nice feature to have.

/duplicate of #58678


Consider turning on -Wall and -Werror

For at least one build, and provide options to disable it for package maintainers.

This is now on for the CI builds, but off by default. See #228


Added contains filter on people search and email search to people picker

Q
A

Bug fix?
[ ]

New feature?
[X]

New sample?
[ ]

Related issues?
mentioned in #93, #95

What's in this Pull Request?
Added contains filter to Person name and Email
Added Email search capability to People Search web part

Codecov Report

Merging #96 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #96   +/-   ##
=======================================
  Coverage   80.63%   80.63%
=======================================
  Files          10       10
  Lines         346      346
  Branches       78       71    -7
=======================================
  Hits          279      279
  Misses         44       44
  Partials       23       23

Continue to review full report at Codecov.

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

Manually merged this due to some extra changes, thank you again for your contributions @AsishP


Awesome Availability Groups Commands

Feature Request
Problem to solve
Building set of commands around building and managing an Availability Group.
Additional information
Let's make a list of ideas and corresponding command names
We can focus on both building blocks and whole solutions.
The following complete solutions have been proposed:

[ ] Finding the date of the most recent backup across all replicas of an AG database
[ ] Restore a backups (with logs, etc) to all nodes; Add a restored DB to the AG
[ ] Adding an existing DB to an AG, using existing backups

Prerequisite to this will be the ability to do partial restores with the Restore-DbaDatabase. I would need the ability to start a restore without having to anchor with full backup first.
@Stuart-Moore

@potatoqualitee @DevOpsFu (and @PowerDBAKlaas to make sure naming convention makes sense)
Just putting this post as one we can edit to build out the list of commands we actually need
Commands:

[x] Get-DbaAgReplica
[x] Get-DbaAgDatabase
[ ] Get-DbaAgListener
[ ] Get-DbaAgReplicaState (based on SMO object to get latency info)
[ ] Get-DbaAgHealth (based on XE session)
[ ] Test-DbaAgHealth (seen use cases where based on how the AG was built the XE session does not get turned on)
[ ] Set-DbaAgHadr (enable hadr for a given instance, initial step to building an AG is it has to be enabled for the instance; could have switch for -ExcludeRestart to say don't restart the instance but default it will enable it and then restart it to apply)
[ ] Set-DbaAgPrimary (proposed in issue #1432 which has "server" in the name but thinking we don't need to include that?)
[ ] New-DbaEndpoint (generic but required to build an AG; will also need to ensure the output of this command flows well for the AG build process)
[ ] New-DbaAgGroup
[ ] New-DbaAgListener (need to determine best process for this, scenarios like Azure IaaS you don't follow the same process as you would on-premise or in AWS)

Looks like a fine collection, @wsmelton
Only the New-DbaAgDatabase, does it create a DB, or is it more an Add- or Join-?

i do like join or add!

I would be both, you have to add the database to the replica and then join it to the AG. You would join on each replica. So that name could go either way @potatoqualitee

Although SSMS you see it as "Add" so maybe we need to go with Add-DbaAgDatabase ?

Interrrrresting! I've wondered how to standardize this. Even methods can be different. For instance, Add-DbaComputerCertificate requires .Import() but that conveys something different.
I did see New Database... should we go with SSMS naming for our own namings? I like Add here for reasons listed above.

You can get an idea of how AG is built with SMO here.
I have a cleaned up version of this where I had tried...oddly enough I found a way to generate an error in AGs that is not documented :)

Sorry @wsmelton , didn't see this till now :(
Do you mean you need to restore more files on top of a db in norecovery? That went in a couple of months ago. If you set -continue it looks at the last lsn restored on a db and then carries on from there ignoring fulls.

Yeah, just caught that over the weekend. This would be restore the initial full and likely another log, then try to join the database to the AG. The database at that point is in restoring mode. If it does not join, meaning it comes back with not enough LSN we would need to restore another log backup to it.
If that is covered we are good to proceed .

Yep, it was designed to do that. I've some dbs with such a transaction log churn it can take me a half a day to get them synced up so wanted a fire and forget solution that would pick back up when I got dragged into a meeting and missed the AG create window
Restore the bulk normally:
Get-DBaBackupHistory -SqlInstance SourceInstance -Database Db1 -Last | Restore-DbaDatabase -SqlInstance TargetInstance -DatabaseName Db1 -NoRecovery -TrustDbBackupHistory
Then, keep running this to restore more logs:
Get-DBaBackupHistory -SqlInstance SourceInstance -Database Db1 -Last  | Restore-DbaDatabase -SqlInstance TargetInstance -DatabaseName Db1 -NoRecovery -Continue -TrustDbBackupHistory
Works fine with files being piped in as well, just has the header scan overhead.
Reminds me, I've a video script written. must record that at some point.

I'm working on building out a project on GitHub. I'm going to create issues for the remaining commands so I can keep up with it all better and add them to a card on the project.

Project created for tracking issues on new commands: https://github.com/sqlcollaborative/dbatools/projects/7
Going to close this one out for right now.


Set tenant with a button. Instead of having to copy paste.

2 UI ideas here:

Setting the tenant with Set as Tenant a button in the "organisation" list view
In the Navbar, have a drop down to select the tenant from the list

Great ideas!


Fix issue with AssembliesToLoad not actually loading

Fixes an issue with the AssembliesToLoad not actually loading do to the Get-ChildItem not returning the dll files and the code to load them being commented out.  Added a check to prevent attempts at loading an assembly that is already loaded.

Checking on the status.  It worked on Powershell 5.1 and core 6.2.4

@kensel thanks for following up, I totally spaced on this reminder.

@kensel merged and published. Thanks for the PR! I will be moving this and all my modules to my PowerCD module once I do a bit more refinement on the pipeline processing, so this should be less of an affair.

@kensel I upgraded to sharpsnmp 12 which has a powershell standard library, 0.2.3 should be cross platform without issues.


How can I have custom predefined place with editing button icon ?

I need to provide an edit button with predefined places to add details / address as shown in the image

how Can I add an edit button like this ? Plus, can I add home and work icons too ?

You can use the renderRow prop for this.
<GooglePlacesAutocomplete
      query={{
        key: GOOGLE_PLACES_API_KEY,
        language: 'en', // language of the results
        }}
      renderRow={results => {
        if (results.isPredefinedPlace) {
          return (
            <>
              <Image source="https://i.ya-webdesign.com/images/transparent-pin-google-2.png" style={{ width: 15, height: 25 }} />
              <Text>{results.description}</Text>
            </>
          );
        } else {
          return <Text>{results.description}</Text>
        }
      }}
      onPress={(data, details = null) => console.log(data)}
/>


running make inside Makefile seems weird

https://github.com/projectatomic/buildah/blob/579103a25c76ab3e8c3a2b1fbf7beb6226ba8e08/Makefile#L32
The docs target in Makefile should have the go-md2man build step to build docs and not just run make again.
Similar comment for the install target as well.


remote ollama support via API

I would like to use Ollama as llm provider, however from a remote cloud provider. I was unable to find where do I put the URL for this. Please provide me with some instructions what to modify!

This is not supported, I'm afraid, but it should definitely be a feature. It looks like it's possible.
https://github.com/langchain-ai/langchain/issues/15365


Merge pull request #1 from acit4850lab4/develop

Final pull request

1/31/2016 1:27 AM Signed Off By: Matthew Hui


fix: make generate-refdocs needs to run in $GOPATH

Signed-off-by: Andrew Bayer<EMAIL_ADDRESS>

/lgtm


Create Application route update, button changes

Signed-off-by: randybrunopiverger<EMAIL_ADDRESS>Things to note:

Creation button dropdown is not highlighting properly, however, this commit is necessary to continue working collaboratively with a common route system for application, but the changes will need some more polish moving forward!

/cc @jamestalton


Renamed rd/ folder to resources/

Renamed rd/ folder to resources/ to align with PID changes.

@nicholascar I've found some inconsistencies with references to PIDs such as the data roles vocab, which refers to a mix of older IRIs. Should these be updated to the current IRI <https://linked.data.gov.au/def/data-roles>?
Happy to browse through each page and update similar inconsistencies if you're all good with it.

@jamiefeiss yes, as per the comment at https://github.com/idn-au/agents-governance-profile/pull/1#issuecomment-2093098961, please do update as you see fit and merge in this IRI when the PID patterns are ready.
We use to use the older ISO-based Roles vocabulary but have permanently changed across to https://linked.data.gov.au/def/data-roles, given that we seem unlikely to get the ISO IRIs resolving any time soon, so please do update any roles IRIs to those, thanks.


im2pose error (colmap)

i got this error... what is the problem??

I got the same error. Did someone manage to solve it?


fix(completion): don't match ini file comments

e.g.
[myproject] ; my awesome project

was showing completions:
;          awesome    my         myproject  project

Thanks! :smile:


[Python] Casting round double scalars to temporal types raising ArrowNotImplementedError on pyarrow 13 dev

Describe the bug, including details regarding any error messages, version, and platform.
>>> import pyarrow as pa
>>> pa.__version__
'12.0.1'
>>> pa.scalar(43260.0).cast(pa.time32("s"))
<pyarrow.Time32Scalar: datetime.time(12, 1)>

>>> pa.__version__
'13.0.0.dev497'
>>> pa.scalar(43260.0).cast(pa.time32("s"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyarrow/scalar.pxi", line 91, in pyarrow.lib.Scalar.cast
  File "/opt/miniconda3/envs/pyarrow-pandas-dev/lib/python3.11/site-packages/pyarrow/compute.py", line 403, in cast
    return call_function("cast", [arr], options, memory_pool)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pyarrow/_compute.pyx", line 572, in pyarrow._compute.call_function
  File "pyarrow/_compute.pyx", line 367, in pyarrow._compute.Function.call
  File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
  File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from double to time32 using function cast_time32

Not sure if this will be an intentional change, but it appears casting from double to temporal types has changed. In theory for the example above 43260.0 can be cast exactly back to datetime.time(12, 1). I could see how for a value like 43260.1 there would be implicit rounding in pyarrow 12
Component(s)
Python

https://github.com/apache/arrow/pull/35395
I think it's due to this PR where scalars were using a different cast method instead of the compute kernel.

Thanks for pointing that out @rohanjain101! Moreover, it appears that cast gained a new safe keyword but it doesn't handle numeric to temporal casting https://github.com/apache/arrow/pull/35395#issuecomment-1636165320

@mroeschke does it work to go from double -> int64 -> temporal?

(or I guess int32 in this case)

It it common to store temporal values as floating point values?  My initial reaction is that this is unusual and requiring an intermediate cast is acceptable.

In pandas, the use case is to perform reduction functions (e.g. mean) on temporal values, and since the pyarrow reduction kernels don't support temporal values, we cast them numeric first (assuming they are some x value relative to y) and then back.

So this means that pyarrow 13.0.0 will break Series[timestamp].mean() (with the pyarrow backend)?
That's annoying .., but in general I also agree that the extra cast to int is fine (as we required for arrays already before as well). For example, in pandas we also don't allow casting timestamp to float (but do the other way around, a bit inconsistent).

Yeah pandas caught that breaking in the nightly arrow job, but I think I addressed Series[timestamp<pyarrow>].mean() by casting to int in pandas https://github.com/pandas-dev/pandas/pull/54110/files

With respect to the original issue, happy to close it if unsafe casting from temporal to numeric is intended in pyarrow 13

Seems like this is intended behavior so closing


Programing Problem Description

Thanks for your dataset.
May I know how to get the corresponding original problem descriptions (written in natural languages)?

Hi, each problem is labelled with the problem ID. You can find its natural langauge description on Codeforces website. For example, 71-A is here: https://codeforces.com/problemset/problem/71/A?locale=en

Thanks for your reply. I understand that I have to crawl the descriptions.


Unable to clone the Caffe2  repo

Checking connectivity... done.
Submodule path 'third_party/zstd': checked out 'aec56a52fbab207fc639a1937d1e708a282edca8'
Unable to checkout 'f3c627d517968c20e8269ead1d90cd3a6c199356' in submodule path 'third_party/aten'

Submodule path 'third_party/pybind11/tools/clang': checked out '254c7a91e3c6aa254e113197604dafb443f4d429'
Unable to checkout 'b1370adb972a8345de92e2d69e61daf7f9bce43e' in submodule path 'third_party/cub'

I have same problem, unable to clone Caffe2.
Unable to checkout 'f3c627d517968c20e8269ead1d90cd3a6c199356' in submodule path 'third_party/aten'

https://github.com/facebookresearch/TensorComprehensions/issues/328 looks like similar issue.

ATen has following issue, making this issue hard to solve.
https://github.com/zdevito/ATen/issues/209
Temporary disabling ATen looks like the easiest solution.


Using ion-reorder-button with orderBy in ng-repeat

I have an array of objects. Each object in the array has a "displayOrder" key.
var items = [
  {
    name: "",
    displayOrder: 8
  },
  {
    name: "",
    displayOrder: 2
  },
  {
    name: "",
    displayOrder: 5
  },
  {
    name: "",
    displayOrder: 1
  },

];

I have to display the items in order of their "displayOrder" key. So, I use groupBy:
<ion-list class="symp-list" show-reorder="true">
  <ion-item ng-repeat="item in items | orderBy: 'displayOrder'">

        {{item.name | uppercase}}

        <ion-reorder-button class="ion-navicon" on-reorder="moveItem(item, $fromIndex, $toIndex)">
        </ion-reorder-button>

  </ion-item>
</ion-list>

$scope.moveItem = function(item, fromIndex, toIndex) {
      //Move the item in the array
      $scope.items.splice(fromIndex, 1);
      $scope.items.splice(toIndex, 0, item);
    };

But this just won't work. It gives me the error

errorError: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys.

Hello, thanks for opening an issue with us! Angular is throwing this error because somewhere in your data set their is a duplicate identifier. To fix this issue you can use track by. Here is a handy link to the docs for that. Since this is a bug with your code and not something that Ionic is doing wrong I am going to close this issue for now. Thanks for using Ionic!


CP-SAT: stopSearch() does not work if called before presolve is finished

It seems like the Search can be stopped only after it has started. Is there a way to terminate solving even in case of lengthy pre-solve phase?

Thanks for the bug report.

From our tests, it seems it is fixed with master.
I am closing the bug for now. Do not hesitate to reopen it.

Unfortunately, I do not see an improvement with current master. Will you, please, reopen the issue or should I create a new one? I can attach a proto model, but the situation seems pretty clear: if the delay of stopSearch() is set shorter than the time needed for the Search to be started, it never stops.

I just fixed it.
Thanks


Syncing lead to 4xx for big clippings file

Hi @yannick-cw,
output.txt
I attach a file with the last part of my output
The output is so long that the command window doesn't let me browse up
Btw, I'm using windows 10
Thank you so much
Originally posted by @sgomezp in https://github.com/yannick-cw/notionfy/issues/11#issuecomment-680181680

Hi @yannick-cw
I'm using the latest version (0.2.4). Now, I have some highlights in my Notion page but no all of them.
In the attached file "last_output.txt"  you would see the error output.
I'm also attached a copy of my notion page.
Thank you!
Kindle Highlights & Notes.pdf
last_output.txt

@sgomezp for now you could try to rerun it a few times and see if it eventually synchs all highlights

@sgomezp you could also send me your whole clippings file via email and I verify if it works here or what the problem is.

@yannick-cw
Yes, sure! but please give me 1 hour, thanks!

I see that you shared me the notion page, but can you share me your file directly from the kindle:
kindlePath \ "documents" \ "My Clippings.txt

Hi @yannick-cw
I just forwarded to you the mail that I sent you 2 days ago with the "My Clippings.txt" file.
Please let me know if you receive it ok this time
Thank you!

Thanks, this one arrived!

Hey sorry for the long wait. It sync your file without any problem from my machine. I think it could be related to you internet connection or how notion handles your traffic. Did you try just syncing a few times to see if it gets all done eventually? Further syncs should be no problem


[cnd] revive the "Go to Header/Source" action

This brings back the "Go to Header/Source" action to switch between C/C++ source and header files.  It includes the toolbar icon at the top of the editor, right click menu items, and keybinding.  It's a copy of the original implementation from cnd.navigation minus the part that used CSM.  It's just a simple filename matcher now with no added intelligence to fall back on.  It's still quite useful like that.
As a side note, this would be better if it used the non-standard clangd LSP textDocument/switchSourceHeader extension but I wasted an embarrassing amount of time trying to figure out how to add non-standard extensions to ide/lsp.client and completely failed.  I may have figured out how to do it directly in lsp4j, but I could not determine how to do it in the netbeans wrapper nor determine how that capability might be added there.  I'm sure there's a way a non-standard extensions capability could be added, I'm just too dumb to know how.  If non-standard LSP extensions are supported some day, this can be enhanced to take advantage of it then.

Moving this over to netbeans proper.


Module not found: Can't resolve 'fs'

Hi, I try to use PDFLoader to parse pdfs, but when I initialise the PDFLoader, it shows the below error:
./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:17378:0
Module not found: Can't resolve 'fs'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/langchain/dist/document_loaders/fs/pdf.js
./node_modules/langchain/document_loaders/fs/pdf.js
./components/FileUploader.tsx
./components/UtilityBar.tsx
./components/LeftSidebar.tsx
./app/(protected)/layout.tsx
This is my code:

You will need to use the web version:
https://js.langchain.com/docs/integrations/document_loaders/web_loaders/pdf
The filesystem variants are all Node only.

Thanks for your swift reply. It is very helpful. I also noticed that only the pdf format has a web version loader. Are there any alternative methods for other file formats (docx, txt, ppt)?

You will need to use the web version:
https://js.langchain.com/docs/integrations/document_loaders/web_loaders/pdf
The filesystem variants are all Node only.

hey @jacoblee93 im using same in nextjs but still getting same error Module not found: Can't resolve 'fs'
here is my code
import { WebPDFLoader } from "langchain/document_loaders/web/pdf"

const blob = new Blob([modifiedPdfBytes], { type: "application/pdf" })
const loader = new WebPDFLoader(blob)
const documents = await loader.load()
console.log({ documents })

Are you sure it's due to that import?

Are you sure it's due to that import?

I guess yes please check this repo https://github.com/sujjeee/langchain-web
this is the Error im getting
./node_modules/.pnpm/pdf-parse@1.1.1/node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:17378:0
Module not found: Can't resolve 'fs'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/langchain<EMAIL_ADDRESS>./node_modules/.pnpm/langchain<EMAIL_ADDRESS>./src/app/input-form.tsx

Hmm I've been using it successfully here: https://github.com/jacoblee93/fully-local-pdf-chatbot/blob/main/app/worker.ts#L9
Anything different you see in any of the configs? Maybe tsconfig.json or package.json?

Hmm I've been using it successfully here: https://github.com/jacoblee93/fully-local-pdf-chatbot/blob/main/app/worker.ts#L9
Anything different you see in any of the configs? Maybe tsconfig.json or package.json?

Thanks, it's working now. The issue is that we need to disable 'fs'. Get that fixed in the nextjs.config.js.
By the way, in the browser's console, it's showing:
GET http://localhost:3001/_next/static/chunks/_app-pages-browser_node_modules_pnpm_pdf-parse_1_1_1_node_modules_pdf-parse_lib_pdf_js_v1_10_-9134c3.worker.js 404 (Not Found)
and this warning:
Warning: Setting up fake worker.
Why is that?

@sujjeee How have you disabled 'fs' and get that fixed in nextjs.config.js?

@Gabu6872
Read more here: https://github.com/jacoblee93/fully-local-pdf-chatbot/blob/main/next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  // (Optional) Export as a static site
  // See https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration
  output: 'export', // Feel free to modify/remove this option

  // Override the default webpack configuration
  webpack: (config, { isServer }) => {
      // See https://webpack.js.org/configuration/resolve/#resolvealias
      config.resolve.alias = {
          ...config.resolve.alias,
          "sharp$": false,
          "onnxruntime-node$": false,
      }
      config.experiments = {
        ...config.experiments,
        topLevelAwait: true,
        asyncWebAssembly: true,
      };
      config.module.rules.push({
        test: /\.md$/i,
        use: "raw-loader",
      });
      // Fixes npm packages that depend on `fs` module
      if (!isServer) {
        config.resolve.fallback = {
          ...config.resolve.fallback, // if you miss it, all the other options in fallback, specified
            // by next.js will be dropped. Doesn't make much sense, but how it is
          fs: false, // the solution
          "node:fs/promises": false,
          module: false,
          perf_hooks: false,
        };
      }
      return config;
  },
}

module.exports = nextConfig


how to  Rounded Corners . if i use WinBlur then Rounded  not work

Can you elaborate?
Show me pictures as examples to what your issue is, and send me the code necessary if there is any.


How to post references to the API

The regular reference object the API accepts is heavily based on CSL-JSON which is a rather complex and extensible format. CSL-JSON schema
The available/sensible fields depend on the reference (item) type:
https://aurimasv.github.io/z2csl/typeMap.xml
It might make sense to allow posting of simpler formats such as the 7 ColDP reference fields. Offering different media types might be the way to go with plain JSON being the main CSL format, but application/vnd.coldp+json expecting a simple ColDP reference object in JSON:
{
"citation": "Full bibliographic citation as one single string as an alternative to the rest of the more structured fields. If individual fields are given the full citation can be ignored.",
"author": "S.M. Smith",
"title": "The title of the work. In case of journal articles the article title, not the journal itself."
"year": "The year of the publication.",
"source": "The title of the journal or book the work was published in. The source should exclude volume, edition, pages and other specifics."
"details": "volume, edition, pages and other specifics.",
"doi": "10.1126/science.169.3946.635"
"link": "https://syndication.highwire.org/content/doi/10.1126/science.169.3946.635"
}

... and BiBTex `application/x-bibtex```
Maybe thats worth supporting too as we do that already in the ColDP importer and its a common format with standing

@thomasstjerne is it simple to post different content types from the UI?

Yes, it should not be a problem.
I definitely think we should support some simple way of giving a reference, like the COLDP.
Also, if you know the DOI it would be smart if you could just give that and let the system handle the rest.

How about a parsing service that takes a single string and returns a proper ref object but not yet inserted so it can be reviewed and POSTed to be created. If its a DOI it tries to look up the metadata, if its a citation it tries to parse it.
Would mean the UI still has to render CSL for review and fixes...

Sounds very good

ok, posting coldp like this seems to work fine locally, gonna commit that:
curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjNzFiZjU0ZS1hNDNiLTQxYjAtOGZkNC1jYWY5MTA1YjRjYmQiLCJpc3MiOiJjb2wucGx1cyIsImlhdCI6MTU2MDUwMjY3NSwic3ViIjoibWFya3VzIiwiZXhwIjoxNTYxMTA3NDc1fQ.7pA4lO6JR8MQF7tRWfOdm6oDTGVUh8fFUpdMn_04uaA'  -H 'Content-Type: application/vnd.coldp+json' -X POST -d '{}' http://localhost:8080/dataset/3/reference

I am trying to create references in CSL, but contentType "application/vnd.citationstyles.csl+json" gives 415. When posting this as plain JSON a reference is created, but it is empty: https://api-dev.col.plus/dataset/3/reference/713bc472-7111-4510-8c50-4799d38cdb78
{
"type":"incollection",
"title":"Cortinarius",
"author":[{"family":"Niskanen","given":"Tuula"},{"family":"Jeppesen","given":"Thomas S."}],
"container-title":"Funga Nordica",
"editor":[{"family":"Knudsen","given":"Henning"},{"family":"Vesterholt","given":"Jan"}],
"edition":"3",
"volume":"1",
"publisher":"Nordsvamp",
"publisher-place":"Copenhagen",
"URL":"",
"ISBN":"978-87-983961-3-0",
"issued":"","accessed":"",
"pages":"643-743"
}

The CSL media type is not (yet) registered. The regular JSON reference contains the CSL inside the csl property: http://api.col.plus/dataset/3/reference
If you want to post a pure CSL item we can easily add that media type.


Update sbt-circe-org to 0.1.4

About this PR
📦 Updates io.circe:sbt-circe-org from 0.1.3 to 0.1.4
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.circe", artifactId = "sbt-circe-org" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.circe", artifactId = "sbt-circe-org" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:n:2

Codecov Report
Patch coverage has no change and project coverage change: -0.08 :warning:

Comparison is base (3544a80) 95.38% compared to head (1856925) 95.31%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #383      +/-   ##
==========================================
- Coverage   95.38%   95.31%   -0.08%
==========================================
  Files           6        6
  Lines          65       64       -1
  Branches        3        4       +1
==========================================
- Hits           62       61       -1
  Misses          3        3

Flag
Coverage Δ

2.12.17
95.23% <ø> (-0.08%)
:arrow_down:

2.13.10
95.23% <ø> (-0.08%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


PythonError type name is lost

value.toString in python for an exception loses the type information which is particularly handy for debugging
suggested alternative
  let errorMessage = (value ?? type).getAttr("__repr__").call().toString();

Closed by #42. PythonErrors now contain the https://github.com/denosaurs/deno_python/blob/main/src/python.ts#L793-L795 type, value and traceback as PyObjects making it easy to actually catch and use the thrown value and type.


Show alt text on homepage images

Resolves https://github.com/processing/p5.js-website/issues/376
I was initially going to use the Image component in the components folder, but it seemed to not like the string srcs we were passing into the <img> tag, and also I needed to add some classes to the container itself to make it show/hide everything correctly, so in the end I just mirrored some of the same structure in the HomePage component.

Thanks @davepagurek!


Fix super() in non derived class

This pr solved the #2000 problem.

@eryue0220
I think this test is still broken:
test/language/statements/class/syntax/class-body-method-definition-super-property.js
see: https://github.com/tc39/test262/blob/main/test/language/statements/class/syntax/class-body-method-definition-super-property.js


Galaxy instance translation

This is a list of the stuff that is still not translated in the Galaxy Spanish Instance. Help!

Hey @nomadscientist I think this belongs as a comment in the galaxyproject/galaxy#11982 so I'll move it there if that's ok


returned non-zero exit status 127.

bin/sh: 1: httprobe: not found
Traceback (most recent call last):
File "/home/bart/Tools/IP-Scan/layla/layla.py", line 83, in
get_host   = subprocess.check_output(("echo %s | httprobe -prefer-https" % URL_TARGET), shell=True, text=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'echo https://VULNsite.com | httprobe -prefer-https' returned non-zero exit status 127.

install https://github.com/tomnomnom/httprobe

install https://github.com/tomnomnom/httprobe

thank you.

install https://github.com/tomnomnom/httprobe

@soheilbandei thank you.


Cannot change tabulation size

Hi There
Is there a way to set the tab size to 4 spaces instead of 2 of the new generated files?
Cheers
Alban

In the .editorconfig set indent_size = 4

Already done, but this does not affect the Angular CLI

The CLI doesn't provide this kind of functionality for scaffolded code, but you're more than welcome to format your code however you please.

But this way one has to format the code every time he generates a new file. I will contribute and add this function.

I agree that it is frustrating to have to reformat every file the cli spits out just so you can have the tab spacing you are chasing. Could the cli not reference .editorconfig when creating new files @filipesilva?

I don't think there's a way to do that at the moment, but haven't investigated it much.

@DesHorsley I can confirm that the CLI is not referencing the editorconfig for any code format

Why is this ticket closed? It seems like a logical feature to have and I don't see any other issues mentioning this functionality.

+1 for "why is this closed?"  Two-space indentation is just.. ick.

+1  I find this frustrating as well.  I use WebStorm, and while I've got Webstorm setup to use 4 spaces for tabs, it also tries really hard to honor an existing files pattern for tabs.  This lack of capability in angular-cli makes me have to fight my editor whenever I use angular-cli, which I think goes against the whole point of the cli to begin with.

Just want to throw in my +1 on having this option, reading from .editorconfig.
Additionally, it would be great to be able to use tab characters instead of spaces.

+1 for bumping this issue.

+1, having to change every file manually is tedious

+1, seems like a fairly reasonable PR candidate

+1, great tool but this problem is very frustrating

+1, this would be really useful

+1 for me as well!

+1 for this. Very frustrating to edit the generated file every time for 4 spaces.
Why the ticket is closed btw?

+1 for me as well, I'm not happy to reindent each newly created file.

+1. Would be very happy if CLI could read from either .editorconfig or the angular-cli.json.

Please consider reopening this issue. I have configured VSCode to not detect current file settings so that I can go in and auto-format each generated file, but it would sure be nice to skip this step.

+1 seems good and option in angular-cli.json 👍

+1 Please implement this.

+1. Not familiar with anyone use 2 spaces for indenting...

+1 Our team also uses 4 spaces and it's slightly annoying needing to go in and update them.

Could there not at least be a CLI option to set the number of spaces to tab when generating files?

If this feature is not going to be implemented near soon, at least consider to change the default indent to 4 spaces. It's the default indentacion in WebStorm and most editors.

+1, we use 4 spaces wide tabs for indentation... 2 spaces feel strange...

+1
This feature would be great. Or atleast change it to 4 spaces as that is the most common indentation setting from what I can tell.

+1 I would like to have that feature

+1 for Tabs. 2 spaces just makes the code ugly.

+1 for indentation. Can't stand 2 spaces!!!!!

Is this not something the team cares to add, @filipesilva? Seems to be a good bit of interest, yet the issue remains closed.

Tabs vs spaces (and number of spaces) is one of those heavy, contentious issues in the JS community.
It's not a matter of functionality, but rather of style. On matters of style we usually defer to the style guide. The style guide has no recommendations on tabs vs spaces but almost all of the examples internally are in 2 spaces, so we default to 2 spaces.
There are other style issues where we take action, but those are usually motivated by consistency (to minimize confusion and to make it easier to reference docs) rather than any kind of preference.
There is a fair amount of interest, yes. But there is also a very trivial workaround - format your code however you like. The amount of effort to offer this customization isn't well understand, but spending time looking into it is effort as well.
So as far as functionality is concerned, resolving this issue has zero impact. It's just not important enough to take up resources that would be best spent elsewhere.
Sure it would be easier for users to just throw a flag into generators, but I find it hard to justify to myself the development time. Should I fix broken functionality, or should I cater to the eternal tab/spaces struggle? That's an easy decision for me to make. It's also an easy decision if I'm talking about important features instead of bugs. It's very, very low on the totem pole.
We're looking at a new blueprint system and it should be much easier to make these style decisions there. The best I can say is that I'll keep that in mind at the time. But it's just not worth it to try and retrofit the existing system to support this kind of customization.
So that is why this issue remains closed.

Cool. Thanks for the feedback and reasoning, anyway. Guess it's safe to Unsubscribe to this one.
PS - 4 Space Tabs 4 Life!

@justin you mean just 4 spaces as formating
On Mon, Feb 20, 2017 at 12:49 PM, Justin Schneider<EMAIL_ADDRESS>
wrote:

Cool. Thanks for the feedback and reasoning, anyway. Guess it's safe to
Unsubscribe to this one.
PS - 4 Space Tabs 4 Life!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281071091,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqE1Ifi3dZdCjAR9vNxiavuSaFpvPks5reYvigaJpZM4JB73x
.

--
www.albanx.com
www.realuploader.com

@albanx No, tab characters that are 4 spaces wide. I knew I'd mess up saying it. o_O

I think most of community is against that, because the tab characters has
proven to be problematic in different platforms, meanwhile the space is the
same everywhere and will almost never affect file formatting in different
platforms.
On Mon, Feb 20, 2017 at 1:37 PM, Justin Schneider<EMAIL_ADDRESS>wrote:

@albanx https://github.com/albanx No, tab characters that are 4 spaces
wide. I knew I'd mess up saying it. o_O
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281081070,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqBLBl1dlAjmeUhmkJxu_wi0NMtWUks5reZcKgaJpZM4JB73x
.

--
www.albanx.com
www.realuploader.com

Right, which is why the feature in this issue was requested in the first place. So that individual devs and teams don't have to conform to what the community prefers as a whole. I'm not saying my preference is "right", but it certainly isn't wrong.

Yes, in any case, that should depend from .editorconfig file, so the idea
is that the CLI should format files pending on the .editorconfig file
On Mon, Feb 20, 2017 at 1:43 PM, Justin Schneider<EMAIL_ADDRESS>wrote:

Right, which is why the feature in this issue was requested in the first
place. So that individual devs and teams don't have to conform to what
the community prefers as a whole. I'm not saying my preference is "right",
but it certainly isn't wrong.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281082358,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqIPUAxLHjZT9dv5n7cq7VuGy0rIiks5reZh0gaJpZM4JB73x
.

--
www.albanx.com
www.realuploader.com

I think most of community is against that, because the tab characters has
proven to be problematic in different platforms

What are the problems?  I've never encountered an issue with tabs that wasn't a result of a developer misusing them.  Not arguing; I'm genuinely curious what the issues are on other platforms.

@josh, really? then you're too young... ex... format a code with tabs in
your editor, open it on github or bitbucket it will break all formating (at
least a tab will be spaced probably 10 spaces), you can have wired
behaviuor on some command line editors. Space has consistency, 1 space is 1
space everywhere, tabs are not.
On Mon, Feb 20, 2017 at 7:55 PM, Josh<EMAIL_ADDRESS>wrote:

I think most of community is against that, because the tab characters has
proven to be problematic in different platforms
What are the problems? I've never encountered an issue with tabs that
wasn't a result of a developer misusing them. Not arguing; I'm genuinely
curious what the issues are on other platforms.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281156936,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqOKh-hZq5PtujPvCIUAc32NhT7C7ks5reeGKgaJpZM4JB73x
.

--
www.albanx.com
www.realuploader.com

really? then you're too young...

Quite a rude assumption.  I've been programming for about 15 years, thanks.

open it on github or bitbucket it will break all formating (at
least a tab will be spaced probably 10 spaces)

Right, by default, GitHub displays tabs larger than most (as 8 spaces, not 10).  That's configurable to something sane like 4 or 2, just like any text editor is able to do.  Does 8-space indentation make things harder to read?  Yes, for me and I'm assuming for most people.  But it doesn't "break all formatting" unless the author misused tabs.  As long as the "tabs for indentation, spaces for alignment" mantra is followed, I've never seen a case where this was an issue.

Space has consistency, 1 space is 1 space everywhere, tabs are not.

Yes, and that's the issue with using spaces for indentation, not the advantage.  You may prefer 2-space indentation, while I prefer 4-space indentation.  With tabs for indentation, every developer gets to work on code in whichever style is most readable to them.

Issues is you have to configure every editor to have the same tab length
spaces not.
Any case I am not going to argue on this since it is not the topic of this
conversation. If you're looking for flamewars go on stackoverlow you will
find a lot of topics this.
On 20 Feb 2017 19:12, "Josh"<EMAIL_ADDRESS>wrote:
really? then you're too young...
Quite a rude assumption. I've been programming for about 15 years, thanks.
open it on github or bitbucket it will break all formating (at
least a tab will be spaced probably 10 spaces)
Right, by default, GitHub displays tabs larger than most (as 8 spaces, not
10). That's configurable to something sane like 4 or 2, just like any text
editor is able to do. Does 8-space indentation make things harder to read?
Yes, for me and I'm assuming for most people. But it doesn't "break all
formatting" unless the author misused tabs. As long as the "tabs for
indentation, spaces for alignment" mantra is followed, I've never seen a
case where this was an issue.
Space has consistency, 1 space is 1 space everywhere, tabs are not.
Yes, and that's the issue with using spaces for indentation, not the
advantage. You may prefer 2-space indentation, while I prefer 4-space
indentation. With tabs for indentation, every developer gets to work on
code in whichever style is most readable to them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281160366,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqHWZLVwnrQit_212PGF2GBytkb3zks5reeWTgaJpZM4JB73x
.

Issues is you have to configure every editor to have the same tab length
spaces not.

No, you don't.  There is no reason to do so.  If you've read what I said or have enough experience to have experienced it firsthand, you'll know that it's unnecessary for developers to have matching indentation lengths, so long as they don't mix up indentation with alignment.  That's the advantage of tabs.

Any case I am not going to argue on this since it is not the topic of this
conversation. If you're looking for flamewars go on stackoverlow you will
find a lot of topics this.

Who's looking for a flamewar?  You opened the conversation with a dismissive insult after I asked for an example to back up your claim.

really? then you're too young...

Please do not cry now... pardon me if you felt insulted... .
On Mon, 20 Feb 2017, 19:45 Josh<EMAIL_ADDRESS>wrote:

Issues is you have to configure every editor to have the same tab length
spaces not.
No, you don't. There is no reason to do so. If you've read what I said or
have enough experience to have experienced it firsthand, you'll know that
it's unnecessary for developers to have matching indentation lengths, so
long as they don't mix up indentation with alignment. That's the advantage
of tabs.
Any case I am not going to argue on this since it is not the topic of this
conversation. If you're looking for flamewars go on stackoverlow you will
find a lot of topics this.
Who's looking for a flamewar? You opened the conversation with a
dismissive insult after I asked for an example to back up your claim.
really? then you're too young...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/1252#issuecomment-281166542,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFAqAJg1YE8XuxnP4HjdVdxqYjlbH_oks5ree1TgaJpZM4JB73x
.

Please do not cry now... pardon me if you felt insulted... .

Teenager confirmed.  Let's continue this conversation when you're an adult with some real-world development experience.  Until then, by all means, continue cargo cult developing with no understanding of the points you're arguing for and against. 😄

@albanx and @Josh1billion please refer to our Code of Conduct and adhere to it during ALL interactions related to the Angular project. This thread has clearly reached the end of its useful life, and @filipesilva's answer isn't going to change in the forseeable future. Locking.

This should be available soon-ish via automatically running TS Lint fixers on generators. This is being tracked in https://github.com/angular/angular-cli/issues/6272.


Replace Downloading the Datanator data in the about page with link to MongoDB dump in S3

[x] Upload to a public archive such as Zenodo
[x] Update link in .env
[x] Update link in .env.development
[x] Update link in .env.test
[x] Update link in README.md for the datanator repo... The data is also available for download from [Zenodo]().

[x] Update link to data license in src/scenes/About/About.js
[x] Update link to data license in src/scenes/Help/Faq.js

Also upload to one of these archives

Dryad (300 GB limit)
Fighshare (5TB limit)
Zenodo (50 GB limit)

The first request was done in 8e15d32fc067269171daf1d3e213d2603778a210.

Since we're no longer using Quilt, upload to one of these public archives (this can be used instead of S3)

Dryad (300 GB limit)
Figshare (5TB limit)
Zenodo (50 GB limit)

Figshare has single file size limit.

Zenodo and Dryad seem fairly similar to each other. Dryad has a required field for manuscript number. Zenodo has a few required fields, two of which are publication title and description. Neither database provides a way to edit the publication as a group. I'm uploading the data package to Zenodo at the moment, it's very slow.

Are you uploading this as multiple files? In that case, it would probably
make sense to use a single .tar.gz file.
On Mon, Aug 3, 2020 at 1:25 PM lzy7071<EMAIL_ADDRESS>wrote:

Since we're no longer using Quilt, upload to one of these public archives
(this can be used instead of S3)

Dryad (300 GB limit)

Figshare (5TB limit)

Zenodo (50 GB limit)

Figshare has single file size limit.
Zenodo and Dryad seem fairly similar to each other. Dryad has a
required field for manuscript number. Zenodo has a few required
fields, two of which are publication title and description. Neither
database provides a way to edit the publication as a group. I'm uploading
the data package to Zenodo at the moment, it's very slow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/KarrLab/datanator_frontend/issues/318#issuecomment-668144581,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVXMKO36EW3JOHBVP2ONADR63XJZANCNFSM4PEYQBSQ
.

I'm uploading it as an archive, which has a file size of ~4.7G

Great!
I moved the location of the download to the .env* files.

Great!
I moved the location of the download to the .env* files.

Awesome! I'll change it to Zenodo once the upload is finished.

Thanks!

I clarified the format of the download (MongoDB dump)

I clarified the format of the download (MongoDB dump)

Strictly speaking, the archive is not a MongoDB dump, which requires a lengthy mongorestore process to load the data into MongoDB. Instead, the archive is a snapshot of the data directory of the database, where a user only needed to mount the directory to load the data into the database.

Thanks for clarifying. I changed this from "dump" to "snapshot".


Demag GUI plots look weird....

These plots look improperly formatted:

This is with the Dubois data, which was previously attached to issue #232 .
Dubois_MagIC.zip

One or two step demag is likely to occur in the Dubois data set, as seen here. The tick marks seem too bunched up. Is this what you mean by "improperly formatted"?

Ah, yes, my old nemesis. This has been a well documented problem which seems to occur with the default plot settings for some data. I have been stumped about it for a while, but as it is a fringe effect dominantly I never put the time into investigating a fix for it. I can take a look through and see about coming up with a new method of generating tick marks I'll let you know if I come up with something.

This doesn't necessarily seem urgent, I just noticed it and thought it looked a bit odd.


fix prev/next post order

Use a filtered and ordered list to pass into the getNextPost and getPreviousPost functions to preserve proper chronological order when navigating between posts.
Closes #26
I noticed that the main blog page would properly order posts by date, but when using the Previous and Next navigation buttons under each post it would revert to the folder order under src/content/blog. The posts variable used in these functions was not using an ordered list of blog posts.

Thanks!!

Thanks!!

You're welcome. And thank you for putting this theme together. It was very helpful while moving my blog over to Astro. Let me know if you need any help with other features.


Unable to hook Trusted Windows Apps - STATUS_INTERNAL_ERROR - Code 5

Hi,
I am attempting to use the tutorial project RemoteFileMonitor to monitor a Trusted Windows App (eg Calculator), but am getting a STATUS_INTERNAL_ERROR with Code 5. This happens both when run as a normal user or as an administrator.
The RemoteFileMonitor demo project works fine with standard Desktop App, such as Notepad++.
I am able to monitor API calls using API Monitor v2.
Do you have any advice as to how I might be able to hook into these Trusted Applications?
Many thanks,
Richard
Full stack trace for reference
Usage: FileMonitor ProcessID
   or: FileMonitor PathToExecutable

e.g. : FileMonitor 1234
          to monitor an existing process with PID 1234
  or : FileMonitor "C:\Windows\Notepad.exe"
          create new notepad.exe process using RemoteHooking.CreateAndInject

Enter a process Id or path to executable
> 15336

Attempting to inject into process 15336
There was an error while injecting into target:
System.ApplicationException: STATUS_INTERNAL_ERROR: Unable to find EasyHook library in target process context. (Code: 5)

Server stack trace:
   at EasyHook.NativeAPI.Force(Int32 InErrorCode)
   at EasyHook.RemoteHooking.InjectEx(Int32 InHostPID, Int32 InTargetPID, Int32 InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Boolean InRequireStrongName, Object[] InPassThruArgs)
   at EasyHook.HelperServiceInterface.InjectEx(Int32 InHostPID, Int32 InTargetPID, Int32 InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Boolean InRequireStrongName, Object[] InPassThruArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at EasyHook.HelperServiceInterface.InjectEx(Int32 InHostPID, Int32 InTargetPID, Int32 InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Boolean InRequireStrongName, Object[] InPassThruArgs)
   at EasyHook.RemoteHooking.InjectEx(Int32 InHostPID, Int32 InTargetPID, Int32 InWakeUpTID, Int32 InNativeOptions, String InLibraryPath_x86, String InLibraryPath_x64, Boolean InCanBypassWOW64, Boolean InCanCreateService, Boolean InRequireStrongName, Object[] InPassThruArgs)
   at EasyHook.RemoteHooking.Inject(Int32 InTargetPID, String InLibraryPath_x86, String InLibraryPath_x64, Object[] InPassThruArgs)
   at FileMonitor.Program.Main(String[] args) in D:\GitHub\EasyHook-Tutorials\Managed\RemoteFileMonitor\FileMonitor\Program.cs:line 65
<Press any key to exit>

Currently EasyHook doesn't work around the issues with loading libraries into trusted apps (I believe LoadLibrary will not work with arbitrary paths?)
Will have to mark this as an feature request.
Cheers, J

Thanks a lot for your speedy response Justin, it's much appreciated.
To be honest I'm fairly new to DLL injection - what sort of complexity would be involved in implementing this feature?

Hi Justin,
I've had a fairly unskilled attempt at resolving this (including moving DLLs to System32 and some other suggestions I saw online) without much luck.
Would you be able to give me some idea as to what we be involved in implementing this change within the EasyHook code base? Depending on the complexity I could either submit a pull request or put a bounty on this issue.
Cheers,
Richard

Code 5: refers to Win32 Errorcode 5 (Access Denied).
I would be stepping through the injection process to determine exactly what operation is failing.


PCE-52/ Products Page Completed

Implemented mostly everything, need to align the price to the bottom of the div. also, please add the price using JavaScript.

Added price

I'm merging this. you can add your alignment improvements in a new PR (or just push directly to main if it's minor stuff)


Link to deployment of PKI page

As suggested by user that content is missing in the document, I have linked the page with the deployment of PKI certificate.
Problem: https://github.com/MicrosoftDocs/windows-itpro-docs/issues/6360

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@JohanFreelancer9  - Thanks for the correction. Sorry I missed removing of locale from the link. Thanks for reminding me.
Imran.

@e0i - PR is ready for merge.

Related to #6358

The link that is added to the doc is for SCCM. I am not sure that is relevant here. I did not see the submitter referencing that doc in his comments. I know there are additional instructions for DC certificate set up in the cert trust section: https://docs.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/hello-cert-trust-validate-pki

@mapalko - The linked doc covers many aspects of certificates deployment. The problem submitter doesn't reply for the exact link so I put my suggestions but those to see if that helps.

Since the current linked page isn't specific to WHFB, I'd prefer to link the WHFB guidance.

@mapalko - I have changed the link. See if that is ok.

#sign-off


"IntelliSense for CSS class names in HTML" extension of version 1.20.0, is taking a lot of time whenever I start VS Code.

Issue Type: Bug
Extension Name: html-css-class-completion
Extension Version: 1.20.0
OS Version: Windows_NT x64 10.0.19041
VS Code version: 1.58.0

:warning: We have written the needed data into your clipboard. Please paste! :warning:

Duplicate of #155. Also, it is missing the file you were expected to attach.