[Bug] cle.asarray() causes UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed

Describe the bug
pyclesperanto v 0.9.0 causes an error when creating an array on a M1 arm64 mac (yes I have the latest version of ocl_icd_wrapper_apple installed)
UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed

UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
File [/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:347](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:347), in BaseFormatter.__call__(self, obj)
    [345](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:345)     method = get_real_method(obj, self.print_method)
    [346](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:346)     if method is not None:
--> [347](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:347)         return method()
    [348](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:348)     return None
    [349](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/IPython/core/formatters.py:349) else:
File /opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/pyclesperanto/_operators.py:645, in repr_html(self)
641 from ._tier3 import histogram
643 num_bins = 32
644 h = np.asarray(
--> 645     histogram(self, nbins=num_bins, min=self.min(), max=self.max())
646 )
647 plt.figure(figsize=(1.8, 1.2))
648 plt.bar(range(0, len(h)), h)
File /opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/pyclesperanto/_decorators.py:85, in plugin_function..worker_function(*args, **kwargs)
82         bound.arguments[key] = input_image.device
84 # call the decorated function
---> 85 result = function(*bound.args, **bound.kwargs)
87 # # Cast the result as an Array if it is not already
88 # if not isinstance(result, _Array):
89 #     result = _Array(result)
91 return result
File /opt/homebrew/Caskroom/mambaforge/base/envs/vfdt/lib/python3.12/site-packages/pyclesperanto/_tier3.py:365, in histogram(input_image, output_image, nbins, min, max, device)
327 """Determines the histogram of a given image. The histogram image is of dimensions
328 number_of_bins/1/1; a 3D image with height=1 and depth=1. Histogram bins contain
329 the number of pixels with intensity in this corresponding bin. The histogram
(...)
360 [1] https://clij.github.io/clij2-docs/reference_histogram
361 """
363 from ._pyclesperanto import _histogram as op
--> 365 return op(
366     device=device,
367     src=input_image,
368     dst=output_image,
369     nbins=int(nbins),
370     min=float(min),
371     max=float(max)
372 )
RuntimeError: Build log: Compiler encountered an internal error
array([[0.7045392 , 0.9003173 , 0.6421177 , 0.70325613, 0.56046563,
0.82245046, 0.77090657, 0.9146139 , 0.44332752, 0.7763021 ],
[0.18042089, 0.14647338, 0.27628386, 0.11955797, 0.33631143,
0.17951164, 0.45565292, 0.145973  , 0.64693475, 0.8625375 ],
[0.77510697, 0.59444094, 0.6648855 , 0.38127425, 0.6571598 ,
0.17259921, 0.61875063, 0.57482177, 0.5772797 , 0.43237448],
[0.95290864, 0.32217172, 0.10758616, 0.15286604, 0.83374745,
0.49614936, 0.91167986, 0.902095  , 0.8778874 , 0.6363925 ],
[0.13763852, 0.9010684 , 0.0992512 , 0.18037319, 0.7087889 ,
0.9528425 , 0.74698955, 0.8858586 , 0.22023083, 0.16407326],
[0.36166546, 0.84560436, 0.2955299 , 0.20814592, 0.92706734,
0.5815069 , 0.6822689 , 0.23499136, 0.05366748, 0.24092434],
[0.75794524, 0.6788023 , 0.18534255, 0.67361724, 0.13454466,
0.9297917 , 0.09545448, 0.37379786, 0.9181964 , 0.8449439 ],
[0.8445607 , 0.46028623, 0.4112118 , 0.15711346, 0.41650417,
0.7131379 , 0.6400954 , 0.78940785, 0.37117127, 0.575382  ],
[0.0205652 , 0.36489412, 0.20175433, 0.49766147, 0.5663987 ,
0.2789073 , 0.48204958, 0.28536668, 0.3774936 , 0.8663502 ],
[0.61505187, 0.9707072 , 0.46118957, 0.61120796, 0.3228026 ,
0.3961726 , 0.0052746 , 0.87073624, 0.43935826, 0.71813357]],
dtype=float32, mtype=buffer)

pyclesperanto_prototype works as expected
To Reproduce
in a jupyter notebook execute the following:
import pyclesperanto_prototype as pcle
import pyclesperanto as cle

import numpy as np

cle.asarray(np.random.random((10, 10)))

pcle.asarray(np.random.random((10, 10)))

Expected behavior
the array should be created and displayed as cle._ image in the notebook
Configuration details:

OS: MacOS 12.7.4
Device: M1 Max
Device type: Integrated GPU

Additional context
Add any other context about the problem here.

Managed to reproduce.
This maybe related to the recent histogram fix.
Will try to figure this out quick.
Thx for spotting this Till!

So ... guess who does not like 64 bytes type ... even as integer ...
The issue is related to this lines:
https://github.com/clEsperanto/CLIc/blob/c55fb5e33abebcbbe4973ff2899330e849cfd061/clic/src/tier3.cpp#L215-L218
more precisely dType::UINT64 iwhich seems to not be supported by the OpenCL to Metal translator ...
Loving my life right now. Will push a patch today if all goes well.

Thanks for looking into it so quickly 👍

I just tested v 0.9.1 and can confirm that the patch works ❤

It also came with the execute() function to run homemade (Clij compatible) kernels


Stubs for new model

Depends on #61.
Once we understand what the new actor-based model is going to look like, I need to start writing some unimplemented stubs of the new model components. Once this is done, I can start writing unit tests targeting those stubs.

This is labeled as "documentation" because I figure I should also write the API ScalaDoc while writing stubs. That way, I have the documentation to look at while I'm implementing those methods, and I don't have to write it later after I've finished the implementation.


How to set back cover?

First, thanks for making this crate!
I can set the artwork(s) using the various set_artwork functions, but there doesn't appear to be any way to identify whether I'm setting a front cover, back cover, etc? Am I missing something here? Can it be done?

Currently there is no support for that and I don't think there is a spec for that. If you know of some other program that has support, let me know.

The one I use lets me select what it is when I add an image, but if I save and load back, it just tags it as "Other", so I guess not. Oh well. I'll just live without. Thanks.
Side question: Is there an easy way to create a Fourcc tag from a string containing (say) the aART ... How do I turn that into Fourcc(*b"aART")?

Something along the lines of . as_bytes().try_into() should work, to turn the string into a byte array. I don't think there is a non fallible way.

It compiles but crashes out at runtime with "could not convert slice to array". Might be useful to have a Fourcc::from(&str) as a future enhancement ...


Crash to desktop if project.godot references missing scripts

Godot version
3.4.beta4
System information
Windows 10; Ubuntu 20.04
Issue description
I was working on a new plugin, and renamed some things from within the editor. I'm not sure of the exact sequence of events, but somehow I wound up with a project.godot that's unusable. It causes Godot 3.4beta4 to crash to the desktop. I was able to replicate the issue with a trivial example project (see attached).
Backtrace (via GDB):
(gdb) where
#0  EditorData::script_class_is_parent (this=0x8799d88, p_class=..., p_inherits=...) at editor/editor_data.cpp:870
#1  0x0000000002d86b88 in EditorResourcePicker::_get_allowed_types (this=0x107b6070, p_with_convert=false, p_vector=0x7fffffffc390) at editor/editor_resource_picker.cpp:490
#2  0x0000000002d8b6f5 in EditorResourcePicker::set_base_type (this=0x107b6070, p_base_type=...) at editor/editor_resource_picker.cpp:736
#3  0x0000000002d4e565 in EditorPropertyResource::setup (this=0x107b4b60, p_object=0x105ffbc0, p_path=..., p_base_type=...) at editor/editor_properties.cpp:2417
#4  0x0000000002d52a0e in EditorInspectorDefaultPlugin::parse_property (this=0x8daff70, p_object=0x105ffbc0, p_type=Variant::OBJECT, p_path=..., p_hint=PROPERTY_HINT_RESOURCE_TYPE, p_hint_te
xt=..., p_usage=7) at editor/editor_properties.cpp:2957
#5  0x0000000002c7e393 in EditorInspector::update_tree (this=0xb19efc0) at editor/editor_inspector.cpp:1678
#6  0x0000000002c80346 in EditorInspector::edit (this=0xb19efc0, p_object=0x105ffbc0) at editor/editor_inspector.cpp:1815
#7  0x0000000002cb1cfd in EditorNode::_edit_current (this=0x8799620) at editor/editor_node.cpp:2021
#8  0x0000000002cb113b in EditorNode::push_item (this=0x8799620, p_object=0x105ffbc0, p_property=..., p_inspector_only=false) at editor/editor_node.cpp:1925
#9  0x0000000002cc1dbf in EditorNode::load_scene (this=0x8799620, p_scene=..., p_ignore_broken_deps=false, p_set_inherited=false, p_clear_errors=true, p_force_open_imported=false, p_silent_c
hange_tab=false) at editor/editor_node.cpp:3632
#10 0x0000000002ca739f in EditorNode::_sources_changed (this=0x8799620, p_exist=false) at editor/editor_node.cpp:847
#11 0x00000000019ecc7c in MethodBind1<bool>::call (this=0xe74d7a0, p_object=0x8799620, p_args=0x7fffffffd2b0, p_arg_count=1, r_error=...) at ./core/method_bind.gen.inc:775
#12 0x000000000473741c in Object::call (this=0x8799620, p_method=..., p_args=0x7fffffffd2b0, p_argcount=1, r_error=...) at core/object.cpp:918
#13 0x000000000473948a in Object::emit_signal (this=0x8a49a40, p_name=..., p_args=0x7fffffffd2b0, p_argcount=1) at core/object.cpp:1226
#14 0x0000000004739bd8 in Object::emit_signal (this=0x8a49a40, p_name=..., p_arg1=..., p_arg2=..., p_arg3=..., p_arg4=..., p_arg5=...) at core/object.cpp:1281
#15 0x0000000002c36638 in EditorFileSystem::_notification (this=0x8a49a40, p_what=17) at editor/editor_file_system.cpp:1128
#16 0x0000000002c43ed0 in EditorFileSystem::_notificationv (this=0x8a49a40, p_notification=17, p_reversed=false) at editor/editor_file_system.h:111
#17 0x000000000473755f in Object::notification (this=0x8a49a40, p_notification=17, p_reversed=false) at core/object.cpp:927
#18 0x000000000375dfdb in SceneTree::_notify_group_pause (this=0x853c050, p_group=..., p_notification=17) at scene/main/scene_tree.cpp:973
#19 0x000000000375ba32 in SceneTree::idle (this=0x853c050, p_time=0.141896248) at scene/main/scene_tree.cpp:528
#20 0x00000000017da41e in Main::iteration () at main/main.cpp:2162
#21 0x000000000179cc3e in OS_X11::run (this=0x7fffffffd7b0) at platform/x11/os_x11.cpp:3640
#22 0x0000000001789a9b in main (argc=4, argv=0x7fffffffe0a8) at platform/x11/godot_x11.cpp:55

Relevant code snippet (editor/editor_data.cpp):
 858│ void EditorData::get_plugin_window_layout(Ref<ConfigFile> p_layout) {
 859│         for (int i = 0; i < editor_plugins.size(); i++) {
 860│                 editor_plugins[i]->get_window_layout(p_layout);
 861│         }
 862│ }
 863│
 864│ bool EditorData::script_class_is_parent(const String &p_class, const String &p_inherits) {
 865│         if (!ScriptServer::is_global_class(p_class)) {
 866│                 return false;
 867│         }
 868│         String base = script_class_get_base(p_class);
 869│         Ref<Script> script = script_class_load_script(p_class);
 870├>        Ref<Script> base_script = script->get_base_script();
 871│
 872│         while (p_inherits != base) {
 873│                 if (ClassDB::class_exists(base)) {
 874│                         return ClassDB::is_parent_class(base, p_inherits);
 875│                 } else if (ScriptServer::is_global_class(base)) {
 876│                         base = script_class_get_base(base);
 877│                 } else if (base_script.is_valid()) {
 878│                         return ClassDB::is_parent_class(base_script->get_instance_base_type(), p_inherits);
 879│                 } else {
 880│                         return false;
 881│                 }
 882│         }
 883│         return true;

$ ./godot-3.4-beta4/bin/godot.x11.tools.64 -e --path crash-sample/
Godot Engine v3.4.beta.custom_build.6a058cbf3 - https://godotengine.org
OpenGL ES 3.0 Renderer: llvmpipe (LLVM 12.0.0, 256 bits)
OpenGL ES Batching: ON
/lib/x86_64-linux-gnu/libasound.so.2: undefined symbol: snd_dlpath

SCRIPT ERROR: Parse Error: Unique global class "ClassA" already exists at path: res://addons/crash-example/ClassA.gd
          at: GDScript::reload (res://addons/my-addon/ClassA.gd:2)
ERROR: Method failed. Returning: ERR_PARSE_ERROR
   at: reload (modules/gdscript/gdscript.cpp:566)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassC.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassC.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassB.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassB.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
SCRIPT ERROR: Parse Error: The class "ClassC" was found in global scope, but its script couldn't be loaded.
          at: GDScript::reload (res://main.gd:9)
ERROR: Method failed. Returning: ERR_PARSE_ERROR
   at: reload (modules/gdscript/gdscript.cpp:566)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassC.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassC.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassB.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassB.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Condition "err" is true. Returned: err
   at: load_source_code (modules/gdscript/gdscript.cpp:775)
ERROR: Cannot load source code from file 'res://addons/crash-example/ClassA.gd'.
   at: load (modules/gdscript/gdscript.cpp:2177)
ERROR: Failed loading resource: res://addons/crash-example/ClassA.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
handle_crash: Program crashed with signal 11
Dumping the backtrace.
-- END OF BACKTRACE --
Aborted

Steps to reproduce

Attempt to load the example project

Minimal reproduction project
crash-sample.zip

Reproducible also on latest master

Seems reproducible in current 3.x too (888f8cea9ff6e6b7ac250b0016801369f8820548). CC @pycbouh

Reproducible also on latest master

Do note that in master there is a different crash, unrelated to this one. I can patch this issue both in 3.x and master, but master also has an issue in GDScript parser that breaks here, which I am not versed well enough in to fix. Reported here: https://github.com/godotengine/godot/issues/55476


Set resource_type for some related_identifers to  software in Zenodo backend

According to the CFF Schema: https://github.com/citation-file-format/citation-file-format/blob/develop/schema-guide.md#repository-artifact the two keys:

repository-code
repository-artifact

seem to be intended for software, so this PR adds the resource_type to be software in the Zenodo related_identifiers to provide more metadata upstream.

Hi Alex, thanks for making the PR. Instead of merging this one, I'd like to wait for the next version of cffconvert to be released. In that version the default upload_type for Zenodo export is software if users don't include type: dataset in their CITATION.cff. I find that logic easier to maintain than having "computed properties".

Hi Alex, thanks for making the PR. Instead of merging this one, I'd like to wait for the next version of cffconvert to be released. In that version the default upload_type for Zenodo export is software if users don't include type: dataset in their CITATION.cff. I find that logic easier to maintain than having "computed properties".

I see, that makes sense.  So would that mean that the resource_type: software would only be added to the related_identifiers if the upload_type is set to software?

I see, that makes sense. So would that mean that the resource_type: software would only be added to the related_identifiers if the upload_type is set to software?

Also, so I know in the future,  is there an easier way of updating the unit tests rather than having to go through 40+ .zenodo.json and Python files to add the new key?

@jspaaks I renamed the branch of my existing work to: https://github.com/alexlancaster/cffconvert/tree/repository_resource_type_zenodo
Let me know if I can retool that branch to work along the lines you suggested above. I can always open it up as a new PR.
Also let me know about how you handle the unit test addition.


test-case for HHH-12114: queries containing multiple .class/TYPE() clauses on union-subclass aliases

test-case for HHH-12114: queries containing multiple .class/TYPE() clauses on union-subclass aliases

Applied upstream along with a fix, thanks.


Ignore Feature

Improved syntax

@kurtisnelson Sorry, I haven't had a chance to look at this.  GIven the changes in #8, would that help with the failures here?

It still fails with that stuff merged in.


Reduce memory allocations

WIP branch; PR for feedback.

@Tom94 List<T> is designed for performance, so it doesn't have virtual methods. JIT and/or CLR have some optimizations on it. For extensibility, Collection<T> is provided. The core methods of it are virtual.


Doesn't work on Windows

Some scripts doesn't work on windows, such as getting terminal width and creating a process

try now

Tried it, didn't work. However
try:
    # For Linux
    import subprocess
    _, columns = subprocess.check_output(['stty', 'size']).decode().split()
except:
    # For Windows
    import shutil
    columns, _ = shutil.get_terminal_size()

solved the terminal size problem for me atleast

Hey Secozzi. Thanks for the suggestion. I've pushed this to develop. You could have some other issues if you use the default values for image config. I couldn't check that yet. Can you check develop with  non-special characters for the image config to see if it works?


Where can I find the universal layer module?

I checked the file model_video_caption_mplug.py but I find there is no universal layer module in the code, but I see that images are first fed into visual encoders and then fed into text encoders. Does it mean universal layer is actually text encoder?

I am glad that I found it in the text_encoder and there is a variable named uni_layer.


Add the possibility to filter on line(s) in Västtrafik Public Transport sensor

Description:
Add a config entry "lines" to be able to filter departures on line(s) for the
vasttrafik sensor.
Documentation will be updated through "edit on github" when/if request merged.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: vasttrafik
    key: XXXXXXXXXXXXXXXXXXX
    secret: YYYYYYYYYYYYYYYYY
    departures:
      - name: Mot järntorget
        from: Musikvägen
        heading: Järntorget
        lines:
          - 1
          - GRÖN
        delay: 10

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

Hi @ThomasSvedberg,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Ok to merge when tests pass

@ThomasSvedberg Docs?

Did not know when to add it, did it just now.


fix(config): support pass false to plugins

Summary

To support pass false to plugins

link #4939
link #4926
Test Plan
This is my first time contributing to rspack. At present, I only know how to create tests in the 'packages \ rspack \ tests \ configCases' directory, but I am not very familiar with the running logic of test cases. Can you give me some help?

Require Documentation?

[ x ] No
[ ] Yes, the corresponding rspack-website PR is __

@puppet-666 please sign the cla

@puppet-666 please sign the cla

done

https://web-infra-dev.github.io/rspack-dev-guide/testing/intro.html @puppet-666  you can read this about how rspack test

web-infra-dev.github.io/rspack-dev-guide/testing/intro.html @puppet-666 you can read this about how rspack test

Thanks for your answer. Are test cases required for this merge? If so I will add test cases

@puppet-666  I think we should align this with webpack and allow all falsy value here, you can take https://github.com/webpack/webpack/pull/17339 for reference(no need to support falsy value for loader in this PR)

thanks!


this should be added to https://github.com/sindresorhus/refined-github

this should be added to https://github.com/sindresorhus/refined-github

More than happy for that project to steal this code :-)


fix: make python outputs more pythonic

Currently python outputs were being both emitted as a class variable at the bottom of the class and as a global variable at the top of the class. I chose to emit them as globals to make it obvious what their purpose was and to pretend python has some consistency with other languages which require you declare your class variables before assigning their values in the constructor. This was not a pythonic way of doing this so I'm removing it and instead I'm just annotating the pydoc descriptions to the class variables themselves.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Reminder: a fix should describe the problem, not the fix. Also, we should include the language in the title like fix(python): blah blah blah


Fix old sbcc and make old/new sbcc co-exist

back port from latest branch: switch len 100 to old SBCC

Is there any impact on other tests?  Please run the performance suite on MI50 and MI100.

It's 5am in Taiwan.  I can run on MI100...

MI50 looks good.
figs.pdf


Markdown-oriented word counts?

My documents often have a fair bit of markdown, which is currently increasing my word-count by a good amount, even though it's not displayed, such as dash-bullets.  Would it be possible to allow only considering words to be non-spaced-character strings with at least one alpha-numeric character?
Thanks for your work on this!

@lukeleppan For a different use case, I once wrote a function to disregard markdown syntax from a word count, which you might snatch for this issue?
function removeMarkdown (text) {
	text = text
		.replace(/`\$?=[^`]+`/g, "") // inline dataview
		.replace(/^---\n.*?\n---\n/s, "") // YAML Header
		.replace(/!?\[(.+)\]\(.+\)/g, "$1") // URLs & Image Captions
		.replace(/\*|_|\[\[|\]\]|\||==|~~|---|#|> |`/g, ""); // Markdown Syntax

	if (excludeComments) {
		text = text
			.replace(/<!--.*?-->/sg, "") // s-flag for comments spanning multiple lines
			.replace(/%%.*?%%/sg, "");
	}
	else text = text.replace(/%%|<!--|-->/g, ""); // remove only comment syntax

	if (excludeTasks) text = text.replace(/^\s*- \[[x ]] .*$/gm, "");
	else text = text.replace(/^\s*- \[[x ]] /gm, "");

	return text;
}

Thank you @chrisgrieser. Very much appreciated. Like I said in issue #55 when I release the rewrite next week you may want to create a PR, otherwise, I will implement it myself (still crediting @jon-heard and yourself).
My one concern with option like this (e.g. don't count comments, etc.) Has to do with statistic collection. The way the stats are collected and stored will change many times but currently the total count and the today counts for each day will be stored. What I haven't figured out is how stats will be collected for people who have these settings enabled. My current thinking is that status bar counts and stored counts will have separate versions of these options. However, that still doesn't fix the issue that would occur if the storage setting are changed and then when, say the total words over time graph is viewed, it will have a sudden drop. So maybe storage counts are kept to defaults. Not sure.
Sorry for the ramble.
As a side note, in the future there should probably be options to enable what stats are stored, so if you wanted to view an increase in citations over time you can enable that at a certain storage cost I guess.

Thanks @jon-heard for the feedback. That is what I'm talking about. I don't believe that collecting all the different formulas as stats each day would be feasible. So the way I see it, there are 2 options.

The "formula" chosen in settings is what's stored and a warning is added explaining how issues can arise.

Or, there is a second set of settings that allow them to change the "formula" that is stored. However this would still require a warning and may be redundant because most people would chose the say "formula".

Thank you again this helps.

Just wanted to chime in with a modified version of jon-heard's approach that should work for all languages:
const pattern = /\P{Z}*[\p{L}\p{N}]\P{Z}*/gu;
export function getWordCount(text: string): number {
  return (text.match(pattern) || []).length;
}

Specifically, this uses unicode property matching to simplify things (see https://javascript.info/regexp-unicode)
/P{Z}* -> Matches 0 or more of anything that is not a separator (eg, space, tab, newline)
[\p{L}\p{N}] -> Matches anything that is a letter or a number


Fixes for my last commit

Hello Fabien,
the pull request fixes some bugs I introduced with my last commit. Karl was nearly satisfied, and on the german forum www.mikrocontroller.net some other user also reported success with my trunk with no negative impact seen so long.
My trunk also contains a fix for problem #38/39.
Please excuse if I already sent out the pull request before...

Hi,
Thanks for the fixes. I apologize for not having more time to review, I
hope it will change soon.
Best regards,
Fabien.
2011/12/23 UweBonnes
<EMAIL_ADDRESS>
Hello Fabien,
the pull request fixes some bugs I introduced with my last commit. Karl was nearly satisfied, and on the german forum www.mikrocontroller.net some other user also reported success with my trunk with no negative impact seen so long.
My trunk also contains a fix for problem #38/39.
Please excuse if I already sent out the pull request before...
You can merge this Pull Request by running:
git pull https://github.com/UweBonnes/stlink master
Or you can view, comment on it, or merge it online at:
https://github.com/texane/stlink/pull/40
-- Commit Summary --

Page erase for STM32L needs a real write to lowest address with 0. stink_write_mem(.., ..,0) is undedined
Fix a wrong placed brace and and a not replaced stlink_write_mem32() that keep
Replace remaining _mem32 single word accesses with _debug32
Ignore NULL bytes at flash end when reading
Also ignore ZEROs at end of file when writing
While L1 has empty flash cell erased to zero, at least F1/F4 are erased to 0xff.
Clip flash read request to maximum flash size
If no read size is given, read the whole flash
Add a TODO to check for Supply Voltage before setting F4 paralleisme to 32 bits
For gdbserver, use the same initialization sequence like for flashing
Move reset/load_param in the open functions, as requested by Karl

-- File Changes --
M flash/main.c (3)
M src/stlink-common.c (47)
M src/stlink-sg.c (2)
M src/stlink-usb.c (2)
-- Patch Links --
https://github.com/texane/stlink/pull/40.patch
 https://github.com/texane/stlink/pull/40.diff

Reply to this email directly or view it on GitHub:
https://github.com/texane/stlink/pull/40


/Users/apple/workspace/go/src/github.com/joe-getcouragenow/sys/sys-account.

make this-ex-server-run
Running Example Server
cd ./bin-all/server && rm -rf getcouragenow.db && ./main
2020/10/21 09:32:39 WARNING: proto: file "pb.proto" is already registered
A future release will panic on registration conflicts. See:
https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict
FATA[0000] DB is not initialized, please call InitDatabase first
make: *** [this-ex-server-run] Error 1
➜  sys-account git:(master) ✗

#51


(maint) switch renovate to the testing preset

This should allow renovate to auto-merge PRs about GitHub Actions

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


O'Reilly solid slide mods

Someone needs to add these modifications.

The question of the slump source not being available came up again.  This should be addressed.


Error using the Siebel REST API

Any idea why i'm getting the following issue:
Error using the Siebel REST API: Error Creating XSD for Business Object <?>.(SBL-EAI-50238)

Can you provide more information about the issue? Do you add the workspaces in the Workspaces setting manually, or is the Get Workspaces From REST setting enabled?
László

Workspace config was added manually.
Mike

When does this error occur?

When I'm typing name of the object in search text field or when pressing reload.
M.

What are your Settings for the extension?
Az Android Outlookhttps://aka.ms/ghei36 letöltése

From: bossuuu @.>
Sent: Thursday, October 6, 2022 9:12:14 AM
To: endoit/siebelScriptsEditor @.>
Cc: Dr. Bakos László Péter @.>; Comment @.>
Subject: Re: [endoit/siebelScriptsEditor] Error using the Siebel REST API (Issue #8)
When I'm typing name of the object in search text field or when pressing reload.
M.
—
Reply to this email directly, view it on GitHubhttps://github.com/endoit/siebelScriptsEditor/issues/8#issuecomment-1269460639, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU7FBCC6OC3GF3HBWCR3D23WBZ3U5ANCNFSM6AAAAAAQY2BVAQ.
You are receiving this because you commented.Message ID: @.***>

The workspace given in the Default Connection does not exist in the Workspaces setting. Can you delete the Default Connection setting and see if it fixes the problem?

Feladó: bossuuu @.>
Elküldve: 2022. október 6., csütörtök 9:53
Címzett: endoit/siebelScriptsEditor @.>
Másolat: Dr. Bakos László Péter @.>; Comment @.>
Tárgy: Re: [endoit/siebelScriptsEditor] Error using the Siebel REST API (Issue #8)
[image]https://user-images.githubusercontent.com/114675416/194249516-708c961a-a91e-4352-b587-8ed079fbd362.png
—
Reply to this email directly, view it on GitHubhttps://github.com/endoit/siebelScriptsEditor/issues/8#issuecomment-1269521442, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU7FBCAYHBEUL5RJYLKKHQ3WB2AQRANCNFSM6AAAAAAQY2BVAQ.
You are receiving this because you commented.Message ID: @.***>

Is there any development regarding this issue?
László


Use an environment variable for GDS-SSO config

Trello card: https://trello.com/c/zpvWoNfW
Related to:

https://github.digital.cabinet-office.gov.uk/gds/deployment/pull/1372
https://github.digital.cabinet-office.gov.uk/gds/alphagov-deployment/pull/1335
https://github.com/alphagov/govuk-puppet/pull/6123

Motivation
HMRC Manuals API uses a different way of configuring GDS SSO secrets to other GDS Rails apps, it should be updated to the follow the same conventions.

@bevanloon True, but I decided to separate out the removal of values so that it was clear what was going and why.


Update next image-config path

What kind of change does this PR introduce?
Fixes #298
What is the current behaviour?
#298, currently resulting in
Test suite failed to run

    Cannot find module 'next/dist/server/image-config' from 'node_modules/next-page-tester/dist/utils.js'

What is the new behaviour?
Tests run
Does this PR introduce a breaking change?
No
Other information:
Please check if the PR fulfills these requirements:

[n/a] Tests for the changes have been added
[n/a] Docs have been added / updated

Hi @paul-pro, thanks for the PR. There are few points to be addressed yet:

A formatting issue with Prettier (see CI)
next peer and dev dependencies updated to the first relevant Next version
Update compatibility table in docs

Looks like this change was released in the next v12.1.1. I'll do changes recommended by @toomuchdesign later today

@toomuchdesign, should compatibility docs be updated like
| v0.31.0 +          | v12.1.0 +          |         |
| v0.32.0 +          | v12.1.1 +          |         |

or
| v0.31.0            | v12.1.0            |         |
| v0.32.0 +          | v12.1.1 +          |         |

@toomuchdesign @jasonwilliams I've updated lock file again, hopefully last time

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.889%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
680

Relevant Lines:
696

💛  - Coveralls

@toomuchdesign @jasonwilliams are we good to merge and release a new version?


Zone.js with formbuilder.online throws Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten.

Hi Guys,
I'm using form builder() jquery plugin to generate form in Angular 4.
When I include library  "../node_modules/formBuilder/dist/form-render.min.js" in angular-cli.json, it throws below error.

I have created a sample to reproduce issue.
https://github.com/anikets43/ng2-formbuilder.git
Thanks,
Aniket

@anikets43, your reproduce repo's link seems to be broken, please check it.

Hi @anikets43 @JiaLiPassion  have you manage to solve this issue, I have exact problem

there is a walk around is, (I use the https://github.com/anikets43/ng2-formbuilder.git from @anikets43)
remove all scripts definitions in .angluar_cli.json
 "scripts": [
      ],

add those scripts to index.html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>FormSample</title>
  <base href="/">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <script src="../node_modules/jquery/dist/jquery.js"></script>
  <script src="../node_modules/jquery-ui-sortable/jquery-ui.min.js"></script>
  <script src= "../node_moduiles/formBuilder/dist/form-builder.min.js"></script>
  <script src="../node_modules/formBuilder/dist/form-render.min.js"></script>
</head>
<body>
  <app-root>Loading...</app-root>
</body>
</html>

@JiaLiPassion
Thank you , I already manage to transfer the code to typescript, Please feel free to use
https://github.com/KhaledSMQ/Ng2FormBuilder

@KhaledSMQ , sure, thank you!

the issue has been fixed with #899.

@JiaLiPassion so in the interim before the next release, the way to fix this bug would be by hunting down which library is loading the promise polyfill.

@alextraul, yes, you can find the 3rd party promise library, and try to load it before zone.js.

Close for now.


Don't unregister fields on unmount when a single form is concurrently mounted

This relates to #1990  and #2016. This patch suppresses unregister() for a field if the containing form is still mounted elsewhere, and the containing form itself is being unmounted, rather than just the field itself.
This is useful in conjunction with destroyOnUnmount: false when you have small, self-contained sub-forms embedded in larger forms, or different parts of the UI.

Current coverage is 100% (diff: 100%)

Merging #2040 into master will not change coverage

@@           master   #2040   diff @@
=====================================
  Files          57      57
  Lines        1234    1238     +4
  Methods         0       0
  Messages        0       0
  Branches        0       0
=====================================
+ Hits         1234    1238     +4
  Misses          0       0
  Partials        0       0

Powered by Codecov. Last update 53f364e...28203a4

Published in v6.2.0.

Great! Thank you :)


example: with-apollo-unstated

This simple example shows you how to:

How to Apollo in Next.
How to SSR Apollo in Next.
How to use Unstated to share state across pages.

I think the scope of this example is too broad 🤔 Like it's a combination of the Apollo and Unstated example.

I guess it would be better to only update the unstated example then 🤔

ok then, I will submit another pull request for existing Unstated example

Thanks!


Flutter apps crash on Android emulator without a GPU

Right now if you try to run on an emulator without a GPU it crashes with this log:
Running emulator.apk on Android SDK built for x86
I/flutter ( 2830): [INFO:GrGLUtil.cpp(211)] nullptr GLSL version string.
I/flutter ( 2830): [INFO:GrGLUtil.cpp(211)] nullptr GLSL version string.
I/flutter ( 2830): [INFO:../../flutter/shell/gpu/gpu_surface_gl.cc(86)] Failed to setup GL context. Aborting.
I/flutter ( 2830): [INFO:../../flutter/shell/gpu/gpu_surface_gl.cc(87)]
I/flutter ( 2830):          Vendor: Google (NVIDIA Corporation)
I/flutter ( 2830):        Renderer: Android Emulator OpenGL ES Translator (Quadro 600/PCIe/SSE2)
I/flutter ( 2830):         Version: 2.0 (4.5.0 ES
I/flutter ( 2830):  Shader Version: Unknown
I/flutter ( 2830):      Extensions: 18 Available
I/flutter ( 2830):                  ANDROID_EMU_CHECKSUM_HELPER_v1
I/flutter ( 2830):                  GL_EXT_debug_marker
I/flutter ( 2830):                  GL_OES_EGL_image
I/flutter ( 2830):                  GL_OES_EGL_image_external
I/flutter ( 2830):                  GL_OES_compressed_ETC1_RGB8_texture
I/flutter ( 2830):                  GL_OES_compressed_paletted_texture
I/flutter ( 2830):                  GL_OES_depth24
I/flutter ( 2830):                  GL_OES_depth32
I/flutter ( 2830):                  GL_OES_depth_texture
I/flutter ( 2830):                  GL_OES_element_index_uint
I/flutter ( 2830):                  GL_OES_packed_depth_stencil
I/flutter ( 2830):                  GL_OES_rgb8_rgba8
I/flutter ( 2830):                  GL_OES_texture_float
I/flutter ( 2830):                  GL_OES_texture_float_linear
I/flutter ( 2830):                  GL_OES_texture_half_float
I/flutter ( 2830):                  GL_OES_texture_half_float_linear
I/flutter ( 2830):                  GL_OES_texture_npot
I/flutter ( 2830):                  GL_OES_vertex_half_float
I/flutter ( 2830):

If we're going to have a software path for the iOS simulator (https://github.com/flutter/flutter/issues/6135) we might as well use it on Android as well to avoid this.
We could continue requiring a GPU. This is just a nice-to-have.  If we fix #6135, might as well fix this too.

@chinmaygarde has wired up software path support for iOS, I suspect this should now be possible to add to Android too.

Have a few things on my plate I need to get to before I can work on this. If anyone else has some spare cycles, I'd be happy to point them in the right direction. Most of the work has already been done for iOS. So it should be fairly straightforward.

My understanding is that Android emulators now know how to fall back to software backends?  Is that true @chinmaygarde @jason-simmons?

Yes - this is working on Android now


[2.9][ForwardPort] KDM Update for K8s April 2024 patch release

KDM Updates

New Kubernetes Version
Min Rancher Version
Min RKE Version

1.28.9-rancher1-1
2.8.3-patch0
1.5.0-rc0

1.27.13-rancher1-1
2.8.0-patch0
1.5.0-rc0

Rancher System Images & Add-ons
Note: Please update system images and add-ons in the template as needed.
TBD
Developer Changelog

Add templates for new K8s versions. If a template that hasn't been released yet already exists, update it in place.
Update the default K8s version, and add or update the version information (MinRancherVersion and MinRKEVersion) in k8s_version_info.go for new K8s versions if needed (Use table from above).
Confirm versions for system images, add-on templates are correct using versioning reference table from below (expand details to view the table). Update the table if new versions are introduced.
Confirm add-on template version constraints in template.go are correct using versioning reference table from below (expand details to view the table). Update the table if needed.

Versioning Reference

Expand for system images & add-on templates versioning table

Note: Truncated repository names with a * indicates there are multiple images with that prefix. All repository names that match a truncated prefix should be checked for the same version stated in the table.
For example: rancher/weave-* matches weaveworks/weave-kube and weaveworks/weave-npc, and they should both have the same version.
v1.28.9-rancher1-1

Repository
Tag

rancher/mirrored-coreos-etcd
v3.5.10

rancher/hyperkube
v1.28.9-rancher1

rancher/rke-tools
v0.1.96

rancher/mirrored-k8s-dns-*
1.22.28

rancher/mirrored-cluster-proportional-autoscaler
1.8.6

rancher/flannel-cni
v0.3.0-rancher8

rancher/mirrored-flannel-flannel
v0.21.4

rancher/mirrored-calico-*
v3.26.3

weaveworks/weave-*
2.8.1

noiro/* (All ACI images)
<IP_ADDRESS>.81c2369

rancher/mirrored-pause
3.7

rancher/nginx-ingress-controller
nginx-1.9.4-rancher1

rancher/mirrored-nginx-ingress-controller-defaultbackend
1.5-rancher1

rancher/mirrored-jettech-kube-webhook-certgen
v20231011-8b53cabe0

rancher/mirrored-metrics-server
v0.6.3

rancher/mirrored-coredns-coredns
1.9.4

rancher/mirrored-cluster-proportional-autoscaler
1.8.6

rancher/mirrored-k8s-dns-node-cache
1.22.28

Add-on Name
Add-on Template Version Constraint

Calico
calicov3261Rancher2

Canal
canalv3261Rancher2

Flannel
flannelv0214

CoreDNS
coreDnsv183Rancher2

KubeDNS
kubeDnsv116

MetricsServer
metricsServerv061

Weave
weavev122

Aci
aciv6032

NginxIngress
nginxIngressv194Rancher1

Nodelocal
nodelocalv121

v1.27.13-rancher1-1

Repository
Tag

rancher/mirrored-coreos-etcd
v3.5.10

rancher/hyperkube
v1.27.13-rancher1

rancher/rke-tools
v0.1.96

rancher/mirrored-k8s-dns-*
1.22.28

rancher/mirrored-cluster-proportional-autoscaler
1.8.6

rancher/flannel-cni
v0.3.0-rancher8

rancher/mirrored-flannel-flannel
v0.21.4

rancher/mirrored-calico-*
v3.26.3

weaveworks/weave-*
2.8.1

noiro/* (All ACI images)
<IP_ADDRESS>.81c2369

rancher/mirrored-pause
3.7

rancher/nginx-ingress-controller
nginx-1.9.4-rancher1

rancher/mirrored-nginx-ingress-controller-defaultbackend
1.5-rancher1

rancher/mirrored-jettech-kube-webhook-certgen
v20231011-8b53cabe0

rancher/mirrored-metrics-server
v0.6.3

rancher/mirrored-coredns-coredns
1.9.4

rancher/mirrored-cluster-proportional-autoscaler
1.8.6

rancher/mirrored-k8s-dns-node-cache
1.22.28

Add-on Name
Add-on Template Version Constraint

Calico
calicov3261Rancher2

Canal
canalv3261Rancher2

Flannel
flannelv0214

CoreDNS
coreDnsv183Rancher2

KubeDNS
kubeDnsv116

MetricsServer
metricsServerv061

Weave
weavev122

Aci
aciv6032

NginxIngress
nginxIngressv194Rancher1

Nodelocal
nodelocalv121

Fresh install checks - PASS

On rancher version v2.9-head, KDM pointing to dev-v2.9 branch, cluster creation succeeds for 1.28.9-rancher1-1, v1.27.13-rancher1-1 on all network providers - canal/flannel/weave/calico
Network checks look good
Canal network checks look good

Upgrade checks - PASS

On rancher v2.8.4-rc3, KDM pointing to release-v2.8, cluster creation succeeds for k8s 1.28.8-rancher1-1, v1.27.12-rancher1-1 version with all network providers.
Pre-upgrade checks look good.
Upgraded rancher to v2.9-head.
Made sure the KDM points to dev-v2.9
Upgraded cluster to k8s version -  1.28.9-rancher1-1 and v1.27.13-rancher1-1
Post upgrade checks look good.

RKE default k8s version - PASS
dev-v2.9 should have the default as v1.28.9-rancher1-1
"RKEDefaultK8sVersions": {
  "0.3": "v1.16.3-rancher1-1",
  "default": "v1.28.9-rancher1-1"
 }

RKE standalone checks passed using rke 1.6.0-rc3 version.
All checks passed, hence closing the issue.


Improves #1563 - Move help resources into doc directory

to be able to include them in the rest-api.md.
Since we have to consolidate the information from rest-api.md and the
help pages (both potentially contain updated information not present in the other one),
I only added one examplary include.
The rest of the work will be performed in separate PRs.
I also update jekyll because the older jekyll version didn't support include_relative.

FTR there are a few more things going on in this PR:
– update Jekyll (and other tools)
– update to syntax highlight tokens (from {% highlight http %} to markdown style http)
– extract new section into partial view (DeploymentsResource_running.md)
– move partial views to new directory for easier inclusion
Besides the above comments, LGTM

Thanks @pierlo-upitup,
now I hopefully changed all highlight references. It is not strictly necessary outside of the rest-api.md directory but it is nicer to be consistent.
I tested your PR in combination with the jekyll update, and at least the first links didn't work for me. I can update it or you do it...

Updated my PR to reflect Jekyll's ID parsing format.


RemovedInDjango19Warning

When running in Django 1.8:
/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:29: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.UserSocialAuth doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class UserSocialAuth(models.Model, DjangoUserMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:67: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Nonce doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Nonce(models.Model, DjangoNonceMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:78: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Association doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Association(models.Model, DjangoAssociationMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:91: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Code doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Code(models.Model, DjangoCodeMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:29: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.UserSocialAuth doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class UserSocialAuth(models.Model, DjangoUserMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:67: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Nonce doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Nonce(models.Model, DjangoNonceMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:78: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Association doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Association(models.Model, DjangoAssociationMixin):

/Users/matt/.virtualenvs/authy/lib/python2.7/site-packages/social/apps/django_app/default/models.py:91: RemovedInDjango19Warning: Model class social.apps.django_app.default.models.Code doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Code(models.Model, DjangoCodeMixin):

This is actually useful right now, if one tries to refer to some model using django.apps.apps.get_model(). If the app_label attribute of the AppConfig instance is not defined, it is created using the last component of the name attribute, which in this case, is turns out to be the string 'default'. So if we need to refer to one of this app's model, we need to call get_model('default', 'UserSocialAuth'), which gives no clear indication of which of the installed apps is this "default" referring to.

same here, how to fix it?

Fixed by #550.


Add new Inventory Record in FOLIO

Use Okapi Inventory API to create FOLIO Records (can be Instance
This will likely need an Airflow Connection for each FOLIO's environment Okapi endpoint that has mod-inventory enabled for use.
Currently have an open ticket in EBSCO https://github.com/FOLIO-FSE/MARC21-To-FOLIO/issues/77 to see if they will publish their module to pypi so we can leverage some of their existing Python classes without needing a local copy of their repo.

Is the intention here to wait until the EBSCO ticket is resolved before taking action?

I'm not sure we can wait until they act. We may be able to install this with poetry add via a git dependency https://python-poetry.org/docs/cli/#add but would need to be investigated.


Routed NIC: Host addresses for multiple NIC support

This introduces the ipv4.host_address and ipv6.host_address NIC config keys that can be used to control the host-side veth interface's IP addresses. This can be useful when using multiple routed NICs at the same time and needing a predictable next-hop address to use.
This also alters the behaviour of ipv4.gateway and ipv6.gateway NIC config keys. When they are set to "auto" the container will have its default gateway set to the value of ipv4.host_address or ipv6.host_address respectively.
The default values are:
ipv4.host_address: <IP_ADDRESS>
ipv6.host_address: fe80::1
This is backward compatible with the previous default behaviour.

Needs:

doc/instances.md update
scripts/bash update

@stgraber thats done now.


Improve API details section of the Release Plan Summary

Requirement:  Modify the API details section of the "Release Plan Summary" to improve data quality.

[x] Change name of "release details" to "SDK details".
[x] API details - Change the "Target lifecycle" field to "API Spec type" and field value should be beta or stable.
[ ] API details - Add new field named "API target release date" with value as month (similar to SDK).
[ ] API details - Add new field named "API version" with the value of the API version as indicated by the user.  Tracked in this GitHub issue - https://github.com/Azure/azure-sdk-tools/issues/8631.

API details - Add new field named "API target release date" with value as month (similar to SDK).

We currenlty don't get this information for data plane.
For management plane, we can add it once the user request the release but that work will need to wait until #8232 is complet

For the information we have, here are the changes I made:

@ladonnaq instead of using API spec type I used API lifecycle since that is the one we use accross the apps. API spec type refers more to typespec of swagger

For the remaining of the work I have moved:

API details - Add new field named "API target release date" with value as month (similar to SDK). issue https://github.com/Azure/azure-sdk-tools/issues/8759
API details - Add new field named "API version" with the value of the API version as indicated by the user. Added as part of the work on issue  #8631.


Update README.md. Fix link and alter headings

This PR fixes a broken link in the PRD and updates the Headings to coincide with our Docs Style Guide
Link the issue/feature request which this PR is meant to address
Links https://fivetran.height.app/T-738334
Links https://fivetran.height.app/T-742488

Closing this PR because the headings will be addressed across all 98 readmes in an upcoming project by Analytics.


Preventing the 04:00 scheduled reboot generating errors in log?

The AP has built in code to reboot every night at 04:00. Is it possible to stop the errors stemming from that from appearing in the log?
I could always filter it out with logger: in configuration.yaml but that would block a potential "real" error that's not 04:00 at night.
Logger: custom_components.open_epaper_link.hub
Kilde: custom_components/open_epaper_link/hub.py:187
integrasjon: OpenEPaperLink ([dokumentasjon](https://github.com/jonasniesner/open_epaper_link_homeassistant), [problemer](https://github.com/jonasniesner/open_epaper_link_homeassistant/issues))
Førs oppstått: 04:00:07 (1 hendelser)
Sist logget: 04:00:07

Websocket connection lost to url=ws://<IP_ADDRESS>/ws (close_status_code=None, close_msg=None), trying to reconnect every 30 seconds

Logger: custom_components.open_epaper_link.hub
Kilde: custom_components/open_epaper_link/hub.py:207
integrasjon: OpenEPaperLink ([dokumentasjon](https://github.com/jonasniesner/open_epaper_link_homeassistant), [problemer](https://github.com/jonasniesner/open_epaper_link_homeassistant/issues))
Førs oppstått: 04:00:07 (1 hendelser)
Sist logget: 04:00:07

open_epaper_link WebSocketApp crashed, reconnecting in 30 seconds

I have been wondering why it shows those messages, now it is clear.
I think, because of that it also skips job/automatons if those are scheduled at this time. Now it is clear why I have been observing problems around that particular time.
Looks like this reboot functionality might have something to do with that.

Looks like this reboot functionality might have something to do with that. Maybe it should be optional or configurable, so it can be set at a time, when there is no planned job.

Maybe you can open an issue about this in the Main Repo?

The reboot is(maybe was) needed for stability. One way to prevent error message is to listen to the reboot message on the website. The AP announces that it will reboot a few seconds before actually rebooting.

The AP has built in code to reboot every night at 04:00. Is it possible to stop the errors stemming from that from appearing in the log?
I could always filter it out with logger: in configuration.yaml but that would block a potential "real" error that's not 04:00 at night.
Logger: custom_components.open_epaper_link.hub
Kilde: custom_components/open_epaper_link/hub.py:187
integrasjon: OpenEPaperLink ([dokumentasjon](https://github.com/jonasniesner/open_epaper_link_homeassistant), [problemer](https://github.com/jonasniesner/open_epaper_link_homeassistant/issues))
Førs oppstått: 04:00:07 (1 hendelser)
Sist logget: 04:00:07

Websocket connection lost to url=ws://<IP_ADDRESS>/ws (close_status_code=None, close_msg=None), trying to reconnect every 30 seconds

Logger: custom_components.open_epaper_link.hub
Kilde: custom_components/open_epaper_link/hub.py:207
integrasjon: OpenEPaperLink ([dokumentasjon](https://github.com/jonasniesner/open_epaper_link_homeassistant), [problemer](https://github.com/jonasniesner/open_epaper_link_homeassistant/issues))
Førs oppstått: 04:00:07 (1 hendelser)
Sist logget: 04:00:07

open_epaper_link WebSocketApp crashed, reconnecting in 30 seconds

Can you point the location for the code which reboots the AP at 4:00?

Ok, I have created an issue here: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/386

The reboot is now optional https://github.com/OpenEPaperLink/OpenEPaperLink/issues/386 so I'm closing this issue

Yes it is but if one set it up as enabled then we still have those:
2024-11-06 03:56:07.565 WARNING (Thread-2 (connection_thread)) [custom_components.open_epaper_link.hub] Websocket connection lost to url=ws://<IP_ADDRESS>/ws (close_status_code=None, close_msg=None), trying to reconnect every 30 seconds
2024-11-06 03:56:07.567 ERROR (Thread-2 (connection_thread)) [custom_components.open_epaper_link.hub] open_epaper_link WebSocketApp crashed, reconnecting in 30 seconds

So it is not fixed?

Which version are you on?

Version <IP_ADDRESS>

Ah.
The web socket connection logic was improved from <IP_ADDRESS>_dev onwards, currently the latest version is <IP_ADDRESS>_dev which must be manually selected in HACS because it is still a pre release

So do you consider newest <IP_ADDRESS>_dev version stable enough in order to give it a try? It looks like you advice to remove the old one and install from scratch.

Yes, i haven't heard of any breaking changes happening yet. The Reinstall recommendation is just so any errors/bugs from the previous version do not potentially carry over because so much has changed internally

Ok, I have updated and changed automations to use a device_id. Will see how it goes. Thanks

So, on the newest  <IP_ADDRESS>_dev version, the error message is different:
This error originated from a custom integration.
Logger: custom_components.open_epaper_link.hub
Source: custom_components/open_epaper_link/hub.py:213
integration: OpenEPaperLink (documentation, issues)
First occurred: 03:56:08 (1 occurrences)
Last logged: 03:56:08

WebSocket connection error: 404, message='Invalid response status', url='ws://<IP_ADDRESS>/ws'


[datastore] Remove partition optional parameter from Transaction.query

Transactional queries need to be performed on an entity group - which requires the ancestorKey. The optionalpartitionparameter to theTransaction.queryis redundant since it can be deduced fromancestorKey`.

Closing as obsolete. Please open a new issue if this is still relevant.


[mungegithub] Edit the approval notification

rather than create a new approval notification and potentially spam
PRs, use edit api functionality to edit original comment

This change is

@rmmh when you edit a comment on github, it doesn't send a new email right?

That is correct. No new comment.
Which might ruin the whole point, since you were using that comment stream to tell people they needed to approve.
Now we're back to the original problem with approvals. A good way to see who needs/can approve a given a PR (we'll at least have a subset) and a good way to know what PRs I need to approve.
I think edit + some non-existant dashboard is the best solution, but I might have just not thought of the best...

The comment will be updated and there was never the intention to have a stream of comments.  I think one clear comment indicating which files are approved and which need approval (and by whom).  This PR achieves that.  What will the dashboard give us that this comment won't?

/lgtm
we can integrate approvals into the gubernator dashboard once it's stable


Character agency report

As an admin I need to be able to download information about candidates for each agency that undertakes character checks, for example ACRO who conduct criminal record checks. This is part of the process if checking candidates have declared all relevant character issues and is information that is put to the Commission when making decisions on character.
I need to be able to download different information depending on the agency and export this to an excel file to then send emails to those agencies.
This Epic consists of:
1.) Create a consent form on admin #519
2.) A webform opens up with consent form on apply apply#298
3.) Candidate fills in and submits consent form apply#299
4.) The information is displayed under applications in their accounts apply#300
5.) Different tabs for different agencies on admin #520
6.) Each tab populated with the information candidates input #521
7.) Information exportable in excel file #522
8.) Add Agency tab to candidate record #523

Hey @ClaireTroughtonJAC and @Rebecca-mcknight1991 do we have a definition of the fields you need to be able to download for each agency?

Hey @ClaireTroughtonJAC and @Rebecca-mcknight1991 what should be configurable when creating a consent form?

Hey @ClaireTroughtonJAC and @Rebecca-mcknight1991 how is information from each agency entered back into the system?

Edit form
Import a file
Automated


Output format is float values only — integer format not supported

Datasheet says an output format must be specified when starting the measurement with the “Start Measurement command”; 2 output formats are supported:

Measurement Output Format:
0x03: Big-endian IEEE754 float values
0x05: Big-endian unsigned 16-bit integer values

It seems this implementation supports only the float format today.
https://github.com/Sensirion/embedded-uart-sps/blob/master/sps30-uart/sps30.c#L40
#define SPS30_SUBCMD_MEASUREMENT_START  { 0x01, 0x03 }
What is the benefit of receiving float values from the sensor? Datasheet says sensor precision is never better than 10 μg/m3. I.e. fractional digits in float values could be considered "unwanted" precision, and may not mean much.
Am I correct to understand the default float output format is in fact not more precise than integer format? And that, for all intents and purposes, float values should be rounded to integers?
"Datasheet SPS30 - Particulate Matter Sensor for Air Quality Monitoring and Control"
Mass concentration precision1,2 for PM1 and PM2.53 0 to 100 μg/m3 ±10 μg/m3
100 to 1000 μg/m3
Mass concentration precision1,2 for PM4, PM104 0 to 100 μg/m3 ±25 μg/m3
100 to 1000 μg/m3

Hi @rwaldura
You're absolutely correct in your assessment. As far as I'm aware, the float output was simply there first during development and we stuck with it.
The choice of output format was provided, IIRC, because some platforms have buffer limits (e.g. we noticed some Arduinos). Using a uint16_t, we're thus shrinking the demands on the buffer size. Otherwise, floats might be easier if that's the type you intend to convert to anyway for your application.
I'll close the issue, but you're welcome to open it again if you have further questions.
Kind regards
Andreas

Thank you for this clear explanation, much appreciated.


Added previously missing data to language.lua alongside with a few changes.

Since there doesn't seem to any new library additions to the Luau for v506 (At least there doesn't seem to be one for now, gonna wait for releases notes to come out first.), I decided to make changes to the comments and go through the autocomplete to add missing data down below, which includes:
Changing comments that includes "Lua" to "Luau",
Moved deprecated global members under separate comments.
Added following data to built-ins:
Delay
ElapsedTime
elapsedTime
Spawn
Wait
Game
Workspace

I appreciate the work. Moving deprecated members out was a good change.

the autocomplete

FWIW it's contextual highlights, not autocomplete.

the autocomplete

FWIW it's contextual highlights, not autocomplete.

I'm talking about the studio script editor's autocomplete.
Also it's ready for merging now.


quickstart?

Is there a little guide anywhere on how to create an fst and fill it with stuff? Also, what's the speed/memory usage on this? (I find https://github.com/johnjcamilleri/fst/blob/63ba3920f9df2a2d433dc7cc30734210bcc99bbd/FST/AutomatonTypes.hs#L34 a bit alarming.)

See http://www.cse.chalmers.se/alumni/markus/fstStudio/download.html

Thanks! (Maybe those two .ps files should go in the repo?)


Train Howdy to collect feedback from Hack Series attendees

Done! You can run it with howdy run hack series feedback.


Windows Installation does not work due to wrong environment variables Windows 10

The directions for installation on Windows 10 are faulty
Please find the exact paths and version numbers from your local version.
C:> set BAZEL_VS=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
C:> set BAZEL_VC=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC
C:> set BAZEL_VC_FULL_VERSION=
C:> set BAZEL_WINSDK_FULL_VERSION=
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools DOES NOT EXIST, and there is no indication what exe, dll, bat or file you are requiring
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC DOES NOT EXIST and there is no indication what .exe, dll, bat of ile you are requiring
 what file are you looking for devenv.exe , devenv.com, VsGA.exe , and other exe and if I have installed studio 2022 there are even more choices to make
 again what files are you looking for ??? h files, cpp files, lib files ???
   Machine Id: {ABBFCD85-FB5D-46EF-8D13-E99E5C534181}
     Operating System: Windows 10 Enterprise 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)
             Language: English (Regional Setting: English)
  System Manufacturer: Dell Inc.
         System Model: XPS 8930
                 BIOS: 1.0.12 (type: UEFI)
            Processor: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 CPUs), ~3.2GHz
               Memory: 16384MB RAM
  Available OS Memory: 16192MB RAM
            Page File: 16187MB used, 5379MB available
          Windows Dir: C:\WINDOWS
      DirectX Version: DirectX 12

Tried to follow installation instructions here
https://google.github.io/mediapipe/getting_started/install.html
I have visual studio 2019 and 2022 installed on my Windows 10 System

If you have hard time with bazel build (and willing to pull some third party libraries), an easy visual studio 2019 solution with few selected examples is here. check it out...
https://github.com/andrechen/mediapipe/tree/master/visualstudio

Hi @steven5clu884 ,
Please check out this for more information for installation.


Google Home App Broadcast Endpoint

Does anyone here know the endpoint that the Google Home App calls when you broadcast from your phone? I've tried listening on the app traffic through Charles but have not been able to find any API calls.

Turns out I can just use the Foyer API with google.internal.home.foyer.v1.HomeControlService/ExecuteRoutineOnDevice, but I am unable to generate any auth tokens and get the following error from GRPCurl:
Code: PermissionDenied
  Message: Request had insufficient authentication scopes.

Since you've already found the gRPC service and method, probably know how to make grpc requests and stuff.
To create the protobufs for getHomeGraph and others, I used grpc-dump to see what request and response bodies were like. Then used this json dump to convert to protobuf v2, then to v3 by hand. More info in this comment https://github.com/rithvikvibhu/GHLocalApi/issues/39#issuecomment-650590500.
To be able to dump, the phone must trust the CA and grpc-dump must use a cert from this CA. On how to set this up: https://github.com/rithvikvibhu/GHLocalApi/issues/39#issuecomment-643406303
Check out one of the existing protos for reference: https://github.com/rithvikvibhu/GHLocalApi/issues/39#issuecomment-644959103
If/When it works, post it here if you can, I'll add it along with the others.

I unfortunately only have an iPhone which doesn’t play well with grpc-dump. If someone could construct a protobuf for ExecuteRoutineOnDevice it would be much appreciated.

I'm kinda busy this week. If someone else can, great. Otherwise I'll do this ~1st week of Jan

Great! Thanks so much!

Not sure if this can be converted directly to protobuf, but I found this code: https://github.com/iCrazeiOS/Class-Dumped-Apps/blob/11e9fc710f1ac3da7bc876319c5023b84e182811/Headers/Google Home 2.30.123/GHCExecuteRoutineOnDeviceRequest.h

Oh interesting, nice find! Not sure if it's possible directly, but can use it as a reference when building I think.

I've been experimenting on Android x86 Nougat in VMWare, but have been unable to get the Google Home app to trust my grpc-dump certificate? How were you able to do it?

I'd first use mitmproxy to set up and confirm that the CA is trusted: https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/
Visit a https site in a browser and make sure mitmproxy catches it and the page loads normally.
Now that the mitmproxy's CA is trusted by the phone, use its CA to generate a specific cert for googleapis.com. The 4 lines from https://github.com/rithvikvibhu/GHLocalApi/issues/39#issuecomment-643406303 will do it.

I actually just generated my cert with openssl (following your 4 commands), but I think it’s an issue with Android 7. It just doesn’t trust outside certs unless the app itself is patched.

Afaik (at least as of a few months ago), the app only pins the cert for communicating with local devices (with a chromecast cert), but does not for others (like google severs).
Which CA did you use in the 3rd line? That CA (and not the googleapis.crt) has to be imported as system cert, not as a user cert.

Yes, so I generated a certificate called cert.pem with openssl, using this command openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
I then followed your steps to have grp-dump use it with googleapis.crt.
Then, I installed it on the device using this app: https://play.google.com/store/apps/details?id=net.jolivier.cert.Importer&hl=en_US&gl=US
It showed up in my system certs, so it appeared to work.
However, grp-dump kept getting this error TLS handshake error from <IP_ADDRESS>:38090: remote error: tls: unknown certificate, so I assume it's because the Google Home App was not using the cert.

Hm can't think of anything right now. I'll try it again in ~10 hours and see if anything's changed. If you figure it out, post it here and I'll update the docs.

Figured it out, was a problem with my cert. I decided to switch to Charles proxy and that worked fine.
Something interesting is that the ExecuteRoutineOnDevice request does not use protobuf, it uses some raw hex instead (with three leading zero bytes).


Fixing Hub and DTR broken links

Deploy preview for docsdocker ready!
Built with commit 86218be628ff41b878ad0da14cd3b7174d52d605
https://deploy-preview-9839--docsdocker.netlify.com


enforce arities of CUST operators

As I was working on the elaboration semantics for signatures, I realized that we aren't actually enforcing that CUST operators carry the correct arities. We'll need to introduce a well-formedness check for all terms that are introduced into a signature, that walks the abt to find instances of CUST[ϑ](a), looks up the arity a' assigned to ϑ in the signature, and checks that a == a'.

[ ] update elaboration spec
[ ] update code

I think I can do this :) I may need some feedback on how I did updating the spec but the code bit seems easy enough to write

Great, thanks! Let me know if you need any help with the spec.


Implement ISpanAppendable in CharBlockArray and ICharTermAttribute/CharTermAttributeImpl

[X] You've read the Contributor Guide and Code of Conduct.
[X] You've included unit or integration tests for your change, where applicable.
[ ] You've included inline docs for your change, where applicable.
[X] There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Implement ISpanAppendable in CharBlockArray, ICharTermAttribute, and CharTermAttributeImpl
Fixes #1026
Description
This adds ISpanAppendable to the ICharTermAttribute interface, and CharBlockArray and CharTermAttributeImpl classes. The classes implement the interface explicitly so that we can provide a default implementation that returns itself rather than ISpanAppendable, to match the existing Append overloads.
The existing Append overloads that have Span-supporting types like string or char[] have been updated to call this Append method via .AsSpan() as what should be a more efficient implementation.
Note that while IAppendable is now redundant in the interface list for these types, I left it there for Lucene source compatibility and reference, since ISpanAppendable does not exist in Lucene.

@NightOwl888 I intend to mark this ready for review once #1018 is merged, leaving as draft for now. I'll also likely have to resolve a merge conflict at that point too.


bump package versions

this is the config we have used for the last month or so
Again apologies for touching the main repo with the last PR - this is the contents of the last one, boiled into one commit

merged per discussion with @clowenhg
all please check mongoose functionality remains the same in your app


router fails to come up with FailedScheduling

when using helm install from the HEAD of master on the deis/charts repo, here's the output of kd describe (kd is an alias for kubectl --namespace=deis):
ENG000656:builder aaronschlesinger$ kd describe pod deis-router-s9nd6
Name:				deis-router-s9nd6
Namespace:			deis
Image(s):			quay.io/deisci/router:v2-alpha
Node:				/
Labels:				app=deis-router
Status:				Pending
Reason:
Message:
IP:
Replication Controllers:	deis-router (1/1 replicas created)
Containers:
  deis-router:
    Container ID:
    Image:		quay.io/deisci/router:v2-alpha
    Image ID:
    State:		Waiting
    Ready:		False
    Restart Count:	0
    Environment Variables:
      POD_NAMESPACE:	deis (v1:metadata.namespace)
Volumes:
  deis-token-2vm78:
    Type:	Secret (a secret that should populate this volume)
    SecretName:	deis-token-2vm78
Events:
  FirstSeen	LastSeen	Count	From		SubobjectPath	Reason			Message
  ─────────	────────	─────	────		─────────────	──────			───────
  13m		32s		32	{scheduler }			FailedScheduling	Failed for reason PodFitsHostPorts and possibly others

Which k8s environment are you using? Wondering if this is clashing with API server.

I'm using a vagrant cluster created with micro-kube. Here's version info:
ENG000656:slugbuilder aaronschlesinger$ kubectl version
Client Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.3+6a81b50", GitCommit:"6a81b50c7e97bbe0ade075de55ab4fa34f049dc2", GitTreeState:"not a git tree"}
Server Version: version.Info{Major:"1", Minor:"1", GitVersion:"v1.1.1", GitCommit:"92635e23dfafb2ddc828c8ac6c03c7a7205a84d8", GitTreeState:"clean"}

Alright, @krancour will have to weigh in on this.

This is a port conflict.  micro-kube include the nginx-alpha ingress controller and that's using host port 80, which the router also wants.  You need to uninstall the nginx-alpha ingress controller.

You need to uninstall the nginx-alpha ingress controller

I'm not very familiar with ingress controllers (beyond just reading the docs), but I don't see any ingress controllers installed (see log below). Can you advise?
ENG000656:builder aaronschlesinger$ kubectl get ing && kubectl --namespace=deis get ing
NAME      RULE      BACKEND   ADDRESS
NAME      RULE      BACKEND   ADDRESS

It would be in the kube-system namespace

The controller is also an rc resource; not ing.

@krancour ok, I deleted the RC:
ENG000656:deis aaronschlesinger$ k get --namespace=kube-system rc
CONTROLLER                CONTAINER(S)              IMAGE(S)                                         SELECTOR                          REPLICAS   AGE
kube-dns                  etcd                      gcr.io/google_containers/etcd:2.0.9              k8s-app=kube-dns,version=v8       1          21d
                          kube2sky                  gcr.io/google_containers/kube2sky:1.11
                          skydns                    gcr.io/google_containers/skydns:2015-03-11-001
kube-ingress-controller   kube-ingress-controller   krancour/k8s-nginx-ingress:0.0                   k8s-app=kube-ingress-controller   1         21d
kube-ui                   kube-ui                   gcr.io/google_containers/kube-ui:v3              k8s-app=kube-ui,version=v3        1         21d

...then started a new deis cluster using the Deis chart:
ENG000656:deis aaronschlesinger$ kd logs -f deis-router-9h2g6
2015/12/16 18:52:05 INFO: Starting nginx...
2015/12/16 18:52:05 INFO: nginx started.
2015/12/16 18:52:05 INFO: Router configuration has changed in k8s.
2015/12/16 18:52:05 INFO: Reloading nginx...
2015/12/16 18:52:05 INFO: nginx reloaded.
2015/12/16 18:52:05 [notice] 11#0: signal process started

... and then tried ./deis register <router IP>, but it fails:
core@micro-kube ~/example-go $ ./deis register <IP_ADDRESS>
Error: http://<IP_ADDRESS> does not appear to be a valid Deis controller.
Make sure that the Controller URI is correct and the server is running.

Should it correctly route to the controller given it was installed from the chart?

I wouldn't expect using the naked IP like that to work.  The router routes traffic based on HTTP host headers.  That request goes to the default vhost, which exposes a /healthz endpoint-- all other paths on that vhost return 404s.

@krancour I might have this wrong then. Instructions at https://github.com/deis/workflow#hacking-workflow say to deis register <cluster IP>. I was assuming that <cluster IP> was the IP to router, since when you deis create --no-remote it prints out a git remote with the same <cluster IP>. Is it the end goal to have router route to both the controller (port 80) and builder (port 2222)?
cc/ @helgi

Since you're on micro-kube, I know the VM's IP is <IP_ADDRESS>...
$ kubectl edit rc deis-router --namespace=deis
Find metadata.annotations.deis.io/routerConfig and within, change example.com to whatever domain you like.
Edit your Mac's /etc/hosts file to include:
<IP_ADDRESS> deis.<whatever-domain-you-picked>

Then:
$ deis register http://deis.<whatever-domain-you-picked>

And yes... I guess workflow instructions are not making any assumption that router is in play.  Router listens on the host's ports 80, 443, 2222, and 9090 and proxies to different services (workflow, builder, or applications) based on HTTP host headers.

@krancour makes perfect sense now. I was still thinking about executing everything from the minion, but I was kinda missing the whole point of the router... Thanks!
I think we need docs to explain how to use our components with the following configurations:

All Deis components installed, probably using helm up. The instructions for setup would be the same as you just laid out here
Only select components installed. We can't cover all possible combinations, but I think we should at least explain how to work without a router and just a builder and a workflow.

Thoughts? If these are good, I volunteer to document.

The instructions for setup would be the same as you just laid out here

The instructions differ a bit depending on where your cluster runs.
Anywhere where the k8s "cloud provider" has support for creating "external" load balancers (e.g. an ELB in AWS):  helm install deis gets you almost all the way there.  Then you just need to edit router RC in the chart to pick a platform domain and add an A record to DNS that points to your load balancer.
Anywhere where the k8s "cloud provider" no-ops the support for creating "external" load balancers (e.g. Vagrant or bare metal): helm install deis, then manually creates a load balancer (if possible) or use DNS / /etc/hosts tricks to route your traffic to a particular host(s).

Reading the comments here, are we beyond the original ticket and off into the RC config documentation gap?

yes, I think so

So can we close this and open a Workflow issue on getting this documented in the installation guide?

@technosophos yes, I'll create shortly


[Docs]: snowflake_user_password_policy_attachment invalid args

Object type(s)
resource:user_password_policy_attachment
Documentation Link
https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/user_password_policy_attachment
Description
Using the latest provider version, 0.92.0, I get the following errors if I try to include password_policy_database or password_policy_schema args to resource snowflake_user_password_policy_attachment
Unexpected attribute: An attribute named "password_policy_database" is not expected here
Unexpected attribute: An attribute named "password_policy_schema" is not expected here
I also do not see these fields defined in the resource schema.
References
No response
Would you like to implement a fix?

[ ] Yeah, I'll take it 😎

Hey @georgeb-accelins. THanks for reaching out to us.
You are right, the example is incorrect. We will fix it before today's release.

Hey @georgeb-accelins, we updated the example in v0.93.0: https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/user_password_policy_attachment

Closing as completed.


Reuters21578 Couldn't reach

``## Adding a Dataset

Name: Reuters21578
Description: ConnectionError: Couldn't reach https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz
Data: https://huggingface.co/datasets/reuters21578

from datasets import load_dataset
dataset = load_dataset("reuters21578", 'ModLewis')
ConnectionError: Couldn't reach https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz
And I try to request the link as follow:
import requests
requests.head('https://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz')
SSLError: HTTPSConnectionPool(host='kdd.ics.uci.edu', port=443): Max retries exceeded with url: /databases/reuters21578/reuters21578.tar.gz (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
This problem likes #575
What should I do ?

Hi ! The URL works fine on my side today, could you try again ?

thank you @lhoestq
it works


Fix issue with precondition checking

Previously commands.Count would never change, so by the current logic
it was never checking the last command.
Fixes: https://github.com/RogueException/Discord.Net/issues/514

See my answer in #514


rc33 influx cli tool show database not found if there is no data in the new database

As subject.
> create database test
> use test
Using database test
> show measurements
ERR: database not found: test
>

This is fixed in the first release after RC33.
Thanks @ziyel


updated the document with Unslpash

I have updated the document .
Please review and merge it.

Hi, the lowercase unsplash there is intentional since most slash-commands are that way by convention.


How login in vk using smplayer with mpv?Please Help!!!

Hi, i new in this site, i started to use smplayer in puppy linux.I cant play videos from vk.com.I put this in preferences-advanced -mplayer/mpv-options:youtube-dl --username xxxxxxxxxx --password xxxxxxx then send me this:Error parsing option username (option not found)
Setting command line option '--username=' failed.
Exiting... (Fatal error)
Here a link from vk http://vk.com/video185471254_171697608
I doing something wrong?Please help me with this.
Regards!

Read smplayer docs/ask smplayer developers.


Feature/share mqtt connection

better management of events we share connections with a limited number per mqtt client, because node.js has a limit on EventEmitter, can be raised in real life scenarios with nodesPerConnection parameter

would be great, if someone could test this in real life scenarios


Select resolution in fullscreen mode

Required for https://github.com/ppy/osu/pull/2715

What happens if the available resolutions list changes? Pretty sure you’re looking for #1588

On the DesktopGameWindow level it will fallback to the highest resolution available(1920x1080@60Hz in my case).
https://github.com/ppy/osu-framework/pull/1589/files#diff-414962a93a3fbd7561a3a8d19a87ffc5R181

I was referring to the fact you are storing an index to a list that could change at any point in time. It can’t be done this way.

Is this one still relevant? If so, needs conflict resolution.


Add predict_f_gradients and predict_y_gradients to GPModel

This is the in-house version of #246 (for continuous-integration purposes)

Current coverage is 99.41% (diff: 100%)

Merging #247 into master will increase coverage by <.01%

@@             master       #247   diff @@
==========================================
  Files            23         23
  Lines          1690       1697     +7
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1680       1687     +7
  Misses           10         10
  Partials          0          0

Powered by Codecov. Last update b8b91e0...3d5e187

This might be a good moment to ask. @icouckuy who are you? I'd like to update the readme with contributors.

Ivo Couckuyt from Ghent university, Belgium. I  think I have a web page here:
http://sumo.intec.ugent.be/icouckuy
but it is a bit outdated.

It would be great if this pull request could be merged as it is very useful.
However, the function predict_f_gradients in this moment does not seem to support vectorized inputs -- all inputs after the first return 0 as gradient of both mean and variance.

Just put this comment in the original PR (and now I'm sincerely hoping I'm not wrong!):
Just a cautionary comment, I am quite sure this does not compute the distribution of the predictive gradient (that is, the gradient of the posterior Gaussian process). If you just need these quantities for something else, then no worries, but just wanted to make sure the two weren't confused.

You are right that it does not compute the distribution of the predictive gradient. There was a short discussion on how to make that clear in the doc strings. I guess we failed :)

@icouckuy: ah, it's probably my mistake then - just skimmed the code.
Is it for expected improvement?

@Bonnevie yes indeed, I hooked it up in our toolbox so the complete EI (or KG, entropy, multi-objective EI, etc.) optimization is one big TF graph. Easily parallelizable (MC initialization of starting points and then n SGDs).

small note: I double-checked the gradients numerically and they are correct.

@icouckuy: it just so happens that I need BO myself, preferably with GPflow. Do you have the code in a particular branch I could take a peek at? Or is the toolbox not on GitHub?

@robertocalandra , is this still the case?
"However, the function predict_f_gradients in this moment does not seem to support vectorized inputs "
I'd like to either merge or close this PR.

Just a heads-up that this is still on our radar to check if vectorized inputs work. So that it doesn't get closed :)

I'm not sure if I understand the issue correctly. It seems to work correctly when predicting many points at once in TF 1.2rc0.

Someone pointed out you might mean multi-output GPs which indeed does not work. TF gradients returns sum(ys/dx). So if you model [y, -y] then only one set of gradients will be predicted, which in this case will likely be zero.
To solve this, tf.gradients needs to be called for each output separately or use the shorter version as in:
https://github.com/tensorflow/tensorflow/issues/4897#issuecomment-253056458
Both approaches requires the shape of self.Y (in particular, the number of outputs) to be known when constructing the graph which isn't the case. Methods like tf.split and tf.unstack raise an exception when they can't infer the shape. There are a couple of options as I see it:

store the shape as a numpy array self._Y_shape before it becomes a DataHolder (or let DataHolder hold it/define a static TF shape).
add an extra parameter outputIdx so the user can specify of which output he wants the gradient
keep the current behavior as is
...

@icouckuy I pushed what I hope is an acceptable fix. The shape of Y does not need to be stored anywhere.
The return shape is num_points x input_dim x output_dim.
Let me know if this works for you.

@jameshensman Have to admit the tf.map_fn approach would have looked better, but I think is good for now. For some reason I like to keep controler flow structures outside of TF.

The shape of Y does not need to be stored anywhere.
What's wrong with DataHolders returning a static TF shape?

In the future, we might not know the shape of Y. For example if Y is a minibatch object, or some object that implements a tensorflow queueing system for the data. Since we don't need to know the dim of Y, it seems prudent not to use it.

Hi @icouckuy - before we merge this, could you please explain why you needed the tf.while loop? I've needed a similar column_wise gradient but implemented it as index_list = tf.range(tf.shape(xx)[0]); grads = tf.map_fn(lambda i: tf.gradients(arg[i], xx)[0][i], index_list, dtype=float_type) where arg is the tensor of which you want the gradients and I hadn't noticed any issues.

We need to confirm what the best form for columnwise_gradient() is. There have been several requests for this feature, so it would be good to get this PR into master! Help appreciated... :)

Hello,
I was wondering if there are plans to continue with this pull request in the future for GPFlow 2.0?

I wonder if there is any plan to add predict_f_gradients and predict_y_gradients to GPFlow 2.0? Thanks.

Same here, I wonder if there is any plan to add predict_f_gradients and predict_y_gradients to GPFlow 2.0? :)


Ignore sdk update to keep apiversion aligned with azclient package.

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Ignore sdk update to keep apiversion aligned with azclient package.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer

coverage: 80.775%. remained the same
when pulling 001e1a2da6ec598b7cd4d7bb23094992688e64ce on MartinForReal-patch-1
into 7335d09543a41e522300cec6fc1d32ed95432359 on main.


rao_analysis QA criteria

QA Checks to be performed to identify obvious data errors.

displacement rao errors based on floater motion criteria in regular and long periods.
utilize standard data and direction conventions

relocated https://github.com/vamseeachanta/digitalmodel/issues/36


🛠 Replace useDispatch with useQuery/request

❕ Do not assign this EPIC to yourself. Sub-issues specified below can be assigned to yourself.

Currently, we are using useDispatch to dispatch actions through fireRequest. We need to migrate this to use useQuery (for performing GET requests on component mount) and request to perform API calls of other methods (such as form submissions, etc.)
📖 References for the request and useQuery data fetching utilities

📖 Documentation https://github.com/coronasafe/care_fe/blob/develop/src/Utils/request/README.md
👀 Example PR: #6327

Tasks
Feel free to split these individual tasks further into multiple sub-tasks/PRs if the refactor is large. It will be easier to do the refactor, QA testing, and code review.

[x] #6330
[x] #6326
[x] #6331
[x] #6328
[x] #6360
[x] #6372
[ ] #6376
[x] #6391
[x] #7036
[x] #6381
[x] #6442
[x] #6392
[x] #6546
[x] #6443
[x] #6483
[x] #6530
[x] #6705
[x] #6888
[x] #7168
[x] #7169
[x] #7170
[x] #7171

Steps to follow

Perform a global search with from "react-redux" and specify the corresponding files to include regex as shown

In all of the files in the search results, you'll have to remove the usage of useDispatch (and corresponding actions that are dispatched) and replace it with useQuery and request appropriately.

All of the existing routes are available at src/Redux/api.tsx which can be passed to the useQuery/request directly.

For each route that is being used, ensure the response type is also present. If not, you'll have to add it.

Example:
config: {
  path: "/config.json",
  noAuth: true,
  TRes: Res<IConfig>(),  // 👈 Add this
},

Delete the relevant no longer used actions from actions.tsx. (Ensure the action is not used outside the scope of the migration too)

You'll also need to add cypress tests if existing cypress tests do not cover pages/components where the replacements are being done.

hi @rithviknishad  i would like to try to  work on this can you please assign this to me


Youtube premium foramt is not consitent for download percentage

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
When you download the premium bitrate 616 the download percent is not consitent it keeps bouncing around it shows 17 then shows 15 then it shows 19 then 17 it doesnt remain constant like 15%, 16%, 17% since it shows an amount of fragments so the download percent is not consistent
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '-f', '616+251', 'https://youtu.be/uXYarIMNMlY?si=jBVMJxYDcEbETli6']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds [37c233562] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2024-07-15-git-350146a1ea-full_build-www.gyan.dev (setts), ffprobe 2024-07-15-git-350146a1ea-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.35.5, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1829 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://youtu.be/uXYarIMNMlY?si=jBVMJxYDcEbETli6
[youtube] uXYarIMNMlY: Downloading webpage
[youtube] uXYarIMNMlY: Downloading ios player API JSON
[debug] Loading youtube-nsig.65e3708e from cache
[debug] [youtube] Decrypted nsig y-UMbOjQA8QHWV4uJTC => FQUAVRBL7hBJXg
[debug] Loading youtube-nsig.65e3708e from cache
[debug] [youtube] Decrypted nsig TTu8beQqNbsB7p5iEYh => ZF2nfizxLxu9kQ
[youtube] uXYarIMNMlY: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] uXYarIMNMlY: Downloading 1 format(s): 616+251
[debug] Invoking hlsnative downloader on "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1721195407/ei/LweXZpPnD72ykucP07GU0A4/ip/<IP_ADDRESS>/id/b9761aac830d3256/itag/616/source/youtube/requiressl/yes/ratebypass/yes/pfa/1/wft/1/sgovp/clen%3D42857583%3Bdur%3D275.408%3Bgir%3Dyes%3Bitag%3D356%3Blmt%3D1712428124315339/rqh/1/hls_chunk_host/rr1---sn-8xgp1vo-p5qs.googlevideo.com/xpc/EgVo2aDSNQ%3D%3D/mh/pf/mm/31,26/mn/sn-8xgp1vo-p5qs,sn-vgqsrnzr/ms/au,onr/mv/m/mvi/1/pcm2cms/yes/pl/18/force_finished/1/gcr/us/initcwndbps/1238750/vprv/1/playlist_type/DVR/dover/13/txp/5532434/mt/1721173508/fvip/2/short_key/1/keepalive/yes/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,pfa,wft,sgovp,rqh,xpc,force_finished,gcr,vprv,playlist_type/sig/AJfQdSswRgIhAJQ9ny5ZVFcNJgxXIkzJCvuSmpVDx6b6-yGNGHqiJ7cMAiEAglGU7aIHQL_2JHAIdYMZuLO60uUonFMgwHLWo_SksZY%3D/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pcm2cms,pl,initcwndbps/lsig/AHlkHjAwRQIgPqMjddq1V6EmRlvS3jRjKJWGcaJdjwIEAWN2aXeTstACIQDuzkIyxVouYGxYHwVTD1oaZCqQemtGZcBzd3pEBghI9Q%3D%3D/playlist/index.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 52
[download] Destination: Grannies🥫Read by Suranne Jones ｜ Bluey Book Reads ｜ Bluey [uXYarIMNMlY].f616.mp4
[debug] File locking is not supported. Proceeding without locking
[download]   6.6% of ~  30.49MiB at  285.02KiB/s ETA 00:40 (frag 2/52)

Duplicate of #7195