Express example?

Could you provide an example on how to use this with express instead of tinyhttp?
Since express.Application does not support generics, I can't figure out how to make the ts-compiler accept app.use(tinyws()) -- it doesn't accept TinyWSRequest as a parameter.

One way to fix it seems to be making TinyWSRequest extend express.Request instead of http.IncomingMessage.
Not sure if there's a way to make this compatible for tinyhttp at the same time, though..

try with
declare module 'express' {
  interface Request { ... }
}

I came here from your comment on express-ws and attempted to use the example on the thread there, it doesn't work.
Is it possible to get an updated example for usage with express?

try with
declare module 'express' {
  interface Request { ... }
}

I'm not sure what to do with this. Can you elaborate? It seems you left out the crucial part.

in which way it doesn't work?

It's not compatible as an Express middleware.
app.use(tinyws())

=
TS2769: No overload matches this call.
 The last overload gave the following error.
   Argument of type '(req: TinyWSRequest, _: unknown, next: () => void | Promise<void>) => Promise<void>' is not assignable to parameter of type 'PathParams'.
     Type '(req: TinyWSRequest, _: unknown, next: () => void | Promise<void>) => Promise<void>' is missing the following properties from type '(string | RegExp)[]': pop, push, concat, join, and 28 more.


Pipeline testing with singularity containers for snakemake rules

Is your feature request related to a problem? Please describe.
For the development time we might work in conda virtual environments but for the final version the snakemake pipeline should be executable with both --use-conda and --use-singularity flags. At some point CI needs to be testing the containerized execution as well.
Describe the solution you'd like
Add the call with --use-singularity to the CI; conda env. would have to be updated. Is it possible to use singularity on Travis at all?

@krish8484 - could you please start looking into this one as well?
As I wrote above, for better contenarization, in the end, we might execute the rules in singularity containers. this would require another bash execution script in the integration test with the described above substitution to the snakemake call. On top of that, each rule in the Snakefile will have to get an additional field - singularity: which points to a URL of a container @ DockerHub.
Please take a look at the Snakefile of our zarp pipeline:
https://git.scicore.unibas.ch/zavolan_group/pipelines/zarp/-/blob/dev/Snakefile
Could you please find out is it possible to use singularity on Travis at all? If so - we would add this second pipeline execution (i.e. calling bash execution script) to the Travis CI as well.
For now - you do not have to test md5 checksums again, it is enough we do all the comparisons during unit-testing and integration test while running pipeline steps in conda envs. Just add one more pipeline run to the CI to test whether the singularity mechanism works fine for us.

There is one important note here - you have to make sure that all the software versions in conda envs and in docker containers are exactly the same. If not - executing the pipeline in virtual environments could potentially lead to different calculations results than running it in containers.
During your work on that issue you most probably will encounter such statement true:
Not for every combination of packages you specified in YAML recipes for conda envs there exist a Docker container at the DockerHub which has exactly the same versions of the software.
To minimize the work I would recoomend you to:

First, check what is available out there and modify your YAML files. That is easier and maybe you do not "the newest pandas" at all...
If you really cannot find anything close and you cannot make a reasonable "match" then make an issue here - feature request with specifications of what container you are asking for. Assing the issue to me and I will make a proper Docker container and upload it to DockerHub.

Apologies, I am not too familiar with this technology

First, check what is available out there and modify your YAML files.

I assume I have to check what is available at DockerHub. But how should I search for these python packages?

snakemake downloads Docker containers, don't mind the middle-step conversion to singularity. This issue is related to using proper Dockerfiles from DockerHub.
Yes, try to find such images (best from reasonable sources, not a random user) that would contain packages specified in the YAML. If you find a good candidate please try to match versions - easier to update versions in the YAML and test run.

I was not able to find python packages in dockerfiles close to ours. I suggest we write new ones.

I am looking through all pipeline environments in the workflow, we have 5 YAML files:

bash - I am quite sure there is a official bash account at dockerhub and the image will be there
combine-motevo-results - there is only Python and pandas, bash will be there together with the base env, - look through zavolab images at dockerhub and find a default image for Python.  As I said above numerous times: you may need to update the versions in the YAML file to create a match. I am most certain there exist an image with Python+Pandas at the whole Dockerhub. Did you try it?
motevo - it already has it's own image at the zavolab account, so this one is done
plot_heatmap_of_MotEvo_results - yes, you might need to create your own, please follow this template and prepare a Dockerfile: https://hub.docker.com/r/zavolab/r-zavolab Later, please post the Dockerfile here and I will upload to the official zavolab account
plot_sequence_logos.yml - similarly to the one above, look at this one: https://hub.docker.com/r/zavolab/python

I am pasting the dockerfile contents for the script plot_sequence_logos.py
##### BASE IMAGE #####
FROM python:3.7.4

##### METADATA #####
LABEL base.image="python:3.7.4"
LABEL version="2"
LABEL software="python"
LABEL software.version="3.7.4"
LABEL software.description="Python programming language"
LABEL software.website="https://www.python.org/"
LABEL software.documentation="https://docs.python.org/3/"
LABEL software.license="https://docs.python.org/3/license.html"
LABEL software.tags="General"
LABEL<EMAIL_ADDRESS>LABEL maintainer.organisation="Biozentrum, University of Basel"
LABEL maintainer.lab="Zavolan Lab"
LABEL maintainer.license="https://spdx.org/licenses/Apache-2.0"

##### VARIABLES #####
# Use variables for convenient updates/re-usability
ENV SOFTWARE_VERSION 3.7.4

##### INSTALL #####
RUN apt-get update -y \
  && pip install --upgrade pip \
  && pip install logomaker==0.8 matplotlib==3.3.0 \
  && apt-get autoremove -y && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \

Pasting the dockerfile content of the script plot_heatmap_of_MotEvo_results.r
##### BASE IMAGE #####
FROM r-base:4.0.0

##### METADATA #####
LABEL base.image="r-base:4.0.0"
LABEL version="2"
LABEL software="4.0.0"
LABEL software.version="4.0.0"
LABEL software.description="R is a system for statistical computation and graphics."
LABEL software.website="https://www.r-project.org/"
LABEL software.documentation="https://www.r-project.org/"
LABEL software.license=""
LABEL software.tags="General"
LABEL<EMAIL_ADDRESS>LABEL maintainer.organisation="Biozentrum, University of Basel"
LABEL maintainer.lab="Zavolan Lab"
LABEL maintainer.license="https://spdx.org/licenses/Apache-2.0"

##### VARIABLES #####
# Use variables for convenient updates/re-usability
ENV SOFTWARE_VERSION 4.0.0

##### INSTALL #####
RUN apt-get update -y \
  && apt-get install -y curl zlib1g-dev software-properties-common libcurl4-gnutls-dev libxml2-dev libssl-dev apt-transport-https \
  && apt-get autoremove -y \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
  && Rscript -e 'install.packages(c("ggplot2", "optparse", "ggtext"))'

OK, what about bash and combine-motevo-results ?

combine-motevo-results and bash.

Alright, Could you please check if it is possible (and how) to have Singularity installed on a Travis machine during the CI runs? We do not need to build any containers in the CI nor activate them, just have Singularity installed - Snakemake would take care of the rest.

Maybe we can add some files to .travis to install singularity.
See https://github.com/singularityhub/travis-ci
Will this do?

No, I don't think we need this. This repo is related to building images whereas we just need to have Singularity installed.


Update kubernetes godep

cc @bprashanth

How was this generated?

(and I guess why?)

@eparis pretty much https://github.com/kubernetes/contrib i think
To pull in some changes to Ingress resource, but also ends up pulling a few other changes to related packages apparently. Would you prefer keeping the other packages as they were? I figured always keeping kube and contrib in sync with every roll makes sense?

LGTM. Will wait for @eparis before merging.


RC Test: Mean: Share and Balance 1.1.0-rc.1

RC Test
Mentions: @jbphet, @amanda-phet, @marlitas
Simulation links

github repository for issues
phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices

General Test Matrix
PhET-iO Test Matrix

Features included

[x] PhET-iO
[x] Dynamic Locale
[x] Alternative Input
[x] UI Sound
[x] Sonification
 [ ] Description
[ ] Voicing

Focus and Special Instructions
This is MSaB's first RC test. Everything is fair game.
Please pay special attention to the alternative input group sort behavior (grabbing, moving, and dropping candy bars) in the Distribute screen.
Issues to Verify
The following issues came out of dev test and should be verified in this RC. All issues can be closed once verified.

[x] https://github.com/phetsims/mean-share-and-balance/issues/320
[x] https://github.com/phetsims/mean-share-and-balance/issues/319
[x] https://github.com/phetsims/mean-share-and-balance/issues/313
[x] https://github.com/phetsims/mean-share-and-balance/issues/324
[x] https://github.com/phetsims/mean-share-and-balance/issues/315
[x] https://github.com/phetsims/mean-share-and-balance/issues/327

For QA...

General features

What to Test

Click every single button.
Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.

If there is sound, make sure it works.
Make sure you can't lose anything.
Play with the sim normally.
Try to break the sim.
Test all query parameters on all platforms. (
See QA Book for a list of query parameters.)
Download HTML on Chrome and iOS.
Make sure the iFrame version of the simulation is working as intended on all platforms.
Make sure the XHTML version of the simulation is working as intended on all platforms.
Complete the test matrix.
Don't forget to make sure the sim works with Legends of Learning.
Test the Game Up harness on at least one platform.
Check this LoL
spreadsheet and notify AR or AM if it not there.
If this is rc.1 please do a memory test.
When making an issue, check to see if it was in a previously published version.
Try to include version numbers for browsers.
If there is a console available, check for errors and include them in the Problem Description.
As an RC begins and ends, check the sim repo. If there is a maintenance issue, check it and notify developers if there
is a problem.
As the RC ends, please review the QA credits in the about dialog. If the QA credits are complete and correct, please
add a comment in the RC test issue indicating so. If not, please open a new issue and specify what changes should be
made.

PhET-iO features

What to Test

Make sure that public files do not have password protection. Use a private browser for this.
Make sure that private files do have password protection. Use a private browser for this.
Make sure standalone sim is working properly.
Make sure the wrapper index is working properly.
Make sure each wrapper is working properly.
Launch the simulation in Studio with ?stringTest=xss and make sure the sim doesn't navigate to youtube
For newer PhET-iO wrapper indices, save the "basic example of a functional wrapper" as a .html file and open it. Make
sure the simulation loads without crashing or throwing errors.
Load the login wrapper just to make sure it works. Do so by adding this link from the sim deployed root:/wrappers/login/?wrapper=record&validationRule=validateDigits&&numberOfDigits=5&promptText=ENTER_A_5_DIGIT_NUMBER

Further instructions in QA Book
Conduct a recording test to Metacog, further instructions in the QA Book. Do this for iPadOS + Safari and one other
random platform.
Conduct a memory test on the stand alone sim wrapper (rc.1).
Test one platform combination with ?phetioDebug=true on the Studio and State wrapper.
If Pan/Zoom is supported, make sure that it works when set with PhET-iO State.
Test that the sim works offline:

Click the link to the phet-io zip file (at top of issue) to download the zip file.
Unzip it to a spot locally.
Open index.html by double clicking it on your desktop or in a Finder-view.
It should look like the standalone version of the sim in PhET-iO brand.

Accessibility features

What to Test

Specific instructions can be found above.

Make sure the accessibility (a11y) feature that is being tested doesn't negatively affect the sim in any way. Here is
a list of features that may be supported in this test:

Alternative Input
Interactive Description
Sound and Sonification
Pan and Zoom
Mobile Description
Voicing

Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.
Test all keyboard navigation inputs (if applicable).
Test all forms of input with a screen reader (if applicable).

If this sim is not in this list or up to date there, make an
issue in website to ask if PhET research page links need updating. Please
assign to @terracoda and @emily-phet.

Screen Readers
This sim may support screen readers. If you are unfamiliar with screen readers, please ask Katie to introduce you to
screen readers. If you simply need a refresher on screen readers, please consult the
QA Book, which should have all of the information
you need as well as a link to a screen reader tutorial made by Jesse. Otherwise, look over the a11y view before opening
the simulation. Once you've done that, open the simulation and make sure alerts and descriptions work as intended.

Platforms and Screen Readers to Be Tested

Windows 10 + Latest Chrome + Latest JAWS
Windows 10 + Latest Firefox + Latest NVDA
macOS + Safari + VoiceOver
iOS + Safari + VoiceOver (only if specified in testing issue)

Critical Screen Reader Information
We are tracking known screen reader bugs in
here. If you find a screen reader bug,
please check it against this list.

Keyboard Navigation
This sim supports keyboard navigation. Please make sure it works as intended on all platforms by itself and with a
screen reader.
Magnification
This sim supports magnification with pinch and drag gestures on touch screens, keyboard shortcuts, and mouse/wheel
controls. Please test magnfication and make sure it is working as intended and well with the use cases of the
simulation. Due to the way screen readers handle user input, magnification is NOT expected to work while using a screen
reader so there is no need to test this case.

FAQs for QA Members

There are multiple tests in this issue... Which test should I do first?
Test in order! Test the first thing first, the second thing second, and so on.

How should I format my issue?

We typically assign the developer who opened the issue in the QA repository.

My question isn't in here... What should I do?
You should:

Consult the QA Book.
Google it.
Ask Katie.
Ask a developer.
Google it again.
Cry.

I discovered a bug while checking the built RC version... so please hold on this until that is resolved (I will mark it as such).

I had an instance of the predict mean pencil not showing the yellow highlight when close to the mean. It showed up after a bit (I think after I changed tabs) and I haven't been able to reproduce it since. Since I can't reproduce it, I'm not sure if it should have an issue. @marlitas what do you think?

@KatieWoe... hmmm if you only saw it once and can't reproduce maybe a fluke? If you see it again definitely open an issue and let's just keep an eye out for it. I wouldn't even know where to start if we can't reproduce it though.

QA is done

This is in rc 2. Closing


Cancel outstanding tasks on document edit in the language server, second edition

#2648 with one additional fix: while I had reviewed all check_system calls in C++, it turns out there was one explicit call to check_interrupted I had missed and @collares found (and that didn't do anything while check_interrupted was still based on the unused thread class).

@Kha, the failure in Mathlib appears to genuinely be due to this PR, although I don't understand how this PR could be causing it. Is there some subtle way that a timeout could show up as a motive is not type correct???

It is certainly puzzling, we don't even trigger interruption outside the language server. Though as we saw in the first PR, there is always room for subtle breakage like increased heartbeats.
Just to make doubly-sure before I investigate, do we have runs of the same mathlib commit with and without the PR?

Let me do side-by-side runs tomorrow.

I increased the timeout on aux1 in Mathlib/Algebra/Jordan/Basic.lean to test if the timeouts cause the error. If so, feel free to revert my change if you want to investigate why the timeout is reported as is.

If I understand correctly, isTypeCorrect (in Lean/Meta/Check.lean) does not distinguish between exception types when returning false.

There was another error on the mathlib testing side, but I think the error is only due to extra changes in nightly-testing incompatible with this PR's base and would go away if this PR were to be rebased. Indeed, the error is in test/linarith.lean, and it doesn't occur if you test mathlib master with this PR's toolchain.

@collares, sorry your comments are too cryptic for me. What effect did increasing the timeout have?

@collares, I'm not sure if this was intentional, but it seems you've left the lean-pr-testing-2714 branch in a weird broken state. It has lots of things reversed relative to nightly-testing. It's essential that we keep the diff between lean-pr-testing-NNNN  and nightly-testing minimal.

I've just rebased this on master, in the hope of getting a Mathlib compatible toolchain.

@semorrison Sorry for the cryptic comments! Here's my attempt to explain what happened. All I did was to push the following commit (no rebase, no force push) whose parent at the time was 38fafe25a2fdbe16558184ab061e581cdc2f7c9a:
commit bd2845a3d558165a06cab4ee3dda627b1ef7d9a4
Author: Mauricio Collares<EMAIL_ADDRESS>Date:   Mon Oct 23 19:44:14 2023 +0200

    bump timeout in Mathlib.Algebra.Jordan.Basic

diff --git a/Mathlib/Algebra/Jordan/Basic.lean b/Mathlib/Algebra/Jordan/Basic.lean
index 745fedf19a..10b66852e8 100644
--- a/Mathlib/Algebra/Jordan/Basic.lean
+++ b/Mathlib/Algebra/Jordan/Basic.lean
@@ -194,6 +194,7 @@ private theorem aux0 {a b c : A} : ⁅L (a + b + c), L ((a + b + c) * (a + b + c
   simp only [lie_add, add_lie, commute_lmul_lmul_sq, zero_add, add_zero]
   abel

+set_option maxHeartbeats 300000 in
 private theorem aux1 {a b c : A} :
     ⁅L a + L b + L c, L (a * a) + L (b * b) + L (c * c) +
     2 • L (a * b) + 2 • L (c * a) + 2 • L (b * c)⁆

Then two things happened:

The heartbeat bump fixed the "motive is not type correct" message. My conjecture is that isTypeCorrect (Lean/Meta/Check.lean) catches every exception and reports it as "motive is not type correct", and it inadvertently caught a max heartbeats exception in this case.
The last line in tests/linarith.lean started failing. But then I observed that using this PR's toolchain on mathlib master (not nightly-testing) didn't exhibit such a failure, which led me to believe rebasing this PR would help. I see you came to the same conclusion, thanks for the rebase!

@Kha, unfortunately Mathlib/Lean combined CI is really struggling with the number of breaking changes we have in the air at the moment. I think we understand what is going on here, and Mathlib is easy to patch (by increasing a timeout), so please feel free to proceed with this one, and I'll deal with the Mathlib fallout once it hits a nightly release.

Do we know whether the heartbeat increment is significant? /cc @collares

It goes up from 199700 heartbeats (mathlib master, v4.2.0-rc4) to 200745 heartbeats (nightly-testing + this PR).

The benchmark run at https://github.com/leanprover-community/mathlib4/pull/7933 seems OK.

Seems insignificant, and we just got unlucky with something extremely close to the line.

I used this PR for editing core without further problems, so let's put it in stage 0.


loadable.lib seems not work with ref when ssr

🐛 Bug Report
loadable.lib seems not work with ref when ssr, the value of ref.current is always undefined!
To Reproduce
As described in the second example in the docs here, I used this example in this example.
But,  this.moment.current is alway undefined.
After studying the source code,  i found that loadAsync will not run when ssr, and props.forwardedRef will never be assigned.
Is this designed, or is it a bug?
Expected behavior
second example should work well  on server side.
Link to repl or repo (highly encouraged)
Issues without a reproduction link are likely to stall.
Run npx envinfo --system --binaries --npmPackages @loadable/component,@loadable/server,@loadable/webpack-plugin,@loadable/babel-plugin --markdown --clipboard
Paste the results here:

😅 is a bug


Management plane and Data plane

Somewhere I found a good paragraph on the difference between the management plane and the data plane. But in the general document structure it does not seem to be well defined.
For example, this is called "manage blobs". But it consists of management plane information: e,g, create a storage account. There's no obvious link to the data plane e.g. read/write a blob.

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

ID: b04a28c3-81d7-123d-5b16-6642636c07a8
Version Independent ID: 2179498b-00e8-1c9d-bd11-4a903ae3ad52
Content: Quickstart - Create a blob with PowerShell - Azure Storage
Content Source: articles/storage/blobs/storage-quickstart-blobs-powershell.md
Service: storage
Sub-service: blobs
GitHub Login: @tamram
Microsoft Alias: tamram

@Air-Git Thank you for the feedback. We are actively investigating and will get back to you soon.

@Air-Git - Thanks for your feedback!
The "management plane" refers to all Azure Resource Manager operations for storage. The storage implementation of Azure Resource Manager is also called the storage resource provider. The operations that fall into this category include creating and managing storage accounts and account keys.
The "data plane" refers to any operations on data, including all operations on containers/blobs, queues/messages, tables/entities, and shares/directories/files.
We do not use the terms "data plane" or "management plane" in the documentation, but they are sometimes used by the Azure Storage team and by third parties. We do refer to "data operations" and "management operations" where appropriate.
This quickstart is about using Blob storage operations to create containers and blobs using data operations. There are no management operations shown here. The "Manage blobs without code" header has nothing to do with the management plane, it's just that "manage" is a convenient verb that basically means "work with".
If you're still looking for more information, can you tell me more about what you're looking for?

I was trying to understand how to read the content of a blob. Or, at one level up, how to navigate my way round the documentation to find out where I would find out how to do it.
I think I finally figured it out. The raw API is here: https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api. And then the PowerShell SDK (in my case) is here: https://docs.microsoft.com/en-us/powershell/module/az.storage/?view=azps-3.6.1#storage
These cover both the management plane and the data plane (as you would expect). If I go back to the documentation root for Azure Storage (https://docs.microsoft.com/en-us/azure/storage/blobs/) I really don't see how I would figure that out.

Okay, if you are using PowerShell, then you don't need to worry about whether an operation is in the management plane or the data plane. All of the commands are in the same module.
You would need to worry about whether you were using the management plane or the data plane if you are calling the REST API directly or using one of the client libraries. There are also some behaviors in the portal that rely on the management plane, and so you need to have appropriate permissions to use them. It's helpful to understand the difference if you're assigning RBAC roles for resource access.
I'm closing this issue out now, but just let us know if you have further questions.
#please-close

Not all the API is implemented in the PowerShell Az modules. There is no function to put the content of a blob. Strange, but there it is. So we need to fall back on the REST API if we want to do that.

@Air-Git - You can use the Set-AzStorageBlobContent command to upload content to a blob in PowerShell. You don't need to use the REST API.

No, you can't. This only uploads a file as a blob, if the file exists. If you have just data, you can't "Put" it as a blob.

Yes, it must be a file.
What format is your data in?

The data is the result of some calculations in PowerShell.

You can use the .NET client library from PowerShell in order to write a stream or a byte array. Doing so gives you the full power of the client library in the case that the PowerShell cmdlets don't meet your needs.
I don't have a specific example showing how to do this, but see the following link for details about PowerShell support for .NET.
https://docs.microsoft.com/powershell/scripting/samples/creating-.net-and-com-objects--new-object-?view=powershell-7

Thanks for this. I was thinking you could also use Invoke-RestMethod to Put a blob (https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob).

That should work too!


Crash in FrameBufferD3D11::postReset

We're unsure if this crash is caused by our code or by bgfx code. 50% of the time it crashes in FrameBufferD3D11::postReset when calling GetDesc:

Are there any known instances where a texture can be unset even though bgfx::createTexture2D has been called?
In the above screenshot, handle.idx is 624. I've added noinline to the function because this only seems to happen in Release builds and the function was being inlined, so I couldn't debug it otherwise.
This is bgfx from commit 6ff6cd64958aadaac9b899f8f29392f026a2c83d.

Can you create simple repro case?


Position Calcualtion wrogn with animation

Ok I did found an Issue in my ionic app.
If I set the the is-active variable to true while the switch animation is on-going, it calcuclates the position of the highlight wrong.
I fixed this for me inserting a delay:
setTimeout(function(){
$scope.showWalkthrough = true
}, 500);

Hi @Brueni92 , thanks for the input, indeed this is the recommended behaviour at current and not solved from within the directive, might be addressed in future.
Thanks


how to use complicated type in series' apply

Hi guys,
I'm trying to use series.apply to parse json string, but got trouble defining function return type. In spark, we can use StructType to define json schema.
After look into the code, I find that it will use as_spark_type to convert to equivalent spark type. Although it says it can accept list of pair (filename, type) or dictionary, it simply get the type from predefined spark type which are all basic type. How can I define a complicated schema?

while my json values are all string type, I find this way to extract all the key as a column. But it will parse json every time it create a new column, not a fancy way.
def from_json(text: str, key: str) -> str:
    return json.loads(text).get(key, None)

key_list = ['a', 'b']
for k in key_list:
    df[k] = df.value.apply(from_json, args=(k, ))

Firstly, about defining this, it's being discussed at https://github.com/databricks/koalas/pull/453 cc @rxin, @thunterdb, @floscha, @ueshin
Secondly, I think Koalas doesn't support nested type yet officially. This is failed at https://github.com/databricks/koalas/issues/420
Let me leave this resolved as a duplicate.


Subscribe error ,please help

When click subscribe,there is a error  alert, Cannot subscribe to channel: SyntaxError: Failed to construct 'RTCPeerConnection': '' is not a valid URL.

Can you please specify your browser, and the (anonymized, if necessary) subscriber page URL?

Seeing this is well on both broadcaster and subscriber side.
Testing on Chrome 70.0.3538.77

I start this project use  PORT=8080 node server/index.js ，It seems to run ok，I use  http://<IP_ADDRESS>:8080/publish.html  to publish，and I use http://<IP_ADDRESS>:8080/  to Subscribe，but when click Publish，alert this error like this
use Chrome（67.0.3396.62），error message is ：
Cannot subscribe to channel: SyntaxError: Failed to construct 'RTCPeerConnection': '' is not a valid URL.
use FireFox（63.0.1 ），error message is：
Cannot subscribe to channel: SyntaxError: RTCPeerConnection constructor passed invalid RTCConfiguration - malformed URI:

I've just released v1.1.1, which fixes this issue.
Thanks for the report,
Michael.


tooltips and disclaimer styling

I suggest this tooltip: STEP Physical File Syntax / IFC Schema: inverse attributes, attribute types, cardinalities, WHERE rules, function constraints


Update README.md with name Ani

My name Ani is added over here.
Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Fixes:  #(issue no.)
Description
[Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.]

Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes. Make sure to attach before & after screenshots in your PR.]
Checklist:

[ ] I have made this change from my own.
[ ] I have taken help from some online resources.
[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have tested the changes thoroughly before submitting this pull request.
[ ] I have provided relevant issue numbers and screenshots after making the changes.

what changes have u exactly made u not even mentioned the issue number create new PR with good description and images of where u made changes @aniii09


fixes for Windows

Hi @Beanavil, with these changes I was able to successfully run the external memory samples (both the C and C++ versions) on Windows.

I added these to my personal branch and ran the actions, but the test still failed. The changes I had made previously were:

Fixing some VUID violations, because Máté was able to run (successfully) the examples on his machine (windows+nvidia loader) but he got VUIDs reported from the vulkan validation layer. For the record, I was able to reproduce this too in a Linux machine with a Nvidia loader.
Getting the vulkan-1.dll to be present because I checked that it was not in C:\Windows\System32 as it should be if the Vulkan SDK were installed system-wide. I put it inside the vulkan sdk Bin folder and added that to the path.

but the test still failed.

Is this sample expected to run via GitHub actions?  Is there a Vulkan implementation on the GitHub runners?
Note that the Intel CPU OpenCL implementation used for automated testing does not currently support external memory.
Note also that the other interop samples (conway and nbody) are not part of the automated testing.

Is this sample expected to run via GitHub actions? Is there a Vulkan implementation on the GitHub runners?

If you refer to the GPU drivers I think there is not, given that the DLL is missing.

Note that the Intel CPU OpenCL implementation used for automated testing does not currently support external memory.

Hm interesting, I was not aware of that.

Note also that the other interop samples (conway and nbody) are not part of the automated testing.

I think these are not run because they are graphical applications, but I may be wrong.
So to sum up, are we ok with incorporating this commit and the ones I added to my personal branch for fixing the errors reported by the Vulkan headers and considering the example ready? And also are we ok with letting this sample be skipped from the github action execution? I think that given that the current fail in the github action seems to be due to an environment issue of the runner and it runs ok in local setups it looks safe to assume this is ready.


add a magnifying glass function is enabled

I hope to add a magnifying glass function is enabled

My English is very poor, these sentences Google translation, I hope you can understand.

Sorry, that's too much functionality for this lightbox. You can try integrating a third-party solution based on images' IDs.

thinks


Replace dask.set_options with dask.config.set

Previously we had two ways to set global configuration/state

dask.set_options(...) which used dask.context._globals
dask.config.set(...) which used dask.config.config

These are now backed by the same data structure, held in
dask.config.config.  For backwards compatibility they both still work
as before (mostly), though we'll be recommending dask.config.set
in the future.

[x] Tests added / passed
[x] Passes flake8 dask

@jcrist asked about this earlier on the first config PR


[incubator-kie-drools-6007] Executable model doesn't report an error …

…when duplicated

removing kie-ci from dependency, because it causes a test failure in KieBaseIncludeTest

Use canonicalKieModule.getKiePackages() rather than getKieBase()

null check for kiePackage

move populateIncludedRuleNameMap out of packages loop

removed unused FileManager

performance improvement. Use getModelForKBase instead of getKiePackages

Fit into build phases

clean up

Issue:

https://github.com/apache/incubator-kie-drools/issues/6007

This is a forward port PR of https://github.com/kiegroup/drools/pull/59 and https://github.com/kiegroup/drools/pull/61 from 7.x.
The main branch was refactored to use Phase architecture in build, this PR is adjusted to it.

@mariofusco @lucamolteni @pibizza Please review, thanks!


Feat: Client should not differentiate between wasm and plugin

Now that plugins have the getManifest method defined (when #1046 is merged), the client doesn't need to know if it is interacting with a plugin wrapper or a wasm wrapper

Is this solved @cbrzn ?

yah @dOrgJelli


Build a Cool Calculator

Create a Calculator
Tech Used

Html
Css
Javascript

I am a GSSOC'22 Participant.
I want to work in this issue.
Please assign it to me.

@SwarupKMondal
Can you assign me to do this calculator

Can you assign me the project to do

I am working on this project and I was the one who raised the issue. Kindly issue it to me


Add poetry as python package manager

Tool information

Tool name: poetry
Tool license: MIT
Add or update? Add
Desired version: latest
Approximate size: 73 MB installed
If this is an add request:

Brief description of tool: A python package manager, I would say it's similar to npm/yarn
URL for tool's homepage: https://python-poetry.org/
Provide a basic test case to validate the tool's functionality: poetry init in an empty directory

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

[ ] Ubuntu 16.04
[x] Ubuntu 18.04
[x] Ubuntu 20.04
[x] macOS 10.15
[x] macOS 11.0
[x] Windows Server 2016 R2
[x] Windows Server 2019

Can this tool be installed during the build?
Yes
pipx install poetry

Tool installation time in runtime
Less than a minute
Are you willing to submit a PR?
Yes

Hi @omBratteng,
considering the pretty fast installation and a lot of available actions in marketplace to setup poetry, we'd rather not to preinstall it on the images. Please, use actions as it is the recommended way to interact with images.
I am closing this issue and corresponding PR. Please, feel free to contact us in case of any questions. Thanks.

Hi @AlenaSviridenko, I think a lot of people would prefer it being officially supported in the image, and it would overall reduce the runtime duration of all workflows.
I would say the same as yarn, it's a fast install, yet included in the image.

I second the value of including Poetry in the image. I suspect Poetry (29k stars) is significantly more popular than Miniconda (conda has 6k stars).


Webpack crashes: Cannot read property 'flagUsed' of undefined

When the assembly is restarted (when the cache is already present)
http://s1.micp.ru/PD0HL.jpg

By the tests it was found that the error causes such an import:
import 'selectize/dist/js/standalone/selectize';
How does this relate to your plugin? Without it everything works fine)

The LocalModuleDependency is used in webpack's AMD support. The LocalModuleDependency comes up when a AMD module depends on another in the same module.
Looks like the serialization for LocalModuleDependency was missing handling to serialize and deserialize the LocalModule.


Copyright comments are not preserved when generating d.ts files

This is a proposed fix for #5183 ... WIP

unit tests?

@mhegazy Yes, I added some.

Can you add another case with similar content but with // @removeComments: true?  To make sure that we will preserve copy-right comment but nothing else in declaration emit

@yuit Sure

lgtm. @MartyIX thanks for the PR


Make improvements on GetAliasesArgs

The interface GetAliasesArgs needs to be updated.
As you can see in the picture:

Request URL:
https://europe3.testnet.signum.network/api?requestType=getAliases&aliasName=marine

accountId can be an optional
It should include support for aliasName property

Interface URL: https://signum-network.github.io/signumjs/interfaces/core.getaliasesargs.html


Add Questions under "Interview Questions"

Add Questions under "Interview Questions" by referring to Contributing.md.

Can I help ?


Restart agent when host comes out of maintenance

Description
This PR...
Fixes #9295
New storage pools are not added to a host which is in maintenance. This change will restart the agent when host is taken out of maintenance mode. StoragePoolMonitor.processConnect() will then get called which will add/mount the new storage pool to the host.
One more related issue was that storage pool was not getting unmounted from a host in maintenance mode. Even when the host is taken out of maintenance mode, it will still have the pool mounted. Only reboot will unmount the pool.
So, as fix have added DeleteStoragePoolCommand to be able to run in maintenance mode similar to ModifyStoragePoolCommand.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI
[ ] test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[x] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

How did you try to break this feature and the system with this change?

@blueorangutan package

@abh1sar a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el7 ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 10102

@blueorangutan test

@abh1sar a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-10607)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 42752 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9298-t10607-kvm-centos7.zip
Smoke tests completed. 129 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_05_vmschedule_test_e2e
Failure
361.96
test_vm_schedule.py

test_hostha_enable_ha_when_host_disabled
Error
3.71
test_hostha_kvm.py

test_hostha_enable_ha_when_host_in_maintenance
Error
302.90
test_hostha_kvm.py


Fix connection and log in mechanism

Fixes #71

Pull Request Test Coverage Report for Build 41

9 of 10 (90.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.7%) to 95.868%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/utils/ewelink-connect.js
5
6
83.33%

Totals

Change from base Build 38:
-1.7%

Covered Lines:
98

Relevant Lines:
101

💛  - Coveralls


Create experimental CustomBuilder resource

Add experimental.kpack.pivotal.io api group

Codecov Report

Merging #220 into master will decrease coverage by 2.85%.
The diff coverage is 52.63%.

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
- Coverage   65.24%   62.38%   -2.86%
==========================================
  Files          52       61       +9
  Lines        2198     2494     +296
==========================================
+ Hits         1434     1556     +122
- Misses        596      748     +152
- Partials      168      190      +22

Impacted Files
Coverage Δ

pkg/apis/build/v1alpha1/builder_lifecycle.go
0% <0%> (ø)

pkg/registry/ggcr_helpers.go
0% <0%> (ø)

pkg/reconciler/v1alpha1/builder/builder.go
69.56% <100%> (-4.19%)
:arrow_down:

...conciler/v1alpha1/clusterbuilder/clusterbuilder.go
69.56% <100%> (-4.19%)
:arrow_down:

pkg/cnb/remote_buildpack_metadata.go
100% <100%> (ø)

pkg/cnb/buildpack_metadata.go
100% <100%> (ø)

pkg/cnb/buildpackage_store.go
32.25% <32.25%> (ø)

pkg/registry/client.go
54.83% <54.83%> (ø)

pkg/cnb/create_builder.go
58.62% <58.62%> (ø)

pkg/cnb/builder_layers.go
70.58% <70.58%> (ø)

... and 12 more

Continue to review full report at Codecov.

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


AC-3 algorithm in CSPNQueens

I am testing CSP NQueens and I found that AC-3 algorithm output is the same as MAC-3 algorithm.Why this happen?
Is this really AC-3 algorithm,how can i modify to get MAC-3 algorithm?Please guide me.

I test with AIMA 3 ed.

Can you be more specific as to what you tried, what you expected and what you observed?  What exactly is the MAC3 algorithm?

MAC is maintaining arc consistency algorithm.
I have tried Improved Backtracking algorithm with your AC-3 algorithm.But ,the result is as MAC algorithm,.

Can you paste your code along with the inputs and outputs? It is a bit difficult to spot a problem as your query is too wide. Also, if your CSP has a particular solution then all algorithms to calculate an exact solution should return the same answer. Broadly speaking, MAC refers to a backtracking search scheme
where after each instantiation of a variable, arc consistency is maintained (or enforced) on the new network. In both these algorithms, the solution values should be similar.

Yes,I got it ,fri.Thanks a lot.


Remove travis integration

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


HDFS-17664 Add configuration to control blocks deletion asynchronous …

about HDFS-17664

Description of PR
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
6m 47s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
31m  3s

trunk passed

+1 :green_heart:
compile
0m 47s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 40s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
checkstyle
0m 41s

trunk passed

+1 :green_heart:
mvnsite
0m 46s

trunk passed

+1 :green_heart:
javadoc
0m 45s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
1m  9s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 47s

trunk passed

+1 :green_heart:
shadedclient
21m  6s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 40s

the patch passed

+1 :green_heart:
compile
0m 40s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 40s

the patch passed

+1 :green_heart:
compile
0m 33s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
javac
0m 33s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-0 :warning:
checkstyle
0m 31s
/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs-project/hadoop-hdfs: The patch generated 1 new + 309 unchanged - 0 fixed = 310 total (was 309)

+1 :green_heart:
mvnsite
0m 39s

the patch passed

+1 :green_heart:
javadoc
0m 35s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
1m  1s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 47s

the patch passed

+1 :green_heart:
shadedclient
20m 53s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
197m 53s
/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
hadoop-hdfs in the patch passed.

+1 :green_heart:
asflicense
0m 31s

The patch does not generate ASF License warnings.

290m 31s

Reason
Tests

Failed junit tests
hadoop.hdfs.TestDecommission

hadoop.hdfs.TestDecommissionWithBackoffMonitor

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7170/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7170

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets xmllint

uname
Linux 754dae16d697 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 5a5088bed75782471cd7d005e1e66ac205ec2af7

Default Java
Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7170/1/testReport/

Max. process+thread count
4906 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7170/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@tomscut @Hexiaoqiao Sir, can you help review this?

cc @zhuxiangyi


Incorrect isAPEX value and email for Brownfield Service & product lifecylce = GA

Liftr Elastic engineer reached out for instructions to onboard a GA product so they could create release plan to refresh their SDKs.
Scenario: Brownfield Service, product lifecycle = GA,  DataScope = No, MgmtScope = Yes, Product was not previously onboarded to the SDK system

Link to Onboard testing (Scenario 14) - https://microsoft-my.sharepoint.com/:x:/p/ladonnaquinn/EQOYpXEI_V5Em4S2atNe0JABJn3HmJyJP8_f5kSepo6EgQ?e=YhvECT&nav=MTVfe0Y2MDBDMzQ3LTBGMjItNDVEOC1CMUNBLTkzMkUxQkU0RjZBM30

Background/Info

Link to the Triage work item: https://dev.azure.com/azure-sdk/Release/_queries/edit/24128/?queryId=c851c4aa-0962-4b12-9099-8027dcef7d1f
All values are correct except for the Triage State.  It is "APEX out of scope" and should be +"Completed".
We saw this issue during testing the isAPEX = complete scenarios in PPE but it was resolved. Not sure why we are seeing it again in PROD.
Also, since Triage work item state is "APEX out of scope", the email that was sent was incorrect as well.

Link to the Epic (Product) work item: https://dev.azure.com/azure-sdk/Release/_workitems/edit/24127
isAPEX = no and should be isAPEX = complete
Since the isAPEX value is not correct other fields were overwritten that should not have been.

Next steps:

[ ] Resolve incorrect values for Triage State & isAPEX.
[ ] Validate correct email is sent after data value issues are resolved.

[heart]         LaDonna Quinn reacted to your message:

From: Mariana Rios Flores @.>
Sent: Wednesday, September 18, 2024 5:28:17 PM
To: Azure/azure-sdk-tools @.>
Cc: Author @.***>
Subject: Re: [Azure/azure-sdk-tools] Incorrect isAPEX value and email for Brownfield Service & product lifecylce = GA (Issue #8977)
Closed #8977https://github.com/Azure/azure-sdk-tools/issues/8977 as completed.
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-tools/issues/8977 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEFYOQLNZ5R5EQY2GBXPMTZXGZ3FBFKMF2HI4TJMJ2XIZLTSWBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLKRSGM2TIMBXGQ2DEM5ENZQW2ZNJNBQXGX3MMFRGK3ECUV3GC3DVMWVDIMRYGUYDINJUG4Y2I3TBNVS2S2DBONPWYYLCMVWIFJLWMFWHKZNEORZHKZNENZQW2ZNOO5QXIY3IL5QWG5DJOZUXI6NMON2WE2TFMN2F65DZOBS2KSLTON2WLJTUN5YGSY3TSSBKI5DZOBS2U4TFOBXXG2LUN5ZHTJLWMFWHKZNJGE3TANJZGIYTQNUCUR2HS4DFUVUXG43VMWSXMYLMOVS2UMRVGI4DMOBSGE2TNAVEOR4XAZNFNRQWEZLMUV3GC3DVMWVDEMZVGQYDONBUGIZYFJDUPFYGLJLMMFRGK3FFOZQWY5LFVI2DEOBVGA2DKNBXGGTXI4TJM5TWK4VGMNWG643FMQ.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


NLog does not write any lines when the code is inside a socket thread

Hello, I have been struggling over the last few days due to the following issue. I've tried to look it up on several forums but all similar issues I found do not seem to be the one I am experiencing.
The application affected is a C# .NET (I've tried both with .NET 4.6.1 and 4.8) application which currently uses NLog 4.7.7 Nuget package in order to create several log files. I've upgraded the NLog package to the latest version in order to make sure the issue was not already solved in previous upgrades and it is therefore also reproducible in previous versions.
The application runs on Windows 10 Enterprise. The issue is also reproducible on Windows Server 2016 Standard.
I've tried with several NLog.config settings, but with a very simple one the issue can be reproduced. An example of such NLog.config would be the following:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <targets>
            <target name="Socket_f"
			xsi:type="File"
			fileName="${basedir}/log/MachineProtocolSocket_${date:format=dd-MM-yyyy}.log"
            layout="${date:format=dd/MM/yyyy HH\:mm\:ss} ${message}"/>
  </targets>
  <rules>
	<logger name="Socket" minlevel="Trace" writeTo="Socket_f" />
  </rules>
</nlog>

I am using a unique Logger for the whole application defined in the App.xaml.cs file as such:
public static Logger _Nlogger = LogManager.GetLogger("Socket");
Which is used in the application through methods such as: App._Nlogger.Info("whatever message");
The thing is that this logs are correctly written only as long as I am not using them inside on of the application socket threads implemented using the Socket .NET class.
I've also tried changing the folder where the log is saved and I've tried using concurrentWrites="true", autoFlush="true" and keepFileOpen="true" with the same result. Also tried to use AsyncWrapper with no success too. It also does not seem to be permession issue, since it also happens when running the application as Admin.
When I enable internalLogFile the file is correctly created and written even for the lines that afterwards do not appear in the log, but I am not able to see any particular error, even if enable throwConfigExceptions="true" and throwExceptions="true".
If I show in the log lines Identity: ${identity} notauth:: is shown, but these does not seem to impede the lines outside the socket threads to be written. Also using LogManager.Flush() does not get the lines written.
The lines that are not written into the log file are the ones that appear in the code inside the methods that are directly accessed by the application only as a result of incoming messages that the socket is listening to.
Another odd thing is that this logging was actually working fine several months ago and has starting having this particular behaviour from a certain point on. So I don't exclude the possibility that the issue comes from a certain Windows upgrade or something similar.
Has anyone faced anything of the kind? If you need any kind of extra information, log or test on my side please do not hesitate to tell me.
Thanks and regards.

This is just me guessing but I think the problem is the configuration of your NLog FileTarget.
The NLog FileTarget uses keepFileOpen="false" by default, which means it can only handle 200 logevents/sec. If you change to keepFileOpen="true" then it will be faster.
I'm guessing that you have multiple threads in your application, since you are dealing with socket operations. By default NLog is synchronous, so when calling the NLog Logger, then the application-thread will be stuck until target write has completed. If having more than 2 threads writing to the same NLog target, then performance of those threads will suffer. If you change to <targets async="true"> then NLog will not be blocking application threads.
Try using this NLog.config instead:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <targets async="true">
            <target name="Socket_f"
			xsi:type="File"
                        keepFileOpen="true"
                        concurrentWrites="false"
			fileName="${basedir}/log/MachineProtocolSocket_${date:format=dd-MM-yyyy}.log"
            layout="${date:format=dd/MM/yyyy HH\:mm\:ss} ${message}"/>
  </targets>
  <rules>
	<logger name="Socket" minlevel="Trace" writeTo="Socket_f" />
  </rules>
</nlog>

See also: https://github.com/NLog/NLog/wiki/Performance#file-logging-performance

Hello snakefoot, and thanks for your answer.
I had already played around with async and keepfileopen options, and I have retested everything with the NLog.config you propose and the result is the same.
I have also reread the links you provide and I think in this case the code mostly follows the recommendations. Flushing and shuting down also does not write the missing lines either.
The application only deals with one Socket thread, not many, and at that point, I don't think that the issue might be related to NLog synchronization issues, since as I said, on the one side this logging worked ok previously in Windows 7 systems and because the logs written outside the thread keep also being written without issues.
I am more keen to think that the issue might be related to some Windows 10 or .NET update regarding thread functionality, or something of the kind. This is why, after many attempts, I thought about sharing the situation here in order to see if someone might also have faced or is currently facing the same issue.
I will keep doing tests with that in mind and I will share here whatever I may find, if on the meanwhile someone has any other ideas they are more then welcome :)

If you can provide some example project that can reproduce the issue. Then please post it here.

Closing the issues, but if you are able to make an example project that reproduces the issue, then please tell.

Sorry for recommenting. I am trying to generate a small couple of client-server socket projects where I can consistently reproduce the issue. Maybe on the meanwhile I will be able to solve it myself thanks to that (and due to your suggestion).
What I can already tell you is that the issue has to do with the fact that for some reason the isdebugenabled, istraceenabled and iswarnenabled properties are automatically set to false after a certain period of time apparently, in spite of the content of the NLog.config file. I attach two screenshots of the different behaviour. Since I cannot manually set the value of these properties from the code (they are getters but not setters, or they are readonly) I am not sure on how to solve it and what is causing it, but I'll keep investigating it and eventully I'll post here the progress or solution if I find it. A quick googling has only thrown one post with practically the same unsolved issue in StackOverFlow, I leave it here too just for the sake of completeness: https://stackoverflow.com/questions/63790335/nlog-isdebugenabled-and-all-otheres-are-false
Thanks for your help, I'll keep you posted (and if you prefer to keep the issue closed on the meanwhile unless you have to something to say about it no problem either).

I can see that the logger-name has changed between the two screenshots:

UMA_AppSockets.LiteAsynchronousSocketListener
AppSockets.LiteAsynchronousSocketListener
Maybe that is causing the "automatically" change in IsDebugEnabled

Hello again and thanks for your message.
Sorry about this. That was my bad because I am trying to reproduce the issue in several different projects in order to see if I can find out the root cause of it. I attach again the same screenshots corresponding to same piece of code of the same project before and after the automatic change I am refering to:

I haven't still been able to find it out, but I will post here any progress I might make.
Thanks again

That looks very weird. Curious if you could show the Logger.Factory.Configuration-property for those two cases.
I would guess that one of your dependencies is taking over the NLog-Configuration, and replaces it with something different.

Hello again and thanks for your answer.
It is weird indeed, yes. I attach new screenshots of the Factory.Configuration property before and after. Effectively many values of its content seem to change too, including FileNamesToWatch, which afterwards seems to be empty:

I can now reproduce the situation pretty easily so do not hesitate to ask me any other information you may need.
Thanks again

I guess you should enable the NLog InternalLogger on Debug.Level and see what happens between those two screenshots.


customscripts: add download segment event

This PR adds a segment event for copy downloads across docs pages. The event text will be sent as a property, along with the URL and version in order to differentiate what users are looking at.
Release note: None

Example of an event being thrown:

(Note: I changed the event name after taking this screenshot! The current one in the code is correct)

tftr!


PostgreSQL Firewall Rules Portal

@andresnava : Thanks for your contribution to the Azure documentation! The author, @jasonwhowell, has been notified to review your proposed change.

#sign-off


TWEAK: Add a max length to crypto order fulfilment tx ids.

Addresses #930

Coverage decreased (-0.005%) to 26.06% when pulling af7b4516ab3798cfecd0739e203eb8c34db205cd on TS_crypto_tx_id_max_length into 36423c15121bfdaadb96445890a6ca25aa0ffe7f on cryptolistings.


::: Copy saved to /tmp/debug.txt
:::

Issue
When I set
push "dhcp-option DNS <IP_ADDRESS>"

in /etc/openvpn/server.conf, connections to DNS fail and I cannot access any pages anymore.
With
push "dhcp-option DNS <IP_ADDRESS>"
push "dhcp-option DNS <IP_ADDRESS>"

I have to run sudo service openvpn restart to apply these changes.
It works again. On the Pi itself, Pi-hole works flawlessly.
My Pi Hole ethernet interface is eth1.

That issue is covered on the wiki!
Please check it out!
https://github.com/pivpn/pivpn/wiki/FAQ

Thank you @cfcolaco, I tried that but it didn't work either. I think my pi-hole setup is incorrect. I'll follow https://www.cyberciti.biz/faq/ubuntu-linux-install-pi-hole-with-a-openvpn/ and see whether it works.

Yaay, with a cobination of https://www.cyberciti.biz/faq/ubuntu-linux-install-pi-hole-with-a-openvpn/ and https://github.com/pivpn/pivpn/wiki/FAQ I got things to work. I think the problem was the way I set up pi-hole.

Please can you briefly explain what it is that you changed using those tutorials because some of it isn't applicable to me? Thanks.

I wish I knew. I just started over from scratch and at some point it worked.


docs: adds Laravel docs.

Affected Components

[ ] Content & Marketing
[ ] Pricing
[ ] Test
[x] Docs
[ ] Learn
[ ] Other

Pre-Requisites

[ ] Code is linted (npm run lint)

Notes for the Reviewer

Adds Laravel docs
Removes generic PHP placeholder

@MariadeAnton this is done


[UI][LB] Refreshing LB page makes host ips dissapear

v0.16.0
Steps:

Add a couple of LBs
Hard refresh the page

Results:
The Host IPs go away

Expected:
IPs should not dissapear

v0.16.2
Verified Fixed


update interfaces

Fixes #231

@fehguy this seems great. Is there anything missing (besides the merge conflicts)?

I think we'll get the merge conflicts handled, but I did want to get another set of eyes on the proposed changes.  If you have any input, now would be a good time.

I'm going to close this out, since it has drifted a bunch.  Will revisit interfaces with 3.0 spec support.


Build fails on latest after removal of utils/ffigen

Hello, it's annoying me again!
Building the lib from scratch fails as tsclientlib-ffi is always built but it has a broken build dependency (utils/ffigen) which has been removed recently (https://github.com/ReSpeak/tsclientlib/commit/40f5f3b74a76e18b4faa0b2666670add9fcc54b5).
For now i'm falling back to the previous commit :)

Thanks for the heads up!
I removed the outdated tsclientlib-ffi project too, so it should build again.


Why is realm used when Basic auth?

realm is not used at all when in Basic Authentication so, why do all the example include it?

It is used, it is the text shown in popup: https://github.com/http-auth/http-auth/blob/master/src/auth/basic.coffee#L51

My fault. Sorry.


Add systemd watchdog support to the lightstreamer library.

Sometimes lightstreamer can get stuck, and no new messages arrive.
It is useful to add a watchdog support, such that if systemd watchdog facility is available we ping it when new messages arrive. This allows one to run streaming scripts as systemd units, and set watchdog timer stanza in the unit file to automatically restart the script when lightstreamer is stuck.
This is Linux specific obviously, but does nothing when systemd python module is not installed on the system.

Thanks @xnox for your contributions


Spawn EACCES error

npm install just outputs Error: spawn EACCES.

os Darwin 15.3.0 Darwin Kernel Version 15.3.0
node v4.3.1
npm 2.14.12

That suggests that you're running into permissions issues with either ncmake or cmake itself. Does "sudo npm install" produce an error? What do these produce?
ls -alh `which cmake`
ls -alh `which ncmake`

%ls -alh `which cmake`
lrwxr-xr-x  1 0x00a  admin    31B Feb 17 11:10 /usr/local/bin/cmake@ -> ../Cellar/cmake/3.4.1/bin/cmake

%ls -alh `which ncmake`
lrwxr-xr-x  1 0x00a  admin    44B Apr  7 10:27 /usr/local/bin/ncmake@ -> ../lib/node_modules/node-cmake/lib/ncmake.js

Hmm, odd. That permission set looks valid. The only place that would generate that error code in node-cmake itself would be in ncmake, when child_process.spawn is called to kick off the cmake generation. Does this cause the same error when running it as a normal user in your module folder?
node -e "require('child_process').spawn('cmake', ['--version'], { stdio: 'inherit' })"
If it is successful, it should output the cmake version.

Oh actually, I take that back slightly. That '@' symbol on the end of those symlinks suggests that OSX has set extended permissions for those files. That symbol can indicate that OSX has quarantine permissions set, which prevents execution.
Looking at the paths I'm assuming this is via homebrew, which I'm not accustomed to having this problem. Are you running on El Capitan? There are apparently changes in that version that break homebrew in general:
http://digitizor.com/fix-homebrew-permissions-osx-el-capitan

Closing for lack of response

I installed cmake-js and it worked fine.

But node-cmake still doesn't work? What happens when you run the following:
node -e "require('child_process').spawn('cmake', ['--version'], { stdio: 'inherit' })"

Closing again for lack of response.
2.0 release also simplifies these calls and should behave as expected. Re-open if you're still having issues, but post debug logs / output from execution so I can triage.


[FEATURE REQ] Support maxDegreeOfParallelism in spring-cloud-azure-starter-data-cosmos

Is your feature request related to a problem? Please describe.
maxDegreeOfParallelism has been added to spring-data-cosmos in https://github.com/Azure/azure-sdk-for-java/issues/28579, the spring-cloud-azure-starter-data-cosmos should also support it.
Describe the solution you'd like
Support the maxDegreeOfParallelism in Spring Data Cosmos Autoconfiguration.
Describe alternatives you've considered
N/A
Additional context
N/A
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Description Added
[x] Expected solution specified

This was added under this PR: https://github.com/Azure/azure-sdk-for-java/pull/28756


Include nbgitpuller link for tutorials

nbgitpuller allows us to specify a link that will clone and pull the tutorial repo. It will also bring a users repo up to date without stomping over their changes.
https://ohw.pilot.2i2c.cloud/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Foceanhackweek%2Fohw-tutorials&urlpath=lab%2Ftree%2Fohw-tutorials%2F&branch=master
Hat tip to @ocefpaf for getting nbgitpuller setup and configuring the link for tutorials.

I haven't used nbgitpuller myself, much. Scanning the "When to use nbgitpuller?" section, it says that it's best to avoid mixing nbgitpuller and direct git commands. So, the plan is to provide the above https://ohw.pilot.2i2c.cloud gitpuller link for cloning and updating tutorial content from the repo into each user's jupyterhub space, and rely on that exclusively . No direct use of git for tutorials, right?
Then, what needs to be done is to overhaul the content of https://oceanhackweek.github.io/ohw-resources/tutorials/getting_started/ to point to the nbgitpuller link and briefly explain what it does, right?

Very good point @emiliom re mixing git commands and nbgitpuller.
For tutorials it could make sense to use nbgitpuller, since users presumably will not be contributing back to that repo. But, users will want to use git themselves when doing project work. If it's not advised to mix git and nbgitpuller, then does it make more sense to stick with using git commands instead of using nbgitpuller?

I'm pretty sure that nbgitpuller is targeting a specific folder to pull the tutorials into. Since projects should be in their own directories, then I believe it should not interfere.
The big thing it manages for the tutorials are dealing with if a participant runs a notebook, and the upstream one changes too, then nbgitpuller can still update the rest of the tutorials without having to coach the participants through stashing and restoring their changes.

Still need to overhaul https://oceanhackweek.github.io/ohw-resources/tutorials/getting_started/ to point to the nbgitpuller link and briefly explain what it does. And/or point to the description Alex added to https://oceanhackweek.github.io/ohw-resources/prep/jupyterhub/ just now


Bad type inference when on union in record

Just roc check Broken.roc. kind in the when below gets limited to only [A].
interface Broken
    exposes []
    imports []

Kind : [ A, B, C ]
Data : {kind: Kind}

limitedKind : Data -> Str
limitedKind = \data ->
    when data is
        {kind: A} ->
            "A is special"
        {kind} ->
            # kind here is inferred to only be [A].
            # Thus, when used with the when below, it is a type mismatch.
            when kind is
                B -> "B"
                C -> "C"
                _ -> ""

For the implementor: the best way to deal with this would be to treat kind as a wildcard in the constraining.


xc3_tex xc2/menu/image/mnu032_button_push_main.wilay fails to rebuild properly

Some wilay files contain multiple images (eg. mnu032_button_push_main.wilay). When these files are re-compiled some of the images contained within the wilay appear offset when displayed onscreen, while others may be offset outside the visible screen.
Here are the contents of the mnu032_button_push_main.wilay when extracted:

The first image is the background, the second is a glow around the background, followed by pairs of buttons for swapping between the non-depressed and depressed states.
The original file should show these all layered on top of each other as below (ie. background, ring around border, 5th image [non-depressed B]):

The re-compiled file shows the first image in the correct position (the background) but is then failing to show the ring around border on-screen (it may be offset somewhere outside the visible screen?) then shows the fourth image (depressed button A) offset from the first. It also appears to fail to toggle between depressed and non-depressed states - possibly because the actual button that should be shown on screen are the 'B' pair which may be offset somewhere else...

I can confirm that this still happens even when I do not edit or reorder any of the images, but simply extract, then immediately recompile the wilay without any change.

There are 384 remaining wilay files that don't rebuild 1:1 for Xenoblade 2. Not all the files in this list will be broken, but all the broken files are likely to be in this list. mnu032_button_push_main.wilay is one of the files that doesn't rebuild properly yet due to some missing data. The goal is to try and get all the wilay rebuilding issues fixed for the next 0.5.0 release.

The files aren't completely 1:1 yet, but this specific issue is fixed on the latest commit.

I've tested this example in game by simply swapping the extracted dds files around (eg. replace A with B by simple renaming) and recompiling. The result appeared to work as expected. Thanks.


Word converter: detect lists without a blank line before them

In section 9.7 (the dynamic type) there is a list preceded by "Because of this equivalence, the following holds:"
There's no blank line after that sentence - it goes straight into a list. The Word converter doesn't pick up on that being a list.

Need to check/fix this before C# 6.

@jskeet lists should have a blank line above and below the list. Depending on the status of the markdown converter, we could turn on markdown lint and find those instances.

It turns out we have 158 of these issues. Yikes.

Ah, it's not quite that bad... we need to handle being in nested lists as well. This is going to be ugly...


keyboard layout change may not take immediate effect in X

If the keyboard layout is changed after X11 has launched (with startx, or because boot to desktop has been selected on an earlier boot), Xorg does not appear to recognise the keyboard change until the next restart (or physical re-plug of the keyboard).
Rather than force a reboot after every change, I believe a sufficient solution is to add:
udevadm trigger --subsystem-match=input --action=change

Closing as this issue is now addressed in the development fork at https://github.com/RPi-Distro/raspi-config


[ADAP-949] [Bug] dbt docs generate timeout

Is this a new bug in dbt-bigquery?

[X] I believe this is a new bug in dbt-bigquery
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
Getting a timeout error when running dbt docs generate after 600 seconds (10 mins)
Profiles.yml - job_execution_timeout_seconds: 21000
on dbt 1.6.6
slack thread - https://getdbt.slack.com/archives/C99SNSRTK/p1695856526889609
23:22:20  Encountered an error while generating catalog: Runtime Error
| Deadline of 600.0s exceeded while calling target function, last exception: 500 Error encountered during execution. Retrying may solve the problem.
Expected Behavior
I expect dbt docs generate to complete successfully without no time out
Steps To Reproduce
dbt docs generate
Relevant log output
No response
Environment
- OS:
- Python: 3.8
- dbt-core: 1.6.6
- dbt-bigquery: 1.6.6

Additional Context
No response

Thanks for opening this @dongchris !
I just read your most recent comment in Slack here:

hmm just retried it and it worked. seems like its instability with Google BQ API library perhaps

So I'm going to close this as resolved. But just let us know if you are still having problems, and we can re-open this.

re-opening per @dongchris's request in Slack. looking at #902, perhaps the BQ client has a baked in 600 second timeout if a timeout larger than 600 is provided?

re-opening per @dongchris's request in Slack. looking at #902, perhaps the BQ client has a baked in 600 second timeout if a timeout larger than 600 is provided?

Can you point to where the bq client code is?
Relevant stack overflow thread https://stackoverflow.com/questions/75475875/timeout-error-when-writing-large-amounts-of-data-to-big-query

@dongchris some of the frequently-used client code is here:

https://github.com/dbt-labs/dbt-bigquery/blob/f0f6d1451a1f04da5a7f4718685572c8e7a1316c/dbt/adapters/bigquery/connections.py#L459
https://github.com/dbt-labs/dbt-bigquery/blob/f0f6d1451a1f04da5a7f4718685572c8e7a1316c/dbt/adapters/bigquery/connections.py#L732

I didn't research if dbt docs generate is hitting those particular locations or not though.

This is related to #263 and #577

@dongchris are you still experiencing this?
@dataders do you see any more indications of this?


Adds astro keywords to packages with .astro file exports

Adds astro and astro-component keywords to packages containing .astro file exports. This should enable Astro to detect and add to vite.ssr.noExternal in astro.config.

Thanks @scottaw66! I appreciate this — let's see if it helps!


Python bindinds of solver abstraction, ddp + unit-test

In GitLab by @cmastalli on Jun 28, 2019, 15:54

In GitLab by @cmastalli on Jul 15, 2019, 08:43
mentioned in merge request !173

In GitLab by @cmastalli on Jul 15, 2019, 13:06
closed


Output Mismatch

Output of 'strings libarm_compute.so | grep arm_compute_version':
arm_compute_version=v18.01 Build options: {'cppthreads': '1', 'arch': 'armv7a', 'opencl': '0', 'neon': '1', 'build': 'native', 'debug': '0', 'openmp': '1', 'os': 'linux', 'Werror': '0'} Git hash=unknown
Platform:
raspberrypi 3
Operating System:
archlinux

Problem description:
I have created the standalone setup for 3 layers (conv->relu->maxpool). Input to convolution is always same and fixed. This 3 layers are run repeatedly in a while loop as shown in the wrapper file. I expect the output to be same for all the iterations as the input is always fixed   . However we see results mismatch with the expected outputs. This mismatch is observed randomly for conv/maxpoolLayer in between 1 to 10 iterations.
Could you please check if the same behaviour is observed on your side with the attached inputs and wrapper files and let us know your feedback.
testsetup.zip

is there any update on this?

Hello @Subarukun,
Just saw your code. I think this is probably due to the padding. You seem to incorrectly fill and read the values.
Please look at the documentation here
Better used Window loops to fill and read you values.

Well your inputs might not have padding but your destination and relu output does have.
Of course it depends on how you produced the intermediate buffers that you compare with, and you are correct that it should fail if it was a padding problem and I am surprised it does not.
I compiled your code and run without any failures.
I also get this:
conv dst :1520768   dst Tensor size: 1562624
relu dst :1520768   dst Tensor size: 1562624
mp dst :373248   dst Tensor size: 373248

which justifies the fact that there is padding in the tensor. Do you get something similar or the size of your tensors are the same size with the reference? If there is padding why do you validate consecutive elements? I would expect to see failures in max pool output as there is no padding.
Finally, can you report what these values are for you and in which elements you get failures. Are they in consistent places? Could you try latest release as well?

Yes George I do get the same padding values as you have shown. With the latest release I donot see this issue for the given setup upto  50 iterations.
If you have the raspberrypi 3 with arch linux can you run the sample alexnet model and let us know your results with multiple runs . In our case we are seeing difference in outputs for the same image with opencv and imshow for alexnet model. Could be due to huge cpu load or low RAM . If you need I can give you our sample Alexnet setup where we are seeing this issue.

Hello @Subarukun,
I don't have raspberry pi 3 with arch linux setup but I did try your test on a similar platform and on our latest release. I left it run more than 100 iterations multiple times without any issues.
As I mentioned above the way you check your conv and relu output seems to be wrong. You check consecutive values of your result without accounting the padding (maybe I am missing something).
Difference in the output might be due to several reason. Have you tried to check it layer by layer to find which layer starts to go wrong? Can you also try our graph alexnet example as well and check the output?
If you send us the Alexnet setup I can have a look, but try the above first.
Thanks

Hi George,
Thanks for trying it out and letting us know the results George.As I have mentioned in my previous comments, I don't have issue for the test setup that I have shared with you using latest release . It was meeting our tolerance level .
However, I am facing issues with Alexnet Model for multiple runs on raspberry pi 3. I can give you my failing setup of Alexnet Model but again, I do not think it is of no use to you, since you confirmed that you do not have raspberry pi platform.
If you still want try out the alexnet model standalone test setup, I could give you that.
It would be great if you could let us know what is the platform/simulator  that you are using to test these things. We could also use the same setup instead investing our resources on rpi3b.
Thanks,
G. Praveen.

Hello @Subarukun,
Please send over your failing setup so that we can have a better look.

Hi Anthony,
I have gone through the graph_alexnet.cpp and it appears to be very simpler without exposing internal details.
Anyways I see 2 approaches to tackle the issue:

If graph_alexnet accepts the video as input then ,recheck the same issue with graph_alexnet.
How ever it has been written to take a single image during the dosetup. We are planning for an
example that takes a video as input. It would be great if there is graph_alexnet example which accepts
the video input file.

Inherently if the graph_alexnet uses same code as AlexNetNetwork.h then the issue(inconsistent outputs) would still persists . So looking into the issue with AlexNetNetwork.h would be a good idea.

I could share a demo video of the issue on raspberrypi if you want to have a look at nature of the issue.
Thanks.

graph_alexnet doesn't accept a video but it would be pretty easy to implement.
Basically if you look at how Graph::run() is implemented you'll see that the network is called inside a loop for as long as the input / output accessor return true.
So you could just provide your own accessor with something like:
bool VideoAccessor::access_tensor(ITensor &tensor)
{
    if( video.eof()) return false;

    tensor.fill( video.next_frame() ):
   return true;
}

Then the network will run for every frame of the video with a single call to graph.run()
Hope this helps,

Also, George is right: You cannot just use memcpy to set the input, you need to copy row by row using execute_window_loop to take into account the padding.
Something like:
// Create an iterator:
        Iterator output_it(&output, output_window);
        // Iterate through the rows of the output tensor and copy them to dst_data:
        // This is equivalent to:
        // for( unsigned int z = 0; z < batch; ++z)
        // {
        //   for( unsigned int y = 0; y < height; ++y)
        //   {
        //     memcpy( dst_data + z * (width*height) + y * width, input.buffer() + input.info()->offset_element_in_bytes(Coordinates(0,y,z)), width * sizeof(float));
        //   }
        // }
        // Except it works for an arbitrary number of dimensions
        execute_window_loop(output_window, [&](const Coordinates & id)
        {
            std::cout << "Copying one row starting from [" << id.x() << "," << id.y() << "," << id.z() << "]\n";
            // Copy one whole row:
            memcpy(dst_data + id.z() * (width * height) + id.y() * width, output_it.ptr(), width * sizeof(float));
        },
        output_it);

@Subarukun Did y

Hi George,
Sorry for the delayed response .
I was able to create an example using the graph_alexnet which takes video as input and outputs the result. To do this I have implemented VideoAccessor as suggested . Opencv is used to extract frames from Video which happens in the VideoAccessor:accesstensor.
After running the example we observed that there was wrong classification randomly as shown in the below snapshot at frame:39
---------- Top 5 predictions ----------
0.2282 - [id = 889], n04536866 violin, fiddle
0.0839 - [id = 432], n02804610 bassoon
0.0757 - [id = 546], n03272010 electric guitar
0.0755 - [id = 486], n02992211 cello, violoncello
0.0747 - [id = 420], n02787622 banjo
frame :34
---------- Top 5 predictions ----------
0.2260 - [id = 889], n04536866 violin, fiddle
0.0816 - [id = 432], n02804610 bassoon
0.0751 - [id = 558], n03372029 flute, transverse flute
0.0741 - [id = 486], n02992211 cello, violoncello
0.0728 - [id = 420], n02787622 banjo
frame :35
---------- Top 5 predictions ----------
0.2257 - [id = 889], n04536866 violin, fiddle
0.0817 - [id = 432], n02804610 bassoon
0.0751 - [id = 558], n03372029 flute, transverse flute
0.0740 - [id = 486], n02992211 cello, violoncello
0.0728 - [id = 420], n02787622 banjo
frame :36
---------- Top 5 predictions ----------
0.2176 - [id = 889], n04536866 violin, fiddle
0.0831 - [id = 432], n02804610 bassoon
0.0752 - [id = 558], n03372029 flute, transverse flute
0.0744 - [id = 486], n02992211 cello, violoncello
0.0718 - [id = 420], n02787622 banjo
frame :37
---------- Top 5 predictions ----------
0.2269 - [id = 889], n04536866 violin, fiddle
0.0804 - [id = 432], n02804610 bassoon
0.0746 - [id = 558], n03372029 flute, transverse flute
0.0737 - [id = 486], n02992211 cello, violoncello
0.0735 - [id = 420], n02787622 banjo
frame :38
---------- Top 5 predictions ----------
1.0000 - [id = 955], n07754684 jackfruit, jak, jack
0.0000 - [id = 672], n03792972 mountain tent
0.0000 - [id = 658], n03775071 mitten
0.0000 - [id = 659], n03775546 mixing bowl
0.0000 - [id = 660], n03776460 mobile home, manufactured home
frame :39
---------- Top 5 predictions ----------
0.2262 - [id = 889], n04536866 violin, fiddle
0.0842 - [id = 432], n02804610 bassoon
0.0767 - [id = 546], n03272010 electric guitar
0.0754 - [id = 420], n02787622 banjo
0.0735 - [id = 486], n02992211 cello, violoncello
frame :40
---------- Top 5 predictions ----------
0.2257 - [id = 889], n04536866 violin, fiddle
0.0784 - [id = 432], n02804610 bassoon
0.0782 - [id = 420], n02787622 banjo
0.0781 - [id = 546], n03272010 electric guitar
0.0734 - [id = 486], n02992211 cello, violoncello
frame :41
---------- Top 5 predictions ----------
0.2282 - [id = 889], n04536866 violin, fiddle
0.0805 - [id = 558], n03372029 flute, transverse flute
0.0793 - [id = 432], n02804610 bassoon
0.0754 - [id = 486], n02992211 cello, violoncello
0.0730 - [id = 420], n02787622 banjo
frame :42
---------- Top 5 predictions ----------
0.2299 - [id = 889], n04536866 violin, fiddle
0.0803 - [id = 432], n02804610 bassoon
0.0757 - [id = 486], n02992211 cello, violoncello
0.0744 - [id = 558], n03372029 flute, transverse flute
0.0726 - [id = 546], n03272010 electric guitar
Please let me know if you need the testsetup.
Thanks,
G.Praveen

Hello @uu-praveeng ,
Can you provide us with your setup and some inputs?
This seems rather strange.
Thanks,
George

Did you have a chance to  look into this?

Yes, and we can't reproduce the problem.
Internally we've got tests running on huge image datasets (thousands of images) and they work fine, so it seems to be likely to be an issue with your OpenCV setup and your camera code.

As explained above: our unit tests pass, so it's likely to be an issue related to the data transfer between OpenCV and the Compute Library

Hello @Subarukun , I may found output mismatch reason, I have meet same issue, code like this:
`class LoadInputData final : public arm_compute::graph::ITensorAccessor
{
public:
LoadInputData(float *data) : _already_loaded(false), _data(data){}
bool access_tensor(arm_compute::ITensor &tensor) override {
    if(!_already_loaded){
        if(tensor.info()->data_type() != arm_compute::DataType::F32){
            printf("Unsupported format\n");
            exit(-1);
        }
        arm_compute::Window window;
        window.use_tensor_dimensions(tensor.info()->tensor_shape());
        arm_compute::utils::map(tensor, true);
        arm_compute::Iterator it(&tensor, window);

        int i = 0;
        printf("LoadInputData %p\n", reinterpret_cast<float *>(it.ptr()));
        execute_window_loop(window, [&](const arm_compute::Coordinates & id) {
                //if(i < 10) printf("LoadInputData %d %d %d %d %f\n", i, id.x(), id.y(), id.z(), _data[i]);
                //*reinterpret_cast<float*>( tensor.buffer() + tensor.info()->offset_element_in_bytes(id)) = _data[i++];
                *reinterpret_cast<float *>(it.ptr()) = _data[i++];
            },
            it);
        arm_compute::utils::unmap(tensor);
        printf("LoadInputData %d %f\n", i, _data[0]);
    }
    _already_loaded = !_already_loaded;
    return true;
    //return _already_loaded;
}

private:
bool _already_loaded;
float *_data;
};
float face_feature[512];
arm_compute::graph::frontend::Stream graph_face(0, "yolov3");
graph_face << graph_target
<< fast_math_hint
<< arm_compute::graph::frontend::InputLayer(input_descriptor, arm_compute::support::cpp14::make_unique(face_image_input))
<< arm_compute::graph::frontend::ConvolutionLayer(
3U, 3U, 64U,
get_weights_accessor(data_path, "conv0_w.npy"),
std::unique_ptr<arm_compute::graph::ITensorAccessor>(nullptr),
arm_compute::PadStrideInfo(1, 1, 1, 1)).set_name("conv0");
graph_face << arm_compute::graph::frontend::OutputLayer(arm_compute::support::cpp14::make_unique(face_feature));
I test use a ConvolutionLayer, the first time run result is right, but second round is different, because access_tensor return bool value, you should always return true, not_already_loaded = !_already_loaded`


Handle Twitter API going paid

They're threatening to start charging for the API next Thurs: https://twitter.com/TwitterDev/status/1621026986784337922
No more details yet, but Elon suggests pricing will start at $100/mo plus id check, which is in line with the lowest tier of their current premium API: https://twitter.com/elonmusk/status/1621259936524300289
https://www.theverge.com/2023/2/2/23582615/twitter-removing-free-api-developer-apps-price-announcement

Yikes! This doesn't sound good. If that happens the last of the big social networks will be gone from feeding back to my blog. G+ obviously disappeared ages ago, followed by Facebook when they locked everything down. Seems Twitter will follow soon.
Frustrating.

One day until this is supposedly happening, and they finally did something: they took down the entire developer forum. https://twittercommunity.com/
:clown_face: :popcorn: :sob:

Anyone know if the posting part of brid.gy still work without going paid?

No one knows much at this point. 😦 I'd consider paying for the API, but I have no idea how, or how much it will cost. I'll post more as soon as I know something!

A few more crumbs of information: https://twitter.com/TwitterDev/status/1623467615539859456

Shutting off the current free API is postponed four days, to 2/13
They'll add a limited free API tier for bots that allows them write access to a single account
Otherwise, pricing is $100 for a "low level of API usage." No idea what constitutes low, but as a data point, the Essential tier currently allows fetching 500k tweets per month, and Elevated allows 2M. I don't know Bridgy's number, but it currently averages 1.3qps of API calls, ie ~3m per month, and most of those fetch somewhere between 1 and 100 tweets each. 😐

My best guess would be...Bridgy currently fetches 10-30M tweets per month.

To be fair, most of those are searches to construct reply chains, and the v2 API supports fetching replies directly, so I could probably cut that number way down. Would that be enough, and would I invest that much more time and effort into the Twitter API...I don't know.

This is genuinely the dumbest change musk could make. The thing that made Twitter popular in the first place is devs hooking into it. I assume if bridgy does end up being charged then Twitter usage might cost a nominal fee for each user that wants to use it via bridgy? (depending on scale and cost, you could actually make a profit)

Maybe! But I'm pretty allergic to fundraising or charging for Bridgy and related projects I run. Donors and paying customers come with strings and obligations that I'd rather avoid. Fortunately, if Bridgy fits in the $100/mo tier, I can afford that personally, so I may just fund it myself for a while. We'll see.

I'm no longer on Twitter so this doesn't affect me any more but I sure do love your attitude and your service to the IndieWeb 🫡

Pricing finally dropped today. $100/mo for 10k tweets, which is .1% or less of Bridgy's monthly usage. 💩
https://twittercommunity.com/t/announcing-new-access-tiers-for-the-twitter-api/188728

I've been looking at switching to scraping their internal GraphQL API with https://github.com/trevorhobenshield/twitter-api-client, and the data model is entirely different from the v1.1 and v2 official APIs. It'd take a lot of work to migrate Bridgy/granary to. With the current state of Twitter, I doubt I'd invest that time and effort.

Worse, they're shutting down the v1.1 API(s) entirely within the next month. From https://twittercommunity.com/t/announcing-new-access-tiers-for-the-twitter-api/188728 :

Current access plans including Standard (v1.1), Essential (v2), Elevated (v2), and Premium will be deprecated over the next 30 days, so we recommend that you migrate to the new tiers as soon as possible for a smooth transition. Any non-migrated developer accounts will be impacted by April 29th, 2023 at the latest.

Just checking as I'm not entirely clear:
Redding your blog post you mention it might still work until the end of April. However, it looks like none of my mentions today have been picked up. Looks like the API is already dead then? Unfortunately I don't have the skills and knowledge to check, so I have to ask.

For the record, conclusion here is that keeping Bridgy Twitter running would cost $42k+/mo, which is a non-starter, and even just keeping Publish working would take significant development work to migrate to the v2 API, since they're shutting off v1.1 (we think), and I don't plan to invest that effort into such s hostile platform.
Sad. End of an era!

Ah, I see. Well, it was great while it lasted, mainly thanks to your great work. Sad to see something great being killed off by greed.
Onwards and upwards.

I don't know exactly what the difference is with how the https://moa.party/ API works with Twitter, but that is still working for some reason, and that's how we're getting Brid.gy output over to Twitter now— Brid.gy to Mastodon, Mastodon to Twitter!

Yeah, they haven't entirely shut off the old API access tiers, they just started suspending some apps like Bridgy ahead of time. They claim they're turning off everyone by April 29. 🤷♂

Have we considered migration to the undocumented API?
There is at least one implementation here:
https://github.com/trevorhobenshield/twitter-api-client

Yes, https://github.com/snarfed/bridgy/issues/1410#issuecomment-1489628813 . It has a rate limit of 500 calls per endpoint per 15m, which isn't enough for Bridgy. (It would also take a lot of work, and we'd be signing up for a never-ending arms race against their bot detection.)


role in human social process

This issue was copied to GitHub as a result of our migration from BitBucket. Some of the context may have been lost in this migration, but you can find the original issue linked below.
Original issue: https://code.google.com/p/omrse/issues/detail?id=5
This is a potentially misleading label. The role is realized in human social processes. The definition says "A role played by an entity in human social processes." I would write instead: "A role realized in a human social process.".
It is unclear whether such roles can only be borne by humans. So can a flag bear such a role? E.g. is "national flag role" a subclass, where national flag role is defined as (perhaps):
A role that inheres in any material entity that an image can be imprinted on and which is realized when there the material is used in a communication process in which the bearer represents the country.
Social process is not defined so this is also a source of ambiguity about what the term represents.

The current definition is "A role inhering in an entity realized by social interactions in human society."


animation

@SauravMukherjee44 animation pr

Hey, You can use the particle.js library for better animations and try to host your repository on GitHub pages, So that I can see the live website and merge the code.

Hey, You can use the particle.js library for better animations and try to host your repository on GitHub pages, So that I can see the live website and merge the code.
https://aec-library.netlify.app/


Cloud: Make sure on_connect forwards platform only once

Description:
Only forward the cloud entry once.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

We do too much during setup, and so testing is harder. Right now 4 on connect handlers are attached. I am making sure there are 4, the one I am picking out was defined during async_setup, and if called it does a certain thing. Not ideal. I have a bigger cleanup planned for later.