theme.txt

I  got this error when I did sudo grub-mkconfig
``/boot/grub/themes/minegrub/theme.txt: line 3: title-text:: command not found
/boot/grub/themes/minegrub/theme.txt: line 4: desktop-image:: command not found
/boot/grub/themes/minegrub/theme.txt: line 7: terminal-border:: command not found
/boot/grub/themes/minegrub/theme.txt: line 8: terminal-left:: command not found
/boot/grub/themes/minegrub/theme.txt: line 9: terminal-top:: command not found
/boot/grub/themes/minegrub/theme.txt: line 10: terminal-width:: command not found
/boot/grub/themes/minegrub/theme.txt: line 11: terminal-height:: command not found
/boot/grub/themes/minegrub/theme.txt: line 12: terminal-box:: command not found
/boot/grub/themes/minegrub/theme.txt: line 13: terminal-font:: command not found
/boot/grub/themes/minegrub/theme.txt: line 16: +: command not found
/boot/grub/themes/minegrub/theme.txt: line 21: left: command not found
top: unknown option '='
/boot/grub/themes/minegrub/theme.txt: line 23: width: command not found
/boot/grub/themes/minegrub/theme.txt: line 24: height: command not found
/boot/grub/themes/minegrub/theme.txt: line 26: item_font: command not found
/boot/grub/themes/minegrub/theme.txt: line 27: item_color: command not found
/boot/grub/themes/minegrub/theme.txt: line 28: selected_item_color: command not found
/boot/grub/themes/minegrub/theme.txt: line 29: item_height: command not found
/boot/grub/themes/minegrub/theme.txt: line 30: item_padding: command not found
/boot/grub/themes/minegrub/theme.txt: line 31: item_spacing: command not found
/boot/grub/themes/minegrub/theme.txt: line 32: scrollbar: command not found
/boot/grub/themes/minegrub/theme.txt: line 33: syntax error near unexpected token }' /boot/grub/themes/minegrub/theme.txt: line 33: }'

It looks like the theme.txt get's executed/interpreted by bash.
Which it should not.
How does your /etc/default/grub look like?


Modifier -> SwiftUI -> Modal presentations: alert(isPresented:error:actions:message:)

Doc: https://developer.apple.com/documentation/swiftui/view/alert(ispresented:error:actions:message:)

[ ] Swift implementation
[ ] Elixir implementation

#636 for all alert modifiers. Rejecting


Should work with modules

This is what I actually wanted to ask about. I'm not able to run the api against code with es6 modules. It suggests that I add sourceType: "module".
This works on files in my codebase but I'm not sure why the snapshot shows wierd output

Closing this PR. The two commits are different in concept.


ptb_rnn_lm.py error:tensorflow.python.framework.errors.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420]

Getting the error:
tensorflow.python.framework.errors.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420]
The code is available here:
http://pastebin.com/FM6M43w7
I am giving the full error log here:
Traceback (most recent call last):
File "ptb_word_lm.py", line 364, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "ptb_word_lm.py", line 350, in main
verbose=True)
File "ptb_word_lm.py", line 279, in run_epoch
vals = session.run(fetches, feed_dict)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 717, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 915, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 965, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 985, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420]
[[Node: Train/Model/sequence_loss_by_example/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"](Train/Model/add, Train/Model/sequence_loss_by_example/Reshape/_129)]]
[[Node: Train/Model/truediv/_153 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1023_Train/Model/truediv", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]]
Caused by op u'Train/Model/sequence_loss_by_example/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits', defined at:
File "ptb_word_lm.py", line 364, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "ptb_word_lm.py", line 326, in main
m = PTBModel(is_training=True, config=config, input_=train_input)
File "ptb_word_lm.py", line 147, in init
[tf.ones([batch_size * num_steps], dtype=data_type())])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/seq2seq.py", line 1017, in sequence_loss_by_example
logit, target)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_ops.py", line 764, in sparse_softmax_cross_entropy_with_logits
precise_logits, labels, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_nn_ops.py", line 1857, in _sparse_softmax_cross_entropy_with_logits
features=features, labels=labels, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2380, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1298, in init
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420]
[[Node: Train/Model/sequence_loss_by_example/SparseSoftmaxCrossEntropyWithLogits/SparseSoftmaxCrossEntropyWithLogits = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"](Train/Model/add, Train/Model/sequence_loss_by_example/Reshape/_129)]]
[[Node: Train/Model/truediv/_153 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1023_Train/Model/truediv", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"]]

The file you are suign has been moved here:
https://github.com/tensorflow/models/tree/master/tutorials/rnn/ptb
Are you sure you have all the updates that are made in that file?

I am closing due to lack of activity but please reopen if necessary.

Same problem here, plus a bunch of old version references like tf.contrib.rnn.BasicLSTMCell vs tf.nn.rnn_cell.BasicLSTMCell. It is an extra challenge for newbies when the tutorials are not running. ;)

Same problems here too :) after finally solving legacy API mismatches, came into this logits issue.
Interestingly it all mismatches by 20 units. It's either 420/400 when using small model, or 720/700 when using medium and large.

Yep, same problem. Interestingly, the difference between the actual shape and mismatch shape is always 20. Also, I printed the labels shape going into the seq2seq loss function, it is of the right shape there. I'm almost sure that the error is due to change in seq2seq code.
Any help would be highly appreciated !

Did anyone figure out a fix for this? I am also having the mismatches shape issue, off by 420 to 400. Thanks so much!

Using code from 0.12 master branch fixed it for me.
I think it is something to do with replacing. tf.strided_slice with
tf.slice.
On 23-Jan-2017 7:35 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Did anyone figure out a fix for this? I am also having the mismatches
shape issue, off by 420 to 400. Thanks so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/6469#issuecomment-274495625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APnrjBIr98CCAiNLMNMpNlOqH65Q3Kqhks5rVLOogaJpZM4LUnZK
.

Hey,
No, unfortunately I already made the change from tf.strided_slice to tf.slice, so I don’t think it’s that.  Do you have any other suggestions? I really appreciate the help!
Are you saying you used version 0.12.0 instead of 0.12.1? Because that would be helpful and I can just use that version perhaps.
All the best,
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:16 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py error:tensorflow.python.framework.errors.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420] (#6469)
Using code from 0.12 master branch fixed it for me.
I think it is something to do with replacing. tf.strided_slice with
tf.slice.
On 23-Jan-2017 7:35 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Did anyone figure out a fix for this? I am also having the mismatches
shape issue, off by 420 to 400. Thanks so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/6469#issuecomment-274495625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APnrjBIr98CCAiNLMNMpNlOqH65Q3Kqhks5rVLOogaJpZM4LUnZK
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry for not being clear enough.
I meant use the tutorial code from 0.12 branch if you're using tf 0.12. or
above.
I had replaced the  tf.strided_slice with tf.slice as well, but I guess
there are some additional changes to be made .
On 23-Jan-2017 8:03 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Hey,
No, unfortunately I already made the change from tf.strided_slice to
tf.slice, so I don’t think it’s that.  Do you have any other suggestions? I
really appreciate the help!
Are you saying you used version 0.12.0 instead of 0.12.1? Because that
would be helpful and I can just use that version perhaps.
All the best,
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:16 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment <
<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py error:tensorflow.python.
framework.errors.InvalidArgumentError: logits and labels must have the
same first dimension, got logits shape [400,10000] and labels shape [420]
(#6469)
Using code from 0.12 master branch fixed it for me.
I think it is something to do with replacing. tf.strided_slice with
tf.slice.
On 23-Jan-2017 7:35 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Did anyone figure out a fix for this? I am also having the mismatches
shape issue, off by 420 to 400. Thanks so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/tensorflow/tensorflow/issues/
6469#issuecomment-274495625>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
APnrjBIr98CCAiNLMNMpNlOqH65Q3Kqhks5rVLOogaJpZM4LUnZK>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/6469#issuecomment-274502258,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APnrjJyV_XhwUHE7eZsHQ2mehft3-BJKks5rVLpWgaJpZM4LUnZK
.

Oh no you’re absolutely perfect! Ok I will try that. That helps a bunch. What version is the master currently on? It seems weird to me that they wouldn’t have it be the most up to date version?
Thanks again! I really appreciate it.
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:39 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py error:tensorflow.python.framework.errors.InvalidArgumentError: logits and labels must have the same first dimension, got logits shape [400,10000] and labels shape [420] (#6469)
Sorry for not being clear enough.
I meant use the tutorial code from 0.12 branch if you're using tf 0.12. or
above.
I had replaced the tf.strided_slice with tf.slice as well, but I guess
there are some additional changes to be made .
On 23-Jan-2017 8:03 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Hey,
No, unfortunately I already made the change from tf.strided_slice to
tf.slice, so I don’t think it’s that. Do you have any other suggestions? I
really appreciate the help!
Are you saying you used version 0.12.0 instead of 0.12.1? Because that
would be helpful and I can just use that version perhaps.
All the best,
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:16 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment <
<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py error:tensorflow.python.
framework.errors.InvalidArgumentError: logits and labels must have the
same first dimension, got logits shape [400,10000] and labels shape [420]
(#6469)
Using code from 0.12 master branch fixed it for me.
I think it is something to do with replacing. tf.strided_slice with
tf.slice.
On 23-Jan-2017 7:35 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Did anyone figure out a fix for this? I am also having the mismatches
shape issue, off by 420 to 400. Thanks so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/tensorflow/tensorflow/issues/
6469#issuecomment-274495625>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
APnrjBIr98CCAiNLMNMpNlOqH65Q3Kqhks5rVLOogaJpZM4LUnZK>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/6469#issuecomment-274502258,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APnrjJyV_XhwUHE7eZsHQ2mehft3-BJKks5rVLpWgaJpZM4LUnZK
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

No problem!
Oh, I think it's something to do with Google's indexing. There is no link
on the tensorflow website, so the usual way for people to get the code is
to  google it and hence, reach the old code. Atleast this is what happened
with me.
Let me know if it works for you. I'm  working on making a  simpler
implementation of the same on tensorflow  as  an exercise. I'll send you
that if the current one doesn't work.
 Ok I will try that. That helps a bunch.
What version is the master currently on? It seems weird to me that they
wouldn’t have it be the most up to date version?
Thanks again! I really appreciate it.
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:39 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py error:tensorflow.python.
framework.errors.InvalidArgumentError: logits and labels must have the same
first dimension, got logits shape [400,10000] and labels shape [420] (#6469)
Sorry for not being clear enough.
I meant use the tutorial code from 0.12 branch if you're using tf 0.12. or
above.
I had replaced the tf.strided_slice with tf.slice as well, but I guess
there are some additional changes to be made .
On 23-Jan-2017 8:03 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Hey,
No, unfortunately I already made the change from tf.strided_slice to
tf.slice, so I don’t think it’s that. Do you have any other suggestions? I
really appreciate the help!
Are you saying you used version 0.12.0 instead of 0.12.1? Because that
would be helpful and I can just use that version perhaps.
All the best,
John
From: Rudraksh Tuwani<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>Date: Monday, January 23, 2017 at 9:16 AM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: John Larkin<EMAIL_ADDRESS>Comment <
<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] ptb_rnn_lm.py
error:tensorflow.python.
framework.errors.InvalidArgumentError: logits and labels must have the
same first dimension, got logits shape [400,10000] and labels shape [420]
(#6469)
Using code from 0.12 master branch fixed it for me.
I think it is something to do with replacing. tf.strided_slice with
tf.slice.
On 23-Jan-2017 7:35 PM, "John Larkin"<EMAIL_ADDRESS>wrote:

Did anyone figure out a fix for this? I am also having the mismatches
shape issue, off by 420 to 400. Thanks so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/tensorflow/tensorflow/issues/
6469#issuecomment-274495625>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
APnrjBIr98CCAiNLMNMpNlOqH65Q3Kqhks5rVLOogaJpZM4LUnZK>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/tensorflow/tensorflow/issues/
6469#issuecomment-274502258>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APnrjJyV_
XhwUHE7eZsHQ2mehft3-BJKks5rVLpWgaJpZM4LUnZK>

.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/6469#issuecomment-274518961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APnrjPjvDorEW_2Xf08iBKpPDUDcEylfks5rVMhJgaJpZM4LUnZK
.

Hi, I am using r.12.0 and I switched to branch r.12.0 as suggested, this saved me from the loads of trivialities encountered previously but the 420x400 dimension prob persists, would be great if anyone can help!

Sorry for the bit of self promotion. Here's the link to my modified implementation of the same. I haven't changed it around much besides adding some extra comments and functions for getting predictions from user input.
https://github.com/RudrakshTuwani/Neural_Networks/blob/master/Language Model - Tensorflow Port (Complete).ipynb


'data' parameter persisting between requests

I have two components using the same Resource subclass, but they're making requests with different parameters. The trouble is that parameters set using one persist when they're not included in the other. I've even tried adding the resource to the components' providers array so that each one gets its own instance, but that doesn't seem to work.
For example if I make a request in one component:
constructor(private resource: ResourceSubclass) {}
...
this.items = this.resource.query({ param1: 'foo' });

The query string will be ?param1=foo, which is expected.
Then, if I switch routes and another component makes a request using the same Resource type:
constructor(private resource: ResourceSubclass) {}
...
this.items = this.resource.query({ param2: 'bar' });

The query string will be ?param2=bar&param1=foo, which is unexpected. Each request should have its own parameters created based on the data passed in through the method and the data parameter in the ResourceParams decorator. Parameters shouldn't persist between calls unless they're in the decorator.
I tried to dig through the source but I can't find what's causing this behavior.

Hello @spongessuck
That's really strange.
Could you please share the ResourceSubclass code and related to it classes?
Thanks

You should find the relevant files here:
https://gist.github.com/spongessuck/8d14e309da47cf45f7d6ceae1aecd111

This is weird.
I have never had that case.
Is it possible to debug it somewhere live.
btw this week I will update to version 1 and there is breaking changes.
So maybe better to wait new version?

Sure, I can work around the issue until then.
On Wed, Sep 7, 2016, 2:23 PM troyanskiy<EMAIL_ADDRESS>wrote:

This is weird.
I have never had that case.
Is it possible to debug it somewhere live.
btw this week I will update to version 1 and there is breaking changes.
So maybe better to wait new version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/troyanskiy/ng2-resource-rest/issues/32#issuecomment-245372345,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGE0TrQq80q9XId4pJMVx0AX24X_Oe6tks5qnwEsgaJpZM4J3JsV
.

Hello @spongessuck
I have released new version. Please check if it resolves you bug.
Thanks.

I'll try it. Is the only change from 0.x to 1.x that you use the module?

not only module change.
please check readme

I'm all updated to v1.0.1 and this problem persists.

I think I found the bug.
I did not have time to test, but I've bumped update 1.0.2
Could you please try it?
Thanks.

Doesn't look like it's fixed, sorry.

Do you have somewhere access to dev (server)?
Or can you share your project?
You can send me by email (roma@redbox.by), if you can't share it on public.

OK, I think webpack wasn't re-bundling the new version; I put the source ResourceAction.ts in my node_modules package to try and debug, and after I started adding some console.logs, I couldn't recreate the problem anymore. I thought maybe it had to do with the transpiling process and got rid of the .ts file, but then I still couldn't recreate it.
So I believe your last update probably fixed it. Thanks so much for your time on this!


Split styles into a less opinionated base stylesheet and a theme stylesheet and merge with Gulp

CSS changes:

Reduced styling in base stylesheet to the bare minimum
Scoped the [hidden] and .visually-hidden selectors to prevent collisions
Removed div tag from selectors to lower specificity in order to make overriding easier
Added #fff background color to ul so results are readable without styles

I'm not a pro at pull requests so if I'm missing anything or doing anything out of the ordinary please let me know :-)

Looks great, thanks!
Could you please add a note to CONTRIBUTING.md about this? Otherwise people will miss that awesomplete.css is generated and will send PRs that modify it (speaking from experience...)

Awesome ;-)
And done!

Thanks!

Fantastic! Thank you for building it in the first place :-)
On Thu, Sep 8, 2016 at 7:15 PM, Lea Verou<EMAIL_ADDRESS>wrote:

Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/LeaVerou/awesomplete/pull/16940#issuecomment-245670348,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFIH8Aavif_3vhZui6ZNVbNydi43jODks5qoEK4gaJpZM4J2pTv
.


feature/transition page polish 214

Closes #214

merged conflicts via web.

@alexjball can you please take another look at this and either update or submit a new PR? I tried merging and had conflicts. I tried to resolve the conflicts, but at this point I am getting failures and the techniques you're using are not familiar to me so I don't think I can follow this/fix it myself without potentially doing it wrong/making things look worse -- both of which would be bad. Perhaps a few lines of comments explaining what you're doing in each hook may help here for future maintainers.

@jedpittman I fixed the merge, checks pass now. Please merge if it looks good to you


using on next js

when i use this package in next js and use server side rendering part in documentation  i got a error it's says
'
./node_modules/react-drag-listview/lib/ReactDragListView.js:7:0
Module not found: Can't resolve 'babel-runtime/helpers/classCallCheck'
null
'

npm i babel-runtime -D


Update AssertOperator and RefuteOperator to allow :[]

Update the AssertOperator and RefuteOperator cops to allow :[]
The rubocop style guide prefers assert and refute for testing booleans. If I have an array of booleans, then I want to be able to use this style:
  def test_my_array
    assert(array_of_bools[0])
    refute(array_of_bools[1])
  end

This PR is suggested by an actual test in the Nokogiri suite which collects boolean values from Nokogiri::Reader as it passes through the document, and then checks the values after completing the parsing pass. That test could be rewritten, but I don't personally think it would be made more readable by that rewrite.
Also see https://github.com/rubocop/rubocop-minitest/pull/260#issuecomment-1734520785 which raised the question of whether :[] was intentionally a violation.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

This seems like a reasonable change. Thank you!


Use a specific version of FSLeyes for the plugin

Fixes #303

I have set the FSLeyes version to 0.30.1. However, if we now use Python 3.7, we could test if the latest version of FSLeyes works

I'll test the Linux installation with FSLeyes 0.33.1 right now

Tested the Linux installation. It works 👍


Once SciStarter authentication works, then make sciencenearme.org live

From Darlene's email - Daniel & Yang please test authentication log-in for all SciStarter users, carrying over their joins.  Once confirmed, please make sciencenearme.org live and email Darlene, Julia, & Kevin once this is completed.

The site is live.


ImportAll seems not working

Thanks for your great functions.
RenameFile and Organize commands work like a charm but ImportAll and FixCurrent do not.
Also they don't output any error, any idea where to look for problem?

Thanks for the feedback! ImportAll and FixCurrent are a bit unreliable and can sometimes take multiple tries before they do what they're supposed to, especially on larger projects. I believe this is because buf_request_sync is more likely to time out when the language server has to go through a lot of files. (I also think tsserver itself has issues with larger projects, since I sometimes see similar behavior when using VS Code.)
In the near future, I want to refactor these to be asynchronous, which should solve the issue more thoroughly (and improve performance). For now, though, I've just pushed a commit that increases the timeout and adds a message if the language server doesn't send a response back in time (or sends an empty response). Could you let me know if the functions work for you now?

Update: FixCurrent and ImportAll` are both async now. The former should work out-of-the-box, but the latter depends on plenary.nvim (it'll fall back to the sync implementation if plenary isn't available).
They should both be more reliable, but let me know how everything is working on your end.

Yep works perfectly fine now, thanks.

Thanks for the confirmation!


Okex streaming v5

Anyone can help me review this PR? Thanks.

Can you please fix the conflict first?

@walec51 @earce  can you please review and merge?

@walec51 @earce anyone??

@earce Thanks for reviewing. I'll response or fix according to your comments later.

@earce  I have fixed all the problems according to your comments, please review again. Thanks.


fix fqdn() func problem

Thank you very much for the plugin, I found this problem when I used it。

So I fix it,please merge it,thanks.

Thank you @victory460 for the PR bugfix, merged!


Add unzip and lock pipenv/awscli versions in Windows docker images

Description
Add unzip and lock pipenv/awscli versions in Windows docker images
Issues Resolved
https://github.com/opensearch-project/opensearch-ci/issues/281
https://github.com/opensearch-project/opensearch-build/issues/3743
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

https://build.ci.opensearch.org/job/docker-build/3673/console

https://build.ci.opensearch.org/job/docker-copy/683/console


Add a dockerfile

Hello,
Thanks for sharing,
It would be even better if you add a dockerfile. Jenkinsfile (for CI/CD)?

I should study Docker a little bit. I don't know it yet, sorry.

For sure,
You have an example here : https://nodejs.org/en/docs/guides/nodejs-docker-webapp/

This might be a good start:
process.yml

apps:
  - script   : 'dist/server/app.js'
    name     : 'Website'
    exec_mode: 'cluster'
    instances: 0

Dockerfile
FROM node:7

RUN npm install @angular/cli -g
RUN npm install pm2 -g

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY . /usr/src/app/
RUN npm install
RUN ng build -aot -prod
RUN tsc -p server

EXPOSE 4443

CMD ["pm2-docker", "process.yml"]

@simon-hardy
You need to include MongoDB image in your Dockerfile, am I right?

@simon-hardy
You also need to include MongoDB image in your Dockerfile. Am I right ?


Accuracy decreases during training

Hi, @YantaoShen , thanks for your great work!
I download your pretrained models on  CUHK03 dataset, and then run this commands:
python examples/main.py -d cuhk03 -b 88 --features 2048 --alpha 0.95 --grp-num 2 --lr 0.000001 --ss 10 --epochs 10 --dropout 0.8 --combine-trainval --weight-decay 0 --retrain examples/logs/cuhk03-pretrained/model_best.pth.tar --logs-dir examples/logs/cuhk03-final-model
But I am getting lower accuracy during training.
Could you please let me know how to solve this problem? Thank you in advance!

Hi there,
Thanks for your comments, I guess it is due to overfitting issue, could you provide more details like after how many epochs your model acc will drop?
Yantao


build: remove use of set-output

Coverage: 100.0%. Remained the same when pulling 3ad0e02a8fad70a564fd24f7681f5c591f8f3ec3 on set-output into f3c81115b0ba5a1a8780851785befd3c0274e070 on main.


✨ Claude 3.5 Sonnet on the AP

Describe the feature request.
Access to Claude 3.5 Sonnet on Bedrock.
Describe the context.
My colleagues and I are working on a PoC information extraction project using sentencing remarks pdfs. A few of our tasks will include extracting entities, summarisation and classification using AI. This will provide evidence and statistics to inform the upcoming homicide sentencing policy review.
Value / Purpose
To provide evidence and statistics extracted from sentencing remarks transcripts to inform the upcoming homicide sentencing policy review.
User Types
Data Scientists

Hi @jhenfrancis , the AP team are trialling a request forum where requests can be presented and the team ask any questions to ensure that the ask is fully understood.  The next forum is on Monday 4th November.  Would you be able to attend that meeting?  And does this align to any deadlines you may be working to.  Thanks

Hi @simon-pope, sure, I can attend that meeting although for further clarification I already have access to Bedrock but would also like access to the newer model - Claude 3.5 Sonnet.
Could you forward the meeting invite to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>please?

Thanks @jhenfrancis , invites sent.
Request to be presented Monday 4th November.

Received, thanks @simon-pope

Hiya, what region do you need this enabled in?

Hi @julialawrence, seems like it's not available in London. Could we enable this in eu-west-1?

It's been enabled for youin Ireland! Enjoy.

@julialawrence Thanks!  @jhenfrancis I'll uninvite you from the request forum if this remedies your request

Fantastic. Thanks @julialawrence and @simon-pope


bf: ZENKO-660 api proxy fixes

reject unauthenticated requests on /_/backbeat/api routes:

don't allow access to /_/backbeat/api passthrough routes for
public users. It's a temporary option until we have support for
admin accounts or accounts with admin privileges.

fix error handling by catching errors raised by http-proxy module

Hello jonathan-gramain,
My role is to assist you with the merge of this
pull request. Please type @bert-e help to get
information on this process.
Status report is not available.

Integration data created
I have created the integration data for the additional destination branches.

this pull request will merge bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated into
development/8.0
w/8.1/bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated will be merged into development/8.1 (pull request #1390)

The following branches will NOT be impacted:

development/6.4
development/7.4

Follow integration pull requests if you would like to be notified of
build statuses by email.

Waiting for approval
The following approvals are needed before I can proceed with the merge:

2 peers

Peer approvals must include at least 2 approvals from the following list:

@RachedBenMustapha

@rahulreddy

@dora-korpar

Build failed
The build for commit did not succeed in branch bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated.

History mismatch
Merge commit #20b4ac957dc85ddf24d3e97691f687dd499fcf12 on the integration branch
w/8.1/bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated is merging a branch which is neither the current
branch bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated nor the development branch
development/8.1.
It is likely due to a rebase of the branch bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated and the
merge is not possible until all related w/* branches are deleted or updated.
Please use the reset command to have me reinitialize these branches.

@bert-e reset

Reset complete
I have successfully deleted this pull request's integration branches.

Integration data created
I have created the integration data for the additional destination branches.

this pull request will merge bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated into
development/8.0
w/8.1/bugfix/ZENKO-660-backbeatPassthroughRoutesUnauthenticated will be merged into development/8.1 (pull request #1399)

The following branches will NOT be impacted:

development/6.4
development/7.4

Follow integration pull requests if you would like to be notified of
build statuses by email.

In the queue
The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.
The changeset will be merged in:

:heavy_check_mark: development/8.0

:heavy_check_mark: development/8.1

The following branches will NOT be impacted:

development/6.4
development/7.4

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of Release Engineering will
contact you to help resolve the matter.
IMPORTANT
Please do not attempt to modify this pull request.

Any commit you add on the source branch will trigger a new cycle after the
current queue is merged.
Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of Release Engineering now.

I have successfully merged the changeset of this pull request
into targetted development branches:

:heavy_check_mark: development/8.0

:heavy_check_mark: development/8.1

The following branches have NOT changed:

development/6.4
development/7.4

Please check the status of the associated issue ZENKO-660.
Goodbye jonathan-gramain.


support update agent&core AgentPort config

Codecov Report

Merging #489 (e75f693) into master (4939534) will decrease coverage by 0.38%.
The diff coverage is 23.88%.

@@            Coverage Diff             @@
##           master     #489      +/-   ##
==========================================
- Coverage   62.83%   62.44%   -0.39%
==========================================
  Files          92       92
  Lines        7661     7723      +62
==========================================
+ Hits         4814     4823       +9
- Misses       2076     2119      +43
- Partials      771      781      +10

Impacted Files
Coverage Δ

service/init.go
44.65% <0.00%> (-1.16%)
:arrow_down:

api/node.go
57.34% <21.66%> (-3.33%)
:arrow_down:

plugin/kube/node.go
68.99% <100.00%> (+0.48%)
:arrow_up:

service/system_app.go
69.32% <100.00%> (+0.12%)
:arrow_up:

common/string.go
80.00% <0.00%> (-20.00%)
:arrow_down:

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


Fix #1157, increment sequence if indicated

Describe the contribution
Do not restrict sequence increment to TLM only, since CMD packets can be locally generated too (e.g. SCH, TIME).
Fixes #1157
Testing performed
Build and sanity check CFE, run all unit tests.
Expected behavior changes
All transmitted messages will get their sequence count incremented if transmitted with parameter IncrementSequenceCount set to true.  Previously, for some reason, this flag was only honored on TLM packets.
System(s) tested on
Ubuntu 20.04
Additional context
Thus far I've not found a real reason/explanation as to why this flag would be ignored for CMD packets.  If there is a good reason, it should be documented.  Otherwise for the sake of consistency it should be done for all messages.
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Tagging @acudmore  and @jwilmot  in case they can offer some history on this subject.
As it stands we handle CMD vs. TLM packets inconsistently - basically we ignore the "IncrementSequenceCount" flag if it is a command - without really any explanation/justification as to why we would ignore it.  I'm suggesting removing this to make it consistent, but there may be some history I'm not aware of.
My recommendation would be - if there is a use case where the counter shouldn't be incremented, why can't the caller just set this parameter false ...?

CCB:2021-04-07

This has a history and we need to be careful changing this


The layout bug

The layout bug fix made 10 days ago doesn't work with iPhone 5s, the messages are still overlapping with iPhone 5s on 10.3.3

Also happens for iPhone 7

Please check out the https://github.com/smilefam/SendBird-iOS/commit/c8a4383b3786d969dcc1eecb9684c0d5c64492ee commit.
Thanks.


Support "set_title" event

Fix #40.

If I set notitle after set title, the title will become " - Nvy".

Thanks. Removed " - " when empty title.

Looks good to me, merging. Thanks for the contribution!


Make a better logo

Overview of the Feature Request
Make a better logo for DisBotPy
What is this Feature Request for?
The repository
The Problem
The logo right now is too long for some portions of where the logo could be used. And it's also not the best logo and could be redesigned.
The Solution
Make a smaller logo, preferably one that is 512x512 for the Discord server.
Additional context
Some ideas for this new logo:

Combine the recolored Python logo with the bot (might face legal issues with the company that owns the Python logo)
Use the colors from the recolored Python logo with the Discord logo (might face SERIOUS legal issues with Discord, but other libs have done it without getting in trouble)
Recolor the bot emoji?

New logo added in commit 99c2bdb.

Some people don't like the current logo, so time to reopen


[async-mqtt] tls dependencies

Fixes https://github.com/redboltz/async_mqtt/issues/49

All features passed with following triplets:
x86-windows
x64-windows
x64-windows-static

Thanks for the fix! I fixed @dg0yt's nitpick and clarified by using vcpkg_check_features. I'll merge as soon as build comes back.


Allow users to view the command and approve or reject it before it runs

This would allow for greater peace of mind before running a command, and allow users to not run a command if it seems dangerous.
I may open a PR to do this myself if I have time in the future.

It probably would be good to have this as the default setting. I'll try to get it done today.

Added this as the default behavior. Can be bypassed with -u.


support serial port

Do you have plan to support serial port IO

There's an old stalled PR trying to add that support. It'd be great if someone could pick it up :)

Question answered, it seems?  I'll close this out.


ParentBackground change seems to have broken parent coloring

I am including sub-range with JSON like the following, since the latest commits, the CSS sections are no longer colored according to the Attributes.Element
				{
					"Name": "Style",
					"Type": "Tag",
					"Attributes": {
						"Element": "EditorBlue"
					},
					"TokenRange": {
						"Open": "<style",
						"Close": "/style>"
					},
					"SubRules": {
						"Range": [
							{
								"File": "CSS.json",
								"IncludeRange": "CSS"
							}
						]
					}
				},

Because parent background is now True by default, you need to add "ParentBackground": false attribute for you range.
               {
                    "Name": "Style",
                    "Type": "Tag",
                    "Attributes": {
                        "Element": "EditorBlue",
                        "ParentBackground": false
                    },
                    "TokenRange": {
                        "Open": "<style",
                        "Close": "/style>"
                    },
                    "SubRules": {
                        "Range": [
                            {
                                "File": "CSS.json",
                                "IncludeRange": "CSS"
                            }
                        ]
                    }
                },


OSPP: NUMA support

Support NUMA awareness for PolarDB-for-PG.
This pull request is for OSPP2023.

#224


cargo-cov doesn't work

Command:
cargo cov -- show fuzz/target/<target triple>/release/my_compiler \
    --format=html \
    -instr-profile=fuzz/coverage/my_compiler/coverage.profdata \
    > index.html

Error response:
error: no such subcommand: `cov`

        Did you mean `c`?

I "solved" this by running llvm-cov manually, like so (also install rustfilt):
/Users/user/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/llvm-cov show fuzz/target/x86_64-apple-darwin/release/my_compiler \
                                         --format=html \
                                         -Xdemangler=rustfilt \
                                         --ignore-filename-regex="\.cargo" \
                                         -instr-profile=fuzz/coverage/my_compiler/coverage.profdata \
                                         > index.html

Use the llvm-cov binary you made the coverage with.

hmm, that didn't work for me.
; llvm-cov show --instr-profile=/Users/jyn/src/inventory/fuzz/coverage/my_fuzz_target/coverage.profdata  --format=html -Xdemangler=rustfilt /Users/jyn/.local/lib/cargo/target/aarch64-apple-darwin/release/my_fuzz_target
error: Failed to load coverage: '/Users/jyn/.local/lib/cargo/target/aarch64-apple-darwin/release/my_fuzz_target': No coverage data found
; file /Users/jyn/.local/lib/cargo/target/aarch64-apple-darwin/release/my_fuzz_target
/Users/jyn/.local/lib/cargo/target/aarch64-apple-darwin/release/my_fuzz_target: Mach-O 64-bit executable arm64

I was also getting the No coverage data found error, and it seems that the binary compiled with fuzzing instrumentation is at a different path from the main fuzzing binary now, but the documentation was never updated.
For me I had to change target/x86_64-unknown-linux-gnu/release/target_name to target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release/target_name (yes that includes the target triple twice) to make llvm-cov work, which makes sense when only the latter is compiled with coverage instrumentation.

I tried:
llvm-cov show target/x86_64-unknown-linux-gnu/release/fuzz_target_1 --format=html -Xdemangler=rustfilt -instr-profile=coverage/fuzz_target_1/coverage.profdata > index.html

And I get:
error: Failed to load coverage: 'coverage/fuzz_target_1/coverage.profdata': unsupported instrumentation profile format version

#!/bin/bash
set -e

# Check if the correct number of arguments is provided
if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <fuzz_target>"
    exit 1
fi

# Assign the first argument to the fuzz_target variable
FUZZ_TARGET=$1

# Ensure necessary tools are installed
if ! command -v cargo &> /dev/null; then
    echo "cargo could not be found, please install Rust and Cargo."
    exit 1
fi

if ! command -v llvm-cov &> /dev/null; then
    echo "llvm-cov could not be found, please install LLVM."
    exit 1
fi

if ! command -v rustfilt &> /dev/null; then
    echo "rustfilt could not be found, please install rustfilt."
    exit 1
fi

# Run the cargo fuzz coverage command with the provided fuzz target
cargo +nightly fuzz coverage "$FUZZ_TARGET"

# Define the paths
TARGET_DIR="target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release"
PROF_DATA="fuzz/coverage/$FUZZ_TARGET/coverage.profdata"
OUTPUT_FILE="index.html"

# Check if the coverage data file exists
if [ ! -f "$PROF_DATA" ]; then
    echo "Coverage data file $PROF_DATA not found."
    exit 1
fi

# Generate the coverage report in HTML format
llvm-cov show "$TARGET_DIR/$FUZZ_TARGET" --format=html \
                                         -Xdemangler=rustfilt \
                                         --ignore-filename-regex="\.cargo" \
                                         -instr-profile="$PROF_DATA" \
                                         > "$OUTPUT_FILE"

echo "Coverage report generated as $OUTPUT_FILE"

error: Failed to load coverage: 'coverage/fuzz_target_1/coverage.profdata': unsupported instrumentation profile format version

@DJDuque I hit the same issue when using my system installed llvm-cov to generate the report. If you have installed the llvm-tools or llvm-tools-preview rustup components (as it was in my case) the binaries that are used for generation of the profile are (in my case) in ~/.rustup/toolchains/nightly-2024-09-12-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/. When I used the llvm-cov binary from there the report worked just fine

I got it running. The insights from fuzzing code coverage are amazing! Well worth the hassle. It's really complicated and confusing.
That's what I did to get it running:

cargo install rustfilt
PATH=$PATH:~/.cargo/bin
cargo install llvm-tools
Look for the binary llvm-cov, it's in ~/.rustup/toolchains/<nightly>/lib/rustlib/<target platform>/bin
To make your life easier do alias llvm-cov=... or add that bin directory to PATH
cd to your project root

Then!
llvm-cov show -format=html \
  -instr-profile=fuzz/coverage/<fuzz target>/coverage.profdata \
  -Xdemangler=rustfilt \
  -ignore-filename-regex=\.cargo/registry \
  target/<target platform>/coverage/<target platform>/<profile>/<fuzz target>
  > cov.html

and open the browser and smile.
Don't use the compiled binary, go into the coverage subdirectory and find your binary there! If you don't you get an error message like "no coverage data found".


using more standard permissions on files

there was Write flag missing on files for owners
complicates manual fixes
I don't see a valid point for doing this

I tend to install files read only as it helps reinforce the fact the you should not be doing manual fixes!

Makes sense, and in one way I agree with you. I am considering leaving it as you have it, because in the end, it does not matter when you do changes by puppet.
But I am not sure if that is common among puppet module writers / users. This is the first time I noticed that.
You decide and close the pr. I won't bother you with it anymore.

Yep, the read-only permissions are intentional for mostly the same reason @choffee mentions.


Default (latest) version of grunt-sass

The latest version of grunt-sass 3.0.1 requires node 8 and additionally has some syntax changes to the task specification.  I had to install grunt-sass 2.1.0 to use the grunt tasks.

Note: the error I'm getting with grunt-sass 3.0.1 is this:
Fatal error: The implementation option must be passed to the Sass task
I will fix this soon, but wanted to add that here in case anyone is searching for the error

@adepottey thanks for the report. This is fixed in #122. NodeJS v8 or greater is now required for this project if you want to use the SASS preprocessor


Add a Groovy boolean matcher

I've added a boolean type matcher. I checked the spec and I think I did correctly?
Ideally I would've called it boolean but that's reserved. bool seemed like a somewhat reasonable alternative, but it's not a term used much in the JVM-world (I have no strong feelings about the name being changed).

Oh, wow, I'm astounded that that was missing. Thanks for the PR.


Skip the stats for the latest month as they're incomplete

Is your feature request related to a problem? Please describe.
The download stats for the latest month are incomplete, so they're shown in the graph as less than previous month.

Example screenshot from Nov 21st

In the above screenshot, the numbers for Nov'23 are 2/3rd of that for Oct'23 not because of Node.js was downloaded less times, but because November isn't finished yet. This can give wrong idea to the viewer that Node.js downloads have reduced in the current month.
Describe the solution you'd like
Skip the stats for the latest month as they're incomplete
Describe alternatives you've considered
Provide an option to the user to include/exclude of ongoing month.

This would be amazing to do. Would you like to send a PR?

Would you like to send a PR?

Will do.


dbeaver kerberos error

Description
Hi.
I got a license for Dbeaver Enterprise 23.3.0 for academic use. I'm trying to set up a class to use it for the first time.  Students on our system are able to type "psql" to start Postgres with kerberos connection (no password required since they are logged in with Kerberos) and access their own database.  I cannot get Kerberos connection from Dbeaver to the postgres server to work.
I have configured:
Host: our db server hostname
Database:  (each user has their own db)
Authentication: PostgreSQL Kerberos
Username:
Kerberos user:
Realm: REALM NAME (filled in automatically)
KDC server: KDC server IP (filled in automatically)
Password:
When I try to connect...
Authentication error: KerberosException
KerberosException
KerberosException
No key matching entype with error code: KDC_ERR_ETYPE_NOSUPP
In logs from dbeaver I can see:
2024-02-02 19:41:48.811 - KDC server response with message: KDC has no support for encryption type
2024-02-02 19:41:48.811 - KDC has no support for encryption type
2024-02-02 19:41:48.819 - KDC server response with message: KDC has no support for encryption type
2024-02-02 19:41:48.819 - KDC has no support for encryption type
2024-02-02 19:41:48.819 - ignore this kdc

Kerberos server is samba AD.
I suspect that it's just a matter of choosing a different supported encryption type, but I don't know where the setting is.
If you have a recommendation that I can try, that would be great.  Alternatively, rather than going back and forth multiple times, I am prepared to offer an account for dbeaver tech support with remote GUI access, access to dbeaver, access to a postgres DB, to see if a solution is possible.  A class would like to start using this this coming week.
DBeaver Version
Enterprise 23.3.0
Operating System
Rocky8 (RHEL8)
Database and driver
PostgreSQL 15.5
Steps to reproduce
See above.
Additional context
No response

The good news is that I discovered that if I open up "Extra Configuration", and specify the kinit file /tmp/krb5cc_ then it will use it to connect and I get a valid Kerberos connection.
The bad news is that:

out of the available variables that I can use in connect options, there isn't one that specifies the users UID. This means I'd have to provide instructions for each user to get their uid and fill it in.
If I don't specify a password, it asks for one. What's the point of asking for a password when there's already a valid kinit file?

It would be ideal if there was a way for me to pre-configure the DB for each user..   then when I run dbeaver the first time, it adds this personal DB for each user.

Hello @jkeltz

The good news is that I discovered that if I open up "Extra Configuration", and specify the kinit file /tmp/krb5cc_ then it will use it to connect and I get a valid Kerberos connection.

Did you add your encryption type to this file? Please share your solution, it can help in the future.

out of the available variables that I can use in connect options, there isn't one that specifies the users UID. This means I'd have to provide instructions for each user to get their uid and fill it in.

Could you please specify this point? I'm not so good at the Kerberos things; I haven't used UID for Kerberos before. Any documentation links will be helpful.

If I don't specify a password, it asks for one.

Could you please check that this setting is turned on? If it is off and the kinit setting is on, you need to uncheck the kinit setting first, then check the password, and then return kinit.

Hi @LonwoLonwo
The encryption type listed in my kinit file is: Etype (skey, tkt): aes256-cts-hmac-sha1-96, aes256-cts-hmac-sha1-96
That would be the default encryption used on my system.
Is there a way for me to tell dbeaver to use this encryption type so if the user didn't even point at the kinit file, they could login with password, and it would work instead of giving the user the error: No key matching entype with error code: KDC_ERR_ETYPE_NOSUPP
We have used various pieces of software that interact with Kerberos, and I've never had to change the encryption type specified in the kinit file. It would be ideal if I could configure dbeaver by default to use the encryption type required by my system.
This would be a great first step.
Next, in order to get dbeaver to use the kinit file, I only needed to specify the path to the kinit file.  I didn't need to add any encryption type to it.  Therefore, dbeaver should already be able to interact with this encryption type.
In terms of Kerberos, one file location for the kinit file is in /tmp/krb5cc_.  It's different on different systems.  However, that's the way it is on our system.  I know that dbeaver allows the use of certain variables in these strings - ah, but I don't think that applies to these settings.  If I click on "You can use variable in connection parameters" - those variables apply to connection only, I guess, and not to the "Extra Configuration".  What would be ideal? If there was a way I could default the setting for Kerberos >> Extra Configuration >> Use kinit to the path on our system - /tmp/krb5cc_ (number returned by id command).. even if I could set this in a variable in my startup script.
Now, in terms of using the "Use kinit" option, and needing to specify the password (or save it) - that's incorrect behaviour.  If dbeaver uses the kinit file for login, it does not the password. You either use kinit for login OR password - not both.  There's definately a bug there.
I'm more than happy to give you an account on the system with GUI access to dbeaver through your web browser, and access to a database to experiment so you can see what our students will see.


Is it possible convert decoder_model_merged.onnx to tensorrt via trtexec command ?

At the first I convert whisper-tiny to onnx via optimum-cli
optimum-cli export onnx --model openai/whisper-tiny --task automatic-speech-recognition-with-past whisper-tiny-onnx
I got the some config, encoder and decoder_merged model
then I brought encoder and decoder_merged to convert to tensorrt via NGC version 23.09-py3, encoder not problem but decoder_merged got problem while converting.
trtexec --onnx=/workspace/models/whisper-tiny-onnx/decoder_model_merged.onnx --saveEngine=/workspace/models/whisper-tiny-onnx/decoder_model_merged.plan
the error happen :
[5] Assertion failed: (node.output().size() <= static_cast<int32_t>(outputs.size())) && "Node has more output tensors than TRT expected."

Can someone help me about this or Have another ways for good practice ? Please . . .

Hi ! I would say this is a problem on trt side, it's unable to convert the model even though it's a valid onnx model.
You can try doing it with an unmerged model, i.e. encoder.onnx, decoder.onnx and decoder_with_past.onnx

@IlyasMoutawwakil Thank you for your responding, I will try your practice and I recently found out about tensorrt-llm, I will explore more for other ways.

for trt-llm you can check optimum-nvidia 🤗


[160] Issue #160 - May 21, 2020

To contribute to this issue, simply leave a comment here. Please also review our contributing guidelines.
The current draft for this issue in _drafts/. If you want to contribute directly, feel free to open a pull request.

RFC: Policies for Swift Platform Development
https://forums.swift.org/t/rfc-policies-for-swift-platform-development/36257

Funny one https://twitter.com/jnadeau/status/1258881304268963845

https://twitter.com/jckarter/status/1258842881852190720

A cool utility from @mikeash that can attach to running Swift process and inspect/debug the runtime's behavior: https://github.com/apple/swift/pull/31468

About the Swift Composable Architecture category
https://forums.swift.org/t/about-the-swift-composable-architecture-category/36406

SE-0279 and variadic parameters
https://forums.swift.org/t/se-0279-and-variadic-parameters/36410

The Swift Package Manager can now optionally use the new swift-driver, making it much easier now to try it out for your own projects. https://github.com/apple/swift-package-manager/pull/2736

https://twitter.com/simjp/status/1260596043147689985

Swift on Server Workgroup meeting notes
April 15th, 2020 https://forums.swift.org/t/april-15th-2020/36448
April 29th, 2020 https://forums.swift.org/t/april-29th-2020/36444

CVE-2020-9840: SwiftNIO Extras: Denial of Service Vulnerability in NIOHTTPRequest/ResponseDecompressor
https://forums.swift.org/t/cve-2020-9840-swiftnio-extras-denial-of-service-vulnerability-in-niohttprequest-responsedecompressor/36435

https://theswiftdev.com/whats-new-in-swift-5-3/

Safe Random Access Collection Element
https://forums.swift.org/t/safe-random-access-collection-element/36509/7

https://www.timc.dev/posts/future-of-server-side-swift/
https://twitter.com/0xTim/status/1261310804651106305

[PITCH] Enable Test Discovery by Default
https://forums.swift.org/t/pitch-enable-test-discovery-by-default/36619

Metrics Extras
https://forums.swift.org/t/metrics-extras/36616

https://twitter.com/jckarter/status/1262843600984891392

This deserves a "finally". Soon the dark days of non-hashable tuples will be behind us in Swift, thanks to @aalonso128! https://forums.swift.org/t/accepted-se-0283-tuples-conform-to-equatable-comparable-and-hashable/36658

283 accepted https://forums.swift.org/t/accepted-se-0283-tuples-conform-to-equatable-comparable-and-hashable/36658

Adding firstAs() to Sequence
https://forums.swift.org/t/adding-firstas-to-sequence/36665

Interesting discussion about ->
Use -> instead of curly braces for Single expression bodied property getters, subscripted getters and functions
https://forums.swift.org/t/use-instead-of-curly-braces-for-single-expression-bodied-property-getters-subscripted-getters-and-functions/36676/8

Pitch 2: Cross-import overlays
https://forums.swift.org/t/pitch-2-cross-import-overlays/36710

Introducing Gryphon, the Swift to Kotlin translator
https://forums.swift.org/t/introducing-gryphon-the-swift-to-kotlin-translator/36707

https://twitter.com/mishaldshah/status/1263227537015975937


\tightlist error when rendering to pdf with lists

Error message:

! Undefined control sequence.
I.213 \tightlist

Can be fixed by adding
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

or just an empty tightlist definition:
\def\tightlist{}
to the before-body.tex file.
Hoping this can be added by default.

Version 3.0.0 should have this fixed. Also, note the change to standard Quarto prefixes (fig- and tbl-). Also the include line below the metadata needs to be deleted. The extension will throw an informative error if it is left in.


Optimize suite_id generation.

Codecov Report

Merging #49 (7c4f4bb) into main (1992164) will increase coverage by 0.90%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   96.49%   97.40%   +0.90%
==========================================
  Files          18       18
  Lines         656      654       -2
  Branches       79       79
==========================================
+ Hits          633      637       +4
+ Misses         23       17       -6

Flag
Coverage Δ

unittests
97.40% <80.00%> (+0.90%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/kemPrimitives/ec.ts
94.93% <0.00%> (ø)

src/consts.ts
100.00% <100.00%> (ø)

src/kdfContext.ts
100.00% <100.00%> (ø)

src/kemContext.ts
98.79% <100.00%> (-0.02%)
:arrow_down:

src/utils/misc.ts
100.00% <0.00%> (+18.75%)
:arrow_up:

Continue to review full report at Codecov.

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


added kl. to the swedish times

@jisaacks @ichernev please check the swedish localization fix

@ksnabb - Please rebase to one commit.
@ulmus - Please review for validity.
Thanks.

Sounds reasonable, but I think the kl should be marked as optional like in the Norwegian translation (nb.js), using '[kl.]'

I'm not sure what you mean? How do I mark it as optional?
The Norwegian translation looks like this for e.g. LLL:
LLL : 'D. MMMM YYYY [kl.] HH:mm'
and the proposed change for Swedish is almost the same (no dot after D):
LLL : 'D MMMM YYYY [kl.] HH:mm'

Oops, bad reading skills on my part. Then I say go!

Merged in e4856c9aebb17d528dc1f2034f74d5ace13c1b3f


freenect: 0.6.1 -> 0.6.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/OpenKinect/libfreenect/releases.
meta.description for freenect is: "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS"
meta.homepage for freenect is: "http://openkinect.org"
meta.changelog for freenect is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.6.2 with grep in /nix/store/f04qnagdfnp2fszcpvrklvfk5vr3i6ak-freenect-0.6.2

directory tree listing: https://gist.github.com/e9646796545ff364ef3909204c467780

du listing: https://gist.github.com/0af98afdb3a72c62c15abe0a86aa38bd

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
freenect
haskellPackages.freenect

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/f04qnagdfnp2fszcpvrklvfk5vr3i6ak-freenect-0.6.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A freenect https://github.com/r-ryantm/nixpkgs/archive/ce6cea9f2986a6009516cedb82ece6bf05722fab.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/f04qnagdfnp2fszcpvrklvfk5vr3i6ak-freenect-0.6.2
ls -la /nix/store/f04qnagdfnp2fszcpvrklvfk5vr3i6ak-freenect-0.6.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

freenect

Maintainer pings
cc @bennofs for testing.

Result of nixpkgs-review pr 113072 at ce6cea9f run on aarch64-linux 1

1 package built:

freenect

1 suggestion:

warning: unclear-gpl
gpl2 is a deprecated license, check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/development/libraries/freenect/default.nix:25:5:
   |
25 |     license = with lib.licenses; [ gpl2 asl20 ];
   |     ^


Are there any good tips on OrientDB data modeling ?

Hello, I've lightly went over the manual, and I saw no section about data modeling.
When should I add properties to a class and when it should be links to other objects ?
Class A
{List}
or
Class A
{List<Link>
}
Would there be any difference ?
Let's say I want to incorporate 2 collections into an object, and most frequent query would be top 10 from both of them. How do I ensure that this happens with single IO at most, assuming I know OID for an object of class A ?

Let's say I want to incorporate 2 collections into an object,

Are you asking for the difference between an embedded or a linked document and their relationships?
http://orientdb.com/docs/last/Concepts.html#relationships
http://orientdb.com/docs/last/Concepts.html#embedded-relationships
http://orientdb.com/docs/last/Concepts.html#referenced-relationships
Scott

Not exactly, Let's say I've embedded two collections into my class - will they be stored with it's record always ? or are there some sort of overflow pages ?

I am guessing that you are referring to the Java API then, which I am sorry, I have no real knowledge about. But, reading through these docs, I'd say, collections are stored directly in the record/ document.
http://orientdb.com/docs/last/Object-2-Record-Java-Binding.html
Scott

Thanks


The result doesn't look good

The inference output results seem to have blurred borders. Is there any post-processing required?

This is not the expected output. There are some possibilities that might cause the problem.

Invalid trained checkpoint - Try download from this url
unexpected image size

ok,thank you


Port to original Colour Maximite

This was completed in ad3455ba and included with r3.
The result is not particularly useful though as it is at least 10x too slow.


models + endpoint for retrieving order with status

Description

Models created
Controller endpoint implemend
Service interface created

Related Issue(s)

#165

Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[x] All tests run green

final pr will be reviewed instead


Issue when upgrade from 5.0 to 6.0

When updated from core 5 to 6 getting following error, however when compiled with 5 with Electron version of 13.5.1 works well
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error : Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error : Repeat 2 times: [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error : -------------------------------- [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error : -------------------------------- [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at ILCompiler.ReadyToRunCodegenCompilation.b__36_0(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore1<ILCompiler.DependencyAnalysis.NodeFactory>) [Project.Web.csproj] C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Parallel+<>c__DisplayClass33_02[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].b__0(Int32) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[[System.__Canon, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].b__1(System.Threading.Tasks.RangeWorker ByRef, Int32, Boolean ByRef) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.TaskReplicator+Replica.Execute() [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.TaskReplicator+Replica+<>c.<.ctor>b__4_0(System.Object) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Task.InnerInvoke() [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Task+<>c.<.cctor>b__272_0(System.Object) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread) [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.ThreadPoolWorkQueue.Dispatch() [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(464,5): error :    at System.Threading.Thread.StartCallback() [Project.Web.csproj]
C:\Program Files\dotnet\sdk\6.0.408\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(352,5): error NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false. [Project.Web.csproj]

When PublishReadytoRun=true is removed then publish works however only splash screens is seen and application is not strated, but when accessed the via browser the application is accessible, seems browser window is not initiated and application remains in loop at splash screen

Hi @vinaykulkarni89
Can you provide information on the Node JS Version?
And did you install the latest Nuget package for Electron.NET 23.6.1?
For .NET to run as an electron application, the Node JS version should be at least 16.17.1. (Use 18.16.0 if possible)
And also, try upgrading the Electron.NET version from the developer powershell dotnet tool update --global ElectronNET.CLI
Delete the host folder and repeat the process which you did for running the .NET 5 electron application for the first time.
This will make you run the electron application in .NET 6.0🙂

Hi @arun04cbe  thanks for the comment
The Electron CLI is updated node is on 18 LTS, tried clearing bin and obj folders too
Electron package is also to latest stable
Still same issue

Even tried setting up new environment with only required SDk and packages but still no luck

Have you checked event viewer?
I had the same error that after update (13.5.1 => 23.6.1) production version of the app crashed on splashscreen.
Found from event logs:
Application: AppXXX.exe
CoreCLR Version: 6.0.1623.17311
.NET Version: 6.0.16
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at SocketIOClient.JsonSerializer.SystemTextJsonSerializer..ctor()
at SocketIOClient.SocketIO.Initialize()
at SocketIOClient.SocketIO..ctor(Uri uri, SocketIOOptions options)
at SocketIOClient.SocketIO..ctor(Uri uri)
at SocketIOClient.SocketIO..ctor(String uri)
at ElectronNET.API.SocketIoFacade..ctor(String uri)
at ElectronNET.API.BridgeConnector.get_Socket()
at ElectronNET.API.WindowManager.CreateWindowAsync(BrowserWindowOptions options, String loadUrl)
at BC.BEM.FileTransfer.Startup.CreateElectronWindow(Boolean isProduction) in D:\a\1\s\bemfiletransfer\Startup.cs:line 99
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
I just updated my project target framework to .net 7 and now its working.

Sorry to hear that you're experiencing this issue. Upgrading from .NET Core 5 to .NET 6 seems to have surfaced a memory management issue as per the error logs you've shared.
Here are some potential solutions to your problem:

Check Compatibility of NuGet Packages: Please ensure that all the NuGet packages that you're using in your project are compatible with .NET 6. It's possible that one or more packages haven't been updated for .NET 6 yet and thus are causing issues.

Disable PublishReadyToRun Option: As suggested in the error message, you could try disabling the PublishReadyToRun option. You can do this by adding the following line to your .csproj file:

<PropertyGroup>
  <PublishReadyToRun>false</PublishReadyToRun>
</PropertyGroup>

Disable CrossGen Compilation: Another potential workaround could be disabling CrossGen compilation. This may make your program run slower, but it could bypass the memory access issue. You can do this by adding the following line to your .csproj file:

<PropertyGroup>
  <CrossGenDuringPublish>false</CrossGenDuringPublish>
</PropertyGroup>

Please note that these changes may result in reduced performance. Therefore, it's important to identify and fix the root cause of the problem rather than just using workarounds.

Rebuild the Project and Clean the Solution: Sometimes, build issues can be resolved by simply rebuilding the project and cleaning the solution. Try this before moving to more drastic measures.

Search for Specific Solutions: As your error is quite specific and points to a particular point in your build targets, you might try searching for solutions for this specific error. You could, for example, look for similar problems in forums or on Stack Overflow.

If none of these steps resolve the issue, it might be helpful to provide additional information such as the exact code causing the issue or details about the environment you're working in. I hope this helps! Please let me know how it goes.


Sold label missing from sold works

Example: https://www.artsy.net/artwork/utagawa-hiroshige-ando-hiroshige-plum-garden-at-kameido

@briansw What should it look like?

It used to be present. Should look like this:


docs: update changelog [skip ci]

:tada: This PR is included in version 0.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unable to do validation on models.

Let's supposed I have the following model and create schema.
class ProjectBase(SQLModel):
    name: str = Field(nullable=False)
    repr_name: Optional[str] = Field(default=None, nullable=False)
    is_active: bool = Field(default=True, nullable=False)
    publish_date: date = Field(
        default_factory=datetime.now().date, nullable=False)
    approved: bool = Field(default=False, nullable=False)
    featured: bool = Field(default=False, nullable=False)

    # post_init
    @validator("repr_name", always=True)
    def slugify_name(cls, v: Optional[str], values: dict[str, Any]) -> str:
        if v is None:
            logger.info(f"{v=}, {values=}")
            repr_name = slugify(values.get('name'), separator="_")
            return repr_name
        raise ValueError(
            f"`repr_name` cannot be passed in as a parameter to the `Request`.")

As you can see, I am trying to post-process the name field by 'slugify' it.
The ICreateProject schema is as follows:
class IProjectCreate(ProjectBase):
    pass

As I try to create a project using the API, with the following request:
curl -X 'POST' \
  'http://localhost/api/v1/project' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzY2NTc1MzgsInN1YiI6IjAxODYzZjUwLTkyNWMtNzU3Ny1hYTdmLTc4NmQ1Mjc4M2U2YSIsInR5cGUiOiJhY2Nlc3MifQ.bOtkIl5wJl1ahzGG_A5y7Dei-jxvrmtZalglclXaiR8' \
  -H 'Content-Type: application/json' \
  -d '{
  "is_active": true,
  "name": "Hello A",
  "publish_date": "2023-02-17",
  "approved": false,
  "featured": false
}'

The error log I got is this:
2023-02-18 02:08:37 INFO:     Application startup complete.
2023-02-18 02:08:43 2023-02-17 18:08:43,325 INFO     [project_model.py:29] v=None, values={'name': 'Hello A'}
2023-02-18 02:08:43 2023-02-17 18:08:43,325 INFO     [project_model.py:29] v=None, values={'name': 'Hello A'}
2023-02-18 02:08:43 2023-02-17 18:08:43,326 INFO     [base_crud.py:159] In CRUD.create
2023-02-18 02:08:43 2023-02-17 18:08:43,326 INFO     [base_crud.py:160] obj_in=IProjectCreate(name='Hello A', repr_name='hello_a', is_active=True, publish_date=datetime.date(2023, 2, 17), approved=False, featured=False)
2023-02-18 02:08:43 2023-02-17 18:08:43,326 INFO     [project_model.py:29] v=None, values={}
2023-02-18 02:08:43 INFO:     <IP_ADDRESS>:54102 - "POST /api/v1/project HTTP/1.1" 500 Internal Server Error
2023-02-18 02:08:43 ERROR:    Exception in ASGI application
2023-02-18 02:08:43 Traceback (most recent call last):
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/anyio/streams/memory.py", line 94, in receive
2023-02-18 02:08:43     return self.receive_nowait()
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/anyio/streams/memory.py", line 89, in receive_nowait
2023-02-18 02:08:43     raise WouldBlock
2023-02-18 02:08:43 anyio.WouldBlock
2023-02-18 02:08:43
2023-02-18 02:08:43 During handling of the above exception, another exception occurred:
2023-02-18 02:08:43
2023-02-18 02:08:43 Traceback (most recent call last):
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 77, in call_next
2023-02-18 02:08:43     message = await recv_stream.receive()
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/anyio/streams/memory.py", line 114, in receive
2023-02-18 02:08:43     raise EndOfStream
2023-02-18 02:08:43 anyio.EndOfStream
2023-02-18 02:08:43
2023-02-18 02:08:43 During handling of the above exception, another exception occurred:
2023-02-18 02:08:43
2023-02-18 02:08:43 Traceback (most recent call last):
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
2023-02-18 02:08:43     result = await app(  # type: ignore[func-returns-value]
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
2023-02-18 02:08:43     return await self.app(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 270, in __call__
2023-02-18 02:08:43     await super().__call__(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
2023-02-18 02:08:43     await self.middleware_stack(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
2023-02-18 02:08:43     raise exc
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
2023-02-18 02:08:43     await self.app(scope, receive, _send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 92, in __call__
2023-02-18 02:08:43     await self.simple_response(scope, receive, send, request_headers=headers)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2023-02-18 02:08:43     await self.app(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 106, in __call__
2023-02-18 02:08:43     response = await self.dispatch_func(request, call_next)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi_async_sqlalchemy/middleware.py", line 45, in dispatch
2023-02-18 02:08:43     return await call_next(request)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 80, in call_next
2023-02-18 02:08:43     raise app_exc
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 69, in coro
2023-02-18 02:08:43     await self.app(scope, receive_or_disconnect, send_no_error)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
2023-02-18 02:08:43     raise exc
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
2023-02-18 02:08:43     await self.app(scope, receive, sender)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
2023-02-18 02:08:43     raise e
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
2023-02-18 02:08:43     await self.app(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
2023-02-18 02:08:43     await route.handle(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
2023-02-18 02:08:43     await self.app(scope, receive, send)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
2023-02-18 02:08:43     response = await func(request)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
2023-02-18 02:08:43     raw_response = await run_endpoint_function(
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
2023-02-18 02:08:43     return await dependant.call(**values)
2023-02-18 02:08:43   File "/code/./app/api/v1/endpoints/project.py", line 83, in create_project
2023-02-18 02:08:43     created = await crud.project.create(obj_in=project, created_by_id=None)
2023-02-18 02:08:43   File "/code/./app/crud/base_crud.py", line 161, in create
2023-02-18 02:08:43     db_obj = self.model.from_orm(obj_in.dict())  # type: ignore
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlmodel/main.py", line 551, in from_orm
2023-02-18 02:08:43     m = cls()
2023-02-18 02:08:43   File "<string>", line 4, in __init__
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/state.py", line 481, in _initialize_instance
2023-02-18 02:08:43     with util.safe_reraise():
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-02-18 02:08:43     compat.raise_(
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 208, in raise_
2023-02-18 02:08:43     raise exception
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/state.py", line 479, in _initialize_instance
2023-02-18 02:08:43     return manager.original_init(*mixed[1:], **kwargs)
2023-02-18 02:08:43   File "/usr/local/lib/python3.10/site-packages/sqlmodel/main.py", line 498, in __init__
2023-02-18 02:08:43     values, fields_set, validation_error = validate_model(
2023-02-18 02:08:43   File "pydantic/main.py", line 1077, in pydantic.main.validate_model
2023-02-18 02:08:43   File "pydantic/fields.py", line 877, in pydantic.fields.ModelField.validate
2023-02-18 02:08:43   File "pydantic/fields.py", line 1148, in pydantic.fields.ModelField._apply_validators
2023-02-18 02:08:43   File "pydantic/class_validators.py", line 287, in pydantic.class_validators._generic_validator_cls.lambda5
2023-02-18 02:08:43   File "/code/./app/models/project_model.py", line 30, in slugify_name
2023-02-18 02:08:43     repr_name = slugify(values['name'], separator="_")
2023-02-18 02:08:43 KeyError: 'name'

Somehow, the from_orm method does not have the field name.

I have created a minimum viable codes to illustrate this problem:
from typing import List, Optional, Any
from sqlmodel import Field, SQLModel as _SQLModel, Relationship
from slugify import slugify
from datetime import date, datetime
from pydantic import validator
from sqlalchemy.orm import declared_attr

class SQLModel(_SQLModel):

    @declared_attr  # type: ignore
    def __tablename__(cls) -> str:
        return cls.__name__

    class Config:
        use_enum_values = True

class BaseIDModel(SQLModel):
    id: Optional[int] = Field(
        primary_key=True,
        index=True,
        nullable=False,
    )

class ProjectBase(SQLModel):
    is_active: bool = Field(default=True, nullable=False)
    name: str = Field(nullable=False)

    publish_date: date = Field(
        default_factory=datetime.now().date, nullable=False)
    repr_name: Optional[str] = Field(default=None, nullable=False)

    approved: bool = Field(default=False, nullable=False)
    featured: bool = Field(default=False, nullable=False)

    # post_init
    @validator("repr_name", pre=True, always=True)
    def slugify_name(cls, v, values) -> str:
        if v is None:
            print(f"{v=}, {values=}")
            return slugify(values["name"], separator="_")
        raise ValueError(
            f"`repr_name` cannot be passed in as a parameter to the `Request`.")

class Project(BaseIDModel, ProjectBase, table=True):
    pass

class IProjectCreate(ProjectBase):
    pass

if __name__ == '__main__':
    Project.from_orm(IProjectCreate(name='Hello A'))

The Output is:
v=None, values={'is_active': True, 'name': 'Hello A', 'publish_date': datetime.date(2023, 2, 18)}
v=None, values={'is_active': True, 'publish_date': datetime.date(2023, 2, 18)}
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-8a711b7fe15b> in <module>
----> 1 Project.from_orm(IProjectCreate(name='Hello A'))

~\AppData\Roaming\Python\Python38\site-packages\sqlmodel\main.py in from_orm(cls, obj, update)
    549             # If table, create the new instance normally to make SQLAlchemy create
    550             # the _sa_instance_state attribute
--> 551             m = cls()
    552         values, fields_set, validation_error = validate_model(cls, obj)
    553         if validation_error:

<string> in __init__(__pydantic_self__, **data)

~\AppData\Roaming\Python\Python38\site-packages\sqlalchemy\orm\state.py in _initialize_instance(*mixed, **kwargs)
    480         except:
    481             with util.safe_reraise():
--> 482                 manager.dispatch.init_failure(self, args, kwargs)
    483
    484     def get_history(self, key, passive):

~\AppData\Roaming\Python\Python38\site-packages\sqlalchemy\util\langhelpers.py in __exit__(self, type_, value, traceback)
     68             self._exc_info = None  # remove potential circular references
     69             if not self.warn_only:
---> 70                 compat.raise_(
     71                     exc_value,
     72                     with_traceback=exc_tb,

~\AppData\Roaming\Python\Python38\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***)
    206
    207         try:
--> 208             raise exception
    209         finally:
    210             # credit to

~\AppData\Roaming\Python\Python38\site-packages\sqlalchemy\orm\state.py in _initialize_instance(*mixed, **kwargs)
    477
    478         try:
--> 479             return manager.original_init(*mixed[1:], **kwargs)
    480         except:
    481             with util.safe_reraise():

~\AppData\Roaming\Python\Python38\site-packages\sqlmodel\main.py in __init__(__pydantic_self__, **data)
    496         # Uses something other than `self` the first arg to allow "self" as a
    497         # settable attribute
--> 498         values, fields_set, validation_error = validate_model(
    499             __pydantic_self__.__class__, data
    500         )

~\AppData\Roaming\Python\Python38\site-packages\pydantic\main.cp38-win_amd64.pyd in pydantic.main.validate_model()

~\AppData\Roaming\Python\Python38\site-packages\pydantic\fields.cp38-win_amd64.pyd in pydantic.fields.ModelField.validate()

~\AppData\Roaming\Python\Python38\site-packages\pydantic\fields.cp38-win_amd64.pyd in pydantic.fields.ModelField._apply_validators()

~\AppData\Roaming\Python\Python38\site-packages\pydantic\class_validators.cp38-win_amd64.pyd in pydantic.class_validators._generic_validator_cls.lambda5()

<ipython-input-2-8fd04dce0748> in slugify_name(cls, v, values)
     31         if v is None:
     32             print(f"{v=}, {values=}")
---> 33             return slugify(values["name"], separator="_")
     34         raise ValueError(
     35             f"`repr_name` cannot be passed in as a parameter to the `Request`.")

KeyError: 'name'

Opened a discussion in sqlmodel: https://github.com/tiangolo/sqlmodel/discussions/556

Hello @jymchng I see that you got the solution here adding the validation into pydantic schema instead of SQLModel object

Please check this commit it adds validation on IHereoCreate schema. Also if you ask why schemas use the I letter at the beginning this is an internal convention of our team in order to be able to differentiate Models from schemas and as also we use typescript we see schemas similar to interfaces in typescript which we already use "I" convention

Hi @jonra1993, thank you for working on the , yeah, I managed to figure the separation of responsibilities between models and schemas - hence, figured that the right place to do validations is on the schemas.
Thank you for including an example on the IHeroCreate schema for future references.


Expiration of OTP

Set timestamp as true in otps schema.
Add TTL indexing on the otps collection in mongodb.
Set the expiration time to 10 mins(600secs).
Remove the background process of cleaning the OTP from the server.js file.

ref: https://docs.mongodb.com/manual/core/index-ttl/

Can you assign this to me please?

@khushi2912 if you are confident enough then, go ahead. You may require the connection string and other credentials for performing the task. email us at<EMAIL_ADDRESS>for the same.

@khushi2912 if you are confident enough then, go ahead. You may require the connection string and other credentials for performing the task. email us at<EMAIL_ADDRESS>for the same.

Yes sure!

Go through the contribution guidelines and start hacking


WAMR on Zephyr

Hi,
I'm currently trying to run wasm using wamr on zephyr (xtensa-qemu). However, when wasm_runtime_load() is called twice, the system crashes. Here's some sample code:
if (!(wasm_module = wasm_runtime_load(wasm_file_buf, wasm_file_size,
                                        error_buf, sizeof(error_buf)))){
  //some error checking
}
wasm_runtime_unload(wasm_module);
if (!(wasm_module2 = wasm_runtime_load(wasm_file_buf2, wasm_file_size2,
                                        error_buf2, sizeof(error_buf2)))){
 //some error checking
}

And the system shows me:
[00:00:00.040,000] <err> os:  ** CPU 0 EXCCAUSE 9 (load/store alignment)
[00:00:00.040,000] <err> os:  **  PC 0x6000deaf VADDR 0x6001d8fd
[00:00:00.040,000] <err> os:  **  PS 0x00060020
[00:00:00.040,000] <err> os:  **    (INTLEVEL:0 EXCM: 0 UM:1 RING:0 WOE:1 OWB:0 CALLINC:2)
[00:00:00.040,000] <err> os:  **  A0 0xa000e139  SP 0x60019360  A2 0x6001de78  A3 0x6001d978
[00:00:00.040,000] <err> os:  **  A4 0x60019400  A5 0x00000080  A6 0x00000000  A7 0x6001d8fd
[00:00:00.040,000] <err> os:  **  A8 0x6d736100  A9 0x60019340 A10 0x6001de78 A11 0x00000000
[00:00:00.040,000] <err> os:  ** A12 0x00000000 A13 0x6001b440 A14 0x6001dcc4 A15 0x00000000
[00:00:00.040,000] <err> os:  ** SAR 0x00000010
[00:00:00.040,000] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:00.040,000] <err> os: Current thread: 0x6001da70 (unknown)
[00:00:00.050,000] <err> os: Halting system

Can anyone help me with this? thanks.

Found the bug, when declaring the wasm_file_buf array, it needs to align with the memory.
unsigned char __aligned(4) wasm_test_file[] = {//binary code};
I will submit a pull request for this.