Support shiny apps

nbrsessionproxy supports the proxying of shiny-server when it is installed. This PR installs shiny-server and the shiny R library. It also makes some unconfigurable shiny paths writable by the notebook user.
When someone visits /shiny/, the user server will proxy to shiny-server. If there is a shiny app in the home directory, shiny will run that app, otherwise it will display shiny's tree listing. Visiting directories containing shiny apps will run them.
I tested this by generating a Dockerfile with --debug --no-build, then manually seeding the R buildpack bits. If there's a better way of doing this please let me know!

This looks great!
Trying to debug where there is a missing , or some such that is making travis unhappy.

This is gonna be awesome.
Is there a example shiny app we can add to https://github.com/binder-examples/r or a new example repo we could add to https://github.com/binder-examples/?

Thanks for the merge! I tend to test with this single file app and the gallery is full of nice ones.
RStudio's shiny-examples has them all lined up in a row.

The hello app works, but https://github.com/rstudio/shiny-examples/tree/master/086-bus-dashboard just gives me "ERROR: An error has occurred. Check your logs or contact the app author for clarification." Is there a way to see the error log somewhere? /home/jovyan/logs/ is empty :(. I downloaded the whole 086-bus-dashboard directory and put it in a sub directory of binder-examples/r
n.b. I had to delete the index.Rmd in the root directory to get shiny server to show me the directory listing. I think that is everything working as designed but took me a moment to figure out.

Thanks for looking into this. The shiny logs should be in /var/log/shiny-server.log and /var/log/shiny-server/. The first is the shiny-server process and the second contains log files for each app.
The closest thing to jupyter server logs I've found on binder is cat /proc/1/fd/2 in a jupyter terminal, if I recall correctly.
I'm traveling atm, but I'll try to replicate the 086-bus-dashboard issue.

The log at /var/log/shiny-server.log is empty and looking at the output you get from running repo2docker . locally is the following:
[E 05:21:09.481 NotebookApp] {
      "Host": "<IP_ADDRESS>:57883",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:61.0) Gecko/20100101 Firefox/61.0",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept-Encoding": "gzip, deflate",
      "Referer": "http://<IP_ADDRESS>:57883/shiny/",
      "Cookie": "username-0-0-0-0-50436=\"2|1:0|10:1527340252|22:username-0-0-0-0-50436|44:NDdhYzY1Yzg0ZmM4NDBhN2E5NDFkNmQwMjFiNjY4MDg=|db6f8c9eeb3c844611d7948e37777e706ac8cf3ef263887e3eb9161af467f594\"; _xsrf=2|da088ef2|49aa05d4ce69585f7b8151a9e195e1ab|1527340252; username-0-0-0-0-51341=\"2|1:0|10:1527345393|22:username-0-0-0-0-51341|44:NmU4YzBkYWY2MDY4NGQ1Zjg0Y2NlNGE0NzA1M2Y3NWI=|83fd82c9b5488d1186fb85f59a9d000556b41e28b8bcda0505ec01d6478320d2\"; username-0-0-0-0-57883=\"2|1:0|10:1527743676|22:username-0-0-0-0-57883|44:NmFhOTJjMTRmNjI5NGMyZGFjZjZlODEwN2IzYzUyZGE=|c9ce84c4dfd71ba4dead686eecf20b723190c5014cc8e1a07a41665e8cb8ef42\"",
      "Dnt": "1",
      "Connection": "keep-alive",
      "Upgrade-Insecure-Requests": "1",
      "Cache-Control": "max-age=0"
    }
[E 05:21:09.488 NotebookApp] 500 GET /shiny/bus-dashboard/ (<IP_ADDRESS>) 1180.52ms referer=http://<IP_ADDRESS>:57883/shiny/

Where else could I look for why this fails?

The problem was missing dependencies for the shiny app. After finding and adding them to install.R you can visit /shiny/bus-dashboard and get the bus dashboard.
Finding out that this was the problem was a bit tricky. In the end I opened the server.R in RStudio and clicked "launch App" there. This gave me a window with an error message that said "missing dependency XXX". Didn't manage to find that in the logs unfortunately.


Standalone partitioner utility

Specifications for the partitioning should be provided via command line flags.

This tool exists and it works. All features in the MVP of the design doc have been implemented. All follow-ups can be their own issues.


test: Do not run govulncheck on every push

Description
This change helps avoid red "x" appearing on PRs for reasons unrelated to the PR (such as a new vulnerability appearing in the DB).
We already have a process to address vulnerabilities from downstream builds, so we're not losing much by disabling this. Of course it would be nice to "shift left" as much as possible, but without a process set up to address failures in a timely manner this is mostly teaching folks to ignore the check.
The job will still run when a label is set on a PR.
cc @janisz
Perhaps we can still run it on pushes to master but that requires crafting a more elaborate logic which I don't have the bandwitdh to create right now.
Checklist

[ ] Investigated and inspected CI test results
[x] ~Unit test and regression tests added~
[x] ~Evaluated and added CHANGELOG entry if required~
[x] ~Determined and documented upgrade steps~
[x] ~Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change

[ ] make sure it does not run
[ ] make sure it runs when I re-run the workflow after applying the label

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

Decision record here: https://docs.google.com/document/d/1sRY9M9yx0Hlzy1mCkvVkopQWMwDAmCKfA0jGzrcVh-I/edit#heading=h.vv1iwag4ys


3D Printed parts

Add a folder to keep 3D printed files
Upload relevant files

@jamie-54 @gunturiCM @boyle26 who has the files?

I have the most recent stl files


[ESP32-C2] Correct REG_SPI_BASE(i) (IDFGH-11421)

Given these defines (verified against the technical reference guide):
#define DR_REG_SPI1_BASE                        0x60002000
#define DR_REG_SPI0_BASE                        0x60003000
#define DR_REG_SPI2_BASE                        0x60024000

The existing formula can never match these registers.

 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.

sha=c55df6374df94160c04730869cacb7ec8d8f0308


Midi bindings

Hi,
This is not necessarily a software bug. My idea use case for Synthpod is as an LV2 host for live performance. I would love to be able to create MIDI "bindings" from my keyboard controller to any control ports on a plugin, that can be saved and reopened later. Does Synthpod allow me to do that? If so, what is the process to create these bindings? Thanks!
-Carsten

My idea use case for Synthpod is as an LV2 host for live performance

That's my use case, too

I would love to be able to create MIDI "bindings" from my keyboard controller to any control ports on a plugin, that can be saved and reopened later. Does Synthpod allow me to do that? If so, what is the process to create these bindings?

Synthpod can do that. It works differently than you may be accustomed from other plugin hosts, though. You can change pretty much any plugin parameter by scripting/interacting with Synthpod's API, but the latter is neither documented nor stable (in terms of its namespace), so that's no option right now.
The Synthpod plugin engine has no idea what MIDI is in the first place, it therefore does not analyse it. Its responsibility is 'running plugins' and 'routing audio, CV, event and control signals'. With it's modular approach, everything else shall be implemented by plugins.
In f4f4b04, I have prototyped a new plugin (synthpod#midi2control) which should do what you want.
It features 8 control slots, enabled with MIDI learn and automatic range detection

spawn as many of the plugin as you need
connect the synthpod#midi2control event input to your MIDI controller source
connect the synthpod#midi2control control outputs to any other plugins control inputs

P.s. in order to be able to connect control ports, you need to toggle their visibility (chain link icon) to make them show up in the matrix patch bay


Need better documentation on specifying a collection name as part of facet command

I just discovered that I can pass in a collection parameter, instead of having to use use mycollection.   This isn't documented anywhere, except as a cryptic error message.
If you run facet your get baack the message Specify the query params to facet with. Example: search q=text&facet=true&facet.field=genre, it could also put in the collection=yourcollection parameter in that messaage!
Or do we need to updaate/enahnce the README?

facet might work fine but I don't think other commands like stream or sql will work. We can document for facet param. I will update the README for now 👍
I just committed minor fixes and releasing 0.1.1 that fixes logging

Released 0.1.1 and updated the README


The collapsible legend is wrong

The collapsible legend in the lower right corner gives information such as
"Group: Four of these is a medium challenge"
it says that about the light purple color which corresponds to 1/4 CR when using a party of 4 level 1 characters. However, building an encounter of four 1/4CR enemies is actually "Deadly", which the encounter builder correctly states.
I think the legend doesn't take the Adjusted XP into mind. Because 1/4CR creatures give 50 xp. 50 * 4 is 200 which would correspond to a "medium" challenge were it not for the adjusted xp rule.

It's an estimation which isn't perfect. I haven't looked at the code for a long time, but it seems like the estimation is less accurate at lower levels.
I just checked with a party of 4 level 10 characters, and CR 3 is marked as pink, and 4 of them is indeed a "medium" challenge per the encounter building guidelines.

With a party of 4 level 10 characters, a CR 4 is marked as pink as well, however 4 of them are a hard challenge, not medium.
4 level 10 characters:
Easy: 2,400 exp
Medium: 4,800 exp
Hard: 7,600 exp
Deadly: 11,200 exp
4 CR 4 creatures:
Total XP: 4,400 (1,100 per player)
Adjusted XP: 8,800 (2,200 per player)
Difficulty: Hard
Legend Color: Pink "Group: Four of these is a medium challenge"
Looks like the legend is reading from the total xp, not the adjusted xp. I'll see if I can't fix it and get something submitted once I'm more familiar with the code base.


Agenda

resolve #5

Added agreed agenda

LGTM 👍

Just need @vitoc to approve and we can merge 😀 Thank you @KietNhiTran!

We need to review this one since it just was created based on the meeting minute last time. Giving the timeline is next week, I am not sure if the timing is working. :-)


vm-repair: Bug Fix when HyperV-version Variable is None

Quick few liner bug fix when the HyperV-version variable is none

add to S168

@yonzhan
I got an error from merge validation that
"Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically."
Has some process changed for PRs?

Yes, the process is changed to automatically release extensions. @haroldrandom can help with it.

You should not change source code and index.json at the same time right now.

src/index.json should't modify both in one PR, we have a release pipeline for publishing your extension automatically.
If you want to use it and hold extension wheel on CLI's official container, just leave src/index.json untouched. After this PR merge, another RP to update src/index.json will be created automatically.
If you still want to hold it in your own container, just fire another PR to update the src/index.json separately.
The detail should be listed in PR template.

Got it. That's great. Creating the wheel file, uploading it, and making the hash has always been really tedious and made PR changes difficult. This is an awesome change. Thanks.
Then when does the release pipeline happen? And how would I know it has been released with the index.json updated?

hi @qwordy could  you pls help to review/merge this PR? thanks

@swbae31

Then when does the release pipeline happen?
It's triggered once PR is merged into master branch but only build and upload only when extension upgrade (detecting via version).

Normally PR developer won't get notifed for the PR to update src/index.json, @fengzhou-msft and I will get notification once because code owner review mechanism. We will assign it to the assignee who responsible for the source PR to trigger this one, then approve it.
You can have a look how the other extension works. :)

/azp run


Reads from stdin?

Hello,
Is it possible to submit reads to the tool via a pipe or something else? I do not want to combine all my reads into one file, I would just like to submit them through the standard input, for example, through <(cat reads1 reads2 ... readsN).

Hello,
sadly currently ORNA does not support this way of loading the data.
Kind regards,
Marcel


Segmentation fault on pytest exit when creating a SerializableObjectWithMetadata

A user reported that there is a segmentation fault when running pytest + objects with metadata + the "fs" (fake filesystem) capture system.
Repro:
import opentimelineio as otio

# Does not segfault if you comment out this "test"
def test_empty_fs(fs):
    pass

def test_create_clip(capsys):
    # can be child classes of SerializableObjectWithMetadata (Clip, Gap, etc),
    # however other otio C++ classes appear to be ok (RationalTime, TimeRange,
    # TimeTransform)
    otio.core.SerializableObjectWithMetadata(
        # also does not segfault if you comment this out
        metadata={}
    )

Output:
❯ pytest otio_pytest_seg_fault.py --disable-warnings
============================================== test session starts ===============================================
platform darwin -- Python 3.8.13, pytest-7.2.0, pluggy-1.0.0
rootdir: /private/var/tmp
plugins: pyfakefs-5.0.0
collected 2 items

otio_pytest_seg_fault.py ..                                                                                [100%]

========================================== 2 passed, 1 warning in 0.09s ==========================================
zsh: segmentation fault  pytest otio_pytest_seg_fault.py --disable-warnings

(The warning is related to our use of imp and appears to be a red herring)

When OTIO is built in debug mode, we get a little bit more details:
Fatal Python error: PyThreadState_Get: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: finalizing (tstate=0x000055649b90a060)

Aborted (core dumped)

The fact that it crashes it metadata={} is given as an argument kind of suggests me it has to do with the round-trip in https://github.com/AcademySoftwareFoundation/OpenTimelineIO/blob/main/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp#L99-L121. This part of the code is pretty painful to debug...

(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff7e3d6b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ffff7ded958 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff7dd753d in __GI_abort () at abort.c:79
#4  0x00007ffff7af561f in fatal_error_exit (status=-1) at Python/pylifecycle.c:2553
#5  fatal_error (fd=<optimized out>, header=header@entry=1, prefix=prefix@entry=0x7ffff7ce76d0 <__func__.6.lto_priv.2> "PyThreadState_Get",
    msg=msg@entry=0x7ffff7c8e200 "the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)", status=status@entry=-1)
    at Python/pylifecycle.c:2664
#6  0x00007ffff7af59fe in _Py_FatalErrorFunc (func=0x7ffff7ce76d0 <__func__.6.lto_priv.2> "PyThreadState_Get",
    msg=0x7ffff7c8e200 "the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)") at Python/pylifecycle.c:2750
#7  0x00007ffff7af5a51 in _Py_FatalError_TstateNULL (func=<optimized out>) at Python/ceval.c:271
#8  0x00007ffff7a63c30 in _Py_EnsureFuncTstateNotNULL (tstate=0x0, func=0x7ffff7ce76d0 <__func__.6.lto_priv.2> "PyThreadState_Get") at ./Include/internal/pycore_pystate.h:95
#9  PyThreadState_Get () at Python/pystate.c:1015
#10 tupledealloc (op=0x7ffff5f1be60) at Objects/tupleobject.c:272
#11 0x00007ffff7b57c1c in _Py_Dealloc (op=<optimized out>) at Objects/object.c:2300
#12 _Py_DECREF (op=<optimized out>) at ./Include/object.h:500
#13 _Py_XDECREF (op=<optimized out>) at ./Include/object.h:567
#14 code_dealloc (co=0x7ffff5f3f9f0) at Objects/codeobject.c:658
#15 0x00007ffff7b53557 in _Py_Dealloc (op=<optimized out>) at Objects/object.c:2300
#16 _Py_DECREF (op=<optimized out>) at ./Include/object.h:500
#17 func_clear (op=0x7ffff5f1e710) at Objects/funcobject.c:626
#18 func_dealloc (op=0x7ffff5f1e710) at Objects/funcobject.c:648
#19 0x00007ffff581a6a5 in _Py_DECREF (op=0x7ffff5f1e710) at /usr/include/python3.10/object.h:500
#20 0x00007ffff581bbca in _Py_XDECREF (op=0x7ffff5f1e710) at /usr/include/python3.10/object.h:567
#21 0x00007ffff581cfcf in pybind11::handle::dec_ref() const & (this=0x7ffff5b0a130 <_value_to_any>)
    at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/deps/pybind11/include/pybind11/pytypes.h:260
#22 0x00007ffff581d0b0 in pybind11::object::~object (this=0x7ffff5b0a130 <_value_to_any>, __in_chrg=<optimized out>)
    at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/deps/pybind11/include/pybind11/pytypes.h:323
#23 0x00007ffff7deffa5 in __run_exit_handlers (status=status@entry=0, listp=0x7ffff7f8d760 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true)
    at exit.c:113
#24 0x00007ffff7df0120 in __GI_exit (status=status@entry=0) at exit.c:143
#25 0x00007ffff7aa8699 in Py_Exit (sts=0) at Python/pylifecycle.c:2862
#26 0x00007ffff7a9f910 in handle_system_exit () at Python/pythonrun.c:775
#27 0x00007ffff7c1861c in _PyErr_PrintEx (set_sys_last_vars=1, tstate=0x55555555ed50) at Python/pythonrun.c:785
#28 PyErr_PrintEx (set_sys_last_vars=1) at Python/pythonrun.c:880
#29 0x00007ffff7aa10e7 in PyErr_Print () at Python/pythonrun.c:886
#30 _PyRun_SimpleFileObject (fp=<optimized out>, filename=<optimized out>, closeit=<optimized out>, flags=0x7fffffffe308) at Python/pythonrun.c:462
#31 0x00007ffff7aa1a6e in _PyRun_AnyFileObject (fp=0x55555555a470, filename=0x7ffff74424f0, closeit=1, flags=0x7fffffffe308) at Python/pythonrun.c:90
#32 0x00007ffff7c0ea6d in pymain_run_file_obj (skip_source_first_line=0, filename=0x7ffff74424f0, program_name=0x7ffff74b4810) at Modules/main.c:353
#33 pymain_run_file (config=0x5555555855a0) at Modules/main.c:372
#34 pymain_run_python (exitcode=0x7fffffffe304) at Modules/main.c:587
#35 Py_RunMain () at Modules/main.c:666
#36 0x00007ffff7be3c9b in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:720
#37 0x00007ffff7dd8290 in __libc_start_call_main (main=main@entry=0x555555555120 <main>, argc=argc@entry=3, argv=argv@entry=0x7fffffffe538) at ../sysdeps/nptl/libc_start_call_main.h:58
#38 0x00007ffff7dd834a in __libc_start_main_impl (main=0x555555555120 <main>, argc=3, argv=0x7fffffffe538, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
    stack_end=0x7fffffffe528) at ../csu/libc-start.c:381
#39 0x0000555555555045 in _start () at ../sysdeps/x86_64/start.S:115

Alright, with GDB atatched, we get this. The interesting part of that backtrace is:
#21 0x00007ffff581cfcf in pybind11::handle::dec_ref() const & (this=0x7ffff5b0a130 <_value_to_any>)
    at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/deps/pybind11/include/pybind11/pytypes.h:260

Notice the _value_to_any, which confirms my suspicion.

Some more information:
https://github.com/AcademySoftwareFoundation/OpenTimelineIO/blob/main/src/py-opentimelineio/opentimelineio/core/_core_utils.py#L61 is executed properly, which means that at least opentimelineio.core._core_utils._value_to_any was called and it returns.
Also found https://github.com/pytest-dev/pyfakefs/issues/693 which kind of means that pyfakefs can break stuff. Looking at the pyfakefs code, it seems extremely intrusive.

By doing a small change, we can verify if _value_to_any actually returns something or it it crashes while converting the return value:
diff --git a/src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp b/src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp
index b3338eb..4f37429 100644
--- a/src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp
+++ b/src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp
@@ -188,7 +188,8 @@ static void define_bases1(py::module m) {
     py::class_<SOWithMetadata, SerializableObject,
                managing_ptr<SOWithMetadata>>(m, "SerializableObjectWithMetadata", py::dynamic_attr())
         .def(py::init([](std::string name, py::object metadata) {
-                    return new SOWithMetadata(name, py_to_any_dictionary(metadata));
+                    auto asd = py_to_any_dictionary(metadata);
+                    return new SOWithMetadata(name, asd);
                 }),
             py::arg_v("name"_a = std::string()),
             py::arg_v("metadata"_a = py::none()))
diff --git a/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp b/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp
index c327374..55ed8ea 100644
--- a/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp
+++ b/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp
@@ -102,7 +102,8 @@ static void py_to_any(py::object const& o, any* result) {
         _value_to_any = core.attr("_value_to_any");
     }

-    result->swap(_value_to_any(o).cast<PyAny*>()->a);
+    py::object tmp = _value_to_any(o);
+    result->swap(tmp.cast<PyAny*>()->a);
 }

 AnyDictionary py_to_any_dictionary(py::object const& o) {

Then in GDB:
(gdb) b otio_utils.cpp:105
(gdb) b otio_utils.cpp:106
(gdb) b otio_utils.cpp:121
(gdb) b otio_serializableObjects.cpp:192
(gdb) run .venv/bin/pytest tests/test_asd.py
Starting program: /home/jcmorin/jcmenv/aswf/OpenTimelineIO/.venv/bin/python .venv/bin/pytest tests/test_asd.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
================================================================================== test session starts ==================================================================================
platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/jcmorin/jcmenv/aswf/OpenTimelineIO
plugins: cov-4.0.0, pyfakefs-5.0.0
collected 2 items

tests/test_asd.py .
Breakpoint 1, py_to_any (o=..., result=0x7fffffff9400) at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp:105
105	    py::object tmp = _value_to_any(o);
(gdb) l
100	    if (_value_to_any.is_none()) {
101	        py::object core = py::module::import("opentimelineio.core");
102	        _value_to_any = core.attr("_value_to_any");
103	    }
104
105	    py::object tmp = _value_to_any(o);
106	    result->swap(tmp.cast<PyAny*>()->a);
107	}
108
109	AnyDictionary py_to_any_dictionary(py::object const& o) {
(gdb) c
Continuing.

Breakpoint 2, py_to_any (o=..., result=0x7fffffff9400) at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp:106
106	    result->swap(tmp.cast<PyAny*>()->a);
(gdb) l
101	        py::object core = py::module::import("opentimelineio.core");
102	        _value_to_any = core.attr("_value_to_any");
103	    }
104
105	    py::object tmp = _value_to_any(o);
106	    result->swap(tmp.cast<PyAny*>()->a);
107	}
108
109	AnyDictionary py_to_any_dictionary(py::object const& o) {
110	    if (o.is_none()) {
(gdb) c
Continuing.

Breakpoint 3, py_to_any_dictionary (o=...) at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp:121
121	    return safely_cast_any_dictionary_any(a);
(gdb) l
116	    if (!compare_typeids(a.type(), typeid(AnyDictionary))) {
117	        throw py::type_error(string_printf("Expected an AnyDictionary (i.e. metadata); got %s instead",
118	                                           type_name_for_error_message(a).c_str()));
119	    }
120
121	    return safely_cast_any_dictionary_any(a);
122	}
123
124	py::object any_to_py(any const& a, bool top_level) {
125	    std::type_info const& tInfo = a.type();
(gdb) c
Continuing.

Breakpoint 2, operator() (__closure=0x5555559f63d8, name="", metadata=...) at /home/jcmorin/jcmenv/aswf/OpenTimelineIO/src/py-opentimelineio/opentimelineio-bindings/otio_serializableObjects.cpp:192
192	                    return new SOWithMetadata(name, asd);
(gdb) l
187
188	    py::class_<SOWithMetadata, SerializableObject,
189	               managing_ptr<SOWithMetadata>>(m, "SerializableObjectWithMetadata", py::dynamic_attr())
190	        .def(py::init([](std::string name, py::object metadata) {
191	                    auto asd = py_to_any_dictionary(metadata);
192	                    return new SOWithMetadata(name, asd);
193	                }),
194	            py::arg_v("name"_a = std::string()),
195	            py::arg_v("metadata"_a = py::none()))
196	        .def_property_readonly("metadata", [](SOWithMetadata* s) {

So _value_to_any returns a py::object as expected and the cast works, then safely_cast_any_dictionary_any is called and seems to be working. Then the breakpoint at line 192 is hit. So it either crashes while creating SOWithMetadata or hile returning SOWithMetadata. Or something like that.

Thanks! We will test this workaround to see if it helps.

Alternatively, you could use a fixture without caching instead of fs, e.g.:
import pytest
from pyfakefs.fake_filesystem_unittest import Patcher

@pytest.fixture
def fs_no_cache():
    with Patcher(use_cache=False) as patcher:
        yield patcher.fs

...
def test_empty_fs(fs_no_cache):
    pass

Caching is a performance feature that is only relevant if you run a larger number of tests with fs.
This is the first time I see a side-effect from caching, but I had added the possibility to switch it off at the time just in case...

Ok, I've released a patch release, please check if your tests work with the current version!

Nice, thanks @mrbean-bremen !


#19416 Toolbar font fix

Acceptance criteria:

[x] Original request from #19416
[x] Toolbar size is not changed when changing the main font, and all its elements are visible all time

Verified


Revert "Use platform instead of window"

Reverts tildeio/rsvp.js#380

unsure why i was trying to revert this..


New task steps config

Revision to the task steps configuration format for the new HMM direction for a future revised task monitor node. This is intended to replace the mit_ll_eval_one_coffee_recipe_steps.json when the time comes.

@alexander-lynch Matt suggested that you complete this PR, filling in the part marked "TODO".

LGTM

I'm adding a couple comments to describe fields in the config.

We don't have a reference to a background class. We have a few options here.

We can enforce that the first step of every recipe is 'background', and then my HMM class can parse this yaml and infer that the first step (and the associated activity class enum) is a background activity. This way, my HMM knows which activity enum to treat as a background action.
We explicitly do not include a background step in the recipe. But internally, my HMM needs to assign a background action, so it needs to know where to find the confidence for that action in the classifier confidences. Background could always be index 0 or always called 'background' if we are going with string-based encoding.

We don't have a reference to a background class. ...

Your HMM parameterization could have a parameter like activity_background_class_id that we set to an integer, e.g. 0.


Suite hooks defined with Attributes not working

When I define a BeforeSuite hook using the attribute syntax, the method is never run.
use Behat\Testwork\Hook\Call\BeforeSuite;
[...]
#[BeforeSuite]
public static function beforeSuite(): void
{
    echo 'Not run';
}

but when using the annotation syntax it works
/** @BeforeSuite */
public static function beforeSuite(): void
{
    echo 'Not run';
}

Maybe this is the expected behaviour but it is counter intuitive as the documentation refers to the Behat\Testwork\Hook\Call\BeforeSuite as the correct class to use to hook before the suite is ran

Attribute classes are in the Behat\Hook namespace. But it looks like the attribute reader has not been implemented with the full list of hooks but a partial list.

@rpkamp was there a specific reason to implement only a subset of hooks in https://github.com/Behat/Behat/pull/1372 ?

No, no specific reason. I guess it was just an oversight :/

@rpkamp  Any news on this subject ? When will the attribute hook be available ?

I've just opened a PR for BeforeSuite/AfterSuite attributes -- https://github.com/Behat/Behat/pull/1511

Closed via https://github.com/Behat/Behat/pull/1511


Fix KMeansMiniBatch memcheck error

See #3683

Shall I merge it then?

@karlnapf the error was in fact caught by mem-checking one of the unit-tests. Similar errors are caught in #3685 much more easily when I added a REQUIRE in SGMatrix::set_const (please check the neural network related file changes).. Some of the underlying methods are not guarded properly.. So until shogun base/lib is properly unit-tested, it's hard to catch them in applications such as this :(


Upload Videos or News

I am a user and I have found a video or a news that can be interesting for the game, I want to send it to the site administrator to validate it.

I as a Administrator can manage if a video that was uploaded is getting into the game or not


Room heading missing while applying track filter on rooms page

Actual Behaviour
The room name is not displayed when track filter is applied on the rooms page.
Expected Behaviour
The name of the room must be displayed with or without any filter.
Steps to reproduce it

Go to rooms page
Click on a track from the right menu.

Screenshots of the issue
Without filter

With Filter

@geekyd all same tracks are not in the same room, so how to display the rooms heading which are different for the same track?

I would like to work on this.


Inflation check web socket

This would make the inflation check spinner turn into a green check box without having to refresh the page.
Use a web socket to update the inflation check spinners when inflation checking is done.
This is an easier application for web sockets than #43, because it doesn't rely on ZMQ (or any notification from the node).
It's also a nice feature to have before the upcoming halving.

Implemented in 42402a1356acb20ef8019507926a96df006b447d


fix(ui): UI cleanup

Using #1350 as a guide, this PR includes an initial cleanup to some of the more jarring issues of the app, for example: the skewed images on the Meet the Team page.

Note During this exercise, I noticed we also need to do a cleanup with the SCSS sheets as well (saving that for another PR).

@vpchung  Thanks for improving the app UI.
The icon and label seems not aligned in the filters - not sure if it's just on my end

I confirm that the label of checkboxes and radio buttons are not aligned.

Thanks, @rrchai! I noticed the same for the breadcrumbs so I made a note of it in #1350.  I'll add the facet misalignments too.

tschaffter requested changes 3 days ago

Oh, nevermind, I'll address them in this PR then.

Something weird happened on my end, so I am starting over. Closing this PR for now.


Add check to remove dead code only when function name is replaced

This PR makes sure we try to remove dead code only when we replace the Numpy function names with our own. Removing dead code regardless was failing in cases where we have multiple prange as mentioned in this issue. This PR should close https://github.com/IntelPython/numba-dppy/issues/302.

@PokhodenkoSA this bug was noticed originally because this test was falling back. This PR fixes this test from falling back and offloads it through our pipeline. Should we ask the original author of that test to make sure it fails if it is falling back instead of going through our pipeline?
I can always write tests and that would require setting up a partial compiler pipeline to test it, which is tedious. Please share your thoughts.

this test was falling back.

Does it mean that test did not check that code falling back? So test was blind?
No when you fix the code did you fix the test to check that fallback is not happening now?
I think test should be fixed first to catch bad situation and show that the test fails. Then your fix for the feature should show that it makes test passing.

Does it mean that test did not check that code falling back? So test was blind?
Yes.

I have updated the tests to check for falling back.

@PokhodenkoSA @diptorupd Can you please review it?


Problem throw error for default controller

Problem for routing without using namespace:
case-1 = $routes->add('', 'Home::index') $this->controller has value of Home, result OK
case-2 = $routes->add('/', 'Home::index') $this->controller has value of \Home, result ErrorException line 500
Problem for routing with namespace
case-1 = $routes->add('/', 'Home::index', ['namespace'=>'App\Controllers']) $this->controller has value of \App\Controllers\Home, result ErrorException line 500

What does line 500 really do in /system/Controller.php.

There is no line 500 in system/Controller. I'm going to guess that was actually in system/CodeIgniter.php, since that area has to do with booting the controller up.
With the very latest code, I'm not getting any errors during these scenarios, but I did fix one or two smaller issues with routing last night, so that might be why.
Can you try again with the latest code and see if you're still getting the same issue?

Ye, that was actually in system/CodeIgniter.php line 500 ;
include APPPATH.'Controllers/'.$this->router->directory().$this->controller.'.php';
I have latest code from github and still have this problem.

I just made another push that, on my system, allows me to auto-route with or without namespaces. Can you check yours?
If it doesn't work, please provide details on your server, OS, etc.

Linux i686 Lubuntu 16.04, php 7.0.4 and Codeigniter4(branch::develop)
ErrorException
include(/home/xxxxx/CodeIgniter4/application/Controllers/\App\Controllers\Home.php): failed to open stream: No such file or directory

Hm. Could you describe your app setup in detail? Here's mine, which should match the defaults currently:

Routes.php - defaultNamespace = 'App\Controllers'
Routes.php - autoRoute = true
Routes.php - $routes->add('/', 'Home::index');
Home Controller - namespace = App\Controllers
.htaccess file in place.
Accessing /, /home, or /home/index all work for me

Oh - and what file/line is giving that error now?

Its solve now, changes commit 60effd6 have fixed this issues, Thanks a lot.
Did latest commit allow controller under subfolder works without using namespace?
I get new error if route to controller that does not exist like http://<IP_ADDRESS>:2000/blog it should trigger 404 but again throw error exception:
ErrorException
include(/home/xxxxx/CodeIgniter4/application/Controllers/Sub.php): failed to open stream: No such file or directory

Non-namespaced auto-routing in sub-folders should be working now, yes.
Good point about the non-existing controllers. I was so focused on getting everything else to work, I forgot a basic check to see if the file existed first. Doh!

Non-namespaced auto-routing in sub-folders still not works. In method autoRoute(), line 405, $this->directory does not determine the directory of specific file. Before set first segment to be the controller, I think it should determine whether the first segment is sub-folder or controller;
http://<IP_ADDRESS>:2000/home does return Home as controller -> OK
http://<IP_ADDRESS>:2000/home/index does return Home as controller -> OK
http://<IP_ADDRESS>:2000/subfolder/home does return Subfolder as controller -> 404
http://<IP_ADDRESS>:2000/subfolder/home/index does return Subfolder as controller -> 404

Non-namespaced auto-routing in sub-folders still not works. In method autoRoute(), line 405, $this->directory does not determine the directory of specific file. Before set first segment to be the controller, I think it should determine whether the first segment is sub-folder or controller;
http://<IP_ADDRESS>:2000/home does return Home as controller -> OK
http://<IP_ADDRESS>:2000/home/index does return Home as controller -> OK
http://<IP_ADDRESS>:2000/subfolder/home does return Subfolder as controller -> 404
http://<IP_ADDRESS>:2000/subfolder/home/index does return Subfolder as controller -> 404

In method validateRequest(), line 444 :
is_dir(APPPATH.'Controllers/'.$this->directory.$segments[0])
The $segments[0] should be ucfirst($segments[0]) for linux os, or else will return false.
I change those, and auto-routing in sub-folders seem works.

Good catch. Fixed in<PHONE_NUMBER>791707da9d681cefbff5ea73eb4170


Changing floating point precision of joints.

Hi, I want to as if there is possibility of changing floating point precision of joints that I get from Hands project. By default it is 'float64' and I'd like to change it to 'float32'.
Thanks for help.
System:

Windows 10

Software:

Python 3.7
mediapipe <IP_ADDRESS>; Hands project

Hi @IgorZaton, Have you tried doing it like this

Hi @IgorZaton, Could you please respond to my above comment. Thanks!

Hi, I don't mean to convert those joints to float32 but to set single precision as default so my computations would be faster.

Hi @IgorZaton ,
Are you still looking for the resolution on this issue.


AIRFLOW-16: Update Google cloud hooks to use new Google cloud platfor…

https://issues.apache.org/jira/browse/AIRFLOW-16

This PR should also fix https://github.com/airbnb/airflow/issues/1354

Coverage decreased (-0.01%) to 67.116% when pulling bfdd1caf26246ef9d7df3530ca6a4e7701e2c56d on criccomini:improve-gcp-hooks into 86e3957860ee40aa7fe78d47e26f02fe18cc9f7a on airbnb:master.


Free image generation API

Good day! I've created my own completely free image generation api. Thought you might be interested in adding it to your list. Here is the link: https://github.com/Metim0l/VisionCraft

Hi @Metim0l
Thanks for opening this issue ;)
We have some problems with Public APIs, so we won't be able to review/add this improvement right now.
Read this issue for more information, please: https://github.com/public-apis/public-apis/issues/3104


Streaming remaining issues

[ ] figure out if we should be setting ttfb on non-streambale types (would be nice to differentiate)

[ ] analytics event not thrown via downloads button

[x] autoclaiming of featured and download rewards not happening.

[ ] Fix pop out player on small screens

[ ] check file completed + download path - if exists, play audio/video/images from that source instead of streamingurl (otherwise, if someone turns of hosting blobs only, it will redownload blobs instead of playing from the file they have saved)

[ ] users are confused on how to move around the pop out player...not clear you can drag the bottom part. The old version used to have a top area that was draggable.

[x] if you are in popout mode and delete some other file, the player disappears (thx community testing!!!)

[x] fix autoplay - it's working on all file types, but we say only media files (audio/video). Should probably work for audio/video/image.

[x] streamed files (streaming only mode) show as downloaded on claim preview (have the icon). File page shows the status correctly (not downloaded) - we use makeSelectFileInfoForUri which doesn't filter. Need to add a new selector or filter in FileProperties

[x] fix file deletion - file is not deleted, you get a loading screen.

[x] if blobs or file are deleted, call get to rebuild the file / downloaded blobs if the file not streamable or if the save file setting is on (or if add to lbry is called). If you delete a file outside of the app, it gets stuck at "loading..." when trying to play it.

[x] when you click "add to library" - we're missing the "connecting" status. Right now the download percentage doesn't show until it actually starts downloading.  (in streaming-only mode)

[x] can't click "add to library" while streaming (in streaming-only mode)

[x] on failed streams, can't exit popout player / overlapping text:

@tzarebczan the popout player issues are in another ticket. Can you split anything remaining here out into another ticket?

https://github.com/lbryio/lbry-desktop/issues/2750
https://github.com/lbryio/lbry-desktop/issues/2769
https://github.com/lbryio/lbry-desktop/issues/2768
https://github.com/lbryio/lbry-desktop/issues/2770


bug: after navigate between nested tabs, IonTabButton didn't work correctly

Bug Report
Ionic version:

[x] 5.0.7
Current behavior:

I have two tabs with sub tab:

Tab1

SubTab1

Tab2

SubTab2

What I do:

go to SubTab1 by history.push (in Tab1)
go to SubTab2 by history.push (in SubTab1)
click IonBackButton twice, go back to Tab1
click IonTabButton for Tab2, show me SubTab2 page
click IonBackButton in SubTab2, show me Tab1 page

Expected behavior:

1~3 the same as above
4. when I click IonTabButton for Tab2 show me Tab2, not SubTab2
Steps to reproduce:

A sample
Related code:

Other information:

Ionic info:

Ionic:

   Ionic CLI       : 6.5.0 (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework : @ionic/react 5.0.7

Capacitor:

   Capacitor CLI   : 2.0.1
   @capacitor/core : 2.0.1

Utility:

   cordova-res : not installed
   native-run  : 0.3.0

System:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.13.6
   OS     : Windows 7

Hi @Yansuuu,
We have a dev release that should fix this issue. If you can, could you try to install it and let us know if it fixes the issue and if you run into any others? To install it run:
npm i<EMAIL_ADDRESS><EMAIL_ADDRESS>If all goes good this should be available in the next Ionic release.
Thanks!

Hi @elylucas ,
Sorry for my late reply.
This exactly what i need!
And my code is simple, so i don't run into any other issues.
Thanks a lot!


DELIA-46582 : Cherrypick Infoplugins to sprint/2010

Reason for change: Cherrypick Infoplugins from
sprint/2009 to sprint/2010
Test Procedure:Check Ticket
Risks: None
Signed-off-by: Vinod Jacob<EMAIL_ADDRESS>

@anooja-ku, could you please review the cherry-picked changes from sprint/2009 to sprint/2010.

looks okay

Wasn't able to create a Jenkins image with these changes as Thunder revision on 2010_sprint is still pointing to `
R1 08/19/2020
--
  | SRCREV = "53a4e35904641391dc5d04afa7b147c4fbd79706"
`
Trying to generate a build by manually updating the Thunder revision to the latest as per rdkcentral/Thunder is causing build errors in other plugins, as they will need to be cherry-picked to 2010 sprint as well

These changes have been added in the PR
https://github.com/rdkcentral/rdkservices/pull/409


Add resource waiter to Lambda for Function Active or Inactive

Is your feature request related to a problem? Please describe.
Before updating a lambda you need to confirm that its State is Active or Inactive

NOTE: Functions can only be updated if they are in the Active or Inactive state. Update commands issued against functions that aren’t in the Active or Inactive state will fail before execution.

Reference: https://aws.amazon.com/blogs/compute/tracking-the-state-of-lambda-functions/
Describe the solution you'd like
Add a new waiter to https://github.com/boto/botocore/blob/develop/botocore/data/lambda/2015-03-31/waiters-2.json that is similar to FunctionActive
Example
    "FunctionActiveOrInactive": {
      "delay": 5,
      "maxAttempts": 60,
      "operation": "GetFunctionConfiguration",
      "description": "Waits for the function's State to be Active or Inactive.",
      "acceptors": [
        {
          "state": "success",
          "matcher": "path",
          "argument": "State",
          "expected": "Active"
        },
        {
          "state": "success",
          "matcher": "path",
          "argument": "State",
          "expected": "Inactive"
        },
        {
          "state": "failure",
          "matcher": "path",
          "argument": "State",
          "expected": "Failed"
        },
        {
          "state": "retry",
          "matcher": "path",
          "argument": "State",
          "expected": "Pending"
        }
      ]
    }

Hi @anjo-swe, thanks for reaching out. Waiters generally follow the pattern of waiting for one specific state rather than two. But I can see the reasoning behind this use case. I’ll reach out to the Lambda team to get their thoughts and let you know when I hear back.
Since this request would apply across SDKs, I’m transferring this to our aws-sdk repo. Here is the new issue I created: https://github.com/aws/aws-sdk/issues/155. Please refer to that issue for updates going forward.


The transformer shouldn’t decide where an image lives

As part of the WI migration, we need to split images into three buckets:

Cold store/Glacier (eventually to be deleted)
Tandem Vault
~Digital Library~ Catalogue API

Right now the transformer encodes this logic by determining whether an image should appear in the Catalogue API or not – if we want to do the ternary distinction, we’ll need to duplicate the logic outside the transformer. Ick.
We should remove this responsibility from the transformer – instead, put a column on the MiroData table that records which of these buckets an image ends up in, and push the logic down into the Miro adapter (so we only need to write it once!). Then the Transformer just checks if it has Destination == CatalogueAPI.
This will also make it easier to cherry-pick images between buckets, and count how many images there are in each bucket.

Precursor for #517.

BTW, this is one area in which #870 is going to come in very handy.

Replaced by #882, which has more detailed thinking.


Emacs Mode for Rock

It would be nice to have a simple Emacs mode for this programming language.  I will write it in the near future and submit it as pull request, unless there are any objections to including such a thing within the project.

As per http://ooc-lang.org/docs/tools/editors/#emacs there is already an ooc mode, although it hasn't been touched since 2010 and could certainly use some love!
Even the vim syntax and the pygments highlight file (what GitHub uses to do syntax colouring) could use some love, I don't think they support new stuff like floating point literal support.
It would be easier to have comprehensive syntax files if I was doing a better job of maintaining the docs! But I'll be happy to answer any questions (by looking at the grammar, as a last resort.)

(So, closing, but feel free to open a pull request on https://github.com/fasterthanlime/ooc-lang.org if you have a more updated fork of ooc-mode — provided @nixeagle isn't interested in shepherding it anymore!)

Thanks for the info!  I'll take a look at the existing ooc-mode and hack on it in my spare time.  If I make any significant improvements I'll be sure to send them your way.


ParallelExecution plugin uses a busy loop

This consumes cpu cycles while waiting for completion. Reported by Helmuthoffer von Ankershoffen in a comment, including a proposed fix. See: http://www.solarium-project.org/2012/01/new-solarium-plugin-parallelexecution/

While trying to resolve this issue I run into two issues:

in the existing solution I can't reproduce the high CPU usage, not even with queries that I've forced to take 10 seconds. I need to try this on multiple setups to reproduce it and reliably fix this issue.
the proposed solution works, but in case of two query responses returning in the same millisecond an extra delay of 1 second (default curl_multi_select timeout) is added. While this might seem a small chance this is something I can easily reproduce with a query coming from cache.

I was able to reproduce the issue on a low-resource VM. Apparently on my development environment the load is too low to notice.
The extra delay issues only seems to occur on localhost connections and can be negated with a lower timeout section.
Both fixes have been committed in the 2.4.0 release branch.


fix: small test fix keyword equality

Contributor checklist

[ ] Bug fixes include regression tests
[ ] Features include unit/acceptance tests

🚀 Thank you for your contribution! 🚀


failed to generate /tmp/.tmp1rdtAC/program.o when building libbpf-rs based crate

Crate name
cgroup_traffic
Build failure link
https://docs.rs/crate/cgroup_traffic/0.1.3/builds/1372216
Additional details
This is a crate based on libbpf-rs. The build.rs use clang to generate ebpf intermediate code. But if failed and compained that it cannot write to tmpfs
called `Result::unwrap()` on an `Err` value: failed to generate `/tmp/.tmp1rdtAC/program.o`

Right now, everything except cargo OUT_DIR is readonly, see also our documentation.
So if the library writes to the directory in the OUT_DIR, you're fine.
Thinking about this generally, I'm not sure why /tmp/ isn't writeable too, though I'm not sure if it then should be a docker volume, or link to a temporary directory on our build server host.


User name format does not work with ProxySQL

Our current set-up on AWS uses ProxySQL (https://proxysql.com/) in front of a MySQL on AWS RDS. Refer https://github.com/chainhead/mysql-demo for an example. However, on Azure, the following command does not work:
mysql -h <IP_ADDRESS> -P6032 -u dbuser@server -p It returns an error as 'dbuser'@'server'@'localhost' not having access.
Note that, the host and port point to the ProxySQL server that will route the request to the back-end MySQL database.
Can you please suggest a workaround? Not being able to use ProxySQL is a big show stopper for us!

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

ID: 1f766765-03b0-2d76-7fe0-42b207afd9f9
Version Independent ID: cbd009b3-ba92-2207-d843-77c2268eb7a5
Content: Quickstart: Create Azure Database for MySQL server - Azure portal
Content Source: articles/mysql/quickstart-create-mysql-server-database-using-azure-portal.md
Service: mysql
GitHub Login: @ajlam
Microsoft Alias: andrela

@chainhead Thanks for the question. We are looking into this and will get back to you regarding this.

@chainhead The Connectivity in Azure for MySQL works differently from AWS. MySQL works with proxy by default, so would need to add each public IP and publish it in MySQL Server for any allowed IP to access the service which means public IP would need to be white listed under the MySQL server’s Firewall rules
Additionally you can check this document for MySql connectivity architecture:
https://docs.microsoft.com/en-us/azure/mysql/concepts-connectivity-architecture

MySQL works with proxy by default, so would need to add each public IP and publish it in MySQL Server for any allowed IP to access the service which means public IP would need to be white listed under the MySQL server’s Firewall rules

Long-winded sentence - not clear!
I did define a user in MySQL as 'demo1'@'%' (close to what is shown here https://docs.microsoft.com/en-us/azure/mysql/howto-create-users). The firewall for MySQL is set to take connections in the range of <IP_ADDRESS> to <IP_ADDRESS> because I have added a Microsoft.Sql service end-point. The addition of a service end-point works despite the end-point being named (deceptively) as Micorsoft.Sql - https://docs.microsoft.com/en-us/azure/mysql/concepts-data-access-and-security-vnet#terminology-and-description
While all this discussion is around connectivity, the larger problem is the inability to use ProxySQL for its intended purposes e.g. connection pooling, query rules and so on (https://www.percona.com/resources/technical-presentations/proxysql-use-case-scenarios-percona-mysql-webinar). Or, are these things also managed by Azure?

@chainhead No need for proxysql.com as the Azure Database for MySQL (PaaS) service provides a GW service the brokers all connections to your MySQL instance. If there is functionality you are specifically seeking that proxysql.com provides, can you detail that? If you look at the server params for your MySQL deployment, you will find those parameters that are available.
How to configure server parameters in Azure Database for MySQL by using the Azure portal (link)
If you desire the use of proxysql.com, you can deploy an Azure Ubuntu VM with a MySQL image and set-up a solution exactly as detailed in the below diagram. There are some limitations with the Azure Database for MySQL (PaaS) as you don't have access to the my.cnf file and not all server properties are exposed through the Azure Portal. In this case, you could deploy a MySQL VM and set up a solution similar to the image below as an IaaS solution. Please see the Azure Marketplace (link) for available apps.

One caveat is that the load balancer is a separate service that you would deploy (link).
I hope this information is helpful and please do ask additional questions as you need to understand more. The PaaS service will not accommodate your desire to leverage proxysql.com.
Some additional information to help you understand some key Azure concepts:

The Microsoft.sql service end-point is a common service across all Azure Database PaaS services (Azure SQL Database single instance and managed pools, MySQL, MariaDB, and PostgreSQL).
A VNet service end-point allows for private address space and a firewall allow/deny list is still required with or without the service end-point.
The Azure Database for MySQL is a PaaS offering and deploying a MySQL instance in an Azure VM is IaaS, where you have more control...specifically to the core *.cnf files and access to the superuser account.

Again, please let us know if you have additional questions.

If there is functionality you are specifically seeking that proxysql.com provides, can you detail that?
I would request you to refer this link  for ProxySQL features (e.g. read/write splits among others) and critique on how Azure MySQL achieves them natively.

As of now, I have successfully developed an Azure equivalent solution that uses Azure Database for MySQL and VMs for hosting the load balancer and APIs. I couldn't use ProxySQL; hence this question. (I know, I can use an API Gateway with serverless compute that will eliminate the load balancer and API VMs - but, one step at a time. :-) ).

@chainhead We understand your need completely and it may not be available right now but you can definitely add your idea for use of proxysql to the following user voice link for MySql so that product team can look into this further.
https://feedback.azure.com/forums/597982-azure-database-for-mysql
@ajlam Adding you to this conversation, so that you can check if the document can be enhanced to add a link or topic for open source/3rd party tools. or the functionality mentioned in the proxy sql link can be incorporated.

While I was going through the feedback page, I noticed this idea Single alias for all db server login names that can work for all master and replica servers. This idea is similar to the issue discussed here. I have up-voted that idea and also added mine.
Thanks for the support so far!

@chainhead
We now supports ProxySQL. For more information, you can refer to the blog Load balance read replicas using ProxySQL in Azure Database for MySQL.
Please let us know if you have any other question.

@ambhatna Truly appreciate you/your team/Microsoft for so promptly addressing my need!


chore: rustfmt: Enforce grouping and reordering imports

You should be able to land this after a rebase.


[SPARK-36205][INFRA] Use set-env instead of set-output in GitHub Actions

What changes were proposed in this pull request?
This PR is more a cleanup. It removes unused sync-branch id in some steps, and use set-env instead of set-output to set an env.
This can be backported to branch-3.2 too.
Why are the changes needed?
Cleanup.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
CI in this PR should test it out.

BTW, it would be great if we have a JIRA ID because it looks worth of backporting.

Oh sure.

Test build #141222 has started for PR 33412 at commit 3ee1cb7.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45735/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45735/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45735/

Test build #141236 has started for PR 33412 at commit 111a1b1.

all tests passed. I pushed another commit to check if the env is really set for doubly sure. I will revert the last commit and merge once that's verified.

Test build #141222 has finished for PR 33412 at commit 3ee1cb7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45750/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141222/

Test build #141241 has started for PR 33412 at commit 88bef03.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45750/

okay it does correctly:

Merged to master and branch-3.2

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45750/

Test build #141236 has finished for PR 33412 at commit 111a1b1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141236/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45755/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45755/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45755/

Test build #141241 has finished for PR 33412 at commit 88bef03.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141241/


ExitState.ServiceOutput is (incorrectly) interpreted as containing format specifier

As noted in https://github.com/atc0005/check-vmware/issues/725#issuecomment-1247908172, the v0.9.1 release contains an unintentional change that attempts to apply formatting to literal content.
As of the v0.8.2 release (correct):
https://github.com/atc0005/go-nagios/blob/8d5ac27dca0f1379b782b72ee7bfcdf83cf8d5f4/nagios.go#L272-L277
As of the v0.9.1 release (incorrect):
https://github.com/atc0005/go-nagios/blob/3d6cd8f67714449034ac00ab03c0860482d5173c/nagios.go#L335-L340
This produces unexpected results when preformatted ServiceOutput content is subjected to another formatting attempt.

This is a repeat of GH-58.


Arguments description in schema

Currently description is not supported for fields arguments.
I've tried to implement my own parameter middleware which takes description from the DocBlock:
// snip
if ($mappedParameter instanceof InputTypeParameter) {
    $paramTag = \Arr::first(
        $docBlock->getTagsByName('param'),
        fn(Param $paramTag) => $paramTag->getVariableName() === $parameter->getName(),
    );

    $desc = (string) $paramTag?->getDescription();

    $mappedParameter->setDescription($desc);
}
// snip

Expected result example
class ProductController {
    /**
     * @param ID $id The product id
     */
    #[Query]
    public function product(ID $id): Product {
        // ...
    }
}

type Query {
  product(
    "The product id"
    id: ID!
  ): Product!
}

But it's not working. I found that parameter description is ignored when creating QueryField from Descriptor, here:
https://github.com/thecodingmachine/graphqlite/blob/8d6a29248d7dc366815ce5e8677bd1e97bb9ae0b/src/InputTypeUtils.php#L115-L124

@downace a PR would be welcomed for support.  Does this include output type fields?  An implementation should cover all field arguments.

@downace a PR would be welcomed for support

Sure, working on it.

Does this include output type fields? An implementation should cover all fields, not just input type fields.

AFAIK, descriptions are currently supported everywhere (via DocBlocks or annotation's description parameter) except fields arguments.

AFAIK, descriptions are currently supported everywhere (via DocBlocks or annotation's description parameter) except fields arguments.

Yes, but fields can have arguments for input and output types, and those are two different types, which have different type mappers IIRC.


建议授权支持用户多选

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

当前版本为用户授权只能单选，如果用户多的话 很麻烦
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

附议

一个一个授权的我快疯了，20年的需求还没实现，帅哥们加把油啊

I think the better solution is to support assigning permissions to roles directly, see #2178


WIP on get_library; found bug on API

Thanks for the PR.  The team likes it but requests a few changes.  Once implemented please assign this ticket back to Dev and we can review/approve to get the PR merged in.        Rob     This email message, including any attached files, is confidential and intended solely for the use of the individual or entity to whom it has been addressed. Altium prohibits the right to publish, copy, distribute or disclose any information contained in this email, or its attachments, by any party other than the intended recipient. If you have received this email in error please notify the sender and delete it from your system.
                        On
                        Mon, 18 Mar at  6:19 PM
                        ,  NexarDeveloper/nexar-first-design-query<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
  https://github.com/NexarDeveloper/nexar-first-design-query/pull/2
Commit Summary
23c8264  WIP on get_library; found bug on API
File Changes    (13 files)
M
.gitignore
(354)

A
python/DesignQueryDemo/__init__.py
(0)

M
python/DesignQueryDemo/program.py
(6)

A
python/NexarClient/__init__.py
(0)

A
python/NexarClient/errors.py
(16)

M
python/NexarClient/localService.py
(8)

M
python/NexarClient/nexarClient.py
(42)

M
python/NexarClient/nexarToken.py
(197)

A
python/__init__.py
(0)

A
python/get_library.py
(67)

A
python/result.json
(9381)

A
python/shell.nix
(13)

A
python/shellHook.sh
(17)

Patch Links:
https://github.com/NexarDeveloper/nexar-first-design-query/pull/2.patch
https://github.com/NexarDeveloper/nexar-first-design-query/pull/2.diff
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>


How often will this be updated?

Hello,
I haven't found any discussion page or anything similar of the sort on github, but I did want to make sure and confirm this with maintainer...
How often will zips be updated with results from USPS or something like that?
Can there be two seperate packages: One for client-side with cached results, One server-side to be able to dynamically load new addresses on startup from source?
Thank you for your time!

The idea would be as the underlying list is republished I'd release a new patch version so if you update the package you'd get the latest zips with it. I'm relying on a 3rd party source that collates it from various sources. They last published April 2024, but I am not sure what their future cadence is.


Some formats don't parse

As far as I can tell, this format is acceptable WKT:
MULTIPOINT((10 40), (40 30), (20 20), (30 10))
However, this doesn't work
> var geometry = wkx.Geometry.parse("MULTIPOINT((10 40), (40 30), (20 20), (30 10))");
Error: Expected coordinate pair
    at WktParser.matchCoordinate (/Users/sacmac/node_modules/wkx/lib/wktparser.js:76:15)
    at WktParser.matchCoordinates (/Users/sacmac/node_modules/wkx/lib/wktparser.js:85:31)
    at Function.MultiPoint._parseWkt (/Users/sacmac/node_modules/wkx/lib/multipoint.js:27:59)
    at Function.Geometry._parseWkt (/Users/sacmac/node_modules/wkx/lib/geometry.js:58:27)
    at Function.Geometry.parse (/Users/sacmac/node_modules/wkx/lib/geometry.js:24:25)
    at repl:1:29
    at REPLServer.defaultEval (repl.js:248:27)
    at bound (domain.js:280:14)
    at REPLServer.runBound [as eval] (domain.js:293:12)
    at REPLServer.<anonymous> (repl.js:412:12)

But this does, without the parentheses surrounding each point pair
> var geometry = wkx.Geometry.parse("MULTIPOINT(10 40, 40 30, 20 20, 30 10)");
undefined

Any chance you could allow parsing of formats like MULTIPOINT((10 40), (40 30), (20 20), (30 10)) ?

Should be fixed now.
Thanks for reporting.

trying

cool, works


Create: 0946-validate-stack-sequences.cpp

File(s) Modified: 0946-validate-stack-sequences.cpp
Language(s) Used: C++
Submission URL: https://leetcode.com/problems/validate-stack-sequences/submissions/1142202452/

This solution matches the existing solution


Update error

structura16-26082023
Exception in Tkinter callback
Traceback (most recent call last):
File "urllib3\connection.py", line 174, in _new_conn
File "urllib3\util\connection.py", line 72, in create_connection
File "socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 703, in urlopen
File "urllib3\connectionpool.py", line 386, in _make_request
File "urllib3\connectionpool.py", line 1042, in _validate_conn
File "urllib3\connection.py", line 358, in connect
File "urllib3\connection.py", line 186, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000029DFECFC610>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests\adapters.py", line 489, in send
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\util\retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='smgafwso25.execute-api.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: /default/structuraUpdate (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000029DFECFC610>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tkinter_init_.py", line 1921, in call
File "structura.py", line 31, in update
File "updater.py", line 7, in update
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 587, in request
File "requests\sessions.py", line 701, in send
File "requests\adapters.py", line 565, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='smgafwso25.execute-api.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: /default/structuraUpdate (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000029DFECFC610>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Update to the latest version of structura. this is because i changed the url.


[CSM-352] [CSM-343] Redeem tx misbehaving

To be tested yet

@Martoon-00 don't forget to merge cardano-sl-0.5 with -s ours into this PR after #1238 is merged.


Improve archiver, fix hang on fifos

This PR contains several commits, which will:

Fix hanging on fifo files
Improve the archiver to process multiple dirs concurrently
Improve the backup user interface

Codecov Report

Merging #1741 into master will increase coverage by 0.4%.
The diff coverage is 80%.

@@            Coverage Diff            @@
##           master    #1741     +/-   ##
=========================================
+ Coverage   51.68%   52.09%   +0.4%
=========================================
  Files         158      159      +1
  Lines       12334    12413     +79
=========================================
+ Hits         6375     6466     +91
+ Misses       4968     4951     -17
- Partials      991      996      +5

Impacted Files
Coverage Δ

cmd/restic/global_release.go
0% <ø> (ø)
:arrow_up:

internal/ui/backup.go
0% <0%> (ø)
:arrow_up:

internal/archiver/file_saver.go
80.19% <100%> (+0.4%)
:arrow_up:

internal/archiver/blob_saver.go
100% <100%> (ø)
:arrow_up:

cmd/restic/global.go
27.16% <20%> (-0.24%)
:arrow_down:

internal/archiver/tree_saver.go
81.15% <81.15%> (ø)

internal/archiver/buffer.go
92.3% <81.81%> (+2.3%)
:arrow_up:

internal/archiver/archiver.go
69.25% <94.44%> (+3.29%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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


JS interop broken in flutter main

When trying to run me small test app I get:
Rejecting promise with error: Expected a value of type 'FontCollectionNamespace', but got one of type 'Null'
_js_helper.TypeErrorImpl.new
the Dart compiler exited unexpectedly.

This is with Flutter main tip-of-tree, which currently has Dart 3.0.0-417.0.dev. If I roll back to a week ago (Dart SDK `3.0.0-261.0.dev) then it works as expected.

cc @srujzs

I think this was a cache invalidation issue, see https://github.com/flutter/flutter/issues/123784.

Yes, can confirm that rm -rf bin/cache resolved the JS interop issue so resolving this.

It looks like https://github.com/flutter/flutter/issues/123784 was closed as a dupe of the present issue, but I just hit it again in https://github.com/dart-lang/sdk/issues/51998
I think we have to fix this for 3.10!


Improve logging utilities

Currently, the logging in the repository mostly uses print statements, an example which can be seen here. While this is useful, we want something more robust in the long run that can be more informative about the kind of bugs/errors that we might face. Improve the logging across all the backend services by using a dedicated logging library.

Can I work on this issue?

Hi @nawed2611, welcome to OrcaAL. Yes, this issue is currently not yet being handled, so you can feel free to work on it and read up on what might be a good logging library to use. I'd suggest also taking sometime to familiarize yourself with the existing code base and how to set up all the various services. Currently, the setup is still very tied to AWS, so you might have some issues accessing the data and resources. Do let us know if you require assistance with this, and keep a look out for the refactor-datahandlers branch as it's currently in works and hopes to allow a local data source instead for easier on-boarding of new developers!

Thanks for the reply! I'll get started with this and let you know if I get stuck

@nawed2611 the feature for the local setup is done, and can be found in the refactor-datahandlers branch. You can clone the branch onto your local machine, and follow the instructions in the ReadMe to set up the Docker environment locally. If all runs well, you can proceed to improve the logging utilities.
Do let me know if you run into any issues :)

Currently, the logging in the repository mostly uses print statements, an example which can be seen here. While this is useful, we want something more robust in the long run that can be more informative about the kind of bugs/errors that we might face. Improve the logging across all the backend services by using a dedicated logging library.

You mean all the print statements in this repo have to be changed with a logger


Jobs: Divination not supported.

The raid buff tracking that the jobs module can do has no support for divination at all. Every other buff seems supported even ASTs card duration were adjust for 5.0, but there is just nothing for divination.

Follow up, was able to make my own easy by adding a line of:
"Divination: '40A8'," to /resource/lang.js
" Divination: 'Divination'," to /resources/lang/en.js (I assume you would need to make localization of the other files)
"	  divination: {
gainEffect: gLang.kEffect.Divination,
loseEffect: gLang.kEffect.Divination,
durationSeconds: 15,
icon: '../../resources/icon/status/divination.png',
// Whatever color
borderColor: '#9e5599',
sortKey: 13,
cooldown: 120,
},
" to /ui/jobs/jobs.js"
And adding a divination icon to the resources/icon/status folder.
I don't really use github or pull requests or w/e feel free to add it as a commit.

Thanks!


Adds partitioner to configuration

Adds partitioner to configuration for Racecar v1, allowing https://github.com/zendesk/ruby-kafka/pull/884 to be used.
@dasch

Releasing v1.3.0


Update dcos launch

https://jira.mesosphere.com/browse/DCOS-21660

Thank you @cprovencher !
This looks good to me but I'll leave it to @timaa2k, who knows this part of the code best, to review and merge this.
However, before doing that, please fix the lint issues - the first of which is:
flake8 .
+flake8 .
./src/dcos_e2e/backends/_aws/__init__.py:14:1: F401 'dcos_e2e._vendor.dcos_launch.aws.DcosCloudformationLauncher' imported but unused
./src/dcos_e2e/backends/_aws/__init__.py:15:1: F401 'dcos_e2e._vendor.dcos_launch.onprem.AbstractOnpremLauncher' imported but unused

See http://dcos-e2e.readthedocs.io/en/latest/contributing.html#linting for how to run the linters locally.

@cprovencher Please merge master in or rebase as we've fixed some CI flakiness since this was submitted.

@adamtheturtle
do the dev requirements need to updated? I'm getting:
dcos 0.6.1 has requirement PyJWT==1.4.2, but you'll have pyjwt 1.6.1 which is incompatible.
dcoscli 0.6.1 has requirement cryptography==2.0.2, but you'll have cryptography 2.2.2 which is incompatible.
after running pip install --editable .[dev]

@cprovencher No they do not need to be updated. The CLI packages are used just in tests and they seem to work fine despite the incompatibilities.

@adamtheturtle looks like I had a linux-specific issue as dulwich requires gcc. Then dulwich would fail and none of the dependencies would build.... anyways I just installed except dulwich and now PR is updated.

Thanks - If you fancy writing that up as an issue I can hopefully document it. Let's see what happens with CI but I'm curious about the change to the file admin/release.py and I wonder if CI will fail on that.

the change to admin/release.py comes from "make fix-lint"

CI shows:
mypy *.py src/ tests/ admin/
+mypy setup.py versioneer.py src/ tests/ admin/
src/dcos_e2e/backends/_aws/__init__.py:210: note: unused 'type: ignore' comment
src/dcos_e2e/backends/_aws/__init__.py:216: note: unused 'type: ignore' comment
src/dcos_e2e/backends/_aws/__init__.py:243: note: unused 'type: ignore' comment
make: *** [mypy] Error 1

Great work!


slack import: Improve how we construct user_profile objects

As a follow-up to #9131, we should do the same transformation to how we generate user objects, eliminating the wholesale copying of a ton of default values from the UserProfile model.
This should help significantly improve the robustness of Slack import as we continue working on Zulip itself.
There may be more along these lines to do with Stream and friends as well.

@zulipbot  claim


Uncaught TypeError: viewport.addEventListener is not a function...

Hi, I'm playing your package. It seams that it sweats my needs. Good job. :) Back to the issue. I'm using Laravel Mix for handling all js and css assets.
In my main js file app.js I have just added these simple lines:
import emergence from 'emergence.js';
emergence.init();

After the Mix compilation npm run dev I included the final js file in my html. Here is the error I get:
app.js:292 Uncaught TypeError: viewport.addEventListener is not a function
    at Object.emergence.init (app.js:292)
    at Object.<anonymous> (app.js:79)
    at __webpack_require__ (app.js:20)
    at Object.<anonymous> (app.js:364)
    at __webpack_require__ (app.js:20)
    at Object.defineProperty.value (app.js:66)
    at app.js:69

Hope you can help me.

Same issue for me

Thanks for the feedback. I suspect it may be caused by your final js (I assume) being loaded in the head, and therefore emergence gets initiated before the dom content is loaded. Placing the js file just before the closing body tag, or putting emergence.init() in a DOMContentLoaded may fix the solution, but I've fixed this in release 0.09


it not work :/

The type or namespace name 'DllExport' could not be found (are you missing a using directive or an assembly reference?)

Hello,
Is there a reason why are you avoiding issue templates?
Please follow the bug template and provide required information about
used versions etc.
I can't understand anything without it.
On 20.06.2022 21:35, Its[encrypted] wrote:

The type or namespace name 'DllExport' could not be found (are you
missing a using directive or an assembly reference?)

Closed due to lack of information. Please feel free to reopen or create a new one in order to add required minimal information. Thanks.


[Suggestion] Standardize Tab Groups Backup JSON format

Hello, I am here for suggest making a standard for backup JSON file format such that users can easily migrate their tab groups losslessly among different extensions. Especially people currently using other tab groups addon(s) that desire to migrate to here will know what I am saying.
After the end of support from legacy Tab Groups, there are some developers working for their own alternative. However, each of them create their own backup files differently which cause migrating from one to another become incompatible. In the meantime the only solution is reverting the backup file to legacy Tab Groups and import again (seems most support importing backup from legacy Tab Groups), but this will loss all unique features and settings, only groups and tabs information are migratable.
So I hope making a standard can solve this problem. Backup file will still save the features, but extension itself to determine which features to be imported and discard the remaining. This would allow migrating tab groups among different extensions, and also remain common features and settings among extensions without any extra conversion of backup file. This will convenient user switching among tab groups extensions that serve them best. Moreover, as this extension support also chromium browser. The standard may also allow user migrate not just only among extensions, but also browsers.
I will also leave this message to other developers, see whether my suggestion is accepted. All users feel free to comment whether this benefit you and whether you want it. Finally, thanks for your efforts continuing the Tab Groups service.

FYI, also cross-posted to:
Drive4ik/simple-tab-groups#183
photodiode/panorama-view#77

Also, you might be interested in https://github.com/photodiode/panorama-view/issues/73
Mainly I answered:

I love the idea
But which standard and will it be stable over time
I haven't much time to work on it


2 new gifs are ready but need editng.

Title

A new issue will be open, that is, addressing all the new problems....


Android Basics: xml-layouts

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-xml-layouts?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-1%3Fhl%3Den%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-xml-layouts&hl=en#5
In which task and step of the codelab can this issue be found?
6. Complete the rest of the layout
Describe the problem
Earlier they said to use 0dp for layout_width for UI elements within a ConstraintLayout but in the example they show using match_parent
So they have:

Should it be?

<TextView
android:id="@+id/tip_result"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/calculate_button"
android:text="Tip Amount" />

Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hello @asaywitz,
Thank you for reaching out to us and sharing your feedback.
We updated the code snippet:


CertFromPEM: support PKCS1 and PKCS8, plus pull the leaf cert

There can definitely be more than one certificate. See Azure/azure-sdk-for-go#5412 for details on the problems as well as our solution.
My problem here is that this func can return multiple certificates however I don't know which one to pass to confidential.NewCredFromCert(). If we have a legitimate use-case for returning all the certs I'm fine with that however we must document which cert is the one to use to authenticate (ideally the first in the slice).
@element-of-surprise element-of-surprise 1 hour ago Author Member
So, I don't think that fix is valid, if you are referring to:
if _, ok := block.Headers["localKeyId"]; ok {
cert, err = x509.ParseCertificate(block.Bytes)
if err !=  nil {
fmt.Printf("Error parsing certificate from pem block:%v\n", err)
continue
}
}
I can find no option header standard for PEM that includes "locakKeyId" to tell you that something is the leaf certificate.
When I look at this fix, it seems that the origin is from PKCS12. PKCS12 is a different standard. When a specific library does a PKCS12 to PEM conversion, it pops this in as an optional header.
This looks to be coming from an asn1 id: asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 9, 21}) stored in PKCS12. (source; https://gitlab.cncf.ci/kubernetes/kubernetes/blob/a610ffd71ac8318c1cb2ddc4a234350e61162575/vendor/golang.org/x/crypto/pkcs12/pkcs12.go)
In standard PEM, this is not available unless a conversion was made from this specific pkcs12 package from what I see.
I don't think that fix is a valid fix for this or the library you linked.
So I think your question is actually still open (for both packages), how do you identify the leaf cert in a PEM encoding for all cases. At this point I don't know that answer.
@jhendrixMSFT jhendrixMSFT 1 hour ago Member
The fix was to find the certificate with the same public key as that of the provided private key, see https://github.com/Azure/go-autorest/blob/master/autorest/adal/persist.go#L111.
@element-of-surprise element-of-surprise 42 minutes ago Author Member
Interesting, though that is with a PKCS1 key instead of a PKCS8 key (which is what I added support for). I'll have to look back, I though the standard for PKCS1 keys was to use RSA PRIVATE KEY and not PRIVATE KEY.
Though, PEM seems to be very loose.
Maybe I really need to add support for PKCS1 and PKCS8 and try to decode both types regardless of what the text is.
I can't imagine how many iterations of features causes certificate/key standards to be such a mess. ASN1.DER/CER, sometimes base64, sometimes not, inside PKCS1, PKCS12, PKCS8, ............
Text headers with options not listed......
@element-of-surprise element-of-surprise now Author Member
I'm going to defer this change to the next CL. This will get the big changes out.
The follow-up for this is on my next change.

For reference, here's what we have in the track 2 Azure SDK:

Public helper method parses certs and exactly one key from a user's bytes. User gets []*x509.Certificate and crypto.PrivateKey (source)
Internal helper loops over the []*x509.Certificate to identify the signing cert, building x5c content as it goes (source)

Our goal with the public helper method is to address common cases that are well supported by the standard library. Users with tricky cases can parse certificates by other means, e.g. another package; our certificate credential constructor takes []*x509.Certificate and crypto.PrivateKey.


Authorize Requests bound for extensions in the REST-Layer, add extension_permissions section to roles

Description
This PR relies on an earlier PR to setup extension TLS and handshake with security plugin: https://github.com/opensearch-project/security/pull/2599
This PR has companion PRs in Core and SDK repo:
Core - https://github.com/opensearch-project/OpenSearch/pull/6870
SDK - https://github.com/opensearch-project/opensearch-sdk-java/pull/622
Isolated changes for this PR can be viewed with the compare tool: https://github.com/cwperks/security/compare/extension-tls...extension-role
This PR creates a RestLayerPrivilegesEvaluator and adds a new area of the role definition called extension_permissions that act the same as cluster permissions, but are evaluated on the REST-layer for requests bound for extensions.
See an example role with extension permissions:
# Roles for Hello World extension, roles that extensions would like to add should be ultimately be defined elsewhere
extension_hw_greet:
  reserved: true
  extension_permissions:
    - 'extension:hw/greet'

extension_hw_full:
  reserved: true
  extension_permissions:
    - 'extension:hw/greet'
    - 'extension:hw/greet_with_adjective'
    - 'extension:hw/great_with_name'
    - 'extension:hw/goodbye'

I added these roles here, but roles like this should be requests by the extension to add to a cluster and if granted by the cluster admin, added to the full roles list.

Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

New Feature
Issues Resolved

https://github.com/opensearch-project/security/issues/2589

Testing
Tested by assigning users the roles created in this PR and verified that they are permitted or blocked based on what has been granted. Automated tests to follow, I wanted to get a draft out to determine if this is the right direction to head in.
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@peternied This PR creates an analog to roles that plugins add to the security plugin's roles.yml. These roles give access to users to use different REST actions registered by an extension the same way that an admin would for plugins. Can you please list out the design concerns you have specifically so they can be addressed? This PR has been open for over a month for review. Please be specific.

As extensions are new, we should use the simplest concepts to provide permissions and access.

@peternied This doesn't meet the objective of being a replacement for an existing plugin like AD. Without any guidance more specific I am planning to continue working on the design as-is. Please comment on the design with any specific concerns so they can be addressed. This PR has been open for more than a month and there is ample comments on multiple issues about the design.

@peternied This now gets rid of the extensions_permission section and instead utilizes existing cluster_permissions. The roles for the HelloWorld Extension are now defined as:
extension_hw_greet:
  reserved: true
  cluster_permissions:
    - 'hw:greet'

extension_hw_full:
  reserved: true
  cluster_permissions:
    - 'hw:greet'
    - 'hw:greet_with_adjective'
    - 'hw:great_with_name'
    - 'hw:goodbye'

@DarshitChanpura I will close this one, it looks like your branch is a bit further along. I will also synchronize the PRs in core and the SDK today and try to chase the maintainers for a review of those PRs as they have been open for a while.


Stored XSS vuln exists

Hello,
An unauthenticated stored cross-site scripting (XSS) vulnerability exists in "Audited Values" field of the dashlet.
PoC:

Post <img src=1 onerror=javascript:alert('XSS');> as payload in share login page in username field.
Now when admin logs in Share and audit dashlet is installed in admins dashboard, the XSS code runs in the admins browser.

Persistant XSS vulnerability may result in phishing attacks, session hijacking, external redirect to malicious sources.
Regards

Sorry to pull you back in :) after years.
I tested the latest (v0.56) version and XSS is gone. Thank you.


cmd/link: traverse the symbol table less

@ianlancetaylor commented in CL 20165:

The single slowest operation a linker can do is traverse the symbol table and look at every symbol.  The single biggest improvement in link time in the gold linker was changing the number of symbol table traversals from about 25 to about 3.  Yet cmd/link traverses the entire symbol table all the time.  It's not good.

@crawshaw replied:

Agreed. There are a couple of other not good features:

LSym has a Type word, but it's not filled out until some nebulous intermediate pass, so lots of code (like this) ends up string matching on the symbol name prefix.
dodata does some odd build-a-linked-list, then sort-the-linked-list-into-segments game.

I think these problems and the many traversals could be fixed by the object file reader assigning Type and building useful link-wide slices when a symbol is read in. But it is pretty major surgery I'm not ready to perform.

I've moved this to an issue, since folks look for work and ideas in issues.
cc @mwhudson who likes object files. :)

Heh heh. I can't really see any reason why the loop in symtab couldn't be
done when the symbol is read from the file, although I wouldn't be
surprised if a hundred fiddly things depend on the current ordering (symtab
is called quite late in the process). Maybe I could just try it.
dodata is a horrifying mess of its own. Would be nice to rewrite it but I
think I'm definitely too scared.
On 4 March 2016 at 09:03, Josh Bleecher Snyder<EMAIL_ADDRESS>wrote:

@ianlancetaylor https://github.com/ianlancetaylor commented in CL 20165:
The single slowest operation a linker can do is traverse the symbol table
and look at every symbol. The single biggest improvement in link time in
the gold linker was changing the number of symbol table traversals from
about 25 to about 3. Yet cmd/link traverses the entire symbol table all the
time. It's not good.
@crawshaw https://github.com/crawshaw replied:
Agreed. There are a couple of other not good features:

LSym has a Type word, but it's not filled out until some nebulous
intermediate pass, so lots of code (like this) ends up string matching on
the symbol name prefix.
dodata does some odd build-a-linked-list, then
sort-the-linked-list-into-segments game.

I think these problems and the many traversals could be fixed by the
object file reader assigning Type and building useful link-wide slices when
a symbol is read in. But it is pretty major surgery I'm not ready to
perform.
I've moved this to an issue, since folks look for work and ideas in issues.
cc @mwhudson https://github.com/mwhudson who likes object files. :)
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/14624.


Add cc_kbc e2e tests

cc_kbc e2e tests
Rationale
This code wants to cover an e2e scenario for image decryption and repository cred retrieval in a cc_kbc + kbs setup. It could detect unintended breakage in those components, but maybe also provide spec + documentation.
It's two tests that are ignored by default, because they are rather costly to run (> 20m without cache, ~4m w/ populated cache) and it requires a bit of setup ceremony.
Implementation
The decryption test encrypts an image with a random key using aa's coco_keyprovider and skopeo. The encrypted image is stored in a local registry (to keep the test self-contained).
Attestation Agent is started using the sample attester (could use a matrix to also run it on real TEEs). A kbs instance (bundled w/ Attestion Service) is also started locally. The test then retrieves the encrypted image from the local registry, triggering a remote attestation procedure via attestation-agent. After a successful attestation ocicrypt-rs is decrypting the layers via the KBS-released key.
The credentials test creates a local registry with auth and stores an image in it. A dockerconfig auth is put into the kbs repo. On image pull the attestation-agent then requests the credentials from kbs which is then used to access the local registry.
I'd suggest a good schedule for the trigger would be merges to main.
Example
exampe run

@Xynnn007: was this PR closed intentionally? I suppose this was a typo, since this commit seems unrelated

@Xynnn007: was this PR closed intentionally? I suppose this was a typo, since this commit seems unrelated

Oh I'm sorry, I think I closed this one by mistake. Let me reopen. ( I do not remember I have clicked the Close button, weird

no worries, I think it was auto-closed by the commit message in the commit I linked

@Xynnn007: was this PR closed intentionally? I suppose this was a typo, since this commit seems unrelated

Oh I'm sorry, I think I closed this one by mistake. Let me reopen. ( I do not remember I have clicked the Close button, weird

no worries, I think it was auto-closed by the commit message in the commit I linked

Oh yes. It's a commit from Attestation Agent. Similiar errors would happpen to other sub crates.

returning this to draft to rework a bit. I don't think we need to involve kbs/cc_kbc for the image/layer tests here, since we have an e2e test in kbs now. it will probably be fine to use offlline_fs kbc here.

closing this one, the scenario should be covered by higher level e2e tests in kata or CAA.


Add "@" to the start of single line .cmd files

To prevent the command from being echoed to the console, add a "@" to the start of the line.

Would you like to be added as a collaborator on this project, to help review and merge pull requests?

Sure - though I cannot promise I can commit much time. But I don't believe this project has a lot of code changes, does it?

It has very few, but I'm ill placed to review most of them since I use a mac and am not particularly well versed in bash etc.
You're added. Please follow these rules:

never commit directly to master unless you're only editing documentation, or you're in the process of cutting a new release.
never merge your own pull request unless it's had no comments from any collaborators for at least 24 hours.
If you cut a new release, make sure you follow semver when updating the version number.

If you let me know your npm username I'll add you as an owner so you can release new versions :)

Great. My npm username is skylined.


STOR-1065: Rework sidecar bindings to bind common ClusterRoles

PR https://github.com/openshift/cluster-storage-operator/pull/379 published builiding blocks of sidecar ClusterRoles. Now, ibm-powervs-block csi driver operator may compose its sidecars ClusterRoles from those building blocks.
This PR also moves permissions for leases resource from ClusterRole to per-namespace Role (assets/rbac/lease_leader_election_role.yaml).

@yussufsh , thank you for review, can you please add /approved as well? Thanks!


feat: avm/res/storage/storage-account update connectionstrings of secretsExportConfiguration to store key value instead of key object as string

Description
This pull request includes one change to the avm/res/storage/storage-account module to ensure that the correct values are used for storage account  connection strings. The main change involve updating the Bicep  file to access the correct key values and updating the template hash.
Updates to Bicep and JSON files:

avm/res/storage/storage-account/main.bicep: Updated the value property for connectionString1 and connectionString2 to correctly access the value field of the storage account keys. [1] [2]

Closes #3160
Pipeline Reference

Pipeline

Type of Change

[ ] Update to CI Environment or utilities (Non-module affecting changes)
[ ] Azure Verified Module updates:

[x] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:

[x] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
[ ] The bug was found by the module author, and no one has opened an issue to report it yet.

[ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in version.json.
[ ] Breaking changes and I have bumped the MAJOR version in version.json.
[x] Update to documentation

Checklist

[x] I'm sure there are no other open Pull Requests for the same update/change
[x] I have run Set-AVMModule locally to generate the supporting module files.
[x] My corresponding pipelines / checks run clean and green without any errors or warnings

looks good to me. Thank you for your contribution!

Thanks @fblix , anything else I need to do to get this merged?

Just somebody to click the button 😉


Media not loading

I deployed a wagtail site on Heroku, and the pictures I uploaded always disappear after several hours, but the blog's text part is still working.

the site is jettchen.herokuapp.com.

Please read: https://help.heroku.com/K1PPS2WM/why-are-my-file-uploads-missing-deleted

You might look into https://djangopackages.org/grids/g/storage-backends/
Wagtail is a Django app, and storages are a Django topic. Please consult the Heroku docs. You might need to choose some other Django file storage. https://djangopackages.org/grids/g/storage-backends/
I'm closing this issue.


Fix error when ortho dirs are completely or partially missing

I like both ways, and exceptions show elegance sometimes :-) p.s. you are missing an "if".

lol.  Indeed I was.   Updated!


Images not loading anymore

What
In the newest dev build the images are not loading anymore, the spinner is showing forever
cc: @g123k

I've noticed this, but I think I also have to work on the animation as they are not synced: