harbor ui shows duplicated string "days" in popup-details.directive.js

I use docker-compose to launch harbor, "vmware/harbor-ui:latest" pulled from hub.docker.com
I see duplicated string "days" when i click to see the detail of one image with tag in pop window, as follows

I check the js file "static/resources/js/components/repository/popup-details.directive.js" and see

so I think here is the root cause, and we can remve string "days" in popup-details.directive.js.
But it seems I cannot find popup-details.directive.js in repo "https://github.com/vmware/harbor" ...

@hainingzhang @wknet123

Hi @nuaays, are you using the 0.5.0?
You can finde the js file is because that we have refinded UI, and this issue doesn't exist in the 1.1.1.
Just try with the latest release.

Close due to inactivity.
Please use the latest release.


Backend-dependent inline blackbox

Currently, there is support to inline files, but it's not backend-dependent. With the testers, we have both a Verilator backend (reads Verilog) and a FIRRTL interpreter backend (which doesn't understand Verilog), so it's currently not possible to have everything contained in a blackbox. Instead, we have the completely hacky, non-modular, non-composable, and non-DRY solution of adding the implementation of blackboxes into custom Driver subclasses.
One idea would be to define some stock backends in Chisel (as objects, not as strings), and have setInline take those as a parameter. Those objects could be typeclasses with the inline type (since inline Verilog would be a string, while inline FIRRTL would be a function / object).
Bonus: the Verilog backend could emit inline Verilog in a more DRY way - for example, right now we have the module name in 3 places: the BlackBox class name, the Verilog filename to be generated, and the Verilog module name emitted. A generator could automatically derive filename and create a module skeleton given the class name (and possibly IO), while the user would only need to specify the implementation / parameters.

I believe the solution to this is for @chick to move his interpreter implementation of this feature to Chisel. We should also probably provide the option to have a Chisel implementation of a blackbox since that would work in the interpreter and Verilator both by default.


Documentation out of date

Latest pip install version: 10.0.0
The documentation link here and on pypi point to:
https://pyav.org/docs/stable/
This appears to document version 9.0.2. Version 10.0.0 is not even an option.

I just installed an 11.x via pip... I have no idea what's changed. The docs are dated 9.0.2. More recent versions are 9.1.0, 9.2.0, 10.0.0, 11.0.0. I have to assume that the two major dotreleases have changes, which might explain the new exceptions I'm seeing. Any chance we could get at least a changelog? <3

You can see the docs here: https://pyav.basswood-io.com


Check Point Frequency

What requirements, if any, are placed on check point frequency?
Several reference make silly/poor decisions on this, and it makes sense that we take a consistent position on how this should be done.
E.g.
https://github.com/mlperf/reference/issues/87

SWG:
Reference implementations should checkpoint based on epochs and evaluation as is reasonable for the model. We considered using time for check pointing and we could consider this as a special case if necessary but it seems to complicate the process.
Benchmark implementations must at a minimum checkpoint in the same way as the reference but may choose to create more checkpoints.
Existing reference implementations will be updated soon with new check point frequencies.

SWG:
Check points can be created at the discretion of submitter. No check points are required to be produced or retained.
This can be revisited for v1.0.


Protect references of attributes output through BMI

The pyDeltaRCM model attributes stage, depth, and eta are mapped to BMI output variables in the BmiDelta class. However, when the model is updated, information isn't being passed from these attributes to the BMI variables. It appears that the references for these attributes were being overwritten by methods in the Tools class. To protect the references, I replaced assignment statements with array subscripting statements. There's likely a better way to handle this problem (e.g., through properties), but this way seems to work.

Hi, @mperignon! I looked into other ways to get pyDeltaRCM to work with BMI that didn't involve modifying the pyDeltaRCM code. The only other way that worked for me is to use properties in the pyDeltaRCM class, which is still intrusive. As @mcflugen suggested, this may be a problem with BMI. So, I'm stuck. May I reopen this PR, noting that it's unfair for BMI to need this internal change to your code?

If I'm understanding correctly, BMI doesn't require this internal change. BMI doesn't ever require references to arrays to not change. For instance, the get_value method returns a copy of the data not a reference to the data. get_value_ref is not a BMI method but is used here as a convenience function, In fact, should be used with caution as it turns an output variable into a potential input variable. A get_value_ref exposes component implementation details that should probably remain private.
I would say it could be part of BMI++, though. It is definitely useful to have such a function as it reduces the number of copies when exchanging data between components. The get_value_ref that's exposed to the user should probably only work with input vars, though.

Thanks for this clarification, @mcflugen. I won't reopen this PR. Instead, I'll open a new PR where I'll implement properties for the output variables that are getting lost. This is still intrusive, but it follows the pattern used in csdms/bmi-python, and it works with the existing BMI code. Plus, it may help with performance, since the arrays won't be recreated at each step.

@mdpiper 's solution sounds reasonable. We know that this is a problem with the way pyDeltaRCM handles arrays, so let's fix that instead of building a workaround in BMI. It's an issue that's probably going to pop up with many other community-build models, though. I'm not sure what the solution for that is. Maybe csdms/bmi-python needs to be a bit more complex and explicitly deal with this issue. I'll wait for @mdpiper 's solution and see if I can create an example.


Make sure that the filter functionality works correctly

[x] check whether the filter configurator works good
[x] check whether the render_filter macro works good

Closed by https://github.com/vyfony/filterable-table-bundle/commit/4aa677aa7ffde2218711a022aa9d0be7f1ca70f6


Untangle the CREATE DDL path

Currently, the order of processing of CreateObject subtrees is rather
awkward.  The generic implementation simply iterates over referenced
object subcommands, and various schema classes tack on their own hacks
to implement inheritance propagation etc.  On top of that, handling of
anonymous derived objects, like unions and collection types is hacky and
buggy as well.  To fix this, make the generic CreateObject.apply truly
generic, which makes it behave like AlterObject.apply already does.
This necessiated the addition of a concept of "prerequisites" for a
command, i.e. subcommands that must run before the object itself is
created.

Do we need to add a minimal DDL test?


Tomentosa 2771 : Fix bug of zoom in web

Description
In order to solve the bug, the version of flutter was upgrade to 3.3.0. In this version, the bug is solved
Fixes MLV | Bug | Admin | ID 06 in TOMENTOSA-2721
Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[x] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

How Has This Been Tested?
Acording to the video of bug, I checked if the ui is modified when user use the zoom of browser and the ui is not modified

[x] Test on browser, checking the ui with zoom

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@heygonzalocaira asegurate de que estes subiendo la última versión de la api en esta rama (hacer pull de la rama dev de la api). Porque me aparece que hay cambios en la api, pero derrepente no la tienes actualizada.


Naming conventions for enum values

There are no naming conventions that cover enum values.
I've seen several different styles in our APIs so far:

MY_VALUE
my-value
my_value

Does it make sense to try to standardize that to become more consistent?

yes, good idea!

A collection of useful references:

OpenAPI 3: Enum, uses lower-case (not clear whether hyphen or underscore since examples are single words only)
Google JSON Style Guide: Enum Values, uses upper-underscore examples
Github API v4: uses upper-underscore

@whiskeysierra sounds like upper-underscore is has the lead in other standards;  I would vote for 1. or 2. to keep enum values distinguishable from properties.

I would vote for 1. or 2. to keep enum values distinguishable from properties.

Agreed.
Option 1 is familiar to enums in C-style languages. Option 2 feels more HTTP-ish (not sure why, tbh).

I would also go with 1 as it's the most adopted - although I personally like 2 more.

I would go with 1. Option 2 is also fine.

I prefer MY_VALUE (option 1), as to clearly distinguish values from variables and other elements.

I would also go with option 1.

Regarding code generation, the enum style doesn't really matter since it can be mapped based on its string value:
public enum Event {
    FORGOT_PASSWORD("forgot password");

    private final String value;

    private Event(final String description) {
        this.value = description;
    }

    @JsonValue
    final String value() {
        return this.value;
    }
}

From the meeting:

each API should use only one style for their enums (and extensible enums)
we want to recommend one style (before deciding which one, we'll have a look at statistics of current usages in our API repository).

I have kept the analysis simple using the following jq | awk-pipe:
less apis-2019-10-31.json | jq -r 'select(.state == "ACTIVE") | .. | select((type == "object") and (has("enum") or has("x-extensible-enum"))) | (if (.enum != null) then .enum else [] end) + (if (."x-extensible-enum" != null) then ."x-extensible-enum" else [] end) | .[]' | awk '($0 ~ "^[0-9]+$") { x["n"]++; next } ($0 ~ "^[a-z0-9-]+$") { x["l-"]++; next } ($0 ~ "^[A-Z0-9-]+$") { x["u-"]++; next } ($0 ~ "^[a-z0-9_]+$") { x["l_"]++; next } ($0 ~ "^[A-Z0-9_]+$") { x["u_"]++; next } ($0 ~ "^[a-zA-Z0-9_\-]+$") { x["b"]++; next } { x["o"]++; print $0 } END {for (k in x) { print k OFS x[k]; } }'

The result are:

Regexp
Active
Active+Inactive

^[A-Z0-9-]+$
3540
5646

^[A-Z0-9_]+$
1388
2916

^[a-z0-9-]+$
1071
4873

^[a-z0-9_]+$
116
278

^[a-zA-Z0-9_\-]+
157
466

others
18
200

My awk skills are a bit rusty. Can a single enum count towards multiple
naming conventions? For example, active could be lower underscore, lower
hyphen and snake case.
On Thu, 31 Oct 2019, 17:24 Tronje Krop<EMAIL_ADDRESS>wrote:

I have kept the analysis simple using the following jq | awk-pipe:
less apis-2019-10-31.json | jq -r 'select(.state == "ACTIVE") | .. | select((type == "object") and (has("enum") or has("x-extensible-enum"))) | (if (.enum != null) then .enum else [] end) + (if (."x-extensible-enum" != null) then ."x-extensible-enum" else [] end) | .[]' | awk '($0 ~ "^[0-9]+$") { x["n"]++; next } ($0 ~ "^[a-z0-9-]+$") { x["l-"]++; next } ($0 ~ "^[A-Z0-9-]+$") { x["u-"]++; next } ($0 ~ "^[a-z0-9_]+$") { x["l_"]++; next } ($0 ~ "^[A-Z0-9_]+$") { x["u_"]++; next } ($0 ~ "^[a-zA-Z0-9_-]+$") { x["b"]++; next } { x["o"]++; print $0 } END {for (k in x) { print k OFS x[k]; } }'
The result are:
Regexp Active Active+Inactive
^[A-Z0-9-]+$ 3540 5646
^[A-Z0-9_]+$ 1388 2916
^[a-z0-9-]+$ 1071 4873
^[a-z0-9_]+$ 116 278
^[a-zA-Z0-9_-]+ 157 466
others 18 200
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zalando/restful-api-guidelines/issues/530?email_source=notifications&email_token=AADI7HPQ5JC6ACEBWBWKKWDQRMBE3A5CNFSM4IS2P66KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECYMS4Q#issuecomment-548456818,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADI7HOPRSJC7ISVUJEZBPLQRMBE3ANCNFSM4IS2P66A
.

The script is written, so that every word is only counted once (next). So the first matching regexp wins. Ups, and there is the bug. The - versions include the once without anything. I will correct the above table.

The script is written, so that every word is only counted once (next). So the first matching regexp wins.

That is not really representative, is it? I feel that an enum value should count towards each matching pattern, otherwise the ordering of patterns in your script determines a priority and affects the results.

Added this summing up to my above comment.

So UPPER_UNDERSCORE catches the majority of enum values that are currently in use. Correct?
MY-VALUE1 is surprisingly widespread.

MY-VALUE1 is surprisingly widespread.

Yes, surprisingly.
However, it is interesting, that in the past my[-_]value1 has been used so much more often.

Found parse error: Expected separator between values at line 885208, column 1 preventing 3/4 of the data not being parsed. Will update the data, when I created a new corrected repository dump.

Changes above tables to contain latest results.

Decision in the meeting:
We go with UPPER_UNDERSCORE. @whiskeysierra will word the rule and open a PR.


The model is pre-trained from scratch using medical domain data to learn a better unified representation, and it has not been trained on general-domain or daily conversation data typically used for chatbot purposes. Currently, The model was trained with a limited amount of visual instruction tuning data (~thousand samples) that is focused specifically on clear medical-related prompts.
The pre-trained model is generally used for fine-tuning with just a few epochs. For instance, in our paper, we fine-tuned it on different image classification datasets using 5 epochs.
To enhance the model’s conversational abilities, we plan to integrate a pre-trained LLM and scale up the model size (currently 182 million parameters), similar to what LLaVA has done. This is our current focus.

Got it, thanks for your reply. wish you get a better performance in the future.


Reader doesn't reconnect if a loop has been blocked for a while

Environment Versions

Python version: Python 3.8.10
ansq version: 0.1.0

Steps to reproduce

Run the following script

import time
import ansq
import asyncio
import uuid

async def main():
    topic = "example_topic" + str(uuid.uuid1())[:4]

    reader = await ansq.create_reader(
        topic=topic,
        channel="example_channel",
        connection_options=ansq.ConnectionOptions(debug=True)
    )

    writer = await ansq.create_writer()
    for i in range(20):
        await writer.pub(
            topic=topic,
            message=f"Hello, world ({i})!",
        )
    await writer.close()

    async for message in reader.messages():
        print(f">>>>> Message: {message.body}")
        await message.fin()
        time.sleep(300)  # <------------- block the loop

    await reader.close()

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Wait for 10 minutes for the following traceback:

ERROR - ansq localhost:4150.0: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/private/var/folders/l0/lnq1ghps5yqc4vkgszlcz92m0000gp/T/tmp.HaRNonRx/.venv/lib/python3.8/site-packages/ansq/tcp/connection.py", line 180, in _do_close
    await self._writer.wait_closed()
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 359, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/private/var/folders/l0/lnq1ghps5yqc4vkgszlcz92m0000gp/T/tmp.HaRNonRx/.venv/lib/python3.8/site-packages/ansq/tcp/connection.py", line 357, in _read_data_task
    data = await self._reader.read(consts.MAX_CHUNK_SIZE)
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 684, in read
    await self._wait_for_data('read')
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/selector_events.py", line 910, in write
    n = self._sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe
2022-08-10 18:06:32,053 - DEBUG - ansq localhost:4150.0: Connection tcp://localhost:4150 is closed

the script hangs

script logs
2022-08-10 17:56:31,972 - DEBUG - ansq localhost:4150.0: Connect to tcp://localhost:4150 established
2022-08-10 17:56:31,972 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'IDENTIFY\n\x00\x00\x00\x94{"deflate": false, "deflate_level": 6, "feature_negotiation": true, "heartbeat_interval": 30000, "sample_rate": 0, "snappy": false, "tls_v1": false}'
2022-08-10 17:56:31,973 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQResponseSchema frame_type:FrameType.RESPONSE, body:b'{"max_rdy_count":2500,"version":"1.2.1","max_msg_timeout":900000,"msg_timeout":60000,"tls_v1":false,"deflate":false,"deflate_level":6,"max_deflate_level":6,"snappy":false,"sample_rate":0,"auth_requir...
2022-08-10 17:56:31,973 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'SUB example_topic00d1 example_channel\n'
2022-08-10 17:56:31,974 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQResponseSchema frame_type:FrameType.RESPONSE, body:b'OK', is_ok:True>
2022-08-10 17:56:31,974 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'RDY 1\n'
2022-08-10 17:56:31,995 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQMessageSchema frame_type:FrameType.MESSAGE, body:b'Hello, world (0)!', timestamp:1660146991995145000, attempts:1, id:1122f8523f125000>
>>>>> Message: b'Hello, world (0)!'
2022-08-10 17:56:32,018 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'FIN 1122f8523f125000\n'

2022-08-10 18:01:32,028 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQMessageSchema frame_type:FrameType.MESSAGE, body:b'Hello, world (1)!', timestamp:1660146992014222000, attempts:1, id:1122f85243d25000>
>>>>> Message: b'Hello, world (1)!'
2022-08-10 18:01:32,029 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'FIN 1122f85243d25000\n'

2022-08-10 18:06:32,039 - ERROR - ansq localhost:4150.0: Connection tcp://localhost:4150 is closing due an error: [Errno 32] Broken pipe
2022-08-10 18:06:32,039 - ERROR - ansq localhost:4150.0: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/private/var/folders/l0/lnq1ghps5yqc4vkgszlcz92m0000gp/T/tmp.HaRNonRx/.venv/lib/python3.8/site-packages/ansq/tcp/connection.py", line 180, in _do_close
    await self._writer.wait_closed()
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 359, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/private/var/folders/l0/lnq1ghps5yqc4vkgszlcz92m0000gp/T/tmp.HaRNonRx/.venv/lib/python3.8/site-packages/ansq/tcp/connection.py", line 357, in _read_data_task
    data = await self._reader.read(consts.MAX_CHUNK_SIZE)
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 684, in read
    await self._wait_for_data('read')
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/streams.py", line 517, in _wait_for_data
    await self._waiter
  File "/Users/albert/.pyenv/versions/3.8.10/lib/python3.8/asyncio/selector_events.py", line 910, in write
    n = self._sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe
2022-08-10 18:06:32,053 - DEBUG - ansq localhost:4150.0: Connection tcp://localhost:4150 is closed

nsqd logs
[nsqd] 2022/08/10 17:56:31.971925 INFO: TCP: new client([::1]:52407)
[nsqd] 2022/08/10 17:56:31.972375 INFO: CLIENT([::1]:52407): desired protocol magic '  V2'
[nsqd] 2022/08/10 17:56:31.973156 INFO: [[::1]:52407] IDENTIFY: {ClientID: Hostname: HeartbeatInterval:30000 OutputBufferSize:0 OutputBufferTimeout:0 FeatureNegotiation:true TLSv1:false Deflate:false DeflateLevel:6 Snappy:false SampleRate:0 UserAgent: MsgTimeout:0}
[nsqd] 2022/08/10 17:56:31.974118 INFO: TOPIC(example_topic00d1): created
[nsqd] 2022/08/10 17:56:31.974181 INFO: TOPIC(example_topic00d1): new channel(example_channel)
[nsqd] 2022/08/10 17:56:31.974227 INFO: NSQ: persisting topic/channel metadata to nsqd.dat
[nsqd] 2022/08/10 17:56:31.976464 INFO: TCP: new client([::1]:52408)
[nsqd] 2022/08/10 17:56:31.976825 INFO: CLIENT([::1]:52408): desired protocol magic '  V2'
[nsqd] 2022/08/10 17:56:31.976945 INFO: [[::1]:52408] IDENTIFY: {ClientID: Hostname: HeartbeatInterval:30000 OutputBufferSize:0 OutputBufferTimeout:0 FeatureNegotiation:true TLSv1:false Deflate:false DeflateLevel:6 Snappy:false SampleRate:0 UserAgent: MsgTimeout:0}
[nsqd] 2022/08/10 17:56:31.995201 INFO: NSQ: persisting topic/channel metadata to nsqd.dat
[nsqd] 2022/08/10 17:56:32.018776 INFO: PROTOCOL(V2): [[::1]:52408] exiting ioloop
[nsqd] 2022/08/10 17:56:32.018807 INFO: PROTOCOL(V2): [[::1]:52408] exiting messagePump

[nsqd] 2022/08/10 17:57:32.021987 INFO: PROTOCOL(V2): [[::1]:52407] exiting ioloop
[nsqd] 2022/08/10 17:57:32.022040 ERROR: client([::1]:52407) - failed to read command - read tcp [::1]:4150->[::1]:52407: i/o timeout
[nsqd] 2022/08/10 17:57:32.022113 INFO: PROTOCOL(V2): [[::1]:52407] exiting messagePump

Additional context
https://github.com/list-family/ansq/issues/33

Any fix for this? Is the project dead?

The project is not dead. We actively use it. This task was not fixed yet. If you want you can add a PR with a fix
On 20 Apr 2023 at 8:29 +0300, Peter C. Ndikuwera @.***>, wrote:

Any fix for this? Is the project dead?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

We also use this library actively. In fact, this particular "steps to reproduce" no longer reproduce the bug.

The bug still occurs, which is why I asked. I use it extensively and my workers were losing NSQ connectivity and not auto reconnecting.
Hadn't seen much activity on the project but I accept my question did come across negative.

The code sample in this issue breaks for me if I leave it running for 3-4 iterations of the loop.
2023-04-20 12:30:47,470 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQMessageSchema frame_type:FrameType.MESSAGE, body:b'Hello, world (1)!', timestamp:1681982747370192841, attempts:1, id:125946562940d000>
>>>>> Message: b'Hello, world (1)!'
2023-04-20 12:30:47,470 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'FIN<PHONE_NUMBER>40d000\n'
2023-04-20 12:35:47,570 - INFO - ansq localhost:4150.0: Lost connection to NSQ tcp://localhost:4150
2023-04-20 12:35:48,571 - DEBUG - ansq localhost:4150.0: Reconnecting to tcp://localhost:4150...
2023-04-20 12:35:48,572 - DEBUG - ansq localhost:4150.0: Connect to tcp://localhost:4150 established
2023-04-20 12:35:48,572 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'IDENTIFY\n\x00\x00\x00\xf1{"client_id": "niobe", "hostname": "niobe", "user_agent": "ansq/0.2.0", "deflate": false, "deflate_level": 6, "feature_negotiation": true, "heartbeat_interval": 30000, "sample_rate": 0, "snappy": false, "tls_v1": false, "msg_timeout": 60000}'
2023-04-20 12:35:48,572 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQResponseSchema frame_type:FrameType.RESPONSE, body:b'{"max_rdy_count":2500,"version":"1.2.0","max_msg_timeout":900000,"msg_timeout":60000,"tls_v1":false,"deflate":false,"deflate_level":6,"max_deflate_level":6,"snappy":false,"sample_rate":0,"auth_required":false,"output_buffer_size":16384,"output_buffer_timeo...', is_ok:False>
2023-04-20 12:35:48,572 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'SUB example_topic5540 example_channel\n'
2023-04-20 12:35:48,573 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQResponseSchema frame_type:FrameType.RESPONSE, body:b'OK', is_ok:True>
2023-04-20 12:35:48,573 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'RDY 1\n'
2023-04-20 12:35:48,573 - DEBUG - ansq localhost:4150.0: Reconnected to tcp://localhost:4150
2023-04-20 12:35:48,573 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQMessageSchema frame_type:FrameType.MESSAGE, body:b'Hello, world (2)!', timestamp:1681982747370423498, attempts:1, id:125946562940d001>
>>>>> Message: b'Hello, world (2)!'
2023-04-20 12:35:48,573 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'FIN<PHONE_NUMBER>40d001\n'
^A^P2023-04-20 12:40:48,670 - DEBUG - ansq localhost:4150.0: NSQ: Got data: <NSQMessageSchema frame_type:FrameType.MESSAGE, body:b'Hello, world (3)!', timestamp:1681982747370659630, attempts:1, id:125946562940d002>
>>>>> Message: b'Hello, world (3)!'
2023-04-20 12:40:48,670 - DEBUG - ansq localhost:4150.0: NSQ: Executing command b'FIN<PHONE_NUMBER>40d002\n'
2023-04-20 12:45:48,770 - ERROR - ansq localhost:4150.0: Connection tcp://localhost:4150 is closing due an error: [Errno 32] Broken pipe
2023-04-20 12:45:48,770 - ERROR - ansq localhost:4150.0: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/home/pndiku/tmp/ansq/px/lib/python3.10/site-packages/ansq/tcp/connection.py", line 178, in _do_close
    await self._writer.wait_closed()
  File "/usr/lib64/python3.10/asyncio/streams.py", line 343, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/usr/lib64/python3.10/asyncio/selector_events.py", line 924, in write
    n = self._sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe
2023-04-20 12:45:48,771 - DEBUG - ansq localhost:4150.0: Connection tcp://localhost:4150 is closed


Only execute appendChild when vnode length greater than origin node.

Fix #705 .

Coverage remained the same at 100.0% when pulling c02699516668666839ccf7fc82e7377e82b2ca43 on windyGex:master into b80bec35354273187b0bc998c1c870da00bf212b on developit:master.

Awesome - and awesome test!  I'd love to duplicate this Todos example and run some more things against it too.

The fix doesn't work in the following example (where each child consists of three elements): https://jsfiddle.net/o402afwp/

@e1ectronic good catch! - that's because len is the length before any children get added, so it doesn't take middle insertions into account.  I have a fix that avoids using lengths entirely, and your demo was very useful in figuring it out!  It's now working wondefully:


Schema-based multitenancy: getting “java.sql.SQLException: No database selected” from time to time

Environment
HikariCP version: 3.2.0
JDK version     : 11
Database        : MySQL
Driver version  : 8.0

My code written in Java, and I using Spring JDBC Template for accessing MySQL database.
My system is a multi-tenant and each tenant has its own dedicated schema in MySQL (e.g. "tenant_1", "tenant_2", etc).
This is how database connection being initialized:
During bootstrap, I creating a bean exposing DataSourceTransactionManager, which is initialized by DataSource configured with a connection string of the MySQL database (without specifying schema).
Since my system is multi-tenant, for each request I have to select schema of the given tenant. Therefore, typical query looks like this:

"USE tenant_xxx"
....

The problem:
From time to time (1 to thousands of executions), I am getting

java.sql.SQLException: No database selected.

I double checked my code - indeed, I do always selecting schema before query execution. I noticed this issue in random places in code, so most likely it is not a bug in specific place in my code
Any ideas?

Spring - latest version (5.x)
Java - 11
MySQL (5.7), reproduced both on local MySQL and AWS Aurora
I using Spring Boot, which by default using HikariCP
Connector/J version 8.0

Can you share your connection settings here? I wonder if you might be using autoReconnect=true
That setting will seamlessly reconnect, but won't re-run the multi-tenant "use" query. It also may be detrimental to HikariCP performance (HikariCP wants to manage connection life alone), but I don't think HikariCP is involved in the problem at hand.


7TV emotes not appearing in high viewer/chatter streams

Existing Issues

[X] I have searched for existing issues, this is not a duplicate.

Unmodded Twitch

[X] I have checked and this issue only occurs using bttv-android and not with the unmodded Twitch App

What happened?

You can see in the first chat that xdd is not working, but in the next chat xdd is. The difference between the two is that the first stream has 50k+ viewers, while the second stream has 10k and is in slow mode.
bttv-android version
v0.40.2-beta
android version
13
device
Samsung Galaxy s22
Anything else?
No response

There is a good chance your issues was fixed by today's release. Please reopen if that's not the case and provide some more information, like the channel which had missing emotes.


Extract css file to a path that different  from the bundle path, the background-img url will be wrong

Version:
webpack: "3.4.1"
extract-text-webpack-plugin: "3.0.0"
Description:
There is a css rule in my css file like this:
#app {
	background: url(../img/logo.png);
}

First, I config plugins like this in webpack.config.js:
new ExtractTextPlugin({
        filename: "[name].css"
});

This work well. In the css file , the background url is 'img/logo.png'.
However, when i want to output the css file to other directory something goes to wrong.I config plugins like this in webpack.config.js:
new ExtractTextPlugin({
        filename: "css/[name].css"
})

Finally, the css file generate to the right directory but in the css file the background url is still 'img/logo.png' and lead to 404 not found about the background-img. The right url should be '../img/logo.png'.

@maihaihua extract-text-webpack-plugin don't handle url, seems your have invalid configuration, please provide full config or minimum reproducible test repo.

My repo config like this：
https://github.com/maihaihua/webpack-test.git

i also have this problem

solve this problem by other way, change the file-loader param like this
loader: 'file-loader?name=../../images/[name].[ext]'
my webpack.config.js:
var path = require('path')
var webpack = require('webpack')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
entry: {
"upload-business-license": path.resolve(__dirname, 'app/upload-business-license/index.js'),
//page2: path.resolve(__dirname, 'app/page2.js')
},
output: {
path: __dirname + "/dist",
//filename: "[name].[chunkhash:8].js",
filename: "[name].js",
//publicPath: '/'
},
resolve:{
    extensions:['.js']
},

module: {
    rules: [
        {
            test: /\.(scss|sass|css)?$/,
            exclude: /(node_modules)/,
            use: ExtractTextPlugin.extract({ //分离css
                fallback: "style-loader",
                use: [
                    {
                        loader: 'css-loader',
                        options: {
                            importLoaders: 1
                        }
                    },
                    'postcss-loader',
                    'sass-loader'
                ]
            })
        },
        {
            test: /\.(jpg|jpeg|gif|bmp|png|webp)?$/i,
            exclude: /(node_modules)/,
            loader: 'file-loader?name=../../images/[name].[ext]'
        }
    ]
},

plugins: [

    new webpack.BannerPlugin("author: jhl \ndate: 2017-10-25"),

    new HtmlWebpackPlugin({
        template: __dirname + '/app/upload-business-license/index.tmpl.html',
        filename: 'upload-business-license.html',
        chunks: ['upload-business-license']
    }),

    //new ExtractTextPlugin('css/[name]/[name].css'),
    //new ExtractTextPlugin('[name].css'),
    new ExtractTextPlugin('css/[name]/[name].css'),

    new CopyWebpackPlugin([
        {
            from: 'static/css/common/common.css',
            to: 'css/common'
        },
        {
            from: 'static/js/plugins/flexible.js',
            to: 'js/plugins'
        },
        {
            from: 'static/images',
            to: 'images'
        }
    ])

]

}

solve this problem by other way, modify the file-loader param to change the image url , like this:
loader: 'file-loader?name=../../images/[name].[ext]'

@maihaihua use publicPath option for this purpose https://github.com/webpack-contrib/extract-text-webpack-plugin#extract.
For other:
Please read my comments above, ETWP don't handle url. In most use case it is just invalid configuration. Feel free to feedback and/or create new issue with description and reproducible test repo. Thanks for everyone!


Are eloquent queries and other IO stuff non-blocking ?

I hear in an async environment like ratchet or node.js the database drivers should work non-blocking to deliver a good performance, otherwise we get the worst out the two worlds.
So we definitely need a non-blocking mysql driver or something like that. (maybe send the queries to a child process)
I wanted to know is it ok and straight forward to just install the package on laravel and start to query the database or we have to change something ?

Eloquent queries are blocking IO. Laravel unfortunately does not support any non-blocking/async IO backends by default.
You can use https://github.com/friends-of-reactphp/mysql which is an implementation of an async MySQL client, compatible with ReactPHP, which is what laravel-websockets is based on. You won't be able to use Eloquent with this though (unless you use the query builder, get the SQL, then run it raw with the async MySQL library, but then you'll still need to do model hydration yourself, etc, and ->save() won't work anyways)

@francislavoie I see this in the docs

Make sure that you do not perform any IO blocking tasks in your AppProvider, as they will interfere with the asynchronous WebSocket execution.

However I don't see the same warning in the docs for Custom Websocket Handlers. Does this mean that IO blocking is ok in Custom Websocket Handlers?

Nope, it's all running in the same event loop. Any blocking IO is not ideal.

I see. I might try this lib https://github.com/spatie/async

That's a good idea actually. I'd recommend using https://reactphp.org/child-process/ instead, which is an officially supported way to spawn some processes from within a ReactPHP event loop.

Great - thanks for the recommendation!


Feature/include default

This PR adds a config setting to allow the random song selection to select the default in-game song.
Version bump to v1.1.0


IGNITE-15650 : Statistics for platform services. V1 : On demand.

This PR brings service statistics for the platform services (.NET). Realization is 'on demand'. Since we don't know what is the platform service being deployed, the metrics are created on the fly.
The is a static version of statistics (like Java services) for platform services: #9768

Applied version: https://github.com/apache/ignite/pull/9768


Add OFFTK to open-source users

Reference Issue
None
What does this implement/fix? Explain your changes.
Adds the Open Force Field toolkit to the list of open-source packages that use RDKit
Any other comments?
A truly open-source OFF toolkit wouldn't be possible without RDKit. Thanks to @greglandrum and all of the other maintainers for their hard work!

Done! Please let me know if other changes are needed.

Thanks!


Slider scale metadata not interpreted

Steps to Reproduce

Run the plugin or standalone
Enter the following code

import("stdfaust.lib");
freq = hslider("freq [scale:log]", 400, 20, 20000, .01);
gate = button("gate");
gain = hslider("gain", .5, 0, 1, .01);
process = os.square(freq),en.ar(.05, 1, gate) : *,gain : *;

Click compile (view switches to Parameters tab)

Expected Behaviour

freq slider has logarithmic range.

Actual behaviour

freq slider has linear range.

Here's how the freq slider looks in the Faust Web IDE:

Thanks to the [scale:log] metadata, 400 (Hz) lies somewhere toward the middle of the slider.
Here's the equivalent for Amati++:

NB. [scale:exp] and numerical metadata for setting the order of parameters in the UI (e.g. hslider("[10] myparam...) are also apparently not interpreted.
System
OS: Manjaro Linux
Kernel: Linux 6.5.13-7-MANJARO
Audio system: Pipewire (libpipewire 1.0.7)
Builds tested

Standalone
VST3 (hosts: Reaper, AudioPluginHost)
CLAP (hosts: Reaper)

Since the code used the APIUI helper class, I've user realised that the ratio related functions (which take the scale mapping in account) have to be used and not the setParamValue/getParamValue ones.
Proper documentation added this morning in https://github.com/grame-cncm/faust/commit/c5d114f8ee61ab09445d50738b7099e9993c723f
And look at the new documentation here:
https://github.com/grame-cncm/faust/blob/c5d114f8ee61ab09445d50738b7099e9993c723f/architecture/faust/gui/APIUI.h#L549

Could juce::Slider::setSkewFactor help here?

Well the problem is to exactly reproduce what the Faust conversion functions currently do (see https://github.com/grame-cncm/faust/blob/master-dev/architecture/faust/gui/ValueConverter.h). So I think we should better use them to get a homogenous behaviour on every platform.


Unexpected default cursorSelect keybindings

Issue Type: Bug
Starting vscode this morning, these keybindings were appended to the end of the "Default Keybindings". Most of them - like ctrl+shift+p, ctrl+shift+f and ctrl+shift+e - interferes with other default functionality.
The keybindings that were added:
{ "key": "ctrl+shift+b",          "command": "cursorLeftSelect",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+shift+p",          "command": "cursorUpSelect",
                                     "when": "editorTextFocus" },
{ "key": "alt+f",                 "command": "cursorWordEndRight",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+shift+f",          "command": "cursorRightSelect",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+shift+n",          "command": "cursorDownSelect",
                                     "when": "editorTextFocus" },
{ "key": "alt+b",                 "command": "cursorWordStartLeft",
                                     "when": "editorTextFocus" },
{ "key": "shift+alt+f",           "command": "cursorWordEndRightSelect",
                                     "when": "editorTextFocus" },
{ "key": "shift+alt+b",           "command": "cursorWordStartLeftSelect",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+shift+e",          "command": "cursorEndSelect",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+shift+a",          "command": "cursorHomeSelect",
                                     "when": "editorTextFocus" }

VS Code version: Code - Insiders 1.45.0-insider (ece7aaee861d7261a728d52ce436c667030ce17d, 2020-05-01T09:46:47.589Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 x 4000)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.84GB (8.95GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (54)

Extension
Author (truncated)
Version

better-comments
aar
2.0.5

ndjson-colorizer
bus
1.0.0

vscode-exports-autocomplete
cap
0.5.4

bracket-pair-colorizer-2
Coe
0.0.29

vcard
cst
1.0.1

vscode-markdownlint
Dav
0.35.1

vscode-eslint
dba
2.1.5

vscode-generact
Den
1.0.5

javascript-ejs-support
Dig
1.3.1

es7-react-js-snippets
dsz
2.7.1

EditorConfig
Edi
0.14.5

prettier-vscode
esb
4.5.0

vscode-firefox-debug
fir
2.7.2

auto-close-tag
for
0.5.7

macros
ged
1.2.1

duplicate
gee
1.0.1

todo-tree
Gru
0.0.174

vscode-npm-dependency
how
1.2.2

fuse-vscode
iGN
0.0.1

reg
ion
1.0.1

lorem-whatever
job
1.0.2

vscode-random
jre
1.6.1

graphql-for-vscode
kum
1.15.3

expand-region
let
0.1.4

rainbow-csv
mec
1.7.0

dotenv
mik
1.0.1

vscode-apache
mrm
1.2.0

vscode-duplicate
mrm
1.2.1

vscode-scss
mrm
0.9.0

vscode-docker
ms-
1.1.0

csharp
ms-
1.21.17

python
ms-
2020.4.76186

atom-keybindings
ms-
3.0.7

cpptools
ms-
0.27.1

vscode-typescript-next
ms-
4.0.20200503

vsliveshare
ms-
1.0.2104

color-highlight
nau
2.3.0

advanced-new-file
pat
1.2.0

vscode-react-refactor
pla
1.0.5

px-to-rem
sai
1.3.1

vscode-sanity
san
0.0.3

twig-for-craft-2
sel
0.5.0

code-settings-sync
Sha
3.4.3

shader
sle
1.1.4

vscode-stylelint
sty
0.84.0

ejs-snippets
The
0.7.0

vsfire
tob
1.4.1

vscode-input-sequence
tom
0.2.0

vscodeintellicode
Vis
1.2.6

twig
wha
1.0.2

vscode-import-cost
wix
2.12.0

vscode-jumpy
wma
0.3.1

JavaScriptSnippets
xab
1.8.0

material-theme
zhu
3.3.1

@poacher2k These come from one of the extensions you have installed. Extensions can contribute keybindings.

i rolled back changes to the atom keybinding extension https://github.com/microsoft/vscode-atom-keybindings/commit/d0f6378cfb3922cf99197c61ecc589cfd8db466d


Detail placer optimization to stay on lower metals

Hi,
I modified the resize.tcl script to have buffers placed at each input pin + antenna cells.  (the script just searches by names the input buffers and then adds the antenna cells, similar to what is done in antenna_fix.tcl).
...
# Set the buffer cell
set buffer_cell [get_lib_cell [lindex $::env(MIN_BUF_CELL_AND_PORTS) 0]]
set_dont_use $::env(DONT_USE_CELLS)

puts "Perform input port buffering..."
buffer_ports -inputs -buffer_cell $buffer_cell

puts "Adding antenna cells to inputs buffers...."
#antenna cell name is hard-coded for now, TODO: set up a env variable
set antenna_cell_name "ANTENNA_X1"
set db [::ord::get_db]
set block [[$db getChip] getBlock]
set antenna_master [$db findMaster $antenna_cell_name]
set input_antenna_cells_count 0
foreach inst [$block getInsts] {
    #puts "instance name: [$inst getName]"
    if { [regexp {^input[0-9]+$} [$inst getName] whole number] } {
        puts "matched name: $whole"
        set buffer_iterm [$inst findITerm "A"]
        set input_net [$buffer_iterm getNet]
        puts "net name: [$input_net getName]"

        set antenna_inst_name "ANTENNA"
        append antenna_inst_name "_" [$input_net getName]

        set inst_loc_x [lindex [$inst getLocation] 0]
        set inst_loc_y [lindex [$inst getLocation] 1]
        set inst_ori [$inst getOrient]

        set antenna_inst [odb::dbInst_create $block $antenna_master $antenna_inst_name]
        set antenna_iterm [$antenna_inst findITerm "A"]

        $antenna_inst setLocation $inst_loc_x $inst_loc_y
        $antenna_inst setOrient $inst_ori
        $antenna_inst setPlacementStatus PLACED
        odb::dbITerm_connect $antenna_iterm $input_net

        set input_antenna_cells_count [expr $input_antenna_cells_count + 1]
        puts "Added [$antenna_inst getName] to [$input_net getName] net."
    }
}
puts "Added [expr $input_antenna_cells_count] antenna cells."

puts "Perform buffer insertion..."
set_max_fanout $::env(MAX_FANOUT) [current_design]
repair_design -max_wire_length $::env(MAX_WIRE_LENGTH) -buffer_cell $buffer_cell
...

I tested this with gcd example (nangate45).  It works nice, but i am facing an issue with the detail placement afterwards (see screenshots attached).  The placer places the antenna cells on the "wrong" side of the buffer:
A: This is not optimum (the router could connect both terminals with METAL1 if it was placed on the right side, instead of having to go in METAL3)
B: In this case, it even causes a "functional" issue.  If the wire from the pin is very long (in METAL2), it could cause an antenna error because there is a METAL3 connection between the antenna diode and the gate to protect...
Is there a way I could hint the placer how to place this ? (I thought of using the orientation to modify the location of the antenna cell wrt the buffer, but there is no notion of the instance orientation at the resize level yet...)
Thank you
full script: resize.tcl.txt

the hint would be to place the diode on the side you want it to end up on.
if you put the diode in an empty site (not simple) the detailed placer won't move it

The problem is that i do not know yet on which side it should go. The orientation of the buffer is only decided at the placement step ( i am guessing to try to reduce congestion).  So i will only know the desired position after placement...
I was wondering if there is a way of putting a different weight for a specific net (and depending on metal "heigth").  That way, when the placer decides on the orientation of the buffer (or the localization of the antenna cell wrt the buffer), the optimization will lead it to keep this net at lower metals.

The orientation won't change unless you call optimize_mirroring, so don't do that.
No weights used in detailed placement.


My project is using xib rather than storyboard. 18000+ warnings.

XCode 7, iOS 9 SDK, get many warsings.
2015-10-10 16:17:19.947 Interface Builder Cocoa Touch Tool[33496:248507] CoreUI: CUICatalog: couldn't get 'kMGArtworkGraphicsFeatureSetFallbacks' from MGCopyAnswer got '{
ArtworkDeviceIdiom = pad;
ArtworkDeviceScaleFactor = "-1";
DevicePerformanceMemoryClass = 1;
}'

Why do you think it is xctool? xctool just ends up by calling xcodebuild. Do you see the same warnings in xcodebuild?


Added Generic service support

resolves #936

Pull Request Test Coverage Report for Build 1474

56 of 59 (94.92%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 57.012%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/app/client/src/data/sagas/servicesExplorerSagas.ts
3
6
50.0%

Totals

Change from base Build 1470:
0.2%

Covered Lines:
4701

Relevant Lines:
7449

💛  - Coveralls


KeyError: '1a0j_A'

Sorry to bother you again.
I tested the example again using the latest scripts, but another error appeared.
the log is here:
(COLLAPSE) [ac1daawz21@login03 COLLAPSE-main]$ python search_site.py data/examples/1a0h.pdb B H363 data/datasets/pdb_embeddings.pkl --cutoff 1e-3 --verbose --num_iter 3
search_site.py:37: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support sep=None with delim_whitespace=False; you can avoid this warning by specifying engine='python'.
pdb_meta = pd.read_csv(args.metadata, index_col=0, sep=None)
Database size: 346005
Iteration 1: 230 new results
Iteration 2: 199 new results
Iteration 3: 872 new results
Traceback (most recent call last):
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3802, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 203, in pandas._libs.index.IndexEngine._get_loc_duplicates
File "pandas/_libs/index.pyx", line 211, in pandas._libs.index.IndexEngine._maybe_get_bool_indexer
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index._unpack_bool_indexer
KeyError: '1a0j_A'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "search_site.py", line 123, in
main(args)
File "search_site.py", line 96, in main
results[cols] = results['PDB'].apply(lambda x: pdb_meta.loc[x, cols])
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/series.py", line 4771, in apply
return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/apply.py", line 1123, in apply
return self.apply_standard()
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/apply.py", line 1174, in apply_standard
mapped = lib.map_infer(
File "pandas/_libs/lib.pyx", line 2924, in pandas._libs.lib.map_infer
File "search_site.py", line 96, in
results[cols] = results['PDB'].apply(lambda x: pdb_meta.loc[x, cols])
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexing.py", line 1067, in getitem
return self._getitem_tuple(key)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexing.py", line 1247, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexing.py", line 967, in _getitem_lowerdim
section = self._getitem_axis(key, axis=i)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexing.py", line 1312, in _getitem_axis
return self._get_label(key, axis=axis)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexing.py", line 1260, in _get_label
return self.obj.xs(label, axis=axis)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/generic.py", line 4056, in xs
loc = index.get_loc(key)
File "/work/home/ac1daawz21/miniconda3/envs/COLLAPSE/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: '1a0j_A'

Thanks for posting the trace, this issue is fixed in the latest commit.


"clickToChange" prop used with "value" generates error

Describe the bug
"clickToChange" prop used with "value" generates error
To Reproduce
Steps to reproduce the behavior:
I reproduced it here https://codesandbox.io/s/react-playground-ijunv
Expected behavior
When I click on the slide the current slide becomes active and the value is updated
Actual behavior
When I click on a lide to make it current I get "e.props.onChange is not a function" error
Environment

please paste the result of npx @brainhubeu/envinfo@latest --preset brainhubeu
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 1006.50 MB / 7.85 GB
Binaries:
Node: 12.16.2 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.4 - D:\4linee\combo\node_modules.bin\npm.CMD
Browsers:
Edge: 44.18362.449.0
Internet Explorer: 11.0.18362.1
desktop
Browser Chrome

IssueHunt Summary

Backers (Total: $0.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips

Checkout the Issuehunt explorer to discover more funded issues.
Need some help from other developers? Add your repositories on IssueHunt to raise funds.

The problem here is that when you pass a value property you are taking control of the state for the component.  The carousel component itself cannot update your value variable so you need to tell it how to update that value.  This can be done by passing an onChange property to the Carousel component, this can just be the setCurrentSlide function from the state hook.
Codepen updated - https://codesandbox.io/s/react-playground-ri7du

@bobthekingofegypt
If you know how to fix that, I invite you to open a PR.
I invite you to like this issue (👍) so more 👍it has, it's more likely to be finished in the nearest time.

Here is a working example in codesandbox: https://codesandbox.io/s/react-playground-lmxv0
The problem at hand is, that when value prop is set by user, isControlled is true, therefore looking for onChange prop which the user might forgot, leading to the onChange is not a function error.
Like can be seen in the example below, I would suggest to either console.warn the user or more strict, let him run into a throw new Error.
@piotr-s-brainhub What is the expected behavior supposed to be?
  render() {
    const { value, onChange, ...rest } = this.props;
    const isControlled = !isNil(value);

    if (isControlled && !onChange) {
      console.warn('A controlled component needs onChange to work correctly!');
      throw new Error('A controlled component needs onChange to work correctly!');
    }

    return (
      <Carousel
        value={isControlled ? parseInt(value) : this.state.value}
        onChange={isControlled ? onChange : this.onChange(onChange)}
        {...rest}
      />
    );
  }

@mhatvan
I don't understand your question clearly.
For me it's obvious, onChange should be called with the value of the value props.

@piotr-s-brainhub I will try to be more clear:
e.props.onChange is not a function error occurs when user set value prop, BUT forgot to provide a custom onChange function as prop which is necessary for a controlled component.
I adapted the initial codebox example from the issue author and only added onChange={setCurrentSlide} to <Carousel /> and it all works then.
I think the only way you can help the user here is to either emit a console.warn or throw new Error so the user knows what he did wrong, in this case A controlled component needs onChange to work correctly!

IMO it should still work even without onChange being set but maybe console.warn would be good. I'll confirm that with my team.

No, a controlled component can't work without onChange, you can see an example from React here: https://reactjs.org/docs/forms.html#controlled-components
When you remove the onChange prop, React throws this message at you in the dev tools:
"Warning: Failed prop type: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly. in input (created by NameForm) in label (created by NameForm) in form (created by NameForm) in NameForm"

An example applicable in the docs:
<Carousel
  clickToChange
  slidesPerPage={2}
  centered
  value={1}
>

</Carousel>

However, without the value set, I get the same error, and even when I define onChange, I get this error.

@piotr-s-brainhub I will try to be more clear:
e.props.onChange is not a function error occurs when user set value prop, BUT forgot to provide a custom onChange function as prop which is necessary for a controlled component.
I adapted the initial codebox example from the issue author and only added onChange={setCurrentSlide} to <Carousel /> and it all works then.
I think the only way you can help the user here is to either emit a console.warn or throw new Error so the user knows what he did wrong, in this case A controlled component needs onChange to work correctly!

I think we can go with this solution


auto feature failing

please fix the issue as soon as possible

/jira

/abc

/abc

/jira

/aads

/kk


Prevent duplicate CNAME for a user

As part of #442
This prevents duplicate CNAME records from the same user with the same name/subdomain.
Test
From our website, you can try to create multiple CNAME records with the same name/subdomain as the same user.
You should see an error that says "DNS Record already exists".

Thanks for the reviews.


how to set scalingParameters

a error will throw when run lastest tutorial
Error: options.preScale.scalingParameters must be defined if preScale.enabled is true, and scalingParameters cannot be derived from the metadata providers

so how to set preScale 's scalingParameters?

scaling parameters are coming from metadata, so your metadata is missing them. You can add them via a custom metadata provider

thanks~

Hi,
I tried running the BasicStack tutorial and this error comes up. Shouldn't the tutorial work out of the box by just copying and pasting the code provided?
Thanks

It should, I'll check it and fix it


Unable to read files with new version, which worked previously

Bug report
We have some files that were previously processable with PDF Miner, but with the upgrade from version 20211012 to 20220506 it is not possible anymore. I debugged to find the root cause of it and it seems be related to these changes here:
https://github.com/pdfminer/pdfminer.six/blob/86e34873e4daeb7329aa7420208e82f8d41e38b6/pdfminer/pdfdocument.py#L723-L728
Previously the fallback code was executed always and made these PDF files work, but now it is only happening, when we have the exception, which does not occur in these documents.
Sadly i can not provide these documents.

Hi,
Thanks for opening this issue. This was a risk we explicitly took when changing how the fallback is used in https://github.com/pdfminer/pdfminer.six/pull/684#issuecomment-1025174415.
I would like to keep this issue open for a while, gather example PDF's and get a feeling of how big the impact of this change is. Since the xref is a pretty important part of the PDF I expect almost all PDF's will have a valid one.

Is there a possibility for a setting so we can decide ourselves, if we want the best performance or rather have higher compatibility with some files that are not created properly. This would help us a lot.

Yes, that's one way in which we could solve this issue.

I also have documents that are affected by this. It manifests as pages with no content. The documents are contracts and I'm checking to see if there's a possibility to share a sample
As an example, the following is a qpdf --check output for a 2 page document where pdfminer is not returning any text content for the second page:
PDF Version: 1.7
File is not encrypted
File is linearized
WARNING: linearized file contains an uncompressed object after a compressed one in a cross-reference stream
WARNING: shared object 2 length mismatch: hint table = 2995; computed = 857
WARNING: shared object 3 length mismatch: hint table = 2717; computed = 857
WARNING: shared object 4 length mismatch: hint table = 6076; computed = 2995
WARNING: shared object 5 length mismatch: hint table = 825; computed = 857
WARNING: shared object 6 length mismatch: hint table = 7179; computed = 857
WARNING: shared object 7 length mismatch: hint table = 881; computed = 857
WARNING: shared object 8 length mismatch: hint table = 6963; computed = 2717
WARNING: page length mismatch for page 0: hint table = 28605; computed length = 10966 (offset = 1314)
WARNING: page length mismatch for page 1: hint table = 9515; computed length = 807 (offset = 29919)
WARNING: page 1: shared object 19: in hint table but not computed list
WARNING: page 1: shared object 20: in hint table but not computed list
WARNING: page 1: shared object 21: in hint table but not computed list
WARNING: page 1: shared object 22: in hint table but not computed list
WARNING: page 1: shared object 26: in computed list but not hint table
WARNING: page 1: shared object 29: in computed list but not hint table
WARNING: page 1: shared object 32: in computed list but not hint table
WARNING: page 1: shared object 35: in computed list but not hint table
Metadata about the document:
Application: wkhtmltopdf 0.12.5
PDF Producer: Qt 4.8.7
Some sort of compatibility flag would be great

As additional information, the document loads fine when I checked out commit dc530f3 on master, but does not load properly at commit 4b138a6 on master. So it's definitely the linked issue, 684, that caused this regression

@prgx-erodri02 Can you share them? And also write down what you expect the output to look like. I expect in almost all cases the issues can be fixed by repairing the PDF with something like mutool. That will repair the xref, and make your documents parsable.
In 1.5 year there has been little activity here so I think it is fair to assume that most PDF's have either an up-to-date xref, or no xref.

Closing because no reproducible examples.


Real time cartesianChart slow as points added

How to reproduce?
Using the Constant Changes demo, my real time graph gets progressively slower as I add points. It becomes very noticeable once the point count reaches 500 or so. You can replicate by commenting line 88 of ConstantChanges.cs ( //if (ChartValues.Count > 30) ChartValues.RemoveAt(0); )
I placed timing in ChartValues.GetPoints and noticed that calls to GetPoints are about 500ms once the point count becomes high.
In my application, the visible chart area is small and only displays less than 100 points. The initial 100 points do not appear delayed while rendering. I would not expect this to be related to rendering. I would assume that the point list is clipped to the visible chart area (approximately the last 100 points) so that only 100 points are being smoothed and rendered.
Extra notes
My chart area can be adjusted with form size by the user. It is difficult to tell how many points will be required to 'fill' the current horizontal range (time). I cannot accurately determine how many points to remove from the ChartValues collection as form size is adjusted (i.e. culling to last X number of points).
I am using

Live-Charts version
<IP_ADDRESS>

.Net Version
4.5.2

Windows
Windows 10 Pro 1607 build 14393.10

Hi, thanks for the report, yeah, the library get slow when there are many points in the UI, this issue lead me to investigate and improve the performance of the library, the solution was a Livecharts.Geared it is not spammed properly yet, because it is new and has some known issues, I keep working on it, but you can download it and install it from Nuget
https://lvcharts.net/App/examples/v1/wpf/Performance Tips
https://lvcharts.net/licensing/pricing


PAINT_007 Pick a color

Acceptance Criteria:
-) Display the currently selected color
-) There must be something to modify the color
-) All points, lines and paths must use this color
Description:
As a user I want to pick the color for drawing points, lines and paths

Done


update @stitches version

stitches v1.2.8 fixed "length is declared here" issue with TS 4.6. I use leva/plugin to style some of my components and am geting errors with TS 4.6.

 A direct yarn build in my forked leva repo reported this issue https://github.com/microsoft/TypeScript/issues/42873

@Sec-ant you should be able to install a package from a pull request.


Make cardano-cli-guru a submodule

Change cardano-cli-guru to be a submodule of cardano-devnet.  This allows a tighter coupling between the indexer and the addresses generated from the command line.  It also removes complexity from having to code use cases based on whether CARDANO_CLI_GURU is set or not (now it will always be set).

README and INSTALL docs need updated.  Other docs could probably use a review and update was well before accepting.


Quality control didn't show up

Expected behaviour
There are quality control in the settings
Actual behaviour
The quality control didn't show up
Steps to reproduce
Create Plyr and add the sources by js
Environment

Browser: Chrome
Version: 79.0.3945.117
Operating System: Mac OS
Version: 10.12.6

Console errors (if any)
None
Link to where the bug is happening
https://codepen.io/lawchihon/pen/poJjRQP

I also encountered this bug. I tried to use {debug: true} parameter, but it unfortunately doesn't show what source(s) it is loading.

What i found out is that if you dont define the quality in the plyr object the quaility options doesn't show up. If you define all the sources within the html markup it should work.

Amy updates on this? I want to be able to manually handle the quality options on the fly due to my current implementation.
Thanks

Nvm outdated JS library haha


composer validation warnings

Composer validation currently produces several warnings due to unbound version constraints in composer.json.
These issues may impact package stability.
composer validate

Output :
./composer.json is valid, but with a few warnings
See https://getcomposer.org/doc/04-schema.md for details on the schema
# General warnings
- require.guzzlehttp/guzzle : unbound version constraints (>=7.0) should be avoided
- require.rakit/validation : unbound version constraints (>=1.4) should be avoided
- require.illuminate/support : unbound version constraints (>=10.39) should be avoided
- require.medboubazine/number_format : unbound version constraints (>=1.1) should be avoided
- require.nesbot/carbon : unbound version constraints (>=2.72) should be avoided

this issue should be fixed in this PR #6

Thanks


When installing k3s, how to customize the timeout time of each component

I would like to be able to customize the 5s timeout; see the log below
example：
Dec 08 15:31:19 VM-10-44-centos k3s[31183]: E1208 15:31:19.594118   31183 leaderelection.go:325] error retrieving resource lock kube-system/kube-controller-manager: Get "https://<IP_ADDRESS>:6444/apis/coordination.k8s.io/v1/namespaces/kube-system/leases/kube-controller-manager?timeout=5s": net/http: request canceled (Client.Timeout exceeded while awaiting headers)
k3s-log.txt

That is not something that is configurable. If that connection is failing, it indicates a problem with networking between the servers in your cluster, between the servers and the datastore, or (if you are also seeing datastore latency warnings) a problem with the performance of your disk.
These messages from the log you attached indicate that the problem is probably due to poor disk performance:
Dec 08 15:31:19 VM-10-44-centos k3s[31183]: I1208 15:31:19.419074   31183 trace.go:205] Trace[2014813712]: "GuaranteedUpdate etcd3" type:*coordination.Lease (08-Dec-2022 15:31:14.419) (total time: 4999ms):
Dec 08 15:31:19 VM-10-44-centos k3s[31183]: Trace[2014813712]: [4.9991865s] [4.9991865s] END


Fix an unstable test for ack response of out_forward

Which issue(s) this PR fixes:
none
What this PR does / why we need it:
It fixes the following error:
  Error: test: a node supporting responses after stop(ForwardOutputTest): Fluent::Test::Driver::TestTimedOut: Test case timed out with hard limit.
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:201:in `rescue in run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:196:in `run_actual'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base.rb:95:in `run'
  /home/runner/work/fluentd/fluentd/lib/fluent/test/driver/base_owner.rb:130:in `run'
  /home/runner/work/fluentd/fluentd/test/plugin/test_out_forward.rb:651:in `block in <class:ForwardOutputTest>'

In addition, add a timeout and an assertion to help investigating on failure/error cases.
Docs Changes:
none
Release Note:
none

Hmm, frequency of occurrence is quite reduced but not yet perfect: https://github.com/fluent/fluentd/runs/2250361051


(Win Binary) Issue with FQDN

No present in cme binary or linux version.
throws errors
ERROR    Domain TestDomain for user TestAdmin need to be FQDN ex:domain.local, not domain
in other words it won't run unless I enter -d TestDomain.lan

Additional info:
DCs do not allow to log in(say manually via RDP) using full FQDN, only domain without .lan is allowed. but NXC requires (for unknown reason) FQDN. Hence, it can log in.

@bongobongoland can you provide logs with --debug so we can see what's going on?

PS C:\nxc> .\nxc.exe --debug smb <IP_ADDRESS> -u administrator -p 'test@123'
[09:02:14] DEBUG    Passed args: Namespace(threads=100, timeout=None, jitter=None, no_progress=False, verbose=False, debug=True, version=False, protocol='smb',  netexec.py:99
                    target=['<IP_ADDRESS>'], cred_id=[], username=['administrator'], password=['test@123'], ignore_pw_decoding=False, kerberos=False,
                    no_bruteforce=False, continue_on_success=False, use_kcache=False, log=None, aesKey=None, kdcHost=None, gfail_limit=None, ufail_limit=None,
                    fail_limit=None, module=None, module_options=[], list_modules=False, show_module_options=False, server='https', server_host='<IP_ADDRESS>',
                    server_port=None, connectback_host=None, hash=[], domain=None, local_auth=False, port=445, share='C$', smb_server_port=445,
                    gen_relay_list=None, smb_timeout=2, laps=None, sam=False, lsa=False, ntds=None, dpapi=None, mkfile=None, pvk=None, enabled=False,
                    userntds=None, shares=False, no_write_check=False, filter_shares=None, sessions=False, disks=False, loggedon_users_filter=None,
                    loggedon_users=False, users=None, groups=None, computers=None, local_groups=None, pass_pol=False, rid_brute=None, wmi=None,
                    wmi_namespace='root\\cimv2', spider=None, spider_folder='.', content=False, exclude_dirs='', pattern=None, regex=None, depth=None,
                    only_files=False, put_file=None, get_file=None, append_host=False, exec_method=None, dcom_timeout=5, get_output_tries=5, codec='utf-8',
                    force_ps32=False, no_output=False, execute=None, ps_execute=None, obfs=False, amsi_bypass=None, clear_obfscripts=False)
           DEBUG    Protocol: smb                                                                                netexec.py:155
           DEBUG    Protocol Path: C:\Users\poop\AppData\Local\Temp\_MEI154482\nxc\protocols\smb.py                                                              netexec.py:158
           DEBUG    Protocol DB Path: C:\Users\poop\AppData\Local\Temp\_MEI154482\nxc\protocols\smb\database.py                                                  netexec.py:160
[09:02:16] DEBUG    Protocol Object: <class 'protocol.smb'>                                                                                netexec.py:163
           DEBUG    Protocol DB Object: <class 'protocol.database'>                                                                                netexec.py:165
           DEBUG    DB Path: C:\Users\poop/.nxc\workspaces\default\smb.db                                                                                netexec.py:168
           DEBUG    Using proactor: IocpProactor                                                                                proactor_events.py:633
           DEBUG    Creating ThreadPoolExecutor                                                                                netexec.py:56
           DEBUG    Creating thread for <class 'protocol.smb'>                                                                                netexec.py:59
           INFO     Socket info: host=<IP_ADDRESS>, hostname=<IP_ADDRESS>, kerberos=False                                                                   connection.py:95
           DEBUG    Kicking off proto_flow                                                                                connection.py:155
[09:02:17] INFO     Error creating SMBv1 connection to <IP_ADDRESS>: Error occurs while reading from remote(10054)                                                 smb.py:604
[09:02:24] DEBUG    Update Hosts: [{'id': 9, 'ip': '<IP_ADDRESS>', 'hostname': 'VM123', 'domain': 'corp', 'os': 'Windows 10.0 Build 17763', 'dc':      database.py:283
                    None, 'smbv1': False, 'signing': True, 'spooler': None, 'zerologon': None, 'petitpotam': None}]
           DEBUG    add_host() - Host IDs Updated: [9]                                                                                database.py:293
[09:02:25] DEBUG    Error logging off system: Error occurs while reading from remote(10054)                                                                         smb.py:257
SMB         <IP_ADDRESS>   445    VM123       [*] Windows 10.0 Build 17763 x64 (name:VM123) (domain:corp) (signing:True) (SMBv1:False)
           INFO     SMB         <IP_ADDRESS>   445    VM123       [*] Windows 10.0 Build 17763 x64 (name:VM123) (domain:corp) (signing:True)        logger.py:159
                    (SMBv1:False)
           ERROR    Domain corp for user administrator need to be FQDN ex:domain.local, not domain                                                            connection.py:372
PS C:\nxc>

the domain is "corp"
not corp.local or corp.gov.kp or whatever. so the host's full name is vm123.corp

@NeffIsBack this has to do with the code added here (I think you did it originally): https://github.com/Pennyw0rth/NetExec/blob/main/nxc/connection.py#L370

@NeffIsBack this has to do with the code added here (I think you did it originally): https://github.com/Pennyw0rth/NetExec/blob/main/nxc/connection.py#L370

Originally this was done by mpgn, because of problems with netbios domain names inside impacket and the bloodhound extension. For example adding users to bloodhound is a mess because bloodhound requires fqdn.
One of the remaining open issues:
https://github.com/byt3bl33d3r/CrackMapExec/issues/529
@bongobongoland whats the FQDN of your domain?

The whole domain is just "corp" there's no TLD.

I think the main issue is how a FQDN is defined. Is there a good method on how to do it other than checking if it contains a dot?

This kind of domain are not very common, did it work with-d corp.local @bongobongoland  ?

This kind of domain are not very common, did it work with-d corp.local @bongobongoland ?

hi. no, doesn't work, because in the AD that's how it's defined: corp
there's no tld.

@bongobongoland Can you try with impacket's script DumpNTLMInfo.py <IP_ADDRESS> ?

I'll try if I get chance

I think is something wrong when getting SMB ntlm info

Resolved with #88


Mermaid support missing from --help menu

I was just looking to use Seafoam's support for Mermaid files and couldn't find any mention of it in seafoam --help. It should be a quick fix since the docs appear in the README.

Fixed in 0b74d6c33f2b0cd52cc8abb2bf42a6ebba4d5176.


[cosmoflow] Updates/fixes for v2.0 (shard+shuffle, software)

Pulls changes from https://github.com/sparticlesteve/cosmoflow-benchmark/pull/44

Adding random seed setting: currently setting both TF and numpy random
generators with the same seed provided via command line. Default seed
is zero.
Swap order of shard and shuffle in dataset

https://github.com/sparticlesteve/cosmoflow-benchmark/pull/45

Better keras function for setting all random seeds
MLPerf logging of random seed
Optional command line switch for "enabling deterministic ops" in TF

https://github.com/sparticlesteve/cosmoflow-benchmark/pull/46

Code cleanups
Minor TF API updates

https://github.com/sparticlesteve/cosmoflow-benchmark/pull/47

Update dockerfile and latest image to use NGC 22.04

discussed in numerous hpc wg meetings and approved.


[CARBONDATA-2404] Add documentation for using carbondata and stored as carbondata

Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/4251/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5419/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4557/

retest this please

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/4278/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5445/

@chenliang613 Please review it

LGTM


RBAC Roles

What is the most restrictive role that allows you to modify these rules?

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

ID: 938a11e9-3419-4af7-9d4a-574c833ba1ff
Version Independent ID: a51fc317-8137-96ce-0e81-0dedb1424b25
Content: How to configure Azure Key Vault networking configuration
Content Source: articles/key-vault/general/how-to-azure-key-vault-network-security.md
Service: key-vault
Sub-service: general
GitHub Login: @sebansal
Microsoft Alias: mbaldwin

@torresariel
Thanks for your feedback! We will investigate and update as appropriate.

@torresariel
According to the document , the most restrictive role that allows you to modify network security rules for Azure Key Vault is the "Network Contributor" role. This role allows you to manage network resources, but not access to those resources.
But I would suggest to please reach out in forums like Microsoft Q&A or Stackoverflow. We have our engineers and other community members who will be happy to assist. Forums have a better suited audience for such queries. Once your issue is posted in forum, please do share the forum thread link here for tracking.


✨[Feature Request]: header needs to be responsive

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description

Use Case
Header not displaying properly in mobile
Benefits
No response
Add ScreenShots
No response
Priority
Low
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Hello @Anishkagupta04 please assign this issue to me under gssoc 24


Event Detail: Need Presenter Profile Picture and Logo

Need to set "max width"/scaling instead of cropping photo.


subscribe reconnection

Hi,
Thanks for the lib. It's been a pleasure to use so far.
I am testing the pub/sub part of eredis, and from what I can see there' is no subscriber automatic reconnection, or am I missing something?
(STR: i connect to a redis instance, send some msg via redis-cli, receive them then, restart the redis-server, relaunch redis-cli, send more command -> nothing is received on the process listenening to subscribe.)
cheers,
Max

Nevermind I got it working, but maybe this should be made automatic:
I had to manually eredis_sub:subscribe/2 once eredis_connected is emitted. I guess you maybe don't want to do channel bookkeeping internally hence the current approach.
Could be nice to document the behavior though, as https://github.com/wooga/eredis#reconnecting-on-redis-down--network-failure--timeout--etc makes it seems like it's all handled internally.


chore: bdd-nh-1594729255 to 0.0.1

chore: Promote bdd-nh-1594729255 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


K32 EnumProcessModules failed with code: 299

I get this error when launching the unlocker sometimes, but the unlocker still works.

ignorable


Add optional dimensional blacklisting and enable it for nerve_uwsgi collector

Add the ability to blacklist certain dimensions. Datapoints that match these dimensions will not be emitted. Controlling excessive DPM (Datapoints Per Minute) helps alleviate various performance problems and reduces cost. This is especially relevant to dropwizard metrics where stats like m1_rate, m5_rate, m15_rate etc don't need to be emitted as they can be easily computed by downstream analytics backends.
Currently, I have enabled this only for the nerve_uwsgi collector. Usage of this feature is optional and can be configured for individual collectors at host level. The collector config file parses the blacklist field as a map where key is the name of the dimension and value is a regex matching the values you don't want to emit. Ex: {"rollup": "p*"} will filter out all percentiles and {"rollup": "p95"} will only filter out p95 aggregations.

Looks good to me. Merging, and thank you for the contribution! :)


ESLint to automate code style

Sorry for the comma bug in options.js https://github.com/lamby/strava-enhancement-suite/commit/5771e6ee1686c86abc449ebd55726b624513e877 🙈
I'm working on a lot of different codebases and all of them uses slightly different code styles,
so I've learned to depend on ESLint and IDE inspections almost totally.
This PR introduces recommended ESLint settings but overrides few rules to avoid massive changes to the codebase.
This should hopefully help avoid any future bugs of such types.
What do you think?

Merged with https://github.com/lamby/strava-enhancement-suite/pull/87, closing


Redis Cluster + SSL = certificate match error

If you try to use Redis Cluster with auto discoverability REDIS returns the IP and the port of the shard containing the key.
When the client tries then to connect to the other shard the certificate check will fail because it does not match the IP
[ErrorException]
  stream_socket_enable_crypto(): Peer certificate CN=`*.redis.cache.windows.net' did not match expected CN=`XX.XX.XXX.XX'

Inside Azure every shard is on the same IP/domain name but using different ports.
One way to solve this issue would be to allow the override of the host parameter when creating the connection:
        if ($this->defaults) {
            $parameters += $this->defaults;
            if (isset($this->defaults['host'])) {
                $parameters['host'] = $this->defaults['host'];
            }
        }

If you like the solution I'm happy to create a PR for it.

Didn't know how Azure works with Redis in this case but it makes sense, I'm just not sure about the solution so let me think about it.
PS: I won't suggest to set verify_peer and verify_peer_name to false because it's bad 😃


Allow sum of split in #allocate to be > 1.

I need to split money in a line item discount, so I wanted to do something line amount.split([3, 4]), but that's not allowed. There seem to be no reason for this? The git history doesn't go that far ¯_(ツ)_/¯.
r: @tjoyal @maximebedard

Could that be in any way related to float accuracy issue? One other reason could be to ensure all the weights are floats (as opposed to int) so you do not have divisions of int / int that would behave differently than (int / float).floor ?

Since inject has an initial value of 0.0, it's result will also be a float.

So we never get the int / int case.

I don't see why prevent this. As it is $ we might want to dig deeper, but for me :+1:

Hum Ruby money does seem to disallow allocations > 1. But I can't find any justification for that in the comments or issues... in their example they explicitly show and example where the sum is < 1, so it has to normalize? ¯_(ツ)_/¯

@jeromecornet, @gmalette what do you think of this? It is safe, right?

I don't understand how this helps

IMO that kind of breaks the semantics of allocate even if the math would work.
What prevents you from normalizing the ratios in the caller ?

What prevents you from normalizing the ratios in the caller ?

Yeah, I think I'll just do that instead.


Requiring Dasher Admin Status as a Decorator for Using the Management Server

In order to implement this, we require some kind of oauth so that we can query the directory API for admin status. In the future, we could lessen the oauth grant to require only user access (since that is all that is needed to verify an admin) on most pages. The exception would be the add_user page which would still require group and member access (read only) in order to allow users to be imported via group. For now, all access is required for everything, which doesn't make things easier for users, but it does make us more secure until we implement different oauth decorators for different access levels.

Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

dasher_admin.py, line 37 [r1] (raw file):
It is still technically possible for the directory service call to return empty. It would be a weird scenario though, so it probably will never be hit, but I have it in here just to be safe.

proxy_server.py, line 65 [r1] (raw file):
I like what you're thinking, but I'm not sure if combining it with admin is the right thing to do. We still want the admin decorator for the setup flow so that we can at least guarantee something about the user on initial configuration when we can't do any OAuth.
I'm thinking we may eventually want to do two subclasses of OAuth decorators. One that requests just user scope (in the base class) and then checks for admin (in the subclass) as well as another one that requests all scopes and then checks for admin.
Would that be cleaner in your opinion? It definitely looks a bit messy with all the decorators currently so we need to do something.

Comments from the review on Reviewable.io

Reviewed 10 of 10 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

proxy_server.py, line 65 [r1] (raw file):
I couldn't get the inheritance to work properly with a decorator, so oauth had to stay. However, that's probably not the worst thing in the world since we may not want to mess with oauth ourselves anyway. So the oauth and xsrf decorators still exist as before. I moved the oauth decorators (now there are separate ones for just user scope and all scopes) into the admin file just so it is all in one place. I implemented the double check of domain and application admin as necessary though.

dasher_admin.py, line 37 [r1] (raw file):
Done.

Comments from the review on Reviewable.io

Landscape IO thinks I introduced poor code quality, but actually I just move a TODO from one file to another, and it hasn't realized that the TODO is the same as before, so there should be no overall change. You can verify yourself if necessary.

Review status: 4 of 10 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

admin.py, line 53 [r2] (raw file):
Done.

admin.py, line 65 [r2] (raw file):
Done.

admin.py, line 87 [r2] (raw file):
The reason was to not request additional access than would be required at a given time. For instance, if you never run the import flow, then you shouldn't need to grant group or member access since that is the only place they are used. However, I can see your point about it being a worse user experience to have to perform multiple grants in different places.
In general it seems like this model of granting permissions isn't really that great since we have to ask for all these permissions that aren't really necessary for 90% of the app. I've changed it as you requested though.

proxy_server.py, line 172 [r2] (raw file):
Done.

Comments from the review on Reviewable.io

:+1:   Cool, this looks much cleaner than before!  Just a nit and a small question.

Reviewed 6 of 6 files at r3.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.

proxy_server.py, line 65 [r1] (raw file):
I'm gonna take another stab at this at some point actually given that I found out how to do it. See the other comment.

proxy_server.py, line 61 [r3] (raw file):
So I went looking for an answer to this, and boy did I hit the mother load of all decorator answers: https://stackoverflow.com/questions/739654/how-can-i-make-a-chain-of-function-decorators-in-python/1594484#1594484
They are executed top down and order does matter for the short version so doing it the way I have is correct. Given all this nifty help though, I'll take another shot at doing the decorator inheritance. That post should give me everything I need to make it work correctly. Gonna take a while though, so I'm not sure if I'll submit this and follow up with another PR, or just wait and submit it all at once. When I merge and resolve for all the other recent changes I'll let you know what I decide.

Comments from the review on Reviewable.io


Make the location of Events auto populate the same way Event contact info does.

 Make the location of Events auto populate the same way Event contact info does. #755


ARM32 crash at startup due to misalignment

Here’s output from gdb:
Thread 1 "MyApp" received signal SIGBUS, Bus error.
RhpLockCmpXchg64 () at /home/linaro/corert/src/Native/Runtime/arm/Interlocked.S:47
47                cmp          r6, r4
(gdb) bt
#0  RhpLockCmpXchg64 () at /home/linaro/corert/src/Native/Runtime/arm/Interlocked.S:47
#1  0x0049c5ee in S_P_CoreLib_System_IO_UnmanagedMemoryStream__get_PositionPointer ()

gdb probably has off by 1 bug, I think it’s the previous instruction which crashed the app.
The failing line of C# code is probably this https://github.com/dotnet/corefx/blob/master/src/Common/src/CoreLib/System/IO/UnmanagedMemoryStream.cs#L329 but I’m not 100% sure, as there’s no debug information in the binary due to another CoreRT ARM32 bug.
I wasn’t able to make minimal repro, when I wrote a class with a long field, Interlocked.Read(ref long) returned the value without crashing. Probably clang optimizes away.
Any idea how to fix or workaround?

This is a problem with the object layout or GC not respecting the required alignment. Does a program like this reproduce the crash?
using System;
using System.Threading;
using System.IO;

class My
{
    static unsafe void Main()
    {
        new Thread(() => { GC.Collect(); Thread.Sleep(1); }).Start();
        Random r = new Random();

        for (;;)
        {
            byte b;
            var s = new UnmanagedMemoryStream(&b, 1);
            GC.KeepAlive(new String('a', r.Next(100)));
            Console.WriteLine(s.Position);
        }
    }
}

If yes, the thing to check by looking at the disassembly are:

Does new UnmanagedMemoryStream call RhpNewFastAlign8 allocation helper?
Is the UnmanagedMemoryStream._position field offset aligned at 8 bytes?

Yes, it prints 0, on the next line Bus error, then quits. When debugging, gdb says it’s same location, Interlocked.S:47.
I’m afraid I don’t know how check the things that you’ve mentioned. I normally use debuggers to find out who called what or native layout details, but debug symbol writer appears to be broken on ARM32, so gdb is of limited help.

ilc compiler crashed with segfault. Attaching a pic.

Fortunately, same  dotnet publish command worked the second time.
Yes, the output is identical, 0 then Bus error.

The place to set a breakpoint is RhpNewFastAlign8 and step through it. This method is supposed to return aligned pointer, but it is not doing that for some reason. The bug is likely going to be somewhere in RhpGcAlloc that is called by this method.


Bump Sinatra version

Added support to Sinatra 2.0

Can you update the version to 2.0.0.pre1 also?

@atmos done! 💯

$ gem push sinatra_auth_github-2.0.0.pre1.gem
Pushing gem to https://rubygems.org...
Successfully registered gem: sinatra_auth_github (2.0.0.pre1)

Care to try the prerelease so we can tell whether or it's working as expected?

Sure. Will do in a moment!

Worked like a boss! Thanks @atmos 🎩  💯  🚀

I released and tagged 2.0.0.


Getting error after bundle install

Your bundle is locked to mimemagic (0.3.5), but that version could not be found
in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.5) has removed it. You'll need to update
your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
in order to install.

well the gems been yanked so you need to upgrade

@sandeshbodake this is the second time do this :(

I have to be honest this was a bit of a frustrating surprise. ActiveStorage (and thus most Rails apps) depend on this gem and as soon as the previous versions were yanked, builds just suddenly stopped working.

Read the original issue thread, you would have introduced a GPL dependence
into your codebase, making the whole thing GLP, yanking the gem was the
right thing to do, although some notice would have been nice.
On Thu, 25 Mar 2021 at 20:02, Justin Workman @.***>
wrote:

I have to be honest this was a bit of a frustrating surprise.
ActiveStorage (and thus most Rails apps) depend on this gem and as soon as
the previous versions were yanked, builds just suddenly stopped working.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mimemagicrb/mimemagic/issues/114#issuecomment-807386115,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAABVZQ6SVZGJEWPEH3IBLTFOJEXANCNFSM4Z2AGXCQ
.

--
Bit Zesty Ltd, a company incorporated in England & Wales with registered
number 06883289. Our registered address is 94 White Lion Street, London, N1
9PF.

@matthewford Understood, thanks for clarifying.

@matthewford Thanks for the quick response!
Really appreciate it!


Simplify to a common type variable when picking a disjunction of bindings

@swift-ci Please test.

Build failed
Swift Test Linux Platform
Git Sha - f6d933b0323775929aa5e3ec33687030f95e5d33

@swift-ci Please smoke test Linux.

Another flaky test?

@xedin I think that was just paranoia on my part. We don't have any real verification on the shape of the constraints in the constraint solver. In some cases I've put debug-only code to verify assumptions that are being made, and in this case it didn't end up in debug-only code.
It seems like we might be able to actually switch this around, too, so that it looks for conversion constraints where the RHS appears in a disjunction of binds.

Alright, I think we should also make it assertion when we create a disjunction, check that all of the choices have the same left-hand side, otherwise it should be different disjunctions...

Yes that certainly seems reasonable for a disjunction of bind constraints in particular.


Calculate function.v1

Issue #29 #32 , version 1.
Now with @aureliobarbosa suggestions implemented.

Thanks @hsguidi

fixes #29


Fileclasses not working

I can't seem to get file classes to work in my vault. To test, I used another test vault I had installed (The LYT Kit) and file classes worked easily. I tried turning off all community plugins and snippets, and going through and checking that all of my settings were the same as the LYT Kit ones to see if there was anything interfering. But in my main vault, Fileclasses don't work.
The contextual menu options show up to add file classes and to add or edit the file class of a note, but when I add the file class, the note doesn't register any of that file class's fields and it doesn't show the icon beside the note title. In the test vault, these things do work. I can't figure out what it is in my vault causing this not to work.

It seems something with last update. I have a similar problem with my fileClass that have space in it title.
Here are a screenshot with the console error that i keep getting. Hope this will be fixed soon, this is the best plugin out there for rigid data modeling in Obsidian.

Hi! thanks for pointing this out and for the console screenshot.
I've pushed a hotfix (v0.3.5) to handle fileClasses with space in their names.
Though: they won't be usable with the "mapWithTag" (just like tags don't accept white spaces)
Could you test it please?

It is working now! Thanks for the quick fix

Thanks for the quick fix!
My fileclasses didn't have any space in the name, but it seems to have fixed itself after I completely deleted the plugin from .obsidian folder and then restarted a couple of times, not sure why.