Trouble installing Bugfender on 0.63.2

Hi!
We're having trouble installing Bugfender on React Native 0.63.2.
We are using cocoapods since before.
What we do is

yarn add @bugfender/rn-bugfender
(cd ios && pod install)

After this building the iOS app using

npx react-native run-ios
gives us the following error:

error: Multiple commands produce '...Build/Products/Debug-iphonesimulator/cocoapods-artifacts-Debug.txt':

That command depends on command in Target 'app' (project 'app'): script phase “[CP] Prepare Artifacts”
That command depends on command in Target 'appTests' (project 'app'): script phase “[CP] Prepare Artifacts”

It seems we can get rid of the problem by removing the generated "Prepare Artifacts"-step under our appTests target (leaving it in the app target). But running pod install after this will add the "Prepare Artifacts"-step again. We're thinking it might be added by the automatic linking?
Any ideas on what to do?

Hi @mickejointsjohansson , it would be great to have full logs in order to analyze this. Also, it looks like it could be a CocoaPods bug. Have you tried updating CocoaPods to the lastest version?

Thanks for the quick reply @jgimenez! We think we have solved it by simply removing those extra targets (we weren't really using them) which gets us going again.

OK great!


QC module does not report the per-chromosome coverage

The samtools stats used in QC module only reports the coverage in bins and does not report it per chromosome. The new rule should be added to run the samtools coverage and report the coverage per chromosome. The output should be symlinked to 99-outputs, but does not have to be present in the final aggregated table.

Fixed in #285


Any simple way to visualize the queue?

Hi,
We have some highly competitive resources in our testing. We have been asked to do a queue estimation for the jobs that are waiting. Do we have a simple way to get the current queued list?
Thanks!

Hello, I think some of my farms would benefit from that too (knowing which resources are hotly contested and which are only used in bursts and then dormant, to distribute compute power better for shorter wall-clock times spent by jobs).
That said, I am not aware of any current easy to use methods; PRs welcome :)
The LockableResourcesManager class tracks the link(s) between queueId's (Long numbers) and candidate resources that would satisfy that particular queue. This tracking can probably be inverted to report the resource instances waited-for and the length of the queue for each.
I think that data may need certain understanding, e.g. if resources A and B satisfy job J, and both are not available, they may get reported with a queue pressure of 1 each. Then one of them becomes available and re-assigned to that queued job, and both get a queue pressure of zero.

Also note that the $JENKINS_URL/locableresources page should have a table at the bottom listing the (persistently?) defined resources and the amount of items per requestable label available currently. I think this is part of the base features, but might be just in our private builds, gotta check. This table would be a good place to report the pressure for resources/labels that are not available currently and have a queue pressure on them.

I want to work on this. Please tell me what I have to do and where to?

@Abhishekverma2002 are you still interested?

Hey I want to work on this issue. Is it currently assigned to someone?
if not tell me what I have to do and where ?

@Vandit1604 Hi, nice to meet you. No this issue is not assigned at the moment. You can work on that as well.

@mPokornyETM hi i would love to work on this issue can you tell me what i have to do and where

if not tell me what I have to do and where ?

Has you any experiences with Jenkins?

Yes i have learned how to use jenkins so i could contribute to the project
as i went through the README.md of this plugin its about using resources like printers and computers that can be used in builds but speaking of computers what would be the difference between computers used as resource and computers used as agent nodes

@mPokornyETM hi i would love to work on this issue can you tell me what i have to do and where

My proposal is very easy. Create new page history
There shall be one table like

Resource
State
Timestamp
Reason

ResourceABC
FREE
3. Jan 2022
Lock released on resource [ResourceABC-Debian] by <liknToJob/Run>

ResourceABC
Locked
3. Jan 2022
Locked by <liknToJob/Run>

ResourceABC
Waiting
2. Jan 2022
[ResourceABC] is locked by <liknToJob/Run>, waiting...

ResourceABC
Trying to acquire lock
1. Jan 2022
Trying to acquire lock on [ResourceABC]

When you use data tables it will be fine. There are some features implemented from scratch like: filtering, ordering, max lines per page ...
And you must not care about that.
To get all this history stuff, will be possible to use loggers (I hope) In that case you does not need to care about

which logs you want to see, and where are located in code
how long shall be logs archived.

I know it is not directly this issue, but when we combine it with #393 and we can close both.

Yes i have learned how to use jenkins so i could contribute to the project as i went through the README.md of this plugin its about using resources like printers and computers that can be used in builds but speaking of computers what would be the difference between computers used as resource and computers used as agent nodes

That the reason, why we need more documentation. Looks here https://github.com/jenkinsci/lockable-resources-plugin/pull/403/files#diff-97da7bf492a2ccae1ba961bfc01d8027619ebfa6392aa5d210b0124d61534585
It shall explain it to you.
This plugin has nothing to do with Jenkins nodes as well. But it is often combined with Jenkins nodes. When you create 1 node with 10 executors, Jenkins will do there 10 parallel tasks as well. But when you need allow 10 executors only for one job ? In this case helps this plugin to you. You will create 1 resource (probably with the same name as the node) and lock it before you allocate the node
lock('my_node_1') {
  node('my_node_1') {
     // do our parallel tasks here
  }
}

So you can start our multi-branch project as well and there is no conflict, because Job1 allocate resource here lock('my_node_1') { and the next one job will wait, until the close is finished.
Maybe I shall also describe this scenario in the documentation

I'm currently using this plugin to understand it more deeply and going through the link you provided.
can you elaborate more on Waiting state of a resource and Trying to acquire lock state.
Does waiting state means resource is not locked but more than one controllers are trying to lock it and
Trying to acquire lock state is the state when only one controller is trying to lock the resource

@mPokornyETM  i implemented the tabs from the bootstrap site but it's not working as tabs when i click them and i also tried creating new page but it gives Stapler request error 500 also can you give me some information about in which frameworkn of java this webapp is created so i can understand the file structure better
i referred the jelly documentation but im not in clear after going through them can you suggest me some docs on how to add a new page and adding link


Generalize chatbot template

Currently, for demonstration purposes only, the chatbot includes a particular organisation's name and api (which I made up). However, it would be appreciated if the api could be generalized even further along with other small instances like logo, colour contrasts, etc.

[ ] Logo makover
[ ] Contrasts adjustment
[ ] Refactor API

I would like to work on this issue. Can I?

Sure! Go ahead!


update llama model RMSNorm casting

following the original implementation, cast back to input dtype before multiplying weight. slightly faster https://github.com/meta-llama/llama/blob/main/llama/model.py

about 1% faster


Install without Sandstorm

Is there a way to install this awesome presentation app without the use of Sandstorm?
For example in a standard Webserver environment?

Technically yes, with little modification you can deploy it to any server as it's really just a python script and some html/javascript.
The problem is that because this app was built for Sandstorm, it doesn't have any notion of users or document management. In fact - the app itself has no idea of multiple documents. It's written to handle just one set of slides.
What Sandstorm does is add user and document management, spinning up a new container (effectively an entire linux stack) for each document.

Thanks for the quick reply.
I think I will then use reveal.js in another way.


PR: Fix update of plugins and disable update button if not available on conda forge (for bundle)

Fixes #4427
Description

Type of change

[x] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

References

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

@Czaki this should fix the issue you found.


Ensure xplt.FacetGrid works on Dataset objects

This, along with the .map method, provides a much more generally flexible API for making plots.
It still needs some examples for the docs. Here's something simple with synthetic data:
ds = xray.Dataset({'x': np.linspace(0, 10),
                   'y': [1, 2, 3],
                   'foo': ('x', np.random.randn(50)),
                   'bar': ('x', np.random.rand(50))})
ds *= ds.y
(xplt.FacetGrid(ds, col='y')
 .map(plt.plot, 'x', 'foo')
 .map(plt.scatter, 'x', 'bar', color='green'))

This is great.  I'll give this a review later today.
Side note: I think we're going to have a few merge conflicts after #611.

Yes, this will certainly need a rebase after #608 (which we should merge first).

@jhamman any comments here?

@shoyer - I just had a look through this.  I don't have any significant comments.  I think you merge this.


Installation of v0.0.3 is incomplete because package was built with wrong package dependency name

New release to be publish tomorrow

Fixed in PR #9


Bluetooth: BR/EDR: Inappropriate l2cap channel state set/get

Describe the bug
void bt_l2cap_chan_set_state(struct bt_l2cap_chan *chan, bt_l2cap_chan_state_t state)
static inline bt_l2cap_chan_state_t bt_l2cap_chan_get_state(struct bt_l2cap_chan *chan)
void bt_l2cap_chan_set_state_debug(struct bt_l2cap_chan *chan, bt_l2cap_chan_state_t state, const char *func, int line)
In above API, the state of l2cap channel is only handle by BT_L2CAP_LE_CHAN. But the state had better to be handled according to the l2cap channel type.
To Reproduce
Steps to reproduce the behavior:

Create br l2cap connection between to boards.
Master does not send configure req.
Fail to establish l2cap connection.

Expected behavior
Master is able to send configure req to slave after received connection rep.
Impact

When a br l2cap connection is tried to be established, the connection state cannot be set correctly. This will cause master fail to send 'configure request' to slave after received 'connection response', which does not follow l2cap protocol.

Logs and console output

Refer scheme
-previous
		BT_L2CAP_LE_CHAN(chan)->state = state;
-after
    struct bt_conn* temp_conn = chan->conn;
    if (temp_conn->type == BT_CONN_TYPE_LE) {
		BT_L2CAP_LE_CHAN(chan)->state = state;
    }
	else {
		BR_CHAN(chan)->state = state;
    }

BR/EDR is an experimental feature of the Zephyr Bluetooth stack, and not very well supported. You are welcome to propose a fix through a poll request, if you want.

@jerryyang35 as @jhedberg mentioned, BR/EDR is just not maintained anymore, nor tested. If you are interested in reviving this feature please let us know and we can discuss how to make accommodations for this.


Is there a way to use this in a Blazor App

Can we use this in Blazor Server Side app?

As long as you have your jQuery datatables js plugin configured to work with blazor. You can use this on server side by supplying required parameters. Note that this package is only meant for data filtering. You need to do the remaining hooks with UI to make it work.


Turns on TFLite Support

Removes the not supported error for tflite
Fixes expected format for signature
Fixes confidences in results
Fixes Issue #4

looks good to me


Add writable derive

Hey man, thanks for this pull request, this is one of the most useful feature that I've been wanting to add for some time but haven't find the time to do.
Will review as soon as possible.


Issue 530: Fix container engine detection when podman-docker installed

When using podman with podman-docker installed, cross will fail to build with a permission error.
cross build --release --target=aarch64-unknown-linux-gnu

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
error: failed to open: /target/release/.cargo-lock

Caused by:
  Permission denied (os error 13)

If using cross from master, this can be worked around by specifying CROSS_CONTAINER_ENGINE=podman, but this does not work for the latest released version (v0.2.1).
Even though this has a workaround, this should be fixed such that we do not need to specify CROSS_CONTAINER_ENGINE. Simply defaulting to podman first fixes it.

If both podman and docker are installed, docker should be the default. Is there a way to detect if docker is podman-docker?

If both podman and docker are installed, docker should be the default.

Why? If anything, I'd assume the opposite, since docker requires a daemon and root privileges to run, while podman can be run by normal users. Most distributions ship with podman in their default repositories, but not docker. Many of these users will have podman-docker installed, which causes cross to hit the permissions error if cross treats it like docker.
I assume there are very few users who would have both docker and podman installed. Even if we do hit one, defaulting to using podman causes no harm, while defaulting to docker breaks things.

Is there a way to detect if docker is podman-docker?

If podman-docker is installed, /usr/bin/docker will be a script that simply passes all the arguments to podman. There is also a symlink from /run/docker.sock to /run/podman/podman.sock . Searching for the word podman in /usr/bin/docker is probably the simplest way.
[alex:~] 17s $ dnf repoquery -l podman-docker | grep -v /usr/share/man
Last metadata expiration check: 0:00:43 ago on Tue 30 Mar 2021 10:33:43 PM PDT.
/usr/bin/docker
/usr/lib/tmpfiles.d/podman-docker.conf
/usr/bin/docker
/usr/lib/tmpfiles.d/podman-docker.conf

[alex:~] $ cat /usr/bin/docker
#!/usr/bin/sh
[ -f /etc/containers/nodocker ] || \
echo "Emulate Docker CLI using podman.

What is needed to get this merged?
Currently this issue is preventing me from using cross at all and I would like to help.

I think this change make sense, I don't use podman but the reasoning to use it when both docker and podman is installed makes sense to me.
Right now we're locked by CI (#609), and we're in the process of a migration, see rust-embedded/wg#590

@reitermarkus you previosuly mentioned this shouldn't be done. has your position changed?

I think it makes sense to be the default on Linux. I think on macOS and Windows podman is only usable as a remote client so it should not be the default for that reason.

I think it makes sense to be the default on Linux. I think on macOS and Windows podman is only usable as a remote client so it should not be the default for that reason.

I've updated it to do this by default. I've used the check to default to podman first if the OS is Linux, rather than use podman on anything other than Windows or macOS, since podman can't run natively on anything other than Linux anyway, even if it gets support on the BSDs or similar (also, I doubt Docker will ever support FreeBSD).

Uh I tried quashing multiple commits into one, but I think I failed spectacularly, which was not what I intended based on the documentation.
@cross/issue-530


Store non-deterministically returns ComponentNotFound for new MarkerShape

This specifically impacts https://github.com/rerun-io/rerun/pull/5004
Can repro using the code:
import math

import rerun as rr

rr.init("rerun_example_scalar", spawn=True)

for step in range(0, 64):
    rr.set_time_sequence("step", step)
    rr.log("scalar/cos", rr.archetypes.Scalar(math.cos(step / 10.0)))
    rr.log("scalar/sin", rr.archetypes.Scalar(math.sin(step / 10.0)))

Sometimes everything works as expected:

But sometimes we get an error:
[2024-02-01T21:28:25Z ERROR re_viewport::system_execution] Error executing visualizer "SeriesPoint": Could not find component: rerun.components.MarkerShape

and the visualizer refuses to show the PointSeries:

Appears unrelated to the python logging since you can save an RRD file and reload it. Sometimes it will load properly, sometimes MarkerShape won't work.

This appears this is caching related as disabling primary_caching appears to avoid the issue.

I wouldn't be surprised if that's another bug I introduced in the reentrancy patch... :unamused:  looking.


created web form

Issue https://github.com/suwebdev/spring-ghost/issues/7
Goal to have basic web form structure in place.
I copied this code from w3schools for a basic web form, but it uses a form element with a php action for processing. If this is not working, it can be removed.

Hi Rosa - I tried to leave a block of code as part of a code review but then it reformatted instead of printing the code in the <pre> container. Hopefully this will help to explain, but let me know if you have any questions.
What I had basically done is to use this code in the first example here (WC3 Bootstrap Forms) to add Bootstrap styling to the form:

Wrap labels and form controls in <div class="form-group"> (needed for optimum spacing)
Add class ".form-control" to all textual <input>, <textarea>, and <select> elements
Change the submit input to a <button> with a class of "btn btn-success" (green submit button)

Just a few quick changes and you get a nice looking and responsive Bootstrap web form.  What do you think?

Laura, I like both the pre-selected location addition and the suggestion for the Bootstrap styling. I would do both before merging back to the master.


test: #18 acceptance testing

Codecov Report

Merging #20 (0a02f47) into main (e19b724) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##                main       #20   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity        15        15
===========================================
  Files              6         6
  Lines             91        91
===========================================
  Hits              91        91

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 e19b724...0a02f47. Read the comment docs.


docs: fix examples repository link

This PR updates the old examples link in the main Lucia repo to the new examples repository.

Thanks!


Update link-check to 0.12 using CLI and comment reporting

This PR upgrades link-check to 0.12, which should squash the "diffs are too big" problem/bug.
In order to squash an issue where node:buffer couldn't be imported in the GH Action, this PR now just uses link check through the CLI and its stdout to make a special review comment which gets edited after each check.

https://github.com/iterative/dvc.org/pull/3700#issuecomment-1184964728

We no longer have three checks for link check!

@rogermparent ping

Sorry, this has fallen by the wayside a bit, I'll bump it up in my priorities this week!

I took a look, but hit the "Known Issues" portion of the send-comment docs that states the following:

commit_id has been locked.
This error is caused by using the default GitHub token with cml send-comment --update. Use a personal access token (PAT) instead.


How can I use this lib for Android API below 24? 24 is still to hight Api level nowadays.

https://github.com/nihui/opencv-mobile/pull/74

resolved since https://github.com/nihui/opencv-mobile/commit/09f5a1cd23351260ede388cfe4a5d36c6bfe8655


progress dialog not showing while loading blockly

On first load blockly takes several seconds to load on a slow system, it seems that the editor is handing. We need to popup the spinner.

The dialog should be displayed lazily on first load. Test by switching JavaScript / Blocks.


Add binomial and factorial as potential dimensionless functions

Fixes
https://github.com/SciML/ModelingToolkit.jl/issues/2554
https://github.com/SymbolicML/DynamicQuantities.jl/issues/124

I think only :factorial goes there. But :binomial needs to be elsewhere as it has two arguments rather than 1.
Also can you add it to the unittests please?

Thanks.
I've updated. I removed binomial from that set of functions, not sure where to put it back though.

For binomial I would just write the function definition explicitly.

Like
function Base.binomial(q::UnionAbstractQuantity, n::Integer)
    iszero(dimension(q)) || throw(DimensionError(q))
    return binomial(ustrip(q))
end

Currently, these are my tests:
    # Tests factorial (single integer input).
    for Q in (Quantity{Int64}(2u"1")), D in (Dimensions, SymbolicDimensions)
        for x in rand(3, 1:10)
            qx_dimensionless = Q(x, D)
            qx_dimensions = convert(with_type_parameters(Q, Float64, D), Q(x, dimension(u"m/s")))
            @eval @test $f($qx_dimensionless) == $f($x)
            @eval @test_throws DimensionError $f($qx_dimensions)
        end
    end

    # Tests binomial (two integer inputs).
    for Q in (Quantity{Int64}(2u"1")), D in (Dimensions, SymbolicDimensions)
        for x in rand(3, 1:10), y in rand(3, 1:10)
            qx_dimensionless = Q(x, D)
            qx_dimensions = convert(with_type_parameters(Q, Float64, D), Q(x, dimension(u"m/s")))
            qy_dimensionless = Q(y, D)
            qy_dimensions = convert(with_type_parameters(Q, Float64, D), Q(y, dimension(u"m/s")))
            @eval @test $f($y, $qx_dimensionless) == $f($y, $x)
            @eval @test $f($qy_dimensionless, $x) == $f($y, $x)
            @eval @test $f($qy_dimensionless, $qx_dimensionless) == $f($y, $x)
            @eval @test $f($qy_dimensions, $qx_dimensions) == $f($y, $x)
            @eval @test_throws DimensionError $f($qy_dimensions, $x)
            @eval @test_throws DimensionError $f($y, $qx_dimensions)
        end
    end

and this is my binomial definition
# Explicit declaration of `binomial` function.
function Base.binomial(q1::UnionAbstractQuantity, q2::UnionAbstractQuantity)
    iszero(dimension(q1)) || throw(DimensionError(q1))
    iszero(dimension(q2)) || throw(DimensionError(q2))
    return binomial(ustrip(q), ustrip(q))
end

Tests are failing: https://github.com/SymbolicML/DynamicQuantities.jl/actions/runs/8345114243/job/22841107243?pr=125
You can check the tests pass locally with:
julia --project=/path/to/repository -e 'using Pkg; Pkg.test()'

I am trying to get the tests to work, but having an issue here:
    # Tests factorial (single integer input).
    for Q in (Quantity{Int64},), D in (Dimensions, SymbolicDimensions)
        for x in rand(1:10, 3)
            qx_dimensionless = Q(x, D)
            qx_dimensions = convert(with_type_parameters(Q, Int64, D), Q(x, dimension(u"m/s")))
            @eval @test $factorial($qx_dimensionless) == $ffactorial($x)
            @eval @test_throws DimensionError $factorial($qx_dimensions)
        end
    end

Specifically, this is the minimal error:
julia> Quantity{Int64}(5, dimension(u"m/s"))
ERROR: MethodError: no method matching (Quantity{Int64})(::Int64, ::Dimensions{DynamicQuantities.FixedRational{Int32, 25200}})

Closest candidates are:
  (::Type{Q})(::T; kws...) where {T<:Number, T2, Q<:(AbstractQuantity{T2})}
   @ DynamicQuantities ~/.julia/dev/DynamicQuantities/src/types.jl:219
  (::Type{Q})(::Number; kws...) where Q<:AbstractQuantity
   @ DynamicQuantities ~/.julia/dev/DynamicQuantities/src/types.jl:220
  (::Type{Q})(::T, ::Type{D}; kws...) where {D<:AbstractDimensions, T<:Number, T2, Q<:(AbstractQuantity{T2})}
   @ DynamicQuantities ~/.julia/dev/DynamicQuantities/src/types.jl:217
  ...

Stacktrace:
 [1] top-level scope
   @ REPL[35]:1

which comes from this line:
qx_dimensions = convert(with_type_parameters(Q, Int64, D), Q(x, dimension(u"m/s")))

I think that constructor just doesn't exist. Maybe do Q(x*u"m/s") instead?

That worked, thanks a lot! The tests passed locally now, I will push them and see what happens.

Ok, this seems good now?

good catch, sorry for missing that one!

@MilesCranmer Does this look good for starting CI again? I looked through the changes one more time and think it looks good. I also rerun CI locally and confirmed it works there.

Thanks!

Thanks a lot for all the help with this :)


Ami creation

@hazim1093 plz review this PR and merge it!

@hazim1093 plz add some description to the new added modules which explains what it does and what is the purpose of it

@rasheedamir
Renamed the modules and added readme files.


Cannot disable spellcheck in UI-settings in Google Chrome

I installed this on Etherpad-lite 1.3, when I disable it in settings (UI), nothing happens (the check toggles but spellcheck is still on). After page refresh it appears nothing has been saved.

Put a hack fix in place.


benchmark tools support metrics for Docker deployment

Benchmark tools support metrics for Kubernetes, there is no metrics for docker.
Requirment:

Need to support metrics for Docker deployment.
Dump system HW information and configuration of the workload.

@bjzhjing will work on this

PR for docker metrics: https://github.com/opea-project/GenAIEval/pull/113

Hi @xiguiw, can I close this issue?

Close as it is done!
Thanks @gavinlichn @bjzhjing  !


Can we get support/upload for Grails 2.5.3?

Pretty please :)
Referring to missing resource at
http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.5.3.zip

It looks like the URL pattern has changed to:
https://github.com/grails/grails-core/releases/download/VERSION/grails-VERSION.zip
We'll update that, but you can fork the buildpack if you need it asap.

I rolled back to 2.5.1 in the mean time but will keep my eye open for the patch so I can move back.. (which made me run into a KeyTool bug with an older tomcat plugin version that I worked around by moving up to tomcat:<IP_ADDRESS>, but i digress).

I think this should work by using the grails wrapper, which determines the URL to download Grails instead of depending on Heroku (which may not be able to keep up with URL scheme changes).
I tried added support for 2.5.2 and 2.5.3 but ran into bugs with both (2.5.2 generates the wrong URL in the wrapper and 2.5.3 does not work with the create-app command), thus I'm concerned about adding official support in this way.
I advise checking your ./grailsw scripts and wrapper/ dir into Git. Please let us know if this does not work for some reason.


Remove Flag

Do not want  to show flag how can I do that?
I want to show only number with Country.

@maulik6994 Please fill out the feature request template to describe yours. Closed as long as it's not filled out.

Hello Mr! I want to remove the flag from my TextField, I only want the country code to show in my TextField, how can I remove the flag?


Make the image trusted by Cloud Shell

I opened this to keep track of work.
Did you make the image trusted already somehow? It’s blocked on #1 and #2.

  I didn't mean to close this.  Sorry.

Done.  Thanks Ahmet!


Missing clear description of security roles

This page needs an update as it is not reflecting the current status. It needs a clear description of the "Project security roles" and "Implementation roles". This is important because compliance with security and audit principles of customers.

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

ID: 8ee6629a-f1a4-b352-0b26-657a503d80a7
Version Independent ID: dbe54d30-b73b-0446-7d80-922050825641
Content: Configure Lifecycle Services (LCS) security - Finance & Operations | Dynamics 365
Content Source: articles/fin-ops-core/dev-itpro/lifecycle-services/configure-lcs-security.md
Service: dynamics-ax-platform
Product: ****
Technology: ****
GitHub Login: @RobinARH
Microsoft Alias: jorisde

@jorisdg, please review. Thanks!

@AngelMarshall, please review and update this content appropriately.

Bug 8867530 has been logged to track this issue.


Package is unavailable at PyPI

$ pip install python-telegram-bot-django-persistence
ERROR: Could not find a version that satisfies the requirement python-telegram-bot-django-persistence (from versions: none)
ERROR: No matching distribution found for python-telegram-bot-django-persistence

False alarm: had python3.8 installed while this package supports python >=3.9


frame: remove finality-tracker

The initial idea was to use the finality-tracker module to automatically trigger GRANDPA's offline fallback. Due to efficiency concerns the module currently only allows tracking finality over short periods (e.g. last 100 blocks), which is too little to act automatically on. Furthermore, we recently added #6725 which instead allows us to trigger GRANDPA's offline fallback manually through governance which is a lot safer (and preferred). Removing this as suggested in https://github.com/paritytech/substrate/pull/6725#issuecomment-663598750.
polkadot companion: https://github.com/paritytech/polkadot/pull/1762

What issues? I was actually wondering what issue could possibly arise from removal of a pallet that you did a burnin.

@kianenigma Since other nodes are still adding the inherent data the node will fail to decode those inherents that come in the block.
Oct 09 15:52:12 kusama-sentry-ew1-1 kusama[27879]: Oct 09 15:52:12.155  WARN 💔 Verification failed for block 0x5228ee456ee78813978d5cd0000af129bf32e719f27daa3b1530835a12f6319b received from peer: 12D3KooWAHbuhp5pq8uFeLwDBbxNWd1qtjGS95z3XVuseZ9nJDHS, "Execution: Could not convert parameter `block` between node and runtime: Error decoding field Block.extrinsics"

Still not sure about what to do since for historical blocks these inherents will always exist.

@kianenigma Since other nodes are still adding the inherent data the node will fail to decode those inherents that come in the block.
Oct 09 15:52:12 kusama-sentry-ew1-1 kusama[27879]: Oct 09 15:52:12.155  WARN 💔 Verification failed for block 0x5228ee456ee78813978d5cd0000af129bf32e719f27daa3b1530835a12f6319b received from peer: 12D3KooWAHbuhp5pq8uFeLwDBbxNWd1qtjGS95z3XVuseZ9nJDHS, "Execution: Could not convert parameter `block` between node and runtime: Error decoding field Block.extrinsics"

Still not sure about what to do since for historical blocks these inherents will always exist.

Wait. That means you don't have bumped the spec_version.

I guess historical blocks will be fine because a historical runtime will also have this pallet? The problem seem more like that this PR is kinda hard to burn-in in the public, because of what you said: other nodes will produce blocks with the inherent while your node will reject.

@kianenigma Since other nodes are still adding the inherent data the node will fail to decode those inherents that come in the block.
Oct 09 15:52:12 kusama-sentry-ew1-1 kusama[27879]: Oct 09 15:52:12.155  WARN 💔 Verification failed for block 0x5228ee456ee78813978d5cd0000af129bf32e719f27daa3b1530835a12f6319b received from peer: 12D3KooWAHbuhp5pq8uFeLwDBbxNWd1qtjGS95z3XVuseZ9nJDHS, "Execution: Could not convert parameter `block` between node and runtime: Error decoding field Block.extrinsics"

Still not sure about what to do since for historical blocks these inherents will always exist.

Wait. That means you don't have bumped the spec_version.

Burn-in done, no issues found.

bot merge


Thrift Server Support

Nice work overall on the project! One thing I noticed missing in the library is support for thrift server, similar to TSimpleServer in the apache library. Are there plans to add those or are you assuming most thrift servers will be hosted on actual server and not on the Android client.
A specific use-case for this is when communicating with hardware from the Android device. The Android device may want to act as the server to retrieve data

Thanks!  An astute observation and a valid use-case.
Server support is problematic because of how we treat requiredness.  It's a subtle but important deviation from the Thrift spec, which we've taken because it allows us to get rid of all those isSet, setIsSet, etc methods.  Basically there are legal states for thrift objects that Thrifty cannot represent - they don't arise in client usage, but can and do appear in server implementations.
So, without fundamentally changing the project in ways we aren't willing to do, we can't make a spec-compliant server.


Feat: Update comment endpoint

Description
This pull request introduces a new PUT endpoint /api/v1/comments/{comment_id}/ to update existing comments. The endpoint allows users to update the content of a specific comment by its ID.

Related Issue Link to issue ticket
Motivation and Context
This change is required to allow users to modify their comments after they have been posted. This solves the issue of having incorrect or outdated information in comments.

Tested the PUT endpoint using Postman to ensure it updates comments correctly.
Created unit tests to verify the endpoint behavior with valid and invalid inputs.
Ran integration tests to ensure the endpoint works as expected within the application flow.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)

[x] New feature (non-breaking change which adds functionality)

[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project.

[x] My change requires a change to the documentation.

[x]  I have updated the documentation accordingly.

[x]  I have read the CONTRIBUTING document.

[x] I have added tests to cover my changes.

[x] All new and existing tests passed.

I have  worked on this, I have been waiting to be merged for close to 6 days now. just getting moved around...

PR 455

You saw a pr is open and is active and you still went ahead to implement the feature that not cool bro.


Use doc_cfg

I tried to implement it so that as many functions are displayed on the documentation as possible regardless of the platform the docs themselves were built on. This is not possible in all cases, for example the sys/*.rs modules had to be left out on other platforms, but at least the union of Linux and Windows docs covers everything.
Fixes #167.

This needs a change to Cargo.toml to set the docsrs flag

I believe you have already made this change :P. And I have tested it locally with --cfg docsrs, it seems to work.
I responded to your other comments in the review threads.

Thanks @KaiJewson!


Fixes for Elasticsearch 2.0

Hi!
This is not a complete pull request, but I'd like to talk about how we can address the issues I've found.
First of all, CONF_FILE env variable is removed from Elasticsearch 2.0, due to security changes and its location can't be changed.
The other issue is breaking change to plugin command syntax.
My changes effectively break the role for ES < 2.0 - it would be great if we can work out how this role could support all recent versions of Elasticsearch.~

## Update
Tests pass in travis and the role seems to be working for both es 2.0 and 1.7 (not sure about 0.x series).

Thank you!


Readme typography / styling

I wanted to use your app, I really did. But why is every word uppercased? You gave me a vertigo, I can't read that at all.
Friendly advice - don't do that. Don't uppercase every word. It's IMPOSSIBLE to read.
Best of luck.

uppercased on documentation?

I Noticed This To, I'm Not Sure Why You Have Made Every Sentence A Title, It Makes It Hard To Read..
vs.
I noticed this to, I'm not sure why you have made every sentence a title, it makes it hard to read..
also i is always I..


Peer Review 9/9/2024

Grading
All self and by peer grading must be complete prior to Teacher review date(s).  Show a direct link to the tangible(s) for each line item.
Sprint1 Key Objectives
During the sprint you need to complete all of these key objectives and find and complete supporting hacks that show level of command you are declaring.
Rank to Ratio, rank is an integer
0 = .00 work, but faking understanding/accomplishment
1 = .55 incomplete assignment, big gaps
2 = .75 meeting some objectives, multiple little gaps
3 = .85 meeting most objectives, one little gap
4 = .90 meeting all objectives
4+Mastered-Y = .95 exceeding all objectives, requires links and  office hours verification

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Laptop Verification or Cloud Workspace
[ ]
0
0.0
verification by Linux commands notebook

VSCode
[ ]
0
0.0
live change code, commit, make, run localhost, test, debug

Show VSCode GitLens
[ ]
0
0.0
verify commits, show change, comments, reset to commit, run on old commit

GitHub student_2025 repo
[ ]
0
0.0
template create, push changes, verify id, review analytics

GitHub Pages Actions
[ ]
0
0.0
review runs and verify runtime, receive demo

Hacks Tools & Equipment Play
[ ]
0
0.0
Hacks

Hacks GitHub Pages Playground
[ ]
0
0.0
Hacks

Hacks SASS Basics
[ ]
0
0.0
Hacks

Hacks Frontend
[ ]
0
0.0
Hacks

Pair Programming
[ ]
0
0.0
tangibles that show coop work

Total

0.0

Average

0.0

Learning Habits Table
Review criteria in habits.  In this review, pairs should rate each other base on their experience with the person on the line item.
Rank to Ratio, rank is an integer
1 = .55
2 = .75
3 = .85
4 = .90
4+Mastered-Y = .95

Skill
Mastered (Y/N)
Rank (1-4)
Ratio
Notes

Attendance
[ ]
0
0.0

Work Habits
[ ]
0
0.0

Behavior
[ ]
0
0.0

Timeliness
[ ]
0
0.0

Tech Sense
[ ]
0
0.0

Tech Talk
[ ]
0
0.0

Tech Growth
[ ]
0
0.0

Advocacy
[ ]
0
0.0

Comm & Collab
[ ]
0
0.0

Integrity
[ ]
0
0.0

Organized
[ ]
0
0.0

Total

0.0

Average

0.0

Grading
All self and by peer grading must be complete prior to Teacher review date(s). Show a direct link to the tangible(s) for each line item.
Sprint1 Key Objectives
During the sprint you need to complete all of these key objectives and find and complete supporting hacks that show level of command you are declaring.
Rank to Ratio, rank is an integer
0 = .00 work, but faking understanding/accomplishment
1 = .55 incomplete assignment, big gaps
2 = .75 meeting some objectives, multiple little gaps
3 = .85 meeting most objectives, one little gap
4 = .90 meeting all objectives
4+Mastered-Y = .95 exceeding all objectives, requires links and office hours verification
Skill	Mastered (Y/N)	Rank (1-4)	Ratio	Notes
Laptop Verification or Cloud Workspace	[Y]	4	0.0	verification by Linux commands notebook
VSCode	[Y]	4	0.9	live change code, commit, make, run localhost, test, debug
Show VSCode GitLens	[ Y]	4	0.9	verify commits, show change, comments, reset to commit, run on old commit
GitHub student_2025 repo	[ Y]	4	0.9	template create, push changes, verify id, review analytics
GitHub Pages Actions	[ Y]	4	0.9	review runs and verify runtime, receive demo
Hacks Tools & Equipment Play	[ Y]	4	0.9	Hacks
Hacks GitHub Pages Playground	[ Y]	4	0.9	Hacks
Hacks SASS Basics	[ Y]	3	0.85	Hacks - Put the popcorn hack, but no evidence of the others
Hacks Frontend	[ Y]	4	0.9	Hacks
Pair Programming	[ Y]	4	0.9	tangibles that show coop work - I have tangible evidence that Zafeer spent time helping me with this project
Total			8.5
Average			0.895
Learning Habits Table
Review criteria in habits. In this review, pairs should rate each other base on their experience with the person on the line item.
Rank to Ratio, rank is an integer
1 = .55
2 = .75
3 = .85
4 = .90
4+Mastered-Y = .95
Skill	Mastered (Y/N)	Rank (1-4)	Ratio	Notes
Attendance	[ Y]	4	0.9	Did not miss any days of school
Work Habits	[ Y]	4	0.9 I cannot recall a time when he used his phone unless communicating with others or was off task
Behavior	[ Y]	4	0.9	Was very helpful towards me and James, as we are new to coding and were slow on the uptake
Timeliness	[Y ]	4	0.9	Was never tardy or late
Tech Sense	[ Y]	4	0.9	Has a good understanding of what is going on in this class
Tech Talk	[ Y]	4	0.9
Tech Growth	[Y ]	4	0.9
Advocacy	[ Y]	4	0.9	Has gone to office hours with Mr. Brown and has asked Mr. Brown for assistance or clarification multiple times
Comm & Collab	[ Y]	4+	0.95	Zafeer spent a lot of time helping me and James, and asking his friends when stuck
Integrity	[ Y]	3	0.85	Occasionally when stuck on a problem, he went to ChatGPT to figure it out
Organized	[Y ]	4	0.9
Total			9.9
Average			0.9


I encounted with the same problem "AttributeError: 'NoneType' object has no attribute 'gradInput'"

Before someone came up with this problem, your suggestion is that you can debug to locate where the attribute 'gradInput' is, Thus? next what we should do? comment or what? May you in detail explain how to revise the code? Thank you very much!

I come up with the same problem,  do you solve this ?

Hi @kenmikanmi
I am also getting a similar error:    'list' object has no attribute 'gradInput'
I have a saved model which dosen't have a name:
print(model)
[nn.Sequential {
[input -> (0) -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> output]
(0): nn.TemporalConvolution
(1): nn.TemporalMaxPooling
(2): nn.Threshold
(3): nn.TemporalConvolution
(4): nn.TemporalMaxPooling
(5): nn.Reshape(6960)
(6): nn.Threshold
(7): nn.Linear(6960 -> 100)
(8): nn.Threshold
(9): nn.Linear(100 -> 462)
(10): nn.LogSoftMax
}
As you pointed out, the error seems to be in command:  model = model.model
Can you help on this?
Best

@Jamesswiz
Do you get same error ('list' object has no attribute 'gradInput') after you modified model = model.model as model=model[0] ?
Could you show me all output of print(model) ?

@kenmikanmi
Yes I get the same error.
Can you explain what this line is doing: if type(model).name=='hashable_uniq_dict': model=model.model
another thing which i tried was to replace the whole 'if' statement itself with just model=model[0].
The code ran (not sure correctly) but then it could not convert the model since,  the layers I am using e.g., Temporal convolution, maxpooling are not defined.
but I still don't have exact idea so I may be wrong.
Here is my model.
print(model)
[nn.Sequential {
[input -> (0) -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> output]
(0): nn.TemporalConvolution
(1): nn.TemporalMaxPooling
(2): nn.Threshold
(3): nn.TemporalConvolution
(4): nn.TemporalMaxPooling
(5): nn.Reshape(6960)
(6): nn.Threshold
(7): nn.Linear(6960 -> 100)
(8): nn.Threshold
(9): nn.Linear(100 -> 462)
(10): nn.LogSoftMax
}, {'mp3': 0, 'maxIter': 100, 'voicePerc': 0, 'context': 25, 'nhu1': 80, 'devVAD': '', 'dW3': 0, 'nbSpeakers': 462, 'norm': 'win', 'Lr': 0.001, 'clNhu': 100, 'nhu5': 0, 'devData': 'dev_wav.bin', 'dW2': 1, 'nhu3': 0, 'devLabel': 'dev_label.bin', 'kW3': 0, 'clNhu2': 0, 'kW1': 30, 'trainVAD': '', 'nhu2': 80, 'trainLabel': 'train_label.bin', 'trainData': 'train_wav.bin', 'nSamples': 160, 'mp1': 3, 'gpu': False, 'dW1': 10, 'relu': True, 'kW2': 10, 'mp2': 3, 'arch': 'cnn10', 'nhu4': 0}]


Ability to set ERC20 to use for voting

ERC20s are already in use for Voting, this ticket asks for allowing the elector module to get the voting power (balance) at an specific point in time.

Is this deprecated according to the latest ElectionModule spec?


fixavg function may use wrong decimal precision and scale

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Fix React PropTypes validations

I think we missed that one cause we were running in prod mode all the time, but #276 revealed some issues we have

Can you list them ?

Also, can you fix them in your PR ?

I'd rather dealt with it on case-by-case basis, and landed PR first

@KeitIG list: https://gist.github.com/YurySolovyov/5579f9b106437b5f6e1a4fa843d78d84

:+1:

@YurySolovyov Do you think you will have time to work on it or can I handle it ? (I'd like to do it this week-end)

Sure, go ahead


Add Github CHERRY_PICK pull request template

Bug/issue #, if applicable:
Summary

Add Github CHERRY_PICK pull request template
Update gitignore file

Combined the template from https://forums.swift.org/t/swift-5-7-release-process/56316#pull-requests-for-release-branch-7 and https://github.com/apple/swift-docc/pull/248.

@swift-ci please test

@swift-ci please test and merge

@swift-ci please test

Unfortunately there is not a GUI list like Github issue for us to choose when create a Pull Request on Github website.

Ooh I see, that's too bad. I think in that case I prefer the previous behaviour where you get just the default template; the point was that you have something to fill in if you're filing a new PR. What do you think? Should we revert the change?

Ok, if that'll take some time, should we revert the change for now and if the config file works, re-introduce the templates with the extra file?

There are many people encountering the same problem. Here is a solution
https://github.community/t/is-there-a-pull-request-template-selector-similar-to-issues/171838/9
If you accept, we can move DEFAULT.md to its original location and name. Then the default behavior will come back

Looking into this a little more, I realized there’s a way to have a default template, as well as additional templates. The default template is stored directly into the .github folder and called PULL_REQUEST_TEMPLATE.MD. We have an additional PULL_REQUEST_TEMPLATES folder containing additional templates that can be used.

Back in 2014 / 2015, using the template query-param was the original way to access templated issues. Since then we got the issues/new/choose endpoint for issue templates and then we got yml forms 3 but pull request templates are still using the old, old way.

I think let's revert to the original single template, but add a commented out section at the bottom with the template with the cherry-pick instructions:
## Checklist

…

<!--

Note: If this PR cherry-picks a change for a release branch, use the following template instead:

- **Explanation**: _A description of the issue being fixed or enhancement being made. This can be brief, but it should be clear._
- **Scope**: _An assessment of the impact/importance of the change. For example, is the change a source-breaking language change, etc._
- **GitHub Issue**: _The issue number if the change fixes/implements an issue/enhancement on [GitHub Issues](https://github.com/apple/swift-docc/issues)._
- **Risk**: _What is the (specific) risk to the release for taking this change?_
- **Testing**: _What specific testing has been done or needs to be done to further validate any impact of this change?_
- **Reviewer**: _One or more code owners for the impacted components should review the change. Technical review can be delegated by a code owner or otherwise requested as deemed appropriate or useful._
-->

What do you think? That seems to be the cleanest solution.

Revert the PR now is totally OK. But I disagree with the approach you describe.
Github has multi PR template feature supported. If we have a need for it, we should follow the Github's official spec instead of using textual form to workaround which seems error-prone for me.

On ph Github CLI, we can choose different PR template in terminal
On Github's website, we can only use the oldest query-param way to choose it.

Back in 2014 / 2015, using the template query-param was the original way to access templated issues. Since then we got the issues/new/choose endpoint for issue templates and then we got yml forms 3 but pull request templates are still using the old, old way.

If we want to revert to the original behevior, we can move the DEFAULT.md to its original location. Then when creating a PR on Github's website, it will use it as the default template.
And also I think we should still put the extra template on PULL_REQUEST_TEMPLATES folder for the following reasons:

We have gh CLI to utilize it
Eventually I believe Github website will support it like issues. And since we are following the spec, no change is needed. We get it free.

We still lose discoverability of the cherry-pick template though, at least on the web, and for now. Maybe we can do something in the middle as well, where the comment I'm proposing to add at the bottom can instead refer to the other template:
<!--

If you're opening a PR to cherry-pick a change for a release branch, use this template instead:
https://github.com/apple/swift-docc/blob/main/.github/PULL_REQUEST_TEMPLATE/CHERRY_PICK.md

-->

Back in 2014 / 2015, using the template query-param was the original way to access templated issues. Since then we got the issues/new/choose endpoint for issue templates and then we got yml forms 3 but pull request templates are still using the old, old way.

By the way, there is a PR #232 to update the issue template to the latest yaml form so that we can fill in issues more easily(In a GUI friendly way).

Context:
v1: accept query params for specfying template
v2: a GUI list chooser to choose different template
v3: GUI composer(md template-> yml template)
Issue is now at v3, but Pull Request is still at v1


Support findOne

I'm not sure if this package has supported findOne.
What I want is
Article.findOne({
  where: {
    id: 1001,
    isDeleted: false,
    status: "public"
  }
})
Article.findOne({
  where: {
    id: 1002,
    isDeleted: false,
    status: "public"
  }
})
Article.findOne({
  where: {
    id: 1003,
    isDeleted: false,
    status: "public"
  }
})
Article.findOne({
  where: {
    id: 1004,
    isDeleted: false,
    status: "draft"
  }
})
Article.findOne({
  where: {
    id: 1005,
    isDeleted: false,
    status: "draft"
  }
})
Article.findOne({
  where: {
    id: 1006,
    isDeleted: true,
    status: "private"
  }
})

these queries can be merged.
Basically, we should count distinct values of fields in where, and merge less distinct fields recursively.
For example, for above 6 queries,
distinct ids are 1001, 1002, 1003, 1004, 1005, 1006
distinct isDeleted are true and false
distinct status are public, draft, private.
Therefore, queries should be separated and collected by isDeleted first. That's
{
  isDeleted: false,
  queries: [
    {
      id: 1001,
      status: "public"
    },
    {
      id: 1002,
      status: "public"
    },
    {
      id: 1003,
      status: "private"
    },
    {
      id: 1004,
      status: "draft"
    },
    {
      id: 1005,
      status: "draft"
    },
  ]
}
// not show isDeleted: true

Then it can be merged again to be
{
  isDeleted: false,
  status: "public",
  id: [1001, 1002]
}

{
  isDeleted: false,
  status: "private",
  id: [1003]
}

{
  isDeleted: false,
  status: "draft",
  id: [1004,1005]
}

Where statements beyond primary key lookups are not currently supported


Add License File

No license specified. Must add LICENSE.md in root directory of the project.

Closed by 9c12176ffe47108342a98b4fb7bd2d2cd1fed9fc


decouple cvars from env

Connection Vars should eventually be an implementation details of the integration. This PR takes a step toward that goal by decoupling the env module vars supplied to scripts from the actual connection vars by adding a function to integrations to returns a configuration, instead of reading directly from the connection vars.

A lot of changes, but I don't see that many tests for it.

Actually, current tests cover it. This is a refactoring. (and they actually failed! and i fixed it!)


Fix Build - Publish binary to S3

Publish binary to S3 when tagging a release.

I think this need rebasing from #6.
This seems to do a lot more than just call the publish_s3 command.

Yeah, #6 had some problems - this abandons that and uses a different approach. The full change is to build the extension, store the artifacts in the workspace, then publish the artifacts to s3. This one works, the one in #6 does not :-)

Thanks for the extra info 😄


New ES6 modules functionality does not work with worktop?

a day ago cloudflare claimed support of ES6 modules
I tried basic example   for worktop
this one:

import { Router } from 'worktop';
import { listen } from 'worktop/cache';

const API = new Router();

// skiped all the rest

with usual toml config there are no problem
account_id = ""
name = "app-"
type = "javascript"
workers_dev = true
webpack_config = "webpack.config.js"
compatibility_date = "2021-11-12"

[site]
bucket = "./public"
entry-point = "workers-site"

[build]
command = " npx webpack --color --config ./workers-site/webpack.config.js --entry ./workers-site/index.js --mode development "

[build.upload]
 format = "service-worker"

wrangler dev
webpack 5.64.0 compiled successfully in 534 ms
🌀  Using namespace for Workers Site "__app_preview"
✨  Success
👂  Listening on http://<IP_ADDRESS>:9191
Then i rewrote wrangler.toml rules for ES6
[build.upload]
 format = "modules"
 dir = "./workers-site/dist"
 main = "./worker.js"

 [[build.upload.rules]]
 type = "ESModule"
 globs = ["**/*.js"]

and fail on
wrangler dev
🌀  Using namespace for Workers Site "_preview"
✨  Success
Error: Something went wrong with the request to Cloudflare...
Uncaught TypeError: Global addEventListener() cannot be used in modules. Instead, event handlers should be declared as exports on the root module.
at line 0
[API code: 10021]
Can you point me if i do something wrong? please, give some reasons on subject
Thanks you!

Module support is the main driver behind the work in worktop@next
Once this week is finished, I'll be finishing all loose ends here so that modules and Durable Objects are fully supported on the latest stable worktop release
There's also going to be a project scaffolder so that the Wrangler config is taken care of


Disabling NodePort's "hybrid" mode feature due to tunneling mode being enabled

This warning log was seen in k8s-1.11 net-next CI runs:
2020-04-03T08:41:11.340831926Z level=warning msg="Disabling NodePort's \"hybrid\" mode feature due to tunneling mode being enabled" subsys=daemon

What does it mean to "disable hybrid mode"?
We should avoid printing unnecessary warnings to the cilium-agent log for common Cilium configurations.

The tests run with global.nodePort.mode=hybrid which means that DSR is enabled for TCP connections (SNAT for UDP). As DSR is still not implemented for the tunneling mode, we disable DSR for TCP, so SNAT is used for both - TCP and UDP.
I'd keep the warning, as the configuration changes during runtime, which is not expected by a user.

The quick-install configures node-port-mode to hybrid and tunnel to vxlan as well.
Should we amend the helm templates to change node-port-mode to snat if tunnel is enabled?

I think hybrid was kept in the quick-install, because we expect to enable DSR for the vxlan soon (before v1.8).

OK cool, sounds like that would resolve my concern. I'll leave this here as release-blocker so we can review it when we get closer to the v1.8 final push and determine if any further changes are necessary.

From Cilium meeting:
Hybrid mode is not default any more any way, so less of a concern for v1.8.
This missing feature requires DSR for tunneling mode, then we will resolve this dependency. Should be doable in Cilium v1.9 timeframe.

Closing for now since hybrid is not default & we have other issues addressing implementation of tunneling for DSR.


I have a problem with starting my bot from emulator - BotFrameworkAdapter.processActivity(): 401 ERROR - NotBeforeError: jwt not active

I am developing a bot with Microsoft Bot Framework for Node.js.
I changed the LUIS App in the .bot file wit ha new one and then I generated a new botFileSecret, I tested my bot locally with the Bot Framework Emulator and everything just worked fine.
Then, I got this error:

Hi @montacerdk,
I'm a little confused by your issue; it's hard to diagnose without more information. You say that your bot was working locally within the Emulator just fine, but then you got the error in the title?
When exactly do you get that error? Is it when immediately starting a conversation with your bot, is it when sending a message after starting the conversation, or is it when only sending a message that contacts the LUIS service?

I just changed the LUIS App in the .bot file with these steps:

Decrypt the .bot file with the MSBot tools command.
Change the Subscrption Key and AppId
Encrypt the .bot file again
Update the .env file with the new .botFileSecret
Enter the new .botFileSecret to the emulator

I tested the new LUIS app after starting the bot, and everything is alright. suddenly, I got that Error above when I tried to test the bot with Emulator. it indicated a trouble with authentication (microsoftAppId and microsoftAppPassword).
I followed the instructions in this Troubleshooting Bot Framework authentication.
As a first step, If I delete the microsoftAppId and microsoftAppPassword from the .bot file and make their values null in the index.js file, the error disappears and I can test the bot from Emulator without any issue.
const adapter = new BotFrameworkAdapter({
  appId: null,
  appPassword: null
});

Then, in the second step, I sent this this request in order to check the validity of the appId and appPassword:
curl -X POST \
  https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token \
  -H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=<APP_ID>&client_secret=<APP_PWD>&scope=https://api.botframework.com/.default'

Then, I found out the the appId and appPassword are valid because I received the access token.
Response:
{
    "token_type": "Bearer",
    "expires_in": 3600,
    "ext_expires_in": 3600,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGGAKI..."
}

However, I was blocked in the third steps because the same error persists.
For now, the bot starts fine when I run it from VSCode, as shown in this picture.

Then, If I start the emulator and it tries to connect the bot I get the same error …

I hope that this explantion would be helpful to understand the issue.
Thanks,

@montacerdk are you still having this issue? It seems like something is wrong in the way you have your runtime configured. It's unclear if this is an issue with the BF Emulator.

@cwhitten, this issue was resolved by generating a new bot file secret.
Thank you.


Organisation Relations with Award and Lot

Good Morning,
We are using the OCDS ontology in a project with city hall in Spain. Studying how to apply the ontology we have realized that Organization only has relations with ContratingProcess but we need Organisation to be related to Award (direct and inverse relationship) and Lot (direct and inverse relationship). Because otherwise we do not know in case of having lots an Organization which of the lots has won.
Regards, and thank you very much.

The relationship isSupplierFor was already covering the relationship between Award or Contract and Organisation. This will be extended now to cover Lot, and the inverse relationship hasSupplier will be generated


Fix NPE for union queries

fix union queries-
filter non-existing datasources for union queries.

+1 We seem to be running into this problem.


Does not show up in SSMS v17.9.1

Although I followed all instructions both Manual and through Chocolatey, T-SQL Flex does not show up in the menu item. I got it to work on my secondary machine

For now it only works on older SSMS as Redgate didn’t update their adapter library.  This is a dup of #49.  Sorry- wish I had time to fix T-SQL Flex up for new SSMS.  PRs definitely accepted.


:package: update dependencies

:package: bump deno.land/std from 0.204.0 to 0.210.0
:package: bump deno.land/x/denops_test from v1.4.0 to v1.5.1
:package: bump deno.land/x/vim_channel_command from v2.0.0 to v3.0.0

Summary by CodeRabbit

Refactor

Updated various dependencies to enhance performance and compatibility.

Closed due to #302


regression: functions are unable to call external services

What needs to be done ?

Allow microVms networks to call external networks

Why it needs to be done ?

Latest release 1.1.0-rc1 changed the iptables behavior and created this bug

I'm working on a fix for this one !


Use .L as prefix for jtbl labels

For some reason using LXXXXXXXX labels for jumptable labels messes with asm differ, preventing using it at any function with jumptables, at least on gcc kmc. Using .LXXXXXXXX (with a dot prefix) seems to fix this issue.
As a reference, this is the traceback of asm differ:
Traceback (most recent call last):
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 3359, in <module>
    main()
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 3304, in main
    display = Display(basedump, mydump, config)
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 3130, in __init__
    self.base_lines = process(basedump, config)
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 2255, in process
    original, reloc_symbol = processor.process_reloc(reloc_row, original)
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 1491, in process_reloc
    repl = row.split()[-1] + reloc_addend_from_imm(imm, before, self.config.arch)
  File "/home/angie/Documents/n64decomp/drmario64/./diff.py", line 2095, in reloc_addend_from_imm
    mnemonic = before.split()[0]
IndexError: list index out of range

(This happens if jump table targets use glabel and glabel does not mark symbols as ST_FUNC. If glabel does do that it works, albeit with ugly output where branch targets look like "LXXXXXXXX + ...".)

I tried adding .type \label, @function to the labels and it didn't work


Vulnerability found on flask-admin

Hello!
Just want to call out a vulnerability found on flask-admin/helpers
https://nvd.nist.gov/vuln/detail/CVE-2018-16516
Cheers!

Thanks for the bump, released a new version.


chore(package): update got to version 11.1.0

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Script Explanation

The script explanation section is not relevant to the actual script. New-AzDiskConfig and New-AzDisk are not used in the script.

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

ID: ae92b44d-6543-c573-1b48-76e220a2510a
Version Independent ID: 57b7f53e-3e55-0f38-fcf0-9121e766735a
Content: Azure PowerShell Script Sample -  Create a snapshot from a VHD to create multiple identical managed disks in small amount of time
Content Source: articles/virtual-machines/scripts/virtual-machines-windows-powershell-sample-create-snapshot-from-vhd.md
Service: virtual-machines-windows
GitHub Login: @ramankumarlive
Microsoft Alias: ramankum

@rwwinn1 valid point
@ramankumarlive could you take a look?
CC @cynthn

#reassign: @MicahMcKittrick-MSFT

I fixed this. Once the PR merges the changes will go live after a few hours.
#please-close


Fairplay (HLS) request error

Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
Lastest
Please ask your question
Hello,
I'm trying to configure Shaka player with a fairplay encryption but when I try to do a request to the license server I get :
"Origin http://<IP_ADDRESS>:8080 is not allowed by Access-Control-Allow-Origin."
I know what this error mean : it's about CORS, but when I'm doing the exact same request on Postman (or Insomnia) the request works, after some researches I found that Postman (and Insomnia) doesn't act like a browser so doesn't care about CORS. So how could I make my javascript act like Postman ? Does create a proxy which does the request would be a working workaround ? If yes, can you provide a example ?

Here is my javascript which is almost the doc example :
let contentId;

export async function configureFairPlayDrm() {
    const req = await fetch('cert/test.cer');
    const cert = await req.arrayBuffer();

    player.configure('drm.advanced.com\\.apple\\.fps\\.1_0.serverCertificate',
        new Uint8Array(cert));

    // Content ID
    configureFairPlayContentID();

    // License Wrapping
    configureFairPlayLicenseWrapping();
}

function configureFairPlayContentID() {
    player.configure('drm.initDataTransform', (initData, initDataType) => {
        if (initDataType != 'skd') {
            return initData;
        }

        contentId = shaka.util.FairPlayUtils.defaultGetContentId(initData);
        const cert = player.drmInfo().serverCertificate;

        return shaka.util.FairPlayUtils.initDataTransform(initData, contentId, cert);
    });
}

function configureFairPlayLicenseWrapping() {
    player.getNetworkingEngine().registerRequestFilter((type, request) => {
        if (type != shaka.net.NetworkingEngine.RequestType.LICENSE) {
            return;
        }

        const json = // HERE IS MY JSON FOR THE REQUEST
        const wrappedJson = JSON.stringify(json);

        request.headers['Content-Type'] = 'application/json';
        request.body = shaka.util.StringUtils.toUTF8(wrappedJson);
    });

    player.getNetworkingEngine().registerResponseFilter((type, response) => {
        if (type != shaka.net.NetworkingEngine.RequestType.LICENSE) {
            return;
        }

        let responseText = shaka.util.StringUtils.fromUTF8(response.data);
        // Trim whitespace.
        responseText = responseText.trim();

        // Look for <ckc> wrapper and remove it.
        if (responseText.substr(0, 5) === '<ckc>' &&
            responseText.substr(-6) === '</ckc>') {
            responseText = responseText.slice(5, -6);
        }

        // Decode the base64-encoded data into the format the browser expects.
        response.data = shaka.util.Uint8ArrayUtils.fromBase64(responseText).buffer;
    });
}

So how could I make my javascript act like Postman ?

You can't, in general.  CORS rules are built into the browser to prevent cross-site scripting attacks.  You can disable them in some browsers via a command line flag or developer setting, you can't disable CORS for everyone else who accesses your site.

Does create a proxy which does the request would be a working workaround ?

Yes, there are CORS proxies, but the best solution is to add the necessary CORS response headers on the server to allow access to your content from other origins.  You can use "*" to allow access from every origin, or you can make a list of the specific origins you want to allow.
Since <IP_ADDRESS> in your example is a local IP, I'm assuming this is a server you have some control over.  You can find helpful configuration docs for CORS on a wide variety of web servers here: https://enable-cors.org/server.html
Does this help?


cleaned up generate() in dart/mod.rs

split the big function up into some smaller functions with descriptive names

Feedback is welcome 🙂

LGTM, good work :)
Btw CI is failing (though not due to this PR). Do you have interest in fixing it, such that after the CI passes I will merge this PR.

I would love to, but I can't really tell what went wrong on the CI, the errors are really vague... If I look at the commit history it started failing at a point when you just updated some docs, so it isn't really clear what is causing it to fail.

Yes. I suspect it is because, either Flutter upgrades, or GitHub Actions runtime upgrades.
Anyway, maybe fire an issue at proper places - StackOverflow / github issues of flutter.

/Users/runner/hostedtoolcache/flutter/3.0.2-stable/x64/bin/internal/shared.sh: line 225: /Users/runner/hostedtoolcache/flutter/3.0.2-stable/x64/bin/cache/dart-sdk/bin/dart: Bad CPU type in executable
Error: Process completed with exit code 1.

Yeah, maybe GitHub started using M1 based Macs. I'll try installing rosetta before running the tests.

Btw you may use a shell command to print out "is this a x86 or M1 macos", so we will know exactly

Good point, but it seems like they are using x86_64 still, since it says rosetta is not available on the system.

Great job!


Fix NanoBoyAdvance IRQ delay test

A real device shows nop_2, nop_3, nop_4 and then has lol irq after 4 and after 5 instead of after 2 and 3 as well.
Not sure exactly what this is even testing but I'm close enough to not worry overly much


Add a helper to get a stream by name.

Not sure if 'named_stream' is the best name. Open to suggestions.

This is used for looking up the '/names' stream which is where the file names for the line information is stored. It corresponds to https://github.com/llvm-mirror/llvm/blob/205cff101830ef0cb2510ec3cce5e04759257acc/lib/DebugInfo/PDB/Native/PDBFile.cpp#L373

Fair enough. Thanks!


Client RTSP / HEVC Problems with Multiple Clients

Which version are you using?
v0.19.2
Which operating system are you using?

[ ] Linux amd64 standard
[ ] Linux amd64 Docker
[ ] Linux arm64 standard
[ ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[x] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue
When running with 2 cameras (inputs) + 4 clients, starting to get errors intermittently in client decoders (note the lines starting with [rtsp @...] and [hevc @...] .
The only thing I've found to help is increasing readBufferCount ... but not sure what values to use there or how high to go. I have it up at 4096 and still getting problems. Should I go higher? Are there other values I can tweak?
(I've tried setting sourceProto to TCP but TCP vs UDP makes no difference on the cameras as far as these errors are concerned)
7-16T20:18:01+00:00: + Add    rfm1328 @31088 d=13 Noned ['rfm1328']
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:18:01+00:00:   <Similarity> Use rfm1328, Skip rfm1328
DEBUG:vgcam_Littlefield_Exit:2022-07-16T20:18:01+00:00: Skip static (30377, 0)
INFO:vgcam_Littlefield_Enterance:2022-07-16T20:18:01+00:00: Health Score: 55%
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq bb43 expected=abac
[hevc @ 0x3f4f380] Could not find ref with POC 0
[hevc @ 0x4074c80] Non-matching NAL types of the VCL NALUs: 1 19
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq ad68 expected=bd04
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq bd68 expected=add0
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:18:02+00:00: Skip static (31112, 0)
[hevc @ 0x4064e80] Could not find ref with POC 18
[hevc @ 0x27f8800] Non-matching NAL types of the VCL NALUs: 1 19
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq ae7b expected=be0f
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq e366 expected=e3d2
[hevc @ 0x406e540] Could not find ref with POC 5
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq be31 expected=ae9d
[hevc @ 0x3f35540] Could not find ref with POC 30
[hevc @ 0x404ae40] The cu_qp_delta -27 is outside the valid range [-26, 25].
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq af5a expected=beed
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq bef8 expected=af66
[hevc @ 0x27f8800] Could not find ref with POC 43
DEBUG:vgcam_Littlefield_Exit:2022-07-16T20:18:03+00:00: Skip static (30404, 0)
INFO:vgcam_Littlefield_Exit:2022-07-16T20:18:04+00:00: Health Score: 50%
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:18:05+00:00: Skip static (31135, 0)
DEBUG:vgcam_Littlefield_Exit:2022-07-16T20:18:06+00:00: Skip static (30432, 0)
INFO:vgcam_Littlefield_Enterance:2022-07-16T20:18:06+00:00: Health Score: 55%
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:18:07+00:00: Skip static (31161, 0)
...
[hevc @ 0x4064e80] Non-matching NAL types of the VCL NALUs: 1 19
[hevc @ 0x406e540] Could not find ref with POC 0
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f091 expected=e0f5
[hevc @ 0x3f35540] Could not find ref with POC 12
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq e181 expected=f119
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq eb78 expected=ebe0
[hevc @ 0x3f35540] Could not find ref with POC 5
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f157 expected=e1c0
[hevc @ 0x3dbcd80] Could not find ref with POC 24
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq e20f expected=f1a5
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq eb7c expected=ebe6
[hevc @ 0x3f35540] Could not find ref with POC 11
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f21c expected=e287
[hevc @ 0x406e540] Could not find ref with POC 37
INFO:vgcam_Littlefield_Exit:2022-07-16T20:20:15+00:00: Health Score: 50%
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq e2f2 expected=f287
[hevc @ 0x4064e80] Could not find ref with POC 22
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq eb84 expected=ebef
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f2e3 expected=e34f
[hevc @ 0x3f4f380] Could not find ref with POC 0
[hevc @ 0x4074c80] Non-matching NAL types of the VCL NALUs: 1 19
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq e6f2 expected=f688
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f69a expected=e704
[hevc @ 0x3f4f380] Could not find ref with POC 12
[hevc @ 0x3f4f380] The cu_qp_delta 101 is outside the valid range [-26, 25].
[hevc @ 0x3dbcd80] Could not find ref with POC 33
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq e7ae expected=f742
INFO:vgcam_Littlefield_Enterance:2022-07-16T20:20:17+00:00: Health Score: 55%
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq eba3 expected=ec0f
[hevc @ 0x404ae40] Could not find ref with POC 22
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq f763 expected=e7cf
[hevc @ 0x4074c80] Could not find ref with POC 48
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:20:18+00:00: Empty (32636, 0)
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:20:18+00:00: Empty (32636, 1)
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:20:19+00:00: + Add    nfm1329 @32646 d=4 Noned ['nfm1329']
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:20:19+00:00:   <Similarity> Use rfm1328, Skip nfm1329
DEBUG:vgcam_Littlefield_Exit:2022-07-16T20:20:19+00:00: Skip static (31850, 0)
DEBUG:vgcam_Littlefield_Enterance:2022-07-16T20:20:20+00:00: Empty (32646, 0)
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq ec52 expected=fbe3
INFO:vgcam_Littlefield_Exit:2022-07-16T20:20:20+00:00: Health Score: 50%
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq fbf1 expected=ec60
[hevc @ 0x3f35540] Could not find ref with POC 19
[hevc @ 0x4074c80] Could not find ref with POC 46
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq ec7e expected=fc10
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq ebc2 expected=ec30
[hevc @ 0x3dbcd80] Could not find ref with POC 22
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq fc57 expected=ecc4
[rtsp @ 0x3d987c0] RTP: PT=60: bad cseq ecd1 expected=fc64
[rtsp @ 0x3d987c0] RTP: PT=61: bad cseq ebc5 expected=ec32

Describe how to replicate the issue

Start server with 2x 4K cameras at full res
Attach Plate Recognizer to both output streams (https://github.com/parkpow/deep-license-plate-recognition)
Attach VLC to both both output streams
Watch logs of Plate Recognizer

Did you attach the server logs?

N/A
Did you attach a network dump?

No
Config being used for the rtsp-simple-server instance (passwords removed):
# With appros port-forwarding and SSH configs,
# can view this on my local mac as:
# /Applications/VLC.app/Contents/MacOS/VLC rtsp://localhost:10554/exit-cam
# /Applications/VLC.app/Contents/MacOS/VLC rtsp://localhost:10554/enter-cam

###############################################
# General parameters

# Sets the verbosity of the program; available values are "error", "warn", "info", "debug".
logLevel: info
# Destinations of log messages; available values are "stdout", "file" and "syslog".
logDestinations: [stdout]
# If "file" is in logDestinations, this is the file which will receive the logs.
logFile: rtsp-simple-server.log

# Timeout of read operations.
readTimeout: 5s
# Timeout of write operations.
writeTimeout: 10s
# Number of read buffers.
# A higher number allows a wider throughput, a lower number allows to save RAM.
readBufferCount: 4096

# HTTP URL to perform external authentication.
# Every time a user wants to authenticate, the server calls this URL
# with the POST method and a body containing:
# {
#   "ip": "ip",
#   "user": "user",
#   "password": "password",
#   "path": "path",
#   "action": "read|publish"
#   "query": "url's raw query"
# }
# If the response code is 20x, authentication is accepted, otherwise
# it is discarded.
externalAuthenticationURL:

# Enable the HTTP API.
api: no
# Address of the API listener.
apiAddress: <IP_ADDRESS>:9997

# Enable Prometheus-compatible metrics.
metrics: no
# Address of the metrics listener.
metricsAddress: <IP_ADDRESS>:9998

# Enable pprof-compatible endpoint to monitor performances.
pprof: no
# Address of the pprof listener.
pprofAddress: <IP_ADDRESS>:9999

# Command to run when a client connects to the server.
# This is terminated with SIGINT when a client disconnects from the server.
# The following environment variables are available:
# * RTSP_PORT: server port
runOnConnect:
# Restart the command if it exits suddenly.
runOnConnectRestart: no

###############################################
# RTSP parameters

# Disable support for the RTSP protocol.
rtspDisable: no
# List of enabled RTSP transport protocols.
# UDP is the most performant, but doesn't work when there's a NAT/firewall between
# server and clients, and doesn't support encryption.
# UDP-multicast allows to save bandwidth when clients are all in the same LAN.
# TCP is the most versatile, and does support encryption.
# The handshake is always performed with TCP.
protocols: [udp, multicast, tcp]
# Encrypt handshake and TCP streams with TLS (RTSPS).
# Available values are "no", "strict", "optional".
encryption: "no"
# Address of the TCP/RTSP listener. This is needed only when encryption is "no" or "optional".
rtspAddress: :8554
# Address of the TCP/TLS/RTSPS listener. This is needed only when encryption is "strict" or "optional".
rtspsAddress: :8322
# Address of the UDP/RTP listener. This is needed only when "udp" is in protocols.
rtpAddress: :8000
# Address of the UDP/RTCP listener. This is needed only when "udp" is in protocols.
rtcpAddress: :8001
# IP range of all UDP-multicast listeners. This is needed only when "multicast" is in protocols.
multicastIPRange: <IP_ADDRESS>/16
# Port of all UDP-multicast/RTP listeners. This is needed only when "multicast" is in protocols.
multicastRTPPort: 8002
# Port of all UDP-multicast/RTCP listeners. This is needed only when "multicast" is in protocols.
multicastRTCPPort: 8003
# Path to the server key. This is needed only when encryption is "strict" or "optional".
# This can be generated with:
# openssl genrsa -out server.key 2048
# openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
serverKey: server.key
# Path to the server certificate. This is needed only when encryption is "strict" or "optional".
serverCert: server.crt
# Authentication methods.
authMethods: [basic, digest]

###############################################
# RTMP parameters

# Disable support for the RTMP protocol.
rtmpDisable: no
# Address of the RTMP listener.
rtmpAddress: :1935

###############################################
# HLS parameters

# Disable support for the HLS protocol.
hlsDisable: no
# Address of the HLS listener.
hlsAddress: :8888
# By default, HLS is generated only when requested by a user.
# This option allows to generate it always, avoiding the delay between request and generation.
hlsAlwaysRemux: no
# Variant of the HLS protocol to use. Available options are:
# * mpegts - uses MPEG-TS segments, for maximum compatibility.
# * fmp4 - uses fragmented MP4 segments, more efficient.
# * lowLatency - uses Low-Latency HLS.
hlsVariant: mpegts
# Number of HLS segments to keep on the server.
# Segments allow to seek through the stream.
# Their number doesn't influence latency.
hlsSegmentCount: 7
# Minimum duration of each segment.
# A player usually puts 3 segments in a buffer before reproducing the stream.
# The final segment duration is also influenced by the interval between IDR frames,
# since the server changes the duration in order to include at least one IDR frame
# in each segment.
hlsSegmentDuration: 1s
# Minimum duration of each part.
# A player usually puts 3 parts in a buffer before reproducing the stream.
# Parts are used in Low-Latency HLS in place of segments.
# Part duration is influenced by the distance between video/audio samples
# and is adjusted in order to produce segments with a similar duration.
hlsPartDuration: 200ms
# Maximum size of each segment.
# This prevents RAM exhaustion.
hlsSegmentMaxSize: 50M
# Value of the Access-Control-Allow-Origin header provided in every HTTP response.
# This allows to play the HLS stream from an external website.
hlsAllowOrigin: '*'
# Enable TLS/HTTPS on the HLS server.
# This is required for Low-Latency HLS.
hlsEncryption: no
# Path to the server key. This is needed only when encryption is yes.
# This can be generated with:
# openssl genrsa -out server.key 2048
# openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
hlsServerKey: server.key
# Path to the server certificate.
hlsServerCert: server.crt
# List of IPs or CIDRs of proxies behind the HLS server.
# If the server receives a request from one of these entries, IP in logs
# will be taken from the X-Forwarded-For header.
hlsTrustedProxies: []

###############################################
# Path parameters

# These settings are path-dependent, and the map key is the name of the path.
# It's possible to use regular expressions by using a tilde as prefix.
# For example, "~^(test1|test2)$" will match both "test1" and "test2".
# For example, "~^prefix" will match all paths that start with "prefix".
# The settings under the path "all" are applied to all paths that do not match
# another entry.
paths:
  enter-cam:
    source: rtsp://X:X@<IP_ADDRESS>:554/
    # sourceProtocol: udp
  exit-cam:
    source: rtsp://X:X@<IP_ADDRESS>:554/
    # sourceProtocol: udp

  all:
    # Source of the stream. This can be:
    # * publisher -> the stream is published by a RTSP or RTMP client
    # * rtsp://existing-url -> the stream is pulled from another RTSP server / camera
    # * rtsps://existing-url -> the stream is pulled from another RTSP server / camera with RTSPS
    # * rtmp://existing-url -> the stream is pulled from another RTMP server
    # * http://existing-url/stream.m3u8 -> the stream is pulled from another HLS server
    # * https://existing-url/stream.m3u8 -> the stream is pulled from another HLS server with HTTPS
    # * redirect -> the stream is provided by another path or server
    source: publisher

    # If the source is an RTSP or RTSPS URL, this is the protocol that will be used to
    # pull the stream. available values are "automatic", "udp", "multicast", "tcp".
    sourceProtocol: automatic

    # Tf the source is an RTSP or RTSPS URL, this allows to support sources that
    # don't provide server ports or use random server ports. This is a security issue
    # and must be used only when interacting with sources that require it.
    sourceAnyPortEnable: no

    # If the source is a RTSPS or HTTPS URL, and the source certificate is self-signed
    # or invalid, you can provide the fingerprint of the certificate in order to
    # validate it anyway. It can be obtained by running:
    # openssl s_client -connect source_ip:source_port </dev/null 2>/dev/null | sed -n '/BEGIN/,/END/p' > server.crt
    # openssl x509 -in server.crt -noout -fingerprint -sha256 | cut -d "=" -f2 | tr -d ':'
    sourceFingerprint:

    # If the source is an RTSP or RTMP URL, it will be pulled only when at least
    # one reader is connected, saving bandwidth.
    sourceOnDemand: no
    # If sourceOnDemand is "yes", readers will be put on hold until the source is
    # ready or until this amount of time has passed.
    sourceOnDemandStartTimeout: 10s
    # If sourceOnDemand is "yes", the source will be closed when there are no
    # readers connected and this amount of time has passed.
    sourceOnDemandCloseAfter: 10s

    # If the source is "redirect", this is the RTSP URL which clients will be
    # redirected to.
    sourceRedirect:

    # If the source is "publisher" and a client is publishing, do not allow another
    # client to disconnect the former and publish in its place.
    disablePublisherOverride: no

    # If the source is "publisher" and no one is publishing, redirect readers to this
    # path. It can be can be a relative path  (i.e. /otherstream) or an absolute RTSP URL.
    fallback:

    # Username required to publish.
    # SHA256-hashed values can be inserted with the "sha256:" prefix.
    publishUser:
    # Password required to publish.
    # SHA256-hashed values can be inserted with the "sha256:" prefix.
    publishPass:
    # IPs or networks (x.x.x.x/24) allowed to publish.
    publishIPs: []

    # Username required to read.
    # SHA256-hashed values can be inserted with the "sha256:" prefix.
    readUser:
    # password required to read.
    # SHA256-hashed values can be inserted with the "sha256:" prefix.
    readPass:
    # IPs or networks (x.x.x.x/24) allowed to read.
    readIPs: []

    # Command to run when this path is initialized.
    # This can be used to publish a stream and keep it always opened.
    # This is terminated with SIGINT when the program closes.
    # The following environment variables are available:
    # * RTSP_PATH: path name
    # * RTSP_PORT: server port
    # * G1, G2, ...: regular expression groups, if path name is
    #   a regular expression.
    runOnInit:
    # Restart the command if it exits suddenly.
    runOnInitRestart: no

    # Command to run when this path is requested.
    # This can be used to publish a stream on demand.
    # This is terminated with SIGINT when the path is not requested anymore.
    # The following environment variables are available:
    # * RTSP_PATH: path name
    # * RTSP_PORT: server port
    # * G1, G2, ...: regular expression groups, if path name is
    #   a regular expression.
    runOnDemand:
    # Restart the command if it exits suddenly.
    runOnDemandRestart: no
    # Readers will be put on hold until the runOnDemand command starts publishing
    # or until this amount of time has passed.
    runOnDemandStartTimeout: 10s
    # The command will be closed when there are no
    # readers connected and this amount of time has passed.
    runOnDemandCloseAfter: 10s

    # Command to run when the stream is ready to be read, whether it is
    # published by a client or pulled from a server / camera.
    # This is terminated with SIGINT when the stream is not ready anymore.
    # The following environment variables are available:
    # * RTSP_PATH: path name
    # * RTSP_PORT: server port
    # * G1, G2, ...: regular expression groups, if path name is
    #   a regular expression.
    runOnReady:
    # Restart the command if it exits suddenly.
    runOnReadyRestart: no

    # Command to run when a clients starts reading.
    # This is terminated with SIGINT when a client stops reading.
    # The following environment variables are available:
    # * RTSP_PATH: path name
    # * RTSP_PORT: server port
    # * G1, G2, ...: regular expression groups, if path name is
    #   a regular expression.
    runOnRead:
    # Restart the command if it exits suddenly.
    runOnReadRestart: no

And here's the config I'm using for the Plate Recognizer, edited to remove sensitive paths:
# Instructions:
# https://app.platerecognizer.com/stream-docs

# Timezone configuration: https://guides.platerecognizer.com/docs/stream/configuration#timezone
timezone = UTC

[cameras]
  # Full list of regions: http://docs.platerecognizer.com/#countries
  regions = us-tx, us # fr, gb

  # Sample 1 out of X frames. A high number will result in less compute.
  # A low number is preferred for a stream with fast moving vehicles
  sample = 1
  # Setting low due to planned usage of making videos from images

  # Maximum delay in seconds before a prediction is returned
  max_prediction_delay = 2
  # Default 6 - lowering to 2 for better result correlation

  # Maximum time in seconds that a result stays in memory
  memory_decay = 500
  # Default is 300, lowering to X seconds in case the vehicle exits quickly

  # Enable make, model and color prediction. Your account must have that option.
  mmc = false

  # Image file name: https://guides.platerecognizer.com/docs/stream/configuration#image_format
  image_format =
  # Disabled because don't want to save images right now
  # Default: $(camera)_screenshots/%y-%m-%d/%H-%M-%S.%f.jpg

  # Webhook image type. Use "vehicle" to send only the vehicle image or "original" to
  # send the full-size image. This setting can be used at the camera level too.
  webhook_image_type = original

  # When a webhook is sent, the request will time out after n seconds and retry later.
  # webhook_request_timeout = 30

  # Only accept the results that exactly match the templates of the specified regions.
  # region_config = strict

  # Only accept license plates when a vehicle is also detected.
  # detection_rule = strict

  # Beta - Detect vehicles without a license plate. One of: plate, vehicle
  # detection_mode = plate

  # Advanced - Number of steps used to merge unique vehicles. A low number will increase compute.
  # If set to -1, it is automatically picked (default).
  # merge_buffer = -1

  [[vgcam_Littlefield_Enterance]]
    active = yes
    url = rtsp://host.docker.internal:8554/enter-cam
    webhook_targets = https://hosts/webhooks/platerec
    webhook_image = yes
    webhook_caching = no

  [[vgcam_Littlefield_Exit]]
    active = yes
    url = rtsp://host.docker.internal:8554/exit-cam
    webhook_targets = https://host/webhooks/platerec
    webhook_image = yes
    webhook_caching = no

Not sure if this helps at all, but even ffmpeg complains about the stream it's getting (see "Non-monotonous DTS in output stream" below)
This was discovered after adding the ffmpeg command shown in https://github.com/aler9/rtsp-simple-server#save-streams-to-disk for saving streams to disk
2022/07/16 15:55:28 INF [path exit-cam] runOnReady command started
2022/07/16 15:55:28 INF [path exit-cam] [rtsp source] ready
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1<IP_ADDRESS>)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
2022/07/16 15:55:28 INF [RTSP] [conn [::1]:61624] opened
2022/07/16 15:55:28 INF [RTSP] [session 690179960] created by [::1]:61624
2022/07/16 15:55:28 INF [RTSP] [session 690179960] is reading from path 'exit-cam', 2 tracks with UDP
2022/07/16 15:55:29 INF [RTSP] [conn <IP_ADDRESS>:61625] opened
2022/07/16 15:55:29 INF [RTSP] [session 892534563] created by <IP_ADDRESS>:61625
2022/07/16 15:55:29 INF [RTSP] [session 892534563] is reading from path 'exit-cam', 2 tracks with TCP
Input #0, rtsp, from 'rtsp://localhost:8554/exit-cam':
  Metadata:
    title           : Stream
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 24.92 tbr, 90k tbn, 90k tbc
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
[segment @ 0x7ff406813a00] Opening '/tmp/gcap/exit-cam_2022-07-16_15-55-31.ts' for writing
Output #0, segment, to '/tmp/gcap/exit-cam_%Y-%m-%d_%H-%M-%S.ts':
  Metadata:
    title           : Stream
    encoder         : Lavf58.76.100
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, q=2-31, 24.92 tbr, 90k tbn, 90k tbc
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[segment @ 0x7ff406813a00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[segment @ 0x7ff406813a00] Non-monotonous DTS in output stream 0:0; previous: 5296621, current: 5290985; changing to 5296622. This may result in incorrect timestamps in the output file.
[segment @ 0x7ff406813a00] Non-monotonous DTS in output stream 0:0; previous: 5296622, current: 5294592; changing to 5296623. This may result in incorrect timestamps in the output file.
[segment @ 0x7ff406813a00] Opening '/tmp/gcap/exit-cam_2022-07-16_15-56-30.ts' for writing
[segment @ 0x7ff406813a00] Non-monotonous DTS in output stream 0:0; previous: 8892995, current: 8886910; changing to 8892996. This may result in incorrect timestamps in the output file.
[segment @ 0x7ff406813a00] Non-monotonous DTS in output stream 0:0; previous: 8892996, current: 8890517; changing to 8892997. This may result in incorrect timestamps in the output file.
[segment @ 0x7ff406813a00] Opening '/tmp/gcap/exit-cam_2022-07-16_15-57-30.ts' for writing

Any traction on this issue? Major problem and blocker for us

Hello,
The server uses a ring buffer (https://en.wikipedia.org/wiki/Circular_buffer) in order to read streams from cameras and write streams to readers. readBufferCount is used to tune the size of that buffer and indicates the maximum number of packets that are kept into the server, waiting to be sent to clients.
If you're having problems when the number of connected client increases, it means that there's a bottleneck, either at the CPU level or at the network level, and the ring buffer can't keep up and starts discarding packets. It happens when the server isn't able to read or write packets fast enough.
You can

increase buffer count
switch to TCP (that has a OS-level buffer that helps in this case)
reduce the bitrate of the streams
improve the bandwidth of your network


Name resolving error for methods

Feature
hits = []

def _x(a, b):
    return 1

class A:

    def _x(self, b):
        assert(not hits)
        hits.append(1)
        return _x(self, b) + 1

a = A()
assert a._x(0) == 2

this is working for CPython but stack overflow(caught by assert (not hits)) in RustPython

I think this is because we very simply treat a class as a scope, rather than as a store for attributes in the build class stage but not when you're using methods.

Agreed, this is a scoping thing which is obviously wrong.

@cthulahoops what is your view on this?

Yes, definitely a scoping bug, here's the simple example:
y = 7
class A:
    y = 8
    assert y == 8
    def __init__(self):
        assert y == 7
A()

It's weird because we end up with two different scopes, the one captured by def and class, and the one used by other code.

It appears the scope which is used during runtime is different then the scope used during construction of the class.

I think the fix is to tag the scope as an attribute scope and then the function/class/lambda def can check and remove it from the scope for the function.
I was wondering if we can have the compiler generate slightly different code for declarations inside classes and avoid the work at runtime, but I don't think that works:
>>> c = compile("f = lambda self: y", "", "exec")
>>> class A():
...     y = 5
...     exec(c)

I think the trick is to assign proper tags to scopes.
This documentation gives a hint already: https://docs.python.org/3/library/symtable.html?highlight=symtable#symtable.symtable
I will check it out further.

I tried to search through cpython, micropython and gpython, but I could not find where this behavior is implemented. Should it be implemented in the compiler, bytecode, during runtime?

Maybe the trick lies within the build_class builtin method?

I don't think the built in can do it alone. I think it has to be in the runtime handling of function def (etc.), but I'm not sure.

What if we checked the type of the surrounding scope in the MakeFunction  instruction?

The given example codes are now working. If this is not finished yet, please reopen this issue.


Checks mbedtls_rsa_export return in fuzz targets

Description
Checks mbedtls_rsa_export return in fuzz targets
It should always return 0
cf https://github.com/ARMmbed/mbedtls/pull/1622#discussion_r369109172
Status
READY
Requires Backporting
NO
Migrations
NO
Additional comments
Should I add a Changelog entry ?
Todos

[ ] Tests
[ ] Documentation
[ ] Changelog updated
[ ] Backported

Steps to test or reproduce
Outline the steps to test or reproduce the PR here.

And so, here is https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20467
Let me know if you want me to look at it

@catenacyber Thanks, but it's ok, we're on it.


contractcourt+routing: create optional runtime config to never go to chain for purely outbound HTLCs

Today, if we make an outgoing payment, and it never gets canceled back, we'll eventually try to go on chain to claim the HTLC ourselves. This makes sense to do in most scenarios (*), but if this is a "leaf node" or the outgoing HTLC was created by our node, then we aren't at risk at all if we don't go to chain ASAP. Instead, we can just leave the HTLC on the commitment transaction, maybe it gets cancelled back. If not, we do have the opportunity cost of not being able to use that suspended HTLC amount for further payments. At a certain point, our slots might full up, so we'd be forced to do so.
Steps To Completion

[ ] Add new config option detailed above.

[ ] Update the ChannelArb to indirectly have access to the switch's circuit map state.

[ ] Use that new state within the shouldGoToChain function to defer going to chain if the HTLC has expired, but it's a pure outgoing HTLC (the incoming key in the circuit map is all zeroes).

Maybe we could aim this for 0.19 along with #1226?

This would massively improve the UX for mobile LND users