Check & Update json example uuids (part 1 of 2)

This pull request to update the following CASE examples in order that they are all lowercase and have a valid 16-byte UUID.
The eleven (11) examples affected by this change are:

account.json (29 changes);
bulk_extractor_forensic_path.json (25 changes);
call_log.json (27 changes);
cell_site.json (5 changes);
database_records.json (no changes)
device.json (2 changes);
exif_data.json (23 changes);
location.json (2 changes);
mobile_device_and_sim_card.json (11 changes)
raw_data.json (5 changes)
recoverability.json (5 changes)

*The remaining 9 examples will be checked and uploaded on the next working day.
The above files were processed, and then manually fully checked against their log file,
Unfortunately, the zip file containing the logs fails to uploaded into this pull request, but is available on request, and will be retried adding to this pull request using a different version of chrome later today.
The following addition notes below indicate details which were incorrectly reported within the logs;

account.json

Two (2) independent relationship objects defined with the same Iri "account4", the 2nd definition was manually renamed "account5-{uuid}".

bulk_extractor_forensic_path.json

The definition for "kb:disk_image" (on line 283) contains an @type array of 2 elements ["uco-observable:File", "uco-observable:Image"] which results in the log incorrectly thinking that it is a reference and not a definition.
This was manually checked.

cell_site.json

The definitions for "kb:observation-009101f6-ba93-4a3d-acb0-455102b5b1e1" (on line 238) and "kb:observation-21841f2a-6c14-48d7-b9d3-f081d43bc19b" (on line 256) both contain an @type array of 2 elements ["uco-core:UcoObject", "sosa:Observation"] which results in the log incorrectly thinking that it is a reference and not a definition.
This was manually checked.

All the original @id's contain valid Iri's except the definition for "urn:example:cell-site-kb:cell-cite-204-16-1014-13399"" (on line 292). This is defined within the example, and should therefore ideally follow the required Iri naming convention, it has therefore been manually given the following Iri:
"kb:cell-cite-204-16-1014-13399-cc0e0667-eadf-4b2e-9618-3f62b1bdae26"
and the associated references on lines 127, 244, 262 and 285 have been manually updated to reflect this change

device.json

The definition for "kb:forensic_lab1-uuid" was updated but isn't defined within the example, but it is referenced on line 28 for the object defined on line 25.
This was manually checked.

raw_data.json

The definition for "kb:digital_photograph_thumbnail1-{uuid}" (on line 14) contains an @type array of 2 elements ["uco-observable:ContentData", "uco-observable:RasterPicture"] which results in the log incorrectly thinking that it is a reference and not a definition.
This was manually checked.

recoverability.json

The four (4) definitions for "kb:4026fabd-924d-4138-a6ba-73df2eb37bcb" (line 11), "kb:665d63be-93e6-4d3e-8e75-3112be091e93" (line 47), "kb:bd64bdd9-3dcd-4828-a25b-a72c06e472cd" (line 91) and "kb:cb0354f5-2dbd-4c02-8a6c-011b77125ee2" (line 166) all contain an @type array of 2 elements ["drafting:RecoveredObject", "uco-observable:File"] which results in the log incorrectly thinking that it is a reference and not a definition.
This was manually checked.

The definition for "kb:c01e67f9-adb5-48bd-b09d-e7326fa8d592" (line 126) contains an @type array of 2 elements ["drafting:RecoveredObject", "uco-observable:Message"] which results in the log incorrectly thinking that it is a reference and not a definition.
This was manually checked.

Coordination
@ajnelson-nist additionally reviewed:

[x] Numeric identifiers removed from IRI fragment prefixes (this moves examples towards "real-world" data where it can't be known that e.g. kb:account-${uuid} would be appropriately named kb:account1-${uuid}.
[x] All Make-managed resources regenerate consistently with new changes (verified by running make check)
[x] README.mds containing node references also receive IRI updates

@gwebb-case , thank you for this effort, and for the usability experience notes.
@kfairbanks, FYI: The context dictionary generator should ensure the RDF type field is always a @set.  Multi-typing is a base feature of RDF, so we should do what we can to prevent confusion like @gwebb-case experienced with the object reference of @type being either a singleton or JSON Array.

@gwebb-case - unless your browser-vs.-Github issue is more dramatic than I realize, you should be able to post a comment on this PR with the zip as an attachment.

@gwebb-case , I'll step in and make some pushes to your master branch in order to get CI passing and merge this.  This will save me a substantial amount of effort in squashing the validation issues UCO Issue 430 is going to raise.
Two other things to be aware of:

When you file your next PR, please use a branch in your fork named something aside from master.
Some of the examples contain READMEs with node references.  So, any substitutions you do (reviewable with git diff) should also be manually applied in the corresponding READMEs.

@gwebb-case , I added a review checklist to your PR's description.  You don't need to document as much detail as you did when you do your follow-on PR, but for the sake of maintaining examples' documentation cross-referencing integrity, it would be helpful if you could run the same three checklist items.  If you can't run the make step due to environment set up, that's OK, I can do that.


W3D1_Tutorial1_Solution_816c0c9d.py - Left/Right mixup

Currently, the text is the following:
3) If the fisher-person does not catch a fish, you would guess the school of fish is on the
    right side. This is because the probability of not catching a fish given that the
   school is on the right side (0.8) is higher than the probability given that
   the school is on the right side (0.3).

However, it should be the following:
3) If the fisher-person does not catch a fish, you would guess the school of fish is on the
    right side. This is because the probability of not catching a fish given that the
   school is on the right side (0.8) is higher than the probability given that
   the school is on the **left** side (0.3).

Thanks for reporting this typo. https://github.com/NeuromatchAcademy/course-content/pull/958 fixed this.


build project

I downloaded the source code. How do I build the project to get the exe? and where will he lie down?

• Check if there is a build script or instructions in the project's documentation
• If there is no build script or instructions, check if there is a Makefile or a build configuration file
• If there is a Makefile or build configuration file, run the appropriate command to build the project
• If there is no build script, instructions, Makefile, or build configuration file, check if there is a build tool specified in the project's documentation
• If there is a build tool specified, install the build tool and follow its instructions to build the project
• If there is no build script, instructions, Makefile, build configuration file, or specified build tool, reach out to the project's maintainers or community for assistance

For notes on running the Buzz locally see https://github.com/chidiwilliams/buzz/blob/main/CONTRIBUTING.md
This will not produce the .exe as for that a setup process is needed that I am not familiar with on Windows.
.exe for the current release you can find in the releases section https://github.com/chidiwilliams/buzz/releases
An option to get the .exe of your custom version is to do the build on GitHub. Fork the repo and add a manual run github action like this https://github.com/raivisdejus/buzz/blob/manual-build/.github/workflows/manual-build.yml Then trigger this action on your repo and once it is finished you will be able to download the .exe from the Assets section of the action (look at the very bottom of action summary page once it is finished)

Did some changes.
Now after commits to the repo GitHub actions will run the build and you can download the .exe from the artefacts section of the run. This should work also on a forked repo


NodeOuts: fix indexing when invalid channels

I discovered a bug with how AD15 handles invalid nodal channels.
Normally we flag it as fatal error if an invalid name is requested.  However, if we have configuration based invalid names, then we end up with the outputs getting shifted in the table.

I have this fix in the PR for the free vortex wake as that is the first time we mark channels invalid for a configuration.  So you can ignore this PR.


[REQUEST] Reference a region by name (and id)

Good afternoon. I'd like to request a features similar to that of WorldGuard. Where you can select a region by a command and it is automatically set as a WE/WG selection. In this fashion things in a claim can be modified via WE. Currently the selection system /gd claim we  but this requires standing in the region. I'd like this command to be able to be used without having to stand in a region and for it to be able to select by referencing a claim's given name, or a claim's id (possibly /gdselect <name|id> . The purpose is so that this command could be run from console, or with automated tools that use the console, such as CommandUtils, or CommandSigns or any spigot/sponge variants. If I have time I will look into making a PR, but I wanted to offer this suggestion as a seemingly helpful tool that could improve the use-case for GD.
https://dev.bukkit.org/projects/worldguard

So the /gd claim we command on its own is designed to simply create a claim with your WE selection.
Would you be able to list a few specific scenarios of how you would make use of a /gdselect command. I assume you want the ability to select a claim via command then use other claim commands to modify your select such as /claimexpand and /claimcontract

OK as discussed on discord, the requirement is to turn a claim's area/volume into a WE selection. This can definitely be done.

This has been implemented and will be released with GD 1.6.0

Awesome sauce! Above and beyond.

GD 1.6.0 is still not released so I'll keep this opened until it is.

This is now part of GD 2.0 via /claimid <identifier>. You can also access this identifier via GD's API.


Multiple instances

Hey there.. first i want to say that your script is exactly what im looking for but, in my case it wont work as expected.
It blocks / replaces one entry fine but as soon as i add a secound id="..." to check again it fails..
testet the same behaviour on your site, seems like you cant have multiply requests at the same time..
(in my example i have 4 ads in a row that should be replaced with other images as soon as adb is detected, first one works fine, the other 3 get ignored)
what can i do?

First, thank you for your enthusiasm for BlockAdBlock.
If I understand correctly, currently, you create an instance of BlockAdBlock for each ad block?

WOW! Thanks for the fast reply! thats pretty awesome!
sure, there you got the part of my code:
https://pastebin.com/xx9YKuJN

You have more, a problem of jQuery, than of BlockAdBlock =)
In the world of development, typically the IDs are made to be unique. In your case, you try to create elements with the same ID and jQuery does not tolerate it, that's why it only works with a single ID. In your case, it would be better to use "class" instead of "id".
Here is a concrete example that shows the difference between "id" and "class" with jQuery: https://codepen.io/anon/pen/eWqWrp

Oh my God!... how i could not see that!...
u are totaly right, in general im aware of classes and ids. - i just didnt mentioned the IDs instead of classes.
im so sorry to interrupt you with such a nasty misstake.
keep going with the good work and hold up that blazing fast support!
10/10.
regards

No problem, and good continuation.


[DPE-3899, DPE-4173] Try to clear connection pool before relating with COS to avoid TIME_WAIT connections; stabilize exporter tests

Issue
https://github.com/canonical/mysql-router-k8s-operator/issues/219
https://github.com/canonical/mysql-router-k8s-operator/issues/229
We are running into a connection in TIME_WAIT when starting mysql_router_exporter. This happens in both the K8s and VM charms. The guess is that this is related to the connection pool we use in our tests.
Solution
Clear the connection pool before relating with COS, re-run exporter tests 5-10 times, observe if tests have stabilized

8/10 successes ain't bad see runs
i am in favor of merging these incremental changes and observing if the nightly test success rate improves. i believe that there may be another issue at play -- the bad descriptor related one in run 9
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "mysql_router_exporter" (cannot start service: exited quickly with code 1)
----- Logs from task 0 -----
2024-05-22T00:38:28Z INFO Service "mysql_router_exporter" has never been started.
----- Logs from task 1 -----
2024-05-22T00:38:28Z INFO Most recent service output:
    2024/05/22 00:38:28 Start exporter on <IP_ADDRESS>:49152/metrics
    2024/05/22 00:38:28 Server started
    2024/05/22 00:38:28 listen: listen tcp <IP_ADDRESS>:49152: bind: address already in use
2024-05-22T00:38:28Z ERROR cannot start service: exited quickly with code 1
-----
unit-mysql-router-k8s-0: 00:38:28 ERROR juju.worker.uniter.operation hook "metrics-endpoint-relation-created" (via hook dispatching script: dispatch) failed: exit status 1

 INFO     pytest_operator.plugin:plugin.py:862 Forgetting main...
ERROR    websockets.client:protocol.py:1015 data transfer failed
Traceback (most recent call last):
  File "/home/runner/work/mysql-router-k8s-operator/mysql-router-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data
    message = await self.read_message()
  File "/home/runner/work/mysql-router-k8s-operator/mysql-router-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message
    frame = await self.read_data_frame(max_size=self.max_size)
  File "/home/runner/work/mysql-router-k8s-operator/mysql-router-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame
    frame = await self.read_frame(max_size)
  File "/home/runner/work/mysql-router-k8s-operator/mysql-router-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame
    frame = await Frame.read(
  File "/home/runner/work/mysql-router-k8s-operator/mysql-router-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read
    data = await reader(2)
  File "/usr/lib/python3.10/asyncio/streams.py", line 708, in readexactly
    await self._wait_for_data('readexactly')
  File "/usr/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data
    await self._waiter
  File "/usr/lib/python3.10/asyncio/selector_events.py", line 924, in write
    n = self._sock.send(data)
OSError: [Errno 9] Bad file descriptor

If I am to guess, there may be another thing at play (what it is, I am not sure). I think this change makes sense nonetheless -- we get more stable tests, fix a potential cause in the usage of connection pools, and does not change the charm code. In my opinion, we should continue to invest in eliminating the error occurrences even if we merge this PR

Whether the behavior is visible outside tests: very rarely but less frequently since mysql-router-exporter implemented graceful shutdowns in response to this issue


FIX: correct instrumentation for Redis 5

Redis 5 gem introduces redis_client as the low level transport method
We no longer patch Redis gem if we detect it is version 5 and above and
instead use the supported middleware interface to patch it.

@tgxworld / @byroot I think I have all the feedback addressed, let me know what you think

Oh tricky one @byroot ... what happens if a pipeline takes say N seconds to commit and get results back from Redis, how is the instrumenter going to pick it up?

what happens if a pipeline takes say N seconds to commit and get results back from Redis, how is the instrumenter going to pick it up?

I'm not sure I understand what is tricky here.
module MyInstru
  def call_pipelined(commands, config)
    start = Time.now
    result = super
    duration = Time.now - start # N seconds
    results
  end
end

Awesome thanks about the tip !
On Fri, 28 Oct 2022 at 8:02 pm, Sam Saffron @.***> wrote:

Oh so individual commands are not instrumented, makes sense
On Fri, 28 Oct 2022 at 7:10 pm, Jean Boussier @.***>
wrote:

what happens if a pipeline takes say N seconds to commit and get results
back from Redis, how is the instrumenter going to pick it up?
I'm not sure I understand what is tricky here.
module MyInstru
def call_pipelined(commands, config)
start = Time.now
result = super
duration = Time.now - start # N seconds
results
endend
—
Reply to this email directly, view it on GitHub
https://github.com/discourse/prometheus_exporter/pull/250#issuecomment-1294658430,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABIXKUVLAX2MDSYEDUL43WFOC77ANCNFSM6AAAAAARPU2QY4
.
You are receiving this because you authored the thread.Message ID:
@.***>

@tgxworld we are all done now, your comment is addressed


Able to input Special characters like %, $, #, @  in the rate field in a new UI

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to staging dot on web chrome
Create a workspace and go to reimbursements
Go to the rate field and add special characters( except . and , which are needed) and notice that it allows to add special characters. (Previously, the rate field allowed only numbers in the previous UI). Even though it throws an error on entering special characters, but we shouldn't be allowed to enter such characters like that of the year field in calendar.
If we check the year field in the calendar, it only allows numbers and not even spaces.

Expected Result:
Special characters should not be allowed in the rate field (as it was earlier in the previous versions)
Actual Result:
Special characters like #, @, ^, &  are allowed in the rate field
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.19-6
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/0f964490-55cf-4eb9-a832-e23e6a4ae201
https://github.com/Expensify/App/assets/43996225/d86edf6f-2313-4095-b57c-9b58992248fa
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685091868689749
View all open jobs on GitHub

Proposal
Please re-state the problem that we are trying to solve in this issue.
Rate Input allows special characters in the rate field.
What is the root cause of that problem?
No validation of rate input while text input, only checking on submit.
What changes do you think we should make in order to solve the problem?
We can put validation on text input while the rate input is being changed and only allow the valid rate input.
Adding this code to this file - src/pages/workspace/reimburse/WorkspaceRateAndUnitPage.js will resolve the issue.
  onChangeText={(rate) => {
                                    if (!rateValueRegex.test(rate) && Number.isNaN(this.getNumericValue(rate))) {
                                        this.setState({rate: ''});
                                    } else {
                                        this.setState({rate});
                                    }
                                }}
                                value={this.state.rate}

Working solution -
What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
Rate Input allows special characters in the rate field.
What is the root cause of that problem?
No validation of rate input while text input, only checking on submit.
What changes do you think we should make in order to solve the problem?
We can put validation on text input while the rate input is being changed and only allow the valid rate input.
Adding this code to this file - src/pages/workspace/reimburse/WorkspaceRateAndUnitPage.js will resolve the issue.
  onChangeText={(rate) => {
                                    if (!rateValueRegex.test(rate) && Number.isNaN(this.getNumericValue(rate))) {
                                        this.setState({rate: ''});
                                    } else {
                                        this.setState({rate});
                                    }
                                }}
                                value={this.state.rate}

Working solution -
Screen.Recording.2023-05-30.at.4.29.15.AM.mov
What alternative solutions did you explore? (Optional)

I wouldn't setState twice. I would just only set it if it's valid.

@bogoroh Right will be implementing the optimized solution in the PR, this was just pseudo code for logic and issue explanation. Thanks for pointing this!

Raised for discussion here.

Thanks @strepanier03!

I agree with @dhairyasenjaliya that this isn't a bug and now is more in line with our form framework.

Closing per this slack discussion.


Implement divergent EC chain in simulations

So far simulations used the same EC chain across all participants after the first instance. This approach was simple but not representative of the real-world where the EC chain may diverge across multiple subsets of participants.
The changes here implement a comprehensive set of APIs that allow a set of EC generation strategies to mix-and-match and replicate complex EC chain evolution through iterations of a simulation. The chain evolution is controllable by instance by actor ID. This allows us to simulate fluctuating EC evolution patterns throughout a simulation. The changes include an initial set of EC generators that cover:

Fixed EC for all instances and participants.
Random EC per instance per participant.
Random EC per instance but uniform across all participants.
Common prefix EC per instance with probabilistic length
Majority common prefix across a set of participants with probabilistic length

The EC generators can be aggregated and set per number of participants, which enables simulation of a flexible set of scenarios including evolving majority common prefix.
Fixes #115

Thanks for pushing forward to land something.

I think what the suggested code snippet meant to be is requireConsensusAtInstance(t, sm, instanceCount-1, .Head())

Yes. basechain-of-instance-after-last is what I meant by expected.

which is an unreasonable expectation in scenarios with EC divergence among participants

But what about scenarios without EC divergence? I'm just trying to preserve the behaviour in those.
The code that landed in multi_instance_test looks fine. If the same thing can be achieved without running the sim into instance one-past-the-end, that will be fine too. But if what I'm saying sounds like nonsense to you, probably best we leave it as-is.

If the same thing can be achieved without running the sim into instance one-past-the-end, that will be fine too.

Thanks Alex, I think at the depth current tests assert things it makes no difference.
We might want to revisit this if we decide to simulate failure scenarios, where we expect the simulation to not converge and eventually converge back. The current simulation logic simply errors out in such cases. For now what's there seems reasonable. 🙏


chore: export tool minor refactor

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This pr is a cr issue fix to #2610
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@shuiyisong PLTAL

@evenyag @waynexia PTAL 😀


✨(frontend) add a syllabus inside a course form

Purpose
Today, the only possibility of linking a course to a product is in the course
form. We add the possibility of doing this via the

I'll add a visual indicator to which target course is graded here :


Use repr to log JSON response content

OSBS-6632

Signed-off-by: Athos Ribeiro<EMAIL_ADDRESS>

Release notes added:

Fix errors triggered when logging information from Dockerfiles containing non-ascii characters


Improper handling of P-256 points with X coordinate of zero

On the NIST P-256 curve, there are two points which have an X coordinate of zero. Sweet B fails to handle these points correctly in all circumstances:

Decompressing or compressing a point with an X coordinate of zero will result in an invalid unreduced output, where the X coordinate will be represented as the P-256 field prime and not as all zeros.
Shared secret or point-scalar multiplications that result in a point with X coordinate of zero will instead return the P-256 field prime.
Shared secret or point-scalar multiplications using a point with X coordinate of zero will fail and return an incorrect error, and an invalid unreduced value will be written to the output buffer. This arises because the conversion from projective to affine coordinates fails when the input has X coordinate zero.

Fixed in #20. These issues were assigned CVE-2022-23002, CVE-2022-23003, and CVE-2022-23004. For more information, see Western Digital security bulletin WDC-22013.


Fixed : Created footer in resources section

fixes #378
Added footer section in resources webpage .

@Maana-Ajmera Leave the margin at the top of the footer!


Add username to oscar's user forms

Hi guys, i'm working in two projects with Oscar and i'm testing all features.
Creating a partner i have to link users but creating they, the create user form, as register form, put email and password fields but username.

I went to Partners admin module and i found the partner's linked users and i found this horrible thing.

So, i want see the user list and i found this horrible thing: Oscar's register form create a random username for the new users.

I tried to edit the account profile and i couldn't found the username field.

I verified the register name thinking that i could forgot put the username when i register that user, but, in register form username doesn't exist.
I created two users with username and i could create they, so, i think that Oscar doesn't restrict the user back end.
So, Have you thinking about add username to forms?

Partner management in the dashboard allows to link existing user or to create new one and link it. Allows to search by email and does not use username field.

Yes yes, i know this, but creating a new user we can not create a user name for it.
I think that will be better add this field or, default, backend give a username joining the full name or split the email and give the @ preview part.
For example:
First Name: Pepito
Last Name: Perez Perenzejano
Usersanem: PepitoPerez
Or:
email<EMAIL_ADDRESS>username: pepitoperez22

Creating my custom user model based your models i can see that username field isn't in user model, at least in my case, but in django-oscar model is, at least i can see in the admin site.
Why?

Oscar use email and password fields for auth, username being randomly generated, if it's used in the user model. If you need to generate username in other way or allow user to fill it in - you can override user forms and/or user model.
Thanks.

Which form or user model?

The point it, if you need a readable username for user model repr, you can override oscar.apps.customer.forms.EmailUserCreationForm locally and implement your own username generation https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/customer/forms.py#L181, as a concatenation of first and last name or etc.
Otherwise, there's no reason to add this field to the forms, since email field used as a username field.
Thanks.

Adding a username is easier than you expect. You need to override the customer app of Django oscar by following command:
python manage.py oscar_fork_app customer project_name
After that create a form.py file in the newly customer module located in project_name folder. And append the following code onto the file:
`from oscar.apps.customer.forms import EmailUserCreationForm as CoreEmailUserCreationForm
from django import forms
from django.utils.translation import gettext_lazy as _
from oscar.core.compat import (
existing_user_fields, get_user_model)
User = get_user_model()
class EmailUserCreationForm(CoreEmailUserCreationForm):
class Meta:
model = User
fields = ('email', 'first_name', 'last_name', 'username',)
def save(self, commit=True):
    user = super().save(commit=False)
    user.set_password(self.cleaned_data['password1'])

    if 'username' in [f.name for f in User._meta.fields]:
        user.username = self.cleaned_data['username']

    if commit:
        user.save()
    return user`

Note: don't forgot to include your customer app in your INSTALLED_APPS in settings.py like this
'project_name.customer.apps.CustomerConfig'

Hi, thankyou for the snippet but, it does not help in using 'username' for authentication ...
it looks like oscar has 'hardcoded' the email in the customer app and I suppose to be enforced to rewrite the whole app
Do you know a way to override the email with a different username (django AUTH_USER_MODEL = 'customapp.MyUser')?
Thankyou for any help


Add error for co category set for product

I want to merge this change because it adds missing error when updating product channel listing with no category set for product

PR intended to be tested with API branch:
Screenshots

Pull Request Checklist

[ ] This code contains UI changes
[ ] All visible strings are translated with proper context including data-formatting
[ ] Attributes [data-test-id] are added for new elements
[ ] Changes are mentioned in the changelog
[ ] The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://qa.staging.saleor.cloud/graphql/

Task linked: SALEOR-1995 Product Create view don't display PRODUCT_WITHOUT_CATEGORY error


Illegal state exception when using @TestInstance(TestInstance.Lifecycle.PER_CLASS)

When using @TestInstance(TestInstance.Lifecycle.PER_CLASS) the lifecycle phase AFTER_ALL will be entered before the BEFORE_ALL phase.
As a consequence, all test execution will fail, since the environments have not yet been prepared, in this case,getProviders() will fail with the following exception
org.junit.platform.commons.util.PreconditionViolationException: Illegal state: environment providers have not yet been prepared during phase AFTER_ALL

I have to reopen. During before(), Junit will prepare the test instance, so the existing fix does not work.


Adding animated progress bar for tf.keras

Hello,
Currently the tf.keras Progbar and ProgbarLogger classes provide a progress bar for monitoring training but these only measure the progress of the current epoch and are also don't have the capability for fully animated progress bars for notebooks like Google Colab or Jupyter Notebooks/Labs.
I started developing a tf.keras callback to do this as part of a Google Code-In task. Here is the link to the Google Colab: Colab. The callback has one progress bar tracking which epoch the training is on, as well as child progress bars for each epoch.  I am definitely willing to help contribute and possibly maintain it in the future. I am submitting this to tensorflow/addons because I see this as a nice feature which could make logs interactive and interesting. Is this the right place to bring up this feature, or should I just bring up this feature request in tensorflow/tensorflow?
Thanks.

Hi,
I have implmented a TQDM progress bar here on Addons not too long ago, would this works for your use case? Also if you want to extend the tqdm progress bar here on Addons feel free to send PR!
Tutorial:
https://github.com/tensorflow/addons/blob/master/docs/tutorials/tqdm_progress_bar.ipynb

Closing, but feel free to ask to re-open if TQDM progress bar does not meet your needs. It will be included in the upcoming 0.7 release


Confused about the annotation.

@yhenon
Hi, thanks for sharing such nice code!
I am confused about the annotation in https://github.com/yhenon/pytorch-retinanet/blob/1135e18b835481b18fd0d4e1613c87afc2bc7d46/model.py#L108. I think it should be  "B x C x H x W" instead of "B x C x W x H", am I right?

yep, also confused this.
the whole project seems to confuse height and width..


Selecting 'Create / Edit Podfile' crashes.

I thought I would use this to edit my Podfile and it crashes every time.
I don't see where to configure anything.
 Seems this isn't getting fixed anytime soon.

I haven't had maintenance time to dedicate to this project in a while. I'm not sure when things will clear up.


index: add request logger support

when given an opts.logger function, we'll invoke it after each request will
all available metadata (method, request duration, request params, etc.).
i'll be using this to add some profiling/metrics around slow rpc calls in production
so it's much easier to identify pain-points.
an example implementation could look like:
const client = new Client('http://some-service.localhost/rpc', { logger: rpcLogger })
yield client.call('Some.Method', { foo: 'bar' })

// ...
const logger = bunyan({ ... })
function rpcLogger ({ method, params, duration }) {
  // rpc call took more than 500ms
  if (duration > 500) {
    logger.warn('slow rpc call', { method, params, duration })
  }
}

/cc @dominicbarnes you seem to be maintaining this lib ;)

lgtm!


msgStream: Active session checking

Idle msgStream connections can now request a check at a certain
interval. This is only used for session validation at the moment,
but it solves the following issues:

Websocket
Long polling timers bigger than the session ttl

Fixes #184

Fixed code according to comments.

So, the sessions gets extended now periodically regardless of transport, but also on http longpolling heartbeat, which is a bit double. This may not be a huge deal, but still...
It also touches sessions after pulling their full object out of the database (even though that is not required, all we need to do is touch). Given that a lot of sessions will be dealt with in parallel and that in a distributed cluster, a lot of these intervals will fire at the same time (because they started at the same time), the load on the DB could be quite significant. Would love to hear your thoughts on that.

As per description, it is by design: now, you can have a session TTL that is shorter than the long polling timeout (which also break right now).
As for touching the session... we could do a simple touch indeed.

Addendum: I think we need to fetch the data to confirm that the session wasn't invalidated in the meantime.

Any thoughts on the topic of the concentrated load that this will cause?

Right, wasn't thinking about that, sorry.
That's a problem indeed. We could make it into a per-connection basis, if we are OK with having more timers?

Why not move the logic to the client SDK instead? For longpolling, no extra load is needed (maybe the interval can be smarter, but I personally think it's fine like this... I don't expect sessions shorter than 30 sec). For WebSockets, the clients could pro-actively send a heartbeat to the server. That way all touch-operations would not be synced and load would be well distributed.

This would not solve the "session shorter than long-polling timeout" issue (I actually ran into this).

maybe the interval can be smarter, but I personally think it's fine like this... I don't expect sessions shorter than 30 sec

A session expiration of 30 sec would still break with the default long polling timeout (60 sec IIRC). At any rate, I had a case where I was testing session expiration by setting session timeout to 5 seconds, so while these cases aren't likely in production, they are still somewhat likely as part of the development lifecycle (at least that's how I ended up running into the issue).
In regards to having the client send keepalive, my concern is with adding yet another requirement for client SDK developers to be aware of. It's a possible fix, but I'd prefer finding a way to solve this without the clients having to necessarily do anything about it, ideally.

I can appreciate the goal of trying to solve this server-side and keep the clients as dumb as we can get away with. But from a technical perspective, I do think solving this client-side will end up creating a superior user experience while keeping server load in check. Maybe there are some things I'm missing of course, but right now... I'm out of ideas beyond what I suggested.

We'd need to add some meta-messages to the msgStream protocol - that is, messages which have the sole purpose of pinging the session while returning nothing.
We wouldn't be able to do this on long-polling, which means we'd need to compute the long polling timeout to be smaller than the session timeout (and potentially add some log entry to warn the developer of the adjustment made). On WebSocket, we would need to implement this through ping or metadata messages.
The two weaknesses I see are:

Each transport will have a different logic and will need to implement keepalive, which means
On the client, each client implementation will be different per transport

Arguably, this would be a more complete - or correct - implementation, since it would also take into account connectivity. But it would be way more involved.
Right now, the implementation proposed in this PR basically would work for any transport implementation we might choose to add in the future while making it relatively easy to augment to do what you suggest in the future should it be desirable at some point.

I agree those are the changes that would need to happen, and they're not ideal at all from a maintenance point of view.
But my concern regarding load stands... You made one suggestion: a single timer per connection. I think that would be manageable and maintainable. Let's go with that then 👍


Fix typo in mysql migration file for org secrets

As mentioned in Gitter...

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


@1.14.1 - update examples, deps

Coverage: 99.244%. Remained the same when pulling dbc52de0961d7fdc592ace8e151def666cf47825 on rc-1.14.1 into dc51cfc94214f5c2b184922dcb073c6fc68fe04a on master.

Coverage: 99.244%. Remained the same when pulling dbc52de0961d7fdc592ace8e151def666cf47825 on rc-1.14.1 into dc51cfc94214f5c2b184922dcb073c6fc68fe04a on master.

Coverage: 99.244%. Remained the same when pulling dbc52de0961d7fdc592ace8e151def666cf47825 on rc-1.14.1 into dc51cfc94214f5c2b184922dcb073c6fc68fe04a on master.


How to sell max amount at market price

Is there any way to sell, at market price, 100% of my asset balance using Java API?
Web interface has "100%" button that give me max amount i can sell. I'm looking for the same feature in the Java API.
Some examples:
I have 1383.84 ADA/ETH -> I can sell 1383
I have 0.7633 BNB/ETH -> I can sell 0.76
I have 9.99 AION/ETH -> I can sell 9.99
I have 235.0694 XRP/USDT -> I can sell 235.06
I would something like assetBalance.getMaxAmountICanSell().
Is there any way to do this?

you have to do it yourself, here some example :

 ExchangeInfo exchangeInfo = client.getExchangeInfo();
 SymbolInfo symbolInfo = exchangeInfo.getSymbolInfo( getSymbol() );
 SymbolFilter lotFilter = symbolInfo.getSymbolFilter(FilterType.LOT_SIZE);
 stepSize = new BigDecimal(lotFilter.getStepSize()).stripTrailingZeros().scale();
 String freeAsset = client.getAccount().getAssetBalance(getAssetSymbol().toUpperCase()).getFree();
 freeAsset = String.valueOf( roundFloor(Double.parseDouble( freeAsset ), getStepSize() ) );
 client.newOrder(marketSell( getSymbol(), freeAsset  ) );

freeAsset must be rounded to "floor"

roundFloor method:
public double roundFloor(double value, int places) {
        if (places < 0)
            throw new IllegalArgumentException();

        BigDecimal bd = new BigDecimal(value);
        bd = bd.setScale(places, RoundingMode.FLOOR);
        return bd.doubleValue();
    }

Indeed, please follow the example of @hadiAM (and double-check it before using).

Is there any way to sell, at market price, 100% of my asset balance using Java API?
Web interface has "100%" button that give me max amount i can sell. I'm looking for the same feature in the Java API.
Some examples:
I have 1383.84 ADA/ETH -> I can sell 1383 I have 0.7633 BNB/ETH -> I can sell 0.76 I have 9.99 AION/ETH -> I can sell 9.99 I have 235.0694 XRP/USDT -> I can sell 235.06
I would something like assetBalance.getMaxAmountICanSell().
Is there any way to do this?

def roundStep(qty, stepSize): # Function round
  qty = decimal.Decimal(str(qty))
  return float(qty - qty % decimal.Decimal(str(stepSize)))

client = binance.Client(api_key='', api_secret='') # Client

symb_info = client.get_symbol_info('BTCEUR')["filters"] # Decimal Info
btc_balance = client.get_asset_balance(asset='BTC')['free'] # Balance
qty = roundStep(btc_balance, symb_info[2]["stepSize"]) # Round by decimal Info
client.order_market_sell(symbol='BTCEUR'l, quantity=qty)


Support wait for dependent resources

Example: we use Terraform to create a EBS-Instance and three ElPs and connect them.
cloud-nuke now runs into an issue: the EIPs can not be deleted while the EBS instance still exists, because EIPs can not be deleted while they are assigned.
Even running cloud-nuke twice in a row (we are trying to use it to automatically reset an account regularly) does not solve this problem, because the EBS-instance requires time to shut down - more time than cloud-nuke running twice.
Would cloud-nuke considering such dependencies be something that could be added in the future?
Since EBS-removal is already supported by cloud-nuke, how did you deal with such cases?

EBS instance? Do you mean an EC2 Instance? An EBS Volume? An EC2 Instance with EBS Volumes?

I mean an EBS application or environment. Theoretically the same can apply to EC2, but EIPs and S3 buckets are directly created from EBS, so that the problem appears more in the context of EBS.
It's more a general problem; it's also why Terraform waits while resources are destroyed, for example.

Sorry for the long delay. Got pulled away to focus on other things.

I mean an EBS application or environment.

Sorry, still not following. By EBS, do you mean Elastic Beanstalk? Or Elastic Block Store?

@naumannt do you still need any help here?

I meant Elastic Beanstalk Environment, yes.
This was a while ago, so I don't know if there was any changes regarding dependency resolution, and I didn't use Cloudnuke i quite a while.

Hey @naumannt, we are trying to be aware of the dependency between resources during the nuking operations. There are some resources that has logic to wait for certain resources to be deleted.

Since this issue has not been active for almost 2 years, will close this issue for now.


helm install error

Expected Behavior
umh should run successfully
Current Behavior
getting error
Relevant log output
`Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "united-manufacturing-hub-grafana" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "united-manufacturing-hub-grafana" namespace: "united-manufacturing-hub" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "united-manufacturing-hub-vernemq" namespace: "united-manufacturing-hub" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first]
                                 `

Steps to Reproduce
helm install --values https://umh.app/development.yaml united-manufacturing-hub ./deployment/united-manufacturing-hub/ -n united-manufacturing-hub
Context (Environment)
Windows11
Possible Solution
No response
Version
v0.9.x
Anything else?
No response

Hi,
can you tell me what your installation target is (minikube, k3os,...) ?
Regards
Ferdinand

its minikube on Windows11

It's minikube.

Hi,
can you tell me what your installation target is (minikube, k3os,...) ?
Regards
Ferdinand

Minikube

Hi,
I already replied to you on Discord as well. I think our installation guide https://learn.umh.app/guides/umh/installation/tutorial/local-minikube-installation/ is not correct.
Please try the VM guide instead: https://learn.umh.app/guides/umh/installation/tutorial/installation-vm/

If you want minikube, you can use this tutorial in the meantime: https://united-manufacturing-hub.notion.site/Local-minikube-installation-9fec99d665794ef3aa94f0dd5bf23d49
This will work with minikube v1.26.1 on Microsoft Windows 11 Pro 10.0.22000 Build 22000

I will try it.

If you want minikube, you can use this tutorial in the meantime: https://united-manufacturing-hub.notion.site/Local-minikube-installation-9fec99d665794ef3aa94f0dd5bf23d49
This will work with minikube v1.26.1 on Microsoft Windows 11 Pro 10.0.22000 Build 22000

I tried with steps mentioned in this link. I am getting same error.

Ill be back home in a couple hours.
Can you tell me which minikube, helm & kubectl version you are using ?

Ill be back home in a couple hours.
Can you tell me which minikube, helm & kubectl version you are using ?

minikube version: v1.27.1
helm version: v3.10.0
kubectl version: 1.25

Hi @akashtalole,
we are trying to reproduce the problem, but struggle to do so. The only way we can is by using an old Kubernetes version. Did you have minikube already installed previously? Because using choco I cannot get to your version, so it must mean you have been using it before and maybe installed it from another source. Try doing a minikube delete and then minikube start ... again, to reset the Kubernetes version.
You can also check the version using kubectl version --short. For me it says v1.24.3 for the server.

` minikube start ...

minikube v1.26.1 on Microsoft Windows 11 Enterprise 10.0.22000 Build 22000

minikube 1.27.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.27.1

To disable this notice, run: 'minikube config set WantUpdateNotification false'

Using the docker driver based on user configuration

Using Docker Desktop driver with root privileges

Starting control plane node minikube in cluster minikube

Pulling base image ...

Downloading Kubernetes v1.24.3 preload ...`

seems it now working fine
 helm install united-manufacturing-hub united-manufacturing-hub/united-manufacturing-hub -n united-manufacturing-hub W1018 13:25:11.837828   25372 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+ W1018 13:25:11.840567   25372 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1018 13:25:11.844818   25372 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1018 13:25:12.472505   25372 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+ W1018 13:25:12.477859   25372 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1018 13:25:12.477859   25372 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget NAME: united-manufacturing-hub LAST DEPLOYED: Tue Oct 18 13:25:07 2022 NAMESPACE: united-manufacturing-hub STATUS: deployed REVISION: 1 NOTES: TODO

Do you know what you changed that it worked?

Downgraded Kubernetes to v1.24.3

We were able to identify the cause. If you install minikube not using choco (as recommended in the tutorial), then you might get a newer version of Kubernetes resulting in above error.
The solution is to delete your current minikube cluster and install minikube v1.26.1, e.g., using the following command:
curl -LO https://storage.googleapis.com/minikube/releases/v1.26.1/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube

@Sphingobium

I installed minikube 1.26.1 using this command choco install minikube  --version=1.26.1


Right-hand rail image overlap

When an image lower on the page in the RHR replaces one higher on the page, the one above currently fades out above it. The lower image should probably appear to slide over the higher image.
E.g. https://next.wellcomecollection.org/articles/the-power-of-posture/

There is also another ticket about the fading effect. These rail images should always move down and when they bump up against the next one, they stack and both move. But they should never fade in or out, just move, stay visible and stack.

If someone takes on the rail images, we could just chat about them in general to make sure we get all the details out in same go. If that makes sense from dev POV...

If they stack, what happens if the previous image is longer than the current one? It would look weird sticking out below.

The previous image moves out of view and priority is given to the new image which has appeared

The new image which appears into view from below due to scrolling pushes the last image above it. Does that make sense? :)

It does, but that might be difficult to achieve... I'll have a think

Alternatively the past image would just stay in place, on the spot where it stopped because another image came along. The new image then picks up and follows the reader. Main thing is to avoid images overlapping of fading in/out.
Im trying to find an example of this on the Kinfolk site. They might have something similar

Relates to #574

This bug is so hip – it's only replicable in Opera, and even then, only if you have the dev tools open! Suggest we close it (as 1. it's ridiculously niche and 2. it won't be a thing once we've dealt with #574).


Image is hidden when pressing escape during hiding animation

Issue Type

[x] Bug report
[ ] Feature request
[ ] Question / support request
[ ] Other

Description
When you close the modal by clicking on it and then press escape while it's animating it will hide the modal and keep visibility: hidden; on the content. This issue can be easily recreated in the "Custom Modal Styles" story.
Tested in Chrome Version 106.0.5249.119

@SanderHeling This should now be resolved as of v5.1.2, and the example you linked to above should now be functioning properly.
Thanks for your bug-report contribution! You've been added to the all-contributors list in the README!


v4 release

closes #331

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Figure out a better way to arrange our builds in terms of beta/non-beta

Right now, I have to manually remove and add the -beta tag for Nugets. This isn't ideal seeing I am the only one with access. Figure out a way to do this better.

Implemented it now like this: https://montemagno.com/continuous-integration-delivery-for-net-libraries-with-vsts/
Still need to do the releasing to NuGet part, but that isn't the hardest :)

The multi targeting PR already builds the NuGet package, so the only missing step should be uploading it. Good work!

Azure DevOps looks good! What I would like to keep is the Semantic Versioning (increase first version number on major changes, second version number on API additions and third number on minor changes). The other Xamarin plugins always confused me if I can update without worries or not. What do you think?

Hm I think it went to 2.1.0.increment now right? And we had 2.1.increment? Makes sense...

Fixed version number. And uploading NuGets works. I think I need to rearrange a little bit. Right now each PR that is verified produces a new NuGet which might be a bit much. So I would like to have a CI build that verifies changes, and one build definition that only triggers when code is actually merged and only then produce a version that starts at MyGet and can then go to NuGet beta and then NuGet production.

From what I understood from James' blog article was that the build always goes to MyGet, and he can approve the builds to go to NuGet beta or NuGet release stage.


Tendermint version number missing

Brief Description
Tendermint version number is missing from :26657/status response, which is raised as an issue here. This blocks the signAndBroadcast function in @cosmjs/stargate from working properly. From the comment in the source code, I think cosmjs team is aware of the issue too.
Temp workaround for testing
Although it's not working yet, for testing purpose on Scaffold UI on this branch, I made local revisions in node_modules to workaround it.
In file tendermint-rpc/build/adaptorforversion.js, this revision was made:
function adaptorForVersion(version) {
    // if (version.startsWith("0.33.") || version.startsWith("0.34.") || hashes.v0_34.includes(version)) {
        return v0_33_1.v0_33;
    // }
    // else {
    //     throw new Error(`Unsupported tendermint version: ${version}`);
    // }
}

And in file tendermint-rpc/build/v0-33/responses.js, changing line 217 from version: encodings_1.assertNotEmpty(data.version) to version: encodings_1.assertNotEmpty('0.33') does the trick.
Note
This is by no means solution for the problem, but rough testing for tx creating. This issue can be closed when SDK and cosmjs team solves the issue.

We added this dirty hack, which became necessary when changing the backend from rc2 to rc3: https://github.com/cosmos/cosmjs/pull/536/commits/ae1f2e28a0da44e6a9f8c448465e26997c69d107

Thanks @webmaster128! I'll upgrade the package and give it a try later.

This is not yet released. Can create a release for you if it helps.

Published 0.24.0-alpha.8 now, which includes the workaround necessary to connect to rc3.

@webmaster128 it's working! Thanks for helping out!

@vince19972 my pleasure, enjoy

Pretty sure this is no longer relevant.


Not sure how i use the save editor

I downloaded the file, extracted into a new folder and i couldn't find an exe file also i tried to open the xaml files but they experienced an error.
Sorry if i missed something

That means you downloaded the source instead of the binaries.
These are the latest binaries at the moment:
https://github.com/algoRhythm99/TiTsEd/releases/download/v0.34.5/TiTsEd_v0.34.5.zip


Since we're doing that, we can go ahead and start removing all the cruft in the code that's connected with supporting both Python2 and Python3 in one codebase. This PR is the first (big) step in that process; there will likely be others.
This removes all uses of the rdkit.six and six modules from the RDKit code. The rdkit.six module is still there since it may be used in client code, but we can think about deprecating that in a future release.
I've run all the tests under both Windows and Linux before submitting this; hopefully the travis builds also go nicely. :-)
As a reminder, here's an annoucement of what's going to happen:
<EMAIL_ADDRESS>

The travis failures that are showing up here are due to some peculiar python version thing. I will investigate/fix this tomorrow


istio: handle unhealthy pods during upgrade

properly handle unhealthy pods during proxy reset procedure during upgrade
See: https://github.com/kyma-incubator/reconciler/issues/984

/retest

/retest

/retest

/retest

Tested it out on the k3d cluster.
All is good to go, after the initial review, there is added support for Jobs and CronJobs. Annotation logic works properly.


No throughput on Wowza Streaming Engine for Android app using libstreaming library

I have created a test Android app using this tutorial.
I have got everything to connect OK, and I can see my app in my localhost's Wowza Streaming Engine's > Incoming Streams > MyApp panel but, although the connection clearly exists, no video data is making it through. (This is confirmed with nothing showing in WSE's Test Player.)
When I test with the official GoCoder Android app, the video data is making it through fine. (Also confirmed with WSE's Test Player.)
Both Android apps are set up with the same config (my stream URL is rtsp://<IP_ADDRESS>:1935/live/MyApp, so it seems like there is an issue with the libstreaming library.
I am new to streaming so am not sure where to start troubleshooting and would be very appreciative of some help.
Thanks in advance,
James

I am having this issue as well.

No guarantees, but i think when I had this problem it was fixed by making sure mTransport in RTPSocket.java was TRANSPORT_UDP and mParameters.transport in RtspClient.java is set to TRANSPORT_UDP

Hey thanks for the reply @sbaar. I actually figured this out. Your solution is related to my solution as well. It turned out that I didn't have the UDP ports open on my AWS EC2 server.
Here is a screenshot from the Wowza Guide which tells all the Wowza Ports that should be open:

Anyways, I THINK the problem was that I didn't open the UDP ports... All I know is that the streaming issue fixed right after opening all these ports.
It's weird because when I was using an app with libstreaming and Wowza a couple months back, it worked without opening any ports.... I think maybe an update with Wowza required a couple new ports to be opened.
Thanks,
Parth Saxena

Thank you, Scott and Parth, for your very helpful responses.
I have got this issue sorted now. I didn't need to open any more ports. All I need to do was change this line...
mTmpParameters.transport = TRANSPORT_UDP;
...in RtspClient.java to...
mTmpParameters.transport = TRANSPORT_TCP;
...and now everything is working a treat. :-)
Cheers,
James
PS - You will find RtspClient.java in the net/majorkernelpanic/streaming/rtsp/ directory.

Oh that explains it. The ports I didn't have open were the UDP ports. That means that the android app was attempting to stream via UDP not TCP...
Thanks for your response.
Thanks,
Parth Saxena

Now I 'm working on live streaming video to wowza sever android app by using libstreaming library
By the way session is failed and show 'try again' alert.
So I have been debugged.
The wowza server return unkown error.
How Can I fix it?


gnu-efi: new package at version git

Description of package
development libraries for building efi applications
Installed manifest of package
(kiss manifest <pkg>)
/var/db/kiss/installed/gnu-efi/version
/var/db/kiss/installed/gnu-efi/sources
/var/db/kiss/installed/gnu-efi/manifest
/var/db/kiss/installed/gnu-efi/checksums
/var/db/kiss/installed/gnu-efi/build
/var/db/kiss/installed/gnu-efi/
/var/db/kiss/installed/
/var/db/kiss/
/var/db/
/var/
/usr/lib/libgnuefi.a
/usr/lib/libefi.a
/usr/lib/elf_x86_64_efi.lds
/usr/lib/crt0-efi-x86_64.o
/usr/lib/
/usr/include/efi/x86_64/pe.h
/usr/include/efi/x86_64/efisetjmp_arch.h
/usr/include/efi/x86_64/efilibplat.h
/usr/include/efi/x86_64/efibind.h
/usr/include/efi/x86_64/
/usr/include/efi/romload.h
/usr/include/efi/protocol/vgaclass.h
/usr/include/efi/protocol/piflash64.h
/usr/include/efi/protocol/legacyboot.h
/usr/include/efi/protocol/intload.h
/usr/include/efi/protocol/efivar.h
/usr/include/efi/protocol/efidbg.h
/usr/include/efi/protocol/eficonsplit.h
/usr/include/efi/protocol/adapterdebug.h
/usr/include/efi/protocol/
/usr/include/efi/pci22.h
/usr/include/efi/libsmbios.h
/usr/include/efi/efiui.h
/usr/include/efi/efiudp.h
/usr/include/efi/efitcp.h
/usr/include/efi/efistdarg.h
/usr/include/efi/efishellparm.h
/usr/include/efi/efishellintf.h
/usr/include/efi/efisetjmp.h
/usr/include/efi/efiser.h
/usr/include/efi/efirtlib.h
/usr/include/efi/efipxebc.h
/usr/include/efi/efiprot.h
/usr/include/efi/efipoint.h
/usr/include/efi/efipciio.h
/usr/include/efi/efipart.h
/usr/include/efi/efinet.h
/usr/include/efi/efilink.h
/usr/include/efi/efilib.h
/usr/include/efi/efiip.h
/usr/include/efi/efigpt.h
/usr/include/efi/efifs.h
/usr/include/efi/efierr.h
/usr/include/efi/efidevp.h
/usr/include/efi/efidef.h
/usr/include/efi/efidebug.h
/usr/include/efi/eficonex.h
/usr/include/efi/eficon.h
/usr/include/efi/eficompiler.h
/usr/include/efi/efiapi.h
/usr/include/efi/efi_pxe.h
/usr/include/efi/efi_nii.h
/usr/include/efi/efi.h
/usr/include/efi/
/usr/include/
/usr/

New package

[Y] Latest upstream version.
[Y] I agree to maintain this package.
[Y] I agree to notify @dylanaraps if I can no longer maintain this package.

Will anything in Community make use of this package? There's no use in adding libraries if nothing will use them.

Will anything in Community make use of this package? There's no use in adding libraries if nothing will use them.

not anything im planning on adding


Fix scrollbar for LLM Dropdown in Cody plugin

Fixes #5176
Add scrollbar to LLM Dropdown in Cody plugin for VS Code.

CSS Changes:

Add overflow-y: auto to the .editor class to ensure vertical scrolling.
Add scrollbar-color: var(--vscode-scrollbarSlider-background) var(--vscode-scrollbarSlider-activeBackground) to the .editor class to style the scrollbar.
Retain scrollbar-width: thin in the .editor class.

please test properly before merge

Thanks @nirzaf getting someone on our JetBrains team to take a look.

I'm unsure about this one. I have scrollbars (albeit on mac) and the screenshot in the upstream issue seems to show content that simply isn't overflowing—so doesn't need scrollbars.
@jdorfman , you mentioned JetBrains, what's the background on that? The upstream issue is a VSCode one...

@dominiccooney that was my bad, 🤦
I meant to ping the VS Code team. Sorry about that!

@taiyab is always showing the scrollbar on the llm selector, and these colors, what we want on this component?


Docs: how-to guide for Qiskit-Braket plugin

What is the expected behavior?
Create docs and example notebooks on how-to use Qiskit-Braket plugin.
References:

https://github.com/aws/amazon-braket-examples/tree/main/examples/pennylane

Closing as we implement it in #11 #21 #24 and release in https://github.com/qiskit-community/qiskit-braket-provider/releases/tag/v0.0.1


Error "Unexpected end of JSON input"  (from Obsidian Pandoc Reference List Plugin)

Debug log ID
8IRIJF2D-apse/6.7.190-7
What happened?
I am getting error messages from the consol in Obidian, both from Pandoc Reference List and from Enhancing Export.
plugin:obsidian-pandoc-reference-list:78 SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at eval (plugin:obsidian-pandoc-reference-list:78:11657)
    at Generator.next (<anonymous>)
    at n (plugin:obsidian-pandoc-reference-list:6:1288)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
index.html:1 Autofocus processing was blocked because a document already has a focused element.
plugin:obsidian-enhancing-export:28 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setMessage')
    at jn (plugin:obsidian-enhancing-export:28:1708)
    at HTMLButtonElement.be [as $$click] (plugin:obsidian-enhancing-export:28:9390)
    at HTMLDocument.kc (plugin:obsidian-enhancing-export:4:21272)

As a result of these errors, I can't export to pandoc at the moment.
Based on internet search for this error, I am assuming it is related to Better Bibtex. Forgive me if it is unrelated. I generated a bug report as instructed and sent it to you.

Updating the Pandoc Reference List plugin fixed the first error. Still have another error with Enhancing Export, but I don't think that is citation related.


net: ipv6: Extension header length failure not properly checked

The ipv6_handle_ext_hdr_options() can return negative value
but we stored it into unsigned variable and then checked < 0.
Coverity-CID: 190995
Fixes #13830
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

Codecov Report

Merging #13930 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #13930      +/-   ##
==========================================
+ Coverage   52.25%   52.29%   +0.03%
==========================================
  Files         307      307
  Lines       45429    45431       +2
  Branches    10506    10507       +1
==========================================
+ Hits        23739    23756      +17
+ Misses      16899    16888      -11
+ Partials     4791     4787       -4

Impacted Files
Coverage Δ

subsys/net/ip/ipv6.c
58.22% <ø> (-0.5%)
:arrow_down:

arch/posix/core/posix_core.c
91.91% <0%> (+1.01%)
:arrow_up:

subsys/testsuite/ztest/src/ztest.c
72.72% <0%> (+7.43%)
:arrow_up:

subsys/testsuite/ztest/include/ztest_assert.h
77.77% <0%> (+38.88%)
:arrow_up:

Continue to review full report at Codecov.

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


Barcode scanner working fine Phonegap Developer but after build not open camera.

I use phonegap-plugin-barcodescanner   8.0.0. and ı have developed apps on phonegap-developer successfully. But when i after build it not open camera therefore i cant read barcode. I builded on adobe cloud system. What is my problem ? Thank you.

I can't reproduce locally, so it's probably a phonegap build service bug ( or as you call it, adobe cloud system)


added has method

Example use: localStorageService.has('library');

Hello,
I know this issue was closed, but does the has method was added to the service? Because it is very useful for me. Thanks.


Upgrade to Agrest 3.10, 4.6

A benign, but still annoying issue in Agrest was fixed per https://github.com/agrestio/agrest/issues/487 . Let's upgrade Agrest to versions 3.10 and 4.6

Fixed on master and 2.x


user@localhost not considered valid

A dot seems expected in the hostname for it to be considered valid. Am I mistaking or is it a bug?

ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
Rails 5.1.4

irb(main):003:0> EmailAddress::VERSION
=> "0.1.6"
irb(main):005:0> EmailAddress.valid?("user@localhost", dns_lookup: :off, host_validation: :syntax)
=> false

Thanks!
You are correct, it was still checking for a dot, and they are not always required. I've fixed that.
I see that both dns_lookup and host_validation are valid, though only dns_lookup is checked in the code. That should change to host_validation for consistent naming.


Confusing

I was following the documentation. Created private endpoints, and then created Private Link services. I encountered a problem where I'm unable to map my EXISTING private endpoints to the newly created Private Link service. Can we have some documentation on how to do that? is that even possible? otherwise I think the order of the documentation is misleading.

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

ID: fb4b8145-27ae-8817-6d85-969aa85e601d
Version Independent ID: 00f897cd-5c20-cb3b-9c17-5f75eddd1715
Content: What is Azure Private Link service?
Content Source: articles/private-link/private-link-service-overview.md
Service: private-link
GitHub Login: @sumeetmittal
Microsoft Alias: sumi

@ruffyleaf, Thanks for reaching out. We will investigate and update this thread.

Its not possible to map existing Private Endpoints to Private Link Service. As part of Private Endpoint creation, you are required to provide the destination resource (Azure PaaS support Private Link or Private Link Service) to connect to. Without above info, PE creation will not proceed. Also once you create the private endpoint, you can't change the destination on it. You have to create a new PE for new connection. Hope that answers your question. Thanks

@sumeetmittal thanks for the super fast reply! So my understanding now - once we create a Private Endpoint that is associated with a PaaS Azure resource (like Azure SQL), there is no need to create an additional Private Link Service to the associated resource as it has been already created in the background.

You are correct. Azure PaaS Services and Private Link Service are independent concepts/entities. These are separate privately linkable destinations. Azure PaaS services that support Private Link are privately linkable by default. You will need a private link service when you want to create your own service (destination) behind a standard load balancer.  Hope that helps


Out of range error in Slot class changeDisplay method

There is a wrong statement In the 203rd row at Slot class ( changeDisplay method ), that cause an out of range error: if(_dislayDataList && _displayIndex <= _dislayDataList.length)

The bug has been fixed :)


Add script to generate test certificates

Add 'certSetup.sh' script that generates
CA, server and client key pairs signed by
the CA, an empty CRL and associated files.
Update test security files to be files
generated by the script.

@uschi2000 @markelliot
This doesn't change any functional code, but adds a script that can be used to generate all of the security material required for tests (CA, service key pairs signed by CA, P12 files, JKS files, etc.). Should be useful if there's a need to change any of the material at a later time.

tested locally, works fine. thanks nick!


Sync to live

Docs Build status updates of commit 87d0ac8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.md
:white_check_mark:Succeeded
View

docs/_breadcrumb/toc.yml
:white_check_mark:Succeeded

docs/api/package-base-address-resource.md
:white_check_mark:Succeeded
View

docs/api/package-details-template-resource.md
:white_check_mark:Succeeded
View

docs/api/registration-base-url-resource.md
:white_check_mark:Succeeded
View

docs/api/search-autocomplete-service-resource.md
:white_check_mark:Succeeded
View

docs/api/search-query-service-resource.md
:white_check_mark:Succeeded
View

docs/archive/project-json-archive.md
:white_check_mark:Succeeded
View

docs/archive/project-json-impact.md
:white_check_mark:Succeeded
View

docs/archive/project-json.md
:white_check_mark:Succeeded
View

docs/concepts/Dependency-Resolution.md
:white_check_mark:Succeeded
View

docs/concepts/Package-Versioning.md
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-1.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-2.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-3.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-4.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-5.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-6.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-7.png
:white_check_mark:Succeeded
View

docs/concepts/media/projectJson-dependency-8.png
:white_check_mark:Succeeded
View

docs/concepts/package-installation-process.md
:white_check_mark:Succeeded
View

docs/consume-packages/Overview-and-Workflow.md
:white_check_mark:Succeeded
View

docs/consume-packages/Package-References-in-Project-Files.md
:white_check_mark:Succeeded
View

docs/consume-packages/Package-Restore.md
:white_check_mark:Succeeded
View

docs/consume-packages/Reinstalling-and-Updating-Packages.md
:white_check_mark:Succeeded
View

docs/consume-packages/install-use-packages-nuget-cli.md
:white_check_mark:Succeeded
View

docs/consume-packages/migrate-packages-config-to-package-reference.md
:white_check_mark:Succeeded
View

docs/create-packages/Creating-Localized-Packages.md
:white_check_mark:Succeeded
View

docs/create-packages/Creating-a-Package.md
:white_check_mark:Succeeded
View

docs/create-packages/Overview-and-Workflow.md
:white_check_mark:Succeeded
View

docs/create-packages/Prerelease-Packages.md
:white_check_mark:Succeeded
View

docs/create-packages/creating-a-package-dotnet-cli.md
:white_check_mark:Succeeded
View

docs/create-packages/creating-a-package-msbuild.md
:white_check_mark:Succeeded
View

docs/create-packages/includes/choose-package-id.md
:white_check_mark:Succeeded
View

docs/guides/Create-NET-Standard-Packages-VS2015.md
:white_check_mark:Succeeded
View

docs/guides/Create-UWP-Packages.md
:white_check_mark:Succeeded
View

docs/guides/Native-Packages.md
:white_check_mark:Succeeded
View

docs/guides/analyzers-conventions.md
:white_check_mark:Succeeded
View

docs/guides/create-packages-for-xamarin.md
:white_check_mark:Succeeded
View

docs/index.md
:white_check_mark:Succeeded
View

docs/quickstart/create-and-publish-a-package-using-the-dotnet-cli.md
:white_check_mark:Succeeded
View

docs/quickstart/create-and-publish-a-package-using-visual-studio-net-framework.md
:white_check_mark:Succeeded
View

docs/quickstart/create-and-publish-a-package-using-visual-studio.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU1101.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU1103.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU1107.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU5101.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU5120.md
:white_check_mark:Succeeded
View

docs/reference/errors-and-warnings/NU5121.md
:white_check_mark:Succeeded
View

This comment lists only the first 50 files in the pull request.
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add Android SDK/NDK

Tool information

Tool name: Android SDK and NDK
Add or update? Add
Desired version: Android SDK 29.0.1, NDK 21.0.6113669
Approximate size:
If this is an add request:

Brief description of tool: The full SDK/NDK combination is required to build and test (via the Android Emulator) for Android.
URL for tool's homepage:

Area for Triage:
Android
Question, Bug, or Feature?:
Feature
Virtual environments affected

[ ] macOS 10.15
[ ] Ubuntu 16.04 LTS
[ ] Ubuntu 18.04 LTS
[ ] Windows Server 2016 R2
[X ] Windows Server 2019

Can this tool be installed during the build?
I have no idea; I'm now looking into building a Docker image.
Are you willing to submit a PR?
Possibly, if you can suggest a starting point.

I want to have the desired version: Android SDK 29.0.1, NDK 21.0.6113669 too
But I don't know if this it the solution https://github.com/actions/virtual-environments/pull/169 ?
Does some one knows it ?

I an also having this issue.

You can arrange to download the SDK and NDK versions you want. You can download sdkmanager from the source of your choice, and then use it to download the components (such as SDK and NDK) that you need. Afaik, you will not be able to run the Android emulator in a GitHub runner VM, but you certainly can gradle-build both Java and C++ into APK or AAR, as you prefer, and you can run Java-only unit-tests (what Android documentation calls a "unit test" as opposed to an "instrumented test") in the VM.
If you want a simple solution, I like Chocolatey.
If you need instrumented tests, Google does offer testing in their Firebase Test product (and they offer a free subscription for a limited number of tests per day). It's fairly straightforward to set it up and run tests, at least when I tried it on my code.
Hope this helps. I'm sorry to say that the project I've been using this on is not yet public, so I don't have examples to share.

Oh, thanks. I will test and let you know.

@NotMoni @larvacea @hannesa2 Hello,
Let me provide you steps to install desired versions of Android SDK/NDK in runtime:
"$ANDROID_HOME/tools/bin/sdkmanager.bat" "build-tools;29.0.1"
"$ANDROID_HOME/tools/bin/sdkmanager.bat" --install "ndk;21.0.6113669"

In the meantime, I will prepare a PR to add these versions to Windows images.

Alright

@larvacea we have added Android SDK 29.0.1 and latest NDK to Windows image and it will be rolled out next week.
In case of any questions, please let us know.

this action seems to solve it for me.

name: Android CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Unit tests
      run: bash ./gradlew test --stacktrace

I'm going to close the issue since the initial packages were successfully added to the agents.
Let us know in case of any questions.

Alright.

@NotMoni
I can't confirm this is working
jobs:
  build:

    runs-on: ubuntu-latest

What I tested to see if NDK is included

runs-on: ubuntu-latest 👎
runs-on: ubuntu-20.04 👎
runs-on: macOS-latest ✅


migrate: wagmi v1, viem, daisyUI v3

Description :
Back merged base-template-challenge using git merge base-template-challenge --squash.
Most of the conflicts were resolved automatically. There we some minor merge conflicts resolved them also regarding yarn.lock conflicts doing yarn install  automatically fixes conflicts in yarn.lock 🙌
Tested and works fine but would love if someone could also test once if something is not break🙌

In ipfsUpload.tsx case, chatGPT suggests me to move const DynamicReactJson = dynamic(import("react-json-view"), { ssr: false }); outside from const IpfsUpload:, it seems to do the job but I'm not sure if it would have some unexpected side-effects.

Tysm  !!! Lol that was my rookie mistake, So the problem was since we had declared const DynamicReactJson inside of component, whenever you click "Upload to IPFS" , loading and  some other states updates and react re-runs the component again with updated states, now since we had declared const DynamicReactJson inside component it was also getting executed. Lol I wonder where my mind was while declaring it inside the component

Happens only after a yarn install + yarn chain + yarn deploy + yarn start combo. It fires the #X amount of errors (equal to the number of NFTs minted in my previous deploy) so I feel it has something to do with local cache.

Yeah I think its wagmi cache issue, I have just pushed a minor tweak at 4f50a81 could you please check 🙌

Yeah I think its wagmi cache issue, I have just pushed a minor tweak at 4f50a81 could you please check 🙌

Now is working great! GJ!! 🔥

updated burner wallets info

Counter updated, but nft with previous index metadata isn't minted. It's very minor here, since it's written before that the user should grab ETH from the faucet.

Yeah, actually SE-1 challenge-0 had same thing...But yup I agree we should rely on index from contract just pushed a tweak 6d27e02 , lol it shows lots changes to contract due to code formatting but what I did was :
- Counters.Counter private tokenIdCounter;
+ Counters.Counter public tokenIdCounter;

And used that variable to track the state on frontend 🙌

works great! merging this


Fixed #34994 -- Fixed checkbox layout on narrow screen widths.

https://code.djangoproject.com/ticket/34994
Before

After

Found an issue with RTL:

Fixed.


bazel: create simple tests for all builtin languages

Bazel 0.21 clears the PATH to /usr/bin:/bin, which means all built-in binaries aren’t found anymore when trying to call them from PATH on nixos (they expect it to work on every distribution). This means there’s a bit of patching to do.
https://github.com/NixOS/nixpkgs/pull/53988 already fixed the path for python, but these languages are still missing:

Java
golang
C++

We need to create analogous tests for all of them to catch errors in the distribution.

We have tests for everything but golang now (and then some). If somebody stumbles on a golang problem, it should be simple enough to add a test for that. So far nobody has complained though.


alert: correct mds high cpu usage patch command

currently if there is a horizontal scale of mds
the patch command was wrong
Corrected it using this PR

/assign @agarwal-mudit @manishym

cc @jmolmo

cc @jmolmo

Thanks for including me in the review @parth-gr
I am focused now completely in the Ceph project, and disconnected from OCS since several moths ago
AFAIK, I think all the monitoring documentation about OCS in Openshift is stored in runbooks, for example:
https://github.com/openshift/runbooks/blob/master/alerts/openshift-container-storage-operator/CephMdsCacheUsageHigh.md
I do not know if now you have changed the location for OCS alerts. I include @aruniiird and @weirdwiz to confirm if the modification should/not should to be done also/only in runbooks.

@agarwal-mudit we need to get this merge


tf2.0.0 using  tf.saved_model.save save model,  java SavedModelBundle load can not find ouput opt

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): centos7
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0
Python version: 3.6

Describe the current behavior
python code
X = np.array([[0,0], [0,1], [1,0], [1,1]], 'float32')
Y = np.array([[0], [1], [1], [0]], 'int64')

input_x = tf.keras.Input(shape=(2), name="text")
dense1 = tf.keras.layers.Dense(64, activation='relu', name="ds1")
dense2 = tf.keras.layers.Dense(2, name="label")

x = dense1(input_x)
x = dense2(x)
pred = tf.reduce_mean(x, 1, name="prediction")

model = tf.keras.Model(inputs=input_x, outputs=pred, name= "test")

model.compile(loss='mean_squared_error', optimizer='adam', metrics=['binary_accuracy'])
model.fit(X, Y, batch_size=1, epochs=10, verbose=0)

print('inputs: ', [input.op.name for input in model.inputs])
print('outputs: ', [output.op.name for output in model.outputs])

tf.saved_model.save(model, "./model_00")

[java]
String modelpath="./model_00"
SavedModelBundle bundle = SavedModelBundle.load(modelpath,"serve");
Graph graph = bundle.graph();
        Iterator<Operation> iter = graph.operations();
        while (iter.hasNext()) {
            Operation opt = iter.next();
            System.out.println(opt.name());
        }

can not find  output opt ??

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
Thanks!


[BUG] Getting exception while indexing document with user having role with document level security enabled

What is the bug?
A clear and concise description of the bug.
I have created a user which is mapped with role having document level security enabled.
If I try to index the document through Bulkrequest using this user I get following exception:
 [ElasticsearchException[Elasticsearch exception [type=security_exception, reason=_opendistro_security_dls_query does not match (SG 900D)]]]

In OpenSearch logs, following is the exception logged.
resolved: Resolved [aliases=[], allIndices=[test_index], types=[*], originalRequested=[test_index], remoteIndices=[]]
mode: ADAPTIVE
[2022-06-19T05:44:05,351][DEBUG][o.o.s.c.DlsQueryParser   ] [node-1] containsTermLookupQuery() returns false
queries: [{"term": { "pminstanceid.keyword": "instance1"}}]
[2022-06-19T05:44:05,352][DEBUG][o.o.s.c.DlsFlsValveImpl  ] [node-1] Doing lucene-level DLS because the query does not contain a TLQ
[2022-06-19T05:44:05,352][DEBUG][o.o.s.f.SecurityFilter   ] [node-1] Failed to apply filter. Task id: 224 (requests[1], index[test_index][0]). Action: indices:data/write/bulk[s]
org.opensearch.OpenSearchSecurityException: _opendistro_security_dls_query does not match (SG 900D)
	at org.opensearch.security.configuration.DlsFlsValveImpl.setDlsHeaders(DlsFlsValveImpl.java:390) ~[opensearch-security-<IP_ADDRESS>.jar:<IP_ADDRESS>]
	at org.opensearch.security.configuration.DlsFlsValveImpl.invoke(DlsFlsValveImpl.java:157) ~[opensearch-security-<IP_ADDRESS>.jar:<IP_ADDRESS>]
	at org.opensearch.security.filter.SecurityFilter.apply0(SecurityFilter.java:320) [opensearch-security-<IP_ADDRESS>.jar:<IP_ADDRESS>]
	at org.opensearch.security.filter.SecurityFilter.apply(SecurityFilter.java:157) [opensearch-security-<IP_ADDRESS>.jar:<IP_ADDRESS>]
	at org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:202) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.action.support.TransportAction.execute(TransportAction.java:174) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.action.support.TransportAction.execute(TransportAction.java:102) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.action.bulk.TransportBulkAction$BulkOperation.doRun(TransportBulkAction.java:632) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.action.bulk.TransportBulkAction.executeBulk(TransportBulkAction.java:774) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.action.bulk.TransportBulkAction$1$1.doRun(TransportBulkAction.java:321) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:798) [opensearch-2.0.1.jar:2.0.1]
	at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52) [opensearch-2.0.1.jar:2.0.1]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]

After looking into the code, it seems DlsFlsValveImpl is trying to read the dls query related header from the request.
------Code snipper from DlsFlsValveImpl -----
if (threadContext.getHeader(ConfigConstants.OPENDISTRO_SECURITY_DLS_QUERY_HEADER) != null) {
                    Object deserializedDlsQueries = Base64Helper.deserializeObject(threadContext.getHeader(ConfigConstants.OPENDISTRO_SECURITY_DLS_QUERY_HEADER));
                    if (!dlsQueries.equals(deserializedDlsQueries)) {
                        throw new OpenSearchSecurityException(ConfigConstants.OPENDISTRO_SECURITY_DLS_QUERY_HEADER + " does not match (SG 900D)");
                    }
                }

However I think this header should not come into picture while indexing the document.
This seems a bug.
How can one reproduce the bug?
Steps to reproduce the behavior:
Create a Role with DLS enabled, associate this role with user. Index the document using bulk request and using this user.
Verify bulkresponse
What is the expected behavior?
While indexing DLS should be ignored
What is your host/environment?

OS: [e.g. iOS] All OS
Version [e.g. 22]
Plugins

Do you have any screenshots?
NA
Do you have any additional context?
NA

@peternied Hi Peter, Could you please confirm if you are looking into this issue?

Hi @swapnilsvaidya I am not currently looking into this issue, and it has been added to our work queue.  If you would like to create a pull request the maintainers and I would gladly review it.

i haven't seen the corresponding comment in the OpenSearch Security documentation, but e.g. Search Guard explicitly declares that roles with DLS enabled mustn't have write access: https://docs.search-guard.com/latest/document-level-security#dls-and-write-access
i presume the same applies for OpenSearch Security and needs to be documented (and maybe enforced by a check in a new major release?)

@opensearch-project/transfer-request This looks a documentation issue. Could you transfer to documentation repo? Thanks!

@cliu123: seems that your transfer request hasn't happened yet. would it make sense to instead raise a new, well described, issue in the documentation repo and then close this one here with a reference to the new one?


pd.merge() doesn't support (named) Series

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.2
Modin installed from (source or binary): pip
Modin version: 0.6.3
Python version: 3.7.3
Exact command to reproduce: See below

Describe the problem
This is special-cased in pandas, and doesn't work with modin:
pd.merge(pd.DataFrame(range(10), columns=["foo"]), pd.Series(range(10), name="foo"))

Source code / logs
Possible fix: https://gist.github.com/ecoughlan/30197e6de8664c0ca670ab1aeb4b8d64

Thanks for posting @ecoughlan, the fix you posted in the gist would likely work. If you're willing to contribute it with some test cases to verify correctness, let me know!

Resolved via #878


SPI Speed instability or Rpi1 + Hyperion

https://discourse.osmc.tv/t/spi-speed-instability-or-rpi1-hyperion/12581/3
Hi all,
I'm using a recent build of Hyperion on a RPi 1 configured to use SPI and WS2801 type.
I'm developing an attiny based converter to take SPI 2801 led data and resend it as ws2812 data.
Using a logic analyzer in seeing the SPI speed change every few seconds from the requested speed (800000) to 2/3 of that speed (533.333) bits per second and back again. It happens with other speeds too
As best I can tell nothing else has spidev0.0 open and Hyperion has no code to change it dynamically.
Kernel bug ?

I could not help you with this but
Are they similar to ws2812B? Hyperion supports that.

I need PWM output so can't use the native direct 2812 support.
My tiny protocol converter works great - I'll post more details when I've cleaned up the code.
The SPI speed changes are concerning me tho. Somethings not right there.

@penfold42 think you can close this :)
use your other issue :)
https://github.com/tvdzwan/hyperion/issues/516
and dont ask! release it :) maybe someone needs it

This appears to be related to the core clock speed changing.


Obsolete analyse page

Where to find the issue

https://www.coronawarn.app/en/analyse/
https://www.coronawarn.app/de/analyse/
https://www.coronawarn.app/en/analysis/
https://www.coronawarn.app/de/analysis/

Describe the issue
There are now 4 analysis pages published to production.
The two pages from a previous publication include "Analyse" in the header menu. (See https://github.com/corona-warn-app/cwa-website/issues/1776)

https://www.coronawarn.app/en/analyse/
https://www.coronawarn.app/de/analyse/

and which point to themselves.
Edit;
Resolved:
The PR for the two new pages
- https://www.coronawarn.app/en/analysis/
- https://www.coronawarn.app/de/analysis/
didn't include any link to "Corona-Warn-App (CWA): Kennzahlen" from
- https://www.coronawarn.app/en/ or
- https://www.coronawarn.app/de/
Suggested change

https://www.coronawarn.app/en/analyse/
https://www.coronawarn.app/de/analyse/

are old versions of the analysis page which need to be manually removed from the production server.
Edit:
This part is resolved:
If the idea is to keep the pages
- https://www.coronawarn.app/en/analysis/
- https://www.coronawarn.app/de/analysis/
hidden from view until they have been tested in production, then fine, otherwise a link to the pages needs to be added to
- https://www.coronawarn.app/en/ or
- https://www.coronawarn.app/de/

This issue is partially addressed by PR https://github.com/corona-warn-app/cwa-website/pull/1793.

@FabioFuschi-SNK FYI

@Ein-Tim

The menu now includes a link to https://www.coronawarn.app/de/analysis/ or https://www.coronawarn.app/en/analysis/, so I guess this is the page which will be used.

That is what I meant when I wrote:

This issue is partially addressed by PR #1793.

The first part of the issue reported is not yet resolved.

@MikeMcC399
Ah, sorry, I didn't understand this. (:

@MikeMcC399 Thanks, yes, we will have a look!

@MikeMcC399 We will check your proposal at some point. We from the community team do not have access.


Users can use ML.NET in all future .NET versions

I agree! 😄
We have more testing for this now, which I think this was meant to address.  cc @michaelgsharp


[Test] MacOS Issue with Server tests

It appears that the MacOS hosts are running into trouble with the server tests. Try increasing the startup delay, to see if that helps. The MacOS hosts are slightly lower spec than the Windows and Linux ones.

@Harsha-Nori @slundberg this is a not-entirely-satisfactory workaround to the issues notices with the PR gates after I expanded the OS coverage.
Fundamentally, I'm pretty sure we're running up against the limits of the test machines, and the MacOS hosts have slightly lower specs (only 3 cores and 14 GiB of RAM vs 4 cores and 16 GiB).
I think we might need to split the tests into categories:

Ones which don't need a model at all, or are designed to run against model.Mock()
Oddballs like test_server.py
Ones which run against a model, and which we want to test against multiple models

For the last, I think we will need to adjust the workflows so that they run a single model per job. We then have the fixture which creates the model  (see #674 for a sketch of how this might work) be passed information as to which model it is supposed to load.
Thoughts?

@riedgar-ms I like the idea of minimizing the test server load. Merging this so other PRs get accurate unit test statuses.


Added support for dynamic gravatar profile pictures

closes #84
I used a really cool so-called "taghelper" (https://dotnetthoughts.net/aspnet-core-gravatar-taghelper/) as the foundation for now making the proper gravatar URL's based on the users email address, which means they will see their own profile picture, if they have added one to gravatar. All the other arguments are the same

If/when we merge it will also be the first time we see Continous Deployment in effect! Fitting for such a round issue number :tada:

Lets merge it tomorrow before the lecture and see the magic happen.


openrc-run --debug: openrc-run should not be run directly

I am trying to debug some init scripts, shipped with Artix (most of them look different varieties of broken for me). Unfortunately, openrc-run obfuscates what happens and actively resists any attempts to resolve issues:

changing script's shebang to include --debug or -Z arguments causes following line to be printed:

            openrc-run should not be run directly

I have read entire manual page of openrc-run and still do not understand, what it does, and why is it failing at it.

So far it looks like the init script in question starts successfully, but in fact nothing happens (nothing is started). If the script was based on bash I would have been able to do line-by line debugging, but openrc-run does not provide any obvious way to do that.

Currently, the best way to get debug output is to run the service script directly with the --debug switch, so something like this:
# /etc/init.d/script --debug start

will try to start a service and give you debug output.
This is a lot of output, because it does a "set -x" in the script.
I am open to ways to improve this.

I don't really know how the internals of openrc work so please pardon my ignorance.
Maybe it'll be interesting to provide a set of scripts that allow basic logging functionalities. info, debug, warn etc. That way a flag can be added, something like --verbosity warn or whatever. I'm sure there are some basic logging libraries out there for shell scripts.
Once the library is written, a openrc script can then source the file from some place. Then simply call the relevant shell function.
In addition to this, the --debug flag would stay both for backwards compatibility and to allow people to fully debug the scripts.

Hi. I have the same kind of issue as @Alexander--
I wrote a openrc start script for chrooted apache and now I'm not able to debug it in easy way.
What do you think about this way. When we run init script with "--debug" print additionaly the function name with the absolute path with the filename from which this function has been included. Maybe it is not the best way but I think easy to implement.