need help to use this api in a IOT display

I am trying to create a LED matrix and a 2line Display that will display the live data using ESP8266 microcontroller, Is there any way to just only get the total data like - total confirmed case, total recovered, etc via the API, cause it will be hard to decode that much data using small microcontrollers.

if u want, I can create one only for the total confirmed case, total recovered and total deaths.

That will be very helpful, Also add total active cases, and also please make it accessible via Http, cause its difficult to use https in ESP8266.

try this and let me know
http://coronago.xyz/data.json

This is awesome, just wanted to know if I can use your API in my project COVID-19 Tracker PWA

open-source feel free to use

Hi,
want to ask that I want to use these api's to fetch the data.
Just want to confirm whether these api's will be available in coming days or shall I use the csv??

@d3v7  Thanks for this awesome API, I successfully created an ESP8266 IoT display, Is it possible to add some other things like state-wise data, Like total numbers from westbengal etc.

yes sure i will add it soon.

open-source feel free to use

Hi, want to ask that are these api available in future or you have any plans to put it down, as I am using them to gather the data.

open-source feel free to use

Hi, want to ask that are these api available in future or you have any plans to put it down, as I am using them to gather the data.

actually I have no idea. the owner may keep it for a year or something I guess .
@someshkar @JunaidBabu

It should be up for quite a while, don't hesitate to use it!

It should be up for quite a while, don't hesitate to use it!

It should be up for quite a while, don't hesitate to use it!

okay, thanks.

@someshkar @JunaidBabu add this API also in the readme, so others can easily find it.

Out of scope. Closing

@someshkar @JunaidBabu add this API also in the readme, so others can easily find it.

Hi, raw_data api giving CORS when I am using it to retrieve data.


are you using Egg for packaging?

https://packaging.python.org/en/latest/discussions/wheel-vs-egg/

egg has been deprecated for wheel

hmm I think I was using an outdated guide

hmm I think I was using an outdated guide
I can update it later (by following a different guide that's from 2022 :P)

what about using the official guide lmao https://packaging.python.org/en/latest/tutorials/packaging-projects/

Closed by #5


Source.alsoTo and wireTap operators

To consider: as @adamw pointed out, because of wireTap working similarly to alsoTo, we should make the method names similar as well.
I was thinking about alsoTo and alsoToIfAvailable or sth.

Maybe: alsoToBoth and alsoToTap? "both" stresses that values always go to both channels, "tap" signals that it's best-effort

alsoToTap might be ok, but maybe let's keep alsoTo instead of alsoToBoth, sounds a bit off - it suggests that one sends "also to both other sinks".

alsoTo and alsoToTap should do the job


Treat wikis as a kind of knowledegbase in docs

Work for this issue will begin begin on branch work-liquid-labs/cloudsite/181.


calicoctl binary produces warning when run

This is almost certainly a regression that is on master only
/tmp/_MEI1cCsy7/docker/utils/utils.py:565: UserWarning: docker.utils.create_host_config() is deprecated. Please use Client.create_host_config() instead.

Fixed by #876


Merge main branch into dev-1.26

Merge main branch into dev-1.26 to keep in sync, part of the Docs activities in the release process.
cc @reylejano  @sftim

/retitle Merge main branch into dev-1.26

/approve

/lgtm

Thanks
/approve

@krol3 let's please ping @kubernetes/steering-committee folks ( am no longer on it )

@krol3 let's please ping @kubernetes/steering-committee folks ( am no longer on it )

CC palnabarun

/approve

/approve


fog-aws 0.1.2 breaks this cookbook

Not sure if this is something that you guys want to investigate, but the 0.1.2 release of fog-aws seems to break this cookbook.
https://github.com/fog/fog-aws/issues/83
The solution in that issue is to replace fog with fog-aws. I know that PR #67 is about moving from fog to fog-aws, but there were concerns about breaking other functionality.

The issue is not related to have fog-aws instead of fog in the Gemfile.
In the case of asset_sync it was related to the specific require in the Gemfile like this:
gem "fog", "~>1.20", require: "fog/aws/storage"

With the new structure that custom require is not needed anymore and it would fail if you still do.
The only usage of fog that i could find was in this file. It does require fog which should work as expected. @asanger Can you provide more info regarding your error?

Here's an excerpt from my failed deploy log.
I believe this is related to a older version of it that has this require.

I'm using version 0.4.0. A response over in the fog-aws repo suggested that it could be related to an OS update that occurred on the same day of the fog-aws 0.1.2, so I'd like to do some testing on the old OS to confirm.

@asanger Can you provide me a link where you got this information about an OS issue?

https://github.com/fog/fog-aws/issues/83#issuecomment-91347962
The OS upgrade was Amazon Linux 2015.03

got it. Thanks.

Very interesting. I was able to use this cookbook with fog-aws on the older version of the OS. I wonder if it's related to an updated aws-cli? The difference is only a minor bump from 1.7.13 to 1.7.14.

Anyone have the fix?  I'm on the Amazon linux from 2014 and seeing the same issue

@benholtz Which version of route53are you using? Is it prior to 0.3.5?

depends "route53", "~> 0.4.0"

@benholtz Could you provide more info to help debug the issue?

  Our chef recipes are all broken.  I've tried many workarounds with no luck.  Help!

@geemus Can you give us some advice here?

Hmm, not super obvious to me off-hand. Is there further stacktrace any where I could check out?

@benholtz @geemus I've reopend fog/fog-aws#67 and asked some more info to help debugging.
Perhaps we should move this conversation to there where we have access to create/close issues and commit fixes. Thoughts?

Any progress on this? All my cookbooks are also failing with an error similar to the one by @benholtz

Have you tried overriding default['route53']['fog_version'] = '1.27' to "1.29.0"? That worked for me.

That did work - thanks!
As a quick note for anyone else tackling this - I'm using this package through a custom cookbook on OpsWorks. Simply changing the attribute on an existing machine didn't fix the problem, I had to bring up a new machine from scratch and it worked. There must be some gem precedence issues.

Thanks for the extra details!
On Thu, May 14, 2015 at 3:39 PM, waziers<EMAIL_ADDRESS>wrote:

That did work - thanks!
As a quick note for anyone else tackling this - I'm using this package
through a custom cookbook on OpsWorks. Simply changing the attribute on an
existing machine didn't fix the problem, I had to bring up a new machine
from scratch and it worked. There must be some gem precedence issues.
--
Reply to this email directly or view it on GitHub
https://github.com/hw-cookbooks/route53/issues/69#issuecomment-102163004
.

That worked for me

Thanks for the tip @waziers, finally got it to work. Anyone know if there is a way to ssh in and clear out the gem? I tried digging around a bit, couldn't figure out where chef_gem puts on the instance.

Try add in OpsWorks "Custom JSON":
"route53":{"fog_version":"1.33.0"}

Some more info from testing I have done regarding the uninitialized constant Fog::AWS::CredentialFetcher issue.
Looking in the stack trace from that issue I could see that fog 1.27.0 was being called even though 1.33.0 was in the 'Custom JSON' being used. This is due to fog 1.27.0 being installed from a previous run of the recipe on the instance. Looking in /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out I could see it was calling from the 1.33.0 fog gem into the 1.27.0 fog-aws gem.

/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/fog-1.27.0/lib/fog/aws.rb:2:in 'require'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/fog-1.27.0/lib/fog/aws.rb:2:in '< top (required) >'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/fog-1.33.0/lib/fog.rb:23:in 'require'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/fog-1.33.0/lib/fog.rb:23:in '< top (required) >'

To fix this I had to manually remove the fog 1.27.0 gem so that only the 1.33.0 gem was being used, which did solve the issue.

@greg-matthews-iugo thanks for the detailed update.

Fog has been replaced with the aws-sdk so this is no longer a valid issue


Looks like there's an automation to check and close bugs raised against hash failures, and it's not very helpful ):

See https://github.com/ScoopInstaller/Extras/issues/8348. Since the issue has been automatically closed, I assume no-one will fix it, so I'm raising this to re-raise visibility as I'm unable to re-open.

There was a problem in the manifest. Fixed now, thanks!


Update request: Ironwail 0.7.0  → 0.8.0

Package name: Ironwail
Latest released version:

Current version on the unstable channel: 0.7.0
Current version on the stable/release channel: 0.7.0

[x] Checked the nixpkgs pull requests

Notify maintainers
@necrophcodr @afh

Note for maintainers: Please tag this issue in your PR.

link to the latest GitHub release
https://github.com/andrei-drexler/ironwail/releases/tag/v0.8.0

Add a :+1: reaction to issues you find important.

@lavenderdotpet thanks for the ping, I hadn't noticed the new release just yet (but you were also quite quick to spot that!), but the PR is also ready to go. Now comes the waiting part!

@lavenderdotpet thanks for the ping, I hadn't noticed the new release just yet (you were also quite quick to spot that!), but the PR is also ready to go. Now comes the waiting part!

the dev posted about it in the Quake Mapping Discord and I hang out there a good bit
if you are in that server and curious here is a direct link to the message https://discord.com/channels/464531227509260291/491346068886519828/1305248409309024400
link to the server if you are not there https://discord.gg/Bqftq7wxqe


How to get auth code using msal

Core Library
MSAL.js v2 (@azure/msal-browser)
Wrapper Library
MSAL React (@azure/msal-react)
Documentation Location
https://github.com/AzureAD/microsoft-authentication-library-for-js
Description
is it possible to request auth code (https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow) using this library for React? If so, is it possible for someone to give me a code sample? I've tried looking around but have had a really difficult time getting the auth code.
By using this Azure sample and following this tutorial, I'm able to get the accessToken but can't figure out how to get the auth code (the response is returning null for code: null) to pass to our backend.
Currently, we're using this code snippet to show a popup and get the accessToken in the response. Is it possible to configure the code snippet below to only get the auth code so we can pass that to our backend to use and exchange for tokens?
instance.acquireTokenPopup(loginRequest).then(response => {
            }).catch(e => {
            })

@mikeyyyzhao msal-browser/msal-react does not expose the authorization code to the developer, and the authorization code obtained for your frontend shouldn't be passed to your backend. If you need to authenticate users to your backend, you should use msal-node instead. If you need to authenticate users on both frontend and backend, you might want to look into the hybrid spa auth code sample here.

@derisen how does one go about a situation such as this then: Angular SPA needs auth code to send to backend API server request so that the backend can then use that to request an Auth Token bundle, and then store those for later usage for offline access?

@logan-jobzmall can you provide more detail on your use case here? Tokens issued for a single page app have a short lifetime (1hr for access tokens, 24 hr for refresh tokens -see). It might be better to use a web app (confidential client) here with msal-node instead -the hybrid spa code flow sample shows how to authenticate a user at both backend and frontend.
A more complex approach could be to use the OBO flow in a web API to acquire tokens on-behalf-of the user that signed in to the SPA. In principle, you could refresh the tokens that the web API acquired continuously via a background worker and maintain offline access to another web API for longer periods of time. For more details, have a look at this sample.

Closing this as resolved. Please let us know if you have a follow-up -thanks!

@derisen I have the same issue as @logan-jobzmall. I have an angular based spa app where I want the user to grant authorization for their personal Outlook Calendar so that my back end server can then add/update events on their behalf on an ongoing, non-interactive basis. This is easy in Google where I get an AccessCode on the client that I then send to the server to trade for an AccessToken/RefreshToken, then store the RefreshToken for later API usage without user interaction.
Is this even possible with MSAL/MS Graph?

@derisen I have the same issue as @logan-jobzmall. I have an angular based spa app where I want the user to grant authorization for their personal Outlook Calendar so that my back end server can then add/update events on their behalf on an ongoing, non-interactive basis. This is easy in Google where I get an AccessCode on the client that I then send to the server to trade for an AccessToken/RefreshToken, then store the RefreshToken for later API usage without user interaction.
Is this even possible with MSAL/MS Graph?

I have this exact issue, and not sure how to solve it..

@derisen I have the same issue as @logan-jobzmall. I have an angular based spa app where I want the user to grant authorization for their personal Outlook Calendar so that my back end server can then add/update events on their behalf on an ongoing, non-interactive basis. This is easy in Google where I get an AccessCode on the client that I then send to the server to trade for an AccessToken/RefreshToken, then store the RefreshToken for later API usage without user interaction.

Is this even possible with MSAL/MS Graph?

Have a similar requirement. Is this possible to do with msal libraries ?

@derisen I have the same issue as @logan-jobzmall. I have an angular based spa app where I want the user to grant authorization for their personal Outlook Calendar so that my back end server can then add/update events on their behalf on an ongoing, non-interactive basis. This is easy in Google where I get an AccessCode on the client that I then send to the server to trade for an AccessToken/RefreshToken, then store the RefreshToken for later API usage without user interaction.
Is this even possible with MSAL/MS Graph?

I am in the same situation and it is frustrating how difficult this is to do as compared to Google. Any success?

@derisen I have the same issue as @logan-jobzmall. I have an angular based spa app where I want the user to grant authorization for their personal Outlook Calendar so that my back end server can then add/update events on their behalf on an ongoing, non-interactive basis. This is easy in Google where I get an AccessCode on the client that I then send to the server to trade for an AccessToken/RefreshToken, then store the RefreshToken for later API usage without user interaction.
Is this even possible with MSAL/MS Graph?

I am in the same situation and it is frustrating how difficult this is to do as compared to Google. Any success?

have you found a solution? I still can't figure it out. the code is returned when I use the redirect method (it's present in the url). but when I use the popup login method the code is actually undefined.

@abishekbaiju I actually managed to solve it, I don't even know if it's a ... hack? but it works. Check this out.
In your frontend app, you do something like this ('tis just test code)

that "activeAccount" object contains this:

that idToken is what I send to the backend, and I use the "onBehalfOf" functionality, like this:

And it works.
I was lucky and it's stupidly documented, I'm not even sure if I did it right or not, but it just works.


how to restart in DPI-unapawre mode when no yellow info box

The "Restart Visual Studio as a DPI-unaware process" section should explain how to restart visual studio when there is no yellow info box. For example, you can accidentally close this and it appears there is no way to get it back or other method to restart visual studio in the desired mode.

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

ID: a2f87f79-412c-6d45-9a5f-e1690a7dce12
Version Independent ID: 708a3cc0-a8eb-3b23-9d11-737d0060d730
Content: Disable DPI-awareness for scaling in forms - Visual Studio (Windows)
Content Source: docs/designers/disable-dpi-awareness.md
Product: visual-studio-windows
Technology: vs-ide-designers
GitHub Login: @TerryGLee
Microsoft Alias: tglee

@dlech -- David, thank you for your feedback.  Please consider these resources:

Visual Studio on Microsoft Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

@TerryGLee -- Terry, please look into this issue.

@rub8n FYI; your input requested.

@dlech Thanks for taking the time to write this issue. While there doesn't seem to be a way to get the info bar back after you've closed it, you can still perform the action of restarting Visual Studio with 100% scaling by opening a Developer Command Prompt window (by selecting Tools > Command Line > Developer Command Prompt from the Visual Studio menu bar) and then running devenv /noScale. We've added this information to the page as a Tip note.
We'll close this GitHub Issue now with our thanks to you for helping improve the documentation!

Thanks Terry!


Use new multi-output hints to improve bit decomposition

Current bit decomposition extracts bits one by one in the solver (IthBit). Would now make sense to extract them all in the same hint call to avoid converting to big int & decomposing a field element in bits n times (n == nbBits).

https://github.com/ConsenSys/gnark/tree/hint-to-binary
Adds some changes to the hint API though (cc  @ivokub ), holding off on that because:
On large circuits with many bit decompositions, the current hint (i-th bit) is called... millions of time 😅 . Part of the perf hit is actually on the big int thing; having a Constraint system + Hint system that's typed with field elements through generics (#172 ) will again change the API.


Fix "Usage Data Collection" test. Add keyword "Save Changes In Cluster Settings"

Fix "Usage Data Collection" test. Add keyword "Save Changes In Cluster Settings"
Signed-off-by: Jorge Garcia Oncins<EMAIL_ADDRESS>

Tested here: https://opendatascience-jenkins-csb-rhods.apps.ocp-c1.prod.psi.redhat.com/job/rhods-ci-pr-test/904/TestReport/

Verify That "Usage Data Collection" Can Be Set In "Cluster Settings": PASS

Some tests failed, but for unrelated reasons:

Verify User Can Spawn Notebook After Changing PVC Size Using UI > Failed because Wait Until JH Deployment Is Ready (fixed in #381 I think)
Verify User Cannot Set An Unsupported PVC Size Using The UI > Same as the previous one
TEST Verify Culler Kills Inactive Server > Drift was over 2 minutes, it was 150 seconds


person segmentation using deeplabv3

deeplabv3 model with mobilenetv2 backbone trained for person semantic segmentation
run using depthai.py -cnn deeplabv3p_person
For syncing the camera frame rate with nn detection, add the parameters: -sync -rgbf 12 , where 12 should match the nn frame rate, or be just below it.

For tracking purposes, this is implemented in: https://github.com/luxonis/depthai/pull/202


Make license and providers consistent between Collection and Item

Looking through the master-dev comparison I came across this addition by @mojodna
https://github.com/radiantearth/stac-spec/commit/6c2dd82ca4db772ece19a6f2d494ad9f7f1f30d9#diff-f172c5ad070035133e672354409185fcR79
It says:

license and provider should be defined at the Collection level if possible (as either
common properties or Collection fields). Item-level definition of these fields will override
Collection properties. If none are defined, the Collection's license and providers fields
will be assumed to apply to related Items.

However, license and provider are given as Item properties, and at the top level of the Collection.  But here we have this odd behavior where it doesn't work like any other Item properties, as it can be used to override a top level property in the Collection.
It's also the only case where we allow overriding Collection level properties.  If we want to actually be able to override the Collection, then these should be moved out of the Item properties to the top level.
However, instead I think we should just remove license and providers from the Collection, then it can be specified as a Collection property.

Decided to not remove license and providers from Collection, but to remove some ambiguity - being explicit about setting it to 'various' if multiple licenses are in the collection.


Fix: Add MDN Strict Inequality Link

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #11763

Description

Modified challenge instruction as recommended. Added an MDN link about strict inequality to the challenge.
I'm not completely sure if I've referenced the MDN link from the MDN Links file the right way in the challenge. Please review the PR and let me know if any changes are required! Thanks!
closes #11763

Tested and LGTM! Now to get those MDN links working...
Thanks for contributing @Manish-Giri 👍 🌮 🎉


Fix CI

@sebhahn I don't know why the files are still open in the tearDown function under windows, but I had this issue a few times. The temp dirs are anyway cleaned by the OS, but if you figure out how to make this work with pytest it would be better probably...


mdi:face-outline not showing

Home Assistant release with the issue: 0.81.1

Last working Home Assistant release (if known): ?
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io on an RPi

Component/platform:

Description of problem: mdi:face-outline does not show up after specifiying in the customize section. Other icons do.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
device_tracker.kim_htc:
  icon: mdi:face-outline

Traceback (if applicable):
Additional information:

The face-outline icon isn't in the version of MDI icons currently included with the frontend, but an MDI icon update that includes the face-outline icon just got merged with home-assistant/home-assistant-polymer#1922 and should be in the next release.


feat: add fast flag to use gpt-35-turbo, and fix question prompt

Description

Testing

Additional context

Codecov Report

Merging #31 (e58b78e) into main (2108e00) will increase coverage by 9.06%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   83.92%   92.99%   +9.06%
==========================================
  Files           6        6
  Lines         168      157      -11
  Branches       18       18
==========================================
+ Hits          141      146       +5
+ Misses         24        6      -18
- Partials        3        5       +2

Flag
Coverage Δ

integration
87.26% <72.72%> (+8.68%)
:arrow_up:

unittests
92.99% <72.72%> (+9.06%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/gpt_review/_ask.py
88.88% <72.72%> (+13.43%)
:arrow_up:


Made CallbackCommand A Subclass of Command

relates to #123
This does the correct fix of subclass the Callback Command 😄
Example

@syrusakbary Made requested changes, this is good to go! 😄


Is there an existing issue for this?

[X] I have searched the existing issues

Environment
-   OS :Windows 11 Pro for Workstations 21H2
-   Python: 3.11

What happened?
it was running but it stopped working!
Code Snippet
import firebase

config = {
    'apiKey': "*****",
    'authDomain': "*****",
    'databaseURL': "*****",
    'projectId': "*****",
    'storageBucket': "*****",
    'messagingSenderId': "*****",
    'appId': "*****",
    'measurementId': "*****"
    }
app = firebase.initialize_app(config)

ler_usuario(self)
db=app.database
usuario=db.get()
for usuario in usuario.each()['user']==[self.root.email_textfield.text]:
    print (usuario.value()['id-lbx'])

Relevant log output
No response
Anything else?
No response

it was running but it stopped working!

Did you create any folder/python file named firebase in your project directory? It could be due to that otherwise maybe a misconfiguration of a virtual environment.

There is no file named "firebase" in the directory, I have not set up a virtual environment, maybe I should do that. I'll try and let you know.

Please provide the error log if it occurs again with venv.

Inside the .venv folder the function worked again


[usbdev] Remove data toggle clear in suspend

The link_active_i term was misplaced, and data toggles should not be cleared in suspended state. In fact, they should be retained, and usbdev will need to give software greater visibility and control, so it can save / restore state in coordination with deep sleep.
For the purposes of an ECO, leave link_active_i unused. It was intended to help prevent the packet engines from responding to packets and dirtying FIFOs before software is ready, but that is left for a later commit.
Found by @alees24 in #18940

We'll need to triage and assess whether this is worthwhile and viable. If other aspects of suspend / resume work, this may be enough to enable suspending without sleep.
Without it, usbdev cannot handle suspending for the shuttle. That feature would need to be avoided.

@arnonsha can you take a look?
This might be relatively straightforward to absorb.

CHANGE AUTHORIZED: hw/ip/usbdev/rtl/usb_fs_nb_out_pe.sv

CHANGE AUTHORIZED: hw/ip/usbdev/rtl/usb_fs_nb_out_pe.sv

We will merge this now so that DV and signoff can make progress.
@arnonsha if there is any issue with this ECO, let us know and we'll revert.


Feature Request: Authentication - Auth user's (providers) accessToken

Version info

Angular:
2.0.0
Firebase:
3.4.1
AngularFire:
2.0.0-beta.5
Other (e.g. Node, browser, operating system) (if applicable):
node: 6.5.0
os: darwin x64
angular-cli 1.0.0-beta.17
Feature request
My previous issue was closed as I had not completed the template properly, also please note I did raise this initially on  stackoverflow as I believed it was something I was doing wrong.
This is not similar to issue #582 as it is not about General Userdata.
This is about being able to access the authenticated user's (providers) accessToken as was possible in AngularFire1.
So on initial login (with Google set as AuthProvider):
this.af.auth.subscribe(user=> { if (user) { console.log(user.google); }
This will log the uid, accessToken & provider
The accessToken property is not accessible.
On a page refresh the above will log out uid, displayName, email, and photoURL
These are available at all times.
My point/request is that the provider's accessToken is made available.
This property is available on the standard Firebase JS API.

@adriandurran The access token is not accessible because it is not available in onAuthStateChanged in the underlying Firebase SDK. This is because it is not guaranteed to be a fresh token as it will expire after a few hours. You can keep it around in memory (or localStorage) yourself if needed, but we will not be adding it as it would break functionality with the underlying SDK.

@davideast What is the proper way to get the idToken and accessToken with AngularFire2 then? Should we just be using the Firebase SDK directly if we need them?

@Splaktar I am using the Firebase SDK directly to get the token.


Windows support

Is there a plan to offer Windows support for this library?

Windows support was added almost a year ago. It's listed under the "compatibility" section of the README and is part of the CI build matrix. Please try your best to verify that your question hasn't already been answered before opening a new issue.


Fixes docker build failures

Fixes symbolic link creation issue with ln -sf which  unlinks and creates the proposed link

Hi @supriya-premkumar  ! Thank you for your PR.


No such file or directory

i  installed dirt successfully,but when i ran import dirt,it will appear this

import dirt
Traceback (most recent call last):
File "", line 1, in
File "dirt/init.py", line 2, in
from rasterise_ops import rasterise, rasterise_batch
File "dirt/rasterise_ops.py", line 7, in
_rasterise_module = tf.load_op_library(_lib_path + '/librasterise.so')
File "/home/longway/.local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename, status)
File "/home/longway/.local/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: dirt/librasterise.so: cannot open shared object file: No such file or directory
@pmh47 can you hello me?my environment is cuda8.0+cudnn6.0+tensorflow-gpu1.4.0+gcc4.9

import dirt
Traceback (most recent call last):
File "tests/square_test.py", line 4, in
import dirt
File "/root/dirt/dirt/init.py", line 2, in
from rasterise_ops import rasterise, rasterise_batch
File "/root/dirt/dirt/rasterise_ops.py", line 7, in
_rasterise_module = tf.load_op_library(_lib_path + '/librasterise.so')
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /root/dirt/dirt/librasterise.so: cannot open shared object file: No such file or directory
@pmh47

I have thesame problem as DomhnallBoyle. Any luck?

I haven't been able to reproduce this. Please check first whether librasterise.so actually exists at the path listed in the error. If it doesn't exist, then your install failed somehow. If it does exist, then run ldd dirt/librasterise.so (giving the full path if needed) and paste the output here. Please also specify any parameters you needed to change to make the install work, in case this broke something else.

I will try your suggestion tommorow and o will also try to include "add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)" in the cmake from earlier issues. Thanks

Yes @pmh47, librasterise.so did not exist at the path listed in my error, I checked the local pip site-packages for dirt and it was in fact there instead. I fixed it by just copying over the missing file. I am however getting a new error now:
import dirt
Traceback (most recent call last):
File "", line 1, in
File "/root/dirt/dirt/init.py", line 2, in
from rasterise_ops import rasterise, rasterise_batch
File "/root/dirt/dirt/rasterise_ops.py", line 7, in
_rasterise_module = tf.load_op_library(_lib_path + '/librasterise.so')
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /root/dirt/dirt/librasterise.so: undefined symbol: glNamedBufferData
I realise this is already defined in #3 where you referred to using nvidia's libGL rather than mesa's. I can't seem to find where the nvidia libGL is on the system. I am using a docker instance with nvidia-docker for GPU support. I've already tried downloading the GL/gl.h and GL/glext.h files. Is there anything I can do to solve this? Thanks in advance.
My docker setup is as follows:
python 2.7.12
nvidia driver version: 390.116
CUDA 9.0
tensorflow-gpu 1.12
cmake 3.14.5
gcc 5.4

I followed your advise. I ran ldd dirt/librasterise.so
linux-vdso.so.1 (0x00007ffd0b8a7000)
libEGL.so.1 => /usr/lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f1e5ac95000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f1e5aa09000)
libtensorflow_framework.so => /home/peter/anaconda3/envs/EnvPy2.7/lib/python2.7/site-packages/tensorflow/libtensorflow_framework.so (0x00007f1e598e8000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1e596e0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1e594c1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1e592bd000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1e58edd000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1e58b3f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1e58927000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1e58536000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1e5b19a000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f1e58280000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f1e5804f000)
libcuda.so.1 => /usr/lib/x86_64-linux-gnu/libcuda.so.1 (0x00007f1e56ee0000)
libcudnn.so.7 => /usr/local/cuda/lib64/libcudnn.so.7 (0x00007f1e3dbb6000)
libcudart.so.10.0 => /usr/local/cuda/lib64/libcudart.so.10.0 (0x00007f1e3d93c000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e3d604000)
libnvidia-fatbinaryloader.so.430.14 => /usr/lib/x86_64-linux-gnu/libnvidia-fatbinaryloader.so.430.14 (0x00007f1e3d3b6000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1e3d18e000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1e3cf8a000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1e3cd84000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1e3cb6f000)

The librasterise.so is well compiled and its using the correct virtual environment tensorflow.
My error is :
Traceback (most recent call last):
File "tests/square_test.py", line 4, in
import dirt
File "/home/peter/Documents/MD3C/octopus/dirt/dirt/init.py", line 2, in
from dirt.rasterise_ops import rasterise, rasterise_batch
File "/home/peter/Documents/MD3C/octopus/dirt/dirt/rasterise_ops.py", line 7, in
_rasterise_module = tf.load_op_library(_lib_path + '/librasterise.so')
File "/home/peter/anaconda3/envs/EnvPy2.7/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/peter/Documents/MD3C/octopus/dirt/dirt/librasterise.so: undefined symbol: _ZN10tensorflow7strings8internal9CatPiecesB5cxx11ESt16initializer_listIN4absl11string_viewEE

When i tried to check all the symbols inside the librasterise.so, the undefined symbol is well and present but somehow py_tf.TF_LoadLibrary couldnt load it correctly.

@DomhnallBoyle  See https://hub.docker.com/r/nvidia/opengl/ for nvidia's GL docker image; I haven't tried this, but it looks like it contains all the pieces required by DIRT.
If you use the 1.0-glvnd-devel variant (rather than base), you probably need to explicitly request the GLVND bindings, by applying this patch to dirt/csrc/CMakeLists.txt:
diff --git a/csrc/CMakeLists.txt b/csrc/CMakeLists.txt
index e69ba8d..da51276 100644
--- a/csrc/CMakeLists.txt
+++ b/csrc/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8)  # 3.8 gives us built-in CUDA support

 project(dirt LANGUAGES CXX CUDA)

-find_package(OpenGL REQUIRED)
+find_package(OpenGL REQUIRED COMPONENTS OpenGL)

 # Search for EGL; nvidia drivers ship the library but not headers, so we redistribute those
 find_path(EGL_INCLUDE_DIR NAMES EGL/egl.h PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../external REQUIRED)
@@ -39,7 +39,7 @@ add_library(
 )

 target_compile_features(rasterise PUBLIC cxx_std_11)
-target_link_libraries(rasterise ${EGL_LIBRARIES} ${OPENGL_LIBRARIES} ${Tensorflow_LIBRARY})
+target_link_libraries(rasterise ${EGL_LIBRARIES} OpenGL::OpenGL ${Tensorflow_LIBRARY})

 # Put the compiled library in the python package folder, rather than whatever build folder is being used
 set_target_properties(

@fasogbon  See the last two posts on #10 for the solution to that error.

Thanks! Your suggestions for release build worked perfectly fine
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffast-math  -D_GLIBCXX_USE_CXX11_ABI=0")

Thanks @pmh47, I'll give that a try. @fasogbon, how did you fix the original error of librasterise.so not existing in the directory?

@pmh47 thanks for your advice, I used the https://hub.docker.com/r/nvidia/cudagl docker devel image with nvidia-docker and did not need to change anything in the dirt/csrc/CMakeLists.txt to install dirt. The only issue I had was the missing librasterise.so and string_view.h problem from #23

i installed dirt successfully,but when i ran import dirt,it will appear this

import dirt
Traceback (most recent call last):
File "", line 1, in
File "dirt/init.py", line 2, in
from rasterise_ops import rasterise, rasterise_batch
File "dirt/rasterise_ops.py", line 7, in
_rasterise_module = tf.load_op_library(_lib_path + '/librasterise.so')
File "/home/longway/.local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename, status)
File "/home/longway/.local/lib/python2.7/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: dirt/librasterise.so: cannot open shared object file: No such file or directory
@pmh47 can you hello me?my environment is cuda8.0+cudnn6.0+tensorflow-gpu1.4.0+gcc4.9

I have the same question as yours,how did you resolve it?
@Weipeilang


[ansible/missioncontrol] Elasticsearch cluster status is yellow

Is this a request for help?: no

Is this a BUG REPORT or FEATURE REQUEST? (choose one): bug report

Which installer: Ansible
Which product and version (eg: ansible & collection version - 1.1.2): 7.24.3
Which operating system and version(eg: ubuntu & version - 20.4): Ubuntu 20.04.2
What happened: After installing mission control via the collection role, Elasticsearch cluster health API reports cluster status "yellow" and only one cluster node.
What you expected to happen: Elasticsearch cluster status being green, with 3 nodes.
How to reproduce it (as minimally and precisely as possible): Install mission control on a Ubuntu server and curl http://localhost:9200/_cluster/health
Anything else we need to know:
curl http://localhost:9200/_cluster/health output:
{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":10,"active_shards":10,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":9,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":52.63157894736842}

@Uquout7o is this a default platform collection installation with single node of mission control or HA setup ? Please share inventory file to debug further

It's a 3 node HA installation of Mission Control.
Here's my inventory:
ArtifactoryVMs:
  children:
    artifactory:
      hosts:
        "artif01": {}
        "artif02": {}
        "artif03": {}
    artifactorydb:
      hosts:
        "artifdb01": {}
        "artifdb02": {}
    missioncontrol:
      hosts:
        "misco01":
          mc_ha_node_type: "master"
        "misco02":
          mc_ha_node_type: "slave"
        "misco03":
          mc_ha_node_type: "slave"
    xray:
      hosts:
        "xray01": {}
        "xray02": {}
        "xray03": {}

Logs are attached.
elasticsearch_logs-20210823.tar.gz

@Uquout7o we currently don't support HA in mission control - please refer documentation. Only artifactory HA is supported.


Tensorflow compilation fails on Raspberry 32bit compute module with message "error: static assertion failed: Source and destination types should have equal sizes."

I am trying to compile Tensorflow on Rpi 32bit 4GB board and encountered compilation failure after 14 hours. I have been following https://qengineering.eu/install-tensorflow-2.1.0-on-raspberry-pi-4.html and compiled Bezel before this.
Following is the git HEAD of Tensorflow code I sync'ed:
commit fcdf659347024dc5a3130e866ba3dde10bac72b0 (HEAD, tag: v2.5.0-rc3)
Merge: a7b36464407 efe04c1b561
Author: Mihai Maruseac<EMAIL_ADDRESS>Date:   Tue May 4 16:35:43 2021 -0700
Merge pull request #48904 from tensorflow-jenkins/version-numbers-2.5.0rc3-13515

Update version numbers for TensorFlow 2.5.0-rc3

This is the command I used:
$ sudo bazel --host_jvm_args=-Xmx1624m build
--config=noaws
--config=nogcp
--config=nohdfs
--config=nonccl
--config=monolithic
--config=v2
--local_cpu_resources=1
--copt=-mfpu=neon-vfpv4
--copt=-ftree-vectorize
--copt=-funsafe-math-optimizations
--copt=-ftree-loop-vectorize
--copt=-fomit-frame-pointer
--copt=-DRASPBERRY_PI
--host_copt=-DRASPBERRY_PI
--linkopt=-Wl,-latomic
--host_linkopt=-Wl,-latomic
//tensorflow/tools/pip_package:build_pip_package
Following is the snippet from "lscpu" command output of my Rpi:
Architecture:                    armv7l
Byte Order:                      Little Endian
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
Vendor ID:                       ARM
Model:                           3
Model name:                      Cortex-A72
Stepping:                        r0p3
Following is the compilation error:
INFO: Found 1 target...
ERROR: tensorflow/tensorflow/compiler/xla/service/llvm_ir/BUILD:64:11: C++ compilation of rule '//tensorflow/compiler/xla/service/llvm_ir:llvm_util' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 180 argument(s) skipped)
In file included from tensorflow/compiler/xla/service/llvm_ir/llvm_util.cc:22:
external/com_google_absl/absl/base/casts.h: In instantiation of 'Dest absl::lts_2020_09_23::bit_cast(const Source&) [with Dest = long long int; Source = void ()(const char, long long int); typename std::enable_if<(! absl::lts_2020_09_23::internal_casts::is_bitcastable<Dest, Source>::value), int>::type  = 0]':
tensorflow/compiler/xla/service/llvm_ir/llvm_util.cc:382:76:   required from here
external/com_google_absl/absl/base/casts.h:176:30: error: static assertion failed: Source and destination types should have equal sizes.
176 |   static_assert(sizeof(Dest) == sizeof(Source),
|                 ~^~~~~
external/com_google_absl/absl/base/casts.h: In instantiation of 'Dest absl::lts_2020_09_23::bit_cast(const Source&) [with Dest = long long int; Source = const char*; typename std::enable_if<(! absl::lts_2020_09_23::internal_casts::is_bitcastable<Dest, Source>::value), int>::type  = 0]':
tensorflow/compiler/xla/service/llvm_ir/llvm_util.cc:384:55:   required from here
external/com_google_absl/absl/base/casts.h:176:30: error: static assertion failed: Source and destination types should have equal sizes.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /media/sharathchandra/databox/sources/tensorflow_compilation/tensorflow/tensorflow/python/tools/BUILD:227:10 C++ compilation of rule '//tensorflow/compiler/xla/service/llvm_ir:llvm_util' failed (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 180 argument(s) skipped)
INFO: Elapsed time: 1457.007s, Critical Path: 136.90s
INFO: 199 processes: 7 internal, 192 local.
FAILED: Build did NOT complete successfully

Hi @schindam !
Sorry for the late response.
Please refer documentations from TFlite-runtime for linux devices and Cmake for arm device to raspberry usage.
It saves space and speed up inference time by using Lite run time (in the edge device).
Thank you!

Thank you. As the reference links are changed, a different direction is now pursued. We can close this ticket.


Not a feature request, just a question...

I'm really interested in this add on but.. there are no instructions. Can someone please teach me how to use it?? If someone can just show me the way, I might even make a youtube video on how to use it to help others like me.

Manual for the previous version (the service used in a link at AnkiWeb can't show the page for me): https://github.com/aleksejrs/anki-2.0-vsa-and-ire/blob/for_everyone/doc/View_Size_Adjust_and_Incremental_Reading_Extension_addons_-_Google_Groups.html

Thanks @aleksejrs. I read through some of it and I understand the features now.
The problem is, there isn't like a step by step guide on how to actually use this in the real world. It would be good to get specific examples of how everyone uses it.
For example:

What kinds of articles do you use IR  for?
How many articles (cards) do you keep in your 'organiser' queue at any given time?
What is the difference between highlighting and extracting? (aren't they the same?)
If you're just extracting the most important parts of the article (into individual cards), what is the point of keeping it in the organiser?

I don't use it much, especially now that I have v3 and v4 installed and v3 (for Anki 2.0) was broken, but also because I had many useless extracts and didn't know what to do with them. I am unable to use the best learning methods and don't know what to prioritize.  So I have > 1500 IR cards, am adding more and forgetting about them.

As an article on IR at supermemo.com says, Wikipedia articles may be good for IR because (something like) they are written by many people and there is not much context to hold in your head to be able to understand a sentence. Also when I needed to read Terms of Service or similar, IR worked.

There is no bottom limit. The top limit depends on your ability to prioritize them. Somebody added a different mode for that, but mode switching has a dangerous bug with filtered decks (I use them to prioritize everything): issue #76.

Highlighting does not create new cards.

After you have extracted all the important parts, you can delete the original article.

Thanks again. I just have 1 more question. For number 3, my question was really 'What is the usefulness highlighting vs extracting?'.

I use it to discard useless parts that are not clearly worth deleting (and I think there was no "delete" in v2).

Thanks, I'm gonna close this now.


Motion sensitivity options

Hello, I've been getting a lot of motion events registered in the kerberos agent when there's actually no motion. There seem to be no options for defining motion sensitivity. Can these be added?

thank you @yllekz! good point, we'll add a roadmap item for next release. Expect something to become available in the next weeks.

Hi, have the same issue, anything new about this one?


[DOC] Move Gantt page to subpage under Visualize

What do you want to do?

[X] Request a change to existing documentation
[ ] Add new documentation
[ ] Report a technical problem with the documentation
[ ] Other

Tell us about your request. Provide a summary of the request and all versions that are affected.
Provide a summary of the request and all versions that are affected.
Move VisBuilder to subpage under Visualize; this is a task related to the doc site restructuring initiative
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
#1036

@Naarcha-AWS Can we move this page? We've merged #1402.

Closing this issue to consolidate several move pages and link update issues into one issue.


How to specify the right server and port?

as the pic shows, I have a k3s node, but the lazykube connect to 8080, which caused the connection refused. Doesn't it need to listen 6443 as default or some ports else? How can I fix this situation

How did you solve this?


manifest.json comes with incorrect icon paths

Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request

Area
- [ ] devkit
- [ x] schematics

Versions
Angular CLI: 6.0.0-rc.4
Repro steps
ng new myApp
cd myApp
ng add @angular/pwa --project=myApp
Desired functionality
After linking the assets/manifest.json manually (as already mentioned in #686) from the assets folder:

the referenced icons are failing (404). The manifest is located in the assets folder and so are the manifest icons. However, the icons are referenced from the an images folder, i.e. src: "images/icons/icon-72x72.png"
It would be better to locate the manifest in the src folder. This requires:

move the generated manifest.json file to the src folder
make a notion in the angular-cli file that manifest.json should be served (similar to the favion.ico)
change the icon references to the assets folder

The paths are just the wrong ones: it is images instead of /assets!
Note the leading slash is important, as currently the manifest.json is in a subdirectory.

Done a PR #722


Return timestamps in trades for orderbook

The trades for orderbook endpoint does not return timestamps or ledger number of the trade. Ideally, it would return both ledger number and timestamp that the trade occurred.
Right now, there is no way to trivially get the data via Horizon. Other stuff works fine though. I have a trading history chart implemented and all I need now is the timestamps.
Example request:

https://www.stellar.org/laboratory/#explorer?resource=order_book&endpoint=trades&values=eyJzZWxsaW5nX2Fzc2V0Ijp7InR5cGUiOiJjcmVkaXRfYWxwaGFudW00IiwiY29kZSI6IlVTRCIsImlzc3VlciI6IkdCQU1CT09aRFdaUFZWNTJSQ0xKUVlNUU5YT0JMT1hXTlFBWTJJRjJGUkVWMldMNDZEQkNIM0JFIn0sImJ1eWluZ19hc3NldCI6eyJ0eXBlIjoibmF0aXZlIn19&network=public

Thanks!

@bartekn I was planning on first investigating the feasibility of the JOIN solution, then falling back to adding a link at the minimum.
I haven't thought much about denormalization and maintenance lately, but will take a look at #89 and spin some of that back into my brain.  The effort of denormalizing is IMO too much to justify for this ticket alone, so my preferred route would be if we can solve the problem in the meantime in another way.

I think adding a link to the ledger works just fine for now. :+1: For large histories to be useful and performant anyways, clients will want to store the trade history. Having to follow a link isn't that annoying.

hmm I'd much rather have the timestamp here and not have to follow a link.  You really want the time of the trade if you are interested in the trade. If there is a link 90% of the people will have to follow it

#345


esp_mesh_waive_root() stops AP mode of new root (IDFGH-4723)

Environment:
idf version: 4.2
modules: esp32
OS: linux
wifi router: mobile hotspot
Description:
I flashed two esp32 with waive root node code, let them be N1 and N2, and followed the following prodcedure:

kept mobile near N1 to make it root
waited for the waive function to start
ket the mobile to N2 to make it the new root

Expected Behaviour
N2 become the new root and N1 connect to it.
Observed Behaviour
N2 becomes the new root but N1 is not able to connect to it. When the N1 node was restarted it connected to the mobile hotspot instead of the root, i.e. N2. This occurance occurs once after 3-5 times running the above procedure.
Code Repository
https://github.com/RajSinghGaur/Mesh-Waive-Root.git
Logs
Logs for both N1 and N2 are in repository by names N1.txt and N2.txt repectively.
Possible Reasons
During waive the AP of N2, i.e. the new root, was not working.

Thanks for reporting.

@RajSinghGaur Do you still have this issue ? I have tested with your code locally, but I didn't reproduce your problem.

This occurance occurs once after 3-5 times running the above procedure.

Do you mean after performing a root switch successfully, then restart the board and executing it again?

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates.


Plan how we can user test the inclusion microsite

What
Now that we've created the inclusion microsite, we need to run it through a round of user testing.
Why
So we can:

make sure people understand the microsite
make sure people can navigate through the microsite

Done when

[x] Create a plan for how we can test the inclusion microsite

Plan:

Create a survey to send to people using the micro-site
Conduct focus groups with networks to evaluate inclusion content
Usability test the micro-site


Fully document setting up environment for running all tests and examples [JIRA: CLIENTS-356]

Some of this is done, some not. And it's not in one place.

Clone and build Riak devrel
tools/devrel/setup-dev-cluster
For examples, tools/devrel/setup-examples. Also note that some examples require leveldb backend as default. This is confusing.

Was this ever documented anywhere?
I am neither a Riak admin nor a system admin, but I was able to get our Riaktive test environment running using a Vagrant + Docker setup.
Here is the relevant Vagrantfile: https://github.com/LeanKit-Labs/riaktive/blob/master/Vagrantfile.sample
I have admittedly not dug deeply into your test suite, so there could be reasons why this approach wouldn't work, but would you guys be interested in something like that if we could make it work?
The sample file shows a single riak instance being run, but it could easily be rewritten to boot up a cluster of instances. Interestingly, it would also be easy to switch between Riak versions for testing.
Thoughts?

Hey Brian,
I haven't had time yet to document this. At this point, I use basho/riak-client-tools to configure Riak built from source with these commands:
git clone git://github.com/basho/riak.git
cd riak && make devrel DEVNODES=4

The above requires Erlang built from basho/otp
My co-worker @christophermancini has been working on various vagrant-type things for client testing and I'm sure would be glad to discuss it with you.

Feel free to follow up here with any questions you have about running the unit / integration tests for this project :smile:

Ha. Ok. I will dive into it in the morning.
On Wed, Oct 14, 2015, 5:52 PM Luke Bakken<EMAIL_ADDRESS>wrote:

Feel free to follow up here with any questions you have about running the
unit / integration tests for this project [image: :smile:]
—
Reply to this email directly or view it on GitHub
https://github.com/basho/riak-nodejs-client/issues/43#issuecomment-148212775
.


[Issue]: rocAL build failure

Problem Description
rocAL build failure observed
/home/MIVisionX/rocAL/rocAL/source/decoders/image/fused_crop_decoder.cpp: In member function 'virtual Decoder::Status FusedCropTJDecoder::decode(unsigned char*, size_t, unsigned char*, size_t, size_t, size_t, size_t, size_t&, size_t&, Decoder::ColorFormat, DecoderConfig, bool)':
/home/MIVisionX/rocAL/rocAL/source/decoders/image/fused_crop_decoder.cpp:85:9: error: 'tjDecompress2_partial' was not declared in this scope
   85 |     if( tjDecompress2_partial(m_jpegDecompressor,
      |         ^~~~~~~~~~~~~~~~~~~~~
[ 83%] Building CXX object rocAL/rocAL/CMakeFiles/rocal.dir/source/device/device_manager_hip.cpp.o
[ 83%] Building CXX object rocAL/rocAL/CMakeFiles/rocal.dir/source/device/ocl_setup.cpp.o
make[2]: *** [rocAL/rocAL/CMakeFiles/rocal.dir/build.make:628: rocAL/rocAL/CMakeFiles/rocal.dir/source/decoders/image/fused_crop_decoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 84%] Building CXX object rocAL/rocAL/CMakeFiles/rocal.dir/source/loaders/circular_buffer.cpp.o
/home/MIVisionX/rocAL/rocAL/source/decoders/image/turbo_jpeg_decoder.cpp: In member function 'virtual Decoder::Status TJDecoder::decode(unsigned char*, size_t, unsigned char*, size_t, size_t, size_t, size_t, size_t&, size_t&, Decoder::ColorFormat, DecoderConfig, bool)':
/home/MIVisionX/rocAL/rocAL/source/decoders/image/turbo_jpeg_decoder.cpp:107:17: error: 'tjDecompress2_partial_scale' was not declared in this scope
  107 |             if( tjDecompress2_partial_scale(m_jpegDecompressor,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/MIVisionX/rocAL/rocAL/source/decoders/image/turbo_jpeg_decoder.cpp:189:17: error: 'tjDecompress2_partial_scale' was not declared in this scope
  189 |             if( tjDecompress2_partial_scale(m_jpegDecompressor,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [rocAL/rocAL/CMakeFiles/rocal.dir/build.make:667: rocAL/rocAL/CMakeFiles/rocal.dir/source/decoders/image/turbo_jpeg_decoder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1621: rocAL/rocAL/CMakeFiles/rocal.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Operating System
Ubuntu 22.04
CPU
AMD Ryzen Threadripper 1900X 8-Core Processor
GPU
AMD Radeon VII
ROCm Version
ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response

Closing the issue as it was for MIVisionX library


api-docs: API feature level 163 revisions and related changes.

Part of 7.0 API changelog audit; see this CZO conversation for more context.
Notes:

Makes the switch from "Zulip display email" to "Zulip API email" in the API documentation; discussed here on CZO.
Updates the main description of the documentation for Get a user by email for the email address visibility change from an organization-level setting to a user-level setting.
Fixes examples that were now missing the always present delivery_email field, though sometimes it is null.
General updates and revisions to the feature level 163 API documentation - both the changelog entry and Changes notes. See screenshots below.
Updates the response in Get own user to consistently use "requesting user" in the response descriptions.
Changes a link in the main description of the POST /register response to be a reference link for readability and consistency in that section of the documentation.

Screenshots and screen captures:

API changelog: feature level 163
Current documentation

Get users: response `delivery_email`
Current documentation Same response description in Get user by ID and by email, so not including screenshots of those. And same in user objects returned in register response.

Get user by email: main description
Current documentation

Get own user: response
Current documentation

User settings: email_address_visibility parameter
Current documentation

Realm user settings defaults: email_address_visibility parameter
Current documentation

Get events: realm_user op: update event for delivery_email
Current documentation

Get events: realm op: update event
Current documentation

Register queue: main description changes note
Current documentation

Register queue: email_address_visibility in user settings objects
Current documentation Same for realm defaults.

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

@sahil839 - It would be great if you could review these changes to make sure they are correct. Thanks!

The lgtm aside from the merge conflict.

Looks good to me as well.

Updates:

Fixed merge conflict that was due to some other API feature level updates.
Added one final commit after reviewing all instances of "email" in zerver/openapi/zulip.yaml for other areas where we'll want to clarify for the email being the "Zulip API email".

TO-DO (aka not merge ready):

These current changes don't helpfully describe avatar_url being null, working on revisions to be added in another commit.

Additional screenshots:
All the screenshots in the original PR comment are still up-to-date with these changes.

Send a message: `to` parameter
Current documentation

Subscribe to a stream: response description
Current documentation

Updates:

Added a commit for updating the avatar_url field description in message and user objects. It seemed worth noting the change from the realm setting to the user setting as a feature level 163 Changes note, so I also made a corresponding bullet point in the API changelog entry.

Updated screenshots:

Updated API changelog entry for feature level 163
Current documentation

User object return value: avatar_url field
Current documentation
Note that this is a shared schema in the OpenAPI documentation and therefore is the same for all the endpoints that return these objects.

Message object return value: avatar_url field
Current documentation
Note that this is a shared schema in the OpenAPI documentation and therefore is the same for all the endpoints that return these objects.

Merged, thanks @laurynmm!


Trying to "restart" LGOP reports an error

Do you wish to restart? (Y is affirmative): >> y
Restarting.

Loading '\zmim\stories\lgop.z3'
0% ...

Error in mem_cmm2_safe.inc line 56: Integer array too small

Fixed in cb7113e45180854ddd7d639c96aac63e9344c349


Updated Holographic Remoting Documentation

Updated Holographic Remoting Documentation

@vimusc : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@vimusc : Thanks for your contribution! The author(s) have been notified to review your proposed change.


FILE_FULL_PATH not recognized

dscanner --declaration fun fails with:
auto fun(string file=__FILE_FULL_PATH__)(){}
to avoid such errors in future, could there be test that checks against identifiers defined in https://dlang.org/spec/traits.html (for eg)

It's probably because of this: https://github.com/Hackerpilot/libdparse/pull/120.


UHF-4423: Reverted attributes for the body tag.

Hotfix for html.html.twig
Revert attributes for the body tag.

Post-merge-approved 🚀


Define  in .nbiset file

When  is placed in top of  it works just fine; however, if you have hundred of test suites it is hard to maintenance.  So when I moved the  into .nbiset, I got error:
 <categories>
    <category name="Result_set" />
  </categories>
  <failure>
      <message><![CDATA[System.AggregateException : One or more errors occurred.
  ----> NBi.Core.NBiException : The variable named 'FiscalWeekNumber' is not defined. No variables are defined at the top of the test-suite.]]></message>
                                  <stack-trace><![CDATA[at System.Threading.Tasks.Task.FastWaitAll(Task[] tasks)
at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
at NBi.NUnit.ResultSetComparison.BaseResultSetComparisonConstraint.ProcessParallel(IResultSetService actual) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit\ResultSetComparison\BaseResultSetComparisonConstraint.cs:line 154
at NBi.NUnit.ResultSetComparison.BaseResultSetComparisonConstraint.Process(IResultSetService actual) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit\ResultSetComparison\BaseResultSetComparisonConstraint.cs:line 141
at NBi.NUnit.ResultSetComparison.BaseResultSetComparisonConstraint.Matches(Object actual) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit\ResultSetComparison\BaseResultSetComparisonConstraint.cs:line 107
at NBi.NUnit.Runtime.TestSuite.AssertTestCase(Object systemUnderTest, Constraint constraint, String stackTrace) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit.Runtime\TestSuite.cs:line 243
at NBi.NUnit.Runtime.TestSuite.ExecuteTestCases(TestXml test) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit.Runtime\TestSuite.cs:line 129
--NBiException
at NBi.Core.Scalar.Resolver.GlobalVariableScalarResolver`1.Execute() in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Scalar\Resolver\GlobalVariableScalarResolver.cs:line 48
at NBi.Core.Query.QueryParameter.GetValue() in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Query\QueryParameter.cs:line 35
at NBi.Core.Query.Command.DbCommandFactory.Instantiate(IDbConnection connection, IQuery query, ITemplateEngine engine) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Query\Command\DbCommandFactory.cs:line 45
at NBi.Core.Query.Command.DbCommandFactory.Instantiate(IClient client, IQuery query, ITemplateEngine engine) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Query\Command\DbCommandFactory.cs:line 26
at NBi.Core.Query.Command.CommandProvider.Instantiate(IClient session, IQuery query) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Query\Command\CommandProvider.cs:line 52
at NBi.Core.Query.EngineFactory`1.Instantiate(IQuery query) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\Query\EngineFactory.cs:line 49
at NBi.Core.ResultSet.Resolver.QueryResultSetResolver.Load(IQuery query) in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\ResultSet\Resolver\QueryResultSetResolver.cs:line 44
at NBi.Core.ResultSet.Resolver.QueryResultSetResolver.Execute() in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\ResultSet\Resolver\QueryResultSetResolver.cs:line 29
at NBi.Core.ResultSet.ResultSetService.Execute() in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.Core\ResultSet\ResultSetService.cs:line 26
at NBi.NUnit.ResultSetComparison.BaseResultSetComparisonConstraint.<>c__DisplayClass21_0.<ProcessParallel>b__0() in C:\Program Files (x86)\TeamCity\buildAgent\work\b329365f624614a7\NBi.NUnit\ResultSetComparison\BaseResultSetComparisonConstraint.cs:line 156
at System.Threading.Tasks.Task.Execute()
]]></stack-trace>
</failure>

Is there additional configuration to have  in .nbiset  as global level?
Thanks,
Khanh

The general design guideline for NBi is to have in the test-suite itself all items that are independent of the environment (dev, test, qa ...) and in config files things that are dependent.
At the moment, I consider that variables are independent of the environment. We met a weird case where in some environnent the variable should not be evaluated but instead should take a fix value. This case is supported by overriding a variable. But we've not met the case where the formulae of the variable should be dependant of the environment. Could you explain why the formulae of FiscalWeekNumber is not the same on all your environments?
Or explain what you mean by "not easy to maintain".

I have just had a similar scenario where the formula of the time is not the same among all environments.
On production the time is an expression for "yesterday". The test-environment has data until 6 months ago. I can for once test the same like the production-environment tests, but now also need to test with an expression which jumps to 6 months before.
I worked around that by adding a possibility where I can write a fixed date in one spot and a couple of SQL queries use the replace-function to replace a specific string pattern with that fixed date.
It works. A variable which could be set for an environment could be handy. Also while I generate the entire test-suites via genbi, variables defined within a testsuite are always overwritten when I use my setup.
For me, the feature could be helpful but is not important. I don't even know how to incorporate the feature in my setup properly, yet. However, I wanted to describe a scenario where the best practice might need some "bending". :)

I get the scenario, but for this case, won’t it be possible to define a variable at the top, retrieving the environment (with an override on the configuration file or with an environment variable). Then for each of the other real variables used in the test-suite having an if then or a switch based on this first variable and the selected logical path will return the formulae corresponding to the environment?
<variable name="env"/>
  <environment name="MyEnvVar"/>
</variable>
<variable name="FirstOfCurrentMonth">
  <script language="c-sharp">
    env==“test” ?
       DateTime.Now.AddMonths(-6) :
       DateTime.Now.AddDays(1 - DateTime.Now.Day)
  </script>
</variable>

I fear that letting users define variables in external files will create a nightmare to debug with some variables existing in some files and not on other files.

Hi @Seddryck,
Thanks for your promptly respond.
Following is how FiscalWeekNumber parameter defined in .nbiset:
`

Data Source=myserver;Initial Catalog=mydb;Integrated Security=SSPI;
201834

 select top 1 fiscalweeknumber from dbo.DimDate WHERE FiscalWeekNumber =201834 /* debug */

`
In a .nbi files both variable reference values in .nbiset file as global:
`

			SELECT Count(1)
				FROM dbo.DimDate AS d
				INNER JOIN dbo.Fact1 AS f ON f.DateKey=d.DateKey
				WHERE d.FiscalWeekNumber = @FiscalWeekNumber

@FiscalWeekNumberVar

154

`
With above set up, the test will be error at run time; unless, I put  in the .nbi files:
<variables>     <variable name="FiscalWeekNumberVar"> <query-scalar connectionString="@Maindb"> <![CDATA[ SELECT TOP 1 FiscalWeekNumber FROM dbo.DimDate WHERE FullDate < GETDATE() ORDER BY NEWID();]]> </query-scalar> </variable>   </variables>
We have a nbi file for each dim or fact.  That's why there are many nbi files.  Plus, there are many layers of data movement btw different transformation.  I keep database connections in .nbiset file, so it is make sense to have a variable at global setting in this case can create a new nbi files with common parameter or variables.  We have about 100+ nbi files, and each have about 100+ test cases.
In additional, we use Powershell  to replace env setting in nbiset file at run time.  This way, the suite can be run on any environment.
Thanks,
Khanh

I'll take a look to a feature letting users share the same variables between different test-suites. It should also solve your use-case.


event is Deprecated. "Server performance will be affected"

Server version: Paper-567 (MC: 1.16.5)
Plugin version 4.2.2
Java version: 11
Console output:
[Multiverse-Core]: "Multiverse-Core v4.2.2-b812" has registered a listener for org.bukkit.event.entity.EntityCreatePortalEvent on method "public void com.onarandombox.MultiverseCore.listeners.MVPortalListener.entityPortalCreate(org.bukkit.event.entity.EntityCreatePortalEvent)", but the event is Deprecated. "Server performance will be affected"; please notify the authors [dumptruckman, Rigby, fernferret, lithium3141, main--].

#2000


only display HEX once, not once for every box

I moved the single hex checkbox in the title bar of the track editor, so I'm closing this issue.


a big potential speed-up

a comment by Richard Durbin; an idea by Haynes Heaton: A search for kmer pairs with a SNP on a fixed position could be sufficient for genomic representation. For genomes with low heterozygosity the kmer pairs will be exactly the same (because probability of two SNPs being close to each other is small) and for the highly heterozygous genomes we should keep the option to do the full search.
The naive speed up is 20x. However I think there is more to it. I wonder if we could do some sort of kmer sorting trick to avoid loading all the kmers to memory.

I just managed to process 8.1Gbp genome in 5 hours with the new algorithm. (just for comparison 1.3Gbp genome took 1-3 days before). The speed-up is really amazing!

note: add an internal check for sorted dump file when --all is not used (and report unsorted dump file to the user).
-> people will use the old dump files to run the new algorithm. They won't notice that we have changed the way how to get k-mers from kmc. (there is a beta tester trying it now, this is a problem he has run into)

note: Jellyfish does not have a sort function when dumping a subset of kmers. However, you could use bash sorting (sort -k1 --parallel=12 FILE) for multi-threaded sorting
(depending on the version of the compiler).
-> Alternatively we can just discourage usage of Jellyfish

integrated in dev branch in f2624712ed605ae772834d646087ddb4c8ec2558
Closing since it's done. Still more testing should be done.


Nitpick: give at least two decimals of information for a pos2 in the Debug trait

As Emil has written, debugging layout in egui can be tricky. Extra tricky is when working with Pos2 in a coordinate system normalized to 0..=1. In this case, the debugging output for Pos2 formatted as {:.1} gives too little information. This is especially apparent when writing tests:
assertion `left == right` failed
  left: [0.2 0.2]
 right: [0.2 0.2]

I would humbly request for the Debug trait to give at least 2 decimals of the x/y values.

Much appreciated!


WinSock: WSAID_WSASENDMSG GUID missing

Suggestion
All the other IOCTLs are defined, but this one is missing.
Existing IOCTLs:
https://github.com/microsoft/windows-rs/blob/5c5c82aed3cacfbb83f6dd27c58add883157221f/crates/libs/windows/src/Windows/Win32/Networking/WinSock/mod.rs#L3106-L3113
win32metadata has it generated:
https://github.com/microsoft/win32metadata/blob/53c95c591ab0d6936ce0947a3acdbfb81401b42d/generation/WinSDK/RecompiledIdlHeaders/um/MSWSock.h#L519
And LPFN_WSASENDMSG is defined, so this seems unintentional.

This is actually missing from win32metadata, transferring there. (The headers in the repository are not a good indication of what's in the final metadata product.)


fix(WebVTT): Fix horizontal positioning with cue box size

When the VTT size setting is used, the horizontal positioning was wrong in both native and UI display.
The native display is wrong on Chrome and Edge because of a layout bug in Chrome, where the shadow DOM for the cue box has conflicting (redundant) styles.  For example, these VTT settings:
line: 85% position: 50% size: 63%
result in these styles in the shadow DOM:
top: 85%; left: 18.5%; transform: translate(-18.5%, -85%).
The translate style is what breaks the positioning.  Unfortunately, there is no way to fix that in JavaScript.
The UI display, however, was buggy for different reasons and is fixable.  The styles left: 0; top: 0; were applied by default, and then top: 85%; and width: 63%; were set based on the cue settings. The default of left: 0 was what broke the positioning.  Removing this leaves left set implicitly to auto, which is correct.
No other test cases were broken (or fixed) by this change.
This also adds a filter parameter to the lab workflow to run a subset of tests for quicker results.  This is useful for updating screenshots.
Closes b/259121343

Screenshots updated, crbug link added.  Re-review is required to merge.  Thanks!


[Question] Cancelation of requests

When does store cancel fetcher requests? Does it do it when there are no active streams for a given key?
Is it possible to cancel requests manually?
My use case:
I have a store that loads a user profile. I want to cancel loading and remove a profile as part of logout operation. Otherwise it is hard to guaranty an absence of profile in database after logout is completed.

@eyalgu Could you please help with the question?

Yes, the fetcher request will be canceled when there are no more active streams for a given key.
We currently do not provide a way to manually cancel a request
Quick impl note - due to limitation with the current multicasting logic, we don't have a way to wait for the fetcher's cancellation before completing the cancelation of the (last) stream. That means that even though we do cancel the upstream there can be a small delay between the cancellation of the last stream and the cancelation of the upstream.
If you absolutely want to guarantee for not that no new data is written to the SoT after logout, you can add a check in the SourceOfTruth's writer function for now.
Providing a stronger cancellation guarantee is something we should probably add in a future version

Note - we can probably get rid of a lot of custom code and this limitation once SharedFlow is out (in the next coroutine release hopefully)


Problem about data pre-processing

Thank you for this wonderful work!
I have one questions about data pre-processing. When I use 'generate_geodesic_distance.py' to convert the OBj file you provided to GIH, I encountered  the following error:
`  f = torch.solve(U, B)[0]
Traceback (most recent call last):
File "GIH_calculating/generate_geodesic_distance.py", line 39, in
Dg_r, grad, div, W, S, C = distance_GIH(mesh_points, mesh_faces)
File "/mnt/16T/sxk/Unsupervised_IEPGAN-main/GIH_calculating/utils_distance.py", line 122, in distance_GIH
D = _geodesics_in_heat(grad,div,W[0],A,t)
File "/mnt/16T/sxk/Unsupervised_IEPGAN-main/GIH_calculating/utils_distance.py", line 109, in _geodesics_in_heat
f = torch.solve(U, B)[0]
RuntimeError: solve_cuda: The diagonal element 1 is zero, the solve could not be completed because the input matrix is singular.`
Can you explain it? Thank you again for your contribution.
Thanks,
xiaokun

The reason for the problem is that my pytorch version is too new, fixing it by replacing f = torch.solve(U, B)[0] with f =  torch.linalg.solve(B, U) in File "/mnt/16T/sxk/Unsupervised_IEPGAN-main/GIH_calculating/utils_distance.py", line 109.
Thank you again for your contribution.


Class imported from same-named module in init.py is marked as Module instead of Class

 Environment data

Language Server version: 2021.1.2
OS and version: win32 x64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.typeCheckingMode: strict

 Actual behaviour
In the following example:

In Class_B.py, Class_A is  correctly marked as class (red) in from .Class_A import .Class_A.
But in init.py, Class_B is marked as module in from .Class_B import Class_A, Class_B

Thanks for the bug report.
This is a bit of an edge case in Python. The symbol Class_B is both a module and a class in this file. That's because there's a special-case rule in the loader for imports of the form from .A import B if that import is within an "init.py" file. In this case, the local symbol A is assigned the module object. In the case of from .A import A, that local symbol is then immediately overwritten with the value of the imported symbol. So technically, A in this context is both a module and a class. The hover provider currently uses the first declaration to display the type of a symbol. That works best in most cases, but it's not great in this case. I've added some special-case logic to handle this particular situation better.

Thanks for the bug report.
This is a bit of an edge case in Python. The symbol Class_B is both a module and a class in this file. That's because there's a special-case rule in the loader for imports of the form from .A import B if that import is within an "init.py" file. In this case, the local symbol A is assigned the module object. In the case of from .A import A, that local symbol is then immediately overwritten with the value of the imported symbol. So technically, A in this context is both a module and a class. The hover provider currently uses the first declaration to display the type of a symbol. That works best in most cases, but it's not great in this case. I've added some special-case logic to handle this particular situation better.

@erictraut Thanks. Looking forward to the fix.

@erictraut Thanks. Looking forward to the fix.

This issue has been fixed in version 2021.1.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202113-27-january-2021

This issue has been fixed in version 2021.1.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202113-27-january-2021


How unwatch directory non-recursively?

I'm implementing a file browser with multiple panes, where each one shows a flat listing of a particular directory. At startup, I'm setting up an FSWatcher with depth 0. On navigation, I unwatch the previous path, and add the new one.
This works, until I unwatch a directory which is an ancestor of a directory shown in a different pane. For example:
Pane 1 shows /a/b.
Pane 2 shows /a/b/c/d.
If Pane 1 now navigates to /a/b/c, I issue an unwatch for path /a/b and an add for path /a/b/c.
However, the unwatch seems to remove pane 2's watch on /a/b/c/d despite my FSWatcher being initialised with a depth of 0. I get no more events for anything happening in /a/b/c/d.
What is the proper way of doing this?

Do a check if b is a child of a and don’t unwatch it then

You mean if d is a child of b? I could do that, but then unnecessary watches will be hanging around, that the application doesn't need.
So unwatching with a depth of 0 is recursive by design?

we don't account for depth in unwatching right now


Release Google.Cloud.Ids.V1 version 2.3.0

Changes in this release:
New features

Change netstandard2.1 target to netstandard2.0 (commit 82bea85)

Created release for Google.Cloud.Ids.V1-2.3.0


Zero downtime rollouts with Istio

When doing a rolling update using Kubernetes deployments for our gateway service (not Istio's gateway) there are many failed requests (503 responses). I dug in deeper to find out the cause of this, and found out it has to do with the nature of Kubernetes being eventually consistent. After a pod is deleted, it takes some time to propagate this information to the kube-proxy agents running on nodes, and the load balancer continues to send new requests to the deleted pod. (Refer #43576)
The solution to above when just using Kubernetes is to add a preStop hook with a sleep duration enough to allow the above propagation. But, this solution doesn't work when using Istio. The reason is that as soon as Istio pilot determines that the pod was deleted, it removes the inbound listener for the service in the pod's envoy sidecar before Kubernetes is finished propagating the removal to the kube proxies (I verified this by logs), and envoy rejects the new requests right away.
I believe Istio should have something like preStop configuration to delay the removal of inbound listener from the envoy sidecar of the pod being deleted.
Version
1.0.0

This might be fixed by https://github.com/istio/istio/pull/11485

if "Envoy starts rejecting any new connections" right after it gets SIGTERM, then I don't think it would fix the above problem. The way to fix this would be to delay this operation by some period (and also keep the listener active), so that the new requests which are coming to the terminating pod because of the sync delay gets served. @liamawhite any thoughts?

This is designed to be used along with retries and an aggressive circuit breaking policy. Are these gateways accessed by things within the mesh?

No, this gateway service is at the front and accessed directly by Google Load Balancers.

This will be fixed when we move to CNI or Kube implements the sidecar proposal. In the meantime, would this work?

We tried that already. There's a problem with that approach - it does keep the envoy proxy from shutting down immediately at SIGTERM, but even if envoy is alive, the inbound listener is removed as soon as the pod endpoint is deleted from the service. And all the subsequent connections are rejected.  There's a push from pilot to the istio-proxy to delete the inbound listener when that pod is deleted, which is irrespective of the preStop hook.

@rshriram are we able to leave inbound listeners in place on pod shutdown?

@ayushpateria Hi. With istio 1.1-RC and addingpreStop hook, I no longer see 503s. Can you also verify?

Activity!

Bot fight: stale bot vs. istio-policy-bot

@howardjohn @liamawhite istio-policy-bot is the new way of disrespecting community.

@Bessonov regarding disrespecting community and bot fight, the automation in place is imperfect. I am semi-aware that @clarketm is working to improve the automation for the reasons stated.
Cheers
-steve

This is assumed fixed by https://github.com/istio/istio/pull/11485 and future further fix tracked in https://github.com/istio/istio/issues/11130. If you have specific 503 issues please open an issue with info + access logs. Thanks


Allow bundle name to contain hyphens and dots

The BUNDLE_ID would need to support "-" and "." in the PNAME pattern since some pipelines have these requirements.  I hope this is the only location where the change needs to be done.  Please advise.

Can one of the admins verify this patch?

Right!  Added the change, getting old ;-)

Jenkins, ok to test.


Expired tokens

Hi @PhilipGarnero!
Question: When we use the 'convert-token' view with a local token which is expired and a third party token that is still valid, the reply is an access token with a negative expire time. Should we check for this case in the IF statement and create and return new token automatically instead of replying with the old one with a negative time and wait for a following new refresh token request?
Return example of the 'convert-token' view: {"access_token":"bf463UvVNwOehbmt2xv4vCMGVbdy3R","token_type":"Bearer","expires_in":-476339,"refresh_token":"MV1wgHB6XKqfEmPDmtoHye4eN0fJvi","scope":"read write"}
With this response, my following action in my application would be to check the "expires_in" field and check if is still positive. Otherwise, the app must send a new request to refresh this token.

You're totally right.
I've fixed this and now a new token is created when it is expired or  is going to expire in the next minute.
Thanks for your contributions :+1:

A bit late, but I got to the same problem. What's the correct way to deal with it guys? So I have a Facebook user with correct token and an expired DRF token. So obviously any requests to an PI returns:
{"detail":"Invalid token."}

What should I do with expired tokens?

@tezro You can refresh your token using the refresh token you got at the same time as the access token. Checkout the readme, there is an example about it there.

@PhilipGarnero thanks for man, I missed that somehow. One small question, forgive me if I'm understanding it completely. How do I use the client_id and client_secret from the app that is added in Django? For example, we're doing an iOS app and of course can hardcode it and use for the time of development, and use it for requests. But what's gonna happen when we go live? Should I create the application on the production environment with the same values? Or if I'm making say Angular or any other SPA and need to refresh the token, where and how do I get the client_id and client_secret from? I can't just store them in cookies or append to all the urls or something? :)
Or I am completely off the track here and this is perfectly ok?

No, you are totally right about client id and client secret.
You can hard code it somewhere in your app, even though someone can find it by reverse engineering, they will not be able to do anything else than password grants with it so this is not a critical point.
However, you should ONLY DO THIS WITH resource owner password-based.
For other type of public applications, you must never put the client_secret hardcoded somewhere accessible by an user.
For a JS application you could use the implicit grant type for example.


include latest angular versions

also adding test to check for latest stable angular release

Thanks for adding the test!


add implicit reexport tracking

Going to merge this but turn the code off by default since I need to do more internal work to get it clean.


Adds react-router routes and Header component

[x] Adds basic react-routers routes for the web application (both private and public routes)
[x] Adds the header component
[x] Adds a global custom MUITheme with specific font families and palette colour themes
[x] Adds section titles (performances, events, critiques)

@Samudraneel yes I agree there is inconsistency, my apologies! IMO, I would prefer having it in one directory/file. The codebase initially has some components with specific style files in the specific folder, I can definitely create a new PR that fixes all these as well as ensures consistent naming convention which we can discuss during a Thursday meeting. Just wanted to get this out and running.

Ok I took a look at this code and everything seems to be fine. But I agree with Sam's suggestion that in the future we'll open a branch to clean up the inconsistency of where we define styles in the code.


dsc_resource scriptblock property type support

Description
PowerShell ScriptBlocks appear unsupported in dsc_resource as a property :soandso value
Chef Version
12.16.42
Platform Version
2012r2 x64 12.16.42
Replication Case
dsc_resource "disable-#{profile_name}-profile" do
  resource :script
  module_name 'PSDesiredStateConfiguration'
  property :getscript, "{@{ Result = -not ((Get-NetFirewallProfile -Name '#{profile_name}').Enabled) }}"
  property :setscript, "{Set-NetFirewallProfile -Name '#{profile_name}' -Enabled False -Verbose}"
  property :testscript, "{-not ((Get-NetFirewallProfile -Name '#{profile_name}').Enabled)}"
end

Client Output
Chef::Exceptions::PowershellCmdletException: Powershell Cmdlet failed: Invoke-DscResource : PowerShell DSC resource MSFT_ScriptResource  failed to
execute Test-TargetResource functionality with error message: Failure to get a
valid result from the execution of TestScript. The Test script should return
True or False.
At line:1 char:73
+ ... ge);exit 1};Invoke-DscResource -Method test -Name script -Property @{ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationMan
ager:String) [Invoke-DscResource], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure,Microsoft.Powe
rShell.DesiredStateConfiguration.Commands.InvokeDscResourceMethodCommand
cont.
Trying to use the https://msdn.microsoft.com/en-us/powershell/dsc/scriptresource 'script' resource which takes ScriptBlock parameters.
I don't see ScriptBlock as a supported type in chef/mixin/powershell_type_coercions, and I can't seem to get this to work, so I'm puzzled as to how to figure this out without ScriptBlock support.

I got this to work by dropping the {}'s around my script blocks.
So, appears that the strings are getting wrapped into scriptblocks during the ps call?
This wasn't obvious from the documentation on dsc_resource.
Perhaps an example that shows how to use resource :script would be useful.

@eedwardsdisco Confirming that this is a problem on a Windows Server 2016 endpoint as well. Thanks for providing a solution, and I concur with having an example of this in the documentation. In fact, more examples of real practical usage of DSC with Chef are needed. Maybe something up @smurawski 's alley?


Intermittent failure in CorruptConfigWithClassRuleIT

The 1.0.11-beta2 release build had a test failure in CorruptConfigWithClassRuleIT.  Given that the changes in this version modified how very early server failure is handled, I presume this was related.
Locally, this problem hasn't manifested and, if anything, the changes should have made the start-up more deterministic than it previously was.
Some investigation will have to be done to find this problem and determine why forcing the failure earlier didn't make this test more reliable.

Tried running the tests in a loop, locally, on the weekend:  no failures after 65 runs.  I even tried adding some strategy sleeps to introduce perturbation of the relative operation ordering in the hopes to observe a timing hole but still saw no issue (the waits are also now in places where it wasn't clear how these could cause problems).
Today's release build didn't have a problem.
Given that it wasn't clear how the failure was triggered (the output looked correct), it might turn out that this was an environmental red herring.  Leaving this open in case we see the problem again, in the future, but this is a puzzling one.


Add home key for verdaccio

"home" key is needed for ci testing now, otherwise testing will fail.

/assign @seanknox

/ok-to-test
/lgtm


Simplify Resolver error tests (IndexedModule error handling and test cleanup)

Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock
[ ] Style conformance: stylish-haskell

The excess commits are because I started a new branch while #541 is blocked by the CI server


Vlan networks fix, Isol Cpu Fix for numa and DPDK

Changed neutron_ovs_file to use VLAN provider networks

Updated the deprecated parameters for numa

Fixed CPU cores calculations for NUMA and OVS-DPDK

Log details for cpu and nics on numa nodes

This PR is good to go. Please review and merge.


[Blazor WASM] Error during initialization

I used the wasm32-wasi.sh script in the main libsodium repo to compile libsodium down to a libsodium.a file.  After referencing this as native file reference in my .csproj as
<ItemGroup>
    <NativeFileReference Include="Native\libsodium.a" />
</ItemGroup>

the reference seems to get picked up by my application running in the browser.  But the application is throwing the following error as soon as I try to invoke any methods from libsodium-core.
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: No native to managed transition for method 'void Sodium.SodiumCore:InternalError ()', missing [UnmanagedCallersOnly] attribute.
System.PlatformNotSupportedException: No native to managed transition for method 'void Sodium.SodiumCore:InternalError ()', missing [UnmanagedCallersOnly] attribute.
   at Sodium.SodiumCore.InitializeCore()
   at Sodium.GenericHash.Hash(Byte[] message, Byte[] key, Int32 bytes)

Without adding the native file reference, I get the following error:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not initialize platform-specific components. libsodium-core may not be supported on this platform. See https://github.com/ektrah/libsodium-core/blob/master/INSTALL.md for more information.
System.PlatformNotSupportedException: Could not initialize platform-specific components. libsodium-core may not be supported on this platform. See https://github.com/ektrah/libsodium-core/blob/master/INSTALL.md for more information.
 ---> System.DllNotFoundException: libsodium
   at Sodium.SodiumCore.InitializeCore()

I'll keep looking for ways to proceed on my end.

I propose to use https://github.com/jedisct1/libsodium/issues/1204 to track the general issue of using libsodium in Blazor WASM projects. Once we figure out how to get this to work, we can make the appropriate changes to libsodium-core. Until then I'll close this issue; I hope that's okay.


chore: Clean up imports

Closes https://github.com/iotaledger/firefly/issues/7830

could also update the AssetList.svelte?? 🙏
import { Filter } from '@components'

The problem here is that Filter is a component from packages/desktop and AssetList is from packages/shared. Currently, there is no way to import in a fancy way things from desktop into shared. Let me see what I can do