TensorFlow version

Hi,
I am writing as the following problem occurred when I tried to use your code.
./train.sh

Traceback (most recent call last):
  File "polyvore/train.py", line 25, in <module>
    import polyvore_model_bi as polyvore_model
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 29, in <module>
    from ops import image_embedding
  File "/mnt/datasets/polyvore-lstm/polyvore/ops/image_embedding.py", line 25, in <module>
    from tensorflow.contrib.slim.python.slim.nets.inception_v3 import inception_v3_base
ImportError: No module named inception_v3

It seems that this module is not available until tensorflow version 0.11... are you positive that 0.10 is the one that works? Thanks for help.
Best,
Aleksander

Hi Alek,
I built this using some version between r0.10 and r0.11, because I forked the code from the first version of Tensorflow's im2txt repo. However, TF developers have moved this repo into a new research folder and make it very hard to track the initial version.
(https://github.com/tensorflow/models/commit/f87a58cd96d45de73c9a8330a06b2ab56749a7fa#comments)
By checking my TF repo, the version I used is v0.10.0-1705-g6218ac2, but I could imagine that it would be very hard for you to find this version and install it from source. So can you try if Tensorflow r0.11 works? If you can run the code, r0.10 and r0.11 should have very similar performance.
Let me know if r0.11 works for you.
Thanks,
Xintong

Hi Xintong,
Thank you for your quick response. Yes, I was suspecting that r0.11 could work, but after trying it I have a new error, again due to missing module
. train.sh

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] Couldn't open CUDA library libcudnn.so. LD_LIBRARY_PATH:
I tensorflow/stream_executor/cuda/cuda_dnn.cc:3448] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally
INFO:tensorflow:Prefetching values from 128 files matching data/tf_records/train-no-dup-?????-of-00128
Traceback (most recent call last):
  File "polyvore/train.py", line 111, in <module>
    tf.app.run()
  File "/home/oleks/anaconda/envs/biLSTM_old/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
    sys.exit(main(sys.argv[:1] + flags_passthrough))
  File "polyvore/train.py", line 66, in main
    model.build()
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 676, in build
    self.build_inputs()
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 217, in build_inputs
    images.append(self.process_image(encoded_images[i],image_idx=i))
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 159, in process_image
    image_idx=image_idx)
  File "/mnt/datasets/polyvore-lstm/polyvore/ops/image_processing.py", line 82, in process_image
    image_summary("original_image/" + str(image_idx), image)
  File "/mnt/datasets/polyvore-lstm/polyvore/ops/image_processing.py", line 71, in image_summary
    tf.summary.image(name, tf.expand_dims(image, 0))
AttributeError: 'module' object has no attribute 'image'

I have also tried r0.12.1 with similar error as a result
.  train.sh

INFO:tensorflow:Prefetching values from 128 files matching data/tf_records/train-no-dup-?????-of-00128
Traceback (most recent call last):
  File "polyvore/train.py", line 111, in <module>
    tf.app.run()
  File "/home/oleks/anaconda/envs/biLSTM_old/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run
    sys.exit(main(sys.argv[:1] + flags_passthrough))
  File "polyvore/train.py", line 66, in main
    model.build()
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 679, in build
    self.build_model()
  File "/mnt/datasets/polyvore-lstm/polyvore/polyvore_model_bi.py", line 377, in build_model
    tf.losses.add_loss(emb_batch_loss * self.config.emb_loss_factor)
AttributeError: 'module' object has no attribute 'losses'

I have actually manage to train the model using higher version (tensorflow 1.3). Now having the model weights I miss the code for inference. In particular, I need to perform multimodal (image + text) query for item retrieval. If you think you have the working version available, I would appreciate if you share it somewhere. Thanks again for your help.
Best regards,
Aleksander

Are you the current version of my code? Since I am using tf.image_summary not tf.summary.image in image_processing.py.
I will check how to make it run under r0.11 by the end of this week and let you know how to do it.

Hi again,
First of all, sorry for not replying for so long, I had a busy week last week.
Yes, it might actually be the case that I was running some other than current version of your code. Anyway, after some modifications, I have managed to run extract_features script  using TensorFlow 1.3.
Now, I would like to perform multimodal query to generate outfit like in your paper, but I guess I need to extract a semantic representation of the text query first.  Would you be able to tell me how to do that?
Best regards,
Aleksander

model.embedding_map contains the embedding of each word in the vocabulary.
[word_emb] = sess.run([model.embedding_map])

If you want to get the representation of a text query containing words a, b, c, you just need to feed the indices of a, b, c and average their embeddings:

def norm_row(a):
  try:
    return a / np.linalg.norm(a, axis=1)[:, np.newaxis]
  except:
    return a / np.linalg.norm(a)

words = open('word_dict.txt').read().splitlines()

query = 'a b c'
query = [i+1 for i in range(len(words)) if words[i] in query.split()]
query_emb = norm_row(np.sum(word_emb[query],axis=0))

Thank you a lot, I will try that.

Hi @alekskorupa
I'm trying to run extract_features script using TensorFlow 1.13.I have modified the original code and trained the model, and I got .meta,.index and .data checkpoint files. when I try to extract_features(in original code),I got a lot of NotFoundErr like this:
Caused by op 'save/RestoreV2', defined at:
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 93, in <module>
    tf.app.run()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
    _sys.exit(main(argv))
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 55, in main
    saver = tf.train.Saver()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 832, in __init__
    self.build()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 844, in build
    self._build(self._filename, build_save=True, build_restore=True)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 881, in _build
    build_save=build_save, build_restore=build_restore)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 513, in _build_internal
    restore_sequentially, reshape)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 332, in _AddRestoreOps
    restore_sequentially)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 580, in bulk_restore
    return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1572, in restore_v2
    name=name)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in __init__
    self._traceback = tf_stack.extract_stack()

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key lstm/BW/basic_lstm_cell/bias not found in checkpoint
	 [[node save/RestoreV2 (defined at E:/liurui/polyvore-master/polyvore/run_inference.py:55) ]]

Could you tell me some references materials for how to modify these codes to run on the new tensorflow?
Thank you very much,
Rui Liu

Hi @alekskorupa
I'm trying to run extract_features script using TensorFlow 1.13.I have modified the original code and trained the model, and I got .meta,.index and .data checkpoint files. when I try to extract_features(in original code),I got a lot of NotFoundErr like this:
Caused by op 'save/RestoreV2', defined at:
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 93, in <module>
    tf.app.run()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
    _sys.exit(main(argv))
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 55, in main
    saver = tf.train.Saver()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 832, in __init__
    self.build()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 844, in build
    self._build(self._filename, build_save=True, build_restore=True)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 881, in _build
    build_save=build_save, build_restore=build_restore)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 513, in _build_internal
    restore_sequentially, reshape)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 332, in _AddRestoreOps
    restore_sequentially)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 580, in bulk_restore
    return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1572, in restore_v2
    name=name)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in __init__
    self._traceback = tf_stack.extract_stack()

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key lstm/BW/basic_lstm_cell/bias not found in checkpoint
	 [[node save/RestoreV2 (defined at E:/liurui/polyvore-master/polyvore/run_inference.py:55) ]]

Could you tell me some references materials for how to modify these codes to run on the new tensorflow?
Thank you very much,
Rui Liu

have you solved this question?I have met same question when I run the code.

I'm trying to run extract_features script using TensorFlow  0.10 ,but I get following question ,can you help me solve my problem? thank you very much!
Traceback (most recent call last):
File "/media/公共硬盘A/ZhangJ/polyvore-master/polyvore/run_inference.py", line 103, in
tf.app.run()
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/media/公共硬盘A/ZhangJ/polyvore-master/polyvore/run_inference.py", line 69, in main
saver.restore(sess, "model/model_final/model.ckpt-34865")
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
run_metadata_ptr)
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run
options, run_metadata)
File "/home/ZhangJ/.conda/envs/polyvore_test/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: <exception str() failed>

Hi @alekskorupa
I'm trying to run extract_features script using TensorFlow 1.13.I have modified the original code and trained the model, and I got .meta,.index and .data checkpoint files. when I try to extract_features(in original code),I got a lot of NotFoundErr like this:
Caused by op 'save/RestoreV2', defined at:
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 93, in <module>
    tf.app.run()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
    _sys.exit(main(argv))
  File "E:/liurui/polyvore-master/polyvore/run_inference.py", line 55, in main
    saver = tf.train.Saver()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 832, in __init__
    self.build()
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 844, in build
    self._build(self._filename, build_save=True, build_restore=True)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 881, in _build
    build_save=build_save, build_restore=build_restore)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 513, in _build_internal
    restore_sequentially, reshape)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 332, in _AddRestoreOps
    restore_sequentially)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\training\saver.py", line 580, in bulk_restore
    return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\ops\gen_io_ops.py", line 1572, in restore_v2
    name=name)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
    op_def=op_def)
  File "C:\dlfiles\Anaconda36\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in __init__
    self._traceback = tf_stack.extract_stack()

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key lstm/BW/basic_lstm_cell/bias not found in checkpoint
	 [[node save/RestoreV2 (defined at E:/liurui/polyvore-master/polyvore/run_inference.py:55) ]]

Could you tell me some references materials for how to modify these codes to run on the new tensorflow?
Thank you very much,
Rui Liu

Can I have your contact information please?I would like to communicate with you about the problem,Thank you.

Hi, the name of LSTM weights between two versions are different. You may check them name by digging into the graph file. Hope this can help you:
https://github.com/KranthiGV/Pretrained-Show-and-Tell-model/issues/7

Thank you very much!!Have a nice weekend.❤
| |
张景
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 09/21/2019 20:44, Xintong Han wrote:
Hi, the name of LSTM weights between two versions are different. You may check them name by digging into the graph file. Hope this can help you:
KranthiGV/Pretrained-Show-and-Tell-model#7
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


How to map mouse position on browser to pdf page position (x, y)

Is there any way to know pdf page position (x, y) of mouse on browser?
What I would like to do is to add a simple mark (e.g. "DONE" text or some small icon) when clicking mouse on pdf page in browser.
In #346 @Hopding says:

pdf-lib has no built-in way to interact with edits the user makes in the iframe. However, if you have some other way of knowing what the user has done to edit the PDF (e.g. by rendering an HTML form instead of a PDF), you could use pdf-lib to map these changes into PDF modifications

I understand that:

getting info from pdf document in iframe is not supported by pdf-lib, but
modifying pdf document can be done by pdf-lib.

So that it is possible to add icon and/or fixed-text by pdf-lib, but I wonder how to specify page position (x, y) when mouse clicking on the browser.
I very appreciate if there is any way to know that.

I don't think this is to do with iframes. There simply if no browser API to get information about a PDF document outside of the iframe. You might try using https://github.com/mozilla/pdf.js or a derivative library to render the document instead of an iframe. pdf.js is implemented entirely in HTML/JS/CSS, so it can provide APIs to find out how a user is interacting with the document.

I don't think this is to do with iframes. There simply if no browser API to get information about a PDF document outside of the iframe. You might try using https://github.com/mozilla/pdf.js or a derivative library to render the document instead of an iframe. pdf.js is implemented entirely in HTML/JS/CSS, so it can provide APIs to find out how a user is interacting with the document.


Chore/CC-142: Add comment annotation to discourage direct use of method

Adds comment annotation discouraging direct use of the createApiClient method in favour of sdk-manager-node

Please see this comment on partner PR and apply here also:
https://github.com/companieshouse/private-api-sdk-node/pull/103#issuecomment-1782552623

Please see this comment on partner PR and apply here also:
companieshouse/private-api-sdk-node#103 (comment)

Done


Docs: Adds clarification notes to data proxy configuration

What this PR does / why we need it:
Currently the plugin proxy does not support urlParam or tokenAuth configuration when used in the context of an App plugin. This PR adds clarification notes to the docs to reflect this.

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

Thanks @josmperez, fixed.


Creation of a programming language based on Blade.

Hello,
We want to create a programming language for professional, personal and utility needs. We want to base ourselves on your language, which we find very interesting in its simplicity and speed. Can we fork your project? Or take over the project for free?
Cordially,
Zuygui

This would also include the use of the package manager. The latter, we can code it ourselves.

Hi @Zuygui,
Firstly, I want to thank you for your interest in Blade.
As an open-source project, Blade is actively seeking dedicated contributors to the project and a contribution like a package manager will go a long way as well as significant contribution of core library/modules (which will be near impossible with the number of current contributors).
If you do have the resource and time, I'll counter that rather than creating a new programming language off Blade which itself is still very new and young, why not become an active contributor to the development of Blade. This will give you the opportunity to develop new features and libraries that will reflect in Blade as a language and hence, you'll achieve the same objective you initially have without having to create a new language.
I believe the best thing for Blade now is to have more libraries, a package manager and better distinguishing features. Also, while now yet documented, developments to allow easy package management which package managers can easily leverage is already done in the dev branch and will become part of the next release.
Also, since there has been significant contributions by other people into the project, the decision is beyond what I can make alone.
Regards

Our language would be purely a fork of blade, we will credit you but we want to remain independent to offer a language based on blade. We would like to start from the current blade source code and go independently.

@Zuygui While I still do not see any benefits to Blade in what you are proposing, Blade's license is MIT and you do not need any permission to fork it. However, do you have any plans to send enhancements upstream??

We will use our fork (we modify the language according to our needs) in order to develop our applications as well as our software. If a security bug is found, we will fix it and send you the bug. You have no advantage in it, but we really need this fork.
and I did not understand the license because I am French.

If you want check the source code on based blade langage. Just go here !

Else, dou you want support the Foxy Project ? I want transform Blade yo a simple language for begginers.

Noted. But this isn't looking like a clone. Looks like another project using the same codebase.
Like I said earlier, Blade is licensed MIT. Just to clarify of you, you'll need to retain a copy of the license in your work. That's all that is required.
Regards.

And while the codebase is MIT, the language itself isn't. This means that you can't retain the same README, description and all related items.

And while the codebase is MIT, the language itself isn't. This means that you can't retain the same README, description and all related items.

What do you mean ?

Noted. But this isn't looking like a clone. Looks like another project using the same codebase.
Like I said earlier, this Blade implementation is licensed MIT. Just to clarify of you, you'll need to retain a copy of the license in your work. That's all that is required.
Regards.

We want to start from the current version of blade in order to branch off to a totally different release. I don't understand all your vocabulary because I'm French and the translator sometimes bugs ^^


Duplicate events directly inside the daily planner

Please add the feature of duplicating the events by right clicking on an event and dragging instead of copying the even inside the daily note itself.

Hello, @endlessblink, check out the latest update:
https://github.com/ivan-lednev/obsidian-day-planner/releases/tag/0.10.0

Wow! Looks great. I will check it out soon.
Thanks!
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Mon, Sep 18, 2023 at 7:32 PM Ivan Lednev @.***>
wrote:

Hello, @endlessblink https://github.com/endlessblink, check out the
latest update:
https://github.com/ivan-lednev/obsidian-day-planner/releases/tag/0.10.0
—
Reply to this email directly, view it on GitHub
https://github.com/ivan-lednev/obsidian-day-planner/issues/249#issuecomment-1723905371,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI3PDUQPMJL4QVFCS653JOLX3BZRHANCNFSM6AAAAAA4PDH2LA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Noam Naumovsky
Director, Video Editor, Motion Designer
| m: 972-52-6784960 | e: @.***
| w: www.noamn.com
[image: Facebook]
http://s.wisestamp.com/links?url=https%3A%2F%2Fwww.facebook.com%2Fnnaumovsky&sn=ZW5kbGVzc2JsaW5rQGdtYWlsLmNvbQ%3D%3D
[image: LinkedIn]
http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D34776397%26trk%3Dnav_responsive_tab_profile_pic&sn=ZW5kbGVzc2JsaW5rQGdtYWlsLmNvbQ%3D%3D


Added SlackRecord parameter for markdown supppport in attachments

Was attempting to bold messages when using the Slack handler and attachments and it wasn't processing the message as markdown. Currently markdown support is set statically to only 'fields.' Added argument that excepts an array to allow user to allow markdown in 'text' and 'pretext' as allowed in the Slack documentation.

Closing this to clean up, feel free to re-open against latest master if there is still interest.


Mixed Content warnings in Chrome console

Hi there,
Thanks for this great library.
I'm sure there's a simple solution to this that I can't find - I'm running your library on a secure site and the profile images that are returned are using the HTTP protocol instead of HTTPS, which is producing Mixed content warnings in Chrome.
Is there a parameter I can pass that asks for the secure paths instead?
Thanks
Sean

It uses cURL under the hood, and you can pass any extra cURL headers you want int via the request method as a second parameter. Does that help?
If profile images are returned directly by the API on twitter's side, I'm not sure there's anything we can do about that.

@J7mbo Thanks - it does a little. Any idea what header I need to use?
I've currently got:
$results = $twitter->setGetfield($getfield)
	             ->buildOauth($url, $requestMethod)
	             ->performRequest();

As this is an old issue, I'm closing it, but if you still feel that something needs to be addressed, please feel free to reopen or open a new issue, I'll put it as a higher priority, and we'll solve it together! :)


Fetch not sending request body with POST request

Hi, I have been working on a UI extension with ruby and javascript. I have been facing issue sending params with fetch post call to my ruby controller from my extension's
Please list the package(s) involved in the issue, and include the version you are using
Here's my package.json:
{   "name": "lively-pos-app",   "version": "1.0.1",   "license": "UNLICENSED",   "scripts": {     "shopify": "shopify",     "build": "shopify app build",     "dev": "shopify app dev",     "push": "shopify app push",     "generate": "shopify app generate",     "deploy": "shopify app deploy",     "info": "shopify app info"   },   "dependencies": {     "@remote-ui/react": "latest",     "@shopify/app": "3.45.0",     "@shopify/cli": "3.45.0",     "@shopify/retail-ui-extensions-react": "0.46.2",     "react": "^17.0.2"   },   "author": "hassan" }
Describe the bug
I have been facing issue sending request.body in a fetch call using for method post. I'm using fetch's standard code for post request which asks to JSON.stringify the body before sending it. Here's my code for this call:
fetch('https://develop-cooperative-rotation-options.trycloudflare.com/api/products/apply_discount', {       method: 'POST',       mode: 'no-cors',       type: 'json',       credentials: 'same-origin',       headers: {         'Accept': 'application/json',         'X-Requested-With': 'XMLHttpRequest',         Authorization: 'Bearer ${getSessionToken()}',       },       body: JSON.stringify({ abc: "def" }),     })     .then((response) => {       debugger;     })
I have tried different things like, sending request with credentails: 'include' and changing the headers. But still I can't get my requets body to my Ruby controller.
Steps to reproduce the behavior:

Make a POST API call using fetch to one of your ruby controllers
Add params

Expected behavior
Params should go to ruby controller as specified
Screenshots

Hi @hassanharoon86. Could you please send us a copy of the fetch request from the dev tools Network tab in the browser?


Bar size limits

Addresses #4560, I think without collateral damage.

This may already be superceded by #4545?

@tomkcook can you verify it's still an issue with master?

@tomkcook is this still an issue on master? If so, the PR will need to be rebased


Initial implementation of database and model field checker.

Description
We've now had at least two instances of deployed systems breaking because the application attempted to query a model that contained a NULL value in an incompatible column. This has also cropped up in non-deployed systems during automated performance testing.
As a reminder, Pop requires that struct fields that map to nullable database columns be defined either as pointers or using its custom null types. Otherwise, there will be scan errors such as the one addressed by #3439.
As a followup to that PR, I did a little manual checking of models. There were enough mismatches that I thought it would be good to have an automated way to keep an eye on this.
Reviewer Notes
This PR adds a tool that will check that our model struct definitions and database tables are in alignment. It should probably get wrapped in a make target, but I wanted to get some early feedback before going too far.
Eventually we might want to add this to CI, but we'll have to contend with the existing issues first.
Setup
$ go run cmd/compare-db-to-models/main.go

You should see something like this:
AccessCode
  *MoveType : move_type is NOT NULL

ClientCert
  Sha256Digest : sha256_digest is NULL
  Subject : subject is NULL
  AllowDpsAuthAPI : allow_dps_auth_api is NULL
  AllowOrdersAPI : allow_orders_api is NULL

Customer
  Agency : agency is NULL
  FirstName : first_name is NULL
  LastName : last_name is NULL
  UserID : user_id is NULL

Move
  Locator : locator is NULL
  *Show : show is NOT NULL

MoveTaskOrder
  MoveOrderID : move_order_id is NULL

MovingExpenseDocument
  RequestedAmountCents : requested_amount_cents is NULL
  PaymentMethod : payment_method is NULL
  ReceiptMissing : receipt_missing is NULL

Notification
  ServiceMemberID : service_member_id is NULL

PaymentServiceItem
  ServiceItemID : service_item_id is NULL

Tariff400ngFullPackRate
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  Schedule : schedule is NULL
  WeightLbsLower : weight_lbs_lower is NULL
  WeightLbsUpper : weight_lbs_upper is NULL
  RateCents : rate_cents is NULL
  EffectiveDateLower : effective_date_lower is NULL
  EffectiveDateUpper : effective_date_upper is NULL

Tariff400ngFullUnpackRate
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  Schedule : schedule is NULL
  RateMillicents : rate_millicents is NULL
  EffectiveDateLower : effective_date_lower is NULL
  EffectiveDateUpper : effective_date_upper is NULL

Tariff400ngLinehaulRate
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  DistanceMilesLower : distance_miles_lower is NULL
  DistanceMilesUpper : distance_miles_upper is NULL
  Type : type is NULL
  WeightLbsLower : weight_lbs_lower is NULL
  WeightLbsUpper : weight_lbs_upper is NULL
  RateCents : rate_cents is NULL
  EffectiveDateLower : effective_date_lower is NULL
  EffectiveDateUpper : effective_date_upper is NULL

Tariff400ngServiceArea
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  Name : name is NULL
  ServiceArea : service_area is NULL
  ServicesSchedule : services_schedule is NULL
  LinehaulFactor : linehaul_factor is NULL
  ServiceChargeCents : service_charge_cents is NULL
  EffectiveDateLower : effective_date_lower is NULL
  EffectiveDateUpper : effective_date_upper is NULL
  SIT185ARateCents : sit_185a_rate_cents is NULL
  SIT185BRateCents : sit_185b_rate_cents is NULL
  SITPDSchedule : sit_pd_schedule is NULL

Tariff400ngShorthaulRate
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  CwtMilesLower : cwt_miles_lower is NULL
  CwtMilesUpper : cwt_miles_upper is NULL
  RateCents : rate_cents is NULL
  EffectiveDateLower : effective_date_lower is NULL
  EffectiveDateUpper : effective_date_upper is NULL

Tariff400ngZip3
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  Zip3 : zip3 is NULL
  BasepointCity : basepoint_city is NULL
  State : state is NULL
  ServiceArea : service_area is NULL
  RateArea : rate_area is NULL
  Region : region is NULL

Tariff400ngZip5RateArea
  CreatedAt : created_at is NULL
  UpdatedAt : updated_at is NULL
  RateArea : rate_area is NULL
  Zip5 : zip5 is NULL

Upload
  StorageKey : storage_key is NULL

WeightTicketSetDocument
  MoveDocumentID : move_document_id is NULL
  EmptyWeightTicketMissing : empty_weight_ticket_missing is NULL
  FullWeightTicketMissing : full_weight_ticket_missing is NULL
  VehicleNickname : vehicle_nickname is NULL
  WeightTicketSetType : weight_ticket_set_type is NULL
  TrailerOwnershipMissing : trailer_ownership_missing is NULL
exit status 1

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

Is the output the list of all errors (mistmatches) between the code and DB?

@chrisgilmerproj Yup.


__knexQueryUid not generated for ROLLBACKs

Environment
Knex version: 0.20.7
Database + version: MySQL 5.6 (RDS)
OS: Lambda
Bug / Missing documentation?
Issue
Rollbacks generated by Knex should lead to a unique query ID being generated and reported through the event mechanism (Knex.on("query-response", (resp,obj)=> { ... }).
Instead, I am seeing events like these:
"obj": {
        "__knexUid": "__knexUid1",
        "__knexTxId": "trx2",
        "sql": "ROLLBACK"
    },

I also noticed this missing from a number of table definition calls.
"obj": {
        "__knexUid": "__knexUid1",
        "__knexTxId": "trx2",
        "sql": "alter table `wss_tokens` add index `wss_tokens_user_sub_index`(`user_sub`)",
        "bindings": []
    },

I have noticed this bug also occurs for "CREATE TABLE" queries.


Error more-clink-completions.lua:6: attempt to call field 'getargmatcher' (a nil value)

I have clink  v<IP_ADDRESS>7c1b installed.
Installed more-clink-completions:

git clone https://github.com/sebthom/more-clink-completions --branch v2-releases --single-branch  d:\utils\clink\completions\more-clink-completions

and got message:

`Script path 'd:\utils\clink\completions\more-clink-completions' installed.
...etions\more-clink-completions\more-clink-completions.lua:6: attempt to call field 'getargmatcher' (a nil value)
stack traceback:
...etions\more-clink-completions\more-clink-completions.lua:6: in function 'register'
...etions\more-clink-completions\more-clink-completions.lua:6: in function 'main'
...etions\more-clink-completions\more-clink-completions.lua:6: in function <...etions\more-clink-completions\more-clink-completions.lua:6>
[C]: in function 'xpcall'
...etions\more-clink-completions\more-clink-completions.lua:6: in function 'luapack_entry'
...etions\more-clink-completions\more-clink-completions.lua:6: in main chunk`

This message arises each time I start cmd.exe.
Completions isn't working.
I don't have any other clink scripts installed.

My OS is Windows x64 v10.0.19045 build 19045

clink v<IP_ADDRESS>7c1b seems to be a very old clink version. Please try to upgrade to a recent release. I am running <IP_ADDRESS>3e84

Well, my clink version was too old. With latest version of clink, completions works fine.


Feedback/contact form: open w/o new tab

Closes #122

This does the trick. Can we change "Language Map Feedback" to "Contact and Feedback", matching what's in the sidebar? And should there be a "Report bug" option in the dropdown to match what's promised? I submitted some sample feedback which hopefully arrived and probably we should auto-generate a reply to feedbackers as well (which I haven't tried but I assume Google Forms can easily do). Or is it just easier for you to give me access to this Google Form, or for me to create a new one with an ELA account to make these changes? Thanks for putting this together and sorry for not being on top of this earlier!

Thanks for reviewing, Ross. I just pushed up a version that's a little more mobile-friendly and doesn't produce double scrollbars on desktop (in case you were seeing that). Same URL: https://deploy-preview-123--languagemapping.netlify.app/ If you were okay with it before then you're probably even more okay with it now 😄
Re: your questions, Maya has access to the form so you two can hash that out. My role was just to make the embed happen, so unless you need anything else in that dept I'm going to merge.

Ok all good!

On Oct 21, 2020, at 11:04 PM, Jason Lampel<EMAIL_ADDRESS>wrote:

Thanks for reviewing, Ross. I just pushed up a version that's a little more mobile-friendly and doesn't produce double scrollbars on desktop (in case you were seeing that). Same URL: https://deploy-preview-123--languagemapping.netlify.app/ If you were okay with it before then you're probably even more okay with it now 😄
Re: your questions, Maya has access to the form so you two can hash that out. My role was just to make the embed happen, so unless you need anything else in that dept I'm going to merge.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or unsubscribe.

@rperlin-ela , I made the changes you suggested, and you can see and edit the form here: https://docs.google.com/forms/d/1CzZK-aKh0kyxR13DGEJ5t8S_mG9Cf2y-jwVviZ35fac/edit?usp=sharing. I just enabled email notifications, which will go to my email address because the contact form is located in my Google Drive. @abettermap is it possible to switch out the link for the form if Ross wants to host the form on his end so that he gets the email notifications? Thanks.

Yes, if you can't make him an owner/editor using the existing form let me know. Or it might be easiest if you set up an Outlook filter to auto-forward those emails to Ross and whomever else so that you can all see them.

Great— thanks, Maya!

On Oct 26, 2020, at 11:31 AM, Jason Lampel<EMAIL_ADDRESS>wrote:
Yes, if you can't make him an owner/editor using the existing form let me know. Or it might be easiest if you set up an Outlook filter to auto-forward those emails to Ross and whomever else so that you can all see them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Language-Mapping/language-map/pull/123#issuecomment-716625511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNKB5AXMA277JMSCJKMBG3SMWI3JANCNFSM4S2RWYFA.


Completion of error handling

Would you like to add more error handling for return values from functions like the following?

malloc ⇒ get_args
printf ⇒ dumpMatrix

Can you elaborate more on what you mean?
Both printf and malloc failing are... rare and not something that are commonly checked. I'm happy to take PR's which follow the code's existing error handling strategy which accounts for those functions. But malloc failing is almost non existent on desktop and printf failing is similar, so I do not consider it a priority.

:thought_balloon: I suggest to avoid ignorance of return values a bit more.
Would you like to detect every error situation as early as possible?

Did you find an actual issue that earlier reporting would have helped? Unless there is an explicit example of checking the return value of malloc or printf solving a problem, I am unable to prioritize this for other things.
Malloc is also very very very unlikely to return an error code due to the virtual memory nature of modern computing. Out of memory conditions are only detectable when the OS tries to write memory to an address, not when it is allocated.

:thinking: Can you adhere to secure programming guidelines (so that undefined software behaviour will be excluded)?


Crash with error "BadValue" using primusrun in linux

Godot version:
3.2 beta4
OS:
debian 10
(base) vale@debianace:~$ primusrun ./Desktop/Godot_v3.2-beta4_x11.64
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
Godot Engine v3.2.beta4.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GT 650M/PCIe/SSE2

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  19
  Current serial number in output stream:  20
Terminated

I have to kill gogot because it wont start,
I tried suggestions from another issue #26907 but seems not related
Also I tried to use export LIBGL_ALWAYS_SOFTWARE=1
to be able to use godot with video card intel in the meantime
but I have this error:
(base) vale@debianace:~/Desktop$ ./Godot_v3.2-beta4_x11.64
Godot Engine v3.2.beta4.official - https://godotengine.org
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  17
  Current serial number in output stream:  18
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  34 ()
  Serial number of failed request:  17
  Current serial number in output stream:  18
ERROR: initialize: Condition ' ctxErrorOccurred || !p->glx_context ' is true. returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:190.
ERROR: initialize: Condition ' !p->glx_context ' is true. returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:177.
ERROR: is_viable: Error initializing GLAD
   At: drivers/gles2/rasterizer_gles2.cpp:166.

while if I use primusrun glxinfo it work normally:
(base) vale@debianace:~$ primusrun glxinfo
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context,
    GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_multisample, GLX_EXT_buffer_age,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_libglvnd,
    GLX_EXT_stereo_tree, GLX_EXT_swap_control, GLX_EXT_swap_control_tear,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer,
    GLX_NV_multisample_coverage, GLX_NV_robustness_video_memory_purge,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control,
    GLX_SGI_video_sync
client glx vendor string: primus
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_get_proc_address
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_get_proc_address
Memory info (GL_NVX_gpu_memory_info):
<... snip...>

I add more info:
I installed in my debian 10:
intel-microcode firmware-linux-nonfree
also i did:
sudo dpkg --add-architecture i386
from here
now I can:

run godot in intel card
run nvidia-smi and optirun nvidia-smi with no problems

(base) vale@debianace:~$ optirun nvidia-smi
Thu Dec 26 14:04:48 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.74       Driver Version: 418.74       CUDA Version: N/A      |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 650M     On   | 00000000:01:00.0 N/A |                  N/A |
| N/A   49C    P8    N/A /  N/A |      5MiB /  1999MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

run glxgears (it run in intel video card I guess)
NOT run optirun glxgears

(base) vale@debianace:~$ optirun glxgears
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  11 (X_GLXSwapBuffers)
  Serial number of failed request:  37
  Current serial number in output stream:  38
primus: warning: dropping a frame to avoid deadlock
primus: warning: timeout waiting for display worker
terminate called without an active exception

I tried to run a almost empty godot project (Node2D + godot icon)
(base) vale@debianace:~/Desktop$ optirun --debug ./Godot_v3.2-beta4_x11.64 -e --path /home/vale/godot/test_nvidia/
[ 2180.477263] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 2180.477896] [DEBUG]optirun version 3.2.1 starting...
[ 2180.477925] [DEBUG]Active configuration:
[ 2180.477933] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 2180.477941] [DEBUG] X display: :8
[ 2180.477947] [DEBUG] LD_LIBRARY_PATH: /usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/mesa-diverted/i386-linux-gnu
[ 2180.477959] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 2180.477971] [DEBUG] Accel/display bridge: auto
[ 2180.477982] [DEBUG] VGL Compression: proxy
[ 2180.477991] [DEBUG] VGLrun extra options:
[ 2180.478004] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[ 2180.478086] [DEBUG]Using auto-detected bridge primus
[ 2180.646360] [INFO]Response: Yes. X is active.

[ 2180.646388] [INFO]Running application using primus.
[ 2180.646569] [DEBUG]Process ./Godot_v3.2-beta4_x11.64 started, PID 3345.
Godot Engine v3.2.beta4.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GT 650M/PCIe/SSE2

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  11 (X_GLXSwapBuffers)
  Serial number of failed request:  37
  Current serial number in output stream:  38
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
ERROR: _EDITOR_GET: Condition ' !EditorSettings::get_singleton()->has_setting(p_setting) ' is true. returned: Variant()
   At: editor/editor_settings.cpp:1150.
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7fbff62bf840] (??:0)
[2] ./Godot_v3.2-beta4_x11.64() [0x1eb4348] (??:?)
[3] ./Godot_v3.2-beta4_x11.64() [0x1ed6b7c] (??:?)
[4] ./Godot_v3.2-beta4_x11.64() [0x1e6f437] (??:?)
[5] ./Godot_v3.2-beta4_x11.64() [0xbb7d74] (??:?)
[6] ./Godot_v3.2-beta4_x11.64() [0x181c88e] (<artificial>:?)
[7] ./Godot_v3.2-beta4_x11.64() [0x185f44e] (??:?)
[8] ./Godot_v3.2-beta4_x11.64() [0x28d3010] (??:?)
[9] ./Godot_v3.2-beta4_x11.64() [0x84119d] (??:?)
[10] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fbff62ac09b] (??:0)
[11] ./Godot_v3.2-beta4_x11.64() [0x84e29e] (??:?)
-- END OF BACKTRACE --
[ 2184.051246] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 2184.051278] [DEBUG]Socket closed.
[ 2184.051295] [DEBUG]Killing all remaining processes.

I understand can be possible that its a linux problem, but I'm not sure 100%
So now the title of this issue is not matching anymore I guess, firstly because I don't use primusrun anymore j. I use optirun instead because of different libs.

Some good news about this issue:
After several reconfig and reboots I found the problem:
was misssing VirtualGL explanation from here
Now godot work as long I set the project path when I open it. Because if not it crash with this error:
XIO:  fatal IO error 2 (No such file or directory) on X server ":8"

Duplicate of #26907.


copy semantic fixed

Fixes a C++ semantic error in Python bindings found while developping Julia bindings!

I am seeing the following warning:
warning: base class ‘class xt::xcontainer_semantic<xt::pyarray<int> >’ should be explicitly initialized in the copy constructor [-Wextra]

same for pytensor.


policy/permission vs permission/policy

Creating an issue as follow up to a PR comment.
Originally posted by @maxnoe in https://github.com/rucio/documentation/issues/391#issuecomment-2488719810
The documentation says that policy/permission is the same as permission/policy, however, checking the code, it seems this is not used consistently.
lib/rucio/core/permission/__init__.py has in fact complex logic to determine the policy, but in several places in the code, a simple config_get("policy", "permission") is done instead.

Ah, sorry, cross fire with https://github.com/rucio/rucio/issues/7206
closing here


GDScript 2.0: Editor crash with incomplete await statement in tool script

Godot version
4.0.dev (20210811)
System information
Windows 10, Intel Core i3-6100
Issue description
Godot will crash when saving or loading a tool script that contains await by itself.
To be clear, this is OK:
extends Area3D

func _ready():
	await body_entered

This is a crash:
extends Area3D

func _ready():
	await

Steps to reproduce

Open Godot

Create a new project

Create a script
Give it this code:
extends Node

func _ready():
	await

Save it

Boom!
Notes:

It does not have to be in a scene, it does not have to be a tool script, it does not even have to get close to executing the code.
There is nothing about it in the terminal window.
There is nothing in the project data folder. No logs.

Minimal reproduction project
WillItCrash.zip

@Calinou It does not have to be a tool script.


Warlock can sometimes cast bonds on a solo target

Closing this since I never seen this happen and this doesnt seem to be a real problem.


2FA (Branch)

Created a system to enable and disable 2fa for a user. User logs in. Goes to settings and there's a new page to enable 2fa. To enable it user has to generate an image then scan it and enter the one time password he gets. After it's enabled the user can check the password again if he wishes or disable it. If it's enabled then on the next login the user is asked to enter a one time password to login successfully.
@romilrobtsenkov @raimop
closes #13

this is little bit confusing, would change the button labels if 2FA is enabled, also maybe there is no need to show check button then

this is little bit confusing, would change the button labels if 2FA is enabled, also maybe there is no need to show check button then

@romilrobtsenkov  @raimop Added back the removed functions and problems caused by eslint. Rest of the files are managed by eslint styles. Nothing should be missing now. Checker is removed and more labels for clarification are added.

@romilrobtsenkov  @raimop Added back the removed functions and problems caused by eslint. Rest of the files are managed by eslint styles. Nothing should be missing now. Checker is removed and more labels for clarification are added.


Add option to set/change singer avatar

This function was discussed and requested, so I decided to add it.
You can now set/change the singer avatar from the Singers menu. Note that it will not change on the track header until the singer gets manually reloaded.

Duplicate, closing


Remove CM_Class_Abstract

Motivation
Enable class-configuration capabilities on a class without having to alter it's inheritance. E.g. CM_Paging_Abstract no longer needs to extend CM_Class_Abstract just so a few select children can use class-configuration features.
Idea

introduce CM_Class_ConfigTrait to handle class-config logic
introduce CM_Class_TypeTrait to handle class-type logic (will be interwoven with preexisting CM_Typed interface)
move getClassHierarchy() into CM_Util

thoughts @njam @tomaszdurka ?

Favor composition over inheritance

sgtm! Let's treat it as "slack" though?

I am not sure about the structuring. Probably trait could be more of CM_Config_ConfigurableTrait, not sure about the Typed though.

Type is closely tied to the config.

I prefer to keep the current naming.
CM_Config_* sounds a bit ambiguous, while CM_Class_* infers that this applies to the class as such.

Regarding the Config namespace I thought it would be good to put all Config related things there.
I would still go for:

CM_Config_ConfigurableTrait (maybe along with CM_Config_ConfigurableInterface)
CM_Config_TypedInterface

Using adjectives for above is a bit more easier to understand what does object do, @alexispeter agree?
I've also added interface as suffix, what do you think about having this as convention too?

I've also added interface as suffix, what do you think about having this as convention too?

I already renamed CM_Typed to CM_Class_TypeInterface in my branch ;)

Using adjectives for above is a bit more easier to understand what does object do, @alexispeter agree?

Agree to do this where applicable (don't invent new words).
Regarding which module to put it in, I still advocate CM_Class_* as those traits are only related to the Config in that they use it, but they are more closely tied to the concept of "classes". I mean we also call the mongodb storageadapter CM_Model_StorageAdapter_MongoDb and not CM_MongoDb_ModelStorageAdapter just because it uses mongodb.

Then again, maybe introducing a new module just for those traits doesn't make much sense.

Since these changes are very extensive, I will deprecate CM_Class_Abstract instead of removing it entirely and apply changes in small portions.

Functionality in CM_Class_Abstract can be divided into configuration- and structure-related methods.
Configuration

getType()
getTypeStatic()
_getClassName()
_getConfig()
_getConfigRaw()

Class Structure

getClassHierarchy()
getClassChildren()
_getClassHierarchy()
_getClassNamespace()

How about introducing services for both? Class stuff could also go to CM_Util if a service is overkill.

As discussed let's extract these two functionalities into separate classes/modules, but not services just yet. We can then expose them through traits, and with CM_Class_Abstract as a temporary solution until code is refactored.


Updated to version 3.20.0

Releasing new Host versions.
V3 Release
V2 Release

PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] If applicable, the PR references the bug/issue that it fixes in the description.
[ ] New Unit tests were added for the changes made and CI is passing.

/azp

/azp run v3 powershell build


Add functionality to automatically distribute assignments between TA's

My initial testing has been very limited, due to Instructure Canvas not having mock-courses for testing. (At least that I know of).
It works for the first assignment on PoP2023. I am 99 % sure it will work with group assignments as well, and 100 % sure it will break in unthinkable ways when we try.

Thanks for the contribution


Add SystemPermission

@tboggiano - any idea why Revoke wouldnt work all the time? It worked on my sql2017 box but  not any of my other boxes. Gail said it may be because it wasn't explicitly granted. Then I find that the login is just public. So I'm kinda lost. Any ideas?

Gail is right a REVOKE will not work unless an explicit GRANT was ran.  I have a 2016 instance installed what permission are you testing against and I'll play with it and see if I can figure it out.

@tboggiano thank you so much 🌟 makes sense. gonna merge and then take another look later 😅


Change the transition-logs-1 git user to specify an actual email address

A while back, we set the transition-logs-1 machine Logs Processor user
up with a dummy email address, which got
added to someone's GitHub account so it wasn't completely anonymous.
We're tidying up, so we're changing this to an email address that
still won't go anywhere - it being a GitHub one - but makes it more
obvious which account it's from and what it's used by.

(cc @alexmuller)

Cool, thanks! :+1:


nixos/kubernetes: fix control-plane-online prestart dependency

Motivation for this change
This fixes a startup problem in the kubernetes module caused by some changes to the kubectl behavior introduced in version >=1.13.5.
The kubeconfig provided to the kubernetes-control-plane-online.service is invalid.
However, the apiserver /healthz endpoint can be accessed without auth so it's simpler to just use curl for that.
Related discussion can be found in #56789.
cc @calbrecht @srhb
Tests run clean locally:
nix-build nixos/release.nix \
-A tests.kubernetes.dns.singlenode \
-A tests.kubernetes.dns.multinode \
-A tests.kubernetes.rbac.singlenode \
-A tests.kubernetes.rbac.multinode

/nix/store/5vjb7wyzhxls1nmm5vgj6bvbi4kbx5ls-vm-test-run-kubernetes-dns-singlenode
/nix/store/38yfrsmrahp83p7h5zg76qiphjjb51jz-vm-test-run-kubernetes-dns-multinode
/nix/store/jqa7yq08i4yxsqayix9dfdy1qjv0x2vm-vm-test-run-kubernetes-rbac-singlenode
/nix/store/mmxswlv5clz5ac0q2h5wssbnzlak4vbn-vm-test-run-kubernetes-rbac-multinode

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[X] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

This fixes #60358, right?

The kubeconfig provided to the kubernetes-control-plane-online.service is invalid.
Um, is this okay though?

OK, discussed this out-of-band. My concern was that we left a defective kubeconfig in place, but that's not the case, since the defective one, generated just for this unit, no longer exists. I missed that line. Good!
Another thing we discussed, tangential to the issue at hand, is that both curl and kubectl of healthz is in fact insufficient to determine whether the control plane is up, since it's possible for several components to be missing. Should be fixed later.

👍 @johanot thanks, this is simple and clear.

Sorry guys for being so dumb, but how can I discover if this will be backported to 19.03?

@azazel75 AFAIK there's no point in backporting this, since the kube-control-plane-online-unit is not part of the 19.03 kubernetes module?


Set-PnPWebPartProperty doesn't work with Registered App Connect-PnPOnline

If I connect using:
Connect-PnPOnline -Interactive -Url $SiteURL -LaunchBrowser
then Set-PnPWebPartProperty works, and I can update multiple webparts on a page using Set-PnPWebPartProperty.
If I register my App with SharePoint and give it Full Control for my site and connect using:
Connect-PnPOnline -Url $SiteURL -Thumbprint "XXXXXXXXXXXXXX" -ClientId "XXXXX" -Tenant 'XXXXX.onmicrosoft.com'
I can upload files in the same library and update the webpart page that exists (whereby, in the version history, it shows up as being modified by "SharePoint App"); however, the webparts do not actually get updated when calling the same Set-PnPWebPartProperty command.  There are no errors occurring.
Simply changing how I connect makes the command work or not work silently.
This is needed to work for a scheduled powershell to update webpart information.

Hi @TJF0700 , will have to close the issue unfortunately.
Debugged it ,looks like this is a problem coming from SharePoint CSOM SDK which is provided by Microsoft.
Would suggest that you raise a ticket with them.
Once their product team, fixes that and updates CSOM , PnP PowerShell will automatically have the latest version available.
The issue lies in the  SaveWebPartChanges  method of WebpartDefinition class.


Date and 'polymorphic' class causes JsonGenerationException: BsonSerializer can only be used with BsonGenerator

I got an issue when updating to Jongo 1.3.0 that seems to be related to https://github.com/michel-kraemer/bson4jackson/issues/67, I've created a question here: www.stackoverflow.com/questions/42004332/date-and-polymorphic-class-causes-jsongenerationexception-bsonserializer-can
Once again it seems that the order of the properties causes the issue and I only see the problem with java.util.Date. bson4jackson/2.8.0-SNAPSHOT gave a different problem, also described in the SO post.

Did you find a solution to this problem? We are facing exactly the same issue and using de.undercouch:bson4jackson:2.8.0-SNAPSHOT doesn't solve it.

Nope, sorry. We have no good workaround, and as you say, 2.8.0-SNAPSHOT didn't work either, it gave a different problem.

Thank you lovef for the prompt response.

It should be noted that while it may not have fixed up lovef's issue, the snapshot version of the code does fix a few different issues related to Serialization that is impacting numerous people. Currently I am having to toss out the snapshot version of this code onto a production environment as a result and am wondering if it might not be possible for you to actually cut a release (preferably upgrading your dependency to jackson 2.8.7 or newer as that is what I have confirmed everything to work with including dates)
BTW, if somebody could explain what the "different problem" is, it might be helpful to understanding how to address it as everything I can tell is that the SNAPSHOT version of the code is working perfectly.

From the SO post linked above: When I try de.undercouch:bson4jackson:2.8.0-SNAPSHOT the parsed date will be null if it comes after type
I can also include the failing spock test here, it confirms that 2.8.7 does not solve the problem:
def mapper = new ObjectMapper(new BsonFactory()).registerModule(new BsonModule())
def bytes = mapper.writeValueAsBytes(original)

expect:
def parsed = mapper.readValue(bytes, Base)
parsed instanceof A // com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator
parsed.string == original.string
parsed.date == original.date // parsed.date is null with 'de.undercouch:bson4jackson:2.8.0-SNAPSHOT'
parsed.type == original.type

where:
testCase                  | original
'A'                       | new A(string: 'string', date: new Date(), type: 'a') // fails
'String, Date, Type'      | [string: 'string', date: new Date(), type: 'a']      // fails
'String, null date, Type' | [string: 'string', date: null, type: 'a']
'String, Type, Date'      | [string: 'string', type: 'a', date: new Date()]
'Type, String, Date'      | [type: 'a', string: 'string', date: new Date()]

de.undercouch:bson4jackson:2.7.0 (bundled with jongo 1.3) will cause the failing cases above to throw an exception: "BsonSerializer can only be used with BsonGenerator"
de.undercouch:bson4jackson:2.8.0-SNAPSHOT will set date as null in the failing cases

Wether you release the snapshot or not makes no difference to me as I can't update until this issue is resolved.

Interesting because that scenario you outlined works just fine using latest snapshot release which uses the bson4jackson 2.8.0-SNAPSHOT dependency under Java8 (openjdk). And with 2.7.0 it was failing (not even being able to serialize the object to start with).
Could the problem be with Jongo maybe? Even a quick test of code below seems to be handling the data correctly now where as before it was not. Pasted entire codebase so please verify if I am misunderstanding the scenario somehow.
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import de.undercouch.bson4jackson.BsonModule
import org.bson.Document
import org.litote.kmongo.KMongo
import java.util.*

abstract class Base {
    var string: String = ""
    var date: Date? = null
    var type: String = ""
}
class Transform : Base() {
    init {
        type = "c"
    }
}

fun main(args: Array<String>) {
    val mapper = ObjectMapper()
            .registerModule(BsonModule())
            .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)

    val client = KMongo.createClient("localhost")
    val db = client.getDatabase("test")

    val raw = db.getCollection("transform")
    raw.drop() // remove previous data
    raw.insertOne(Document("string", "string").append("date", Date()).append("type", "a"))
    raw.insertOne(Document("string", "string").append("date", null).append("type", "a").append("extra", "stuff"))
    raw.insertOne(Document("string", "string").append("type", "a").append("extra", "stuff"))
    raw.insertOne(Document("string", "string").append("type", "a").append("date", Date()))
    raw.insertOne(Document("type", "a").append("string", "string").append("date", Date()).append("extra", "stuff"))
    raw.insertOne(Document("type", "a").append("string", "string").append("extra", "stuff"))

    raw.find().forEach {
        val bytes = mapper.writeValueAsBytes(it)
        val doc = mapper.readValue(bytes, Transform::class.java)
        println("String: ${doc.string}, Date: ${doc.date}, Type: ${doc.type}")
    }
}

With 2.7.0

Exception in thread "main" com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator

With 2.8.0-SNAPSHOT

String: string, Date: Fri Mar 31 10:22:13 EDT 2017, Type: a
String: string, Date: null, Type: a
String: string, Date: null, Type: a
String: string, Date: Fri Mar 31 10:22:13 EDT 2017, Type: a
String: string, Date: Fri Mar 31 10:22:13 EDT 2017, Type: a
String: string, Date: null, Type: a

I updated my example to include the objects to serialize. The key part is the @JsonTypeInfo annotations. Not that I read the Base type but expect an instance of subclass A, based on the type info.
When I run your example, slightly modified as I have no local Mongo DB, I don't get an exception before I added the annotation on the Base class. Strangely I get no error when date is before type like in my example, but a new error instead when date comes after type:

Document{{string=string, type=a, date=Mon Apr 03 13:40:50 CEST 2017}}
com.fasterxml.jackson.databind.JsonMappingException: java.util.Date cannot be cast to java.lang.Number (through reference chain: bsonkotlin.SepatelBsonTest$Transform["date"])

    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
            include = JsonTypeInfo.As.EXISTING_PROPERTY,
            property = "type",
            visible = true)
    @JsonSubTypes(
        JsonSubTypes.Type(name = "a", value = Transform::class)
    )
    abstract class Base {
        var string: String = ""
        var date: Date? = null
        var type: String = ""
    }

    class Transform : Base() {
        init {
            type = "c"
        }
    }

    @Test fun main() {
        val mapper = ObjectMapper(BsonFactory())
                .registerModule(BsonModule())
                .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)

        val raw = ArrayList<Document>()
        raw.add(Document("string", "string").append("date", Date()).append("type", "a"))
        raw.add(Document("string", "string").append("date", null).append("type", "a").append("extra", "stuff"))
        raw.add(Document("string", "string").append("type", "a").append("extra", "stuff"))
        raw.add(Document("string", "string").append("type", "a").append("date", Date()))
        raw.add(Document("type", "a").append("string", "string").append("date", Date()).append("extra", "stuff"))
        raw.add(Document("type", "a").append("string", "string").append("extra", "stuff"))

        raw.forEach {
            println(it.toString())
            val bytes = mapper.writeValueAsBytes(it)
            val doc = mapper.readValue(bytes, Transform::class.java)
            println("String: ${doc.string}, Date: ${doc.date}, Type: ${doc.type}")

            Assert.assertTrue(doc is Transform)
            Assert.assertEquals(it["string"], doc.string)
            Assert.assertEquals(it["date"], doc.date)
            Assert.assertEquals(it["type"], doc.type)
        }
    }

Ok there is definitely something odd going on. After some playing around, it only happens when the BsonModule is enabled (make sense because that is the bson4jackson library and thus the reason this topic is here). And only happens whenever a "date" value is specified after a dynamic property (in the examples above that would be the "type" field.
Would seem like this particular issue is still an issue, however, all the other "BsonSerializer can only be used with BsonGenerator" sources of errors have been resolved. I would like to see a release cut and a stap at a .1 bugfix release to resolve this particular issue if possible.

I am experiencing the same issue with a date which is followed by a dynamically created _class attribute.

I've just encountered this same issue with jongo 1.4.0 (which includes bson4jackson 2.9.0) and jackson 2.9.7.  Does a workaround exist?

@etrochim I met it on restx as well (see https://github.com/restx/restx/issues/285)
Currently waiting for a<EMAIL_ADDRESS>release rolling back change made into<EMAIL_ADDRESS>and aligning over<EMAIL_ADDRESS>

I met same issue using jackson sub-type and date-type<EMAIL_ADDRESS>bson4jackson's deserializers only  check BsonParser. but in specific case it passed JsonParserSequnce(JsonParser Helper) type instead of BsonParser.
Bson4jackson's deserializers need considering JsonParserSequence type.

I was finally able to reproduce and fix this issue. Version 2.11.0 has just been released.


Implementation of RAGE embedding

Hello, i would like  to know if you intend to make a repository dedicated to the RAGE method proposed in the ChemoKG article. I would like to perform analysis with other types of health-related semantic datasets.
Thanks in advance.

Hello, we are preparing the repository for the evaluation of methods on health KGs.
I will leave the link here, when it's ready to go on public.
Thank you for your interest.


feat: add native cell component to UI library

This PR moves the new Cell component to the UI library

@pete-watters was thinking on this last night, is Cell actually just a RN TouchOpacity wrapping ItemLayout, maybe Cell isn't even nec now that we have ItemLayout?

Was thinking bc we created Pressable in the extension to handle different states, but there already is a RN Pressable (or TouchableOpacity) that handles all the states, we just needed the layout components for mobile, right?

Was thinking bc we created Pressable in the extension to handle different states, but there already is a RN Pressable (or TouchableOpacity) that handles all the states, we just needed the layout components for mobile, right?

I think that could be right 👍  I don't mind having a wrapper or else just using <TouchableOpacity. It might be easier to mentally connect with the design system if we use a <Cell wrapper.

@pete-watters was thinking on this last night, is Cell actually just a RN TouchableOpacity wrapping ItemLayout, maybe Cell isn't even nec now that we have ItemLayout?

I think it's a similar case in Sheet which is essentially just a wrapper for ScrollView - https://github.com/leather-io/mono/pull/400
Maybe it's easier for semantics just to keep the wrappers for consistent naming? (Sheet on web + native, Cell also)

@fbwoolf - opening this for review now as I don't want it to block your next work.
If you think it looks OK and you need it feel free to merge.


[objc] Figure out how to make metadata token lookup work with the linker

See PR #303 - we currently have to disable metadata token lookup when the linker is used, because the linker may re-save any assembly (even those not linked).
There are a few solutions, but all non-trivial:

Change the linker to not change metadata tokens for assemblies that are only re-saved, not linked. This is only a partial solution, because it won't work for linked assemblies.
Run the embeddinator after the linker has executed, but before the final executable is (natively) linked. This is further complicated by the fact that the embeddinator needs to process the assemblies before the linker runs in case the linker needs extra instructions (issue #301).
Store the tokens in an external file (instead of in the compiled file), and update this file after the linker has executed.

I think option 3. is by far the easiest, unless someone else has any better ideas.

but I'm not sure what you mean by external file (instead of in the compiled file). I see two different variations:

3.a. external data file (not compiled)
The extra time to load and query the data file might reduce (or even remove) the runtime gains of using tokens. That needs measurement (periodic because results might changes over time, e.g. mono updates).
3.b. external file (compiled)
The embeddinator executes again (on the linked output) just to regenerate a bindings-tokens.h private header file before doing the final, native build.
That new file contains all the required, and up to date, #define METADATA_TOKEN_FOO_TYPE 0x12345678

3a. Yes, my idea was an external data file, similar to the aot data files we're now using in Xamarin.iOS. With some care with the data format, the extra time to load this file into memory and use the data should be very low (my current idea is to just write an array of ints into this file, and the generated code contains indexes into this array, which means that at runtime each access is just one additional indirect memory access compared to the inlined constants).
3b. This won't work, because the generated embeddinator code is initially compiled into a static library, and then linked into the framework's executable. Changing the generated code will require everything to be re-linked (natively) again.

Unless someone comes up with a better idea then 👍 to 3a


Ignore password managers on new page name field

Describe the feature you'd like
When creating a new page, some password managers (like 1Password and Keeper) try to autofill the page title/name field with an identity or credentials.
Describe the benefits this would bring to existing BookStack users
This would make it less annoying having to either delete what the password manager autofilled or clicking away from pop-up suggestions that the password manager is suggesting.
Can the goal of this request already be achieved via other means?
No. With 1Password, you can tell it to ignore this page, but it's not ephemeral. It only remembers that for the current page load.
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?
1 to 5 years
Additional context

To disable the password manager functionality on the page title field, it's as simple as adding the attributes data-1p-ignore and class="keeper-ignore" to the input text field. I see that the new page form uses the resources/views/form/text.blade.php common helper, but I'm not sure how to generically extend that to conditionally add both of those attributes, especially since the class attribute already exists and would need a second value (keeper-ignore) added.

Hi @c0shea, Thanks for the suggestion.
I'm really not keen on adding vendor/software/extension-specific elements like that.
I guess we could maybe use less generic field names (page-name instead of name) but overall I'm not keen on making changes and/or adding complexities (even if minor) to suit decisions or limitations in external specific software.

Hi, I played around a bit (on book create).
Setting autocomplete="off" (which would be a considerable thing in my opinion) will prompt 1password to not directly pop up: You'll not get the suggestion-thing at the bottom whilst the clickable Icon on the right stays (but must be clicked in order to get suggestions).

When changing id and name to book-name instead of name 1password will still be there.
Additionally changing the content of the label (!) to Book-{{ trans('common.name') }} will make 1password not recognize this field anymore.
If the id / name of the input or the label content is Name 1password will generally recognize the field as "maybe you want your name in here?" which is quite interesting to know.
In my opinion the solution with autocomplete=off would be totally fine and has a low risk of breaking something. I could implement that?

@c0shea would you be happy with my described solution?

@Hecke29 that sounds good to me. I can't see why anyone would want their web browser or password manager extension to try to auto fill the page name field.

@ssddanbrown is it okay for you to change those kind of inputs to autocomplete=off? I could do it in code just want to be sure it’s something you can see as a valid solution

@Hecke29 It still doesn't feel right to me. If we were making that change based upon the user feedback of normal autocomplete being a common nuisance, I'd be all for it. But we're making the change based upon the dodgy behaviour of an external browser extension, which makes me think this should be the responsibility of 1password.
There is some utility to the native auto-complete, I sometimes use it myself if I need to create a bunch of content with similar names (Sure I could copy/paste, but I don't always think ahead).


HDDS-9660. NPE at OzoneManagerRatisServer.getRaftLeaderId

What changes were proposed in this pull request?
There is a possibility that first call of method returns non-null value but second time call can return null value, so the way check is done is wrong.
So first get value in local variable and use same for check null and use further.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9660
How was this patch tested?

impact verified with existing cases

@adoroszlai updated...

Thanks @sumitagrawl for the patch, @sadanand48 for the review.


A groveling request for 1.19.2 support

Make sure you are not opening a duplicate.

[ ] I have searched the issue tracker and did not find an issue describing my bug.

Description of your suggestion.
I know it's nothing like 1.20+ and it's not an easy thing to implement, I Just LOVE this mod and I'd do anything within my power to have it on my server!
I've got the other 2 mods (RPG Difficulty and Nameplates) and I just want this so bad!
Thank you for your very kind consideration.

Mainly out of time reasons I only work on the latest versions of my mods.

No problem, totally your prerogative... thank you anyway for the mod. Maybe when I'm one day a highly literate modder (lol) I will backport this for myself!


crash when i launch the node

when i launch the test node, i found it crashed. i cannot figure out why this happened. the error message is below.

when i launch the test node, i found it crashed. i cannot figure out why this happened. the error message is below.

Duplicate of #


Add Jenkinsfile

Configure project to build on Jenkins 2.
There are a couple of environment variables from jenkins.sh which I haven't migrated, because they aren't used anywhere else in the project:
export GOVUK_APP_DOMAIN=test.gov.uk
export GOVUK_ASSET_ROOT=http://static.test.gov.uk

Does that sound OK? Or are they required by some dependency which is not in this repo?
I've also added the schema test build parameters so this can be added to the content schema project's list of downstream builds. email-alert-frontend is not currently a downstream build in Jenkins 1, but I suspect that it should be, since it relies on the email_alert_signup schema.
https://trello.com/c/S4DZbsPa/285-jenkins-2-migration

Does that sound OK? Or are they required by some dependency which is not in this repo?

They might be used by Plek (see https://github.com/alphagov/plek/blob/master/lib/plek.rb ), but if the tests pass, then they pass, and less configuration is probably better.


Upgrade rails to 6

What
Explain what changes inside the code, this can be as simple or complicated as you want as long as it's clear
Why
Explain why these things are changes. This explanation is for your colleagues and your future self.
Code Review
Please consider the following checklist when reviewing this Pull Request.
More background and details here.

[ ] Does the code actually solve the problem it was meant to solve?
[ ] Is the code covered by unit tests? Integration tests?
[ ] Does anything here need documentation? (Focus on why, not what.)
[ ] Does any of this code deal with privacy sensitive information or affects security? Ask an additional reviewer.
[ ] Is the code easy to understand and change in the future?
[ ] Is the same code or concept duplicated? Find a balance between DRYness and readability.
[ ] Does the code reasonably adhere to the Kabisa coding standards?
[ ] Be kind.

When running locally, all tests are now green:
docker compose up --build
docker exec -it kudo-o-matic_web bash
RAILS_ENV=test bundle exec rspec

Finished in 13.02 seconds (files took 1.84 seconds to load)
617 examples, 0 failures


fix: dont show import modal unexpectedly

Description
Fixes the reported issue. One reset call was missing from git connection component.
Fixes #14507
Type of change

Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/ok-to-test sha=af8c1889120d754a42d295d22910cd714cd1eb2f

Successful execution demo on DP:
https://user-images.githubusercontent.com/1573771/173592046-0d77fea7-bef8-4caf-ac1a-5aa51ba8dece.mov

@IAmAnubhavSaini  Stilling facing the issue when user has successfully connected the application to git adding the video for reference
https://www.loom.com/share/9f75c746c7b44ae4bfa9b34dab5b3561


Trailing  tag after URL

Copying and pasting paragraphs with individual mediaplay or video links from google doc leaves a trailing </a> tag after the URL (e.g., copying and pasting this doc into a paragraph component).
This PR has a temporary fix for that bug, but should be revisited once new kiln is out

looks like this is fixed in new kiln


Fix generation of compatible linux bins on travis

Fixes https://github.com/rust-lang-nursery/multirust-rs/issues/123

I mentioned on IRC, but perhaps we could just run all tests inside the docker container? That would avoid the need for installing all the packages on the host as well. If that ends up being difficult though r=me, CI is always just a bunch of hacks :P

OK, I've sunk everything into docker.

r=me


how i can import same compoents instead all ?

import { f7List, f7ListItem, f7Navbar } from 'framework7-vue';
https://framework7.io/vue/installation.html

I didn't understand your question, you are already importing specific components aren't you?

i need use same component instead bundle maybe this can optimize load and animations

I believe you are on the right track. You are only using f7List, f7ListItem and f7Navbar not the whole package by your import call. Module

@vahidalvandi I think you have been doing pretty well, don't worry because as @ajcool2k said you are already doing it by using bundles


FirebaseCore Lexical or preprocessor issue

[READ] Step 1: Are you in the right place?
Yes
[REQUIRED] Step 2: Describe your environment

Xcode version: 10.0
Firebase SDK version: 5.15.0
Firebase Component: Core (Auth, Core, Database, Firestore, Messaging, Storage, etc)
Component version: _____

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
So I am having an issue with compiling my project with firebase. This issue started the minuted I updated all my firebase pods. Ever since i updated the pods I have been getting this error
Lexical or preprocessor issue and then when I go to what the error is it says this 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
Has anyone faced this problem or have any idea how to fix it?
I have tried uninstalling and installing, I have tried changing the scheme and rebuilding, I have tried cleaning and building and nothing has worked.
I have included a picture of what I can see in Xcode.

Here is the text representation of my podfile
workspace 'Eventful'
target 'Eventful' do
    #project '/Users/BandManFabo/Desktop/EventfulApp/EventfulApp1/Eventful/Eventful.xcodeproj'
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    workspace 'Eventful'
    use_frameworks!
    pod 'FirebaseCore'
    pod 'FirebaseAuth’
    pod 'FirebaseDatabase’
    pod 'FirebaseStorage’
    pod 'FirebaseMessaging’
    pod 'BPStatusBarAlert'
    pod 'Alamofire'
    pod 'AlamofireImage'
    pod 'AlamofireNetworkActivityIndicator'
    pod ‘SVProgressHUD’
    pod 'SwiftLocation'
    pod 'IGListKit', :git => 'https://github.com/Instagram/IGListKit.git', :branch => 'master'
    pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
    pod 'Fabric'
    pod 'Crashlytics'

    pod 'NotificationBannerSwift', :git => 'https://github.com/Daltron/NotificationBanner', :branch => 'master'
    pod 'MarqueeLabel/Swift', '3.2.0'
    pod 'GooglePlaces'
    pod 'GooglePlacePicker'
    pod 'GoogleMaps'
    pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git', :branch => 'master'
    pod 'RevealingSplashView'
    pod "RecordButton"
    pod 'DTPagerController'
    pod 'SimpleImageViewer', '~> 1.1.1'
    pod 'IQKeyboardManagerSwift'
    pod 'SwipeCellKit',:git => 'https://github.com/SwipeCellKit/SwipeCellKit.git', :branch => 'master'
    pod 'XLActionController/Twitter'
    pod 'Instabug'
    pod 'InstantSearch'
    pod 'YNSearch'
    pod 'AMPopTip'

    pod 'AZDialogView'
    pod 'SwiftEntryKit', :git => 'https://github.com/huri000/SwiftEntryKit', :branch => 'master'

    pod 'Eureka'
    pod 'ImageRow', '~> 3.0'
    pod 'TokenRow'
    pod 'TableRow'
    pod 'ViewRow', :git => 'https://github.com/EurekaCommunity/ViewRow'

    pod 'AlgoliaSearch-Client-Swift'
    pod 'Kingfisher'
    pod 'DZNEmptyDataSet'
    pod 'Segmentio', :git => 'https://github.com/Yalantis/Segmentio', :branch => 'master'
    pod 'TransitionButton'
    pod 'DropDown', :git => 'https://github.com/AssistoLab/DropDown', :branch => 'master'
    pod "TLPhotoPicker"
    pod 'CRRefresh'

    pod 'AFDateHelper'
    pod 'ColorSlider'
    pod 'SnapSliderFilters'

    pod 'YPImagePicker'
#    pod 'OneSignal', '>= 2.6.2', '< 3.0'
    pod 'SnapKit', '~> 4.2.0'

    pod 'Parchment',:git => 'https://github.com/rechsteiner/Parchment', :branch => 'master'
    pod 'TagListView', '~> 1.0'

    # Pods for Eventful
end

Closing for now. Will reopen with more details.

After reading many solutions, what worked for me was doing a pod update:
cd platforms/ios; pod update; cd ../..

That brought all the versions into line. Occams razor, I guess.

Thanks @dfiggtns for following up. I just had the same issue that was also fixed by a pod update.


Unable to download images: Stack Trace: (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'artist'",), <traceback object at 0x04346058>)

Prerequisites

[x] Did you read FAQ section?
[x] Did you test with the latest releases or commit ?

Description
[Description of the bug or feature]
Getting this error when trying to download images today. Worked fine yesterday.
Stack Trace: (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'artist'",), <traceback object at 0x04346058>)
Referred to https://github.com/Nandaka/PixivUtil2/issues/182 and tried changing language on pixiv to english/japanese. Did not impact anything. Still getting the same error.
Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Versions
PixivDownloader2 version 20190919
You can get this information from executing PixivUtil2.py --help.

[Network]
useproxy = False
proxyaddress =
useragent = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
userobots = True
timeout = 60
retry = 3
retrywait = 5
downloaddelay = 2
checknewversion = True
enablesslverification = True
[Debug]
loglevel = DEBUG
enabledump = True
skipdumpfilter =
dumpmediumpage = False
dumptagsearchpage = False
debughttp = False
[IrfanView]
irfanviewpath = C:\Program Files\IrfanView
startirfanview = False
startirfanslide = False
createdownloadlists = False
[Settings]
downloadlistdirectory = .
uselist = False
processfromdb = True
overwrite = False
daylastupdated = 7
rootdirectory = .\images
alwayscheckfilesize = False
checkupdatedlimit = 0
downloadavatar = True
useblacklisttags = False
usesuppresstags = False
tagslimit = -1
writeimageinfo = False
writeimagejson = False
datediff = 0
backupoldfile = False
enableinfiniteloop = False
verifyimage = False
writeurlindescription = False
urlblacklistregex =
dbpath =
useblacklistmembers = False
setlastmodified = True
uselocaltimezone = False
[Filename]
filenameformat = %artist% (%member_id%)%urlFilename% - %title%
filenamemangaformat = %artist% (%member_id%)%urlFilename% - %title%
filenameinfoformat = %artist% (%member_id%)%urlFilename% - %title%
avatarnameformat =
tagsseparator = ,
createmangadir = False
usetagsasdir = False
urldumpfilename = url_list_%Y%m%d
[Authentication]
username =
password =
cookie =
refresh_token = None
[Pixiv]
numberofpage = 0
r18mode = False
dateformat =
[FFmpeg]
ffmpeg = ffmpeg
ffmpegcodec = libvpx-vp9
ffmpegparam = -lossless 1 -vsync 2 -r 999 -pix_fmt yuv420p
webpcodec = libwebp
webpparam = -lossless 0 -q:v 90 -loop 0 -vsync 2 -r 999
[Ugoira]
writeugoirainfo = False
createugoira = False
deletezipfile = False
creategif = False
createapng = False
deleteugoira = False
createwebm = False
createwebp = False

duplicate with https://github.com/Nandaka/PixivUtil2/issues/556
also try the beta2


Route addition; ubuntu@sandclock-robinhood-on-rails-5588355,2017-10-28

…_12-36-46@/dev/pts/7

Mistaken repo, sorry!!  Meant for fork instead.


DropDown with Image Required

i want to use a dropdwon menu in which image and value both will show in show in a selected menu Item but i couldn't be able to find a way to implement this in material ui.
i insert an image in menu item this works well when i scroll for selection of some menu item but when i select some value image is disapears.i want to show image in selected menu item too.
here is example on the dropdown that i wants

You can use the renderValue property of the Select component to do so.

can you please share the link of select component because i couldn't be able to find in material-ui v 0.19.4

This is on the v1-beta branch: https://github.com/callemall/material-ui/blob/1a26a15bd47345dcbae5d118cea58311a30a2b05/pages/api/select.md.

But I am using 0.19.4 version in my whole project I can't use beta version

@waheed25 Maybe you can try StackOverflow then.

I also tried it but no response


Add an icon pack we can use, with a proper license we can use

Looks like there is a free one part of the material design library we're using: https://getmdl.io/styles/index.html and/or https://google.github.io/material-design-icons/ (search for Icon). We should probably just use it

Actually let's wait for some design/frontend people at Google to help out with this 👍


Calendar App, Paint App, Screenshot taker, and Search Engine - Tkinter Applications - Python GUI

Calendar App:

Shows the calendar where user selects year and month.
Range of year and month is custom

Paint App:

User selects pen, brush, colour, eraser and pixel size

Screenshot Taker

Takes the screenshot of the current screen

Search Engine

Wikipedia search for keywords typed by user

Related PR #33


Avoid inconsistency in paths of FeatureIO

When designing the tests it came up that FeatureIO cannot load it's own saved file, due to the inconsistencies with paths.
On saving the object assumed paths returned by walk_eopatch which are just a file-system-structured paths of features (e.g. "eopatch/data/NDVI") and lack any extensions.
On loading the object assumed filesystem paths (e.g. "eopatch/data/NDVI.npy.gz").
Turns out it is not that simple to unify the two. What I did is:

paths are always assumed to be filesystem paths with full extensions
they are checked for compliance with feature type extension and compression level
if the compression level is not specified, it is inferred from path (so 0 if no .gz ending and 1 otherwise), which is needed for loading, since we have no clue how the feature was saved other than inspecting the path
for working with 'eopatch paths' a new constructor was added that automatically adds extensions to produce a proper filesystem path

Codecov Report
Base: 82.88% // Head: 82.90% // Increases project coverage by +0.02% :tada:

Coverage data is based on head (d8804ed) compared to base (d93fac1).
Patch coverage: 98.03% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #473      +/-   ##
===========================================
+ Coverage    82.88%   82.90%   +0.02%
===========================================
  Files           60       60
  Lines         5631     5652      +21
===========================================
+ Hits          4667     4686      +19
- Misses         964      966       +2

Impacted Files
Coverage Δ

core/eolearn/core/eodata.py
90.06% <ø> (ø)

core/eolearn/core/eodata_io.py
94.14% <98.03%> (+0.09%)
:arrow_up:

core/eolearn/core/extra/ray.py
92.68% <0.00%> (-2.44%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Geometry2D.triangulate_delaunay returns non clockwise triangles since 4.1

Godot version
4.1,4.2
System information
windows 10
Issue description
since godot 4.1, Geometry2D.triangulate_delaunay returns non clockwise triangles
Steps to reproduce
var points : Array[Vector2] = []
points.append(Vector2(-584.713012695313,-148.372039794922))
points.append(Vector2(107.9462890625,22.7720947265625))
points.append(Vector2(752.789916992188,-536.875854492188))
points.append(Vector2(-251.754272460938,142.069213867188))

var tris : PackedInt32Array = Geometry2D.triangulate_delaunay(points)
print("triangles : ",tris)

for i in range(0,tris.size(),3):
	var a : Vector2 = points[tris[i]]
	var b : Vector2 = points[tris[i+1]]
	var c : Vector2 = points[tris[i+2]]

	var clockwise : bool = Geometry2D.is_polygon_clockwise([a,b,c])

	print("clockwise : ",clockwise)

Minimal reproduction project
delaunay_tmp.zip

While this can be considered an issue there's no guarantee that they be clockwise from the documentation

The problem (I think) lies in the change since version 4.0.
I got stuck on 4.0.4 for a while before taking the time to look for the cause of my problems with 4.1+
I agree that this is not strictly speaking a bug but an undocumented change that can confuse
:-)

Are the triangles both clockwise and anticlockwise? Or only anticlockwise?

we get both (as in the minimal reproduction project)

The input polygon is invalid and self intersects, so the result of it isn't really a good indication

I am surely missing something;
Shouldn't triangulate_delaunay accept arbitrary point sets (ie : not defining a polygon) ?

That is true, but the ordering is dependent on the input for performance reasons, checking orientation for each triangle is costly, and no guarantees are made
If the triangles are desired to be ordered that's for the user to ensure I'd say, as no guarantees are made, if it's not specified you can't rely on it, so relying on it being a specific ordering isn't safe

No problem!
You could open a proposal to enforce ordering for this, but since it is trivial to check and enforce the ordering, and the performance cost involved, it's probably best left as is

I think so

I think so too


Corrected spelling of pagination

Coverage remained the same at 62.077% when pulling eb86a6bb99adc32233c9b1ca048045126293b0ee on juliyasmith/ch17139/fix-spelling-of-pageination-to-pagination into 8b2a1cbff6aec41a4e44c793a56ef2820b49d0ba on master.


SM-2543 Provide Spring example for Drools 6

I had problem with integrity test. I noticed strange behavior. Feature with example installed from the console works fine, but from the unit test I have ClassNotFoundException: org.kie.spring.KModuleBeanFactoryPostProcessor not found by org.drools.compiler.

I fix test. Test should be in separate class


Plan to support io_uring or XDP backend?

Is your feature request related to a problem? Please describe.
Custom OVS or Proxy running on limited hardware.
Describe the solution you'd like
Add build flag for diff kernel. use syscall or iouring. XDP support like bryandmc/glommio in Rust.

Not yet.

Not yet.

Hi, what is the current state of this issue? Is there anyone working on io_uring support or do you accept PR for this?

Hi, what is the current state of this issue?

I haven't started it yet.

do you accept PR for this?

PR is always welcome.