Issue with executing conv_net_train.py

When I run the conv_net_train.py, the process is holding and the Terminal output is as follows.
('loading data...',)
data loaded!
model architecture: CNN-static
using: word2vec vectors
[('image shape', 153, 300), ('filter shape', [(200, 1, 1, 300), (200, 1, 2, 300), (200, 1, 3, 300)]), ('hidden_units', [200, 200, 2]), ('dropout', [0.5, 0.5, 0.5]), ('batch_size', 50), ('non_static', False), ('learn_decay', 0.95), ('conv_non_linear', 'relu'), ('non
_static', False), ('sqr_norm_lim', 9), ('shuffle_batch', True)]
... training
Your ideas are highly appreciated.  @amirmohammadkz
Thanks.

Hmm... That's strange. Are you using my version or the original version?
can you trace the CPU/GPU usage from task manager (windows), htop command (Linux)?
Can you run this python file in a debug mode using pycharm to trace the exact line that makes this issue?

Thanks a lot for your response. Actually because of this issue, I setup your version by installing all the respective modules. When I run the conv_net_train_keras.py in pycharm, I got the following error. I have set up the CUDA on my GPU as well for executing this.
2020-03-30 05:09:51.532398: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 2 Chunks of size 512 totalling 1.0KiB
2020-03-30 05:09:51.532769: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 11 Chunks of size 1024 totalling 11.0KiB
2020-03-30 05:09:51.533163: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 1 Chunks of size 1280 totalling 1.3KiB
2020-03-30 05:09:51.533543: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 1 Chunks of size 1536 totalling 1.5KiB
2020-03-30 05:09:51.533929: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 3 Chunks of size 1792 totalling 5.3KiB
2020-03-30 05:09:51.534307: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 2 Chunks of size 240128 totalling 469.0KiB
2020-03-30 05:09:51.534705: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 1 Chunks of size 470784 totalling 459.8KiB
2020-03-30 05:09:51.535114: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 2 Chunks of size 480000 totalling 937.5KiB
2020-03-30 05:09:51.535516: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 3 Chunks of size 547328 totalling 1.57MiB
2020-03-30 05:09:51.535916: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 3 Chunks of size 720128 totalling 2.06MiB
2020-03-30 05:09:51.536345: I tensorflow/core/common_runtime/bfc_allocator.cc:958] 1 Chunks of size 960000 totalling 937.5KiB
2020-03-30 05:09:51.536771: I tensorflow/core/common_runtime/bfc_allocator.cc:962] Sum Total of in-use chunks: 6.39MiB
2020-03-30 05:09:51.537159: I tensorflow/core/common_runtime/bfc_allocator.cc:964] total_region_allocated_bytes_:<PHONE_NUMBER> memory_limit_:<PHONE_NUMBER> available bytes: 153 curr_region_allocation_bytes_:<PHONE_NUMBER>
2020-03-30 05:09:51.537847: I tensorflow/core/common_runtime/bfc_allocator.cc:970] Stats:
Limit:<PHONE_NUMBER>
InUse:                     6698752
MaxInUse:                  6699264
NumAllocs:                     178
MaxAllocSize:               960000
2020-03-30 05:09:51.538711: W tensorflow/core/common_runtime/bfc_allocator.cc:429] *___________________________________________________________________________________________________
2020-03-30 05:09:51.540175: W tensorflow/core/common_runtime/base_collective_executor.cc:217] BaseCollectiveExecutor::StartAbort Internal: Dst tensor is not initialized.
[[{{node main_input/_8}}]]
Traceback (most recent call last):
Was it because I'm out of memory in the GPU? If so, please guide me to fix this.
Thanks.

Thanks a lot for your response

Your welcome :). You can make us happy with giving our project a star :D

Was it because I'm out of memory in the GPU? If so, please guide me to fix this.

Try reducing the batch_size, try with 1 and if it worked, increase it.
you can also mention @saminfatehir for more specific questions about the Keras model.

It worked :) Thanks a lot for helping.
But another issue has been occurred and the console log has been extracted as follows.
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\JetBrains\PyCharm 2019.1.3\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
File "C:\Program Files\JetBrains\PyCharm 2019.1.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:/Projects/personality-detection-Keras/conv_net_train_keras.py", line 316, in
results = train_conv_net(datasets, W, historyfile, i)
File "E:/Projects/personality-detection-Keras/conv_net_train_keras.py", line 176, in train_conv_net
callbacks=[my_logger, history])
File "C:\Python37\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "C:\Python37\lib\site-packages\keras\engine\training.py", line 1732, in fit_generator
initial_epoch=initial_epoch)
File "C:\Python37\lib\site-packages\keras\engine\training_generator.py", line 260, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
File "C:\Python37\lib\site-packages\keras\callbacks\callbacks.py", line 152, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "E:/Projects/personality-detection-Keras/conv_net_train_keras.py", line 52, in on_epoch_end
logging.info("epoch = %4d  loss = %0.6f  acc = %0.2f%%" % (epoch, curr_loss, curr_acc))
TypeError: must be real number, not NoneType
Was it because of the Keras version? I'm using the latest Keras version on Tensorflow 2.1.0.

Hmm, I think it may be because of the value of (epoch,curr_loss,curr_acc). Are you passing an appropriate dataset containing instances for both classes (0.1 of your training data is your validation dataset) ?
Can you trace in debug mode and specify which attribute is None(before the line of error, there are some evaluation results)?
It also maybe because of the version of keras or TF, but I am not sure at the moment.

It worked :) I changed the followings
curr_acc = logs.get('acc')
val_acc = logs.get('val_acc')
to
curr_acc = logs.get('accuracy')
val_acc = logs.get('val_accuracy')
As the next step, how should I test this model? As an example, when a sample sentence has been given as input, how this model work using the trained model? Please explain me the way of converting this model to real time context.
Thank you very much.

Actually, it needs some effort. First, you should save the final model instead of testing it on the test data.
Then you should prepare your test set. Note that you should feed the full test dataset to Mairesse and after that, you should run the process-data python file and use its extracted features as the input of the trained model.

Could you please elaborate more on this? Thanks a lot.

The problem is that this code is designed for testing on the Essays dataset. If you want to feed another data, you have two options:

Change the code so that it can read and process your data
Change your data so that it can be read by the code

In both of these directions, you need to extract mairesse psycholinguistics features. full instruction is available here. Then you need to feed your data into the model. First, you should save the trained model (I mentioned where you should do that). Second, since the code is designed for 10 fold cross-validation, change it in order to handle your test samples and preprocess it without dividing it into 10 folds. Third, you need to feed the preprocessed data (embeddings and extracted mairesse features) into the saved model to evaluate and predict the label.
Hope this helps.

@amirmohammadkz I am trying to run your code but I am having this error
File "/Volumes/SAMSUNG 1/gradiuation project/personality-detection-master-amirmohamed/conv_net_train.py", line 444, in
x = cPickle.load(open("essays_mairesse.p", "rb"))
UnpicklingError: invalid load key, '\x00'.
I am running on mac using spyder is this okay or should I switch to windows?
From my understanding to your description the first file I should run after preprocessing is conv_net_train_keras.py then conv_net_train.py am I right ?
thanks in advance

@amirmohammadkz I am trying to run your code but I am having this error
**File "/Volumes/SAMSUNG 1/gradiuation project/personality-detection-master-amirmohamed/conv_net_train.py", line 508, in
activations=[Sigmoid])
File "/Volumes/SAMSUNG 1/gradiuation project/personality-detection-master-amirmohamed/conv_net_train.py", line 143, in train_conv_net
dropout_rates=dropout_rate)
File "", line 106, in init
TypeError: 'zip' object is not subscriptable**
any idea how to fix this?

@amirmohammadkz I am trying to run your code but I am having this error
File "/Volumes/SAMSUNG/personality-detection-master-amirmohamed/conv_net_train.py", line 508, in
activations=[Sigmoid])
File "/Volumes/SAMSUNG 1/personality-detection-master-amirmohamed/conv_net_train.py", line 143, in train_conv_net
dropout_rates=dropout_rate)
File "", line 106, in init
TypeError: 'zip' object is not subscriptable
any idea how to fix this

@amirmohammadkz I am trying to run your code but I am having this error
File "/Volumes/SAMSUNG/personality-detection-master-amirmohamed/conv_net_train.py", line 508, in
activations=[Sigmoid])
File "/Volumes/SAMSUNG 1/personality-detection-master-amirmohamed/conv_net_train.py", line 143, in train_conv_net
dropout_rates=dropout_rate)
File "", line 106, in init
TypeError: 'zip' object is not subscriptable
any idea how to fix this

Thanks for using my forked repository. Are you using Python 2.7 ?

I was using 3.7, okay thanks I will try python 2.7

@amirmohammadkz  I have one more question

the terminal is stuck on this should the process terminate automatically or do I have to do it ?
can you refer me to any resources to understand the code implementation more (courses or videos)
Thanks in advance and sorry to bother you.

Actually I do not remember the exact time required for each step of the code. In the default setting, it requires 50 epochs to complete, and you need to wait for it. You can configure the code as I mentioned in the readme to reduce the training time. Besides, using a GPU will reduce the training time significantly. If you need to understand the implementation, the only thing I can refer to is the Theano website and the paper.

I tried running conv_net_train_keras.py on GPU google colab it kept crashing because of use of RAM, and using CPU  i got this error
WARNING:tensorflow:From /home/marwan/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/math_grad.py:1250: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
Epoch 1/50
2020-04-16 14:16:58.247660: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2020-04-16 14:16:58.294253: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2020-04-16 14:16:58.294538: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55ea03d730f0 executing computations on platform Host. Devices:
2020-04-16 14:16:58.294557: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): ,
OMP: Info #212: KMP_AFFINITY: decoding x2APIC ids.
OMP: Info #210: KMP_AFFINITY: Affinity capable, using global cpuid leaf 11 info
OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: 0-3
OMP: Info #156: KMP_AFFINITY: 4 available OS procs
OMP: Info #157: KMP_AFFINITY: Uniform topology
OMP: Info #179: KMP_AFFINITY: 1 packages x 2 cores/pkg x 2 threads/core (2 total cores)
OMP: Info #214: KMP_AFFINITY: OS proc to physical thread map:
OMP: Info #171: KMP_AFFINITY: OS proc 0 maps to package 0 core 0 thread 0
OMP: Info #171: KMP_AFFINITY: OS proc 2 maps to package 0 core 0 thread 1
OMP: Info #171: KMP_AFFINITY: OS proc 1 maps to package 0 core 1 thread 0
OMP: Info #171: KMP_AFFINITY: OS proc 3 maps to package 0 core 1 thread 1
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2783 thread 0 bound to OS proc set 0
2020-04-16 14:16:58.295681: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
2020-04-16 14:16:58.530731: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set.  If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU.  To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2812 thread 1 bound to OS proc set 1
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2813 thread 2 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2815 thread 4 bound to OS proc set 0
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2814 thread 3 bound to OS proc set 3
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2816 thread 5 bound to OS proc set 1
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2817 thread 6 bound to OS proc set 2
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2818 thread 7 bound to OS proc set 3
OMP: Info #250: KMP_AFFINITY: pid 2783 tid 2819 thread 8 bound to OS proc set 0
Segmentation fault (core dumped)
I read the instruction in README several times for the configuration part but I don't know if "Configure ~./theanorc:" it is not a command how can I execute it and also the GPU instructions.
Sorry again to bother you but I am lost and thanks for your help
@amirmohammadkz

but I tried running on mac I got this
**Epoch 1/50
39/39 [==============================] - 7761s 199s/step - loss: 0.7992 - accuracy: 0.5102 - val_loss: 0.6690 - val_accuracy: 0.5950
Traceback (most recent call last):
File "/Users/apple/Desktop/Marwan/personality-detection-master-3/conv_net_train_keras.py", line 311, in
results = train_conv_net(datasets, W, historyfile, i)
File "/Users/apple/Desktop/Marwan/personality-detection-master-3/conv_net_train_keras.py", line 171, in train_conv_net
callbacks=[my_logger, history])
File "/Users/apple/opt/anaconda3/envs/gp/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, *kwargs)
File "/Users/apple/opt/anaconda3/envs/gp/lib/python2.7/site-packages/keras/engine/training.py", line 1732, in fit_generator
initial_epoch=initial_epoch)
File "/Users/apple/opt/anaconda3/envs/gp/lib/python2.7/site-packages/keras/engine/training_generator.py", line 260, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
File "/Users/apple/opt/anaconda3/envs/gp/lib/python2.7/site-packages/keras/callbacks/callbacks.py", line 152, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/Users/apple/Desktop/Marwan/personality-detection-master-3/conv_net_train_keras.py", line 44, in on_epoch_end
curr_acc = logs.get('acc') * 100
TypeError: unsupported operand type(s) for : 'NoneType' and 'int'
the first epoch finished but then this error popped up

I tried running conv_net_train_keras.py on GPU google colab it kept crashing because of use of RAM, and using CPU i got this error

batch size: https://github.com/SenticNet/personality-detection/issues/32#issuecomment-605736810

but I tried running on mac I got this
the first epoch finished but then this error popped up

Have you tested this solution? https://github.com/SenticNet/personality-detection/issues/32#issuecomment-607526896

but I tried running on mac I got this
the first epoch finished but then this error popped up

Have you tested this solution? #32 (comment)

I'll try it now and the batch size
Again Thanks a lot for your response and help

Diffenitely its the batch size. Just reduce it to 1 and then increase until
you get the optimal value.
On Thu, Apr 16, 2020, 6:20 PM MarwanMo7amed<EMAIL_ADDRESS>wrote:

but I tried running on mac I got this
the first epoch finished but then this error popped up
Have you tested this solution? #32 (comment)
https://github.com/SenticNet/personality-detection/issues/32#issuecomment-607526896
I'll try it now and the batch size
Again Thanks a lot for your response and help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SenticNet/personality-detection/issues/32#issuecomment-614632401,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFM2PB7MFPTCC62PM7I7SLRM35KDANCNFSM4LUXWZCQ
.

but I tried running on mac I got this
the first epoch finished but then this error popped up

Have you tested this solution? #32 (comment)

I have already trained the model, but after training what should i do? is this project meant only for training or is there is any code for testing the trained model. conv_net_classes.py:- What is the use of this python file.

but I tried running on mac I got this
the first epoch finished but then this error popped up

Have you tested this solution? #32 (comment)

I have already trained the model, but after training what should i do? is this project meant only for training or is there is any code for testing the trained model. conv_net_classes.py:- What is the use of this python file.

It will automatically test the trained model on the dafult test set. you can change the test set if you want.https://github.com/SenticNet/personality-detection/issues/32#issuecomment-608388892

but I tried running on mac I got this
the first epoch finished but then this error popped up

Have you tested this solution? #32 (comment)

I have already trained the model, but after training what should i do? is this project meant only for training or is there is any code for testing the trained model. conv_net_classes.py:- What is the use of this python file.

It will automatically test the trained model on the dafult test set. you can change the test set if you want.#32 (comment)

then what is the use of conv_net_classes.py

As far as I can remember, it is about the implementation of layers.

@Souravcool1996 How did you train your model using conv_net_train.py or conv_net_train_keras.py? and how long did it take to finish

does any one know what is this error?
in conv_net_train_gpu.py
**TypeErrorTraceback (most recent call last)
 in ()
482                                       batch_size=1,
483                                       dropout_rate=[0.5, 0.5, 0.5],
--> 484                                       activations=[Sigmoid])
485         output = "cv: " + str(i) + ", perf: " + str(perf) + ", macro_fscore: " + str(fscore)
486         print(output)
18 frames
/usr/local/lib/python2.7/dist-packages/theano/tensor/type.pyc in filter_variable(self, other, allow_convert)
232             dict(othertype=other.type,
233                  other=other,
--> 234                  self=self))
235
236     def value_validity_msg(self, a):
TypeError: Cannot convert Type TensorType(float64, (False, True, False, False)) (of Variable Rebroadcast{?,1}.0) into Type TensorType(float32, (False, True, False, False)). You can try to manually convert Rebroadcast{?,1}.0 into a TensorType(float32, (False, True, False, False)).**

Diffenitely its the batch size. Just reduce it to 1 and then increase until you get the optimal value.
…

I reduced the batch size to 5 and at the end I got this, should I change the number of epochs also ?
@CyraxSector @amirmohammadkz
Epoch 44/50
404/403 [==============================] - 133s 330ms/step - loss: 1.4359e-05 - accuracy: 1.0000 - val_loss: 0.3891 - val_accuracy: 0.5536
Epoch 45/50
404/403 [==============================] - 132s 328ms/step - loss: 2.0959e-05 - accuracy: 1.0000 - val_loss: 0.5558 - val_accuracy: 0.5759
Epoch 46/50
40/403 [=>............................] - ETA: 1:52 - loss: 1.5645e-05 - accuracy: 1.0000Buffered data was truncated after reaching the output size limit.

Now its training smoothly isnt it. If not, yes reduce the epochs as well.
On Sat, Apr 18, 2020, 5:14 PM MarwanMo7amed<EMAIL_ADDRESS>wrote:

Diffenitely its the batch size. Just reduce it to 1 and then increase
until you get the optimal value.
… <#m_7197232379832028263_>
I reduced the batch size to 5 and at the end I got this, should I change
the number of epochs also ?
@CyraxSector https://github.com/CyraxSector @amirmohammadkz
https://github.com/amirmohammadkz
Epoch 44/50
404/403 [==============================] - 133s 330ms/step - loss:
1.4359e-05 - accuracy: 1.0000 - val_loss: 0.3891 - val_accuracy: 0.5536
Epoch 45/50
404/403 [==============================] - 132s 328ms/step - loss:
2.0959e-05 - accuracy: 1.0000 - val_loss: 0.5558 - val_accuracy: 0.5759
Epoch 46/50
40/403 [=>............................] - ETA: 1:52 - loss: 1.5645e-05 -
accuracy: 1.0000Buffered data was truncated after reaching the output size
limit.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SenticNet/personality-detection/issues/32#issuecomment-615849968,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFM2PETOOQ7A7MPYARE2CLRNGHB5ANCNFSM4LUXWZCQ
.

Now its training smoothly isnt it. If not, yes reduce the epochs as well.
…

does this message mean the the output is correct ?
"Buffered data was truncated after reaching the output size limit."
also "history_main_model_attr_0_w2v.txt" and "perf_output_main_model_0_w2v.txt" files are empty, the only file have data is the log file.
@CyraxSector and thanks for your response

Those two files should not be empty. Seems still there are some minor
issues. Please try setting the followings.
Epoches - 1
Batch_size - 1
Embedding - 300
Cheers!
On Sat, Apr 18, 2020, 8:39 PM MarwanMo7amed<EMAIL_ADDRESS>wrote:

Now its training smoothly isnt it. If not, yes reduce the epochs as well.
… <#m_1157241055938692158_>
does this message mean the the output is correct ?
"Buffered data was truncated after reaching the output size limit."
also "history_main_model_attr_0_w2v.txt" and
"perf_output_main_model_0_w2v.txt" files are empty, the only file have data
is the log file.
@CyraxSector https://github.com/CyraxSector and thanks for your response
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SenticNet/personality-detection/issues/32#issuecomment-615886791,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFM2PG6AA6OO44MVPGLWR3RNG7CNANCNFSM4LUXWZCQ
.

okay thanks I'll try

Now its training smoothly isnt it. If not, yes reduce the epochs as well.
…

does this message mean the the output is correct ?
"Buffered data was truncated after reaching the output size limit."
also "history_main_model_attr_0_w2v.txt" and "perf_output_main_model_0_w2v.txt" files are empty, the only file have data is the log file.
@CyraxSector and thanks for your response

That's because the file is already open. In logging scenario, the code manages the errors and allows you to monitor the logs at any time, but for the result, result files should be closed at the end of the training in order to be available.

Now its training smoothly isnt it. If not, yes reduce the epochs as well.
…

does this message mean the the output is correct ?
"Buffered data was truncated after reaching the output size limit."
also "history_main_model_attr_0_w2v.txt" and "perf_output_main_model_0_w2v.txt" files are empty, the only file have data is the log file.
@CyraxSector and thanks for your response

That's because the file is already open. In logging scenario, the code manages the errors and allows you to monitor the logs at any time, but for the result, result files should be closed at the end of the training in order to be available.

I don't get it what should I change ?
ofile.write(str(results))
historyfile.close()
these lines should be closing the files am I right ?
@amirmohammadkz

Yes. I meant you need to wait until the code completes its task successfully. after that history file will be closed.

Yes. I meant you need to wait until the code completes its task successfully. after that history file will be closed.

But I think this message appeared then the program was terminated
"Buffered data was truncated after reaching the output size limit."
but I'll try to run again thanks

Try this: https://stackoverflow.com/a/55507901/5661543

@amirmohammadkz I've tested the model successfully by following all your steps. As an example, when a sample sentence has been given as input, it will be evaluated. Thanks a lot for all your guidance. I'll make the PR ASAP.

@amirmohammadkz I've tested the model successfully by following all your steps. As an example, when a sample sentence has been given as input, it will be evaluated. Thanks a lot for all your guidance. I'll make the PR ASAP.

How you have tested the model. As described in the comments training and testing will be done by one code.

@amirmohammadkz I've tested the model successfully by following all your steps. As an example, when a sample sentence has been given as input, it will be evaluated. Thanks a lot for all your guidance. I'll make the PR ASAP.

Happy to hear that! Thanks a lot!

@CyraxSector are you going to publish the code of the method you used in testing?

can anyone tell me where I can understand the concept pf "Generator" class and why is the input conv3D not 2D ? @CyraxSector @amirmohammadkz

Hello,
If you are looking for a faster version of personality detection, our new paper, and its code is available here:
https://github.com/amirmohammadkz/personality_detection
This code is significantly faster and can be run on a regular computer/laptop. The accuracies are higher too.

@amirmohammadkz
I am getting this error when I was trying to load 'GoogleNews-vectors-negative300-SLIM.bin'. (Code given below)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-21-b567896a8aa6> in <module>
     14 print('vocab size: ' + str(len(vocab)))
     15 print('max sentence length: ' + str(max_l))
---> 16 w2v = load_bin_vec(wv_from_bin, vocab)
     17 print(w2v)
     18 print('word2vec loaded!')

<ipython-input-20-59822c213c28> in load_bin_vec(fname, vocab)
     49     """
     50     word_vecs = {}
---> 51     with open(fname, 'rb') as f:
     52         header = f.readline()
     53         vocab_size, layer1_size = map(int, header.split())

TypeError: expected str, bytes or os.PathLike object, not Word2VecKeyedVectors

Code is
w2v_file = 'GoogleNews-vectors-negative300-SLIM.bin'
revs, vocab = build_data_train_test(data_train, train_ratio=0.6, clean_string=True)
max_l = np.max(pd.DataFrame(revs)['num_words'])
print('data loaded!')
print('number of sentences: ' + str(len(revs)))
print('vocab size: ' + str(len(vocab)))
print('max sentence length: ' + str(max_l))
w2v = load_bin_vec(w2v_file, vocab)
print(w2v)
print('word2vec loaded!')
print('num words already in word2vec: ' + str(len(w2v)))

add_unknown_words(w2v, vocab)
W, word_idx_map = get_W(w2v)
cPickle.dump([revs, W, word_idx_map, vocab], open('imdb-train-val-testN.pickle', 'wb'))
print('dataset created successfully!')

Any help or guidance is highly appreciated.

@addy1997 Have a look at my forked repo. I think it will be a better starting point.
https://github.com/amirmohammadkz/personality-detection

@addy1997 Have a look at my forked repo. I think it will be a better starting point.
https://github.com/amirmohammadkz/personality-detection

Thanks it worked

I want to know why I didn't get anything after 50 epochs and instead started over again. Thank you very much for your reply
epoch: 47, training time: 9885.98 secs, train perf: 70.90 %, val perf: 55.60 %
epoch: 48, training time: 8464.05 secs, train perf: 82.95 %, val perf: 56.80 %
epoch: 49, training time: 8464.44 secs, train perf: 62.60 %, val perf: 53.20 %
epoch: 50, training time: 8462.59 secs, train perf: 93.75 %, val perf: 58.40 %
cv: 0, perf: 0.5301724137931034, macro_fscore: 0.5282001529879289
[('image shape', 153, 300), ('filter shape', [(200, 1, 1, 300), (200, 1, 2, 300), (200, 1, 3, 300)]), ('hidden_units', [200, 200, 2]), ('dropout', [0.5, 0.5, 0.5]), ('batch_size', 50), ('non_static', False), ('learn_decay', 0.95), ('conv_non_linear', 'relu'), ('non_static', False), ('sqr_norm_lim', 9), ('shuffle_batch', True)]
... training
epoch: 1, training time: 8432.78 secs, train perf: 52.90 %, val perf: 54.00 %
Test result: accu: 0.5483870967741935, macro_fscore: 0.3541666666666667
tp: 136.0 tn:0.0 fp: 112.0 fn: 0.0
@addy1997 @CyraxSector


Syncer class for Python Wrapper

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(<IP_ADDRESS>)

Operating System & Version
{Ubuntu 16.04}

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC

SDK Version
{ 2.16.2 }

Language
{python }

Segment
{multicam}

Issue Description
Will there ever be a syncer class in the python wrapper?
I am working on a multicam setup for gesture recognition, and need to be able to save sync'd footage from the two cameras for training, however it doesn't look like HW sync is possible with the python wrapper.

Hi @General-Ilya
Sorry, it might be a bit confusing - you can enable hardware sync using set_option API. The syncher class provides software sync, bundling everything up at API level. And for now, it can't really help with multi-camera sync (we are working in this direction however). The main problem is that once cameras are in sync, their hardware-timestamps are no longer reliable and the frame-number can be flaky at times (it is not a hardware mechanism but rather firmware counter). So our best recommendation for multicamera for now is to create several pipelines, poll them using poll_for_frames and take the latest frameset from each. On Linux this works pretty well, because we have complete control over all queues involved. That said, regularly synchronizing the two cameras clocks is what we plan to do.

Ah I see; is there any example code I can look at for multicam hardware sync on python? I can't seem to find much of anything on it.

Setting camera to Master -
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
>>> pipe = rs.pipeline()
>>> prof = pipe.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Camera already streaming
>>> prof = pipe.start()
>>> dev = prof.get_device()
>>> ds = dev.query_sensors()[0]
>>> ds.set_option(rs.option.inter_cam_sync_mode, 1)
>>> ds.get_option(rs.option.inter_cam_sync_mode)
1.0
>>>

For Slave - set the same option to 2

Спасибо!

Setting camera to Master -
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
>>> pipe = rs.pipeline()
>>> prof = pipe.start()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Camera already streaming
>>> prof = pipe.start()
>>> dev = prof.get_device()
>>> ds = dev.query_sensors()[0]
>>> ds.set_option(rs.option.inter_cam_sync_mode, 1)
>>> ds.get_option(rs.option.inter_cam_sync_mode)
1.0
>>>

I've found that changing the sync_mode option after starting the pipeline doesn't change the camera behavior until you start the pipeline again.
For me, I do

ctx=rs.context()
devices=ctx.query_devices()
dev=devices[cameraIndex]
device.first_depth_sensor().set_option(rs.option.inter_cam_sync_mode, targetSyncMode)
follow by codes to start your pipeline

Hi @General-Ilya
Sorry, it might be a bit confusing - you can enable hardware sync using set_option API. The syncher class provides software sync, bundling everything up at API level. And for now, it can't really help with multi-camera sync (we are working in this direction however). The main problem is that once cameras are in sync, their hardware-timestamps are no longer reliable and the frame-number can be flaky at times (it is not a hardware mechanism but rather firmware counter). So our best recommendation for multicamera for now is to create several pipelines, poll them using poll_for_frames and take the latest frameset from each. On Linux this works pretty well, because we have complete control over all queues involved. That said, regularly synchronizing the two cameras clocks is what we plan to do.

Is using poll_for_frames for each device and taking the Last arrived Frame still the recommended approach when using multiple devices and streaming them in python?


App Crashes once opening camera

Hey!
had a look and saw this similar issue here: https://github.com/PantryParty/pantry_party/issues/93
I open the app, click the QR code to scan the API and it crashes immediatly.
IOS 14.4.1
Iphone 12
Let me know if you require additional info!

Sorry about that. Version 1.2.2 is pending Apple's approval and should
fix the issue.
On Mon, Mar 22, 2021, 9:20 PM userbradley @.***> wrote:

Hey!
had a look and saw this similar issue here: #93
https://github.com/PantryParty/pantry_party/issues/93
I open the app, click the QR code to scan the API and it crashes
immediatly.
IOS 14.4.1
Iphone 12
Let me know if you require additional info!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PantryParty/pantry_party/issues/114, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABQ6MQ3BEVX6TSH2XD2QILTE7UF5ANCNFSM4ZUGKR2Q
.

Hey 1.2.2 was just approved and should be available for download. Can you give the camera a try?

Hey!
This works! Thanks for the quick turn around!


multiple async libraries used

It seems that async-std, and dependencies async-global-executor, async-executor, async-mutex, async-io, async-lock, gloo-timers, kv-log-macro and wasm-bindgen-futures, are used only at server/src/handlers/upload.rs.
Perhaps file size and compile time would improve if reusing some of the libraries used elsewhere in the code?

Good catch! It's completely unnecessary, as all calls use .await and none are actually async.

You removed the use of async-std but still have it declared as a dependency in the Cargo.toml file.

...but thanks for the swift fix!

whoops :')

On my system that change reduced file size by 290kb, by no longer compiling in these 22 crates:

async-channel v1.6.1
async-executor v1.4.1
async-global-executor v2.0.3
async-io v1.6.0
async-lock v2.5.0
async-mutex v1.4.0
async-std v1.11.0
async-task v4.1.0
atomic-waker v1.0.0
blocking v1.1.0
cache-padded v1.1.1
concurrent-queue v1.2.2
ctor v0.1.12
event-listener v2.5.2
fastrand v1.4.0
futures-lite v1.12.0
kv-log-macro v1.0.7
parking v2.0.0
polling v2.2.0
socket2 v0.4.4
value-bag v1.0.0-alpha.8
waker-fn v1.1.0

:-)

Yay! 😁
On Sun, 3 Apr 2022, 12:05 Jonas Smedegaard, @.***>
wrote:

On my system that change reduced file size by 290kb, by no longer
compiling in these 22 crates:

async-channel v1.6.1
async-executor v1.4.1
async-global-executor v2.0.3
async-io v1.6.0
async-lock v2.5.0
async-mutex v1.4.0
async-std v1.11.0
async-task v4.1.0
atomic-waker v1.0.0
blocking v1.1.0
cache-padded v1.1.1
concurrent-queue v1.2.2
ctor v0.1.12
event-listener v2.5.2
fastrand v1.4.0
futures-lite v1.12.0
kv-log-macro v1.0.7
parking v2.0.0
polling v2.2.0
socket2 v0.4.4
value-bag v1.0.0-alpha.8
waker-fn v1.1.0

:-)
—
Reply to this email directly, view it on GitHub
https://github.com/joepio/atomic-data-rust/issues/366#issuecomment-1086827883,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQVBEPHCUFZKZVHY77QXADVDFUOJANCNFSM5SMCMEBQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


ImportError: cannot import name '_generate_dropout_ones'

I'm using Keras 2.1.5 but i am getting this error when I try to run IndRNN:
ImportError                               Traceback (most recent call last)
 in ()
11 from keras.legacy import interfaces
12 from keras.layers import RNN
---> 13 from keras.layers.recurrent import _generate_dropout_mask, _generate_dropout_ones
14
15 class IndRNNCell(Layer):
ImportError: cannot import name '_generate_dropout_ones'

I find the reason of this problem is keras2.1.6 remove _gemerate_dropout_ones,and it out of index

I think u can try using keras2.1.5, that can run.

generate_dropout_ones has been depreciated and K.ones_like() is used in turn. Refer issue #9892 in keras.
Changes have already been made in the code and this issue might now be closed if you deem fit. @titu1994


[EventRequest] Codeunit 80 “Sales Post”, ShouldPostWhseJnlLine [Local]

Please add a new publisher event OnBeforeCheckShouldPostWhseJnlLine at the start of the function ShouldPostWhseJnlLine in codeunit 80

Please add the corresponding Integration Event In the bottom of the Codeunit.

This event already implemented

Which version was that being implemented?


jsdom + PhantomJS

Latest PhantomJS 2.1 is built on top of Qt.5.5 WebKit. Will jsdom run on it?

I don't know! You can try it and report back?
Closing since this is not an issue with jsdom.

@domenic Ok I will try, I'm aware that Qt 5.5 is using an old version of WebKit (before ECMA6 for sure), but so far I'm not sure which version is, so only option is to try it!. I will report back then.


tb --help should be aliased to tb -h

Is your feature request related to a problem? Please describe.
$ tb -h doesn't launch the help menu.
Describe the solution you'd like
A clear and concise description of what you want to happen.
$ tb -h should launch the help menu.

Fixed on #14.


Crash in AFURLSessionManager sometimes.

I'm using the latest version 3.2.1 (with iOS 12) and encountered crash sometimes. I'm not sure the condition when it happened (maybe when network connection is bad). Below is crash log from Crashlytics:
3  0x103130040 thunk for @escaping @callee_guaranteed (@guaranteed NSURLSessionDataTask?, @guaranteed Error) -> () (<compiler-generated>)
4  0x10331b3f8 __116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke.108 (AFHTTPSessionManager.m:301)
5  0x10332e160 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.117 (AFURLSessionManager.m:248)
6  libdispatch.dylib              0x1c7af8a38 _dispatch_call_block_and_release + 24
7  libdispatch.dylib              0x1c7af97d4 _dispatch_client_callout + 16
8  libdispatch.dylib              0x1c7aa6e4c _dispatch_main_queue_callback_4CF$VARIANT$mp + 628
9  CoreFoundation                 0x1c8049ec0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
10 CoreFoundation                 0x1c8044df8 __CFRunLoopRun + 1924
11 CoreFoundation                 0x1c8044354 CFRunLoopRunSpecific + 436
12 GraphicsServices               0x1ca24479c GSEventRunModal + 104
13 UIKitCore                      0x1f44b0b68 UIApplicationMain + 212
14 0x102d5d7c8 main (main.m:17)
15 libdyld.dylib                  0x1c7b0a8e0 start + 4

Anyone face the same issue?

Hello,
Facing ¿same issue? here trying to do a POST call to https...
Only happens sometimes on production only, and for some reason Firebase shows hidden on most of the lines.
It is not reproducible...
It crashes in a critical part of our application, please help!
@thynguyen248 did you found the root cause?
In order to debbug better, we don't know how to "unhidde" the file names "_hidden", if someone has the knowledge the help would be really appreciated, only happens in this crash...
Firebase crash log:
Crashed: com.apple.main-thread
0  UVEMobile                      0x102532574 _hidden#2531_ (__hidden#1344_)
1  UVEMobile                      0x102537e5c _hidden#3263_ + 426 (__hidden#3522_:426)
2  UVEMobile                      0x1025368e0 _hidden#3241_ (__hidden#1344_)
3  AFNetworking                   0x102a57be4 __116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke_2 + 301 (AFHTTPSessionManager.m:301)
4  AFNetworking                   0x102a6a048 __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.104 + 248 (AFURLSessionManager.m:248)
5  libdispatch.dylib              0x186be8a38 _dispatch_call_block_and_release + 24
6  libdispatch.dylib              0x186be97d4 _dispatch_client_callout + 16
7  libdispatch.dylib              0x186b96e50 _dispatch_main_queue_callback_4CF$VARIANT$mp + 628
8  CoreFoundation                 0x18713c32c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
9  CoreFoundation                 0x187137264 __CFRunLoopRun + 1924
10 CoreFoundation                 0x1871367c0 CFRunLoopRunSpecific + 436
11 GraphicsServices               0x18933779c GSEventRunModal + 104
12 UIKitCore                      0x1b3ab5c38 UIApplicationMain + 212
13 UVEMobile                      0x10251b8d8 main + 26 (__hidden#1542_:26)
14 libdyld.dylib                  0x186bfa8e0 start + 4

Cheers!


Relational storage and time-travel query support for entities

Upone @leoyvens's request, I am consolidating PR #1122 and #1129 into this one PR. I rebased everything to latest master.
This PR adds a new method for storing entities by generating a full relational schema for a subgraph and writing/querying entities from it rather than storing them as JSONB, following the plan in #1020. History is tracked by keeping old and new versions of entities in the same table, but tagging them with the block range for which they are valid as outlined in issue #813. Since the history tracking requires that we do not modify an entity more than once per block, and since we need to avoid unnecessarily creating versions when an entity has not changed, this PR also adds a notion of an EntityCache which addresses #1128.
The PR leaves split entity storage as the default; new subgraphs are only created using relational schemas if the environment variable RELATIONAL_SCHEMA exists (doesn't matter what value it has)

Running cargo test against this branch will use the existing JSONB storage for the tests. To run all tests against relational storage, run the tests with RELATIONAL_SCHEMA=on cargo test. When switching between the two storage schemes in running tests, it is best to recreate the test database as not all tests clean up the subgraphs they create.

In Mapping::update it seems to me that we could replace ClampRangeQuery/InsertQuery/CopyQuery with a single query, which would first clamp the old version but RETURNING the values from it, and then INSERT a new version, preferring the values coming from the entity over those returned from the update.

In Mapping::update it seems to me that we could replace ClampRangeQuery/InsertQuery/CopyQuery with a single query, which would first clamp the old version but RETURNING the values from it, and then INSERT a new version, preferring the values coming from the entity over those returned from the update.

I didn't do it that way since I don't want to ship data unnecessarily from the db to the app and back (which I think is what you are suggesting) so that for entities with large attributes a change to something small (like a count) doesn't require sending large amounts of data back and forth. We could avoid the shipping back and forth with a CTE, but I was trying to not be too fancy in these queries. The CTE would look something like
  with old as (
  update things
     set block_range = ...
   where id = .. and upper_inf(block_range)
   returning id, attr1, attr2, ..)
  insert into things (id, attr1, attr2, .., block_range)
  select old.id, old.attr1, 'new_value2' as attr2, ..., int4range('block', null) as block_range

I don't think it's much of a win here and looks a lot more complicated.

@lutter Yes that CTE is what I meant. It seems to be that using a single code path for insertion would be a net reduction of complexity, even if the unified SQL is more complex. Reducing one roundtrip to the DB from the clamping could be a small performance improvement.

@leoyvens Commit 1692e6e8 contains the changed update logic

The commits b70b9bdb..9e5e51dd rename the modules and the Mapping structs as we discussed

Rebased to latest master


parse error

I'm moving an app I built from jQuery + jQuery Mobile to Framework7. The apps relies on a number of ajax requests to get json data from my server. When using the following code, I only get "parseerror" and nothing to work with.
$$.ajax({
  url: 'https://linktomywebsite.com/search',
  dataType: 'json',
  method: 'post',
  data: {
    latitude: localStorage.getItem('latitude'),
    longitude: localStorage.getItem('longitude'),
    distance: localStorage.getItem('distance'),
    mode: (localStorage.getItem('fietsroutes')=='ja' ? 'bicycling' : 'driving')
},
success: function(result, status, xhr) {
},
error: function(xhr, status) {
  console.log(status);
},
statusCode: {
    404: function(xhr) {
      console.log('leftpanel 404');
    }
  }
})

Any idea what could be causing this?

Would be good to see actual server response

Closing as no further response

Example with parseerror: https://192kb.ru/xpeers/
To get error click on any card.

finally got: error appears when success handler has an js error like function is not defined or so.


created scene id is 'NaN'

I'm using node-hue-api 1.0.3 and I have not set a custom scene id prefix.
When calling api.createScene, the resulting id is a NaN, whereas this should be a unique string.
Example result json:
{ lights: [ '4', '5', '6' ], id: 'NaN' }
I think the problem is in
HueApi.prototype._getScenePrefix = function () {
    return this._getConfig().scene_prefix;
};

I think it should be
HueApi.prototype._getScenePrefix = function () {
    return this._getConfig().scenePrefix;
};

Thanks, good find, my test coverage was not sufficient, I have now improved this.

thank you for the quick fix!


Z-Wave Electric Meter

Neo Electronics NAS-WR01ZE Power Plug
Similar to the door lock, it has features that report kWh, Watts, Volts and Amps.
Device Type Strings for the features is Z-Wave Electric Meter.
The Power Management Notification feature is Z-Wave Notification.

Awesome!!!


Trivial change to trigger rebuild and publish

Recent changes to this repo haven't actually been published because the build was failing. Merging this PR should fix a few things including the binder links in the published cookbook.

The build fails here as expected because we can't pass secrets from PRs. I will merge this and make sure it builds properly.


Support for HCL2 files

PackerBuild@1 task throws an error when using HCL2 templates as it tries to run "packer fix" command, that is only supported for json files

Thank you for your feedback. We are migrating this issue to our new documentation feedback system, and closing this issue.
As we phase out GitHub issues for this repository, we encourage you to propose changes using public PRs or submit feedback through our updated control at the top of the page. For more information on our feedback systems, see https://aka.ms/contentuserfeedback.


Pvc options for RSC and RSPM

add volumeName and selector options for sharedStorage on both the Connect and RSPM charts
This is particularly useful for mapping PVCs to a particular PV

Woops 🙈 Yes. When possible haha. I did that for the Workbench implementation and forgot it here. Thanks for catching!


pin-project 0.4.11 breaks hyper

Hello, hyper uses #[project] on an expression https://github.com/hyperium/hyper/blob/v0.13.5/src/server/conn.rs#L926 and https://github.com/hyperium/hyper/blob/v0.13.5/src/server/shutdown.rs#L65 which now causes a compilation error with pin-project 0.4.11.
Here is one of your test cases adapted to demonstrate the issue, this code works fine with 0.4.10 but not 0.4.11:
#[project]
fn foo() {
    #[pin_project]
    enum Enum<A> {
        Variant(#[pin] A),
    }

    let mut x = Enum::Variant(1);
    let mut x = Pin::new(&mut x).project();

    let asdf = {
        #[project]
        match x {
            Enum::Variant(x) => {}
        }
    };

    Some(asdf);
}

Error:
error[E0658]: attributes on expressions are experimental
  --> src/main.rs:16:9
   |
16 |         #[project]
   |         ^^^^^^^^^^
   |
   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
   = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable

Thanks for the reporting! I yanked 0.4.11. I'll look into this.

provisional measures soultion:
...
[dependencies]
pin-project = "=0.4.10"
...

I released 0.4.12 based on 0.4.10. (It should be fixed by updating Cargo.lock: cargo update)

Ok, this is due to #197 skips visiting initializer expression on local (will be fixed in #207).

Oops, it actually seems to skip all expressions visits nested by expressions, not just local.
Either way, #207 should fix it.

Thank you for the quick fix!


error FS0193: internal error: No access to the given key

When using the FSharp.Compiler.Tools <IP_ADDRESS> fsi.exe on a system that has no /etc/mono/registry directory we get
> ubuntu@ip-172-31-27-247:~/fsharp$ mono packages/FSharp.Compiler.Tools.<IP_ADDRESS>/tools/fsi.exe

error FS0193: internal error: No access to the given key

The workaround is to use sudo to run the command or create that directory.  However this should not be needed - it should be possible to run that fsi.exe without crashing on a non-sudo account

Fixed in Compiler Tools <IP_ADDRESS>


How do i implement the ACE implementation extending the admin/change_form.html

Hello, I'm stucked, I need to implement this Html but I don't know the folder to place it
{% extends "admin/change_form.html" %}
{% load i18n admin_urls %}
{% block extrahead %}
{{ block.super }}

{% endblock %}

resolved


Why do you need to park? - is it possible to make the text more similar to the prototype?

We reviewed with the business lead and she asked us to change it

@EUzkuraityte @joanneSouthern please see my feedback note on this too.

Here are lizzie's comments:
/resident-choice Please edit the content so that it reflects the prototype https://verify-local-patterns.herokuapp.com/service-patterns/parking-permit/example-service/resident-choice
'Morpeth parking zone' should be the link so there's no need for 'Check the permit area map'. Also no need to introduce the choices with Select your permit type.

The link is separate as its a button converted to a link as the forms don't navigate to different pages in a traditional html url and the text is created via a stored procedure in the database, so the post code doesn't pull through as its not stored in the database, just the uprn.


script/web-server.js File not found in root folder

I have follow all steps but unable to find ./scripts/web-server.js file
Was trying to deploy it on heroku

Maybe you should check the branch v.0.10x
The master branch does not have the scripts folder.

Indeed the file is not provided as part of the seed. You need to provide it yourself.


Flutter App crashes when invoking FaceDetector.processImage(InputImage)

My Flutter App is crashing when faceDetector.processImage(inputImage) is being called. I am not getting any error in log, the camera freezes and the app crashes after 2-3 seconds. What is the cause of the issue, and how to resolve it?
I am using google_mlkit_face_detection: ^0.6.0

Try latest version, and run our example app to see how to consume the plugin.


LFS-805: Users should be able to change their own passwords

Create a new user at http://localhost:8080/content.html/admin/userlist.
Log in as that user, go to http://localhost:8080/content.html/admin/userlist, and then you can change your password.

tested - all good


Cleanup pullSchema2

- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Qiang Huang<EMAIL_ADDRESS>

LGTM
This is left over from when Windows needed to pull the image config before pulling layers. It no longer does this, so the cleanup makes sense.

LGTM


Feat/firebase auth

Added Angular fire.
Connected login to firebase auth.

Wrong branch selected to merge.


Proper XML parsing

Hi, is there interest in properly parsing the XML documents received through the wire or is it too much overkill?

I would like to truly and fully support the protocol. However the state of Rust & XML isn't too good at the moment. There's a good xml tokenizer library, but no DOM library (it's basically impossible to fully implement on stable, because the DOM allows multiple owners & mutable pointers, and Weak pointers are unstable). Also there's no soap library, because it needs a DOM, obviously.
I'm not working on this full time, obviously, but I'd like it to grow and become the reference for IGD in rust. I started working on a partial DOM implementation, and then I'll work on a SOAP library.

but I'd like it to grow and become the reference for IGD in rust

Interesting. Looks promising.
:)
I may do a PR for issue #1 soon.

This can be closed now.


1.18.2 After a single person joins the world, it becomes a saved world crash, and only by uninstalling indium can it load normally

1.18.2The version joins the world and then becomes a saved world, and then crashes only uninstalling indium to continue, I don't know what the reason is, hope to help this is the log
latest.log
rei.log
minecraft-exported-crash-info-2022-08-08T22-39-16.zip

Try removing DashLoader?

The author, I've tried this, and this is still falling apart.

尝试删除DashLoader？

Author: I tried this, but it still collapsed

Please send the crash report / log with DashLoader removed.

请在删除 DashLoader 的情况下发送崩溃报告/日志。
minecraft-exported-crash-info-2022-08-09T11-51-25.zip
2022-08-08-2.log.gz
latest.log
rei.log
Please look

Try updating Iris to the latest version for 1.18.2?

尝试将 Iris 更新到 1.18.2 的最新版本？

Thanks for the success of your reminder thanks for your reminder you can end this thing up

The author, I've tried this, and this is still falling apart.
---Original---
From: @.>
Date: Tue, Aug 9, 2022 01:27 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [comp500/Indium] 1.18.2 After a single person joins the world, itbecomes a saved world crash, and only by uninstalling indium can it loadnormally (Issue #133)
Try removing DashLoader?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Please send the crash report / log again.


Versions page: newest version should be on top

On http://lib.haxe.org/p/lime/versions/ for example, you have to scroll down quite a bit to get to the current version. That seems counter-intuitive, I think the sorting should be inverted.

Agreed

Deployed :)

That was definitely a lot quicker than expected! :+1:


[$1000] Mweb/safari - Chat - User lands in LHN if browser forward to profile details & browser back

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Precondition - User is logged in and has a chat available in account

Open http://staging.new.expensify.com/
Open any chat
Tap on chat header to open user profile
Tap on "back" browser button ◀
Tap on "Forward" browser button ▶
Tap on "back" browser button ◀
Land in LHN (instead of chat convo like the first time / as expected)

Expected Result:
User lands in chat conversation after tapping "back"
Actual Result:
User lands in LHN after tapping "back"
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[x] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?:  Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/229649771-a6d7d806-2a11-4eee-a353-1c85bbcca9e0.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01114795d5057818f6
Upwork Job ID:<PHONE_NUMBER>608614912
Last Price Increase: 2023-04-12

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@michaelhaxhiu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

hmm is this a feature or a bug.

Looks like something related to react-navigation may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.
Feel free to drop a note in #expensify-open-source with any questions.

I reproduced. Let's go External with this!

Job added to Upwork: https://www.upwork.com/jobs/~01114795d5057818f6

Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

Triggered auto assignment to @grgia (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

I think we can close this honestly, there alrady are similar issues reported, this is just specific to the details page.
Thanks for raising this @aimane-chnaif I will go ahead and close this, feel free to reopen/comment

@michaelhaxhiu removed the job posting btw


Unable to disable fullScreenErrors (webpack 4)

Hello,
I am using the spfx-fast-server in versions for spfx 1.15.2 and 1.16.1.
Is there any way, how to disable FullScreenErrors? The configuration does not seem to work. I tried to find this topic in general webpack4 issue list, but I was not able to find proper fix.
I like the FullScreenErrors in general, but there is an annoying error message presented on every reload for our tenant connected with Cortex which I am not able to influence from my position. (=> I have to close the webpack fullscreen error even without an error in my code)

Hello,
the error on your screenshot is from dev console and not from SPFx. Do you see this error as a full screen error?

Hello,
Thanks for additional question. I tried the behaviour on empty SPFx solutions.
It might be connected with experimental "hotRefresh": true configuration :-(.

SPFx 1.15.2

[x] "clean" - OK
[ ] "hotRefresh - shows error, does not matter if I set true or false to fullScreenErrors

SPFx 1.16.1

[x] "clean" - OK
[ ] "hotRefresh" - I was not able to start the serve and test my issue

Sorry, I was not aware this is connected to experimental hotRefresh feature. Not sure if there is anything to do about....

No problem, experimental function is not something you should spent much time.
Thanks for your effort, let me close this issue.


FIX-#4966: Fix to_timedelta to return Series instead of TimedeltaIndex

What do these changes do?

Added to_timedelta implementation to general.py instead of importing and using pandas version, which previously returned the wrong output when provided a Modin Series.
Added test to confirm functionality of to_timedelta on Modin Series.

[x] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date
[x] added (Issue Number: PR title (PR Number)) and github username to release notes for next major release

I messed up the branch by merging instead of rebasing. Will be moving changes to a different PR.


Cpu scheduling algorithms

i want to Add C++ implementations of FCFS, SJF, Priority, and Round Robin scheduling algorithms to contribute to CPU scheduling functionality..plz assign me

@aman247av plz assign it to me


Remove google css stylings

Probably in paper input

@xardass is something blocking for you to take this issue?

Please clean up this issue and define which epic it belongs to or what the right label is.


docs: add description about debugging hours

Added the debugging hours as proposed in today's office hours!

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: fntlnz
If they are not already assigned, you can assign the PR to them by writing /assign @fntlnz in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: cb76e64461b01739eee94ca9222b870e4fa80bdb

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: markyjackson-taulia
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: fntlnz
If they are not already assigned, you can assign the PR to them by writing /assign @fntlnz in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: fntlnz
If they are not already assigned, you can assign the PR to them by writing /assign @fntlnz in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: fntlnz
If they are not already assigned, you can assign the PR to them by writing /assign @fntlnz in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: fa20ff3e1114324313cfc3c463795dbdd773806e

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/approve
/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Even if a condition on a module is false the parameters are still evaluated which can cause deployment failures

Bicep Version 0.9.1
It appears that if I have module A which has a condition on it and Module B which has the same condition but also a dependency on Module A where it's referencing an output value from Module A. If Module A doesnt get deployed Module B causes a deployment failure because it's trying to resolve the output from Module A even though neither module should deploy.
Sample Template:
param location string ='eastus'

var shouldAddDiagosticMonitoring = false

// Generate the virtual machine name from the owner, env, resource description, and region code
var diagnosticStorageName = 'dptsltestvmdiagst'

module diagnosticStorage<EMAIL_ADDRESS>= if (shouldAddDiagosticMonitoring) {
  name: 'DiagnosticStorage_Creation'
  params: {
    diagnosticStorageAccountName: diagnosticStorageName
    location: location
  }
  scope: resourceGroup()
}

module addDiagnostics<EMAIL_ADDRESS>= if (shouldAddDiagosticMonitoring) {
  name: 'Add_Diagnostics'
  dependsOn:[
    diagnosticStorage
  ]
  params:{
    workflow: workflow
    diagnosticsStorageAccountName: diagnosticStorage.outputs.diagnosticStorageAccountName
    location: location
  }
  scope: resourceGroup()
}

If I change   diagnosticsStorageAccountName: diagnosticStorage.outputs.diagnosticStorageAccountName to be   diagnosticsStorageAccountName: diagnosticStorageName the deployment works just fine (nothing is deployed but nothing fails either)
The above sample produces the following error:
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"NotFound","message":"{\r\n  "error": {\r\n    "code": "DeploymentNotFound",\r\n    "message": "Deployment 'DiagnosticStorage_Creation' could not be found."\r\n  }\r\n}"}]}}

duplicate #1492


Quick improvement suggestion: Reduce diff size with --ignore-all-space

First, thanks a lot for building this tool!
The current limitation of 200 lines could be improved by adding --ignore-all-space flag, which will produce more concise diff, for example when you wrap some lines in extra if or <div> or anything that just shifts the indentation one way or another.
I guess the code changes will be minimal.
From this:
export const getStagedDiff = async () => {
	const diffCached = ['diff', '--cached'];
	const { stdout: files } = await execa(
		'git',

To this:
export const getStagedDiff = async () => {
	const diffCached = ['diff', '--cached', '--ignore-all-space'];
	const { stdout: files } = await execa(
		'git',

I doubt it makes sense to parameterize this change. Am I wrong?
Happy to create a PR if needed.

I thought about this, but some commits are just white-space changes.
If the diff doesn't show, GPT wouldn't be able to produce an accurate description of the change.

smaller diff text:
const diffCached = ['diff', '--cached','--ignore-all-space','--diff-algorithm=minimal'];

It could be a conf option, but for many cases detecting these changes are important, particularly for languages where indentation matters and as above - ie formatting & linting changes. How about just counting the tokens with tokeniser and set it to the models max number instead of line count? and allow people to set a limit themselves.

Or actually even better, now that the new chat API is available and they take turns, the entire diff could be consumed file by file actually if detect it's bigger than some threshold and have a turn by turn chat, managing then to generate a comment about each and then asking to summarise each comment in the end. This would allow to work with quite large diffs as well.
https://github.com/openai/openai-python/blob/main/chatml.md
https://platform.openai.com/docs/guides/chat/chat-vs-completions

I don't think we can ignore white space for the reason provided above, and we've added --diff-algorithm=minimal so I think this is closable.
@salomartin
That idea sounds interesting but I worry that it may (unexpectedly) incur large expenses for generating a commit.


fixfix dependencies for dlf

Proposed changes
move the dlf deps to shade: https://github.com/apache/doris-shade/pull/26/files
must merge doris-shade PR-26 before this PR

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Make use of Azure CLI environment variables

Which version of the AzCopy was used?
10.15.0
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy sync
What problem was encountered?
Since the command line contains the SAS token it is readable for everyone who can look into the system's process list. Of course there are options to prevent users from seeing other users' processes. But on systems managed by third-parties this isn't possible.
How can we reproduce the problem in the simplest way?
Just run an azcopy sync job and look into the process list.
Have you found a mitigation/solution?
The best solution would be to optionally make use of the Azure CLI's environment variable AZURE_STORAGE_SAS_TOKEN. This also applies to other environment variables like AZURE_STORAGE_ACCOUNT or AZURE_STORAGE_SERVICE_ENDPOINT.

Hi @webcompas, thanks for reaching out!
Would it be possible for you to use AAD(Azure Active Directory) instead? In other words, perform azcopy login first before invoking the copy command. AAD is safer than SAS.

Hi @webcompas, thanks for reaching out!
Would it be possible for you to use AAD(Azure Active Directory) instead? In other words, perform azcopy login first before invoking the copy command. AAD is safer than SAS.

Can we use AAD with file share ? I know it work with Blob, AAD + file share is not supported to my knowledge... ??

@aleblanc70 AAD support for Azure Files is forthcoming. I can't give an exact ETA, but it should be soon.

Hi @webcompas, thanks for reaching out!
Would it be possible for you to use AAD(Azure Active Directory) instead? In other words, perform azcopy login first before invoking the copy command. AAD is safer than SAS.

Unfortunately I'm not that much familiar with AAD. But since this kind of authentication (SAS) is also used with similar storage services it would make it easier to interact with multiple of them.
Apart from this using environment variables makes sense since they can also be used by Azure CLI.


Suppress exceptions from the del of channel object

Another report from https://github.com/grpc/grpc/pull/22855 observed spam exception during the GC of Channel object. This PR silences the __del__ function from TypeError and AttributeError, which covers the exceptions raised from unexpected object deletion order.

@gnossen Can you take a look at this PR?


Build failing for Chang Model lectures

The execution test for Credible Government Policies in Chang Model and Competitive Equilibria in the Chang Model is failing.
There is a ValueError triggered when ch1.solve_sustainable() is called. It looks like this might be triggered by scipy/optimize.
~/anaconda3/lib/python3.7/site-packages/scipy/optimize/_linprog_util.py in _check_result(x, fun, status, slack, con, lb, ub, tol, message)
   1325         # nearly basic feasible solution. Postsolving can make the solution
   1326         # basic, however, this solution is NOT optimal
-> 1327         raise ValueError(message)
   1328
   1329     return status, message

ValueError: The algorithm terminated successfully and determined that the problem is infeasible.

Thanks for the report @duncanhobbs.  These are big, complex models that we have in mind to re-write.
Would you mind to give us some information on your execution environment?

I didn't actually build the lectures, I just looked at the lectures on Google Chrome from the latest build of the website on October 13. I am running windows 7, and am working trying to get Make to work properly.
.

Roger that.  Thanks for pointing it out.  @mmcky , it looks like a problem in the linear optimization routine.  Have we seen this one before?

@jstac this is one of the two lectures that stochastically fails to converge. It seems that scipy routine sometimes fails to converge (due to infeasibility)? I'll be upgrading anaconda=2019.10 then will recheck coverage for this lecture.


Can´t excute a SQL script

I try to execute this SQL script with my SQL Server:
if 0 = (select count(*) FROM msdb.dbo.backupset as BS WHERE BS.type = 'D' and BS.database_name = 'UTA1') begin select 'BAD' as Result ,'The backup of the database ' + 'UTA1' + ' was never taken.' as [Description] end else begin select case when lastBackupAge > 24 then 'BAD' else 'OK' end ,case when lastBackupAge > 24 then 'The backup of the database ' + 'UTA1' + ' is older then ' + convert(varchar(10),lastBackupAge) + ' hours' else 'The backup of the database ' + 'UTA1' + ' is recent' end as [Description] FROM (select DATEDIFF(hh, MAX(BS.backup_finish_date), GETDATE()) as lastBackupAge FROM    msdb.dbo.backupset as BS WHERE     BS.type = 'D' and BS.database_name = 'UTA1' GROUP BY BS.database_name) X end
This program runs into a exception:
using (var db = new NPoco.Database(connectionString, dbType, IsolationLevel.ReadCommitted))
{
var sqlResult = db.Single(sqlText);
if (string.IsNullOrWhiteSpace(sqlResult.Description))
{
sqlResult.Description = "";
}
return sqlResult;
}
If I execute the script with SQL Management Studio it works as expected.

if you are going to start your SQL with anything other than a select statement you'll need to prefix is with a ; or turn the EnableAutoSelect off on the Database.

Hi Adam,
thanks for the fast answer. The EnableAutoSelect = false works fine for
me.
Kind Regards
Reiner
------ Originalnachricht ------
Von: "Adam Schroder"<EMAIL_ADDRESS>An: "schotime/NPoco"<EMAIL_ADDRESS>Cc: "Reiner"<EMAIL_ADDRESS>"Author"<EMAIL_ADDRESS>Gesendet: 02.03.2021 09:56:02
Betreff: Re: [schotime/NPoco] Can´t excute a SQL script (#629)

if you are going to start your SQL with anything other than a select
statement you'll need to prefix is with a ; or turn the
EnableAutoSelect off on the Database.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/schotime/NPoco/issues/629#issuecomment-788740260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACSUK3IBFMCKQ4KLFZTBY23TBSR2FANCNFSM4YMLODVA.


Make required name attributes work

Right now we evaluate required before name_attribute, which means we didn't know it had a value.

:+1:


click event when delete file from the fields

example, w2ui 1.4.3
https://jsfiddle.net/hewranp9/
i deleted one file from the fields and saw two event: click and remove. is it ok or bug?

up

up

This is not a bug.
if you look at the code, you will see that the click event handler for "enum" and "file" fields does emit both events ("click" followed by "remove"):
        if (['enum', 'file'].indexOf(this.type) != -1) {
                ...
                .on('click', function (event) {
                    var target = (event.target.tagName.toUpperCase() == 'LI' ? event.target : $(event.target).parents('LI'));
                    var item   = selected[$(target).attr('index')];
                    if ($(target).hasClass('nomouse')) return;
                    event.stopPropagation();
                    // trigger event
                    var edata = obj.trigger({ phase: 'before', type: 'click', target: obj.el, originalEvent: event.originalEvent, item: item });
                    if (edata.isCancelled === true) return;
                    // default behavior
                    if ($(event.target).hasClass('w2ui-list-remove')) {
                        if ($(obj.el).attr('readonly') || $(obj.el).attr('disabled')) return;
                        // trigger event
                        var edata = obj.trigger({ phase: 'before', type: 'remove', target: obj.el, originalEvent: event.originalEvent, item: item });

I agree that looks like it is how code is written, but should it send click and remove events. I think it would be more logical to do what issues suggests. I am going to implement it.


create_working_order

Hey all i get this error when: create_working_order
response = session.post(url,
AttributeError: 'dict' object has no attribute 'post'
Has anyone seen this?
+++++++++++++++++++++
create_w_order(
currency_code ='USD',
direction = 'BUY',
epic = 'IX.D.SPTRD.IFM.IP',
expiry = "-",
good_till_date = datetime.datetime.now(pytz.timezone('UTC')),
guaranteed_stop = "true",
level = 'null',
limit_distance = '0.1',
limit_level = '2900',
size = '1',
stop_distance  = '2900',
stop_level = '2900',
time_in_force = 'null',
order_type = "LIMIT")

Hello @Fux002 ,
could you provide a MWE.
Please also use triple backticks for code.
Kind regards

Hi thank you for the reply:
please see below attached you just have to add your login details.
Thx a lot!

o sorry cant attache .py files here the code i used in my example:
+++++++++++++++++++
import time
import sys
import pytz
import datetime
import traceback
import logging
import settings
import db_connect
import stream_writer
import pandas as pd
import numpy as np
from trading_ig import (IGService, IGStreamService)
from trading_ig.lightstreamer import Subscription
Identification settings
USERNAME        = settings.ig_username
PASSWORD        = settings.ig_password
API_KEY         = settings.ig_api_key
ACCOUNT_TYPE    = settings.ig_account_type
ACCOUNT_NUMBER  = settings.ig_account_number
class IGtrader(object):
_ig_service = None
_ig_session = None
Odb_object = None
Odb_connection = None
def __init__(self):
	print ('IG Trader Object Initialized')
	self._ig_service = IGService(USERNAME, PASSWORD, API_KEY, ACCOUNT_TYPE)
	self._ig_session = self._ig_service.create_session()

def create_w_order(self, currency_code, direction, epic, expiry,
                         good_till_date, guaranteed_stop, level,
                         limit_distance, limit_level, size, stop_distance,
                         stop_level, time_in_force, order_type):
	""" Create working order. """
	self._ig_service.create_working_order(currency_code, direction, epic, expiry,
                         good_till_date, guaranteed_stop, level,
                         limit_distance, limit_level, size, stop_distance,
                         stop_level, time_in_force, order_type,
                         self._ig_session)

if name == 'main':
igObj = IGtrader()
igObj.create_w_order(
	'USD',
	'BUY',
	'IX.D.SPTRD.IFM.IP',
	'-',
	datetime.datetime.now(pytz.timezone('UTC')),
	'true',
	'1',
	'1',
	'50',
	'4',
	'5',
	'6',
	'null',
	'LIMIT')

Any comment anyone please?

Hey bro, I have the same question now.
How is your solution to this problem?
If you see me plz reply to me Thank🙏.

Hey remind me the problem please was a long time ago and I resolved it in the mean time

On 31 Oct 2021, at 05:42, CZJ1018 @.***> wrote:

Hey bro, I have the same question now.
How is your solution to this problem?
If you see me plz reply to me Thank🙏.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Here are the default parameters
I think you time stamp is the wrong format. But could be more issues. It’s rather sensitive.
good_till_date = None
limit_distance = None
level = round(self._px_ask * float(new_buy_stop_distance),self._decimalPlacesFactor)
limit_level = None
stop_distance = the_next_gstop_distance #gstop 1% below buy price, thi is always None as not sed
stop_level = None
limit_distance = None
time_in_force = "GOOD_TILL_CANCELLED"
order_type = "STOP"
guaranteed_stop = "false"
deal_id = the_deal_id

On 31 Oct 2021, at 05:42, CZJ1018 @.***> wrote:

Hey bro, I have the same question now.
How is your solution to this problem?
If you see me plz reply to me Thank🙏.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


Deleting a measure template breaks the select tool for templates

After a measured template gets deleted the select tool will bug out and copy previously deleted templates and won't select anything correctly. F5 makes it usable again.

Confirming this is still the case.


Line definition creates wrong lines in multiview

I created lines for multiple views using line definition. With 1 view it's ok but multiview has a problem. The lines are at the wrong locations.  Sometimes it's wrong number of lines too?

Hi! Please provide View input as a list, not a tree. All of the insertion components are following the multi-view convention (unwritten, I know, I will tell about it during the Workshop). You have meet the situation when this component was evaluated twice (due to providing view as a tree).
Multi-view convention states:

provide views as list, index of those views is the beacon for the next inputs
analyze other inputs as a tree, get the longest one (with the highest number of branches) and link it with the expected view based on the first path indice

That is the structure you need:

You don't want such an input:

Thank you for the quick answer. I think it'd be helpful to add this in the tooltips of the definition too. I'll be looking forward to your Workshop :)


[JENKINS-51069] - Add option to disable caching during the Custom WAR Build

Caching produces weird version names "256-ref-commit-SNAPSHOT", which is not fine when we actually do not want to cache anything. It would be great to have a flag and build option which disable caching
https://issues.jenkins-ci.org/browse/JENKINS-51069

#40 includes this fix

Released in 1.2


[otbn,dv] Add tests to cover post-ES security features

Description
There have been three RTL changes since ES that add security behaviour that probably needs testing. Write these tests.

a6bbefa5be6445f593c33699772159c7a284ee5a

Ensure that we send an invalid lc_escalate_en_i signal and make
sure that it is interpreted as a genuine escalation request.

5228dfccf508dbcd7823b4d2f2afe55d0a9332f9

Ensure that we send an invalid lc_rma_req_i signal and make sure
that it is ignored.

a4d9f164bb7495a5c4275c8b2094fd86f45a2e8c

Add error injection tests that raise the following signals when
secure wipe is not running:

sec_wipe_mod_urnd_i in otbn_alu_bignum
sec_wipe_zero_i in otbn_controller
sec_wipe_base in otbn_core
sec_wipe_wdr_q in otbn_core
sec_wipe_stack_reset_i in otbn_rf_base

These three PRs will cover the features once they are all merged:

#23498
#23508
#23545


CRON time zones

In the CRON time zones section, an important distinction should be made between the two options. Time in UTC will never consider daylight savings time.
Hopefully, if I set WEBSITE_TIME_ZONE="Eastern Standard Time" it will apply daylight savings time. Please confirm.

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b5527c3b-a5da-c73d-66c2-20d96003ff7c
Version Independent ID: 42154c7b-b0e0-26db-79bc-3f1673c48e40
Content: Timer trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-timer.md
Service: functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@gsimardnet it does...and since it's currently daylight savings time in many places, it's easy to verify in the site console using the time command:

With my function app set to Pacific Standard Time I get the correct daylight time value. I will update the topic to make this more clear.  Thanks for the question/feedback!


Azcopy apt support for Ubuntu bionic (18.04)

Currently azcopy is only available in apt repositories for 14.04 and 16.04. Would it be possible to also add azcopy to the 18.04 (bionic) repository?

Hello @Adam-Smith-MSFT, @silvester747 ,
First, @silvester747 thank you for opening this issue.
@Adam-Smith-MSFT,
This is still a problem, azcopy is not available for Ubuntu 18.04 Bionic.
We're encountering the same issue, we do testing on Ubuntu 14.04, 16.04 and 18.04 and our pipeline breaks on 18.04 because the azcopy package is not available.
I'd expect it to be in that repo now that 18.04 has been out for almost a year and it's the current LTS release.
Kind regards,
rnsc

Hello @Adam-Smith-MSFT ,
Can we have an update on this?
The issue was closed when obviously the problem is still present.
What's even more annoying is that the "Get Started" page now only hands a Linux tar file to install AzCopy.
Are you abandoning the Debian/Ubuntu packages?
Kind regards,

azcopy is also not available for Ubuntu 19.04. Any updates?

This should not be closed, because it's not fixed.


Howto ignore dirs "~" but not "~/*"?

I want to ignore user's home dir specifically but not whatever dirs under that home, so when i at home cd ~ and start nvim, this session will be ignored.
but when i do like cd ~/.config/nvim; nvim then the session for ~/.config/nvim will not be ignored.
howto?

The workaround for now is you could ignore saving session on dashboard or empty buffer.
Example: https://github.com/latipun7/dotfiles/blob/main/home/dot_config/exact_lvim/exact_lua/exact_latipun/exact_plugins/persisted.lua#L20-L24

Yes as @latipun7 correctly refers to in their post, the should_autosave callback is the best way to deal with this. You could check for the current workin directory and if it matches ~ then return false.


Spring cloud sleuth doesn't play nicely with spring security

Sample app here: https://github.com/will08rien/sleuth-webflux-security
The log message prints without the span and trace info. Removing the Filter and security library causes these to be added to the context as normal.

Thanks for the sample app! Can you pass some logs to this issue anyways?

Logs with security enabled, e.g.
2017-11-20 09:35:57.872  INFO [-,,,] 29344 --- [     parallel-2] will08rien.sleuth.Controller              : Demo log msg
If security lib and filter removed, logs e.g.
2017-11-20 09:37:42.135  INFO [-,6651a54788fd2776,6651a54788fd2776,false] 29398 --- [ctor-http-nio- 2] will08rien.sleuth.Controller             : Demo log msg
Checked in no-sec version of branch of sample repo.


Replace data  type icons

I find the data type icons a little confusing, especially the numerical icon looks like the sorting icon.
I'd instead go for something like this:

Or this:

We need icons for:
Labels / text - probably "T"
Numerical - probably "#"
Categorical - probably the three dots show above
Nomina - probably the three numbers shown above

The matrix icon is OK, but it could also be a variant of these icons, to reflect the nested datatype

Take from http://fontawesome.io/icons/

@alexsb  Where did you find the icons that you have posted above? I have looked at fontawesome but haven't found your icons so far.

The first set is from Kitware's Resonant: https://resonantlab.kitware.com/
Probably custom made, but I'm sure it's open source.
The second is tableau.

Moved to https://github.com/Caleydo/taggle/issues/133


Terraform Plan not showing complete details of what is being created on cloud.

When we manually add account , Polaris will generate cloud formation template and in that template we can see what resources getting created on the cloud. In similar way, why terraform plan is not showing these details.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
Terraform plan should describe all the details like what is being onboarded or created on cloud.
A clear and concise description of what you want to happen.
Describe alternatives you've considered
Execution of CloudFormation template manually instead of using TF for automation.
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @kaly2305, the CloudFormation template is not created by Terraform and can therefore not be displayed as a diff. The TF provider gets the CloudFormation template from Polaris/RSC as a step in the process of adding the AWS account, this happens when the terraform apply is already running, i.e. after the user has accepted the changes to be applied.

It's now possible to add an AWS account to RSC without using a CloudFormation template, giving the user more control of what is being created. A guide can be found here.


Remove some print statements in pkg gchem

What changes does this PR introduce?
Remove plain print statements that create lots of output outside of the right files.
If someone really wants this information, we can always put some code back in to write it to STDOUT.#### or even a separate file.

I agree that these print statements are annoying,
And just for the record, if we want these value to be printed, could do it to STDOUT when balancePrintMean=.TRUE.
Also,  these print statements are only there when ALLOW_OLD_VIRTUALFLUX is defined
(not tested anymore in any verification experiment), so I don't mind removing them completely for now.
LGTM


Add more color functions

A function to invert a color, and a function to make a color grayscale would be a nice edition
I noticed that ImageColorInvert and ImageColorGrayscale exists, and I thought of making a color version of it wouldn't hurt

I prefer to avoid adding new functions if I clear use case is not provided.


Unable to update from 0.100 to 0.101 on Hassio

Describe the bug
Unable to update.
Steps to reproduce
Press Update in Home Assistant
Configuration details
Home Assistant 2022.9.4
Supervisor 2022.08.6
Operating System 8.5
Frontend 20220907.2
Log details
2022-09-14 20:52:00.622 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139627002332880] Error updating evcc: Can't install andig/evcc:0.101: 404 Client Error for http+docker://localhost/v1.41/images/create?tag=0.101&fromImage=andig%2Fevcc&platform=linux%2Famd64: Not Found ("manifest for andig/evcc:0.101 not found: manifest unknown: manifest unknown")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 167, in async_install
await async_update_addon(self.hass, slug=self._addon_slug, backup=backup)
File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 45, in _wrapper
raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: Can't install andig/evcc:0.101: 404 Client Error for http+docker://localhost/v1.41/images/create?tag=0.101&fromImage=andig%2Fevcc&platform=linux%2Famd64: Not Found ("manifest for andig/evcc:0.101 not found: manifest unknown: manifest unknown")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 152, in async_install
await entity.async_install_with_progress(version, backup)
File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 411, in async_install_with_progress
await self.async_install(version, backup)
File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 169, in async_install
raise HomeAssistantError(f"Error updating {self.title}: {err}") from err
homeassistant.exceptions.HomeAssistantError: Error updating evcc: Can't install andig/evcc:0.101: 404 Client Error for http+docker://localhost/v1.41/images/create?tag=0.101&fromImage=andig%2Fevcc&platform=linux%2Famd64: Not Found ("manifest for andig/evcc:0.101 not found: manifest unknown: manifest unknown")
What type of operating system are you running?
Linux
Version
0.100

Same here:
Can't install andig/evcc:0.101: 404 Client Error for http+docker://localhost/v1.41/images/create?tag=0.101&fromImage=andig%2Fevcc&platform=linux%2Farm64: Not Found ("manifest for andig/evcc:0.101 not found: manifest unknown: manifest unknown")

Sollte jetzt klappen. Da fehlte das getaggte Docker image.

Danke funktioniert.

Same problem on 0.101.1
15.09.2022 08:49:41 andig @.***>:

Sollte jetzt klappen. Da fehlte das getaggte Docker image.
—
Reply to this email directly, view it on GitHub[https://github.com/evcc-io/evcc/issues/4440#issuecomment-1247656321], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AGJKCMVCGHPWTMBW3CDELRTV6LBH3ANCNFSM6AAAAAAQMWHQKE].
You are receiving this because you authored the thread.[Verfolgungsbild][https://github.com/notifications/beacon/AGJKCMU7QLK2XQTCWVDSKRLV6LBH3A5CNFSM6AAAAAAQMWHQKGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSKLW4YC.gif]


ci: Add support to publish experimental releases

Overview
This PR adds proper support for experimental releases to semantic-release and GitHub Actions.
I've added more information on experimental releases to the CONTRIBUTING document, please read it carefully and do let me know if something is not clear enough. Shoot me all questions you might have about the process, and I'll update the documentation in a follow-up PR to make things clearer.

Note
I'm making this a show PR because I need to a) actually test that this process is working correctly, and b) publish an experimental release to use Todoist.

PR Checklist

[x] Pull request title follows the Conventional Commits Specification

@jvalente No need to go through this, it doesn't work as I expected, and I'm reverting it.

Please re-add me as the reviewer if you need it at any point @rfgamaral. 👍