chore(components): update icons to use exp icons behind feature flag

Closes #1441
This is a WIP PR, will most likely require bouncing between design and development review. Below are some questions for design and development reviewers, will make sure to push commits with any changes requested!
Design Questions:

For Code Snippet, I went ahead and added in https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fcopy, wanted to confirm that's 🆗
Notifications

WarningFilled16 does not include the filled ! in the center
Should close be replaced with Close16?

Number Input

Looks like glyphs turned into a 16x16, should we keep using glyphs or refactor styles to work with 16x16?

Overflow Menu

Was unable to find a horizontal example, does one exist in our environment?

Text Input

Do we have icons for visibility status?
Not allowed for disabled?

Developer questions:

Date Picker seems tricky to update SVG markup, any tips?
Select needs to have its styles fixed
For text input, it seems like we're inlining in the CSS?

Changelog
New
Changed

Components described in #1440, namely *.config.js and .hbs templates

Removed
Testing / Reviewing
Preview URL

Verify that icons work in experimental mode and stable do not break

cc @chrisconnors-ibm @aagonzales @designertyler @laurenmrice @jeanservaas @shixiedesign

The inline css for text input was temporary, so something to revisit now that we have a way to update html only for experimental.

Good going though component @joshblack - For date picker, you can do:
<div data-date-picker data-date-picker-type="single" class="bx--date-picker bx--date-picker--single">
  <div hidden data-date-picker-right-arrow-html>
      {{ carbon-icon ... }}
  </div>
  <div hidden data-date-picker-left-arrow-html>
      {{ carbon-icon ... }}
  </div>
  <div class="bx--date-picker-container">
    ...
  </div>
</div>

class DatePicker extends mixin(createComponent, initComponentBySearch, handles) {
  ...

  _rightArrowHTML() {
    return this.element.querySelector(this.options.selectorRightArrowHTML) || '';
  }

  _leftArrowHTML() {
    return this.element.querySelector(this.options.selectorLeftArrowHTML) || '';
  }

  ...

  static get options() {
    ...
    return {
      ...
      selectorRightArrowHTML: '[data-date-picker-right-arrow-html]',
      selectorLeftArrowHTML: '[data-date-picker-left-arrow-html]',
    };
  }
}

For Code Snippet, I went ahead and added in https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fcopy, wanted to confirm that's 🆗
Yep!

Notifications
WarningFilled16 does not include the filled ! in the center
They were black before for contrast - can we use https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fwarning--alt--filled so we have the shape, the [!], the color and the label for distinction?

Should close be replaced with Close16?
Yep great!

Number Input
Looks like glyphs turned into a 16x16, should we keep using glyphs or refactor styles to work with 16x16?
per our convo will update the glyphs for :
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fcaret--down
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fcaret--left
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fcaret--right
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fcaret--up

https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fchevron--down
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fchevron--left
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fchevron--right
https://ibm.github.io/carbon-elements/icons/examples/esm/#%2Fchevron--up
moving towards only having glyphs for caret--h, caret--v, chevron--h, chevron--v

Overflow Menu
Was unable to find a horizontal example, does one exist in our environment?
Me neither - what was I looking at? disregard.

Text Input
Do we have icons for (password) visibility status?
https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fview--off
https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fview
Not allowed for disabled?
propose https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Ferror--outline

@chrisconnors-ibm

can we use https://ibm.github.io/carbon-elements/icons/examples/esm/#16%2Fwarning--alt--filled so we have the shape, the [!], the color and the label for distinction?

Added in that icon, but it looks like the path gets consolidated into one so the ! is not styled. Is that what is expected? (staging link reflects this)

Final pass:

[x] Accordion

Update style to enforce 16x16 icon, including setting flex-basis and flex-shrink to prevent size collapse

[x] ~Breadcrumb~
[x] Button
[x] ~Checkbox~
[x] Code Snippet

16x16
Copy16

[x] Combobox

10x6
ChevronDownGlyph

[x] Content Switcher

16x16
AddFilled16

[x] CopyButton

16x16
AddFilled16

[ ] Data Table, will need to be in separate PR
[ ] Date Picker, will need to be in separate PR
[x] Dropdown

10x6
ChevronDownGlyph

[ ] FileUploader, needs close icon, add in separate PR
[x] Form

10x6
ChevronDownGLyph

[x] ~Inline loading~
[x] ~Link~
[x] ~List~
[x] ListBox

10x6
ChevronDownGlyph

[x] ~Loading~
[x] Modal

16x16
Close16

[x] MultiSelect

10x6
ChevronDownGlyph

[x] Notification

Close16
ErrorFilled16
CheckmarkFilled16
WarningAltFilled16

[x] NumberInput

8x4
CaretDownGlyph

[x] OverflowMenu

OverflowMenuVertical16

[ ] Pagination, will need to be in separate PR
[x] ProgressIndicator

CheckmarkOutline16
Warning16

[x] ~RadioButton~
[x] Search

Search16

[x] Select

ChevronDownGlyph

[x] ~Skeleton~
[x] Structured List

AddFilled16

[x] ~Tabs~
[x] ~Tag~
[x] ~Text Area~
[ ] Text Input, will need to be in separate PR
[x] Tile

ChevronDown16
AddFilled16

[x] Time Picker

ChevronDownGlyph

[x] ~Toggle~
[x] Toolbar

Icons updated but needs style updates (maybe?)

[x] Tooltip

Information16
Filter16

yes was using the link here for review: https://github.com/IBM/carbon-components/pull/1490#issuecomment-444230729

Two things I noticed:

Button components pulling in old icon still (you might already know that)
Code snippet copy icon appears blurrier in firefox than chrome/safari for some reason?

@laurenmrice updated the button icon! The blurriness should also be resolved 👍


Added Custom Steps for Cloning Git Repo and Deleting Local Repo

Please include answers to these questions as part of your pull request
In the GitHub webUI, use the Write tab to modify the Markdown text that is part of the pull request. For each question simply place an X inside the square brackets, [X], that represents your answer. Using the Preview tab you can see the formatted/rendered version of the message.

Q1: Confirm that you have the right to submit the code that is being contributed. Please consider the origin of your code and confirm you have the appropriate rights to make the submission subject to the Apache 2.0 license that applies to everything in this repository of custom steps. If so, follow the instructions for the Contributor Agreement (which is based on the industry-standard Developer Certificate of Origin (DCO)).

[X] Yes, I have the right to submit the contributed code on behalf of myself, my company, or any other owner of the code. I have also attached my signed copy of the DCO to this message.
[ ] No

Q2: Confirm that your contribution does not include any personally identifiable information (PII), for example, in any examples used in your README file.

[X] My contribution does NOT include PII data
[ ] My contribution includes PII data

Q3: Confirm your contribution does not include any encryption or other export-controlled technology.

[X] My contribution does NOT contain encryption or other export-controlled technology
[ ] My contribution includes encryption or other export-controlled technology

ContributorAgreement.txt

@SundareshSankaran, thank you for another two contributions :-) Great that you are using "default" in the doc links in your readme files, so they always point to the latest SAS Viya documentation! Also very useful that you've added an overall "category" page that lists the various Git-related steps that are (will be) in the repo.
I have a few suggestions though. Hopefully they're quick and easy to implement:

Could you fix the capitalization in labels for UI controls in both custom steps, so they adhere to the UI-Guidelines and are consistent with out-of-the-box provided steps in SAS Studio?
Could you rename "Git - Clone a Git Repo" to "Git - Clone Git Repo"? Removing "a" will make it consistent with the naming approach for your other step.
You are referencing GitHub and GitLab in your .md files, and maybe in the About box, with various capitalization approaches, could you fix this to use the official company/product spelling? Of course, when part of a URL spell it using all lower case.
Any thoughts about having the readme for "Git - Delete local repo", link back to your "category" page?

Hi @snlwih , thank you for the suggestions.  I have incorporated the same and committed.

Noticed that the label for the status_table outputtable control still wasn't adhering to UI Guidelines, so quickly fixed that.

SAS Internal Due Diligence Review - COMPLETED on 02FEB2023


Response component

I want to make an event hook that modify response headers, for this I must override the render_response hook. If Response was an injectable component this could be done easier. Imagine hooks or components that are expected to be run after the handler to modify the respose.
Today I must implement a new render_response that calls the original. So I'm asking for an ResponseComponent.

response is made available to event hooks, as documented in http://www.encode.io/apistar/api-guide/event-hooks/
However, https://github.com/encode/apistar/pull/451 improves things slightly by making Response be a standard component. (And removing the requirement that event hooks return the response instance themselves.)

Cool!


Internationalization

TODO

we would like to contribute.

@harrywang Want to be assigned? Still figuring out how assignments should work.

@harrywang Want to be assigned? Still figuring out how assignments should work.

sure - we can work on the Simplified Chinese translation.

I am also keen on contributing to a French translation.
Cheers,
Joel
On Sat, May 20, 2023 at 12:33 AM Harry Wang @.***>
wrote:

@harrywang https://github.com/harrywang Want to be assigned? Still
figuring out how assignments should work.
sure - we can work on the Simplified Chinese translation.
—
Reply to this email directly, view it on GitHub
https://github.com/Stability-AI/StableStudio/issues/8#issuecomment-1555106164,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWXQGCDZW4ORWC7R3UKZZTDXG67WJANCNFSM6AAAAAAYFPSU64
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I used https://crowdin.com/page/open-source-project-setup-request for open-source projects i18n (free) and not sure whether we can also use that for this project. @cruhl

Hello. I am available to help with the UI localization in Italian language. In case you might be interested, InvokeAI is currently using Weblate for the localizations and it works very well: https://hosted.weblate.org/
I am currently in charge of the Italian localization of InvokeAI and Automatic1111 SD Web UI.

have a nice day

We're open to ideas on how to implement this in a sustainable way, what are the preferred internationalization techniques for folks nowadays?

As mentioned above, I believe it's best to use Weblate or Crowdin. I prefer
Weblate, as I find the UI more intuitive and less cluttered.
On Tue, 23 May 2023 at 02:21, Conner Ruhl @.***> wrote:

We're open to ideas on how to implement this in a sustainable way, what
are the preferred internationalization techniques for folks nowadays?
—
Reply to this email directly, view it on GitHub
https://github.com/Stability-AI/StableStudio/issues/8#issuecomment-1557971447,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWXQGCAOU7B2XGLRKVVX7ALXHPGTNANCNFSM6AAAAAAYFPSU64
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I would be happy with the Crowdin integration. It's free of charge for open-source projects. The translation sync can be completely automated via Crowdin GitHub Action or the native GitHub integration. Feel free to ask me if you have any questions 🙂

On the Crowdin free of charge for open-source projects. What about point 4, "You do not have any commercial products related to the open-source project you are requesting a license for."?

Hi everyone,
Andriy from Crowdin is here. We would be more than happy to assist StableStudio with i18n, a free license will be granted 💯. We only need project maintainers to create a project on the platform and contact us please, we will do the rest and help with initial setup 👍

On the Crowdin free of charge for open-source projects. What about point 4, "You do not have any commercial products related to the open-source project you are requesting a license for."?

emm - good point, this needs to be clarified @Andrulko may be able to answer.

Crowdin is very flexible in this area and I do confirm that we would be more than happy to grant a free unlimited Open Source license. Since we are here, there is no need to leave a license request. Please create a project in Crowdin and let me know the project name, I will do the rest 🫡

I have used i18n for localization and I will be happy to help


[feature](runtime filter) New session variable runtime_filter_wait_infinitly

Proposed changes
Issue Number: close #xxx

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

run buildall

run buildall

run buildall

run buildall


InvalidArgumentError: No OpKernel was registered to support Op 'Correlation'

Hi,
I am trying to run training with the code while this error bounced back. The compilation process was good (no error or anything and there's the file correlation_op.so). I'm not sure where things can go wrong?
Caused by op u'flow_prediction/flownet_c_3/Correlation_1', defined at:
  File "train_df.py", line 53, in <module>
    tf.app.run()
  File "/home/hale/anaconda2/envs/tf/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train_df.py", line 50, in main
    learner.train(FLAGS)
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 467, in train
    self.build_train_graph()
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 81, in build_train_graph
    losses, grads = self.single_tower_operation(optim, tgt_image_dp_splits[i], src_image_stack_dp_splits[i], tgt_image_flow_splits[i], src_image_stack_flow_splits[i], tgt_image_splits[i], src_image_stack_splits[i], intrinsics_splits[i], model_idx=i)
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 148, in single_tower_operation
    tgt2src, src2tgt = flownet(tgt_image_flow, src_image_stack_flow[:,:,:,3*i:3*(i+1)], flownet_spec='C', backward_flow=True, reuse=reuse_variables)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 86, in flownet
    scoped_block(reuse)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 49, in scoped_block
    channel_mult=channel_mult)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 231, in flownet_c
    pad=20, kernel_size=1, max_displacement=20, stride_1=1, stride_2=2)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/ops.py", line 64, in correlation
    return _correlation_module.correlation(first, second, **kwargs)[0]
  File "<string>", line 49, in correlation
  File "/home/hale/anaconda2/envs/tf/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
    op_def=op_def)
  File "/home/hale/anaconda2/envs/tf/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2506, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/hale/anaconda2/envs/tf/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1269, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Correlation' with these attrs.  Registered devices: [CPU,GPU], Registered kernels:
  <no registered kernels>

	 [[Node: flow_prediction/flownet_c_3/Correlation_1 = Correlation[kernel_size=1, max_displacement=20, pad=20, stride_1=1, stride_2=2, _device="/device:GPU:0"](flow_prediction/flownet_c_features_3/conv3_1/leaky_relu/Maximum, flow_prediction/flownet_c_features_3/conv3/leaky_relu/Maximum)]]

Hi @lhoangan , can you tell me what system configurations you are using? (i.e., python version, GPU, etc.) Also, did you modify the input argument?

Hi Yuliang-Zou, thanks for the quick reply. I'm using Linux Mint 17.2, cuda-8, 1 TitanX and I installed tensorflow with this command:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.2.0-cp27-none-linux_x86_64.whl
I have changed the num_gpu from 4 to 1

Hi @lhoangan , seems that you use python2? Might you try python3 instead? Also, I used the code on Ubuntu so I am not sure if the OS matters.
BTW, you might also need to change batch size to 1, otherwise, it cannot fit into the GPU.

Yes, I can try with it. Is there any preferable version of python3 like 3.4 or 3.5?

I used Python3.6. I think you can install pypng with pip and it should be fine.

I've changed to Python3.6
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.2.0-cp36-cp36m-linux_x86_64.whl
but the problem still persists
Here's the full error message, in case it helps
 'batch_size': 4,
 'beta1': 0.9,
 'checkpoint_dir': './checkpoint',
 'ckpt_dp': 'pretrained/cs_5frame_pre',
 'ckpt_flow': 'pretrained/unflowc_pre',
 'ckpt_pose': None,
 'continue_train': True,
 'cross_consistency': 0.5,
 'dataset_dir': 'raw',
 'depth_consistency': 0.2,
 'fix_pose': False,
 'flow_consistency': 0.2,
 'flow_smooth_weight': 3.0,
 'img_height': 320,
 'img_width': 1152,
 'learning_rate': 0.0001,
 'max_steps': 100000,
 'num_gpus': 1,
 'save_latest_freq': 5000,
 'scale_normalize': False,
 'seq_length': 5,
 'smooth_weight': 3.0,
 'summary_freq': 100}
WARNING:tensorflow:From /home/hale/TrimBot/projects/DF-Net/core/DFLearner.py:475: all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Please use tf.global_variables instead.
2018-09-16 00:02:46.514853: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2018-09-16 00:02:46.514890: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2018-09-16 00:02:46.514899: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2018-09-16 00:02:46.514907: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2018-09-16 00:02:46.514915: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2018-09-16 00:02:46.928058: I tensorflow/core/common_runtime/gpu/gpu_device.cc:940] Found device 0 with properties:
name: GeForce GTX TITAN X
major: 5 minor: 2 memoryClockRate (GHz) 1.076
pciBusID 0000:03:00.0
Total memory: 11.91GiB
Free memory: 10.53GiB
2018-09-16 00:02:46.928149: I tensorflow/core/common_runtime/gpu/gpu_device.cc:961] DMA: 0
2018-09-16 00:02:46.928167: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0:   Y
2018-09-16 00:02:46.928188: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
Traceback (most recent call last):
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1139, in _do_call
    return fn(*args)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1117, in _run_fn
    self._extend_graph()
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1166, in _extend_graph
    self._session, graph_def.SerializeToString(), status)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/contextlib.py", line 88, in __exit__
    next(self.gen)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'Correlation' with these attrs.  Registered devices: [CPU,GPU], Registered kernels:
  <no registered kernels>

	 [[Node: flow_prediction/flownet_c_3/Correlation_1 = Correlation[kernel_size=1, max_displacement=20, pad=20, stride_1=1, stride_2=2, _device="/device:GPU:0"](flow_prediction/flownet_c_features_3/conv3_1/leaky_relu/Maximum, flow_prediction/flownet_c_features_3/conv3/leaky_relu/Maximum)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "train_df.py", line 53, in <module>
    tf.app.run()
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train_df.py", line 50, in main
    learner.train(FLAGS)
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 489, in train
    with sv.managed_session(config=config) as sess:
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 964, in managed_session
    self.stop(close_summary_writer=close_summary_writer)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 792, in stop
    stop_grace_period_secs=self._stop_grace_secs)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
    six.reraise(*self._exc_info_to_raise)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 953, in managed_session
    start_standard_services=start_standard_services)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/supervisor.py", line 708, in prepare_or_wait_for_session
    init_feed_dict=self._init_feed_dict, init_fn=self._init_fn)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/training/session_manager.py", line 279, in prepare_session
    sess.run(init_op, feed_dict=init_feed_dict)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 789, in run
    run_metadata_ptr)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 997, in _run
    feed_dict_string, options, run_metadata)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1132, in _do_run
    target_list, options, run_metadata)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'Correlation' with these attrs.  Registered devices: [CPU,GPU], Registered kernels:
  <no registered kernels>

	 [[Node: flow_prediction/flownet_c_3/Correlation_1 = Correlation[kernel_size=1, max_displacement=20, pad=20, stride_1=1, stride_2=2, _device="/device:GPU:0"](flow_prediction/flownet_c_features_3/conv3_1/leaky_relu/Maximum, flow_prediction/flownet_c_features_3/conv3/leaky_relu/Maximum)]]

Caused by op 'flow_prediction/flownet_c_3/Correlation_1', defined at:
  File "train_df.py", line 53, in <module>
    tf.app.run()
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train_df.py", line 50, in main
    learner.train(FLAGS)
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 467, in train
    self.build_train_graph()
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 81, in build_train_graph
    losses, grads = self.single_tower_operation(optim, tgt_image_dp_splits[i], src_image_stack_dp_splits[i], tgt_image_flow_splits[i], src_image_stack_flow_splits[i], tgt_image_splits[i], src_image_stack_splits[i], intrinsics_splits[i], model_idx=i)
  File "/home/hale/TrimBot/projects/DF-Net/core/DFLearner.py", line 148, in single_tower_operation
    tgt2src, src2tgt = flownet(tgt_image_flow, src_image_stack_flow[:,:,:,3*i:3*(i+1)], flownet_spec='C', backward_flow=True, reuse=reuse_variables)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 86, in flownet
    scoped_block(reuse)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 49, in scoped_block
    channel_mult=channel_mult)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/core/flownet.py", line 231, in flownet_c
    pad=20, kernel_size=1, max_displacement=20, stride_1=1, stride_2=2)
  File "/home/hale/TrimBot/projects/DF-Net/core/UnFlow/src/e2eflow/ops.py", line 64, in correlation
    return _correlation_module.correlation(first, second, **kwargs)[0]
  File "<string>", line 49, in correlation
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
    op_def=op_def)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2506, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/hale/anaconda2/envs/tf1.2p3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1269, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'Correlation' with these attrs.  Registered devices: [CPU,GPU], Registered kernels:
  <no registered kernels>

	 [[Node: flow_prediction/flownet_c_3/Correlation_1 = Correlation[kernel_size=1, max_displacement=20, pad=20, stride_1=1, stride_2=2, _device="/device:GPU:0"](flow_prediction/flownet_c_features_3/conv3_1/leaky_relu/Maximum, flow_prediction/flownet_c_features_3/conv3/leaky_relu/Maximum)]]

Hi @Yuliang-Zou, I found the error, I had tried to remove  -D GOOGLE_CUDA=1  from the same line before, trying to solve another error, but it seemed to be the wrong call. I put it back, and it passes that error now (even with sm_30 or python2). It's my bad, sorry for wasting your time.


Instance defined with VmModules is not a new instance

Anko code
module User{
	_age = -1
	_name = "undefined"

	func SetAge(age) {
		_age = age
	}

	func SetName(name) {
		_name = name
	}
}

data = [
	{
		"age": 10,
		"name" : "jack"
	},
	{
		"age": 0,
		"name" : ""
	},
]

for item in data {
	user = User
	if item["age"] != 0 {
		user.SetAge(item["age"])
	}

	if item["name"] != "" {
		user.SetName(item["name"])
	}

	println(user._age)
	println(user._name)
}

Expected output
10
jack
-1
undefined

Actual output
10
jack
10
jack

Looks like a bug to me. Another example:
package main

import (
	"fmt"
	"log"

	"github.com/mattn/anko/vm"
)

func main() {
	env := vm.NewEnv()

	err := env.Define("println", fmt.Println)
	if err != nil {
		log.Fatalf("Define error: %v\n", err)
	}

	script := `
module rectangle {
	_length = 1
	_width = 1

	func setLength (length) {
		if length <= 0 {
			return
		}
		_length = length
	}

	func setWidth (width) {
		if width <= 0 {
			return
		}
		_width = width
	}

	func area () {
		return _length * _width
	}

	func perimeter () {
		return 2 * (_length + _width)
	}
 }

var rectangle1 = rectangle

rectangle1.setLength(4)
rectangle1.setWidth(5)

var rectangle2 = rectangle

rectangle2.setLength(2)
rectangle2.setWidth(4)

println(rectangle1.area())
println(rectangle1.perimeter())

println(rectangle2.area())
println(rectangle2.perimeter())
`

	_, err = env.Execute(script)
	if err != nil {
		log.Fatalf("Execute error: %v\n", err)
	}
}

Output:
8
12
8
12

Expected output:
20
18
8
12

@mattn
So for var rectangle1 = rectangle the right side is an IdentExpr, which means it is basically calling env.get("rectangle"). This is setting rectangle1 to an *Env which is the same *Env that rectangle points to.
Here is the line of code that is doing that setting:
https://github.com/mattn/anko/blob/adf6aeefec2c5f68e58c142e1e5ae3be250289e9/vm/env.go#L277
I know this can be fixed by creatinga copy of the env, but not sure if that is the correct approach or where that code should go. Any thoughts @mattn ?

I don't look code yet but it seems correct behavior.

@mattn
I think there would be a difference between rectangle1 = rectangle and var rectangle1 = rectangle but they do the same thing, copy the pointer instead of copying the whole module.

Is there a work around that would allow for instantiating a new module?
Module "types" don't work with new or make.

Most of users not use module. So we can change specification of module, I think.

I am going to look into this more, see if there is something not too hard to make this work.

Even if we could figure out how to hook the new() function to allow for copying that environment, that would be cool too.  I don't want to advocate for changing the language spec if at all possible.

The new spec is looking for a type, so would like to look at other options.
So having a module named a, like:
module a { b = 1 }
Here are some thoughts for a copy of a to c:

module c = a
var c = a
c := a

Please let me know if you have any other ideas and your thoughts about the above.

The var keyword being used to declare a new variable seems to mesh with the
way normal types work.  So thats my vote (if I get one).  :)
On Tue, Dec 3, 2019, 5:12 PM MichaelS11<EMAIL_ADDRESS>wrote:

The new spec is looking for a type, so would like to look at other options.
So having a module named a, like:
module a { b = 1 }
Here are some thoughts for a copy of a to c:

module c = a
var c = a
c := a

Please let me know if you have any other ideas and your thoughts about the
above.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mattn/anko/issues/315?email_source=notifications&email_token=AAKD2ODFIO537PB57CA5R5TQW3YYVA5CNFSM4IFXFXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF3IL3A#issuecomment-561415660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKD2OGEZ4PRGE77VCYXXATQW3YYVANCNFSM4IFXFXWQ
.

@mattn What you think?

On my first design, module meant namespace not class. So I did not expect that module can be instance with new keyword. But most of users does not use module and they seems to expect classes. We may have to add classes.

So rename module to class? Have some details on what you would like?

Let's add new code for class and make "module" deprecated.
Go's reflect does not have APIs to make struct dynamically. So adding class on anko will be useful.
Class has methods and self-keyword, and definition of variables.

Yes it does. https://golang.org/pkg/reflect/#StructOf
Sounds like we just need to support struct better and that should work instead of classes.

Yes, new years ago, I worked in progress for struct. But some APIs did not exists in that time.
https://github.com/mattn/anko/commit/158d91ccdd07c67e99204497290ec9e687b7a0cd

Ok, so deprecate modules and add better support for structs.

@mattn What about this PR https://github.com/mattn/anko/pull/322 for now?

@traetox Please test

Will do. Thank you!
On Wed, Dec 4, 2019, 7:05 PM MichaelS11<EMAIL_ADDRESS>wrote:

@traetox https://github.com/traetox Please test
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mattn/anko/issues/315?email_source=notifications&email_token=AAKD2OFGNN7HB2PSARSFZ6DQXBOVFA5CNFSM4IFXFXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF7GT6Q#issuecomment-561932794,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKD2OC6TDJI2XQQ3U67AW3QXBOVFANCNFSM4IFXFXWQ
.

@traetox All good?

doesn't look like the PR fixed it.
Here is a test script:
#!anko

module Foo {
  var x = "testing"
  func bar1() {
    return x
  }
  func bar2(z) {
     x = z
  }
}

var t1 = Foo
var t2 = Foo
t1.bar2("A")
t2.bar2("B")
println(t1.bar1())
println(t2.bar1())
println(Foo.bar1())

Using anko version 0.15 i got the following output
B
B
B

Expected output:
testing
A
B

So t1 and t2 are new instances of Foo however the functions still point to the orginal variable x. I will think about it some more but I don't think there are any easy fixes for modules.
Will probably need to work on better struct support so can do Go struct methods. In partiluar, need to add struct creation.
Note that struct methods are supported to some extent, can look at Sort for an example:
https://godoc.org/github.com/mattn/anko/vm#example-package--VmSort
So for now if you define the struct using env define, it might do what you are looking for.

ok, that seems entirely fair.  I would say you could close this as "working as intended"
Thank you for your time!  We will poke a bit as we can on the code base and see if we can get some PRs that make sense.
Thank you!


TestSwarm: Auto-provision projects and project tokens (then: rotate passwords)

In the team meeting on 31 March 2023, we looked back on the swarm-02.ops server refresh (https://github.com/jquery/infrastructure/issues/444). The main thing that stood out is the lack of backup, which, while intentional, is also a bit of a weakness.
The most prominent issue was the runtoken used by testswarm-browserstack clients, which we've since then fixed by adding the capability in TestSwarm for the runtoken to be provisioned through a configuration file (https://github.com/jquery/testswarm/commit/a7e7d6a817f7da95a257bc6570d4b56d74dbd802, https://github.com/jquery/infrastructure-puppet/commit/c08925387f7a394f9f87fea4ea45985717314464).
The remaining issues are:

Auto-provisioning of the project accounts. We currently have to create these manually based on private documentation at https://github.com/jquery/infrastructure/wiki/TestSwarm#create-users. This includes very outdated passwords, which we should rotate and keep in our password vault instead.
Auto-provisioning of project tokens. These are currently dynamically generated as random values at install time, yet, we reference them statically from private Jenkins configuration files (jenkins: node-testswarm-config.json). Ideally, these too would be auto-provisioned via Puppet secrets and thus be able to to be kept in sync, or at least be declared and re-creatable on a fresh server in the same way so that server refresh and token refresh are seperable events.

The jQuery testswarm instance will be decommissioned soon. This will no longer be necessary.


 This doesn't line up with any code changes that we made, so I suspect that one of our dependencies released a breaking update over the holidays.
https://travis-ci.org/openforcefield/openforcefield/builds?utm_medium=notification&utm_source=github_status

The issue appears to be due to a version incompatibility between nbval and coverage versions 5.0 and up. https://github.com/computationalmodelling/nbval/issues/129


Improve Sass docs for link helpers and settings

Improve the SassDoc comments for link settings and helpers, which are used to generate the Sass API reference docs.
Closes #2217

👉🏻 Preview what this would look like in the Frontend Docs for:

link settings – everything up to the 'Measurements' h2
link helpers – everything up to the 'Shapes' h2

This content has passed 2i.

Can we get a commit-squash, please? :)


Feature/cluster groups

Description

add endpoint support for cluster_groups
change default accept header to application/json
fixed exception handling within the ovc client module
increase code coverage of ovc client module
removed static ip address from unit test

Issues Resolved

resolved issue #20

Check List

[x] New functionality includes testing.

[x] All tests pass($ tox).

[x] New functionality has been documented in the README if applicable.

[x] New functionality has been thoroughly documented in the examples (please include helpful comments).
[x] New endpoints supported are updated in the endpoints-support.md file.

[x] Changes are documented in the CHANGELOG.

@sijeesh
I apologize for the large pull request, I was able to group the comments together based on function.
Please let me know what you think about the cluster_group implementation.

Merged into svt-kcmdaniel/simplivity-python/develop in order to unblock the internal development of our automation efforts.
Still waiting for final approval HewlettPackard/simplivity-python/master


How to change the baseurl of api

Due to regional restrictions, I cannot use Claude's official API and can only use a proxy API. Can I change the baseURL of claude-dev by configuring the settings?

Due to regional restrictions, I cannot use Claude's official API and can only use a proxy API. Can I change the baseURL of claude-dev by configuring the settings?

Not currently, but I do plan on adding openrouter support in the future. Closing as there are other tickets to follow that update.

You can now set a custom base URL for the Anthropic API in v.1.5.33:


Update n-able-user-provisioning-tutorial.md

Updated URL to support auth

#sign-off

Hi @owinoakelo - This pull request was opened in the public repo. Authors should work in the private repo, per the Microsoft Docs contributor guide. Would you make this content update in the private repo instead? Thank you! We'll close this PR.
Note: When you open the new PR, update the author metadata field to be your GitHub alias.


Android Java: 02.14 TabLayout in Android

Description :scroll:

Give a step-by-step tutorial of TabLayout in Android (Java).
Required Documentation or Video or Audio.

Domain of Contribution :bar_chart:

[x] Android Dev (java)

References :
https://abhiandroid.com/materialdesign/tablayout-example-android-studio.html

Please Read it Carefully Before Contributing

Changes should be made in Android_Development_With_Java/ directory under Android_Development_With_Java branch.
Inside Android_Development_With_Java directory/ creates a directory and names it according to the topic
Inside Topic Name directory/ add your task with subtopic number and name and make changes accordingly.
You have to push your PR to the Android_Development_With_Java branch only.
You can take help to the references but don't simply try to copy it. Just explain in your own word.
This issue is for GWOC'21 contributors only.
You need to push in a single commit. If there exists more than one commit then you need to squash your commits into one commit.
Will assign you on a first come first serve basis.
Please try to complete your assigned task within 7 days. If you need some more time then, please inform mentors and supervisors.
If you have two previously assigned issues on Android-Java pending then please first complete them.

Supervisor @VikasPandey121

/assign

@VikasPandey121
Kindly assign this issue to me. I really want to work on this issue. (DOCUMENT)

Yeah sure supervisor will assign you soon.😃
On Sat, 16 Oct 2021, 2:43 pm Nirati Khanna, @.***>
wrote:

@sitamadex11 https://github.com/sitamadex11 ok,thanks!
But please don't assign the documentation part to anyone else.
I'll complete the documentation part within the deadline.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/girlscript/winter-of-contributing/issues/6006#issuecomment-944885668,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASIF5UGM5OODDVEGLZOFMUTUHE64ZANCNFSM5GCJYWCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Possible speed upgrade, Use HW hevc encoding for first pass

maybe something could be made for hw to provide data from the first pass runned in a hw accelerator like nvenc or vceenc, and then pass it to the av1 encoder

Unlikely unless someone of the big three creates the feature or gives access to the source code, a possible route is reverse engineering.

Unlikely unless someone of the big three creates the feature or gives access to the source code, a possible route is reverse engineering.

ME-only is an officially supported mode of operation for NVENC (wasn't there at the start, but all the modern cards have it), and one could probably let it run single-pass encoding and look at the bitstream to get an estimate of frame-complexity (HEVC at least should allow enough reference frames to match the rav1e/CPU side in a representative fashion, though one has to sync frame types and frame references/reordering to prevent misleading data).
Using the HW encoder's ME facilities should help particularly at high speeds and with many references that have to be checked.
If that is something that would be realistic, I'd be happy to help. (AV.1 screen sharing better than x264 would be really nice to have, and I think this could help a lot if applicable.)

What about amd or intel cards?

FWIW, AMD has a PreAnalysis component in its AMF framework.
AMF also includes the AVC and HEVC hardware encoders, both of which use this PreAnalysis. It can also be used standalone according to the docs (check section 3).
The output of this pre-analysis is described as "activity maps", I'm not sure what this means exactly but it might be helpful?

@FreezyLemon :

The output of this pre-analysis is described as "activity maps", I'm not sure what this means exactly but it might be helpful?

Unfortunately it seems to just attempt intra-coding 16x16 chunks and turns the resulting size into the output value, if  it even does something that fancy (it might just eyeball the amplitudes of the spatial frequency spectrum looking for how quantization-friendly the block is).
While this API won't be useless for rav1e (should be useful for cheap adaptive quantization and scene change detection, like how AMD's HW encoders (H.264 & H.265) use it (and possibly load-balancing a frame across slices with a slice border based on correlating the block complexity estimate with time spent coding the block)).
From the PDF:
General description:

The AMF PA component accepts raw input images in NV12 format. It calculates a metric for content activity of different blocks across every image, as well as video property flags such as scene change and static scene flags. In the current release, spatial complexity is used as a measure of activity inside each block.

Standalone mode interface:

The standalone AMF PA component accepts AMF_SURFACE_R32 surfaces as input and produces activity maps also stored in AMF_SURFACE_R32 surfaces. The resulting activity maps consist of one activity value (32-bit unsigned) for each 16x16 pixel block.

balancing a frame across slices with a slice border based on correlating the block complexity estimate with time spent coding the block

While this api what?

balancing a frame across slices with a slice border based on correlating the block complexity estimate with time spent coding the block

While this api what?

Oh, I see, I accidentally wrote invalid grammar there.
Sorry about that, @LuisB79.
In lieu of trying to fix the broken wording, I'll re-phrase the information contained within that sentence:
While this API won't be useless for rav1e, it's not going to help with motion vector search or even getting decent estimates of (bitrate/encoded-size) complexity at frame or, even, more granular levels.
AMD's HW encoding seems to use it for psychovisual adaptive quanitzation (like how x264's CRF mode scales the quantizer up during high-movement sequences as the viewer won't have time to spot the artifacts in real-time) and scene change detection (I-frame placement aligned to scene changes for the obvious efficiency gains over using a fixed interval).
We could maybe use it for the same purpose.
Additionally, we might be able to use it's estimation of per-block (IIUC fixed 64x64 pixel tiles) complexity to split the frame into slices of approximately equal complexity for multi-threaded encoding on the basis that blocks with more complexity tend to require more bits to encode and thus deserve more effort to shave off some of those bits during encoding, independently of whether they end up being coded direct, as intra-references, or as inter-references.
I also decided to dig into the topic of using Intel hardware encoding for motion estimation:
Access to Intel's H.264 pre transform/quantize HW encoding stages (called ENC) exists and spits out macroblock-level encoding decisions for inter/intra, specific references, and motion vectors. Officially the application is then free to tweak these before feeding them into the hardware's transform/quanitze/loop-filter/entropy-coding stages, but there is no requirement to ever call (IIUC not even to initialize) this later encoding stage.
There's also the PreENC (documented 2 sections above ENC) mode which is fed with specifically two reference frames and optional macroblock-level motion vector predictions, and then performs motion estimation/search, using the predictions as start points if any were provided, producing motion vectors and SAD statistics.
ME-only access on AMD
I looked again for lower-level API access to get motion-estimation without quantization/entropy coding out of AMD VCE/VCN, but there doesn't seem to be any "proper" SDK/API access. I even looked into the linux kernel source and poked the AMF source if there are any hints towards accessible modularity, but everything points towards the hardware blocks being plumbed together courtesy of the GPU firmware blob.
TL;DR: I do not expect (NDA-free) access to any AMD HW motion estimation functionality to turn up, even with deeper search.

Thanks for the clarification and the time it took you to investigate this, i wonder why amd has it's motion-estimation so blocked. A 5% improvement in performance is still an improvement so it would be nice (i just put a rnd number for the performance improvement, it's just to illustrate a point)

everything points towards the hardware blocks being plumbed together courtesy of the GPU firmware blob.

One of the features touted for LiquidVR is motion estimation between two source frames. Even though it seems like abandon-ware at this point it points to this being possible.
I know for a fact it is possible, since I implemented some of the PA features in AMF that utilize MV hints/RD costs from a "first pass" encoding in a similar manner being proposed here.

wouldn't it be a good idea to ask for the feature in the github of LiquidVR?


amazing, just a bug

amazing plugin,
just a bug:
quotable is not working.
is not possible see quotes from quotable on the new page...

@luigicucciolillo quotable has been down for a few weeks, I'm trying to spin a version of it up.


Data from file.data not overriding app.cache.data

I thought in the past if I did
app.data({bleep: 'bleep'})
app.onLoad(/\.html$/, (file, next) => {
  file.data = {bleep: 'bloop'}
  next(null, file);
})

that the same key on file.data would overwrite that for app.cache.data but that doesn't seem to be the case
here's an example, run node index.js
https://github.com/dtothefp/assemble-view-issue

I think I've tracked down where this can be fixed. I'll put a PR together for discussion and to determine if changes will cause breaking changes downstream.

@doowb was this resolved?

I think @doowb said this was resolved in assemble-core 0.16.0 but I haven't tested yet

Yes. This was resolved with the context method updates. Closing but feel free to reopen if there's still an issue.


face recognition percent

Describe the bug
I uploaded about 1000 faces for recognition, after which I get the following recognition results for all of them they are always great, but the percentages are negligible, the same photos are used for testing as in the database
Expected behavior
example recognition
curl  -X POST "http://localhost:8000/api/v1/recognize" -H "Content-Type: multipart/form-data" -H "x-api-key: a1ed2873-c353-40ff-8e30-c24b0c499c04" -F<EMAIL_ADDRESS>-F prediction_count=1
example to add face
curl  -X POST "http://localhost:8000/api/v1/faces/?subject=lavrenkov&retrain=force" -H "Content-Type: multipart/form-data" -H "x-api-key: a1ed2873-c353-40ff-8e30-c24b0c499c04" -F<EMAIL_ADDRESS>Log docker
compreface-ui             | <IP_ADDRESS> - - [16/Sep/2020:13:57:15 +0000] "DELETE /api/v1/faces/?subject=lavrenkov&retrain=force HTTP/1.1" 400 70 "-" "curl/7.72.0"
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:21.687+00:00","@version":"1","message":"Model a1ed2873-c353-40ff-8e30-c24b0c499c04 unlocked, models locked : 0","logger_name":"com.exadel.frs.core.trainservice.component.FaceClassifierLockManager","thread_name":"http-nio-8080-exec-1","level":"DEBUG","level_value":10000}
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:21.688+00:00","@version":"1","message":"Model a1ed2873-c353-40ff-8e30-c24b0c499c04 locked, models locked : 1","logger_name":"com.exadel.frs.core.trainservice.component.FaceClassifierLockManager","thread_name":"http-nio-8080-exec-1","level":"DEBUG","level_value":10000}
compreface-ui             | <IP_ADDRESS> - - [16/Sep/2020:13:57:22 +0000] "DELETE /api/v1/faces/?subject=lavrenkov&retrain=force HTTP/1.1" 200 99 "-" "curl/7.72.0"
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:23.031+00:00","@version":"1","message":"L-BFGS: initial function value: 6458.66950","logger_name":"smile.math.BFGS","thread_name":"a1ed2873-c353-40ff-8e30-c24b0c499c04","level":"INFO","level_value":20000}
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:23.997+00:00","@version":"1","message":"L-BFGS converges on gradient after 1 iterations: 5626.84107","logger_name":"smile.math.BFGS","thread_name":"a1ed2873-c353-40ff-8e30-c24b0c499c04","level":"INFO","level_value":20000}
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:24.267+00:00","@version":"1","message":"Model a1ed2873-c353-40ff-8e30-c24b0c499c04 unlocked, models locked : 0","logger_name":"com.exadel.frs.core.trainservice.component.FaceClassifierLockManager","thread_name":"a1ed2873-c353-40ff-8e30-c24b0c499c04","level":"DEBUG","level_value":10000}
compreface-api            | {"application":"FRS-ML","@timestamp":"2020-09-16T13:57:24.268+00:00","@version":"1","message":"Model a1ed2873-c353-40ff-8e30-c24b0c499c04 unlocked, models locked : 0","logger_name":"com.exadel.frs.core.trainservice.component.FaceClassifierLockManager","thread_name":"a1ed2873-c353-40ff-8e30-c24b0c499c04","level":"DEBUG","level_value":10000}
compreface-ui             | <IP_ADDRESS> - - [16/Sep/2020:13:58:02 +0000] "POST /api/v1/recognize HTTP/1.1" 200 292 "-" "curl/7.72.0"
compreface-ui             | <IP_ADDRESS> - - [16/Sep/2020:14:00:33 +0000] "POST /api/v1/recognize HTTP/1.1" 200 290 "-" "curl/7.72.0"
Additional context
results recognition:
"result" : [ {
"box" : {
"probability" : 0.99777,
"x_max" : 471,
"y_max" : 462,
"x_min" : 278,
"y_min" : 216
},
"faces" : [ {
"similarity" : 0.00202,
"face_name" : "0d41f5e020f793f7f64392912ec6792819981201"
} ]
} ]
{
"result" : [ {
"box" : {
"probability" : 0.99988,
"x_max" : 223,
"y_max" : 260,
"x_min" : 60,
"y_min" : 59
},
"faces" : [ {
"similarity" : 0.00251,
"face_name" : "0e08144e69c99d86beb78bbdb7a142cf19730925"
} ]
} ]

Hi @lavrenkov-sketch,
The problem is with logistic regression - the more classes you have, the lower numbers it return.
The possible solution is to normalize them. But there still be problem that depending on how many faces you have you will receive different numbers of similarity.
To fix this globally we decided to use another approach - instead of logistic regression we will calculate similarity using euclidean distance. Then similarity won't change when number of faces change. The accuracy will be the same or better. The time of recognition could decrease, but slightly(this operation took 32ms for 1000 faces on my laptop).
The work is still in progress, but I hope we will be able to release it during next month.

@lavrenkov-sketch we just released our first version and we would like to receive some feedback.
We are interested in how you found us, what features you are interested in and at least in some information about the problem you are trying to solve
If you would like to help us in any way, please join the chat:
https://gitter.im/CompreFace/community


[Bug] Variable 'fn' referenced before assignment in exception handler in wxGladeFrame._save_app [sf#157]

Reported by ardovm on 2013-05-21 15:36 UTC
wxGlade version 0.6.7
Inside file main.py, inside class wxGladeFrame, inside method _save_app, an exception could be caught at line 779 (I am referring to the current source on bitbucket: https://bitbucket.org/agriggio/wxglade/src/c94dcad734938addc22f83fddaa3af05d37f6b72/main.py?at=default)
The first command of the except block refers to a variable named fn (line 782) that is assigned later, at line 785.
This can result in an another exception being raised: Variable 'fn' referenced before assignment.

Commented by cgrohmann on 2013-05-21 18:43 UTC
Hi Arrigo,
The reported bug is solved in the revision below. The revision will be part of the next official release.
changeset:   1246:6c47fb22bdad
tag:         tip
user:        Carsten Grohmann
date:        Tue May 21 20:18:45 2013 +0200
summary:     Fix an uninitialised variable in saving a project file (sf bug # 157)
Thanks for reporting this bug.
Carsten

Updated by cgrohmann on 2013-05-21 18:43 UTC

status: open --> closed
assigned_to: Carsten Grohmann


How to importScripts that are generated by webpack?

Hi!, I need some help. How do I import an script that is generated by webpack?
I mean in the import section how do I pass the hash that is generated by webpack, so when the service worker file is created, it can import the correct script.
(this is not an issue, I just need some help. Please tell me If I need to open a question on stackoverflow and what tag should I use. Thanks in advance)
new swPrecacheWebpackPlugin(
      {
        cacheId: 'myCoffeeB',
        filename: 'swPrecache.js',
        staticFileGlobsIgnorePatterns: SERVICE_WORKER_IGONRE_PATTERNS,
        maximumFileSizeToCacheInBytes: 4194304,
        importScripts:['sw-[hash].js'],
   }

@Hosar just to clarify, are the scripts you want to import entry points in your webpack config?
e.g:
...
  entry: {
    sw: path.resolve(__dirname, 'src/sw-precache-script'),
  },
  output: {
    filename: '[name]-[hash].js',
  },

Yes, particularly I want to import the sw entry :
It's possible?
entry: {
    app:entryDir,
    sw:swPath
  },
  output: {
    path: outDir,
    filename: '[name]-[hash].js',
    sourceMapFilename: '[file].map',
    publicPath: 'http://localhost:4200/dist/'
  },

Currently not possible but I can work on a pr over the weekend or you can. Would be very useful feature

Thanks again for this @Hosar

Unfortunately, this does not work with https://github.com/vuejs-templates/pwa 's webpack scripts.
I tried using the following configurations:
entry: {
    app: './src/main.js',
    'sw': './src/workers/sw.js',
  },
  output: {
    path: config.build.assetsRoot,
    filename: '[name].js',
    publicPath: process.env.NODE_ENV === 'production'
      ? config.build.assetsPublicPath
      : config.dev.assetsPublicPath
  },
.
.
.
plugins: [
// service worker caching
    new SWPrecacheWebpackPlugin({
      cacheId: 'pwa-vue',
      filename: 'service-worker.js',
      staticFileGlobs: ['dist/**/*.{js,html,css}'],
      minify: true,
      stripPrefix: 'dist/',
      importScripts: [
        utils.assetsPath('js/sw.[hash].js')
      ],
    }),
]

There are potentially 2 problems here -

The hash  generated by webpack while transpiling the files is different. I believe it has something to do with chunkhash. The hash that importScript [hash] uses is different.

The webpack pipeline encapsulates the importScript service-worker code with webpackJsonp, which renders it invalid in the service worker context.


Fix calling referred column

There was some bug when I call this:
$grid->addColumnText('sport', 'Sport', 'sport.name');
Then a Nette application throws Nette\MemberAccessException with message Cannot read an undeclared column 'sport.name'.
Nette: 2.4
PHP: 7.0.8-0ubuntu<IP_ADDRESS>

@Kuba93 Hello, give me more information, what data source are you using?

@juniwalk Nette\Database\Table

There is piece of code where I use a datagrid: https://gist.github.com/Kuba93/567d588dbba9e2778195350c85f80b28

@Kuba93 Can you also send me tracy error log? Maybe remove all sensitive parts.

@juniwalk Here... https://gist.github.com/Kuba93/91d3ba549ef53ecb679eeb76af100233

@Kuba93 I am sorry I opened this from email without thinking. This is PR not an issue so I did not need all those things I wanted from you.
Thanks for the contribution.

@Kuba93 Just a question, what is the difference between related and reffered table? I am Doctrine guy so I don't use this. Seems duplicated without knowledge of the difference. See https://github.com/ublaboo/datagrid/blob/master/src/Row.php#L95

@juniwalk
Related is just the opposite to referenced. :)
related: product_variant.product_id => product.id
referenced: product.id => product_variant.product_id

@paveljanda Oh I see, so this is alright? I may have merge it little prematurely.

@juniwalk Updated in master, see 34bcd68

@paveljanda I just looked at it, nice.


Cannot debug a function running in a thread

Problem Description
Cannot debug a function that runs inside a thread
What steps reproduce the problem?

Example code
from threading import Thread

class projectLoader (Thread):
    def __init__(self):
        Thread.__init__(self)
        self.runError='' #error message
        self.start()    # start

    def run(self): #I cannot debug this function
        count=0
        for idx in range(1000000):
            count+=1
        print(str(count))

projectLoader()

Versions

Spyder version: 3.3.2
Operating System name/version: Windows

This is not possible right now but we'll take a look at it in the future.

As a temporary solution I added a flag to my code so that it could either run in a thread (for production) or not (for debugging).
Example code:
from threading import Thread
class projectLoader (Thread):
def init(self,runInThread):
self.runError='' #error message
if runInThread==True:
Thread.init(self)
self.start()    # start
else:
self.run()
def run(self): #I cannot debug this function
    count=0
    for idx in range(1000000):
        count+=1
    print(str(count))

projectLoader(True)

if you want an alternative, you can add
import pdb
pdb.set_trace()

in your code. That will create a pdb instance there.

The problem is that when you hit debug, the Pdb instance is created in the main thread. You need to create a new Pdb instance in the other thread with pdb.set_trace().


How to use it with MonoGame?

Hello
Is it compatible with monogame?
Thanks

I don't see why not. It's just a plain old C# library.


Bootstrap volume

Hello,
It could be nice to add a bootstrap volume to allow to pre configure the openldap at first startup.
For instance, i would like to be able to put a bunch of ldif files into a volume and expect they are automaticaly imported at first startup.
Like it s done on mysql docker. (https://hub.docker.com/_/mysql/)

Hello,
this is already possible but more complex than with the mysql image:
For example if your ldif files are in /data/ldif on your host, mount this directory as a volume to any location in the container for example /tmp/ldif and copy them to /container/service/slapd/assets/config/bootstrap/ldif/
docker run -v /data/ldif:/tmp/ldif osixia/openldap --cmd "cp -a /tmp/ldif/. /container/service/slapd/assets/config/bootstrap/ldif/"

Note that you can't mount directly you ldif folder to /container/service/slapd/assets/config/bootstrap/ldif/ without breaking everything.
But let's make it more simple in a next version :)

To see all run options of this image:
docker run osixia/openldap --help

Hi,
To get this working I need --copy-service on the command line and to specify changetype: add to each entry. This make ldapmodify behave like ldapadd
Without this, i got:
ldap_1      | + ldapmodify -h localhost -p 389 -D cn=admin,dc=ldap,dc=ldap2pg,dc=docker -w integral -f /container/run/service/slapd/ass
ets/config/bootstrap/ldif/95-data.ldif
ldap_1      | + log-helper debug
ldap_1      | 596eee85 conn=1026 fd=16 ACCEPT from IP=<IP_ADDRESS>:57444 (IP=<IP_ADDRESS>:389)
ldap_1      | 596eee85 conn=1026 op=0 BIND dn="cn=admin,dc=ldap,dc=ldap2pg,dc=docker" method=128
ldap_1      | 596eee85 conn=1026 op=0 BIND dn="cn=admin,dc=ldap,dc=ldap2pg,dc=docker" mech=SIMPLE ssf=0
ldap_1      | 596eee85 conn=1026 op=0 RESULT tag=97 err=0 text=
ldap_1      | 596eee85 conn=1026 op=1 ADD dn="cn=slap,dc=ldap,dc=ldap2pg,dc=docker"
ldap_1      | 596eee85 conn=1026 op=1 RESULT tag=105 err=0 text=
ldap_1      | 596eee85 conn=1026 op=2 UNBIND
ldap_1      | 596eee85 conn=1026 fd=16 closed
ldap_1      | ldapmodify: modify operation type is missing at line 22, entry "ou=people,dc=ldap,dc=ldap2pg,dc=docker"

ldap_1      | *** /container/run/startup/slapd failed with status 247

Maybe we need a bit of documentation about seeding. That would be nice to accept ldapadd files.

@cgarnier README is updated. Please close the issue once you got it!

Version 1.1.9 allows you yo mount your ldif files to /container/service/slapd/assets/config/bootstrap/ldif/custom
closing this :)

Nice =), Ty


Implicit aliases in FROM statement not working

Hello, I have the following query form
select column
  from `projcet1.dataset1.tablename1`
  left join dataset2.tablename2
  on column = tablename2.column
  ...

From the documentation (https://github.com/google/zetasql/blob/master/docs/query-syntax.md#implicit-aliases): "For path expressions, the alias is the last identifier in the path. For example, FROM abc.def.ghi implies AS ghi", therefore, I would expect an alias to be created with the name tablename2
However, when I run:
ResolvedNodes.ResolvedStatement statement = analyzer.analyzeStatement(sql);

I get the error, com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unrecognized name: tablename2 - The same query executes successfully in BigQuery.
I have the following language options enabled:
catalog.addZetaSQLFunctions(new ZetaSQLBuiltinFunctionOptions());
LanguageOptions languageOptions = new LanguageOptions();
languageOptions.enableMaximumLanguageFeatures();
AnalyzerOptions options = new AnalyzerOptions();
options.setPruneUnusedColumns(true);
options.setLanguageOptions(languageOptions);
return new Analyzer(options, catalog)

Someone know if I have to enable some additional language settings, or how to achieve the expected behavior?
Thanks!

This should work.  Can you reduce it to a minimal query that reproduces the
error, and show the whole query and the exact error message with location?
On Mon, Oct 19, 2020 at 11:30 AM Chris Thr<EMAIL_ADDRESS>wrote:

Hello, I have the following query form
select column
from projcet1.dataset1.tablename1
left join dataset2.tablename2
on column = tablename2.column
...
From the documentation (
https://github.com/google/zetasql/blob/master/docs/query-syntax.md#implicit-aliases):
"For path expressions, the alias is the last identifier in the path. For
example, FROM abc.def.ghi implies AS ghi", therefore, I would expect an
alias to be created with the name tablename2
However, when I run:
ResolvedNodes.ResolvedStatement statement = analyzer.analyzeStatement(sql);
I get the error, com.google.zetasql.io.grpc.StatusRuntimeException:
INVALID_ARGUMENT: Unrecognized name: tablename2 - The same query executes
successfully in BigQuery.
I have the following language options enabled:
catalog.addZetaSQLFunctions(new ZetaSQLBuiltinFunctionOptions());
LanguageOptions languageOptions = new LanguageOptions();
languageOptions.enableMaximumLanguageFeatures();
AnalyzerOptions options = new AnalyzerOptions();
options.setPruneUnusedColumns(true);
options.setLanguageOptions(languageOptions);
return new Analyzer(options, catalog)
Someone know if I have to enable some additional language settings, or how
to achieve the expected behavior?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/zetasql/issues/49, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AL44HXRMMIHMKGZX5HNHUZDSLSAU7ANCNFSM4SWQHRVQ
.

Hi @jshute111 thank you for your reply.
Here is a small example:
String sql1 = "SELECT column1 from `project1.dataset1.table1` test1 left join `dataset2.table2` on test1.column1 = table2.column2";
SimpleCatalog catalog = new SimpleCatalog("tableCatalog");
SimpleColumn column1 = new SimpleColumn("project1.dataset1.table1", "column1",TypeFactory.createSimpleType(ZetaSQLType.TypeKind.TYPE_STRING));
SimpleColumn column2 = new SimpleColumn("dataset2.table2", "column2", TypeFactory.createSimpleType(ZetaSQLType.TypeKind.TYPE_STRING));
SimpleTable simpleTable1 = new SimpleTable("project1.dataset1.table1", Collections.singletonList(column1));
SimpleTable simpleTable2 = new SimpleTable("dataset2.table2", Collections.singletonList(column2));
catalog.addSimpleTable(simpleTable1);
catalog.addSimpleTable(simpleTable2);
catalog.addZetaSQLFunctions(new ZetaSQLBuiltinFunctionOptions());
LanguageOptions languageOptions = new LanguageOptions();
languageOptions.enableMaximumLanguageFeatures();
AnalyzerOptions options = new AnalyzerOptions();
options.setLanguageOptions(languageOptions);
Analyzer analyzer = new Analyzer(options, catalog);
analyzer.analyzeStatement(sql1);

I get the error:
Exception in thread "main" com.google.zetasql.SqlException: Unrecognized name: table2 [at 1:101]
	at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:62)
	at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:48)
	at dependencyparser.Main.main(Main.java:54)
Caused by: com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unrecognized name: table2 [at 1:101]
	at com.google.zetasql.io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233)
	at com.google.zetasql.io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214)
	at com.google.zetasql.io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139)
	at com.google.zetasql.ZetaSqlLocalServiceGrpc$ZetaSqlLocalServiceBlockingStub.analyze(ZetaSqlLocalServiceGrpc.java:1063)
	at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:60)
	... 2 more

Caused by: com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unrecognized name: table2 [at 1:101]

Note: One thing I am seeing is that whenever I don't put backticks around the table names in the query I get a Table not found error, for example when using this query instead:
SELECT column1 from project1.dataset1.table1 test1 left join `dataset2.table2` on test1.column1 = table2.column2

I get the error com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Table not found: project1.dataset1.table1 [at 1:21]
Maybe the issue is that I am adding the tables/columns in a wrong way. Does the above look wrong to you.
Thank you.

The implicit alias is the last identifier in the path.  When you have
something backtick-quoted, that is one identifier.  So if you have
xxx.a.b, the alias added will be a.b, not b.
The way you construct your Catalog, it looks like you are giving tables a
name with one identifier with dots in it, which requires quoting.  If you
want paths to work with multiple identifiers, you can set those up with
sub-catalogs instead.   e.g. Add a catalog called dataset2 and then add a
table called table2 inside that.
On Mon, Oct 19, 2020 at 2:14 PM Chris Thr<EMAIL_ADDRESS>wrote:

Hi @jshute111 https://github.com/jshute111 thank you for your reply.
Here is a small example:
String sql1 = "SELECT column1 from project1.dataset1.table1 test1 left join dataset2.table2 on test1.column1 = table2.column2";
SimpleCatalog catalog = new SimpleCatalog("tableCatalog");
SimpleColumn column1 = new SimpleColumn("project1.dataset1.table1", "column1",TypeFactory.createSimpleType(ZetaSQLType.TypeKind.TYPE_STRING));
SimpleColumn column2 = new SimpleColumn("dataset2.table2", "column2", TypeFactory.createSimpleType(ZetaSQLType.TypeKind.TYPE_STRING));
SimpleTable simpleTable1 = new SimpleTable("project1.dataset1.table1", Collections.singletonList(column1));
SimpleTable simpleTable2 = new SimpleTable("dataset2.table2", Collections.singletonList(column2));
catalog.addSimpleTable(simpleTable1);
catalog.addSimpleTable(simpleTable2);
catalog.addZetaSQLFunctions(new ZetaSQLBuiltinFunctionOptions());
LanguageOptions languageOptions = new LanguageOptions();
languageOptions.enableMaximumLanguageFeatures();
AnalyzerOptions options = new AnalyzerOptions();
options.setLanguageOptions(languageOptions);
Analyzer analyzer = new Analyzer(options, catalog);
analyzer.analyzeStatement(sql1);
I get the error:
Exception in thread "main" com.google.zetasql.SqlException: Unrecognized name: table2 [at 1:101]
at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:62)
at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:48)
at dependencyparser.Main.main(Main.java:54)
Caused by: com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unrecognized name: table2 [at 1:101]
at com.google.zetasql.io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233)
at com.google.zetasql.io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214)
at com.google.zetasql.io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139)
at com.google.zetasql.ZetaSqlLocalServiceGrpc$ZetaSqlLocalServiceBlockingStub.analyze(ZetaSqlLocalServiceGrpc.java:1063)
at com.google.zetasql.Analyzer.analyzeStatement(Analyzer.java:60)
... 2 more
Caused by: com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Unrecognized name: table2 [at 1:101]
Note: One thing I am seeing is that whenever I don't put backticks
around the table names in the query I get a Table not found error, for
example when using this query instead:
SELECT column1 from project1.dataset1.table1 test1 left join dataset2.table2 on test1.column1 = table2.column2
I get the error com.google.zetasql.io.grpc.StatusRuntimeException:
INVALID_ARGUMENT: Table not found: project1.dataset1.table1 [at 1:21]
Maybe the issue is that I am adding the tables/columns in a wrong way.
Does the above look wrong to you.
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/zetasql/issues/49#issuecomment-712445805, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AL44HXUKRQ7B2GV42HAQCQDSLST2TANCNFSM4SWQHRVQ
.

Tried with adding sub-catalogs and it works as expected. Thank you for your help

Can you please post the solution on how sub catalog is added for above issue. I am facing similar issue.


Unable to provision custom cluster while provider cluster is provisioning

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

deploy 1 provider-provisioned cluster
add custom cluster + run command while other cluster is provisioning
same error for each cluster, but never recovers
related to https://github.com/rancher/rancher/issues/28768

Cluster health check failed: deployments.apps "cattle-cluster-agent" not found; Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", ...
Result:
Not sure if this is reproducible or not.
Custom cluster is not recovering.  Provider provisioned cluster comes up after provisioning another cluster from that provider.
Other details that may be helpful:

I can bring up other provider provisioned clusters, but the existing 2 stay in an error state
I had 1 existing cluster that was active and finished provisioning, and it works fine as well
after waiting 1 hour, I decided to bring up another linode cluster, and the existing linode cluster with the error was able to complete provisioning and operate normally. However, the custom cluster error persists
bringing up new custom clusters is possible as well, but the existing custom cluster does not come up
this was using Oracle Linux 8.2 as the OS for rancher HA install, as well as the 'problem' custom cluster (but I was able to bring up a custom cluster using this OS later without issue)

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): charts v2.5.5 image 2.5-head (ac483705ad321e9bdfc868bcf72a0c6ca167d7e1)
Installation option (single install/HA): HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): custom cluster (via aws) + linode cluster (provider)
Machine type (cloud/VM/metal) and specifications (CPU/memory): each had 4vCPU and 16gB mem for custom cluster, 8gb for provided clusters
Kubernetes version (use kubectl version): v1.19.7

rke | 1.2.4
helm | rancher v3.3.4

after 3 hours, the custom cluster finally came up ( I did nothing to make this happen, so sounds like a repro of #28768)

after 3 hours, the custom cluster finally came up ( I did nothing to make this happen, so sounds like a repro of #28768)


HAWQ-605. Some segment capacity changes are not logged out and when segment goes to up status, the capacity is not adjusted

+1

+1


Enabled patient search by phone number

Fixes # .
Changes proposed in this pull request:

cc @HospitalRun/core-maintainers

@douno thanks for the pull request! To help us keep this project well documented, please complete the body of the pull request per the template provided (i.e. list out a summary of what you are proposing in the pull request, and in the Fixes # . line please reference any relevant issues that this pull address. Thanks!

@douno I'd love to see this PR closed out by you completing the documentation process and correcting the CI errors in the branch. It's a worthwhile feature to add to the system. Would you have further time to invest in it?

@tangollama I have updated the PR message. As for the CI errors, can you point me in the right direction. The change is so minor so minor so I don't understand why there are 11 fails. Cheers

@douno thanks for the PR and the update!  The CI errors were caused by an issue with our tests.  I reran the tests and they now pass, so I am going to merge this PR.

@douno fantastic. Thanks for adding this! :tada:


[Bug] Irrigation System GUI Incorrect

Describe The Bug:

Hey @oznu I have noticed an issue with the irrigation system accessory. In config-ui-x it always shows as ‘running’, whereas in HomeKit it shows as ‘scheduled’ and appears off (which is correct).
Expected behavior:

It should appear as off and say 'Scheduled' in my case; but seems to think the irrigation system is running. I believe the characteristic responsible is ProgramMode.
Logs:

N/A

Homebridge Config:
N/A

Screenshots:

Environment:

Node.js Version: v14.15.4
NPM Version: v6.14.11
Homebridge Version: v1.2.5
Homebridge Config UI X Version: v4.37.0
Operating System: Raspbian
Process Supervisor: hb-service

Can you show the accessory info (click the cog) when it's in the different states?

Sprinklers off:

Sprinkler manual on:

Not able to get an auto scheduled run example until Sunday :) hope this helps!

I will make it "on" based on the value of the "InUse" characteristic

That makes sense :) thanks Oznu!

Please check the beta - this should be fixed.

That looks much better @oznu :) appears as 'off' when it is 'off'.

One small thing is that even when it is 'off' in Homekit, if it has a program scheduled it will say 'scheduled' instead of 'off'. I can live without that if it is too much effort.

Thanks for your work :)


add retrival reward idea proof of concept

Here is a working proof of concept of my idea about retrival reward, its using sentence transformer to compare generated answer and ground true answer.
WB metrics
https://wandb.ai/alexwortega/trl/runs/cszh2ve8?workspace=user-alexwortega

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@AlexWortega in your sft function I believe you are missing an optimizer.zero_grad()

Closing for now since there is not a lot of activity right now. Feel free to reopen :)


feat: Add ability to specify extraPodLabels per deployment

Checklist

[x] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[x] Links to related issues (if applicable)
[x] Tests for the changes have been added/updated (if applicable)
[x] Docs related to the changes have been added/updated (if applicable)

LGTM! Thanks!


[resolves #278] Intermittent failures of Docker domain mode tests

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/231/
Test PASSed.


xGov-45: Rand Auctions Proposal

Rand Auctions xGov Proposal.
Looking forward to all feedback from the community.

Agash

What about making it an open auction protocol that anyone can implement. That way there wouldn't be a wall garden for the auctions and then everyone could just compete via a better interface for the exact same auctions.

The proposal has multiple milestones and it has not mentioned how much it will cost to reach each milestone.

Distributed Finance owns Rand Gallery
https://news.fintech.io/post/102hvtr/distributed-finance-raises-2-5m-in-seed-funding
Your holding company raised $2,500,000 but is now asking for $50,000 from the community ALGO to build out a basic feature for your platform?
https://twitter.com/al_goanna/status/1680002417319120896
How about your team builds something innovative for #Algorand instead of relying on the AF to subsidize your attempt at NFT feature parity? 🤣 This is disgraceful

What about making it an open auction protocol that anyone can implement. That way there wouldn't be a wall garden for the auctions and then everyone could just compete via a better interface for the exact same auctions.

This makes the proposal innovative. @KillerGasy may be u can think of rewriting the proposal this way.

Hey @KillerGasy your PR is 47, could you pls rename your proposal xgov-47? Thanks

Please also engage with the community in the Algorand forum
https://forum.algorand.org/t/xgov-47-nft-auction-dapp-rand-auctions/9998

Hello.
Please update your proposal to match the template provided here.
https://github.com/algorandfoundation/ARCs/blob/main/assets/arc-0034/TemplateForm.md
Thanks.


Invalid workspace rules reported

Hyprland Version
 System/Version info
Hyprland, built from branch  at commit 387127b12ab5df8f8f40e8da7d76f47636562cab  ().
Date: 2024-05-03
Tag: , commits: @COMMITS@

flags: (if any)

System Information:
System name: Linux
Node name: khanelinix
Release: 6.8.8
Version: #1-NixOS SMP PREEMPT_DYNAMIC Sat Apr 27 15:13:05 UTC 2024

GPU information:
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080] [10de:2206] (rev a1) (prog-if 00 [VGA controller])
0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:744c] (rev c8) (prog-if 00 [VGA controller])

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240502.63c3a29"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

plugins:

Bug or Regression?
Bug
Description
I've been using a setup that persists specific workspaces to different monitors. I noticed after an update today that my persistent workspaces weren't being respected in waybar. I added some logging into waybar, but noticed the response from the IPC was saying there was no monitor associated with the persistent workspaces. It looks like hyprctl workspacerules shows the monitor unset for most of my workspaces, all of a sudden.
Workspace Rules from Hyprctl

Workspace rule 3:
        monitor: <unset>
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 4:
        monitor: <unset>
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 5:
        monitor: <unset>
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 6:
        monitor: <unset>
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 8:
        monitor: <unset>
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule special:scratchpad:
        monitor: <unset>
        default: <unset>
        persistent: <unset>
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 1:
        monitor: DP-3
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 2:
        monitor: DP-1
        default: true
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 7:
        monitor: DP-1
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

Workspace rule 9:
        monitor: DP-1
        default: <unset>
        persistent: true
        gapsIn: <unset>
        gapsOut: <unset>
        borderSize: <unset>
        border: <unset>
        rounding: <unset>
        decorate: <unset>
        shadow: <unset>

How to reproduce
Workspace config
workspace=3, on-created-empty:$term tmux a
workspace=4, on-created-empty:steam
workspace=5, on-created-empty:discord
workspace=6, on-created-empty:thunderbird
workspace=8, on-created-empty:virt-manager
workspace=special:scratchpad, on-created-empty:$term

...

workspace = 1, monitor:DP-3, persistent:true
workspace = 2, monitor:DP-1, persistent:true, default:true
workspace = 3, monitor:DP-1, persistent:true
workspace = 4, monitor:DP-1, persistent:true
workspace = 5, monitor:DP-1, persistent:true
workspace = 6, monitor:DP-1, persistent:true
workspace = 7, monitor:DP-1, persistent:true
workspace = 8, monitor:DP-1, persistent:true
workspace = 9, monitor:DP-1, persistent:true

Crash reports, logs, images, videos
No response

if this is a regression, please git bisect it. https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue

Looking like 10caa03ce5bc2ce8238c494d59405213d32ddead so far

Config testing with:
...

workspace=3, on-created-empty:$term tmux a
workspace=4, on-created-empty:steam
workspace=5, on-created-empty:discord
workspace=6, on-created-empty:thunderbird
workspace=8, on-created-empty:virt-manager
workspace=special:scratchpad, on-created-empty:$term

...

workspace = 1, monitor:DP-3, persistent:true
workspace = 2, monitor:DP-1, persistent:true, default:true
workspace = 3, monitor:DP-1, persistent:true
workspace = 4, monitor:DP-1, persistent:true
workspace = 5, monitor:DP-1, persistent:true
workspace = 6, monitor:DP-1, persistent:true
workspace = 7, monitor:DP-1, persistent:true
workspace = 8, monitor:DP-1, persistent:true
workspace = 9, monitor:DP-1, persistent:true

Seeing as it's related to merging rules logic, i found all workspace rules in my config and updated OP

can you try https://github.com/hyprwm/Hyprland/pull/5864

can you try #5864

Looks like that works, thank you!


Add new version of Signal

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/111955&drop=dogfoodAlpha

@microsoft-github-policy-service agree


Data Gathering Phase

Continue to use latest/up-to-date traffic accidents from CMPD GIS data, search for relevant datasets for either Charlotte or Mecklenburg county in general for possible GIS datasets

GIS accident data for either Charlotte, Mecklenburg, or NC
Traffic data including road closures, etc. available from Charlotte city datasets
Average traffic volumes
Population
Static features: road curvature, speed limits, etc.

Gathered data from accidents via the following:

CMPD Accident information from their SOAP Service
Weather information during time of accident
Traffic signal proximity
Census information for accident location (population, age, income)

**TO-Gather:

Azimuth, speed limits, road closures
Average traffic volumes for road address feature**

Gathered traffic volumes, most data gathering is complete, will add new issues if new data is needed based on exploratory modeling.


koord-scheduler: compatible with Pods using kubelet static CPU manager policy

Signed-off-by: Joseph<EMAIL_ADDRESS>Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/lgtm

/lgtm


Link to TechNet Gallery

Hey Team, some of the links here refer to the resource here https://gallery.technet.microsoft.com/Azure-Responses-to-CSA-46034a11.  This has a banner saying it will be retired.  Should this page be updated (and hopefully the excellent content on the Gallery moved to a new home)?
Thanks!

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

ID: 9f8b874d-efda-92bc-e371-ea8cddb97025
Version Independent ID: 4e8cde1e-c323-9b1e-f197-f57ee427d1b2
Content: Shared Assessments Program - Microsoft Compliance
Content Source: microsoft-365/compliance/offering-shared-assessments.md
Product: microsoft-365-enterprise
GitHub Login: @robmazz
Microsoft Alias: robmazz

@ianalderman Thank you for your feedback. The Technet document has been migrated indeed, We have updated the same via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/2777
The new link is https://azure.microsoft.com/en-in/resources/azure-standard-response-to-rfi-on-security-privacy-and-compliance/
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @ianalderman Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Automated performance tests for formats.

Add performance tests for reading and writing test data (hits table) in all available formats.
Look at the tests/performance.
For every format, create a table with storage File with the corresponding format and make measurements for two queries: fill the table and read all data back.

Done.

Except Protobuf and CapnProto.


Move "no fields" text to new component

Let me know if you think this little cleanup is useful. I noticed this text was used in multiple places and thought it could be nice to make a component for it, let me know if you prefer I rename the component, move it elsewhere, or just feel free to close if you don't think this is useful.
Tests:

Make sure the text "You'll need to create and integrate a field before you can edit content from here" shows up as normal in the component editor, page field editor, and site field editor (when you're using the developer role)
Make sure the text "The site developer will need to create and integrate a field before you can edit content from here" shows in those places if you're logged in with a different role

@Beamanator can you make this a general-purpose component instead? Named EmptyState or something, containing a <slot> to accept the content

@mateomorris good ideas, I still think it's nice to have a component that displays the exact "no fields" message instead of having that in multiple places, so now we have 2 new components in this PR - let me know if this is what you were envisioning

@Beamanator agree it should have its own component to not have the content duplicated. Feels weird having a content-specific component in the Components folder, but we can refactor later when there's a single Fields component (since that code's being duplicated across Fields.svelte and ComponentEditor.svelte atm). @Dark-Developer93 can you pull this PR & ensure there aren't any issues w/ it?

@Dark-Developer93 & go ahead and merge if it looks good


Fix typo causing query params to fail

@ryanlovett can you also make a release after this?

@yuvipanda Done and done. Thanks!


docs: reorganize readme

Move scripts usage over manual zbctl

Add comment from Slack

Add comment from browser

Comment from browser #2


Consider (optimized) a tile-based approach when there are fewer targets

I think the list-based approach we designed is ideal to support the growth of EmbedBox. But I wonder if we should consider a tile-based approach either optionally, or automatically when there are ~<= 6 targets visible.
Think something like Disqus’s installation flow:

But of course with our own touch on it.
We could still have search and still support keyboard navigation, so mostly this would be CSS work.
cc @TeffenEllis @zackbloom

I like the design!
This type of layout is pretty easy to implement with our flex styles too 😃
I'd be interested in the grid layout as a default and the list layout appearing for small viewports.
Thoughts?

I’m pretty much where you’re at. Here’s my current thinking:

Default to list for widths <= 460px.
Default to grid view for widths > 460px and target count (including generic) <= 12, which will likely be the case for a while.
Default to list view for widths > 460px and target count > 12.
Option to force either layout type for widths > 460px.

Put simply: in a world in which we have 50 targets, I would default to list view always. But for the moment I think we are best to default to the grid.
One nuance is that in grid mode, I think arrow keys should move selection directionally and not based on left-to-right flow ordering. This will be a little challenging if we use CSS to determine the column size and number of columns. For the moment I’m leaning towards hard-coding 3-columns in CSS to make this simpler (rather than supporting 2- and 4-column layouts as well).