Add --depth flag to 'git submodule update'

Fixes https://github.com/travis-ci/travis-ci/issues/1867

Is this documented somewhere? In the end I've realized how to configure this, but it would be way easier if it's described in the docs somewhere...
In case somebody else will be looking here, the right way to configure depth for submodules is:
git:
  submodules_depth: 100

What happens if the specified commit is not within the specified range?

@thorade The checkout will fail, and mostly so will your build.


crop image Activity not open

`protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode==galerypic && requestCode==RESULT_OK && data!=null){
Uri imageuri = data.getData();
        CropImage.activity()
                .setGuidelines(CropImageView.Guidelines.ON)
                .setAspectRatio(1,1)
                .start(this);
    }
    if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
        CropImage.ActivityResult result = CropImage.getActivityResult(data);

    }
}

}
`

Hey!
I start a new project to handover this library
https://github.com/CanHub/Android-Image-Cropper
The ideia is that we keep improving because this project don’t have updates since 2018
Hope I can count with your help.
Open to contribute, next pieces of work will be Android 11 permissions, refactor into Kotlin and ActivityContract


How to filter album by name?

Hi guys!
Thank you for the very helpful library. I'm checking whether it's available to filter the albums by name?
For example, I want to see only albums with names in ["Instagram", "Facebook", . . .]. How to make code to achieve this?
Thanks

Please checkout the latest version:
let groupDataManagerConfiguration = DKImageGroupDataManagerConfiguration()

// Only shows the `Camera Roll`
groupDataManagerConfiguration.groupFetchPredicate = NSPredicate(format:"SELF.localizedTitle = %@", "Camera Roll")

let groupDataManager = DKImageGroupDataManager(configuration: groupDataManagerConfiguration)
let pickerController = DKImagePickerController(groupDataManager: groupDataManager)

Hi @zhangao0086, it works for me, thank you so much. Sorry for my late reply, please close the ticket.

Hi @zhangao0086, it works for me, thank you so much. Sorry for my late reply.


use clock for timeout, not a counter

I've run this against the code from this pr, and it seems to work.

+1


Creating an asyncio loop in a sync task

One of my colleagues had a [...] problem. He didn't know that the worker runs under asyncio and used asyncio.run in a synchronous task to create a new event loop, leading to a similar error.
The worker is calling sync_to_async with the default thread_sensitive set to True. I made a quick and dirty attempt, set thread_sensitive to False, and our error was gone (in the end, we rewrote the code of the task to be async). I wonder what the (negative) implications would be if we change the worker code to use thread_sensitive=False.

Originally posted by @medihack in https://github.com/procrastinate-org/procrastinate/issues/609#issuecomment-2245449737

Asgiref says:

If thread_sensitive is passed, the code will run in the same thread as any
outer code. This is needed for underlying Python code that is not
threadsafe (for example, code which handles SQLite database connections).

So I believe it would be fine most of the time except when people would have used thread unsafe code (especially, code that wouldn't support being called from different threads).
So 1/ changing the default might break a very small number of use cases (I'd say), but it would make a very small number of users (who want to use run async code within sync tasks) easier. No idea if it would make more good than harm.
2/ might be worth looking at the doc seeing if we could make it more obvious in the docs what to do in this situation. Also, we could catch the error and make a specific error message.

Is 1/ really that problematic when the user code of a task runs isolated in its own thread? Maybe regarding a passed context!? Also, if I understand the Asgiref documentation correctly, there is nothing concurrently anymore when using a sync task and the concurrency option (>1) of the worker, as all fetched jobs run consecutively in the same thread. I am just thinking about how we could reach a more pleasant way to handle sync tasks. But yes, if there is no way to do that, we shall add something to the docs.

I think (but I could be wrong) that even if in a simple case, passing thread_sensitive=True fixed the issue, I'm not sure there's a compelling reason that it will be completely fine, and it wont run into other issues down the line. I think it makes more sense to encourage people to declare async tasks or use sync_to_async rather than asyncio.run.

I think (but I could be wrong) that even if in a simple case, passing thread_sensitive=True fixed the issue

You meant thread_sensitive=False 😉. Sure, I will add a hint to the docs when I find some time.

(yep sorry)

Would there be issues within procrastinate itself if thread_sensitive=False was passed?
From my understanding, that should only impact user code.
In that case, it may be reasonable to continue to default to thread_sensitive=True but offer the option to set it to False at the application (worker) level? Maybe even a the task level?

If we want to do it, task level seems to be right.
To summarize:

I think it's best to let the user know as much as possible that there is an async loop running in the main thread and that they can use it for async tasks (> review and adjust the doc for that)
if the user didn't read the doc and launches an event loop and it fails because there's already one running in the thread, it would be nice to catch this specific error and direct them to the doc
thread_sensistive=False will use a different thread than the main thread, meaning that there might not be an event loop running on that thread and it might run, but I believe there might also be an event loop and it might fail too even with thread_sensitive, though I haven't tested this. That said, we could decide of the default value we want for thread sensitive (currently true) and we could add a simple way to override it (probably via the task decalaration).
from my understanding, switching to an async task should always be the best bet
alternatively, using sync_to_async and async_to_sync will generally help with the problem (but, these are functions exposed from asgiref, so it's a bit weird to use those, and also, by definition, they'll play well with Django, but not necessarily as well with other frameworks)

If it happens that we find that even with thread_sensitive=False, we can get obscure failures without doing anything strange, will there be a benefit to setting this ?

Maybe the best course of action at this time is an improved documentation and consider introducing it when there is demand for it?

I think it's best to let the user know as much as possible that there is an async loop running in the main thread and that they can use it for async tasks (> review and adjust the doc for that)

Yes, absolutely. But many people stop after reading the "Quickstart," where we use a sync task (which, thereby, seems like the recommended way).

if the user didn't read the doc and launches an event loop and it fails because there's already one running in the thread, it would be nice to catch this specific error and direct them to the doc

I am not sure if we can really fetch all associated errors. When, for example, the user creates a new thread in the sync task and starts a new event loop, no error is raised. But it will be raised as soon as sync_to_async is used in this new event loop (Single thread executor already being used, would deadlock). I know it sounds like an unlikely scenario, but it happened in our case 😂. I looked a bit around what other (non-asyncio) distributed task libraries do (like Celery or Dramatiq). In concurrency mode, most of those, by default, start each task in its own isolated process.

If it happens that we find that even with thread_sensitive=False, we can get obscure failures without doing anything strange, will there be a benefit to setting this ?

The thing I dislike about the current way we deal with sync tasks (besides the fact that the user can't create an event loop if he wants to), is that we don't run them concurrently (when setting the concurrency option of the worker to something > 1), but sequentially in the main thread (if I understand it correctly).

The thing I dislike about the current way we deal with sync tasks (besides the fact that the user can't create a new event loop if he wants to), is that we don't run them concurrently (when setting the concurrency option of the worker to something > 1), but sequentially in the main thread (if I understand it correctly).

Oh! And with thread_sensitive=False, different tasks are executed in their own thread and therefore (somewhat) concurrent? I had missed that bit. Of course, it makes much more sense if it's this way (let's test this). If so, I'm sold.

Oh! And with thread_sensitive=False, different tasks are executed in their own thread and therefore (somewhat) concurrent? I had missed that bit. Of course, it makes much more sense if it's this way (let's test this). If so, I'm sold.

From reading the docs and doing some quick experiments, it seems like this, but I could be wrong. In those experiments also, the above-mentioned Single thread executor already being used, would deadlock went away as the sync_to_async methods are more nested anymore on the main thread.
If we choose to use thread_sensitive=False, then I wonder if we should get rid of sync_to_async in the worker at all and just create a new thread directly, or maybe even start a new process (or make it configurable like Huey does, of course only for sync tasks then).

I checked the problem by adding a simple demo task that uses a counter. Indeed, the sync task in concurrency mode is not handled concurrently (in contrast to the same async task).
@ewjoachim Somehow, I think we should get rid of sync_to_async and just create a new thread directly. I don't see any advantage of sync_to_async when using thread_sensitive=False anymore, but maybe I am missing something. On the other hand, we could just use thread_sensitive=False for now, switch later to a native thread, and introduce an option like --sync-worker-type to also allow the user to switch from thread to process for sync tasks (which is what I would prefer). What do you think?
@onlyann Should we tackle this during worker refactoring or in a separate PR?

It would be preferable to keep it separate as the worker refactoring is already quite large in scope.
Something else that sync_to_async does it that it copies contextvars in the new thread.
If thread_sensitive=False is the new default, then https://docs.python.org/3/library/asyncio-task.html#asyncio.to_thread can be considered. sync_to_async could be limited to Python 3.8 for the few extra months of support it has left.
Spawning separate processes is a lot more involved.
If the user code has the ability to define an async top level function for the task, is there something that stops them from doing what they want from that function (such as calling sync code in a separate thread, process, ...)?

Something else that sync_to_async does it that it copies contextvars in the new thread. If thread_sensitive=False is the new default, then https://docs.python.org/3/library/asyncio-task.html#asyncio.to_thread can be considered. sync_to_async could be limited to Python 3.8 for the few extra months of support it has left.
Spawning separate processes is a lot more involved.
If the user code has the ability to define an async top level function for the task, is there something that stops them from doing what they want from that function (such as calling sync code in a separate thread, process, ...)?

Sure, a user can do everything he wants with an async task. But if we say that we want to support sync tasks, then at least we should provide a sensible default. How about using thread_sensitive=False for now and maybe later switch to asyncio.to_thread when support for Python 3.8 is dropped? And leave spawning processes to the user.

Ok for thread sensitive = False.
Dropping sync_to_async entirely: I wonder if that plays well with Django stuff. I think it likely should but before we switched to that, the sync/async situation was rather complicated, so...


Fix BI_FPN, augmentation, retinaHead, out memory

Fix Bi_FPN
Change Augmentation
Change RetinaHead
Fix Out Memory in loss function
Support EfficientDet-D0->D7

Hello @toandaominh1997! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file datasets/augmentation.py:

Line 15:80: E501 line too long (80 > 79 characters)

In the file datasets/visual_aug.py:

Line 48:15: W291 trailing whitespace
Line 50:1: E305 expected 2 blank lines after class or function definition, found 1
Line 54:1: E302 expected 2 blank lines, found 0
Line 62:1: E305 expected 2 blank lines after class or function definition, found 0
Line 63:50: W292 no newline at end of file

In the file models/bifpn.py:

Line 63:80: E501 line too long (102 > 79 characters)
Line 101:1: W293 blank line contains whitespace
Line 137:21: E251 unexpected spaces around keyword / parameter equals
Line 137:23: E251 unexpected spaces around keyword / parameter equals
Line 140:23: W291 trailing whitespace
Line 177:46: E261 at least two spaces before inline comment
Line 177:58: W291 trailing whitespace
Line 184:1: W293 blank line contains whitespace
Line 186:80: E501 line too long (161 > 79 characters)
Line 191:80: E501 line too long (183 > 79 characters)
Line 195:80: E501 line too long (182 > 79 characters)

In the file models/conv_module.py:

Line 237:1: E305 expected 2 blank lines after class or function definition, found 1
Line 237:1: E402 module level import not at top of file
Line 238:1: E402 module level import not at top of file
Line 282:21: W292 no newline at end of file

In the file models/efficientdet.py:

Line 37:48: E251 unexpected spaces around keyword / parameter equals
Line 37:50: E251 unexpected spaces around keyword / parameter equals
Line 38:48: E251 unexpected spaces around keyword / parameter equals
Line 38:50: E251 unexpected spaces around keyword / parameter equals
Line 85:5: E301 expected 1 blank line, found 0
Line 91:17: W292 no newline at end of file

In the file models/losses.py:

Line 50:80: E501 line too long (84 > 79 characters)
Line 51:80: E501 line too long (88 > 79 characters)
Line 90:80: E501 line too long (117 > 79 characters)
Line 121:80: E501 line too long (89 > 79 characters)
Line 135:80: E501 line too long (84 > 79 characters)

In the file models/module.py:

Line 153:80: E501 line too long (80 > 79 characters)

In the file models/retinahead.py:

Line 7:1: E302 expected 2 blank lines, found 1
Line 12:1: E302 expected 2 blank lines, found 1
Line 32:17: E128 continuation line under-indented for visual indent
Line 62:5: E301 expected 1 blank line, found 0
Line 111:1: W293 blank line contains whitespace
Line 117:80: E501 line too long (97 > 79 characters)
Line 118:80: E501 line too long (80 > 79 characters)
Line 121:9: E303 too many blank lines (2)
Line 125:5: E301 expected 1 blank line, found 0
Line 126:55: W292 no newline at end of file

In the file test.py:

Line 11:24: W292 no newline at end of file


Having trouble understanding BL9980: "Expressions like 'Title' inside of a tag must be part of an attribute."

I'm having a little trouble understanding the error here.
The error being raised is specifically to do with:

The full error is:
BL9980 Expressions like 'Title' inside of a tag must be part of an attribute. Previous releases of Blazor supported constructs like '@onclick(...)' or '@bind(...)'.These features have been changed to use attribute syntax. Use<EMAIL_ADDRESS>or 'bind="..." respectively.
The full code is:

        <textarea class="form-input" bind-value-onchange="Text"></textarea>

        <button class="btn float-right" disabled=@ButtonDisabled onclick=@OnClick>Submit</button>

@functions {
    [Parameter]
    View ViewType { get; set; }

    bool ButtonDisabled { get; set; } = false;

    string Title => (ViewType == View.Thread ? "New Thread" : "New Post");

    string Text { get; set; }

    public async void OnClick()
    {
           --Removed for verbosities sake--
    }
}

From what I can tell, its saying that the blazor code should be specifically inside a html attribute, not just inside the tag, but it looks like it already is? I've also tried directly putting the logic in the attribute:

as well as several variations with and without quotes. I am on Blazor 0.3.0 and Visual Studio 15.8.0 Preview 2.0.

There was an issue which had something to do with binding where a hyphen is used. Im not sure if it’s been fixed yet. Try changing the data-content to data_content and see if that works.
I’ll go and try and find the issue I think I remember :)

Yeah looks like you may have this issue

Ah, that worked! Thanks a lot, thought it might've already come up if it was an issue but couldn't find anything after a quick search.


Create Front End page

use Ben's comp or basic HTML

Currently, has a main page, ideally, would show all the uploaded pdfs and allow users to submit json to them...

Just a thought, but it would be nice to be able to differentiate between requests being loaded in a browser (which should render a browseable demo version of the functionality) and being loaded as an API (which should just return a JSON). I know that Django REST Framework seems to do a great job of either serving JSONs or a browseable version of the API, depending on how you access the url.
How do they do this? Is there an easy way for us to mimic this functionality?

Here's the docs that flask has on that:  http://flask.pocoo.org/snippets/45/

Thanks to @zhoux10, this is mostly implemented.
I'm expanding the scope of this issue to cover the behavior that we'd like to see:
For the root path, /:

[ ] determine the

Closed with #54


new module to convert CSV to SDF or MOL

new module to convert CSV to SDF or CSV-entries to MOL-objects

Closing this due to lack of activity/response. Please re-open if you are willing to re-visit it.


Fix kubectl auto complete not usable by non-root user sometimes

The current instructions assume tee creates a file with global read permission. This may not always be the case, and we may ends up creating a bash completion file that is only usable by the root user
Adding a line to add the relevant file permission

Hi, @huangzou70  Please sign the CLA, see the below link for reference:
https://github.com/kubernetes/community/blob/master/CLA.md

Hi, @huangzou70 Please sign the CLA, see the below link for reference: https://github.com/kubernetes/community/blob/master/CLA.md

Hi, @Shubham82,  apologies for the wait. I was checking with the legal team that the CLA is something I can sign.
That should be done now!

I'm really unsure if it is necessary to add this. I tried it in three different flavors of linux (Debian, Ubuntu, Fedora) and the file was created with global read permissions under etc.

Right, to add-on to what sftim said: by default, files are created with global read permission. It breaks for non-default environment (which for some bizzare reason, my IT department decided to mess with) which the extra command is meant to handle
You can repro this by running the following as root:
sudo umask o=
Then try to recreate the bash completion script

👋 @huangzou70 , Is this an edge case that needs to be documented (as a general use case)?


Basic Requirement

AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security

Done


Colab Quickstart Improvements

Adding new Datasets/Applications:

[ ] Addition of new datasets and examples into the colab

Example of utilizing config.json:

[ ] Adding example utilizing an exploration/config.json  file with run_experiments.py
[ ] Creation of plots automatically showing comparisons of various settings.

CSV Example Specific:

[ ] Setting the starting value for the sample.py for extrapolation.
[ ] Utilization of an arbitrary csv file.

Also

[ ] we need to update the link in the README to the colab
[ ] update the repo in the colab to reallmasic

Hi @klei22 hoping to ask for help with updating the colabs


Fix the bug that caused CAP to be set to 0

Double is default to 0 and not null so Optional.get() will return a 0 thereby causing a value change.
Other changes are from merging with my other branch.

Closing due to merge conflicts.


NNVM Master Merge CheckList

This is a acting items for Checklist before we merge NNVM branch into master.

[ ] Remove backward index in gradient pass @tqchen
[ ] Verify all the code in  example folder run
[ ] Verify existing models can be loaded by nnvm branch
[ ] Fix amalgamation code under nnvm
[ ] Verify all packages works correctly

R @thirdwing @tqchen

Scala @javelinjs @Ldpe2G

Julia @pluskid

Our goal is to bring this before Nov 20th. Please edit this to include additional items, while being reasonable and specific(e.g. more test cases is not specific, add what testcase is specific)

@sxjscience @tornadomeet @winstywang @pluskid @leopd

i'll check whether the pre-trained model of imagnet classifaction will be loaded correct by nnvm branch.

We may also need to update the docs about python installation. (Like running python setup.py build_ext --inplace to enable cython)

Something I find that need to be fixed

[ ] No FGradient for crop
[ ] Wrong arguments added to dot and batch_dot

I'd feel a lot more confident if "Verify all the code in example folder run" was part of travis/jenkins CI.  I'm pretty sure they don't all run on 0.7.0, which is okay.  But we should make sure NNVM isn't breaking any of the ones that are working today.

I have checked all the Scala examples except for the image-classification, seems no ploblems.
Except that the speed of the lstm example (char rnn) have dropped about 20%, for example
the master branch: about 150 samples/sec,
the nnvm branch: about 120 samples/sec.

i have tested that all ResNet-xx , caffenet, NIN, inception-bn, sequeeze can be loaded and predicted correctly by nnvm branch.

The setup tool now support both --inplace and not inplace.

@sxjscience can you push the changes for the fix you proposed?

@tqchen OK, I'll push it today after I finish the topk and arange operators.

https://github.com/dmlc/mxnet/pull/4093 should fix the memory optimization problem

Check whether the Scala deploy (to the maven repo) tool works.

Bug: notebook kernel keeps restarting.
Location: repository mxnet_notebook/python/basic/symbol.ipynb
Cell no.10:
ex_gpu = c.bind(ctx=mx.gpu(), args={'a' : mx.nd.ones([3,4])*2,
'b' : mx.nd.ones([3,4])*3})
ex_gpu.forward()
ex_gpu.outputs[0].asnumpy()
Description: When running this cell, kernel dies and restarts.

Bug: cell execution error
Location: mxnet-notebooks/python/how_to/predict.ipynb  cell no.16
Error traceback:
MXNetError                                Traceback (most recent call last)
 in ()
----> 1 all_layers = sym.get_internals()
2 all_layers.list_outputs()[-10:-1]
/home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/symbol.pyc in get_internals(self)
323         handle = SymbolHandle()
324         check_call(_LIB.MXSymbolGetInternals(
--> 325             self.handle, ctypes.byref(handle)))
326         return Symbol(handle=handle)
327
/home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/base.pyc in check_call(ret)
73     """
74     if ret != 0:
---> 75         raise MXNetError(py_str(_LIB.MXGetLastError()))
76
77 if sys.version_info[0] < 3:
MXNetError: [23:03:30] include/dmlc/any.h:261: Check failed: type_ != nullptr The any container is empty requested=N4nnvm13VariableParamE
Stack trace returned 59 entries:
[bt] (0) /home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3c) [0x7f8c6085b46c]
[bt] (1) /home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/../../lib/libmxnet.so(_ZNK4dmlc3any10check_typeIN4nnvm13VariableParamEEEvv+0x1e4) [0x7f8c61a71784]
[bt] (2) /home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/../../lib/libmxnet.so(_ZNK4nnvm6Symbol12GetInternalsEv+0x579) [0x7f8c61a6b939]
[bt] (3) /home/ubuntu/src/workplace/nnvm/mxnet/python/mxnet/../../lib/libmxnet.so(NNSymbolGetInternals+0x47) [0x7f8c61a45027]
[bt] (4) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call_unix64+0x4c) [0x7f8c86675adc]
[bt] (5) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call+0x1fc) [0x7f8c8667540c]
[bt] (6) /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so(_ctypes_callproc+0x48e) [0x7f8c8688c5fe]
[bt] (7) /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so(+0x15f9e) [0x7f8c8688df9e]
[bt] (8) /usr/bin/python(PyEval_EvalFrameEx+0x98d) [0x5244dd]
[bt] (9) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (10) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (11) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (12) /usr/bin/python(PyEval_EvalCode+0x32) [0x5b41e2]
[bt] (13) /usr/bin/python(PyEval_EvalFrameEx+0x480a) [0x52835a]
[bt] (14) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (15) /usr/bin/python(PyEval_EvalFrameEx+0x7e8) [0x524338]
[bt] (16) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (17) /usr/bin/python(PyEval_EvalFrameEx+0x7e8) [0x524338]
[bt] (18) /usr/bin/python() [0x568b3a]
[bt] (19) /usr/bin/python(PyEval_EvalFrameEx+0x2167) [0x525cb7]
[bt] (20) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (21) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (22) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (23) /usr/bin/python(PyEval_EvalFrameEx+0x7e8) [0x524338]
[bt] (24) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (25) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (26) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (27) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (28) /usr/bin/python() [0x568b3a]
[bt] (29) /usr/bin/python(PyEval_EvalFrameEx+0x2167) [0x525cb7]
[bt] (30) /usr/bin/python() [0x568b3a]
[bt] (31) /usr/bin/python(PyEval_EvalFrameEx+0x2167) [0x525cb7]
[bt] (32) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (33) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (34) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (35) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (36) /usr/bin/python() [0x568b3a]
[bt] (37) /usr/bin/python(PyEval_EvalFrameEx+0x2167) [0x525cb7]
[bt] (38) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (39) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (40) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (41) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (42) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (43) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (44) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (45) /usr/bin/python(PyEval_EvalFrameEx+0x1a10) [0x525560]
[bt] (46) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (47) /usr/bin/python(PyEval_EvalFrameEx+0x7e8) [0x524338]
[bt] (48) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (49) /usr/bin/python(PyEval_EvalCode+0x32) [0x5b41e2]
[bt] (50) /usr/bin/python(PyEval_EvalFrameEx+0x480a) [0x52835a]
[bt] (51) /usr/bin/python(PyEval_EvalCodeEx+0x2b1) [0x555551]
[bt] (52) /usr/bin/python(PyEval_EvalFrameEx+0x7e8) [0x524338]
[bt] (53) /usr/bin/python() [0x568b3a]
[bt] (54) /usr/bin/python(PyObject_Call+0x36) [0x4c69c6]
[bt] (55) /usr/bin/python() [0x425126]
[bt] (56) /usr/bin/python(Py_Main+0x898) [0x466acc]
[bt] (57) /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f8c88c8bf45]
[bt] (58) /usr/bin/python() [0x577c2e]


Pods fail to bring up networking when security groups are used

Describe the Bug:
Pods that are affected by a security group policy in about 20% of cases do not start correctly, and basic connectivity such as DNS fails, thus breaking our deployment of Gitlab pipelines. The problem has been going on for weeks, we managed to narrow it down to IPAM.

Security Group Policy:
apiVersion: vpcresources.k8s.aws/v1beta1
kind: SecurityGroupPolicy
metadata:
  name: xxx
  namespace: gitlab-runner
spec:
  podSelector: {}
  securityGroups:
    groupIds:
    - sg-a
    - sg-b
    - sg-c

Pod:
pod.txt

`/var/log/aws-routed-eni/ipamd.log` on the machine:
ipamd.log

Observed Behavior:
The pod does start, but operations like git clone fail:
fatal: unable to access 'https://xxx/yyy.git/': Could not resolve host: xxx.de

CoreDNS logs (obtained from kubectl logs -f deployment.apps/coredns --all-containers=true) do not show any queries originating from the pod's IP.
Expected Behavior:
Pod networking comes up normally, there are no warnings such as failed to assign an IP address to container in the events.
How to reproduce it (as minimally and precisely as possible):
Create a blanket security group that targets an entire namespace, try to start a pod in it, observe it failing.
FROM ubuntu:22.04 as base
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
 DEBIAN_FRONTEND=noninteractive apt-get -yf dist-upgrade && \
 DEBIAN_FRONTEND=noninteractive apt-get -yf install curl bind9-dnsutils net-tools iproute2 && \
 DEBIAN_FRONTEND=noninteractive apt-get clean && \
 rm -rf /var/lib/apt/lists/*

---
apiVersion: v1
data:
  .dockercfg: xxx
kind: Secret
metadata:
  name: runner-test
  namespace: gitlab-runner
type: kubernetes.io/dockercfg
---
apiVersion: v1
kind: Pod
metadata:
  name: runner-test
  namespace: gitlab-runner
spec:
  dnsConfig:
    options:
      - name: ndots
        value: "1"
  imagePullSecrets:
    - name: runner-test
  containers:
    - name: app
      command:
        - sh
        - '-c'
        - 'ip addr && ip route && cat /etc/resolv.conf && dig xxx.de && curl -v https://xxx.de'
      image: pathtoimagefromabove
      imagePullPolicy: Always

Additional Context:
We suspect this is a similar issue to #118 or https://github.com/aws/amazon-vpc-cni-k8s/issues/1245.
The EKS nodes run in their own subnet, with a NAT gateway providing connectivity. The subnets have thousands of IPs free each.
Environment:

Kubernetes version (use kubectl version): v1.26.11-eks-8cb36c9 (AWS EKS 1.26)
CNI Version: vpccni addon managed by EKS, version v1.15.4-eksbuild.1, configuration

        {
            enableWindowsIpam = "true"
            env               = {
                AWS_VPC_K8S_CNI_EXTERNALSNAT = "true"
                ENABLE_POD_ENI               = "true"
            }
        }

OS (Linux/Windows): Linux, AWS AMI release 1.26.10-20231201, running on c5a.4xlarge instance

@interone-ms, can you share the pod events by running kubectl describe pods <POD_NAME> -n <POD_NAMESPACE>? Since AWS VPC CNI is running independently from the feature provider (this controller), this is not guaranteed that VPC CNI can immediately get the assigned branch interface when using Security Group for Pods (this controller need provision the branch interface and assign to the pods). A small latency is expected and VPC CNI will retry to find the branch interface assigned to the pod. If you are seeing larger latency in most of or many pods (in those cases you should see multiple retries from VPC CNI/IPAM in pods events), please let us know.

I am closing this issue since no response has been received. Please reopen it if needed.


Added Logging

Fixes #5

Can you rebase your branch to my main to resolve conflicts @Paola351 ?

Can you rebase your branch to my main to resolve conflicts @Paola351 ?

Yes, I'll try :D


Question: explicit control of ESRAM?

Is it possible to explicitly control DirectX 12 resource residency by moving textures or buffers to / from ESRAM? I think I can assume that in certain cases Xbox will move stuff for me implicitly, but if I want a specific piece of data stay there I need some form of explicit control. Is there any info / documentation on that or it's not even possible? (context: I'm under Xbox Live Creators program)

UWP on Xbox One does not expose explicit control of ESRAM. It's also important to note that ESRAM doesn't exist on the Xbox One X--it has faster standard memory instead.

Thank you for clarification!


Are you open to a .merge method PR?

Hey @mjackson , thank you for building this awesome package!
I created the make-service lib which extends the native fetch to improve its DX, and in the process I had to create a mergeHeaders function that is used internally and I ended up exporting it.
It turns out I'm often using that method when working with headers in other contexts, so I import it from the lib. I recon it would be a nice addition to this lib given it aims to improve the overall Headers DX.
Would you be interested in a PR that implements such functionality?
This is the API I have in mind:
let headers = new Headers({ 'Content-Type': 'text/html', 'Accept-Language': 'en-US,en;q=0.9' })
headers.merge(new Headers({ 'Content-Type': 'application/json', 'X-API-Key': 'secret' }))
console.log(`${headers}`)
// Content-Type: application/json
// X-Api-Key: secret-key
// Accept-Language: en-US,en;q=0.9

// It also accepts anything from `HeadersInit` type
headers.merge({ 'content-type': 'application/json', 'X-API-Key': 'secret' })
headers.merge([['content-type', 'application/json'], ['X-API-Key', 'secret']])

LMK if it fits the scope of this lib, it is a fairly simple implementation and I'd be glad to contribute 🤙

Hey @gustavoguichard! It's good to hear from you.
This feels a little out of scope for the mjackson/headers lib, tbh. I'm trying to limit the scope to augmenting the base Headers interface with property-style accessors, but nothing more. But it does sound like a perfect little addition you could make in your own lib if you'd like.

All good, it is already in my library but I agree it looks slightly beyond scope 👌🏽
Always glad to interact 🙏🏽


Prevent confusion about website and master divergence

People get confused and try to use master-only features in the online version (see e.g. here).
Since this problem will surely re-occur in the future (i.e. releasing 0.8.0 won't solve it), I need to explicitly state somewhere that the online version uses the latest released version of PEG.js (currently 0.7.0), not master. Creating master-based online version and allowing to switch between this one and the latest-released-version-based one could also be useful.
Similar issue exists also for the documentation.

I decided not to fix this, it seems people don’t get confused by the divergence anymore (at least not too much). Part of the reason is that master is closer to the last released version of PEG.js than it was in the past — and I intend this to be the case for the future.


SDK Documentation

We need a comprehensive document for developers who want to integrate ZKbob in different environments and user flows.
The document must describe basic operations such as

signup
sync state
generate receiving address
check address
deposit
transfer
withdraw
get history
compliance report
export seed
switch pool

cc @maikReal

https://docs.zkbob.com/implementation/client-library-sdk


Feature/mx 1645 update sumo to model v3

Changes

update sumo to model v3

PR is clsoed because of unsigned commits. and changes are moved to https://github.com/robert-koch-institut/mex-extractors/pull/198 for further review and merging.


Use RUN --mount in Dockerfile for faster builds

RUN --mount command in Dockerfile allows to get rid of cryptic cleanup of package installation intermediate data (package index and downloaded packages) to reduce Docker layer size by moving that data either to special build time volumes preserved between builds or to a tmpfs for data that doesn't need to be preserved.
The main advantage is that for repeated runs of apt-get update && apt-get install, it speeds up build by removing need to repeatedly download package index. Also it speeds up subsequent builds, as deb packages are cached between builds and can be used from the cache.
This feature is relatively new (2-3 years) and requires Docker Buildkit which is enabled by default starting with Docker Desktop <IP_ADDRESS> released 2 years ago in September 2020 (release notes for Docker Desktop for Windows and Docker Desktop for Mac):

Docker Desktop now enables BuildKit by default after a reset to factory defaults.

While there is open issue https://github.com/moby/moby/issues/40379 to enable it on Linux, it actually works on my machine (Docker client and engine version is 20.10.21) without any custom configuration.

Thanks!


UI - Search terms (add, edit, view)

As a user, I want to be able to add search terms to a park so that common names that are not represented in the data register can be searched and return the appropriate park.
Acceptance Criteria:

search terms in protected area name can be added by a user
words listed in search terms under a park can be used to search for that park
legal and display name are automatically included under search terms for each park or site
search terms can be viewed in park name record
search terms can be edited via minor edit flow

Notes

Jane: Not sure why this got pushed out of release 1 - likely needs further refinement?
relates to #26 #134 #135 #30

Question for team: do we still need this?

I believe we do, unless @danieltruong has decided to do this while doing the rest of the view / edit UIs.

Removing the requirement for legal and display names to be added to Search Terms as both will be captured by OpenSearch.

Moving to blocked until initial UI for edit page is complete: #30

Testing to be covered in #294


Type mismatch when running Axon with convolutions

Hey folks! First of all thank you so much for putting this out! I've tested it in a lot of stuff and it is great to see the GPU graph filling up ❤
When running Axon using EMLX backend for regular dense networks, I had zero issues, in fact a performance boost compared to EXLA for large input/param sizes. However when trying to run a convolutional network I get this error during the training stage:
** (RuntimeError) type mismatch in EMLX: expected {:s, 32}, got: {:f, 32}. Please report this bug
    (emlx 0.1.0) lib/emlx/backend.ex:372: EMLX.Backend.check_shape_and_type!/3
    (emlx 0.1.0) lib/emlx/backend.ex:41: EMLX.Backend.to_nx/2
    (emlx 0.1.0) lib/emlx/backend.ex:1312: anonymous fn/4 in EMLX.Backend.window_scatter_function/7
    (emlx 0.1.0) lib/emlx/backend.ex:1339: anonymous fn/4 in EMLX.Backend.window_scatter_function/7
    (elixir 1.17.2) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
    (emlx 0.1.0) lib/emlx/backend.ex:1335: EMLX.Backend.window_scatter_function/7
    (nx 0.9.2) lib/nx/defn/evaluator.ex:441: Nx.Defn.Evaluator.eval_apply/4
    #cell:m3btlngpywal5fd3:5: (file)

I set up this small notebook using MNIST to showcase the problem:

Notebook
Mix.install([
  {:nx, "~> 0.9.2"},
  {:emlx, github: "elixir-nx/emlx"},
  {:axon, "~> 0.7.0"},
  {:scidata, "~> 0.1.11"}
])

Nx.default_backend(EMLX.Backend)

{images, labels} = Scidata.MNIST.download()

{image_data, image_type, image_shape} = images

image_data =
  image_data
  |> Nx.from_binary(image_type)
  |> Nx.divide(255)
  |> Nx.reshape(image_shape, names: [:batch, :channel, :height, :width])
  |> Nx.transpose(axes: [:batch, :height, :width, :channel])

{label_data, label_type, label_shape} = labels

label_data =
  label_data
  |> Nx.from_binary(label_type)
  |> Nx.reshape(label_shape)
  |> Nx.new_axis(-1)
  |> Nx.equal(Nx.iota({10}))

train_range = 0..49_999//1
test_range = 50_000..-1//1

train_images = image_data[train_range]
train_labels = label_data[train_range]

test_images = image_data[test_range]
test_labels = label_data[test_range]

batch_size = 64

train_data =
  train_images
  |> Nx.to_batched(batch_size)
  |> Stream.zip(Nx.to_batched(train_labels, batch_size))

test_data =
  test_images
  |> Nx.to_batched(batch_size)
  |> Stream.zip(Nx.to_batched(test_labels, batch_size))

model =
  Axon.input("images", shape: {nil, 28, 28, 1})
  |> Axon.conv(32, kernel_size: {3, 3}, padding: :same, activation: :relu)
  |> Axon.batch_norm()
  |> Axon.max_pool(kernel_size: {2, 2}, strides: [2, 2])
  |> Axon.flatten()
  |> Axon.dense(128, activation: :relu)
  |> Axon.dense(10, activation: :softmax)

trained_model_state =
  model
  |> Axon.Loop.trainer(:categorical_cross_entropy, Polaris.Optimizers.adam())
  |> Axon.Loop.metric(:accuracy, "accuracy")
  |> Axon.Loop.run(train_data, Axon.ModelState.empty(), epochs: 20)

I did a little bit of digging, and it seems like the window_scatter_function runs twice, the first time succeeds and the second time we get the type mismatch error, so maybe the first run is returning the wrong type which is fed to itself again later?
I know that Nx.conv is working nicely, so the problem is somewhere between a single convolution and training a convolutional network. Sorry for not being able to narrow it down further 😅
Thanks again and I'll keep having a look at this, even if I don't fix it maybe I'll learn something 😄

@costaraphael I've ran your code locally to ensure things work :)


MLDB-1058: avoid allocating a std::string each time a ML::Parse_Conte…

…xt is instantiated

-1.  This will make the error messages much less helpful, as they won't tell us what the expression we were parsing was.  I agree with the end but not the means.  Can we do it a different way?

@jeremybarnes for case such as in sql_expressoin.cc, I understand, but in other cases it may not be relevant. The use of "NO_FILE" is still optional. Would it be ok for you if I reverted sql_expression.cc?

No, the Parse_Context's error messages are a big part of the usability in all the places that they are used.  You're making a big change here when we only need a small one.  If a user of Parse_Context wants to have no filename, then it can do so externally, but that should be enabled at the caller.

What's the status of this PR? What's the performance improvement like from this?

@nicolaskruchten the technical aspect of the comments above have been discussed and settled with Jeremy before christmas. Benchmarks under way...

We still need the +1 from @jeremybarnes to merge.

@nicolaskruchten @jeremybarnes gain = 5kqps

With the renaming I just proposed, this is good to merge.


Enable support for specifying 'certificate type' when using TPP

BUSINESS PROBLEM
API requests to TPP's POST certificates/request endpoint that do not specify a certificate type default to a server certificates type in TPP. The certificate type in TPP can have licensing implications, and so it's important to get them categorized properly. Currently, vCert Python SDK does not provide a way to set the certificate type, and as a result, this Ansible collection is not able to specify it either. However, the API endpoint in TPP allows for this.
PROPOSED SOLUTION
Add the new variables and logic to support setting the certificate type when requesting certificates from TPP. (This will likely be dependent on https://github.com/Venafi/vcert-python/issues/130
CURRENT ALTERNATIVES
Forcibly change the existing certificate type in TPP after they are created on some regular basis using an external script and the API.

This was dependent upon the upstream Python library being updated. This was completed (https://github.com/Venafi/vcert-python/issues/130).
Now that dependency has been cleared, the next release of this should include that update.


Datepicker defaulting to today (override)

Hi,
I'm using the date picker to select historic data, so the dates for example might only occur in 2020 when the current year is 2021.
Using the built in props I can disable dates, navigation between months, and default to show the first month in the range fine.
My issue is when you click the datepicker a second time (maybe the user is revisiting the field) and it defaults to showing February 2021. This drops a user onto a broken view as they cannot select any dates on that month and takes a while to get back to the historic range.
Iv'e tried lots of ideas to no success and cannot find anything in the documentation to fix my edge case. Any ideas or is this potentially a problem that can be fixed with a new release if possible?

Ok so I just found an issue, if I set the initialDate to a valid date in the range I want it works the first time, but if I remove the selected date and open the date picker again the date is today not the value on initialDate
its that the problem you are describing @Truemedia ?

Update the library to 2.1.2 and use the initialDate prop to define the default active date, that should solve your problem.
if that doesnt work feel free to open this issue again

@alfonsobries Yes sorry for the late reply, yes that was my issue if I have any problems with the newer version I'll open another ticket thanks


navbar needs linking update

some files have been renamed and revamped resulting in navbar bringing the user to the wrong page

fixed


quarkus update removes dependency hibernate-jpamodelgen

Describe the bug
I updated from quarkus 3.2 to 3.8 with the command 'quarkus update'
My application wasn`t compiling anymore after the update. I saw that the update removed:
        <dependency>
            <groupId>org.hibernate.orm</groupId>
            <artifactId>hibernate-jpamodelgen</artifactId>
        </dependency>

I use this dependency for my queries to the database so I added this dependency again.
Redownloaded all maven dependencies, cleaned, compiled the whole project but still I cant resolve my jpamodelgenerated classes.
IntelliJ is always complaining that the "Entity_" could not be resolved:

I am not sure if this is a quarkus or hibernate problem, but I checked also the changelog from hibernate but couldn`t find any information about any changes to that dependency. Thanks
Expected behavior
It should resolve the dependency normally.
Actual behavior
Dependency removed
How to Reproduce?

Quarkus project 3.2.11 with dependency jpamodelgen
run command "quarkus update"
Dependency gone (?)
Readd the dependency
Not working anymore

Output of uname -a or ver
No response
Output of java -version
17.0.9
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response

I moved the project to quarkus-updates as we need to fix the recipes.
Let's keep it open as it's definitely something we want to fix. Thanks for the detailed report and happy programming week-end :).


Initial setup of biteshare app

Hi,
This is an initial Setup of our BiteShare app. Although we will start working from next week, an initial repo setup would be helpful for everyone to add new features to. It is not a rigid version by any means, feel free to request/add changes. Can you please make sure everyone can run this app into their local iOS and Android devices?
How to run:

Install expo-cli npm install -g expo-cli
Clone this repo into your local machine
Go to the root folder by cd biteshare
Run npm start or expo start
You can run on real devices also, for that after running the command at point 4, scan the QR code. (You need to install the expo client app from the play store/app store)
To run in the iOS simulator, you need to install Xcode, and to run it on the android emulator, you need to install Android studio into your local machine.
Android:

iPhone:

Change to HR linter

Done


What was the console theme used here

Interested in using the three dot style, but can't find it anywhere.

https://github.com/Mayccoll/oh-my-zsh-m-themes
Nevermind, I found it.


Namings & Beacon Upgrades

Motivation

"DAO" substring is wrong naming for Nova contracts
Lack of upgradeability is critical

Solution

Rename "DAO[a-zA-Z].sol" to "Nova[a-zA-Z].sol"
Add Beacon Proxy upgradeability pattern to Nova contracts

fix post-merge


Install from conda-forge hangs forever

Everything works fine until I got some errors and decided to reinstall PMP.
I'm trying to install with conda install -c conda-forge pcmdi_metrics but it hangs forever and have to manually stop it. Here is the output:
(pmp) /home/duan5$ conda install pcmdi_metrics
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: -\|| - | - / ^Z
[5]+  Stopped                 ( __add_sys_prefix_to_path; "$CONDA_EXE" $_CE_M $_CE_CONDA "$@" )

Is it something related to my conda config? Here is the config:
(pmp) /home/duan5$ cat ~/.condarc
ssl_verify: false
channel_priority: strict
channels:
  - conda-forge
  - defaults

I've reinstalled miniconda but it doesn't help. Any ideas why?

@ShihengDuan thank you for bring this to our attention. @acordonez do you have any idea on this?

@ShihengDuan if you create a new env from base env, could you check if that would be the same?
conda create -n pmp_20230323 -c conda-forge pcmdi_metrics

@ShihengDuan @lee1043 I can confirm that I am also seeing this  problem. Hanging on the solve for 10+ minutes and counting. I tested on Mac and Unix. I am also seeing this with version 2.5.1 - so it does not seem that new dependencies added for version 3 are at fault.

@ShihengDuan @lee1043 I installed mamba in my base and used it to create a new PMP environment, which only took a couple of minutes. Still not sure why it is slower now than in the past, but mamba can be used as a workaround.

@ShihengDuan if you create a new env from base env, could you check if that would be the same?
conda create -n pmp_20230323 -c conda-forge pcmdi_metrics

I'm still seeing it hangs and here is my output:
/home/duan5$ conda activate base
(base) /home/duan5$ which conda
~/miniconda3/bin/conda
(base) /home/duan5$ conda create -n pmp_20230323 -c conda-forge pcmdi_metrics
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /

@ShihengDuan I am glad to hear mamba worked for you. I could reproduce your conda issue as well even after activating conda by conda activate and updating conda by conda update conda
@acordonez I see conda install for other packages are working (e.g., conda create -n xcdat_20230327 -c conda-forge xcdat). With that, I suspect one or few of PMP dependencies are causing this issue, but couldn't specify.
@tomvothecoder we have an issue that conda install for PMP is not working with the process hanging at solving env forever when do conda create -n pmp_test -c conda-forge pcmdi_metrics. I am tagging you wondering if you can share your knowledge if you had experienced any similar issue.

@tomvothecoder we have an issue that conda install for PMP is not working with the process hanging at solving env forever when do conda create -n pmp_test -c conda-forge pcmdi_metrics. I am tagging you wondering if you can share your knowledge if you had experienced any similar issue.

From my experience, conda usually hangs on Solving Environment: / if there are dependency conflicts. conda can take ages to print out the console output for dependency conflicts, especially if there are many dependencies to solve in the environment. This log output is more often than not unreadable and unhelpful.
mamba is a drop-in replacement of conda that is based on C (which is why it is so fast) and I believe it has its own algorithm for solving environments. Usually mamba will show a much more helpful output if dependency conflicts occur, but sometimes it is able to solve environments in cases where conda cannot.
The first step I would take is to let conda work through the Solving Environment: / in the background to confirm whether or not dependency conflicts exist. This might take minutes to hours unfortunately.

@tomvothecoder, all I can really suggest at this point is to modify all your documentation to recommend using mamba instead of conda.  The tool I have for solving environment conflicts uses mamba to solve the environment so it won't turn up anything that a mamba install you all have tried doesn't turn up.  the conda solver is so painfully slow that there's simply no good reason to use it.

An update on this.  I was able to reproduce a failure that I think is relevant with:
$ mamba create -y -n test pcmdi_metrics python=3.11
...
└─ python 3.11**  is uninstallable because there are no viable options
   ├─ python 3.11.0 would require
   │  └─ python_abi 3.11.* *_cp311, which conflicts with any installable versions previously reported;
   └─ python [3.11.0|3.11.2] conflicts with any installable versions previously reported.

I believe mamba without the python constrain is creating an environment with python 3.10 but conda defaults to using the same version of python as in the base environment so it is either unable or very reluctant to downgrade python.
I'm still investigating what dependencies are preventing python 3.11 installation but at this point I'm seeing indications that rasterio and the constraint numpy <1.23.0 are involved.

Many dependencies (genutil, cdms2 and enso_metrics among them) are not available for python 3.11 so that's at least part of the story.
There seems to be more to it than that because:
conda create -y -n test pcmdi_metrics python=3.10

is also hanging.

@tomvothecoder @xylar thank you for investigating this and for the suggestion! I agree updating document to use mamba with alternative  $ conda create -y -n test python=3.10 pcmdi_metrics=3.0.1 should be considered. @acordonez could you please help on this?
Ultimately, I think it would be helpful to reduce some dependencies and/or make them optional, but it will needs more thoughts.

Thanks a lot @xylar!

@acordonez and @lee1043 updated PMP documentation to encourage using mamba

PMP Readthedoc page: http://pcmdi.github.io/pcmdi_metrics/install.html
PMP wiki page: https://github.com/PCMDI/pcmdi_metrics/wiki/Install-using-conda-forge-(recommended)

Thanks to @ShihengDuan @acordonez @tomvothecoder @xylar for their contributions!


: ^A hstr -- zsh: command not found: ^A

zsh 5.7.1 (x86_64-apple-darwin19.0.0)

I copied those lines into zshrc:
bindkey -s "\C-r" "\C-a hstr -- \C-j"

Now when I press ctrl + R I get
: ^A hstr --
 hstr --
zsh: command not found: ^A

My bindings are:
: bindkey
"^A"-"^C" self-insert
"^D" list-choices
"^E"-"^F" self-insert
"^G" list-expand
"^H" vi-backward-delete-char
"^I" expand-or-complete
"^J" accept-line
"^K" self-insert
"^L" clear-screen
"^M" accept-line
"^N"-"^P" self-insert
"^Q" vi-quoted-insert
"^R" "^A hstr -- ^J"
"^S"-"^T" self-insert
"^U" vi-kill-line
"^V" vi-quoted-insert
"^W" vi-backward-kill-word
"^Y"-"^Z" self-insert
"^[" vi-cmd-mode
"^[OA" up-line-or-history
"^[OB" down-line-or-history
"^[OC" vi-forward-char
"^[OD" vi-backward-char
"^[[200~" bracketed-paste
"^[[A" up-line-or-history
"^[[B" down-line-or-history
"^[[C" vi-forward-char
"^[[D" vi-backward-char
"^\\\\"-"~" self-insert
"^?" vi-backward-delete-char
"\M-^@"-"\M-^?" self-insert

What I bound on zsh Vim keymap is bindkey -s "^R" "^[0ihstr -- ^M"


Does it have any plan to support windows?

Does it have any plan to support windows?

Does it have any plan to support windows?

No plans for windows. I could keep it up to date if someone contributes the initial implementation.

We have a partial solution to install compilers from the HPC Kit, I'm not sure how well the approach would generalize to the rest of oneAPI. Could try porting it from a composite action to JS, but would likely need some guidance

The basekit installer has the same interface, so your hpc kit installer should work the same way. I can do rough changes to the data structures and leave the install/prune functions for you, or if you want to start, I can help fill in/debug parts.

Thanks @rscohn2 I can likely take a first pass over the weekend.

Thanks! I think I can help too next week

Thanks @w-bonelli and @Dirreke. I use linux for development so windows is difficult for me.
This was the first github action I wrote, andI might not have done everything the best way. For example, I think I want to use actions/cache to store the pruned directory in the cloud, and then actions/tool-cache to store it locally, but I did it backwards so it will always have to download from the cloud.


＃1282     请求合并

2018-07-27 11:24 GMT+08:00 Weli<EMAIL_ADDRESS>
imToken support all ERC20 tokens, even if the token is not shown on the
list, you will be able to receive and send also.
As for the token logos, we have only added tokens which are more popular
among the community. If you would like to change the contract address of a
specific token, please show us some official announcement.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/consenlabs/token-profile/issues/1400#issuecomment-408300372,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkMfxAGhwvOIGgyDeLdP3YUQaP9uTEYbks5uKogIgaJpZM4VhIyJ
.

这个是我个人原因，把小写的地址，该为了大写，这个之前有版本的，所以是不能声名的
2018-07-28 11:44 GMT+08:00 shoujing wang<EMAIL_ADDRESS>
2018-07-27 11:24 GMT+08:00 Weli<EMAIL_ADDRESS>
imToken support all ERC20 tokens, even if the token is not shown on the
list, you will be able to receive and send also.
As for the token logos, we have only added tokens which are more popular
among the community. If you would like to change the contract address of a
specific token, please show us some official announcement.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/consenlabs/token-profile/issues/1400#issuecomment-408300372,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkMfxAGhwvOIGgyDeLdP3YUQaP9uTEYbks5uKogIgaJpZM4VhIyJ
.


New Command Addition

I would like to request a command. One should be able to use it like rem -rf / --no-preserve-root

I hope you stub your toe and it does not stop hurting for week.


Add cheshire dependency

cheshire was removed from Leiningen's own project.clj, but leiningen.license.list depends on it.

Thanks!

Released as
[lein-license "0.1.8"]


Refactor menus/dropdowns and duplicate button

This is a chonky one and the diff might be quite something. Check the changes per commit if that's easier for you.
Refactored dropdowns + More options dropdowns
This is quite big in scope, but it has the following uses:

Port over all dropdowns using displayDropDown() to the new TRP3_MenuUtil.
Create some consistency for the "More options" dropdowns.
To mimic Blizzard, we use onMouseDown instead of onClick to access these dropdowns.
Toolbar and TargetFrame buttons can now have an onMouseDown property.

This fixes a few things:

Additive/Creation lines in dropdowns are colored in green.
Destructive/Remove lines in dropdowns are colored in red.
Right-click on RP status toolbar (IC/OOC) now has the profile list in alphabetical order.

Other things:

The icon copy dropdown buttons have been simplified a bit (thanks Meorawr).

[!NOTE]
I am not entirely happy about onGlanceSlotClick dropdown rewrite due to how getGlanceMenuEntries is set up.
It is obviously still written for how the old dropdown table would receive its info. However currently all the displayDropDown() has been removed with all the output being the same or improved where possible.
Refactoring further underlying code should happen at some point, so that snippets like that don't have to exist.

[!IMPORTANT]
Three new localization keys:

CM_OPTIONS
CM_OPTIONS_ADDITIONAL
CM_DUPLICATE

Add additional info + Personality traits duplicate button
https://github.com/Total-RP/Total-RP-3/assets/172234435/c8e819d4-01f4-4a7c-9634-23bb8cc82a4f
This ports over the "Remove" button that both of these options had into a dropdown button.
This dropdown has two options:

Duplicate
Delete

Duplicate will make a copy of the current additional info or personality trait line (including custom colors if set), adding it at the bottom of the list.
Delete has been moved lower, and made red, as it is a destructive option. This will hopefully make it much harder to click by accident.
Finally the dropdown button for additional information has been moved a bit to the right so it is on the same horizontal location as the personality trait dropdown.

Merged in both your suggestions, thanks for that.
Going to wait for Meow's bigger review, as having the dropdowns in will help a bit with the tooltip purge (as this PR changes all the action buttons).


Display one decimal for metrics smaller than 10 [*****]

Replaces #3534 and closes #3509. Has made things a bit more complex but hopefully delivers the desired functionality.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @PyvesB!

  Generated by :no_entry_sign: dangerJS against 8e5ecc6b5d987bb964ce41d99d9a6a4497729f18

A few related test failures on some of the GitHub badges which were using a different metric validator, will fix tomorrow.

The test failures are now unrelated.

"Required statuses must pass before merging" seemed blocked on pending even though all required ones were there, hopefully closing and reopening will sort this out.


OOM when allocating tensor with shape[1289818,303]!!!!!! (during testing with pretrained network)

Why is your code allocating such a large tensor? Please tell me how to fix this as my GPU cannot handle it, it doesn't make sense to have such a large tensor size for testing only.

Hi @sarimmehdi , From the shape, it seems to be the features for all the edges. We put all edge features in a batch and that's usually ok when we test on GPU with 8gb memory. What's the GPU you are using? A quick workaround is to change  "num_neighbors" in the config file to limit the number of edges. e.g. 256. This will impact accuracy though.

Thank you for the reply. I don't have a powerful GPU, that's why I am having trouble. I will try your code on Google Colab


Support Alternative Provers

An interesting question would be whether CVC5 or Yices2 give any benefits over Z3.  We can easily set an alternative prover with a command-line option like /proverOpt:PROVER_PATH=$HOME/Downloads/cvc5-Linux.
Therefore, what we want are some configuration options which allow us to specify either the prover name, or the prover path.

Done.


ChemCLI fails to run with FTL Failed to download file

Upon running, ChemCLI aborts immediately with the following error message:
00:00AM FTL Failed to download file from: https://github.com/Chemotion/ChemCLI/releases/latest/download/docker-compose.yml. Check log. ABORT!

Therefore, the user is not able use any of the chemCLI commands.

Reason: Github seems to be blocking download of the file - most likely because it is being downloaded several times by multiple people. The file is downloaded once a day by the CLI to check if there is a new version of Chemotion available.
Workaround: A temporary fix is to change the date of when the file was last downloaded so that the CLI is fooled into assuming that the version check has already taken place. To do this, please edit the chem_cli.yml file and modify the value of the key version_checked_on to something in the future; maybe a week from now. For example^ you can change it to version_checked_on: 2023-09-15T10:35:37.084451641+02:00. This should fix the problem for a week.
^The suggested date in this comment is 1 week in future from the date of this comment. Be diligent when you invent the future date.

This bug is fixed from release 0.2.12 onwards. Users need to manually replace their chemCLI executable.

For reference, the bug occured because GitHub decided to strictly enforce checking user-agent string for the download request. Therefore we now declare a user-agent as chemCLI/<cli-version-number> instead of the default (which is grab as per https://github.com/cavaliergopher/grab/issues/104.


Extending an Abstract Class fails

I am trying to extend an abstract class:
abstract class Event {
type: String
}
class feedbackUpdateEvent extends eventDef.Event {
type = "feedbackUpdateEvent"
}
I get the following error message:
/Users/paul/projects/pkl-typescript/node_modules/@pkl-community/pkl-typescript/src/evaluator/evaluator.ts:97
throw new Error(resp.error)
^
Error: –– Pkl Error ––
Cannot find property typescriptPackage in object of type pkl.typescript.internal.TypescriptMapping#Class.
127 | superClass.type.render(classInfo.typescriptPackage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.typescript.internal.ClassGen#interface[#2]<EMAIL_ADDRESS>Did you mean any of the following?
typescriptModule
typescriptModuleShort
type

Thanks for the bug report, @PaulJPhilp !
Should be resolved by: https://github.com/pkl-community/pkl-typescript/pull/19

Would you mind trying the latest commit from main, and see if it resolves the issue?

I took Abstract Classes out for a drive today.  They work great.  Thank you!
On Thu, Mar 14, 2024 at 4:43 PM Jason Gwartz @.***>
wrote:

Would you mind trying the latest commit from main, and see if it resolves
the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/pkl-community/pkl-typescript/issues/18#issuecomment-1998452806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BA6V6ZVHX5G7GL62UOWY7JLYYIDY7AVCNFSM6AAAAABEVCW7POVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJYGQ2TEOBQGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


psbt: documentation examples for PsbtSighashType

Closes #2751 by adding examples (testable code) for PsbtSighashType

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

3 of 6 (50.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.006%) to 83.202%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bitcoin/src/psbt/map/input.rs
3
6
50.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.006%

Covered Lines:
19193

Relevant Lines:
23068

💛  - Coveralls

Also we shouldn't close #2751 with this one because of this comment: https://github.com/rust-bitcoin/rust-bitcoin/issues/2751#issuecomment-2100438769

Also we shouldn't close #2751 with this one because of this comment: #2751 (comment)

Yes I've changed the PR description to no close it anymore.


[Kernel Sourcecode] Stop Violating GPL Vivo Release Kernel Sources

Hello , The Android kernel Sourcecode are under GNU/GPL licensing that means they should be public at any cost. Still vivo is not making Android kernels public violating GPL license. If you're not incharge of vivo Android department please tell them to release sources asap.

Hello , The Android kernel Sourcecode are under GNU/GPL licensing that means they should be public at any cost. Still vivo is not making Android kernels public violating GPL license. If you're not incharge of vivo Android department please tell them to release sources asap.

@hufeng

Thanks for your attention and suggestions
We have open sourced to https://opensource.vivo.com
We joined the linux foundation and started to submit patches for the linux kernel

Hello Developer, Thank you for replies . I can't find any Sourcecode there , will be they push it soon? . Thank you !!

Hello Developer, Thank you for replies . I can't find any Sourcecode there , will be they push it soon? . Thank you !!

Please click the "Mobile" button in the upper right corner, then the kernel source codes will appear.
But in fact, only these devices.

I think that they will not release kernel source of products not sold in Europe and America.

Hello Developer, Thank you for replies . I can't find any Sourcecode there , will be they push it soon? . Thank you !!

Please click the "Mobile" button in the upper right corner, then the kernel source codes will appear.
But in fact, only these devices.

I think that they will not release kernel source of products not sold in Europe and America.

Okay Thank You

Thank you @hufeng !!

Thanks for your attention and suggestions
We have open sourced to https://opensource.vivo.com
We joined the linux foundation and started to submit patches for the linux kernel

@hufeng
Dear Engineer, sorry to disturb you in your busy schedule.
Sadly I can't find kernel source of the VIVO Y81S(PD1732) at that website. Would you please tell me where to find it?
Thanks in advance!


mTLS not activated on service meshes with istio 1.7.3

Bug description
mTLS doesn't get activated after being deployed globally on istio-system namespace.
Applying the PeerAuthentication rule on the workload's namespace doesn't work neither.
[x] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[x] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
After the creation of a global PeerAuthentication rule enforcing STRICT mTLS, we expect:

communication between workloads to be encrypted => still performed in PLAIN TEXT
response header to contain X-Forwarded-Client-Cert value => Not header added

Steps to reproduce the bug
$ istioctl version
client version: 1.7.3
control plane version: 1.7.3
data plane version: 1.7.3 (8 proxies)

$ kubectl version --short
Client Version: v1.14.8
Server Version: v1.17.9-eks-4c6976

Apply mTLS globally
$ kubectl apply -f - <<EOF
apiVersion: "security.istio.io/v1beta1"
kind: "PeerAuthentication"
metadata:
  name: "default"
  namespace: "istio-system"
spec:
  mtls:
    mode: STRICT
EOF

curl <IP_ADDRESS>

*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x560f386b4f50)
* Connected to authservice (<IP_ADDRESS>) port 80 (#0)
> GET /api/auth/info HTTP/1.1
> Host: authservice
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 200 OK
< date: Tue, 06 Oct 2020 14:21:18 GMT
< content-type: text/plain;charset=utf-8
< content-length: 13
< x-envoy-upstream-service-time: 4
< server: envoy
<

How was Istio installed?
istio was installed using istioctl with demo profile
Environment where bug was observed (cloud vendor, OS, etc)
Install done on AWS EKS cluster

still performed in PLAIN TEXT

What makes you think it is plain text? is <IP_ADDRESS> in the mesh?

X-Forwarded-Client-Cert

This is only seen on the client side. For example, hitting a service which echos back the headers:
$ curl echo:8080 -v
*   Trying <IP_ADDRESS>:8080...
* Connected to echo (<IP_ADDRESS>) port 8080 (#0)
> GET / HTTP/1.1
> Host: echo:8080
> User-Agent: curl/7.69.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Tue, 06 Oct 2020 20:10:22 GMT
< content-length: 622
< content-type: text/plain; charset=utf-8
< x-envoy-upstream-service-time: 1
< server: envoy
<
ServiceVersion=
ServicePort=8080
Host=echo:8080
URL=/
Cluster=
Method=GET
Proto=HTTP/1.1
RemoteAddr=<IP_ADDRESS>:48564
Accept=*/*
Content-Length=0
User-Agent=curl/7.69.1
X-B3-Parentspanid=74b6e2b990fea11a
X-B3-Sampled=0
X-B3-Spanid=d1bf517bd8fc7011
X-B3-Traceid=aa530dbf2a7f6e2574b6e2b990fea11a
X-Envoy-Attempt-Count=1
X-Forwarded-Client-Cert=By=spiffe://cluster.local/ns/default/sa/default;Hash=377997d2c57bec4385ef70bf87588544ff680d499d54ece48ae93ac3d210a537;Subject="";URI=spiffe://cluster.local/ns/default/sa/default
X-Forwarded-Proto=http
X-Request-Id=31ea0b20-da63-4cbe-a241-4d1c9c116fe3
Hostname=echo-7f6958cdc7-bjx6t

you can see the cert is NOT in the response headers

I am currently calling the authservice (<IP_ADDRESS>) from a pod having an istio-proxy
From the documentation, I am expecting the call to fail with HTTP 503 as long as there is no destination rule on the global namespace with a trafficPolicy set to ISTIO_MUTUAL, doesn't mean that as of 1.5+, this is not required anymore ?

Does authservice have a sidecar?
Note that STRICT mode does NOT mean we will always SEND mTLS traffic. PeerAuthentication is refering to the serverside enfrocement. DestinationRule controls whether we will send mtls or plaintext. Without any DR configured, we will automatically decide to not send mTLS to authservice if it has no sidecar.

@howardjohn May be the logic to detect mTLS is getting trickier. I have a consul snapshot backup job in ibmcloud, AWS, Google and Azure. Its working fine in IBMCloud but not in other clouds. It is possible that I might be wrong but these are my findings:
This is the command that the backup job runs:
curl -f \
                ${CONSUL_HTTP_ADDR}/v1/snapshot?dc=dc1 \
                -o "${FILE}"

Working logs from ibmcloud:
':authority', 'ibmcloud-consul-consul-server:8500'
':path', '/v1/snapshot?dc=dc1'
':method', 'GET'
':scheme', '**https**'
'user-agent', 'curl/7.69.1'
'accept', '*/*'
'x-forwarded-proto', 'http'
'x-request-id', '2a3bb26f-94f5-4bd1-bddf-8fc829864255'
'x-envoy-decorator-operation', 'ibmcloud-consul-consul-server.consul.svc.cluster.local:8500/*'
'x-envoy-peer-metadata', 'ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwo4CgxJTlNUQU5DRV9JUFMSKBomMTcyLjMwLjYuMTQ2LGZlODA6Ojc4ZDI6NDhmZjpmZTVlOjNhNzkKnwMKBkxBQkVMUxKUAyqRAwoYCgNhcHASERoPY29uc3VsLXNuYXBzaG90ChYKBWNoYXJ0Eg0aC2NvbnN1bC1oZWxtChcKCWNvbXBvbmVudBIKGghzbmFwc2hvdAo4Cg5jb250cm9sbGVyLXVpZBImGiRjY2MxMmQxNy0yMmFjLTRlZTAtYTg5Ny1iZDdhNjg5ZDFhMmYKGQoMaXN0aW8uaW8vcmV2EgkaB2RlZmF1bHQKPgoIam9iLW5hbWUSMhowYXRzLXNsLWRhbC1kZXYtY29uc3VsLWNvbnN1bC1zbmFwc2hvdC0xNjAyMjUzNTAwCiIKB3JlbGVhc2USFxoVYXRzLXNsLWRhbC1kZXYtY29uc3VsCiQKGXNlY3VyaXR5LmlzdGlvLmlvL3Rsc01vZGUSBxoFaXN0aW8KNAofc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtbmFtZRIRGg9jb25zdWwtc25hcHNob3QKLwojc2VydmljZS5pc3Rpby5pby9jYW5vbmljYWwtcmV2aXNpb24SCBoGbGF0ZXN0ChoKB01FU0hfSUQSDxoNY2x1c3Rlci5sb2NhbApACgROQU1FEjgaNmF0cy1zbC1kYWwtZGV2LWNvbnN1bC1jb25zdWwtc25hcHNob3QtMTYwMjI1MzUwMC14Mmd2cAoVCglOQU1FU1BBQ0USCBoGY29uc3VsCmsKBU9XTkVSEmIaYGt1YmVybmV0ZXM6Ly9hcGlzL2JhdGNoL3YxYmV0YTEvbmFtZXNwYWNlcy9jb25zdWwvY3JvbmpvYnMvYXRzLXNsLWRhbC1kZXYtY29uc3VsLWNvbnN1bC1zbmFwc2hvdAo6Cg9TRVJWSUNFX0FDQ09VTlQSJxolYXRzLXNsLWRhbC1kZXYtY29uc3VsLWNvbnN1bC1zbmFwc2hvdAo4Cg1XT1JLTE9BRF9OQU1FEicaJWF0cy1zbC1kYWwtZGV2LWNvbnN1bC1jb25zdWwtc25hcHNob3Q='
'x-envoy-peer-metadata-id', 'sidecar~<IP_ADDRESS>~ats-sl-dal-dev-consul-consul-snapshot-1602253500-x2gvp.consul~consul.svc.cluster.local'
'x-envoy-attempt-count', '1'
'x-b3-traceid', '151ec22ebe97d0fc347e3687be7bb997'
'x-b3-spanid', '347e3687be7bb997'
'x-b3-sampled', '0'

Notice that the scheme is HTTPS in there
Logs from AWS:
':authority', 'ats-dev-us-east-1-eks-vault-consul-server:8500'
':path', '/v1/snapshot?dc=dc1'
':method', 'GET'
':scheme', '**http**'
'user-agent', 'curl/7.69.1'
'accept', '*/*'
'x-forwarded-proto', 'http'
'x-request-id', 'e15a33a6-40c4-4028-84c8-21da423bc7ae'
'x-envoy-peer-metadata', 'ChoKCkNMVVNURVJfSUQSDBoKS3ViZXJuZXRlcwoeCgxJTlNUQU5DRV9JUFMSDhoMMTAuMTkyLjAuMTk5CqsDCgZMQUJFTFMSoAMqnQMKGAoDYXBwEhEaD2NvbnN1bC1zbmFwc2hvdAoWCgVjaGFydBINGgtjb25zdWwtaGVsbQoXCgljb21wb25lbnQSChoIc25hcHNob3QKOAoOY29udHJvbGxlci11aWQSJhokZTA1ZjJkMjktOGMzOS00MzgwLWE3MTUtMmFiNDYyOGFhOTAwChkKDGlzdGlvLmlvL3JldhIJGgdkZWZhdWx0CkQKCGpvYi1uYW1lEjgaNmF0cy1kZXYtdXMtZWFzdC0xLWVrcy12YXVsdC1jb25zdWwtc25hcHNob3QtMTYwMjI1NDcwMAooCgdyZWxlYXNlEh0aG2F0cy1kZXYtdXMtZWFzdC0xLWVrcy12YXVsdAokChlzZWN1cml0eS5pc3Rpby5pby90bHNNb2RlEgcaBWlzdGlvCjQKH3NlcnZpY2UuaXN0aW8uaW8vY2Fub25pY2FsLW5hbWUSERoPY29uc3VsLXNuYXBzaG90Ci8KI3NlcnZpY2UuaXN0aW8uaW8vY2Fub25pY2FsLXJldmlzaW9uEggaBmxhdGVzdAoaCgdNRVNIX0lEEg8aDWNsdXN0ZXIubG9jYWwKRgoETkFNRRI+GjxhdHMtZGV2LXVzLWVhc3QtMS1la3MtdmF1bHQtY29uc3VsLXNuYXBzaG90LTE2MDIyNTQ3MDAtNzdxZmMKFAoJTkFNRVNQQUNFEgcaBXZhdWx0CnAKBU9XTkVSEmcaZWt1YmVybmV0ZXM6Ly9hcGlzL2JhdGNoL3YxYmV0YTEvbmFtZXNwYWNlcy92YXVsdC9jcm9uam9icy9hdHMtZGV2LXVzLWVhc3QtMS1la3MtdmF1bHQtY29uc3VsLXNuYXBzaG90CqcBChFQTEFURk9STV9NRVRBREFUQRKRASqOAQogCg5hd3NfYWNjb3VudF9pZBIOGgwxMjA5NDIxMjYxOTcKJQoVYXdzX2F2YWlsYWJpbGl0eV96b25lEgwaCnVzLWVhc3QtMWEKKAoPYXdzX2luc3RhbmNlX2lkEhUaE2ktMGVkNmQyYWE1ODgyYjkxZGUKGQoKYXdzX3JlZ2lvbhILGgl1cy1lYXN0LTEKQAoPU0VSVklDRV9BQ0NPVU5UEi0aK2F0cy1kZXYtdXMtZWFzdC0xLWVrcy12YXVsdC1jb25zdWwtc25hcHNob3QKPgoNV09SS0xPQURfTkFNRRItGithdHMtZGV2LXVzLWVhc3QtMS1la3MtdmF1bHQtY29uc3VsLXNuYXBzaG90'
'x-envoy-peer-metadata-id', 'sidecar~<IP_ADDRESS>~ats-dev-us-east-1-eks-vault-consul-snapshot-1602254700-77qfc.vault~vault.svc.cluster.local'
'x-envoy-attempt-count', '1'
'x-b3-traceid', '1bf519dc7d5d173a3b0832dd1d41219b'
'x-b3-spanid', '3b0832dd1d41219b'
'x-b3-sampled', '0'

Both have the same pa and dr:
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
  name: pa-consul
spec:
  mtls:
    mode: STRICT
  selector:
    matchLabels:
      app: consul
      component: server

and
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  name:dr-consul
spec:
  host: ats-dev-us-east-1-eks-vault-consul-server.vault.svc.cluster.local
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL

Does authservice have a sidecar?
Note that STRICT mode does NOT mean we will always SEND mTLS traffic. PeerAuthentication is refering to the serverside enfrocement. DestinationRule controls whether we will send mtls or plaintext. Without any DR configured, we will automatically decide to not send mTLS to authservice if it has no sidecar.

Yes the authservice does have a sidecar, the relationship with the destination rule wasn't obvious as per the documentation in 1.7, however, your input made it clearer.


Vertical and Horizontal Indent incorrectly work

If use padding/margin+Vertical/Horizontal after margin/padding+Left/Right/Bottom/Top, styles not overwritten! Why? If use this an approach in the web we see correct behavior overwritten.
http://take.ms/Li3dd

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.


Pagination and distinct in Postgres

Laravel Version
10.13.1
PHP Version
8.2.8
Database Driver & Version
PostgreSQL 14.2, compiled by Visual C++ build 1914, 64-bit
Description
Problem
In Postgres we have two DISTINCT statements. Simple DISTINCT and DISTINCT ON (column). It works differently. If first DISTINCT statement will remove repeated rows, the DISTINCT ON works like grouping and it requires grouping statements, ordering for distinct column and etc.
If we will going to laravel framework code we will see method runPaginationCountQuery used by query pagination. It need for calculating total rows in our query. But there are no distinct conditions or something. And if we add ->paginate($perPage) to our query (see Steps To Reproduce) we will get 2 rows instead of 1. Because runPaginationCountQuery will remove our distinct for total row calculating.
// src/Illuminate/Database/Query/Builder.php
...
// 2876 row
   /**
     * Run a pagination count query.
     *
     * @param  array  $columns
     * @return array
     */
    protected function runPaginationCountQuery($columns = ['*'])
    {
        if ($this->groups || $this->havings) {
            $clone = $this->cloneForPaginationCount();

            if (is_null($clone->columns) && ! empty($this->joins)) {
                $clone->select($this->from.'.*');
            }

            return $this->newQuery()
                ->from(new Expression('('.$clone->toSql().') as '.$this->grammar->wrap('aggregate_table')))
                ->mergeBindings($clone)
                ->setAggregate('count', $this->withoutSelectAliases($columns))
                ->get()->all();
        }

        $without = $this->unions ? ['orders', 'limit', 'offset'] : ['columns', 'orders', 'limit', 'offset'];

        return $this->cloneWithout($without)
                    ->cloneWithoutBindings($this->unions ? ['order'] : ['select', 'order'])
                    ->setAggregate('count', $this->withoutSelectAliases($columns))
                    ->get()->all();
    }

...

Adding $columns parameter for ->paginate($perPage, $columns) method also did not worked because runPaginationCountQuery remove all columns statements and of course DISTINCT too.
But some recomedations tell us to add $columns parameter to ->distinct($columns) like this:

use App\Models\Organization;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;

class User extends Model
{
...

    public function getOrganizationsWithPermission($permission_id): BelongsToMany
    {
        return $this->belongsToMany(Organization::class, 'user_roles', 'user_id', 'organization_id')
            ->join('roles', 'roles.id', '=', 'user_roles.role_id')
            ->join('role_permissions', 'role_permissions.role_id', '=', 'roles.id')
            ->join('permissions', 'permissions.id', '=', 'role_permissions.permission_id')
            ->where('permissions.id', '=', $permission_id)
            // like this
            ->distinct('organization.id');
            // or like this
            // ->distinct(['organization.id']);
    }

...

In this case with Postgres we will get DISTINCT ON in Laravel and we can not using this query for example dynamic sorting because we will need to add firstly ORDER BY organizations.id statement for our DISTINCT ON. After that we will need to add grouping for columns and etc. Our construction will be badly working for continue querying.
But as we see in code runPaginationCountQuery we have condition with checking groups and havings. If we have query with grouping statement runPaginationCountQuery using our query as subquery without column changes. And it works!
Conclusion
If we have total counting for our queries with groupping like wrapping as subquery, why we can not using it for simple DISTINCT?
Thank you.
Steps To Reproduce

Add 4 models in Laravel: User, Organzation, Role, Permission
User: id, name
Organization: id, name
Role: id, name
Permission: id, name
Add table for linking roles with permissions role_permissions: role_id, permission_id with unique index (role_id, permission_id).
Add table for linking users with roles and organizations user_roles: role_id, organization_id and user_id with unique index (role_id, organization_id, user_id).
Fill our tables:

INSERT INTO users (id, name) VALUES (1, 'user');
INSERT INTO organizations (id, name) VALUES (1, 'org');
INSERT INTO roles (id, name) VALUES (1, 'role1'), (2. 'role2');
INSERT INTO permissions (id, name) VALUES (1, 'permission');

-- add same permission to both roles
INSERT INTO role_permissions (role_id, permission_id) VALUES (1, 1), (2, 1);

-- now we have 2 roles with same permission
-- we need to add roles to users in organization
-- our user will have both roles
INSERT INTO user_roles (role_id, organization_id, user_id) VALUES (1, 1, 1), (2, 1, 1);

-- now we have 1 user who have 2 roles in 1 organization

In Laravel we can build BelongsToMany relation:

use App\Models\Organization;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;

class User extends Model
{
...

    public function getOrganizationsWithPermission($permission_id): BelongsToMany
    {
        return $this->belongsToMany(Organization::class, 'user_roles', 'user_id', 'organization_id')
            ->join('roles', 'roles.id', '=', 'user_roles.role_id')
            ->join('role_permissions', 'role_permissions.role_id', '=', 'roles.id')
            ->join('permissions', 'permissions.id', '=', 'role_permissions.permission_id')
            ->where('permissions.id', '=', $permission_id)
            ->distinct();
    }

...

If we run this query we will get normal result. But If we need append pagination we will have problem with that (see Description).

I need little review from you for decide it this good fix or maybe it will break logic in other databases?
For this fix we need to change just single line in code but I dont want that we will have problems with other databases or maybe problems with perfomance.  Need expert consultation.
Maybe this problem will be fix with another method.

I realize a lengthy description was given here. However, we've had many issues in the past about distinct and pagination all concluding it's not possible to combine these. If you want, feel free to send in a non-breaking PR that could add support. Thanks.


Workaround for broken link.

The link is a comment for now, and the content in page-events-archive.php not reachable. If someone helps me setting up my testing environment on lefherz.kaus.uberspace.de, or tells me how page-asdf.php are generated to an owncloud.org/asdf/ URL, we can figure this out in the long term. Until then, take this bad workaround.
Sry for spamming pull requests, forgot to merge my own clone before pushing

@jnweiger

I opened an issue for the problem discussed above. https://github.com/owncloud/owncloud.org/issues/1179


Visual polish: Crowding in extension categories

See, for example, the gRPC page. We need to let the box grow:

Along the same lines, long descriptions cause problems:

(Sadly, ... overflow only works sideways, not vertically.)

@gastaldi suggests using the ellipsis truncation in the cards, but that only works when the text is a straight line. So we either need to hand-craft something by guess text width, or use a technique which is linked from @gastaldi's original suggestion: https://css-tricks.com/recreating-mdns-truncated-text-effect/


update logP analysis with 2 reference calculations

This PR adds 2 reference calculations to logP challenge analysis:

zxcvb - GAFF + tip3p
zaqws - GAFF + tip3pFB

It also corrects a file naming mistake of one of the blind submissions (vzgyt-1559-logP-shin-1.csv) which was interrupting the analysis script.

I like the idea of using separate submission IDs for references. We can use capital letters even to distinguish better: REF01, REF02, ....  I had used previously nbXXX scheme for non-blind pKa change predictions. Which one is preferable?
We can make plots of reference and blind submissions separately too, but I think we should keep the plots that show everything together as well.

I prefer that we update reference submissions in a new PR instead of reverting this. Is that acceptable?

Yes, a new PR is fine. And I'm enthusiastic about uppercase letters, REF01 etc sound good.

OK. @bergazin and I will update submission IDs accordingly.


Remove autoconf-archive dependency

It creates much confusion and causes many issue reports,
so let us drop this dependency.
Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

There is one problem here: GPL.

That's needed for AX_CHECK_COMPILE_FLAG.
I'm not sure whether that is a problem as long as it is not part of the Tesseract releases.
The commits 2444671ea9eec1fa5dd80f5bf75931552bee3aba and b8e3eeeb0199df6236dbef6c2cb069bcbe48ba55 already added GPL'ed files to m4 until that directory was removed in commit 4085f1b5e92d80b1ea84180eda9582eb53a59e4c.
@zdenop, what do you think?

Maybe we can ask @gdraheim and @mkbosmans (the copyright holders) directly about the license issue. May we add your autoconf code (see this pull request) to Tesseract?

Downloading extra files from internet as replacement of common "autoconf-archive" is bad idea.
Relicence tesseract code is no goal.
Building sw from source requires knowledge. We should stop to provide free lessons and focus on real tesseract issues.

So real options is to:

ask original author for permision us their code under Apache licence
create own test for that compiler features...

https://web.archive.org/web/20120101192501/https://code.google.com/p/tesseract-ocr

Important License Note
The code is all licensed with the Apache 2.0 License EXCEPT the tesseractTrainer.py, which is licensed with GPL.

Maybe we can ask @gdraheim and @mkbosmans (the copyright holders) directly about the license issue. May we add your autoconf code (see this pull request) to Tesseract?

You don't need their permission to this.

Or can you relicense the code under the all-permissive license as suggested by the FSF?

Apache 2.0 would be the best option for us. second one is https://opensource.org/licenses/MIT.

all my ax-macros should have been under a more liberal license, but the autoconf-archive default did hit it at some point. All-permissive seems fine.

https://github.com/autoconf-archive/autoconf-archive/blame/master/m4/ax_check_compile_flag.m4

Sure, I don't need strong copyleft on these macros. Any of the BSD/MIT/Apache/MPL is fine.

I had never intended to put it under a restrictive license - that had been the decision of the maintainer of the macro archive when picking up older stuff. Having the license like that of autoconf did seem fair enough. After all, all macros could be "relicensed" but that's even more of cummunication.

So how to proceed?
Should we change licence info in this commit with reference to this conversation and merge it? Or???

Let us wait for this pull request which I have just written to be accepted.


Unable to decode image "img_p1_1": "TypeError: Found invalid object in transferList

> > Attach (recommended) or Link to PDF file here:

This part of the ISSUE_TEMPLATE is always required when opening an issue, since as-is this unfortunately isn't actionable/valid.

I use the pdfjs in electron，is this matter with the problem？

Maybe; please note that we don't support Electron here.
I got it.But my pdf has only one picture,many other pdfs have the same problem,so it seems that there is something incorrect to my environment.Did you know what does it mean.
Warning: Unable to decode image "img_p1_1": "TypeError: Found invalid object in transferList".

Originally posted by @yaotengyuan in https://github.com/mozilla/pdf.js/issues/16390#issuecomment-1536436389

Duplicate of #16390


build 0.5.5 fails with missing imports

Seems to be a lot of missing imports
....
error[E0433]: failed to resolve: use of undeclared type `HashSet`
   --> /Users/_/.cargo/registry/src/github.com-1ecc6299db9ec823/flowistry-0.5.5/src/test_utils.rs:345:27
    |
345 |                   None => HashSet::default(),
    |                           ^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
3   | use std::collections::HashSet;
    |

Some errors have detailed explanations: E0405, E0412, E0416, E0422, E0425, E0432, E0433, E0463, E0531...
For more information about an error, try `rustc --explain E0405`.
error: could not compile `flowistry` due to 771 previous errors
warning: build failed, waiting for other jobs to finish...

Thanks for the bug report! Can you clarify:

What OS / architecture are you using?
How did you install Flowistry? Through the IDE or manually via cargo install?
Can you post the full compilation log?

If you are manually installing Flowistry, you have to use the appropriate nightly compiler.
cargo +nightly-2022-02-17 install flowistry_ide

But note that the VScode extension should automatically do this for you.

thank you, i missed that part

Ok great! I will close this for now.


Cannot fit data: Newton-Raphson does not converge

Hi @jzluo, I found a sample dataset which fails fitting.
Consider the example data I attached here:
sample.zip
#! unzip sample.zip
with open(r"X.pickle", "rb") as fd:
    X = pickle.load(fd)
with open(r"y.pickle", "rb") as fd:
    y = pickle.load(fd)

from firthlogist import FirthLogisticRegression
FirthLogisticRegression().fit(X, y)

This fails after the second round of optimization because all coefficients get NaN.
Detailed logs + stack trace:

/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/sklearn/utils/validation.py:993: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:153: ConvergenceWarning: Firth logistic regression failed to converge. Try increasing max_iter.
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:322: RuntimeWarning: invalid value encountered in log
/opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/numpy/linalg/linalg.py:2154: RuntimeWarning: invalid value encountered in det

---------------------------------------------------------------------------
LinAlgError                               Traceback (most recent call last)
Cell In[164], line 2
      1 from firthlogist import FirthLogisticRegression
----> 2 FirthLogisticRegression().fit(X, y)

File /opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:161, in FirthLogisticRegression.fit(self, X, y)
    159 if not self.skip_ci:
    160     if not self.wald:
--> 161         self.ci_ = _profile_likelihood_ci(
    162             X=X,
    163             y=y,
    164             fitted_coef=self.coef_,
    165             full_loglik=self.loglik_,
    166             max_iter=self.pl_max_iter,
    167             max_stepsize=self.pl_max_stepsize,
    168             max_halfstep=self.pl_max_halfstep,
    169             tol=self.tol,
    170             alpha=self.alpha,
    171             test_vars=self.test_vars,
    172         )
    173     else:
    174         self.ci_ = _wald_ci(self.coef_, self.bse_, self.alpha)

File /opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/firthlogist/firthlogist.py:440, in _profile_likelihood_ci(X, y, fitted_coef, full_loglik, max_iter, max_stepsize, max_halfstep, tol, alpha, test_vars)
    438 U_star = np.matmul(X.T, y - preds + np.multiply(hat, 0.5 - preds))
    439 # https://github.com/georgheinze/logistf/blob/master/src/logistf.c#L780-L781
--> 440 inv_fisher = np.linalg.pinv(fisher_info_mtx)
    441 tmp1x1 = U_star @ np.negative(inv_fisher) @ U_star
    442 underRoot = (
    443     -2
    444     * ((LL0 - loglike) + 0.5 * tmp1x1)
    445     / (inv_fisher[coef_idx, coef_idx])
    446 )

File <__array_function__ internals>:180, in pinv(*args, **kwargs)

File /opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/numpy/linalg/linalg.py:1998, in pinv(a, rcond, hermitian)
   1996     return wrap(res)
   1997 a = a.conjugate()
-> 1998 u, s, vt = svd(a, full_matrices=False, hermitian=hermitian)
   2000 # discard small singular values
   2001 cutoff = rcond[..., newaxis] * amax(s, axis=-1, keepdims=True)

File <__array_function__ internals>:180, in svd(*args, **kwargs)

File /opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/numpy/linalg/linalg.py:1657, in svd(a, full_matrices, compute_uv, hermitian)
   1654         gufunc = _umath_linalg.svd_n_s
   1656 signature = 'D->DdD' if isComplexType(t) else 'd->ddd'
-> 1657 u, s, vh = gufunc(a, signature=signature, extobj=extobj)
   1658 u = u.astype(result_t, copy=False)
   1659 s = s.astype(_realType(result_t), copy=False)

File /opt/anaconda/envs/firthlogist/lib/python3.9/site-packages/numpy/linalg/linalg.py:98, in _raise_linalgerror_svd_nonconvergence(err, flag)
     97 def _raise_linalgerror_svd_nonconvergence(err, flag):
---> 98     raise LinAlgError("SVD did not converge")

LinAlgError: SVD did not converge

@jzluo I debugged a bit and found that the issue is the determinant getting negative which results in NaN's in the penalty.
I tried to fix that in #18.
Another thing I found:
With FirthLogisticRegression(skip_ci=True, wald=True).fit(X, y) the fitting works.
Otherwise, the regression runs in an infinite loop during CI/pvalue calculation if I do not set max_halfsteps > 0.

Thanks so much! I will take a closer look tonight.

Unfortunately, I cannot tell you what kind of data this is.
But the fitting succeeds if you standard-normalize all features in X.
Without normalizing and using the default statsmodels logistic regression, you need L-BFGS-B to get a good fit. Newton-Raphson also fails to converge there.
So probably some L-BFGS-B implementation would help here a lot?
This would also make firthlogist scale better to large numbers of variables.


There are some grammatical error in README.md File

Expected Behaviour
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem

Thanks for highlighting the errors, @VikasPandey121.
Closing the issue according to the fixes.