Taiwan Server

Hello,
Great work, thanks for the service.
Is it possible to map Taiwan's server?
Thanks ;)

As I know there is no Taiwan server in MiHome. All servers here:
https://github.com/AlexxIT/XiaomiGateway3/blob/master/custom_components/xiaomi_gateway3/config_flow.py#L20

They do, here is the list of servers : cn, de, us, ru, tw, sg, in, i2 (extracted from the tocken extractor app)

Taiwan is sg (c) @rezmus

in is sg (c) @rezmus ;)
it's common mistake in all projects which copied/ported mi cloud code from openhub, which made 1st public code with mi cloud support. there are only 6 api servers - cn, sg, de, ru, us, i2. the rest are just mappings.

@wowgamr you can check (Xiaomi Iot debugger tool. Taiwan is using Singapore server.
你用該工具選擇新加坡伺服器叫可以抓到你的台灣設備。

@wowgamr you can check (Xiaomi Iot debugger tool. Taiwan is using Singapore server.
你用該工具選擇新加坡伺服器叫可以抓到你的台灣設備。

Looks like you made a missclick :)

Please reopen the issue if it is still relevant


Specify attributes using traits

There is a lot of boiler-plate, repeated code in the various from_kg_instance() and _build_data() methods.
A lot of this could be avoided by declaring types and keys of each attribute at the class level.
A library like traits might be a way to do this, or we could hand-roll a minimal implementation to avoid adding dependencies.

I decided to go with the hand-rolled approach, defining a Field class.
Merged into master in 09c81e6


compareWith not working...

Getting this error message
`polyfills.js:3 Unhandled Promise rejection: Template parse errors:
Can't bind to 'compareWith' since it isn't a known property of 'ion-select'.

If 'ion-select' is an Angular component and it has 'compareWith' input, then verify that it is part of this module.
If 'ion-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the<EMAIL_ADDRESS>of this component to suppress this message.`

Here are my dependencies :
 "dependencies": {     "@angular/common": "4.1.2",     "@angular/compiler": "4.1.2",     "@angular/compiler-cli": "4.1.2",     "@angular/core": "4.1.2",     "@angular/forms": "4.1.2",     "@angular/http": "4.1.2",     "@angular/platform-browser": "4.1.2",     "@angular/platform-browser-dynamic": "4.1.2",     "@ionic-native/core": "3.10.2",     "@ionic-native/splash-screen": "3.10.2",     "@ionic-native/status-bar": "3.10.2",     "@ionic/cloud-angular": "^0.12.0",     "@ionic/storage": "2.0.1",     "cordova-android": "^6.2.3",     "cordova-plugin-console": "^1.0.5",     "cordova-plugin-device": "^1.1.4",     "cordova-plugin-googleplus": "^5.1.1",     "cordova-plugin-splashscreen": "^4.0.3",     "cordova-plugin-statusbar": "^2.2.2",     "cordova-plugin-whitelist": "^1.3.1",     "ionic": "^3.4.0",     "ionic-angular": "3.4.1",     "ionic-cli": "0.0.0",     "ionic-plugin-keyboard": "^2.2.1",     "ionicons": "3.0.0",     "ngx-cookie": "^1.0.0",     "rxjs": "5.1.1",     "sw-toolbox": "3.6.0",     "zone.js": "0.8.11"   }

Please fill the issue template
What is the template that causes this?

@AmitMY I am using a template similar to this
<ion-item>   <ion-label>Employee</ion-label>   <ion-select [(ngModel)]="employee" [compareWith]="compareFn">     <ion-option *ngFor="let employee of employees" [value]="employee"></ion-option>   </ion-select> </ion-item>

Please fill the issue template
Do you have IonicPageModule.forChild(YOUR-PAGE) imported in the module? Also similar is not necessarily good enough, can you reproduce this in a plunker?

You need to update "ionic-angular": "3.4.2"

@adriallongarriu Thanks it worked


Dapr 1.12.3 appears to regress PubSub component load/connection in EShopOnDapr containers

In what area(s)?
/area runtime
What version of Dapr?

1.12.3

Expected Behavior
Context: Eshop is a rather complicated sample showing a distributed app.  It is implemented as a set of 23 containers, many of which are app containers or dependencies like Rabbitmq.  Each app also has a corresponding app-daprd container.  There is also a dapr-placement container and a blazor front end.
Expected:
Upon docker-compose up all containers pull, build and load into healthy running state.
This following repro WORKS using 1.12.0 (and also 1.9.x)

clone this repo and dotnet8 branch: paulyuk/eShopOnDapr at dotnet8 (github.com)
docker-compose up  (you need only Docker, not Dapr on your host)
3a) check the health of your eshopondapr* containers in Docker Desktop, VSCode or docker ps .  There should be 23 healthy
3b) check health of containers on http://localhost:5107/ -- all should be healthy
test the web front end on http://localhost:5104/

*note daprd logs show successful component loads
time="2024-01-11T01:47:53.15662668Z" level=info msg="Component loaded: eshopondapr-pubsub (pubsub.rabbitmq/v1)" app_id=webshoppingapigw instance=134475b1ae80 scope=dapr.runtime type=log ver=1.12.0
All containers are running healthy, app runs end to end.
Actual Behavior
All Daprd containers fail and exit, and so do the apps depending on the sidecar.
Daprd logs show:
time="2024-01-11T01:34:07.948032131Z" level=error msg="Failed to init component eshopondapr-pubsub: [INIT_COMPONENT_FAILURE]: initialization error occurred for eshopondapr-pubsub (pubsub.rabbitmq/v1): dial tcp <IP_ADDRESS>:5672: connect: connection refused" app_id=webshoppingagg instance=d106c6cb9f39 scope=dapr.runtime type=log ver=1.12.3
Steps to Reproduce the Problem

clone this repo and dapr1-12-3issue branch: paulyuk/eShopOnDapr at dapr1-12-3issue (github.com) OR git checkout dapr1-12-3issue
** the only change is pulling docker images with 1.12.3 tag instead of 1.12.0
2-4 steps are the same, except you'll see all dapdr containers fail

Notes
I brainstormed with others and suspected a few things that we then invalidated:

problems with Docker cache and network settings.  We would recycle Docker, system prune and so forth to be sure
compose authoring problem putting placement container in wrong network.  This isn't the case given the conventions and names used.  also that would prevent 1.12.0 from working using the same compose file.
if you make no other change than version numbers in docker compose file, the repro will consistently swap between working and broken states.  To me this rules out a number of external factors (although I suppose there could be an interaction I'm not detecting yet).

Can you try and reproduce with 1.12.1 and 1.12.2? That would greatly help in identifying the potential root cause

@yaron2 I see the error repro starting in 1.12.1.
Full results
1.9.4  pass
1.11.6 pass
1.12.0 pass
1.12.1 fail
1.12.2 fail
1.12.3 fail

Here's the gist:
We're moving away from reconnection attempts in components to putting it in the runtime because in some components that would leave to issues where a component would report to the sidecar that it's healthy when in fact it is not. Most components error on init right away if the service (RabbitMQ, Redis etc.) isn't ready. In 1.12.1, we fixed a bug in the RabbitMQ component where it would always report to the sidecar that its healthy, even if it never becomes healthy. That behavior was wrong as it was both different from how ever components behave and also behaving differently from how we document the behavior to be (Dapr should panic and exit if the underlying service isn't ready at init time).
In the eShop app, all dependencies are not specified in depdends_on and do not have health checks to ensure that they're running before Dapr starts.
If you run the RabbitMQ container separately for example and then run the rest of the compose file, it will work as expected. Verified on my machine:
msg="Component loaded: eshopondapr-pubsub (pubsub.rabbitmq/v1)" app_id=webshoppingapigw instance=10495dc3e5b6 scope=dapr.runtime type=log ver=1.12.3```

Thanks for explaining.
So far this still breaks an extremely common scenario (an app depending on a message queue broker or a db) in the inner loop.  My goal would be to still have a single compose file that runs this distributed app with all dependencies.
Do you think adding depends_on and a healthy condition is the right solution?  or are you suggesting multiple compose files (I really hope that's not the suggestion).
This is one of many user posts on the topic, with highly voted answers.  People want the "make sure X runs before Y" docker compose scenario to work :)

Do you think adding depends_on and a healthy condition is the right solution?

Yes, these features in Docker Compose are there to ensure that you have dependencies running and healthy before their downstream consumers are up. Running docker-compose up rabbitq separately and then another docker-compose up is also a viable way.
This worked for me: (would need to be added to all services using the pub/sub component, removed here for brevity)
rabbitmq:
    image: rabbitmq:3-management-alpine
    healthcheck:
      test: [ "CMD", "rabbitmqctl", "status"]
      interval: 1s
      timeout: 2s
      retries: 10

With this in the override file:
rabbitmq:
    ports:
      - "5672:5672"
      - "15672:15672"

Then set the correct depends_on setting on the sidecar:
webshoppingagg-dapr:
    image: "ghcr.io/dapr/dapr:1.12.3"
    network_mode: "service:webshoppingagg"
    depends_on:
      webshoppingagg:
        condition: service_started
      rabbitmq:
        condition: service_healthy

This enables a healthcheck for RabbitMQ, and uses a Docker Compose setting that will only start the Dapr container once RabbitMQ is running with the help of the condition: service_healthy field.

Thank you!  I was misreading the suggestion.  I'll try this ASAP.  Once all good I can contribute this better approach back to EShop and also to our dapr.io doc on docker compose: https://docs.dapr.io/operations/hosting/self-hosted/self-hosted-with-docker/ (note I want to tweak this anyway because I feel it over complicates the docker networking by using a custom name for dapr placement container.. )


Improved Indentation and added Comments in the codebase.

Description
Fixes #117
Improved Indentation and added Comments in the codebase.
Please give wherever changes need.
Changes Made
[List the changes you have made in bullet points.]
Checklist

[ ] I have read and followed the contributing guidelines.
[ ] I have tested my changes thoroughly and they work as expected.
[ ] I have added necessary tests for the changes made.
[ ] I have updated the documentation to reflect the changes made.
[ ] My code follows the project's coding style and standards.
[ ] I have added appropriate commit messages and comments for my changes.

Related Issues
[If your changes relate to any existing issues, please list them here.]
Additional Notes
[Provide any additional notes or context that may be helpful for the reviewers.]
Feel free to modify and customize this template as needed to fit the specific needs of the GCP Scanner project.

@mshudrak  please check this

@mshudrak  ,in the review section, there is no showing pylint error for other files except credsdb.py is there any check still needed?

I don't see that tests even run now. Additionally, this CL is too large for review. I'd advice you to split it per file. I also see a lot of comments you added to be redundant. See one I made for example.

I don't see that tests even run now. Additionally, this CL is too large for review. I'd advice you to split it per file. I also see a lot of comments you added to be redundant. See one I made for example.

Yeah. I also thought that. Ok, I am working on it

I don't see that tests even run now. Additionally, this CL is too large for review. I'd advice you to split it per file. I also see a lot of comments you added to be redundant. See one I made for example.

Yeah. I also thought that. Ok, I am working on it

I think, can I close this issue. And start new PR fir group of 3 files. So that it can easy for check?

Take a look at my other comments, a lot of comments are redundant. We do not need that level of comment details especially for obvious things. Also, we use 2 spaces instead of 4.

Closing this one due to inactivity. Feel free to split it into small PRs and resubmit.


Pop-Up Page Stuck After User Action, Alert Messages Not Displayed After Updating Location at admin dashboard

Issue 1: Pop-Up Page Stuck After User Action
Description:
Restaurant's website, there is an issue where pop-up pages do not close or go back to the previous page after a user completes a specific action. This disrupts the user experience as it leaves users stuck on the pop-up page without a clear path to return to the main website content.
Impact:
User Frustration: Users encountering a stuck pop-up are likely to become frustrated. They may repeatedly attempt to update their zone, leading to a poor user experience and potential abandonment of the website.
Inability to Access Relevant Content: A stuck pop-up prevents users from successfully updating their location or delivery area.
Steps to Reproduce:

Visit our restaurant's website.
Trigger a pop-up by interacting with a specific feature or action.
Complete the action on the pop-up page.
Attempt to go back to the main website content or update the pop-up.
Observe that the pop-up page remains open, and there is no option to return to the previous content.

Expected Resolution:
Resolve the issue with pop-up pages so that users can easily go back to the main website content after completing an action or close the pop-up when desired.

Issue 2: Alert Messages Not Displayed After Updating Location
Description:
Restaurant's website has a problem where alert messages are not displayed to users after they update their location. These alerts are important for providing information about available services, delivery areas, or special offers based on the your location.
Impact:
User Confusion: Users may be confused about available services or offerings if they do not receive relevant alert messages after updating their location.
Missed Opportunities: Failure to display location-specific alerts.
Steps to Reproduce:

Visit our restaurant's website.
Navigate to the location update or geolocation feature.
Update your location.
Observe that no alert messages appear to provide location-specific information or offers.

Expected Resolution:
Ensure that alert messages related to location-specific information are displayed to users after they update their location on the website. This will help communicate relevant details and opportunities effectively.

Hi @Sohailqureshi9,
I'm pleased to inform you that the issue you reported regarding the missing confirmation message for zone updates has been successfully resolved.
Thank you for bringing this issue to our attention, and we appreciate your patience. If you encounter any further problems or have additional feedback, please don't hesitate to let us know.
Best regards,
@beKashif
@Ninjas-Code-official/ninjas-code

Hello @Sohailqureshi9,
I'm happy to inform you that we've resolved the issue where the pop-up page became unresponsive after user actions and alert messages failed to display after updating restaurant information in the Restaurant Section. Now, the pop-up closes automatically after saving your changes.
Thank you for bringing this matter to our attention, and we appreciate your patience. Should you encounter any further challenges or have additional feedback, please don't hesitate to reach out.
Best regards,
@beKashif
@Ninjas-Code-official/ninjas-code


Enable importing textures with custom mipmaps and/or compression

While this change does not introduce any new importable image formats, it does
open the door for image formats containing mipmapped and/or compressed images.
This allows future changes to add import support for e.g. KTX (Khronos texture
format), CRN (crunched textures), or DDS (currently DDS files are loaded as
resource, they can't be imported and thus don't support the related
functionalities, e.g. you can't set filtering settings for them as they aren't saved
anywhere).
NOTE: @reduz doesn't agree with this change, so I guess this is unlikely to ever get merged, but I'm sharing in the hope that it may prove useful to others.
If anybody is also in need of a KTX/CRN/DDS importer taking advantage of this change, just ping me.

Closing this PR, we had a long discussion about this, so will be resumed in the following points:

Most artists work with images directly and don't touch mipmaps, so this is a very special case that can be handled rather easily with a custom importer. I can offer advise on how to do this if needed, it's not difficult.
Supplying vram compressed textures on input does not make much sense due to Godot converting the textures to whatever is needed on import.
We need to offer a way in the importer to specify a roughness texture and channel. I think this can be done automatically also as we do with normal map and sRGB detection, so the artist will never find out.
We need to implement compression for StreamTexture VRAM. We discussed using Unity's Crunch fork, but it lacks many formats we use, still the idea of LZW compressing them is interesting, that avenue needs to be researched better.

Regarding loading images with custom mipmaps, this can already be achieved using DDS images which can be imported by Godot.


Unsupported Node.js 16 used

The repo cypress-io/cypress-realworld-testing is set up to use Node.js 16 which is no longer supported.
https://github.com/cypress-io/cypress-realworld-testing/blob/50bfb658496830fa2fa44b139cfa900af49f3af4/.node-version#L1
CircleCI logs also show Node.js 16.16.0 being used.
References

Cypress documentation Installing Cypress > System requirements > Node.js.
Node.js 16 end-of-life announcement for Sep 11, 2023.

Suggestion
Update to using Node.js v18.19.0 or later 18.x version.
Update tests
Updating Node.js, then running the following on Ubuntu 22.04 gives the following results:
export SITE_URL=https://learn.cypress.io
yarn cypress:run

Node.js Version
Result

v18.19.0
all 11 pass

v20.11.1
complete-lesson-button fails

Closed due to no feedback.


next-18next appWithTranslation lighthouse page speed problem

Describe the bug
Hello everyone. We have been getting really low  score from browser's lighthouse tab and google page speed insights. We tried many things and we figured out that wrapping the app.js with "appWithTranslation" effecting our app in a very bad way. Is there anyway to implement next-18next in another way ?
Occurs in next-i18next version
"next-i18next": "^4.5.0"
Steps to reproduce
Removing main wrapper which collapsing whole app (appWithTranslation).
Expected behaviour
Wrapping application shouldn't effect the performance in a bad way.
Screenshots
Before / After

OS (please complete the following information)
Tried both windows and osx, and chrome and opera browsers.

Previous versions of next-i18next are not supported.


Release

Is it possible to get a new release published that includes the latest merge from March?

Ping @deslum thoughts?

Hello.
I haven’t worked with Python for a long time, can you remind me how to do it?

@deslum You can use twine, as long as you still have access to our pypi account.
https://www.geeksforgeeks.org/how-to-publish-python-package-at-pypi-using-twine-module/


Remove Ubuntu-16.04 as a target platform for build and test due to th…

…e end of the support of this OS
Signed-off-by: Taras Drozdovskyi<EMAIL_ADDRESS>Description
Remove Ubuntu-16.04 as a target platform for build and test due to the end of the support of this OS
Fixes #289
Type of change

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

How Has This Been Tested?
Successful ending of all github->Actions
Checklist:

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

There is the upcoming patch that need to be integrated with this PR. Until that proposal, this PR will be suspended. (Just FYI)

@MoonkiHong  In connection with the end of the official support of the Ubuntu 16.04 in the near future The ubuntu-16.04 environment is deprecated and will be removed on September 20, 2021. Migrate to ubuntu-latest instead.
I propose to apply this PR


[Bug]:

Bug Description
Multi-Document Agents.
You need to add additional code for OpenAI Key under setup and demo
Current:
llm = OpenAI(temperature=0, model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(llm=llm)
Recommended:
import openai
Set the API key
openai.api_key =
llm = OpenAI(temperature=0, model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(llm=llm)
Version
llama_index-0.8.44-py3-none-any.whl
Steps to Reproduce
Run
llm = OpenAI(temperature=0, model="gpt-3.5-turbo")
service_context = ServiceContext.from_defaults(llm=llm)
will throw an error of no API Key
Relevant Logs/Tracbacks
No response

Adding the following will address the issue.
import openai
Set the API key
openai.api_key = <add your secret key from OpenAI - you will need to setup and OpenAI account to get one>

Thanks for raising the issue! A lot of the notebook right now assume user has OpenAI API key configured as part of the environment variables.
If you are up for it, would love to have your help on making this more explicit. Feel free to directly make PR against the file, should be here (https://github.com/run-llama/llama_index/blob/main/docs/examples/agent/multi_document_agents.ipynb).


Support multiple uploads

Currently only works for uploading one file, need to add support for uploading multiple files for saving in the database

From my point of View multiple uploads work with the Widget, setting max_file_count to > 1, but I did not use your controller + action only the widget and only html5 since I need the stuff in a backend with authentication and that seems to not work that easy with flash

Yeah, multiple uploads will work, but the issue that I didn't have time to work on was how are you able to keep track of that once the user submits a form? Right now there is just some simple js that places the uploaded filename in a hidden field. I don't think it would be to hard to update the field to be an array so when the user submits the form, you get an array of files they uploaded.

What do you wan't to do ? or why would you want to get an array of the uploaded files ?
Do you want to make asynchron uploads via plupload AND then fill a hidden field (or multiple ones) with what it has successfully transfered and then submit the "rest" of your form ?
I didn't, to many additional requirements for that, if somebody closes the page you are still left with the uploaded files lying around and adds additional requirements like a cronjob or integration into the uploadscript itself which (regularly) checks the temp-upload-dir for unused uploads and chunks if canceled uploads.
Plupload has support for additional data to the request.
So as long as you don't use chunking!! [Means you are limit by phps limits of post-size and upload-size], there is one upload-request per file (in the background). So if each upload is some kind of object and you have all needed informations for the object in the form (no additional upload-fields!), you can just add them to the request and make that one request create the object.
I currently have plupload embedded only in forms whichs aim is to create multiple "objects".
For example I want to create multiple Images in a gallery.
So I have an extra page with a form which includes plupload and a select-box where i choose the category of the gallery.
Some additional javascript together with pluploads multipart_params adds the category-field to the post-request send from plupload, since I don't use chunks, each upload-request is complete (tested with runtime flash,html5,silverlight in multiple browsers and on Win and Linux) including the file AND the category.
That allows me to use a normal sfForm, make the uploader itself ignored via an sfValidatorPass-Validator, use a normal symfony-based upload-validator for the field "file".
The upload-validator does some magic for me behind the scenes:

Naming the file like i wan't it (I don't like symfony1 way of creating a new name based on a hash)
Append a number if a collission would happen (uploads which are images can land in 2 different directories, a mistake I made a long time ago, but can't just fix across multiple projects)

Then I take care of creating the object in the database.
That saves me from making it to complex.
First problem so far was to modify symfonys session-handling to work with the flash-runtime. (Since I need flash as fallback for all uses using old browsers, especially internet explorer).
The problem with flash is, it does not send cookies (variations across versions from Flash 8 to 11, which send wrong cookies (IE-cookies on all other browsers), over sending some, to including the cookies as post-vars in the request), so if you are using it in a secured backend, all requests using the flash runtime will be cookieless, therefor symfony can't determine a user and auth and you get a 401 header and no upload happens. [Just to mention it, the "headers" setting of plupload does not work with flash, at least in current stable version of flash on linux and windows]
Will probably blog about that solution the next days if I find some time to clean up my current solution, which does not support all features of plupload (no chunking) and I have yet to write the code to nicely handle upload-errors based on validation-problems. i already return json containing the errors the form-validator gives, but have to show them to the user, so he knows why uploads failed (not only an error-sign and http-error). Because for example the file is of a not allowed type.
And I have to add a least some basic i18n since I need that Stuff mostly in german.

I'd be interested in reading your article about it. What I started using it for was to create a client portal where users can upload files. Each page would contain various information about the upload such as name, description, etc. So in my case I only needed to be able to allow a user to upload one file.
In the future I will introduce a page that allows a user to upload multiple files, then fill in the info for each object.
I tried to make this so it could be used for both. I'd like to tackle the issue when I have more time to dedicate to this.


Emergency Call Routing doesn't mention a number of countries

The section for emergency call handling does not mention a number of countries. It looks like it covers the first group of countries to be supported by calling plans, but offers no details for any of the follow on countries.
Can this information be added?

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

ID: 634810fc-7a47-f794-7803-9f3941d664dd
Version Independent ID: 52587955-5054-a003-6d03-948ce02838dd
Content: Plan and manage emergency calling - Microsoft Teams
Content Source: Teams/what-are-emergency-locations-addresses-and-call-routing.md
Service: msteams
GitHub Login: @CarolynRowe
Microsoft Alias: crowe

Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@TorrenManson thank you for reaching out and helping improve Microsoft Docs. There is a link in this article to another article that shows a list of all the countries that currently have this option. "To find out whether Calling Plans is available in your area, see Country and region availability for Calling Plans." Please let me know if you need further assistance.

Hi,
The issue isnt support for Calling Plans, it's support for Emergency Calling through Calling Plans. I could not find a link to another article that included this information, and this article only addresses the first few countries (US, Canada, UK, Japan, for example).

From: Lindsay @.>
Sent: Friday, October 1, 2021 12:47 AM
To: MicrosoftDocs/OfficeDocs-SkypeForBusiness @.>
Cc: Torren Manson @.>; Mention @.>
Subject: Re: [MicrosoftDocs/OfficeDocs-SkypeForBusiness] Emergency Call Routing doesn't mention a number of countries (#7927)
@TorrenMansonhttps://github.com/TorrenManson thank you for reaching out and helping improve Microsoft Docs. There is a link in this article to another article that shows a list of all the countries that currently have this option. "To find out whether Calling Plans is available in your area, see Country and region availability for Calling Plans." Please let me know if you need further assistance.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/7927#issuecomment-931990130, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPN3PZSTKVXKO76RO74RP3UEVRRBANCNFSM5FBBAPEA.
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.

@TorrenManson thank you for clearing this up. This article will be improved continuously but in the meantime please see this document - https://docs.microsoft.com/MicrosoftTeams/configure-dynamic-emergency-calling


Correction for raw affiliation Independent researcher, Settat, Morocco.; The higher institute for maritime studies

Correction needed for raw affiliation Independent researcher, Settat, Morocco.; The higher institute for maritime studies
raw_affiliation_name: Independent researcher, Settat, Morocco.; The higher institute for maritime studies
new_rors:
previous_rors: 00yp89t60
works_examples: W3084315925
contact: b84c11630379489e392113861fc0f90e:2c25deb9 @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


feat: azure entra id integration

Title:

Integrate Azure Entra ID with Azure Inference and Azure OpenAI for Authentication

Description: (optional)

Integrated Azure Entra ID for secure authentication across Azure services
Configured Azure Inference and Azure OpenAI to use Azure Entra ID for user authentication and API access

Motivation: (optional)

Secure and centralized identity management using Azure Entra ID
Enhance security by leveraging Azure's built-in identity and access management features
Simplified access management for Azure services

Related Issues: (optional)
#610

x-portkey-azure-entra-client-id'
x-portkey-azure-entra-client-secret
x-portkey-azure-entra-tenant-id
need these header keys to be added in the request

please create a github issue for this for tracking

please create a github issue for this for tracking

Done


pending_force_closing_channels stuck for a long time now

Hi, on lncli pendingchannels I have one stuck in pending_force_closing_channels for a long time now. I was using a pruned bitcoind backend so I thought maybe that was causing the problem but after reinitializing bitcoind and letting it download the whole blockchain this channel still won't close. Is it just because the amount is so small that the fee would cost too much?
I also tried height-hint-cache-query-disable=true
{
    "total_limbo_balance": "879",
    "pending_open_channels": [
    ],
    "pending_closing_channels": [
    ],
    "pending_force_closing_channels": [
        {
            "channel": {
                "remote_node_pub": "03fa3be3b4528c1d588e60060d7f10e37c38f5aa02f867632a5c7b816cf5afa775",
                "channel_point": "f5e918ac786cd1be22ed13b9e1484ed58faf06bfe2459b7be5c0361c02088380:0",
                "capacity": "20000",
                "local_balance": "879",
                "remote_balance": "0",
                "local_chan_reserve_sat": "0",
                "remote_chan_reserve_sat": "0",
                "initiator": "INITIATOR_REMOTE",
                "commitment_type": "STATIC_REMOTE_KEY"
            },
            "closing_txid": "4062fb3e346ce87ccc22052c9ef41e483b8caeb61870d5e456cf9cc1c6e833a3",
            "limbo_balance": "879",
            "maturity_height": 666345,
            "blocks_til_maturity": -16309,
            "recovered_balance": "0",
            "pending_htlcs": [
            ],
            "anchor": "LIMBO"
        }
    ],
    "waiting_close_channels": [
    ]
}

Thanks.  It took about 3 months but those sats are back in the wallet now.


Upload test logs during smoke testing

I doubt there's any interesting logs to be had during the smoke test, but upload them.
Debugging https://github.com/flutter/flutter/issues/150008

Annoyingly the recipe doesn't set FLUTTER_LOGS_DIR, so I tried to use LOGS_FILE instead because I thought it's the same thing.
https://github.com/flutter/flutter/blob/3bdc4518024bafd0bb67c793726aa92acb80ef34/dev/devicelab/lib/framework/host_agent.dart#L26
But it's not... there's no log upload step.

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8745497757421272593/+/u/read_logs/execution_details


Process does not exit after successful migration [$30]

I am using v.0.10.0-beta.20 and the mongodb driver.
I have tied both the Promise and callback strategies, but the process just hangs.
exports.up = function () {
    return new Promise((resolve, reject) {
        resolve("success");
    });
};
// or this...
exports.up = function (db, callback) {
    callback(null, "success");
};

The migration is actually running successfully but it doesn't ever "finish". The process does exit if there are no migrations to run, if the Promise is rejected, or if an error is passed to the callback. This is affecting us because it's not allowing us to chain commands (db-migrate up && npm run verify-db), also preventing Travis from completing. I don't mind submitting a PR if you can point me in the right direction. I don't know where to look right now.

---
There is a **[$30 open bounty](https://www.bountysource.com/issues/40852465-process-does-not-exit-after-successful-migration?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

@DesignByOnyx Let me try to reproduce this first can you tell me also your used node version?
Coming back to you in a few minutes.

Hey, I just switched to a new machine 2 days ago and thought this was on node 6 but it's actually on v5.6.0. But I can confirm the issue is happening on Travis running on v6.5.0.
Also, I think the problem has to do with the fact that callback is always ever defined on the internals object: https://github.com/DesignByOnyx/node-db-migrate/blob/master/lib/commands/on-complete.js

Ok here I am again, wasn't able to reproduce this. But noticed you are missing the arrow in the function definition, guessing you wanted to use arrow functions?
Here is the migration I can run up and down adapted from your examples:
'use strict';

var dbm;
var type;
var seed;
var Promise = require('bluebird');

/**
  * We receive the dbmigrate dependency from dbmigrate initially.
  * This enables us to not have to rely on NODE_PATH.
  */
exports.setup = function(options, seedLink) {
  dbm = options.dbmigrate;
  type = dbm.dataType;
  seed = seedLink;
};

exports.up = function(db) {
  return new Promise((resolve, reject) => {
    resolve("success");
  });
};

exports.down = function (db, callback) {
    callback(null, "success");
};

exports._meta = {
  "version": 1
};

No problems here though:
 ✘ tobi@tobi  ~/foss/node-db-migrate   master ●  db-migrate --env mongo down
[INFO] Defaulting to running 1 down migration.
[INFO] Processed migration<PHONE_NUMBER>5028-test
[INFO] Done
 tobi@tobi  ~/foss/node-db-migrate   master ●  db-migrate --env mongo down
[INFO] Defaulting to running 1 down migration.
[INFO] No migrations to run
[INFO] Done

Can you tell me which version of the mongo driver you were using and which mongodb server version you're running?

And could you please also post a verbose run? Thank you

That's just a typo in the code above, my bad. My local code is actually correct.
I am using<EMAIL_ADDRESS># mongod --version
db version v3.4.1
git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016
allocator: system
modules: none
build environment:
    distarch: x86_64
    target_arch: x86_64

# db-migrate down --verbose
[INFO] Detected and using the projects local version of db-migrate. '/Users/rwheale/Documents/bitovi/bitcentive/node_modules/db-migrate/index.js'
[INFO] Environment variable MONGODB_URIis empty!
[INFO] Using dev settings: { driver: 'mongodb',
  hosts: [ { host: 'localhost', port: '27017' } ],
  host: 'localhost',
  port: '27017',
  database: 'bitcentive' }
[INFO] Defaulting to running 1 down migration.
[INFO] require: db-migrate-mongodb
[INFO] connecting
[INFO] connected
[SQL] createCollection [ 'migrations' ]
[INFO] loading migrations from database
[SQL] find [ 'migrations' ]
[INFO] preparing to run down migration:<PHONE_NUMBER>1647-start-rate-end-rate-fields
[SQL] remove [ 'migrations' ]
[SQL] remove [ 'migrations' ]
[INFO] Processed migration<PHONE_NUMBER>1647-start-rate-end-rate-fields
[INFO] Done

Does the db-migrte down command also hang for you? Or is this one exiting correctly?

I hangs on both down and `up. It only hangs when a migration actually runs successfully. Failures and no-migrations exit successfully.

@DesignByOnyx This is the project where the problem occurs? https://github.com/donejs/bitcentive
If yes I'm gonna have a look.

Yes :) - thanks.
Also, I created my own branch and tested my internals theory and it appears to work. Still testing.
https://github.com/db-migrate/node-db-migrate/compare/master...DesignByOnyx:454-process-hanging?expand=1

doh - scratch that. The internals call was not the fix.

@DesignByOnyx Give me a moment npm installing :)

Hit me up on screenhero if you want to keep this thread clean -<EMAIL_ADDRESS>Or provide another chat client that you prefer (gitter, slack, et al).
Also, the test uses force-exit to make the process exit. Running db-migrate [up|down] --force-exit solves the problem for me, though it doesn't feel right.

Don't have a screenhero account and they're invite only currently, but you may reach me at<EMAIL_ADDRESS>which is my XMPP (jabber) id.
However, the problem is with the service you're calling. It does not close the socket, therefore node is not going to stop.
You can look stuff like this up with this:
console.log(process._getActiveHandles());

This is an undocumented command to list open handles which can help you to debug such stuff.

ah, ok - It must be because I am including our app which sets up sockets and such. The method I'm calling is directly on a mongoose Model - the sockets are just a side effect of loading our app. Thanks so much man, this is a problem we can solve on our end.

This would be a working fix though :)
'use strict';

const app = require('../src/app');
const denodeify = require('denodeify');
const mongoose = require('mongoose');

exports.up = function(db) {
	const svc = app.service('/api/contribution_months');
	const ContributionMonth = svc.Model;
	const paths = ContributionMonth.schema.paths;
	const update = denodeify(ContributionMonth.update.bind(ContributionMonth));

	/**
	 * Example update direct to db
	 */
	return update({
		startRate: { '$exists': false }
	}, {
		startRate: paths.startRate.defaultValue,
		endRate: paths.endRate.defaultValue
	})
	// Temporary hack: https://github.com/db-migrate/node-db-migrate/issues/454
	.then(() => {
		mongoose.connections.forEach((connection) => {
			connection.close();
		});
	});

	/**
	 * Example update using feathers services
	 */
	// return svc.find({
	// 	startRate: { '$exists': false }
	// }).then(results => {
	// 	const stack = [];
	// 	results.forEach(item => {
	// 		item.startRate = paths.startRate.defaultValue;
	// 		item.endRate = paths.endRate.defaultValue;
	// 		stack.push(svc.update(item._id, item));
	// 	});
	// 	return Promise.all(stack);
	// });
};

exports.down = function(db) {
	const svc = app.service('/api/contribution_months');
	const ContributionMonth = svc.Model;
	const paths = ContributionMonth.schema.paths;
	const update = denodeify(ContributionMonth.update.bind(ContributionMonth));

	return update({}, {
		'$unset': { startRate: 1, endRate: 1 }
	})
	// Temporary hack: https://github.com/db-migrate/node-db-migrate/issues/454
	.then(() => {
		mongoose.connections.forEach((connection) => {
			connection.close();
		});
	});
};

@DesignByOnyx No Problem :)

Just edited for you, guess you ment force-exit not force-update.
Feel free to reach out again if you should encounter any other problems.

And a last tip:
process._getActiveRequests();

This is another function (also not documented), which is the other case where a node application may be stuck if it is not an open fd.

@DesignByOnyx Closing here as solved, feel free to reach out any time again and good look you and your team with your project!


Remove dead code and reconnect stats option switch for Accumulo

Talking to Eric earlier today, it appears that some merge issues as a result of the Accumulo IndexWriter update a month ago could have resulted in some missed merge conflicts...


Session Handling: SaveHandler

Session Handling Current State:

Currently; there is a setManager method on the SaveHandler; unfortunately the design of the current SessionManager does not allow this to function.
Custom session handlers are confusing and are coupling themselves to configuration of the SessionManager
Configuration option "saveHandler" attempts to set PHP's internal save handler ini option.

Session Handling Changes:

Removal of setManager/getManager from SaveHandler (complete decoupling)
Addition of _setSaveHandler, getSaveHandler and $saveHandler parameter to the AbstractManager
Change from setSaveHandler in the configuration to setPhpSaveHandler
Change to SaveHandler/DbTable to take the table name from a configuration option "name" rather than attempting to get a configuration option from the manager.
SessionManager now provides a method to register with ext/session

Session Handling Additions:

Cache Save Handler which can leverage a Zend\Cache\Storage\Adapter

Please merge that if possible.

Mike -- looks good!
Three things:

These classes need to be refactored to follow new CS guidelines: suffix interfaces with Interface, remove "_" prefixes from non-public members, etc. That can be done in a separate PR. If you don't have time, let me know, and I'll tackle it.
A number of tests don't run on PHPUnit 3.6 -- I'm pretty sure it has to do with the "run in separate process" parts, as all the errors are /bin/sh errors. Could you help me fix these? Ping me on IRC so we can coordinate.
The DbTable save handler will need to be updated once Ralph's DB branch is merged; would you be willing to tackle that?

Thanks for the work on this patch -- I think their great changes!

I can take this on tomorrow and will likely be able to get the rest of these completed.  Have a busy meeting afternoon today :)


Mathematical white square brackets (⟦⟧) should be treated as breaking punctuation in selections

The snippet: abc⟦def⟧ghi, when any character is double-clicked, will be entirely selected. ⟦ and ⟧ should be treated as punctuation like any other set of brackets, so that double-clicking on any of the characters in def, for instance, will just select the snippet def.
This is particularly relevant when theorem proving (e.g. in Coq), where these brackets can be commonly used.

You can put them into editor.wordSeparators.


How to stack LSTMs hierarchically?

Hello,
I would like to create a sequence of word embeddings on character level by the usage of LSTMs and then feed this embeddings into another LSTM.
Take the String 'I want to create an embedding' as example. I want first generate a seqeuence of tokens
['I', 'want', 'to', 'create', 'an', 'embedding'], then a sequence of sequences
[ ['I'], ['w','a','n','t'], ['t','o'], ['c','r','e','a','t','e'], ['a','n'], ['e','m','b','e','d','d','i','n','g']]
Then I want to create with a LSTM a sequence of vectors
[vector_i, vector_want, vector_to, vector_create, vector_an, vector_embedding]
by feeding each word character for character into a LSTM.
Any ideas how to implement this in keras? My problem is that I dont know how to create a sequence from sequences  of sequences. I thought about using the Reshape Layer, but skipped this since reshaping at batch level is not allowed.
Thanks,
Siavash

I've though about this type of thing before, and I think it should be possible through reshaping your input to the right shape and then using something like this:
word_inputs = Input((max_num_word, max_chars_per_word))
char_embeddings = TimeDistributed(Embedding(..))(word_inputs)  # not sure how to structure the embeddings
char_lstms = TimeDistributed(LSTM(...))(char_embeddings)
word_level_lstm = LSTM(...)(char_lstms)
...

I never ended up trying this though, let me know if you're able to make this work!

Looks cool!

Thanks for the input! I created a model on the reuters data set and published on github:link
On CPU: With the (default) option consume_less='cpu' a ValueError is thrown at runtime:
ValueError: total size of new array must be unchanged caused by a reshaping in time_distributed_dense in recurrent.py.
On CPU:  With the option consume_less='gpu' training starts, but is extremely slow. One epoch takes 10 minutes on a training set of only 100 samples.
On GPU: With the (default) option consume_less='cpu' throws the error:
ValueError: GpuReshape: cannot reshape input of shape (640, 64) to shape (0, 1000, 64).
On GPU: With the option consume_less='gpu' throws the error:
RuntimeError: c_extract: Some CudaNdarray has dim 21 on broadcastable dimension 0
Am I missing something or is this bug? The linked script uses only keras and numpy, the errors should therefore be easily reproducible.

Hi everyone,
I try to code the hierarchical RNN, following the comment @phdowling. Here is my code:
import numpy as np
from keras.models import Sequential
from keras.layers.wrappers import TimeDistributed
from keras.layers.recurrent import SimpleRNN
from keras import backend as K

def main():
    input = np.random.rand(1, 20, 30, 2).astype('float32')
    tempt = input.reshape((1, 600, 2))
    target = np.sum(tempt, axis=1)
    model = Sequential()
    model.add(TimeDistributed(SimpleRNN(output_dim=2, input_shape=(30, 2), init='identity', inner_init='identity', activation='linear'), input_shape=(20, 30, 2)))
    model.add(SimpleRNN(output_dim=2, init='identity', inner_init='identity', activation='linear'))
    get_model_output = K.function([model.layers[0].input], [model.layers[-1].output])
    model_output = get_model_output([input])[0]
    print target.shape, ':', model_output.shape
    print np.array_equal(target, model_output)
    print 'Target ->', target
    print 'Model ->', model_output

And I don't get the problem like @siavash9000 got, maybe my code is too simple.
@siavash9000 Do you fix your problem? If so, could you can share how to fix it?
Thanks!

@lngvietthang : Thanks for sharing your model. I refactored my script to deliver a more simplified version, where the described behaviour is reproducible (link):
from keras.models import Model
from keras.utils import np_utils
from keras.layers import Dense, Embedding, Input, TimeDistributed, LSTM,  \
    Activation
import numpy as np

def main():
    DATA_SIZE = 1000
    BATCH_SIZE = 100
    WORD_COUNT = 20
    WORD_LENGTH = 10
    CHAR_VOCAB_SIZE = 50
    NB_CLASSES = 5
    CONSUME_LESS = 'cpu'

    X = np.random.randint(CHAR_VOCAB_SIZE, size=(DATA_SIZE, WORD_COUNT, WORD_LENGTH))
    Y = np.random.randint(NB_CLASSES, size=DATA_SIZE)
    Y = np_utils.to_categorical(Y, NB_CLASSES)

    input = Input(batch_shape=(BATCH_SIZE,WORD_COUNT, WORD_LENGTH, ),
                  dtype='int32')
    embedded = TimeDistributed(Embedding(CHAR_VOCAB_SIZE, 128,
                                         input_length=WORD_COUNT))(input)
    char_lstm = TimeDistributed(LSTM(64, consume_less=CONSUME_LESS))(embedded)
    lstm = LSTM(64,consume_less=CONSUME_LESS)(char_lstm)
    dense = Dense(NB_CLASSES, activation='sigmoid')(lstm)
    output = Activation('softmax')(dense)
    model = Model(input=input, output=output)
    model.compile(loss='categorical_crossentropy', optimizer='adam',
                  metrics=['accuracy'])
    model.fit(X, Y, batch_size=BATCH_SIZE, nb_epoch=5)

if __name__ == "__main__":
    main()

There are again errors when using the default option consume_less='cpu' for the LSTMs, switching to consume_less='gpu' solves the problem.
Are the errors reproducible for you with the script above? I use most current Keras and Theano.

@siavash9000 Did you ever resolve this issue?  I get the error
   Exception: ('Not a Keras tensor:', <TensorType(float32, 3D)>)

when I try to run your code


Prepend error_ to telemetry event properties populated from an error object

Feature
Is your feature request related to a problem? Please describe.
When looking at the logs, there's no immediate way to tell where the data in a particular column came from, since we merge the properties of given event and error objects in prepareErrorObject.
Describe the solution you'd like
Proposed solution would be to update prepareErrorObject to prepend error_ to property names copied over to the event object from the error object.

@vladsud, @wes-carlson, @curtisman - Interested in your thoughts on this proposal. Thanks.

I'm not sure it would be more readable.
for example, from this code, I'd not expect to search for error_ properties in telemetry (from https://github.com/microsoft/FluidFramework/pull/3900):
                        const error = {
                            errorType: ContainerErrorType.dataCorruption,
                            message: "Two messages with same seq# and different payload!",
                            clientId: this.connection?.details.clientId,
                            sequenceNumber: message.sequenceNumber,
                            message1,
                            message2,
                        };
                        this.close(error);

@arinwt as well

There doesn't seem to be consensus on this proposal and it's not a priority right now, closing.


lv_lib_bmp/v7 & lv_fs api

Is bmp-library code compatible with lv_fs-v7 api.
I use lvgl-v7.6.1 (from zephyr-rtos repo) and I have lv_fs-function prototypes incompatible with used in library
For, example lv_fs_open - prototype in lvgl
lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode)

which called
lv_fs_file_t * f;
f = lv_fs_open(src, LV_FS_MODE_RD);

In my app I use following file
lv_bmp.c.txt

For v7 you can use this branch: https://github.com/lvgl/lv_lib_bmp/tree/release/v7

I copied this piece of code from lv_bmp.c located in the branch you linked to.
/*Save the data in the header*/
lv_fs_file_t * f;
f = lv_fs_open(src, LV_FS_MODE_RD);
if(f == NULL) return LV_RES_INV;

For v7 you can use this branch: https://github.com/lvgl/lv_lib_bmp/tree/release/v7

I copied this piece of code from lv_bmp.c located in the branch you linked to.
/*Save the data in the header*/
lv_fs_file_t * f;
f = lv_fs_open(src, LV_FS_MODE_RD);
if(f == NULL) return LV_RES_INV;

I see what the problem is.
The BMP lib was compatible with the feat/new-fs-api branch of LVGL v7, but when v8 was released this branch was removed.
From the README of the BMP lib:

Compatible with LVGL's feat/new-fs-api branch. If you use the lv_fs_if repository it's new-api branch should be used.

Sorry for this incompatibility. :slightly_frowning_face:
As the BMP lib is quite simple it doesn't seem too complicated to refactor the FS API here to work with the "normal" LVGL v7 file system API.
For exampe for lv_fs_open this should used.
Can you give a try to refactor the API in this lib?

Here attached file, which I use.

new exp for me #3

I've merged to PR so this issue can be closed.
Than your for the patch.


Debug shows empty queries

Hi!
I can't check why one of my rules don't, it shows it's running, but there should be matches...
I use supervisor and that didn't cause any issues yet.
command = python3 -m elastalert.elastalert --config /etc/elastalert/main_configs/config_test1minute.yaml
Python: 3.6
EA: 0.2.1
If I start the process with SV and deliberately break sth, I get errors in the logs and in ES. But if I try this from console:
elastalert --debug --start 2020-02-06T10:00:00Z --end 2020-02-06T11:05:00Z --config /etc/elastalert/main_configs/config_test1minute.yaml --es_debug_trace /etc/elastalert/debugging/debug.trace
It just inserts these to the file:

curl -XGET 'http://localhost:9200/?pretty' -d ''
curl -XGET 'http://localhost:9200/?pretty' -d ''

ES isn't on localhost so it shouldn't try that.
Config:

name: disk used - test
index: metricbeat-*-%Y.%m.%d
use_strftime_index: true
doc_type: _doc
type: any
filter:
- query:
query_string:
query: "metricset.name:filesystem AND system.filesystem.type:ext4 AND system.filesystem.used.pct:[0.22 TO *]"
include:
-  host.hostname
-  system.filesystem.mount_point
query_key: host.name
alert:
- "slack"
slack:
slack_webhook_url: >"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
slack_username_override: "ElastAlert"
slack_channel_override: "#elastalert_rule_testing"`

The first issue was that I simply reread the supervisor configs but without running 'update' too that won't do anything. The second issue was that EA didn't have the right permissions in ES.


Add branch protection for "Execute Notebooks" and "API Checks"

It's currrently possible to merge on red. This is particularly dangerous because the button to "merge when ready" will merge even if "API Checks" and "Execute Notebooks" are red. This is because we didn't set up those CI checks in branch protection due to issues with how we skip those jobs - when skipped, it would block the PR from merging since it never runs.
To fix, implement https://www.pantsbuild.org/blog/2022/10/10/skipping-github-actions-jobs-without-breaking-branch-protection.

Looks like GitHub might have fixed this quirk, per https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks

I'm trying to test this out and will close if true.

The test for https://github.com/Qiskit/documentation/pull/2323 shows that this should be okay now 🚀 At least, I confirmed that the status checks don't block being added to a merge queue.
I didn't confirm that the merge queue works properly because I don't want to merge that PR - I'll reopen this issue if it fails.


updated (and broke some) tools,  add some docs.

updated some frame2mat, mat2frame methods to take a psuedo-scalar for frame instead of a layout, which is unneccsary and restrictive.
also updated some docs.

The docs for frame2Mat look wrong; perhaps some missing :s in the docstring?


Docs render markdown text to the raw HTML in meta description

Motivation
A pure markdown text was previously shown in "og:description" and "description" meta tags in Docs. Markdown text should be rendered into the HTML instead. Fixes #1014
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan

Create any doc page and start the application to render changes.
Open a dev tools in your browser and look for  tags in head of your doc page.

Test by Open Graph Check:
og:description before changes:

og:description after changes:

You should see that content of description is rendered into the raw HTML in <meta name"description" > and <meta property="og:description" > tags.

Thanks @endiliey! I've just added pictures from Open Graph Check to my Test plan.


Why delayed buffer can reduce the initiation interval to 1 cycle?

Dear Prof. Wang,
I read your paper and code, you used delayed buffer accu_piped[6] to store lane_accum for 6 cycles. You mentioned it improved the utilization of the multipliers. But I'm still don't understand why the delayed buffer can reduce the initiation interval (ii) to 1 cycle? Thank you so much!

Dear @aazz44ss Do you know it?

it needs 4 clock to read global memory.
for more details, please refer to altera best practice guide 5.1.1  Removing Loop-Carried Dependency
https://www.altera.com/en_US/pdfs/literature/hb/opencl-sdk/aocl-best-practices-guide.pdf

Dear 浩一，thank you so much for your help @aazz44ss . Best regards!


How to connect an IP camera with Jetson Nano in place of USB camera?

Hello @jkjung-avt . Kindly if you can help me in solving the issue of connecting an IP camera with Jetson Nano for doing real time custom YOLOv4 object detection using TensorRT?

Please refer to README.md (Step 5 of Demo 1).

--rtsp<EMAIL_ADDRESS>RTSP source, e.g. an IP cam. An optional --rtsp_latency argument could be used to adjust the latency setting in this case.

Thanks @jkjung-avt . I will run my trt_yolo.py with an IP camera and will let you know if found any errors.

I have followed the step 5 of demo 1 but getting this error:
farjad@farjad-desktop:~/project/tensorrt_demos$ python3 trt_yolo.py --rtsp --uri rtsp://admin:aaasss111@<IP_ADDRESS>:554 --model yolov4-custom-416 --category_num 1 --width 1280 --height 720
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module rtspsrc0 reported: Could not open resource for reading.
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
ERROR: failed to open camera!
Now what can I do?

Are you using a H.264 IP cam?  Please make sure your RTSP stream could be displayed with gst-launch first.  If not, check first that you have all necessary gstreamer elements installed properly.  Otherwise, check NVIDIA Developer Forum for solutions.  And you might need to modify open_cam_rtsp() accordingly.
For example,
$ gst-launch-1.0 -e rtspsrc location="rtsp://admin:aaasss111@<IP_ADDRESS>:554" ! rtph264depay ! h264parse ! omxh264dec ! nveglglessink

Reference: Video Decode Examples Using gst-launch-1.0

I have ran gst-lauch also but again getting the error!

Do you mean the gst-launch command also failed?

@jkjung-avt . Yes Sir. The gst-launch command also failed!
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:aaasss111@<IP_ADDRESS>:554/media/video1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading.
Additional debug info:
gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No supported authentication protocol was found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

You need to make sure you have a working RTSP stream and decoding pipeline first.  I can't help too much on that.

You need to make sure you have a working RTSP stream and decoding pipeline first. I can't help too much on that.

But how to make sure that because I have tried all the necessary commands but not able to get the working RTSP stream?

@jkjung-avt . Yes Sir. The gst-launch command also failed!
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:aaasss111@<IP_ADDRESS>:554/media/video1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading.
Additional debug info:
gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No supported authentication protocol was found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Can you please point out that what is the error here?

farjad@farjad-desktop:~/project/tensorrt_demos$ python3 trt_yolo.py --rtsp --uri rtsp://admin:aaasss111@<IP_ADDRESS>:554 --model yolov4-custom-416 --category_num 1 --width 1280 --height 720
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module rtspsrc0 reported: Could not open resource for reading.
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
ERROR: failed to open camera!

Also what is the error here?

Have you made sure you could play the RTSP stream with, say, VLC or QuickTime player?
Reference: http://www.messoa.com/faq_detail.php?i=5

@jkjung-avt .

Have you made sure you could play the RTSP stream with, say, VLC or QuickTime player?
Reference: http://www.messoa.com/faq_detail.php?i=5

I will try this out and will let you know. Thanks a lot!

Hi @jkjung-avt . It might be very silly question but can yu please explain
--rtsp<EMAIL_ADDRESS>what exactly is admin:123456
do I have to put my admin password in that location ?
Thank you

--rtsp<EMAIL_ADDRESS>
Most of RTSP sources (e.g. IP CAM) would require an account/password to access the video stream.  You should replace "admin" with the account and "123456" with the password of your own RTSP stream.

Thanks @jkjung-avt .


Working federation across instances

Requires #1691
NLNet milestone 3.5

Use https://pubkit.net/ for testing