Fix VarDumping

To reproduce
composer.json
{
  "require": {
    "silex/silex": "v2.0.2"
  },
  "require-dev": {
    "symfony/var-dumper": "v3.1.2"
  }
}

index.php
<?php
require_once __DIR__.'/../vendor/autoload.php';

$app = new Silex\Application();
$app['debug'] = true;
$app->register(new Silex\Provider\VarDumperServiceProvider());

$app->get('/', function() {
    dump(false);
    return '1';
});

$app->run();

Output (in browser) does not contain the dump output, as it is outputted for CLI.
This only happens when $app['debug'] is set to true.
This PR addresses that in a way the service provider becomes more independent of the Application execution, which is in line with most providers being aware of a Container but being framework agnostic.
Other issue addressed is to allow for different output selection for the dump function.
Kindly note that this doesn't work yet when using dump in a template when using the TwigServiceProvider because DumpExtension changes the output for some reason.
(last thingy is a dead import removed)
cc @tiemevanveen as he ran into this issue before me

Thanks for reporting my problem! :+1: +1

ping @fabpot anything you want changed here?

Just to be sure to understand: right now, the dump output is always sent to STDERR, and you'd like it to go in HTTP content instead?
In Symfony, we have the same PHP_SAPI based default, but very soon, once a request comes in, we force HtmlDumper - and if a Command starts, we force CliDumper.

@nicolas-grekas correct, I would like the Vardumper to dump to HTTP output and format in HTML format when used in a controller (for example) and not only when used in Twig.
Silex doesn't has/supports Commands OOTB and most of the providers are framework agnostic (i.e. depend on the container only so the provider can be used without the Silex/Application and/or its middleware), I hope this PR makes the provider a better fit for that.

@nicolas-grekas can I bother you with a request to review again?

@nicolas-grekas Can you have a look at this PR? Thanks.

ping @nicolas-grekas :)

Failing test is not related, it has to do with changes in PHPUnit (5 vs. 6) in Travis env.

I'm closing my PR's I lost interest in as I do not want to leave the expression that I'll follow up on those.
Thanks to all the reviewers!


how to connect from other devices?

Hi, previously I was able to connect to x.x.x.x:5173 (where x.x.x.x is the IP address) from my iPad or from iPhone using script in package.json as shown below.
"dev": "vite --host"
I was trying to see if I can use this feature using Vite-express but failed to do so. Any idea?

solved it!
edited vite.config.ts file and edited the defineConfig to have server with my IP address in it.
export default defineConfig({
plugins: [react()],
server: {
host: '<IP_ADDRESS>',
},
})
I wonder if this would be the right approach..?

solved it!
edited vite.config.ts file and edited the defineConfig to have server with my IP address in it.
export default defineConfig({
plugins: [react()],
server: {
host: 'x.x.x.x',
},
})
I wonder if this would be the right approach..?

Hi @Richard-So, right now there isnt a way to make vite-express print local area network host as with --host flag on Vite, but you could run vite with that flag just to see your computer IP address and then run your vite-express app and just connect to that ip from your phone but of course you would need to use the correct port, so something like <IP_ADDRESS>:3000 and you should be good for now.
I definitely need to think of a way to make this show host available in vite-express.
Thanks a lot for your input!

After consideration, this feature is not possible with the current configuration of vite-express because it is possible to run your server listening process without vite-express listen method, but instead use bind method to set up evetything. What it means is that vite-express doesn't know what port or host are you listening on, So you cannot show such info as vite with --host does.
What is the most imortant here is that you can get your local IP address using whatever method there is (e.g. running Vite with the --host, or using ipconfig on Windows, etc.), and them use this address with the correct port number to connect to your vite-express instance.
The problem here is that I want vite-express to be as light and thin as it can be so that you can easily integrate it with most of the existing Express apps, and that means there isn't always enough infotmation to do such things as described in this issue.
As always, if you have any questions, feel free to continue to comment on this issue.
Thanks again for highlighting this issue!


Dev demo: mouse doesn't work after render mode was changed

For example, here.

Thanks, now fixed + upstream in matter-tools.


[TASK] Remove from_native from Poseidon

Since we decided not to have from_native and type Native in our traits (https://github.com/webb-tools/arkworks-gadgets/issues/153#issuecomment-1026907899), we should remove it from poseidon.
We should implement FieldHasherGadget directly on Poseidon.

Will stay to match the style of R1CS for now


The upgrade banner - that need to make dynamically depend on user plan

Make the upgrade banner dynamic, taking into consideration the user's plan status. If a user has already upgraded the system, the upgrade banner should be removed permanently.
3. Expected Behavior

Users who have upgraded should not see the upgrade banner.
Users who haven't upgraded or are on a free plan should see the upgrade banner.

Removing the banner for now


Add Python Black code formatting

Again per the Django developer survey, looks like I may as well incorporate Python Black code formatting.

Done in https://github.com/mawilson/survivor_draft/pull/156.


It is possible to use zen engine in a browser?

Hi @MrLYC ,
At the moment no, we have a long-term plan to support WASM as well as iOS and Android.


Migrate to pytest

nose is no longer maintained (and hasn't been in the last 3 years), this migrates testing to its successor pytest.
It's mostly sufficient to install pytest instead of nose for this to work: tests themselves don't have to be changed.
Also this removes abel/tests/run.py this was some old code by me to run tests, but it's really no longer necessary with pytest.

This makes sense to me! Let's merge after we merge #227


Could you teach me how to upload a file?

For example
https://docs.phalconphp.com/en/latest/reference/request.html#uploading-files
https://laravel.com/docs/5.1/requests#files

Add form with enctype to upload:
{{ form([false, 'enctype': 'multipart/form-data']) }}
    {{ file_field(['picture']) }}
    {{ button(['submit', 'Submit']) }}
{{ end_tag('form') }}

Before saving you can add validation:
$validation = new \Ice\Validation();
$validation->rules([
    'picture' => [
        'file' => [
            'allowEmpty' => true,
            'maxSize' => '8M',
            'allowedTypes' => ['image/jpeg', 'image/png'],
            // Resolution for images
            'minResolution' => '400x300',
            'maxResolution' => '8000x6000',
        ]
    ],
]);

$post = $this->request->getPost();
$files = $this->request->getFiles();

// You can validate _POST and _FILES at once:
$validation->validate(array_merge($post->getData(), $files->getData()));

if (!$validation->valid()) {
    return $validation->getMessages();
} else {

Then if validation pass:
if ($files->getPath('picture.error') === UPLOAD_ERR_OK) {
    $tmp = $files->getPath('picture.tmp_name');
    move_uploaded_file($tmp, '/destination');
}

I have just confirmed that a file was uploaded.
Thank you very much!!


Update systemd.md

Addressing feedback in #1997

Oh, sorry I didn't notice your ping. I don't think we should remove all instructions for configuring through systemd, because there are cases where people either prefer to use systemd, or systemd-specific options have to be overridden. Although we should direct users to the daemon.json configuration file, we do need a section explaining the use of systemd drop-in files (for example to override the default options set in the systemd unit file https://github.com/docker/docker/blob/17.04.x/contrib/init/systemd/docker.service.rpm#L14-L30)


Stop asking for extensions if feature avaiable in core SPIR-V

Migrating to unified grammar means we sometimes have two fields
for a certain feature: version and extensions. It means the feature
in question can be used either in SPIR-V of advanced-enough
versions or in any SPIR-V with with the specified extensions.
Validator now respects the above rules.

Rebased, squashed, and pushed into master as 43ca2112b8f


Migrate to AndroidX

upgrade graddle wrapper and gradle build tool version
change min sdk 9 -> 14
refactor build.gradle dependencies
migrate to androidX

I signed it!

I am writing this just to say that I loved your PR!


fix: user session with external login

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

GitHub release
v0.89.1

Your semantic-release bot :package::rocket:


Automated cherry pick of #5286: host register use default vpc

Cherry pick of #5286 on release/3.1.
#5286: host register use default vpc

/lgtm

/approve

/approve


support xhtml index file

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[x] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior
XHTML index file isn't loaded
Expected behavior
XHTML index file should be loaded as well as html one
Environment
Browser:

- [ ] Chrome (desktop) version XX
- [x] Firefox version 68.0b3 (64-bit)
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: 5.6.0
- Platform:  Linux
- Visual Studio Code: 1.34.0; a622c65b2c713c890fcf4fbf07cf34049d5fe758; x64;

Others

To clarify and expand on the problem.
(Firefox is my default browser).
All OK with a .html extended file:

Right click 'DebugDemo\play.html' > "Open with Live Server". (Note .html)
The file is opened at http://<IP_ADDRESS>:5500/DebugDemo/play.html
In the browser the page updates when VSC changes are saved, as expected.

Try with a .xhtml extended file:

Right click 'DebugDemo\play.xhtml' > "Open with Live Server". (Note .xhtml)
A browser page opens at http://<IP_ADDRESS>:5500/
In the browser click through the folder hierarchy to get to http://<IP_ADDRESS>:5500/DebugDemo/play.xhtml
In the browser the page updates when VSC changes are saved, as expected.

The desire is to make .xhtml files behave like .html files and eliminate the third step.
And this doesn't seem to be an issue of whether the base is index or not.


Broken Link

When deploying the workshop, the link found to source code does not work properly: https://github.com/openshift-labs/starter-guides/blob/ocp-4.8/workshop/content/nationalparks-java-databases.adoc#exercise-working-with-labels

The link to Deploying With OpenShift is also broken: https://github.com/openshift-labs/starter-guides/blob/ocp-4.8/workshop/content/common-further-resources.adoc


Initial Hubble dpkg install fails on Debian 9

When deploying hubble on Debian 9, I ran into an issue with the initial dpkg install. When run the first time, it fails. Running dpkg a second time results in the package being installed properly.
Download a clean deb from github:
root@hubble00:~# wget https://github.com/hubblestack/hubble/releases/download/v2.4.7/hubblestack-2.4.7-1.deb9.amd64.deb

Running dpkg the first time:
root@hubble00:~# dpkg --install hubblestack-2.4.7-1.deb9.amd64.deb
Selecting previously unselected package hubblestack.
(Reading database ... 34574 files and directories currently installed.)
Preparing to unpack hubblestack-2.4.7-1.deb9.amd64.deb ...
Unpacking hubblestack (2.4.7-1) ...
Setting up hubblestack (2.4.7-1) ...
Failed to start hubble.service: Unit hubble.service not found.
dpkg: error processing package hubblestack (--install):
 subprocess installed post-installation script returned error exit status 5
Processing triggers for systemd (232-25+deb9u8) ...
Errors were encountered while processing:
 hubblestack

Then when run a second time it installs:
root@hubble00:~# dpkg --install hubblestack-2.4.7-1.deb9.amd64.deb
(Reading database ... 39529 files and directories currently installed.)
Preparing to unpack hubblestack-2.4.7-1.deb9.amd64.deb ...
Unpacking hubblestack (2.4.7-1) over (2.4.7-1) ...
Setting up hubblestack (2.4.7-1) ...
Processing triggers for systemd (232-25+deb9u8) ...

This happens on:
root@hubble00:~# cat /etc/debian_version
9.7
root@hubble00:~# uname -a
Linux hubble00 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

Regards,
Brandon

Hmm. It looks like it installed, but something is wrong with the systemd unit file. I wonder why it worked the second time? We'll look into this.

https://jira.corp.adobe.com/browse/CSTTEAM-44468

The same thing happens on Ubuntu 18.04


stuck in loading user data loop

hey sorry i cant take a screen shot or anything but the install went file but after rebooting from the installer it load up and dose its own verifying install then loading user data but it never loads anything after that it just keeps looping verifying install and loading user data

Can you switch to desktop and see if the steam client can start and update in that situation?

When attempting to switch to desktop mode, I encountered an error message that said 'No such file or directory' and the system kept looping back to the previous state.

I managed to load desktop mode after some effort, including repeating the command multiple times. Finally, I was successful, and I can confirm that Steam is working correctly


Bad url in upload modal

The text of 'supported formats' the link should be http://docs.cartodb.com/cartodb-editor.html#supported-file-formats

Related to #4482 , @javierarce could you take care of that one if you get to this one first?

Sure, I'll take it.

I'm closing this ticket since I took care of that in #4482.


T17812 sliced geometry init fix [WIP]

Closing this. Some commits have been taken from this PR, some others became obsolete after other geometry fixes. The original problem (half voxel shift of corners along renderer plane normal) is still present, but this PR cannot be applied any more.


AIP-6643 kfp wait to argo wait

Works for me, only concern is this is a breaking change so not clear to me if we want to deprecate the "--wait-for-completion" flag. Also sounds like keeping the --wait-timeout and applying it to the Argo approach would make sense

Thanks, added --wait-timeout to --argo-wait with little work!


Missing dependency: iconv-lite

Issue Type: Bug
I checkout my repo. Then right click on it and open "Git Bash here" then run ./update-ext.sh
after that this error popup and source control disappeared
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

./update-ext.sh :
apply externals
svn propset svn:externals -F sources.svnext .
update to retrieve
svn update

I just got the same issue here.
1.- open project after update.
2.- go to the Source-Control tab on the side bar
No files in there, got a popup instead.
got popup:
missing dependency: iconv-lite
Source: SVN (Extension)
Removing and then reinstalling the extension does not fix it.

I started having the same problem right now. The SVN extension is not working because of this.
I tried to reinstall the svn extension but it does not fix it.

I also tried other svn extensions, most of them a fork of johnstonecode.svn-scm.
and got the same result.
the second most popular svn plugin is XXXX
if i install xxxx i also get:
Missing dependency: jschardet

After installing and removing several times those extensions, re-starting visual code as required at some point the problem seems to go away.  I can now use the extension without issues.

Same as @ycdtosa , after some restarts the problem went away. I cannot find what fixed the problem because the version of vscode and the svn pluguin is the same as before and no configuration was changed.


Build.SourceBranch	in case of tag trigger

what will be the Build.SourceBranch in case of a pipeline triggered by a tag?

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

ID: 9ffebdc8-521c-44b5-cde4-4abdc1bd6f18
Version Independent ID: dc0effda-6d93-62aa-64c5-4e6f283b0826
Content: Predefined variables - Azure Pipelines
Content Source: docs/pipelines/build/variables.md
Product: devops
Technology: devops-cicd-build
GitHub Login: @juliakm
Microsoft Alias: jukullam

@obeyda -- Obeyda, thank you for your question.  You may find answers here:

Azure DevOps Support Bot
Azure DevOps on Stack Overflow

@juliakm -- Julia, please look into this issue.

@obeyda The value of  Build.SourceBranch will be refs/tags/your-tag-name. Thanks for flagging this. I'll update the docs shortly.


chore: Ignore unused variables

Which issue does this PR close?
Address scalafix identified errors
Rationale for this change
This ignore unused variables
What changes are included in this PR?
How are these changes tested?
Local build and scalafix scan

Merged. Thanks.


Add resource name in dashboard overview findings

New feature motivation
Currently the resource name is not visible in the HTML table when using prowler dashboard:

This makes it hard to identify which resources needs to be fixed.
Solution Proposed
Add a column in the table with the resource name of add it in the details.
Describe alternatives you've considered
The resource name is visible when downloading the table as a CSV though.
Additional context
No response

Hi @Techbrunch, I will discuss this feature internally with the team and I will reach out to you soon. Thanks!

Hey! @Techbrunch  we are working on Prowler 5, it will have new UI, findings database, api... So we are not doing any new fix for local dashboards due to new version (it's expected that they will be replaced by the new UI). Btw you can open a PR if you want to make any improvement.

Hi @Techbrunch ,
We’ve just released the new Prowler App, but we decided not to include the feature you mentioned for several reasons:

In the near future, a finding in Prowler will have multiple associated resources, as each finding will include more context (e.g., an EC2 instance with a misconfigured attached VPC). Displaying all the resource names of a finding directly in the table would make it hard to read.

We don’t believe it’s a good idea to display the resource name of the finding directly in the table at first glance, as this value is part of the finding’s detailed information.

Let me know what you think about this, and feel free to try out the new Prowler App (if you haven’t already). Thanks!


Added Insertion sort

i will be giving the insertion sort code

assign it to me

Hey i am in nit trichy. I can very well work on this. please assign it to me @AdityaRoy101

assign it to me

assign it to me


Default guide for Importance gives non-zero log_weight

The default guide in Importance blocks all sites (and not just those observed). This leads to the guide_trace being empty (except for the input and return values). As a result, no samples are reused when replayed on the model and the guide_trace.log_pdf() evaluates to 0.0. The log_weight is then equal to the model_trace.log_pdf() (which is also evaluated on different samples), which I believe is unintended and incorrect.
The program below illustrates this for a simple univariate Gaussian, where my proposal and target distribution are identical and I would expect the log of the weights to be 0.0. The latter is only the case when the sites are explicitly exposed.
import torch
from torch.autograd import Variable

import pyro
from pyro import distributions as dist
from pyro import infer
from pyro import poutine

def gaussian():
    return pyro.sample('x', dist.normal,
                       Variable(torch.Tensor([0.0])),
                       Variable(torch.Tensor([1.0])))

# Using `Importance` with the default `guide`, the `log_weight` is equal to the
# `model_trace.log_pdf()`. That is, the `guide_trace.log_pdf()` (evaluated
# internally) is incorrectly `0.0`.
print('importance_default_guide:')
importance_default_guide = infer.Importance(gaussian, num_samples=10)
for model_trace, log_weight in importance_default_guide._traces():
    model_trace_log_pdf = model_trace.log_pdf()
    are_equal = log_weight.data[0] == model_trace_log_pdf.data[0]
    print(log_weight.data[0], are_equal)

# However, setting the `guide` to expose `x` ensures that it is replayed so
# that the `log_weight` is exactly zero for each sample.
print('importance_exposed_guide:')
importance_exposed_guide = infer.Importance(
    gaussian,
    guide=poutine.block(gaussian, expose=['x']),
    num_samples=10)
for model_trace, log_weight in importance_exposed_guide._traces():
    print(log_weight.data[0])

importance_default_guide:
-0.9368391633033752 True
-1.3421428203582764 True
-0.9189755320549011 True
-2.1423826217651367 True
-2.301940679550171 True
-1.142196774482727 True
-0.9449963569641113 True
-2.7146053314208984 True
-3.420013904571533 True
-1.7994171380996704 True
importance_exposed_guide:
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0

@rstebbing Thanks for the clear reproducible example!
@eb8680 Can you confirm that this is a bug and not intended behavior?

Thanks @rstebbing, this seems like an issue with BlockPoutine.  I'll push a fix shortly.


Ability to choose default channel

Is your feature request related to a problem? Please describe.
My feature request is in regards to the inability to choose the default channel when you have more than one associated with a LBRY wallet. In my case this is because I have two channels, a personal one as well as one for an open source project I manage. I have attached some screenshots to illustrate the issue.
Default home view with no "default" channel selects avatar of most recent one

Top navigation where "Channels" item is accessible.

My channels page

Describe the solution you'd like
I would like to have an option exposed via the Your channels page that allows you to set the default channel used for actions, such as:

Commenting
Uploading content
Engaging in other actions within LBRY e.g. following.

It would additionally update the top navigation avatar for the channel to use the one preferred / default rather than seemingly the most recent one you created.
A clear and concise description of what you want to happen.
Describe alternatives you've considered
No alternatives have been considered. I'm welcome to suggestions though.

Thanks for the feature request Josh. We've discussed this in the past and definitely want to do it. Right now the app remembers the last channel you used in various screens. To change the account image, select the desired channel when you comment on something and it should update.

@tzarebczan Thanks for the alternative solution proposed for updating the account image at the very least :+1: Hopefully will see improvements to multi-channel wallets sometime in the future! Thanks for the quick response.


[NOT MERGE] Remove broken BellmanFord tests.

Do not merge yet, it's draft for fix travis CI.

Hi @aalhour, did you remove run tests from travis CI?
Related to #79 i found problem with that mostly because this test use Console things like https://github.com/aalhour/C-Sharp-Algorithms/pull/99/files#diff-189620fc96fd29256f1e58ddb348ecf2L211 after remove that my local run dotnet test completed successfully (some test failed but problem that  is mentioned  #79 not appear), there are some other test that use Console.Read but they fail before they reach that line so they shouldn't be problem right now.
I want to check how Travis reacts to these changes, there is any opposition to the restoration that travis will run the "dotnet test ..." ?

As long as the tests pass on Travis CI, I am good with the dotnet test command.


Question: why is using a property inside a style object not updating my component?

Hey,
I've been playing around with solid and here is something I don't understand. In the code below, props.progress is a state value passed from above. When that value changes, it is updated everywhere except inside style={{ width: props.progress }}. I don't understand why it's not updating there.
function Button(props: ButtonOptions) {
  const disabledValue = Boolean(props.loading || props.disabled)

  return (
    <button
      class='Button'
      disabled={disabledValue}
    >
      {props.children} {props.progress}
      <Show when={typeof props.progress === 'number'}>
        <span
          class='Button__progress'
          style={{ width: props.progress }}
          width={props.progress}
        />
      </Show>
    </button>
  )
}

Thanks

After playing a bit with the example, it seems that adding + 'px' so that the code is style={{ width: props.progress + 'px' }} makes the component update when props.progress changes. But I still don't understand why.

Oh ok, I was just about to look into this. Yeah, I probably should make a note more of the consequence of the approach we are taking here. Solid compiles to el.style.setProperty which is the most performant way to set a style property. This allows some cool things like setting CSS vars etc, but it means that the styles need to resemble the style string.
See https://github.com/ryansolid/solid/issues/143 for more details.

Oh ok, so it is updating but setProperty ignores it because a number (except zero) without units isn't valid, right?
If so, it would be good to note it in the "Styling" or "Comparison with other libraries" documents, because react & copycats usually accept numbers as meaning number + 'px'. Is there any chance that this kind of thing can be handled by the compiler eventually?

Yeah Preact definitely does do the transformation. I don't think Inferno does. It could be checked at runtime but not at compile time. We can't tell if the px is there or not because the user passes a variable that could contain anything (including the px) so I can't just assume it's not there or there. No reasonable analysis would work for all cases consistently.
The Preact approach seems to use a matching pattern with a regex. It's sort of unfortunate overhead that would have to paid by all. It is worth consideration but this sort of thing is extra overhead just to bring this in line.

Right :/ Sucks that it's not possible to use type information to solve those kind of issues, but I certainly wouldn't want a regex in there.
You can close the issue unless you wanna keep it as a reminder to update the docs.


[BUG] VM management

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to 'Virtual Machines'

Expected behavior

If the vm has two network interface, the 'IP Address' just display the first.

The filter can not search the IP address

Support bundle

Environment:

Harvester ISO version: 1.0.0

Additional context
Add any other context about the problem here.

@tuijs Test this issue in v1.0.2
UI will show all IPs in the IP Address

Seems like a UI filtering issue, @WuJun2016 @n313893254 wondering if this is a known issue or requires some proper fix maybe in v1.1.0.


Does it support vim-plug? I can't get it to work

Hello, I'm having difficulties with this plugin, the installation is fine, the plugin is installed, but nothing works:
the syntax is not highlighted and :help love.txt produces an error.
Any idea? Honestly I don't think it's related to vim-plug, maybe is it because I'm using neovim instead of vim?

I've never used neovim or vim-plug, so it's very possible those could be the issues. However, after looking at vim-plug some, I have a feeling that vim-love-docs is not being "installed" correctly. By default, I have all of the content responsible for highlighting, help docs, etc. .gitignored because they cause messy and cluttered diffs.
However, I have another branch which does include all the outputs which you should be able to use. Based on the documentation, try this (untested):
Plug 'davisdude/vim-love-docs', { 'branch': 'build' }

I sometimes forget to update that branch, so if you want to be sure you're running the latest and greatest, you could also do this instead (also untested):
Plug 'davisdude/vim-love-docs', { 'do': './src/gen.sh' }

Please let me know if this takes care of it.

Solved using Plug 'davisdude/vim-love-docs', { 'branch': 'build' }
Thank you


PureScript 0.9 Compatibility

Hi! I love your library for working with Redux in a more idiomatic way. I've updated it to support PureScript 0.9. Let me know if you have any questions.
Thanks!

Actually - let me cancel this PR and squash these. Thanks!


Enable the ability to do a bulk import of records into a custom component.

Tool version
V3.0.0
Is your feature request related to a problem? Please describe.
I am trying to do a bulk import of values for a custom component.
Describe the solution you'd like
Can we have the ability to programmatically do a bulk import of values into a custom component?
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hello @blaqvikin,
Thank you for your feedback. We have added this functionality to our backlog and will evaluate adding it in a future release.

Bryan

Added to backlog. Closing issue.


bash completion!

Of course :) would make the command line a lot more comfortable, with automatic command/option completion and also completion on mirror/snapshot/repo-names.
By the way, I was a bit surprised to see long options introduced with a single-dash. Interesting touch.

Long options with single dash is something that comes from Go standard library.
As for bash completion, it is available already in Debian package, or you can use this repo: https://github.com/aptly-dev/aptly-bash-completion

Awesome! Just for reference, here are the steps to get this working in a vanilla ubuntu docker image:
RUN wget https://github.com/aptly-dev/aptly-bash-completion/raw/master/aptly -O /etc/bash_completion.d/aptly
RUN apt-get update && apt-get install -y bash-completion
RUN echo ". /etc/bash_completion" >> /root/.bashrc

Thanks a lot for your work, I appreciate it!


Docs Development

Description
Improve Documentations
Type of change

[x] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] New and existing unit tests pass locally with my changes

What are the changes I have done in this pull request (PR #28):

Improve documents of data structures:

Add data structure intros
Add visualization images
Add complexities table
And some minor fixes

Improve documents of algorithms

add visualization images
add caption for explaining how algos work


search: communities search by title with special characters causes problems

The search by title is not parsing unicode characters properly (and failing).
This works:
https://zenodo.org/communities/?p=Image+Knowledge+Gestaltung.+An+Interdisciplinary+Laboratory%2C+Cluster+of+Excellence+at+the+Humboldt-Universit
but adding extra character "ä" to the search yields not results:
https://zenodo.org/communities/?p=Image+Knowledge+Gestaltung.+An+Interdisciplinary+Laboratory%2C+Cluster+of+Excellence+at+the+Humboldt-Universitä

Closing because of module refactoring


Seeking not accurate on FLAC files with WMFDecoder

On Windows, it seems that FLAC files are opened with WMFDEcoder instead of FFMPEG for some reason.
Unfortunately with this decoder, seeking is not accurate. For instance, if a FLAC file is 336 seconds long, and I seek to 335, then the audio will still play for several seconds, hence exceeding the actual playtime of the song (and indicating that it actually seeked to a different point in the audio file). Notably, the reported time by player.time has the same inaccuracy and will also report times longer than the actual runtime of the file.
On MacOS, where FLAC files are decoded with FFMPEG, the problem is not present.
How can I make pyglet on Windows not use WMFDecoder, but FFMPEG for FLAC files instead?

The short answer is that you can manually make an instance of any Decoder, and then pass it in when loading:
src = media.load(...., decoder=decoder_instance)

The doc string here has more information:
https://github.com/pyglet/pyglet/blob/e6372c9312970b032fcf93266381fc11f66bb79d/pyglet/media/__init__.py#L102
The long answer is that streaming decoding doesn't guarantee accuracy with seeking. As you've seen some decoders are more accurate than others, but if you need accurate seeking you should use StaticSources. Passing streaming=False in while loading will do this.
The WMFDecoder is available on newer consumer versions of Windows, and allows playback of some popular compressed audio formats without needing FFmpeg.

Thanks for the explanation @benmoran56 , but could you maybe give me a more specific pointer to how this needs to be done? I assumed I could just do:
pyglet.media.load(track.name, file=track, decoder=pyglet.media.codecs.ffmpeg.FFmpegDecoder()))

But this leads to the following error:
  File "C:\Users\flokra\Documents\GitHub\ZAP\env\lib\site-packages\pyglet\media\__init__.py", line 125, in load
    return decoder.decode(file, filename, streaming)
  File "C:\Users\flokra\Documents\GitHub\ZAP\env\lib\site-packages\pyglet\media\codecs\ffmpeg.py", line 1050, in decode
    return FFmpegSource(filename, file)
  File "C:\Users\flokra\Documents\GitHub\ZAP\env\lib\site-packages\pyglet\media\codecs\ffmpeg.py", line 468, in __init__
    self._file = ffmpeg_open_filename(asbytes_filename(filename))
  File "C:\Users\flokra\Documents\GitHub\ZAP\env\lib\site-packages\pyglet\media\codecs\ffmpeg.py", line 140, in ffmpeg_open_filename
    raise FFmpegException('avformat_open_input in ffmpeg_open_filename returned an error opening file '
pyglet.media.codecs.ffmpeg.FFmpegException: avformat_open_input in ffmpeg_open_filename returned an error opening file C:\Users\flokra\AppDat
a\Local\Temp\tmps02ltli0 Error code: -13

Yeah, so this seems to be a Pyglet problem. To be more precise, pyglet.media.codecs.ffmpeg.py in line 464 creates a NamedTemproraryFile. The file is then left open, and the filename is then given (via  asbytes_filename) to ffmpeg_open_filename in line 468, which will try to open and read from that file again. According to the official Python documentation, this does not work on Windows: "Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later)." (https://docs.python.org/3.8/library/tempfile.html#tempfile.NamedTemporaryFile). The solution is to instantiate NamedTemporaryFile with the delete=False parameter in line 464, and then close it after writing to it (and delete the file after closing it in the __del__ method).

I reported this as an additional issue (#400) and created a pull request that should fix it (#401).

This is a 2 bug report. Seek accuracy and opening memory files with ffmpeg.
As stated, the accuracy varies simply depending on how big of the buffers returned by the decoder and what is requested by the driver. You could try forcing a DirectSound audio driver for Windows to see if you get better seeking accuracy.
As far as ffmpeg memory loading, I did get his working, but the accuracy is just as inaccurate. But if you need the functionality you can try messing with my branch: https://github.com/caffeinepills/pyglet/tree/ffmpeg_memory


Fixes for issue #7509

Originally, we were only selecting iframes, which were in webviews. However, this made selecting webviews inaccessible because we were not selecting the iframes. As a result, I modified the selection method to select both iframes and webviews and put those tags in a single collection to enumerate through.

@pi1024e Did you maybe reference the wrong issue?
@mjbvz Is this maybe related to our discussion last month? Could this fix it?

Is this the same as https://github.com/microsoft/vscode/pull/77121?

Yes this is! I just realized, except you forgot to check for iframe and web view again in another section of code, so I did that for better state management. I just now have to wait for approval!

@mjbvz Can you also check this one out?


Update Posts “license”

Automatically generated by Netlify CMS

👷 Deploy Preview for compassionate-almeida-a2aa5b processing.
🔨 Explore the source changes: 2c5efd003b2e5af08cd4c3c6e8af6c99db8af458
🔍 Inspect the deploy log: https://app.netlify.com/sites/compassionate-almeida-a2aa5b/deploys/61a91f6cfe239b00078f3c30


feat(users): use setUpUserProfile if there is a chance it is a new user

Use setUpUserProfile for any function that interacts with the userProfile which could be from a new user.

Pull Request Test Coverage Report for Build 655

0 of 10 (0.0%) changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 43.372%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/resources/Disputes.js
0
1
0.0%

src/resources/Notifications.js
0
2
0.0%

src/utils/StoreProviderWrapper.js
0
7
0.0%

Totals

Change from base Build 652:
-0.1%

Covered Lines:
421

Relevant Lines:
847

💛  - Coveralls


It should be stopped when the installation is wrong, and it will not stop halfway

It should be stopped when the installation is wrong, and it will not stop halfway

This issue has been fixed and currently the shell installation will stop running with an error


carousel/slide width not updating on page change

Describe the bug
When changing pages the slide is pushed over about 1/3 of a slide and does not readjust when running carouselRef.updateSlideWidth() or restartCarousel()
Expected behavior
Carousel width to update on page visit
Screenshots
Current problem:

How it should look:

Desktop (please complete the following information):

OS: [iOS]
Browser [chrome]
Version [113]

Additional context
I have looked through the other issues but none work for me, i am on Nuxt ^3.3.3 and using vue3-carousel ^0.3.1

Hey Nico, in order to help you more could you share with me a working example that regenerates the issue?

Just wanted to share some new information, the nested carousel is actually not working because the parent carousel is not adjusting to the correct width of the viewport. I am running both updateSlideWith and restartCarousel methods on @init and it is still not working.

Hey @ismail9k , thanks for taking the time to look into this! I agree there's a lot going on, it's not my own codebase so tracking down all the styling has been difficult. Ive found a temporary fix by reassigning the slide with to 33% of the window for the carousel of 3 and using a different option for anything else. I appreciate your response and help!


build(maven): remove pluginManagement from pom.xml

pom.xml has <pluginManagement> but we have no parent/child pom. So I guess we can remove it for simplifying pom.xml.
I compared the JAR files generated by mvn clean package -P release with the current master branch and this PR branch, and verified that they were essentially the same: Only pom.xml and the timestamps in .html files were different.

Then, why not all the plugins are declared in <pluginManagement>?
Right now, some plugins are in <pluginManagement> and the others are not.

It is also a bad practice ! I'd should declare all plugins in <pluginManagement /> section !

For example, in MRJar, maven-release-plugin is not in <pluginManagement>. It's against the best practice?

Yes, it is a bad practice. Actually, my release profile is always copied/pasted from another project, as using a parent pom is not always the best thing (mainly when you work in various organizations).
maven-release-plugin and maven-enforcer-plugin are used only in one place, and there is no chance they will be used elsewhere. maven-javadoc-plugin could be used in other profiles, and should be declared and configured in pluginManagement.

Likewise, no plugin is used in multiple places in XSpec pom.xml. So I thought it would be simpler to remove <pluginManagement> in this PR for the meantime. If any plugin is used in multiple places in the future, we will definitely put it in <pluginManagement>. What do you think?

If any plugin is used in multiple places in the future, we will definitely put it in <pluginManagement>.

Added a note for it: e9c9e00d51174831f8c7c5ebb4b06e3e326bcb56

Ok for me.


Added Strassen's Algorithm implementation in Java

Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes.
Description
(Write your answer here.)
Strassen's Algorithm is an algorithm for Matrix multiplication. It is faster(optimal) than the standard matrix multiplication algorithm and is useful in practice for large matrices.
Checklist

[✔ ] I've read the contribution guidelines.
[✔ ] I've checked the issue list before deciding what to submit.
[ ✔] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)
#2330

@HarshCasper @iamrajiv Can u pls review my PR?


Concurrent downstream

Description
based on metadata property: concurrencyMode call subscriber' handler either concurrently or one message at a time (sequentially, as it is before this PR)
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #1650
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[X] Code compiles correctly
[X] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

Thanks for the contribution. Please open a docs issue and a PR to make the necessary docs change to document this metadata field, then link the PR here.
Once you have opened a PR against docs we can merge this.

Thanks for the contribution. Please open a docs issue and a PR to make the necessary docs change to document this metadata field, then link the PR here.
Once you have opened a PR against docs we can merge this.

Sure. The PR of the docs should be for v1.7?

@amimimor please make the PR against docs v1.8 branch because this change will not appear in Dapr until the v1.8.0 release. Thanks.

@amimimor please make the PR against docs v1.8 branch because this change will not appear in Dapr until the v1.8.0 release. Thanks.

done. see: https://github.com/dapr/docs/issues/2354 and its associated PR

hi @berndverst, we have internally discussed this feature and I want to further improve the implementation so I please don't merge this PR yet. I can close this PR if you think it is more appropriate, rather than wait for my further changes to be introduced. Waiting for your call on this.

Docs PRs and Release notes issue look good. Merging this.


The calculation using  sokalmichener with normalized weight and unnormalized weight are different

<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>
I have tried to use sokalmichener with the weight option, but I got different results when using unnormalized weight and normalized weight.
Reproducing code example:
<<A short code example that reproduces the problem. It should be self-contained, i.e., possible to run as-is via 'python myproblem.py'>>

>>> from scipy.spatial import distance
>>> a1=[False, False, True, True, True, False, False, True, True, True, True, True, True, False, True, False, False, False, True, True]
>>> a2=[True, True, True, False, False, True, True, True, False, True, True, True, True, True, False, False, False, True, True, True]
>>> w = [0.05]*20
>>> distance.sokalmichener(a2,a1,w)
0.975609756097561
>>> w = [0.1]*20
>>> distance.sokalmichener(a2,a1,w)
0.9523809523809523
>>> w = [1]*20
>>> distance.sokalmichener(a2,a1,w)
0.6666666666666666
>>> w = [2]*20
>>> distance.sokalmichener(a2,a1,w)
0.5

Error message:
<<Full error message, if any (starting from line Traceback: ...)>>

Scipy/Numpy/Python version information:
<<Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'>>

Scipy 1.1.0

This also happened to scipy.spatial.distance.canberra

As described in the original PR
Not all metrics support all the scale-free invariance property of weights.


Team roles are not reflected in user profile.

Affected module
UI/backend
Describe the bug
When assigned any role to a team. The same is not reflected for the users in the user profile of that team.
To Reproduce

Add user to any team
Assign team any role
Check the user profile of that team member, the role is not reflected.

Expected behavior
The role should reflect for the team members
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: [e.g. 0.8]
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
NA

@sureshms adding this to keep track of it.
/api/v1/users/{id|name}/roles should give us the user roles and their inherited roles based on system level default and team they belong to

@parthp2107 @harshach is this still and issue?

@parthp2107 @harshach is this still an issue? Can we try this in the latest main branch?

@sureshms I am able to reproduce this issue on the main branch.


Index discriminator columns,  support for virtual attributes/fields ..

Hello,
Is there a way to add discriminator columns into schema index ? I've tried to add it as a virtual attribute (without @ ORM\Column annotation) but with "getter" set to a public method and it not working although it shows in solr:schema:show command as "_document_type_s" ..
     /**
     * @Solr\Field(type="string", name="type", getter="getDocumentType")
     *
     * @var String
     */
    private $documentType;

I checked the closed pull request and found an implementation for virtual fields by @zquintana  but it seems missed in master branch
Thanks

This bundle is designed for Doctrine Entities. Other datasources are not supported, but you can implement your own stuff and use the underlying Solarium Lib to index documents.

Source

Hi @Koalabaerchen ,
Thanks for the info, but regarding the discriminator field it is totally a Doctrine entity related, anyway, I've found a simple way to put the attribute with its value in the entity class itself,
Thanks,

@jadelrab if you are looking for this feature, I've forked this project and added some additional goodies for a recent project that had additional requirements. https://github.com/zquintana/SunSearchBundle.


Gray buttons have white text in dark mode

Please check the pencil + select + back buttons

Hey I've checked it on my devices and ask ppl in the discord group for the issues. And I couldn't reproduce the problem.
It might be the same problem occurred by this dude. Here is the link.
https://t.me/daijishou/164
And here is mine dark theme.

Another ppl has the same problem. Caused by MIUI.
https://t.me/daijishou/1376


attention mechanism in the ensemble transformer

Hi Tobias @tobifinn - I'm trying to understand your implementation of the ensemble attention mechanism. If I'm not mistaken, EnsConv2D flattens the leading tensor dimensions (bs, ens) then the SelfAttentionModule attends to the (partially) flattened tensor with shape (bs * ens, n_channels, h, w)? The paper seems to indicate that K, w_i etc. are all dependent on the ensemble dimension - which would seem to preclude the use of a different ensemble size during inference. The code suggests otherwise, though.

Thanks. I think I'm starting to get the idea, but please bear w/ me as I try to unpack all of this. My question was: K, w_i etc. are all dependent on the ensemble size, then how can we run inference using a smaller ensemble? Won't there be a shape mismatch between, say, K[bs, ens_training, ens_training] and K[bs, ens_inference, ens_inference]? I know this isn't a problem b/c i was able to run inference with a smaller input ensemble. I'm guessing the reason is that K and w_i etc. aren't themselves learnt during training, but rather they are the outputs of ensemble-size-agnostic nnet modules? e.g. K is the output of _construct_branch_layer: https://github.com/tobifinn/ensemble_transformer/blob/9b31f193048a31efd6aacb759e8a8b4a28734e6c/ens_transformer/models/transformer_net.py#L52
Is this correct?


Cannot create array using Integer as dimension

BeanShell will not unbox and widen Integer objects when instantiating arrays.  For example this will fail:
i = Integer.valueOf(3);
a = new int[i];

This is allowed in Java, and should be also allowed in BeanShell.
I have a trivial fix for this in my fork but I cannot push it in because of conflicts.

It looks like 3313d2b has everything needed for this without any dependencies on the operator preferences issue, could we not look at that separately?
Is Byte, Short and Int the only boxed types we should consider?  Won't it be easier to test for instance of Number or not instance of Primitive perhaps, to allow for all types. Or am I missing something?

Yes, this is a stand alone change that does not depend on anything else.
The maximum size of an array is 2^31-1, so Java only allows int values.  byte and short will be widened to an int.  long will throw an error because narrowing might lose precision.  float and double are not integral valued and are a code smell.  it would be a better idea to throw a syntax error than silently truncate.  If you want to use a long, float or double then explicitly cast to an int.
The same logic applies to the primitive case... should throw an error on long, float or double.  Not trying to make a nanny programming model, but using these data types is a stinky code smell and that probably indicates something is wrong.
Sometimes having a few additional guards is a better idea than letting people run with scissors.

Yes, this is a stand alone change that does not depend on anything else.

Good, so we can get it to a PR, awesome.

The maximum size of an array is 2^31-1, so Java only allows int values.

Correct and we are giving it Number.intValue() so that is perfect, regardless of the type of number, no need to cast.

[snip ... widened ...] long will throw an error because narrowing might lose precision [ snip ... not an intValue]

The reason for the issue is that Integer throws an error, right? If we don't include Long, or the any of the others, it will throw an error, just like Integer now does.
Since we are supporting auto widening it may very well happen that your int is already a long, and if you are using a Float or Double then you know the risk of precision. Bottom line, as long as your value is less than Integer.MAX_VALUE it works as expected, and won't generate an error.

Sometimes having a few additional guards is a better idea than letting people run with scissors.

We can still run valid java just like java does. That is our first goal.
After that there are many kewl scissors to run around with. =)
If we are to hide scissors it will fall under strict mode implementation, meaning additional checks after we allowed everything. Can't remember but I have a feeling tests and fixes for strict mode is currently incomplete. You can add it if you want but I would just keep it simple for now, perhaps strict mode is not even a priority anymore.

I'm not seeing a PR to fold this in.

I'm not seeing a PR to fold this in.

Open pull request #658 thanx @jimjag

Final note on allowing the other boxed types, this will conform to the existing Primitive assignment which also allows any primitive as array index.

Found the BeanShell policy statement #501 RE: BeanShell doesn't fail like java
Excerpt:

The fact of the matter is BeanShell is not the same as java. For starters there is no compiler so no compile time warnings or type parameter assignments. Syntax problems begets parser errors which has no similarity or comparison to any faults reported in java. Even when BeanShell produces similar runtime exceptions to those found in java, these should be considered as being for informational purposes only. BeanShell does not make any attempt to emulate the way java fails. In some cases BeanShell may even choose not to fail by design. Just because it fails in java does not mean it is expected to fail in BeanShell. It is the developers responsibility to ensure that the code doesn't fail and BeanShell will attempt to work like it does in java.

Sometimes having a few additional guards is a better idea than letting people run with scissors.

My sincere apologies, time makes memory foggy, and lots of time has passed again. The uptake time is going to be significant!
I just re-read #71 and realized we already have overflow protection for narrowing Number types.
That said we also have the unwrapping Primitives and type checking for Number done already so no need for checking instanceof.
The change can be implemented with:
definedDimensions[i] = (int) Primitive.castWrapper(Integer.TYPE, length);


DMARC

I notice that there is now a DMARC event when running this command, this is not referenced in the article.

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

ID: 7d563add-ef66-7a84-8181-8bfe6c12525d
Version Independent ID: 02171fa8-5e5c-0ce9-36d0-c057961ba86f
Content: Get-MailTrafficATPReport (exchange)
Content Source: exchange/exchange-ps/exchange/Get-MailTrafficATPReport.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

Awesome. Thanks all!


Client support

[x] Mock services for testing
[ ] Run mock tests on CI
[x] getService/getAllServices for retrieving services
[x] Make retrieved services have read and write handlers that call the peripheral
[x] Distinguish local from remote services at the type level
[ ] Allow subscribing to notifications/indications
[ ] Documentation

Perhaps Handler should also be a Reader over Connection. This enables characteristics to be remote with their signatures otherwise unchanged. And it seems to make sense for local characteristics too - so they can e.g. add signal handlers when they are called.

I've added support for writing values in my clone of python-dbusmock, but haven't yet figured out how to run the tests involving dbusmock on CI since they require changing the dbus config file and the only way of having it reload the config is by rebooting...

Now that I'm looking at notifications/indications, it's becoming clear that, since we need the ObjectPath of the characteristic being subscribed to, we need to keep this information when constructing a service with getService/getAllServices. This means another difference between local and remote services.

Done in #13, modulo mock CI testing (I'll open a separate issue) and maybe a bit more documentation.


[Bug] BetterDiscord don't work

Describe the Bug
BetterDiscord is not working since the last update of discord
To Reproduce
Launch discord with the latest discord version with betterdiscord
Expected Behavior
BetterDiscord should be loaded
Discord Version
Stable
Additional Context
Latest discord update

@vugi99 reinstall better discord

It works @Ondra97


capture parameters

anil, just tried today - this is great! thanks
can we capture the parameters as well from the proxy/policy definition -- we could potentially get all params used within the proxy to populate the swagger, so smartdocs will be really useful.
for eg, Authorization headers, query params on which we do checks, apikeys params etc.

Great suggestion @mukundha , We do capture dynamic parameters but only limited to path. For example a path with dynamic value mentioned in brackets {} is captured & used in swagger spec generation.
Are you saying parse all policies & look for headers, query params, api keys etc ? I think it's a great idea.

Merged code supports this now; look for ExtractVariables policies in request flow and add header, query and form params to specs.  #9


Support master/worker co-exists

There may be dead lock in some race condition, if master/worker coexists. It blocks single-box, and raises deployment bar for small machine set. So it should be addressed.

Dead lock means service start and stop for insufficient resource repeatedly? We will check every service's resource demand and give a minimum configuration.

close this issue and track it in another one.


How to update serviceMonitorSelectorNilUsesHelm values when using OpenShift Prometheus Operators is used

Discussed in https://github.com/aquasecurity/trivy-operator/discussions/1329

Originally posted by ajay15283 June 27, 2023
If prometheus is not installed from kube-prometheus-stack and instead openshift promethus operators were used in that case how to update serviceMonitorSelectorNilUsesHelmValues to false as the metrics are not visible in grafana dashboard

From Documentation
Our Prometheus installation needs to be slightly customised to discover ServiceMonitors by default. Create a values.yaml file with the following configuration:
prometheus:
prometheusSpec:
serviceMonitorSelectorNilUsesHelmValues: true
serviceMonitorSelector: {}
serviceMonitorNamespaceSelector: {}

@ajay15283 the requirements sound reasonable , feel free to pick it up

Hi @chen-keinan Could you please assign this issue to me.

@ajay15283 if am to get you right. you want the installation process for prometheus in the docs to highlight the configurations when using either kube-prometheus-stack or openshift promethus operators?

@geoffrey1330 , yes the document is clear if the prometheus is installed from kube-prometheus-stack and have no specific information for prometheus installed from other options especially if its installed as an operator

Alright

Hi @ajay15283 it seems like the process of installing prometheus via prometheus-operator is no longer supported
as stated here
they suggested everyone should make use of the prometheus-community/kube-prometheus-stack as it has been moved there

could you please move to the supported approach and close the issue.

Did we got some solution to add serviceMonitorSelectorNilUsesHelmValues in openshift prometheus operator


Base64 of CSR downloaded from KV certificate operations page doesn't match Azure CLI

As described in the title, if you browse to your Key Vault after generating an RSA private key and CSR then browse to Certificates -> Certificate Operation -> Download CSR the Base64 and CSR is valid (and can be viewed with openssl req -in foo.req -text -noout).
However if you execute az keyvault certificate pending show --name foo --vault-name bar the Base64 on screen does not match the Base64 downloaded from the web UI, and does not parse with the above openssl command.
I am using macOS 10.15.4 with the Azure CLI version below.
Is this correct? Should they not be the same?
% az --version
azure-cli                          2.5.0

command-modules-nspkg              2.0.3
core                               2.5.0
nspkg                              3.0.4
telemetry                          1.0.4

Extensions:
interactive                       1.12.0

Python location '/usr/local/Cellar/azure-cli/2.5.0/libexec/bin/python'
Extensions directory '/Users/daveshaw/.azure/cliextensions'

Python (Darwin) 3.8.2 (default, Mar 11 2020, 00:29:50)
[Clang 11.0.0 (clang-1<IP_ADDRESS>)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

% openssl version
OpenSSL 1.1.1g  21 Apr 2020

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

ID: c4912852-e33b-5d45-4de4-d64ce94693d9
Version Independent ID: 02098cf1-5e19-59b5-efe5-b31006334dc5
Content: az keyvault certificate pending
Content Source: src/azure-cli/azure/cli/command_modules/keyvault/_help.py
Service: key-vault
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

@bim-msft could you pls help to have a look? thanks

Hi @TitaniumDave thanks for the feedback!
It's weird that I cannnot reproduce your scenario. I created a self-signed certificate on Azure Portal, this is the content retrieved by Azure CLI:
az keyvault certificate pending show -n test-cert-0527 --vault-name bim-kv5

{
  "cancellationRequested": false,
  "csr": "MIICpzCCAY8CAQAwFzEVMBMGA1UEAxMMbXlkb21haW4uY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwJqQy1TdZbjXYHtx7XZrU76MEuHdWWksMIt3zP2E8ZDPVXl0sYFJ1SDF8YrEg1QQ0ZKsd8LIND8fCKa+rk7upBEAubDzxJi
bk1uVcMnKZ8yDpYo59idVlsEzF09IXqKZGhhKFKbCv9KDnGSU0V8F49W/X7nrkzGgmRlEcZ5j3LLVtppeqgDkQ6VGvJpPDjcfOmiFhn2qO1CZrRbw3MqU6c9J+oLdIDYjdkze+yBXJ++yE/0VVrNjnpBWatSU+Kxu0BDpF4922BQ0+QnIQyPGDCyleIXVw+BXUpYi
b1HwjIzrc/m6s8TM/JeoRsCEIWr1df5/k2LdH2t06CrjLcmdlQIDAQABoEswSQYJKoZIhvcNAQkOMTwwOjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAFtzSfN6fD68T
ITPL0aXiJloqK92sqiCyl7kUv6TupzoQvvxZCRBoz74Gb5bdqTOTMrW0KLddN5YaMC9iEsH0tOHEERaNxr9gsrKu+ljhTwLJf8eJlrvjKQGJmohETJF8bOWRwIPAEFWB+rUnRYuWActDepFNZVR9gJaNpoCsvHFdn+fucCL8JoWzTI3CYGfv+aDTYxdzMlka8by9v
Wecq0bPO4t9I2YbrK0e7W90Bx8Tsrf/xgnY/3UMi8bFuFFJBKdmGvW1LHVOnG8jfXMR/r5xKRG+usxXgWRF6DDqZ9UfgLdz0DaG+siA4O6sX+CNzmx1gOLmNuRxRInCg7V9Ug=",
  "error": null,
  "id": "https://bim-kv5.vault.azure.net/certificates/test-cert-0527/pending",
  "issuerParameters": {
    "certificateTransparency": null,
    "certificateType": null,
    "name": "Self"
  },
  "name": "test-cert-0527",
  "requestId": "6aa0797ab0d945d3b2eb899405b130df",
  "status": "completed",
  "statusDetails": null,
  "target": "https://bim-kv5.vault.azure.net/certificates/test-cert-0527"
}

Also I downloaded the CSR file on Azure Portal (Certificates -> Certificate Operation -> Download CSR), then used openssl to display it:
openssl req -in /mnt/c/users/bim/downloads/test-cert-0527_6aa0797ab0d945d3b2eb899405b130df.csr

-----BEGIN CERTIFICATE REQUEST-----
MIICpzCCAY8CAQAwFzEVMBMGA1UEAxMMbXlkb21haW4uY29tMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwJqQy1TdZbjXYHtx7XZrU76MEuHdWWksMIt3
zP2E8ZDPVXl0sYFJ1SDF8YrEg1QQ0ZKsd8LIND8fCKa+rk7upBEAubDzxJibk1uV
cMnKZ8yDpYo59idVlsEzF09IXqKZGhhKFKbCv9KDnGSU0V8F49W/X7nrkzGgmRlE
cZ5j3LLVtppeqgDkQ6VGvJpPDjcfOmiFhn2qO1CZrRbw3MqU6c9J+oLdIDYjdkze
+yBXJ++yE/0VVrNjnpBWatSU+Kxu0BDpF4922BQ0+QnIQyPGDCyleIXVw+BXUpYi
b1HwjIzrc/m6s8TM/JeoRsCEIWr1df5/k2LdH2t06CrjLcmdlQIDAQABoEswSQYJ
KoZIhvcNAQkOMTwwOjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUH
AwEGCCsGAQUFBwMCMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAFtzSfN6
fD68TITPL0aXiJloqK92sqiCyl7kUv6TupzoQvvxZCRBoz74Gb5bdqTOTMrW0KLd
dN5YaMC9iEsH0tOHEERaNxr9gsrKu+ljhTwLJf8eJlrvjKQGJmohETJF8bOWRwIP
AEFWB+rUnRYuWActDepFNZVR9gJaNpoCsvHFdn+fucCL8JoWzTI3CYGfv+aDTYxd
zMlka8by9vWecq0bPO4t9I2YbrK0e7W90Bx8Tsrf/xgnY/3UMi8bFuFFJBKdmGvW
1LHVOnG8jfXMR/r5xKRG+usxXgWRF6DDqZ9UfgLdz0DaG+siA4O6sX+CNzmx1gOL
mNuRxRInCg7V9Ug=
-----END CERTIFICATE REQUEST-----

As you see, two texts are identical.
Could you please provide me some more information about how to reproduce it? Such as how your certificate was generated. Thanks!

Closing due to longtime inactivity. Feel free to reopen this and ping me again when you have new information. @TitaniumDave


False resolve Hostname if two similar hostnames exists

I have two VMs. One with hostname server.local and the other one with release.server.local. If both VMs are up then nslookup provide for both hostname the ip address of server.local.
After a little research i found in landrush/lib/landrush/store.rb on line 51 the "problem": if the searched hostname contains any saved dns-entry then the find method return this dns-entry and do not continue the search for the complete hostname.

Got bit by this myself when resolving foo.bar.tld and hitting the entry for bar.tld every time. There's very little explanation that this is what's happening, also, due to poor logging...

This is intended, see discussion around wildcard subdomains - https://github.com/vagrant-landrush/landrush/blob/master/doc/Usage.adoc#wildcard-subdomains


Examples for Method object

I copied the five files we discussed, ignoring the method_advanced_user page

Discussion and examples for creating custom Method objects was moved into PR #181.


Snapdragon: offset aDSP absolute time

This adds a call on startup of the muorb on the aDSP side to use an
offset for hrt_absolute_call(). This means that the hrt_absolute_call()
on the aDSP (QURT) side should now match the one on the appsproc (Linux) side.
The accuracy still needs to be determined.
Currently I see differences of ~ 30-50 us, but not sure if the check makes too much sense.
INFO  time_dsp: 888946621 us, time appsproc: 888946654 us, diff: -33 us

Please review @bugobliterator, @kevinmehall
FYI: @LorenzMeier

Apart from the comment made by Liam about the magic number its looking good.

This offset also needs to be used for the DriverFramework timer functions used for sensor timestamping:
https://github.com/PX4/DriverFramework/blob/master/framework/src/DriverFramework.cpp#L205

@liamstask, @kevinmehall thanks for the feedback.
I've added a comment to 19.2, and I've changed the timestamping, so hrt_absolute_time() is used before publishing the messages instead of the DriverFramework time. I think that's the easiest solution because we don't have to mess with the time functions of the DriverFramework.

@julianoes as hotfix that makes perfect sense, but we still need to fix the DriverFramework time base. Could you please file an issue in DriverFramework for that and merge this to master in the meantime?

Am I correct in assuming that this should provide the same timestamps on the DSP as well as on the linux side, i.e. outside the PX4 main app? Because this is not what I'm observing. When I receive IMU messages via mavlink in a seperate process on the snapdragon, the IMU time stamps start around<PHONE_NUMBER>, whereas gettimeofday() gives me<PHONE_NUMBER>848068, i.e. the time since epoch. Am I just getting the time on the linux side wrong?

@ndepal I think you don't want to use gettimeofday but rather clock_gettime using CLOCK_MONOTONIC.

@LorenzMeier I'm scared of changing the clock for the DriverFramework because it would affect the schedule that we don't want to touch once it's running.
I think it's fine to use the timestamps in the wrapper functions, they get called right after the measure call anyway, there is no delay due to context switching, etc.

@julianoes that works, thanks!

Rebased, and applied.

@julianoes have a look at ndepal/Firmware@45b9aa3 . I repeatedly compute the offset in both directions (i.e. getting dsp time first, then appsproc time first). This way I get the reported offset to be around +/-1us (although the biggest factor in this is that I also compute the offset both ways for the check). Let me know if you think this is worth doing and I'll open a new PR.


Udeploy is not pulling the details

Hi friends,
I have configured Udeploy collector and I am getting data for an application but when I have configured Udeploy widget for another application named 'CommercialGateway' I did not get any data on UI.
The strange thing is I am not getting any error in logs.
Please share any solution if you have.
Here are the screenshots:

@Sbrenthughes  This is the issue mentioned above.
NOTE: I have latest repo.

@tabladrum  Please look into this.
And my IBM-UCD version is 6.2.*

@anayyadav Can you explain what the issue is?

Yes, I have configured uDeploy collector in Hygieia.
When I configured a widget in a dashboard for an application named X , I can see the data but when I did for application Y, I did not get any data either any errors.


Set FluentBit self logs to buffer in memory instead of filesystem

SLES 12 was failing, but it's not related to this PR.


pytorch_lightning.utilities.exceptions.MisconfigurationException: configure_optimizers must include a monitor when a ReduceLROnPlateau scheduler is used.

When I try to train my own dataset with train.py  I got this error...

Any suggestion, please...

Solved by changing monitor value none to
monitor = 'metric_to_track'

@BIPUL-KNOVI  Where did you set monitor = 'metric_to_track'? I'm running into this problem, as well. You did it on a line in train.py, right?


iframes: why we aren't doing them now, and when we might

This issue details our difficulty using iframes for our particular embed needs, and why we're punting on them for now. I'm not saying it's impossible, just enough of a lift to move out of MVP.
A common request and a strong internal desire is for our embeds to be delivered via iframes. This has significant advantages: the iframe is a silo within which our JS/CSS are safe from the parent page (and vice versa), and as a single HTML tag it's generally portable:

Wouldn't that be nice. Unfortunately, it's not responsive at all. This is usually solved with a little HTML wrapping and some CSS, so you end up with something like this:

A little gross, but at least it doesn't require any JS on the parent page. Unfortunately, it only works if the embed maintains a static aspect ratio, like a video. For those with aspect ratios that could change while the embed is being used or resized, like ours, you have to whip out the JS:

What would this script have to do?

Initialize responsiveness by injecting the necessary HTML/CSS for the above-mentioned method
Maintain aspect ratio when a parent page resize/reflow causes the iframe to resize
Listen to the iframe's child page for resize-triggering events and apply them to the iframe

That last one is the doozy and why Pym exists.

– begin aspect ratio tangent –
It's useful to ask: what causes us to have a variable aspect ratio? Why can't we calculate the ideal aspect ratio for a given resource when generating its embed code and force ourselves to keep it? Here's what causes aspect ratio changes:

Notes: Our current page embed design can cause notes to pop out of the bounds of the page embed.
Page navigation: Different pages within a document can have different aspect ratios. Embedding a single page can initialize at that page's aspect ratio, but if the reader navigates to a new page with a different ratio, the embed has to adjust.
Interface chrome: While images can scale almost infinitely, interface chrome has reasonable usability bounds. So we have a static 40px-tall menu bar atop a page that's 400px wide and 760px tall. Total embed width:height is 400px:800px for an aspect ratio for 1:2. Now shrink the page to 200px wide and 380px tall; total embed is 200px:420px for an aspect ratio of 1:2.1.

There are design compromises for each of these problems; we just have to decide if they're worthwhile.
– end aspect ratio tangent –

So what are we going to do?
We'll start with the progressive enhancement model used by Twitter and others, where the initial embed code is effectively a noscript replacement plus some JS:

Minutes from the 12/2014 meeting

The script then parses the faux-noscript and replaces it with the real direct-embed markup.
When will we add iframes?

When we design an interface that promises a static aspect ratio, or
When we can do all of the following:

Fork or enhance Pym to fit our progressive enhancement model (it currently appends to a div instead of replacing contents) and to not mind being embedded multiple times per page
Provide a stable message-passing API atop Pym between parent and child
Provide an initial iframe state that also acts as a noscript, or basically a non-responsive and potentially mis-aspect-ratioed representation of the embed, but which we are satisfied with as the worst-case fallback

Just going to drop the name Embed.ly here to note one of the places this came up recently.

Yeah, I nearly wrote a chapter on Embedly. They're a strange case. (They're also only an issue w/r/t our oEmbed endpoint, which shouldn't but can have a different embed strategy than the wizard.)
According to the emails we've exchanged with them and their own docs, they expect nothing from the oEmbed endpoint but an  tag. No wrapper, no styling, no JavaScript. They think it should be up to the consumer to then make that iframe responsive.
This means they are, by design:

Opposed to us delivering a responsive solution via oEmbed, and
Incompatible with any variable aspect ratio responsive embeds

I don't see how we can square our needs with theirs. We either have to satisfy Embedly by delivering a non-responsive iframe tag via our oEmbed endpoint (which forces all of our oEmbed consumers to handle responsiveness on their own and still doesn't allow for variable aspect ratios), or shrug them off.

Okay, so the problem is that we need to specify the aspect ratio at the time the iframe is inserted/defined.
By the time a document is done processing, we should know the aspect ratio of the document and the individual pages (this is another tick mark in favor of storing the individual aspect ratios of pages and making them available).
At that point, a document or page can be embedded either through automatic means (say an oembed request) or manually by a user requesting an embed code and saving that in their CMS.
In the first case, we have full control over the definition of the iframe and it would be possible to specify what the height/width/aspect ratio for a document should be.  (note this is a change with non-trivial consequences as it would require making a database call in order to identify the max|min|avg aspect ratio)
In the latter case, we would only have one shot at getting the aspect ratio right if we were to bake that information directly into an embed code and handing it off to the user.  That means that if the document were modified, the aspect ratio would not be updated.  That said, our current embed codes do not codify that information directly (except at the user's request).  And it might be viable to continue doing that.

I would love if we could depend on the aspect ratio at load time remaining static. But see the
"aspect ratio tangent" section. It would require some heavy design compromises; I'm totally willing to explore them, but as of right now, our aspect ratio will change during use.
I'm fully in support of calculating/storing individual page aspect ratios. Even if we never lick the above, it's still useful in generating sensible default dimensions for the embed code.

Random, but had this TextMate doc open for a while and may as well dump it here.

:x: Responsive
:x: Dynamic aspect ratio
:white_check_mark: Pleases Embedly

```

```
:white_check_mark: Responsive
:x: Dynamic aspect ratio
:white_check_mark: Pleases Embedly

```

```
:white_check_mark: Responsive
:white_check_mark: Dynamic aspect ratio
:x: Pleases Embedly


Route And Measure Tool Spins

Hello -
Upon implementing the Route and Measure Widget, I'm able to add the widget to my webapp, but it just spins.  Looking at the console message I see that it can't find the strings.js.
Other widgets work fine.
Using WAB 2.6.
Also, this web app is running within ArcGIS Portal (10.7)
Any thoughts?
Thanks!

I'm also seeing this, would love to get these into portal for WAB for non-developers to use. Thanks! these tools are great!

Encountered this exact issue when loading both the Route and Measure and Overlay widget into Portal for ArcGIS (10.6.1). I believe the internal WAB version is 2.8. I was able to load both widgets in WAB for Devs (2.17) and both worked. Unfortunately we cannot leverage these widgets unless users can add them to portal's WAB.
Trying to troubleshoot it further. The ../js/nls/strings**.js** exists, not sure why it would be omitting the file extension.

Hi all,
Both widgets do not open in the portal for me.  Using WAB 2.9.
Also, this web app is running within ArcGIS Portal (10.6.1

)


Fix tooltip in short_description of glossary toleration

This PR replaces {% glossary_tooltip term_id="taint" %} to plain text  "taints"
in short_description in reference/glossary/toleration.md
Since <glossary_tooltip> functionality is not applicable for short_description, it needs to be changed to a plain text.
The glossary (Taint) which includes "toleration" tooltip inside shows the text "{% glossary_tooltip term_id="taint" %}" as is.

Taint
A key-value pair and an effect to prevent the scheduling of pods on nodes or node groups. [-]
Taints and Tolerations  work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node ; this marks that the node  should not accept any pods that do not tolerate the taints.

Tolerations = "A key-value pair and an effect to enable the scheduling of pods on nodes or node groups that have a matching {% glossary_tooltip term_id="taint" %}."

@seokho-son, LGTM -- nice clean-up of the short_description definition. I think the text for these terms could be further clarified and edited. I will log a new issue.

@seokho-son, just tried to manually resolve the conflicts since #13684 is already in. It turned out that the problem is fixed in that PR as well.
Closing this one now. Thanks for your contribution, still.


向量相乘出现Segmentation fault

Describe the bug
运行
import jittor as jt

a = jt.randn((300, 400))

sumsum = jt.zeros((400))

for i in range(300):
    for j in range(300):
        if i != j:
            sumsum += a[i] * a[j]

如上程序，出现
Caught segfault at address 0xd44e000, thread_name: '', flush log...
Segmentation fault (core dumped)
错误
Full Log
Provide a full log of Jittor execution, Jittor will log environment information which help us to locate your bugs. Provide a screenshot is also acceptable.
Minimal Reproduce
Reproduce this error with a file or several lines of code.
If it is not possible, leave it blank.
Expected behavior
A clear and concise description of what you expected to happen.

我们暂时还在排查问题所在，可先暂时使用如下代码
import jittor as jt
a = jt.randn((300, 400))
sumsum = jt.zeros((400))
for i in range(300):
    for j in range(300):
        if i != j:
            sumsum += a[i] * a[j]
        jt.sync_all()

好的谢谢


smtplib.SMTPSenderRefused smtplib.SMTPSenderRefused: (530, b'5.5.1 Authentication Required. Learn more at\n5.5.1  https://support.google.com/mail/?p=WantAuthError r126-v6sm1445775ita.26 - gsmtp'<EMAIL_ADDRESS>

''' this is my init.py file '''
The app configuration used in a Flask Mail application
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
app = Flask(name)
app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
login_manager = LoginManager(app)
login_manager.login_view = 'login'
login_manager.login_message_category = 'info'
app.config['MAIL_SERVER'] = 'smtp.googlemail.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USERNAME'] = os.environ.get('EMAIL_USER')
app.config['MAIL_PASSWORD'] = os.environ.get('EMAIL_PASS')
mail = Mail(app)
from flaskblog1 import routes

The error message is pretty specific, in particular the Authentication Required part.

i too had same error with same code. Anyone there please help me.

@Yash-s001 the error is clear, the server is asking you to provide authentication.

@miguelgrinberg how sir ?, can you please specify little more in this code.
please sir !

@miguelgrinberg Finally got understand the problem ,and the error got solved now. Tooks little time but now it's done.
Thank you sir !

@miguelgrinberg Finally got understand the problem ,and the error got solved now. Tooks little time but now it's done.
Thank you sir !

How??((( I can't solve it? Can you explain how have you solved it?

@marseyo set the correct username/password for the account in the configuration.

@marseyo set the correct username/password for the account in the configuration.

in the configuration of what and in what place? can you more explain please

@marseyo If you haven't read the book then none of this will make sense to you.

thanks

same problem sir can u help me

So i was getting the error because i was not saving and pressing OK in the control panel where i set the environment variables , just ensure that you have saved the environment variables and you restart the text editor.
I also generated a app specific password from Google account.
Try to first see if you can retreive the environment variables in a simple programme like https://www.youtube.com/watch?v=IolxqkL7cD8


Honeyswap Gnosis QA

https://docs.google.com/spreadsheets/d/1VlaPOGEqwxLtulsrq3WdpjAvZFqyc1k_/edit#gid=111486505

@ishraq8 might be a bit last minute but can you take a look at Honeyswap to see if we can get it in?

I'll take a look in a bit

Issues with the subgraph:

hourlyActiveUsersdoes not add up to `dailyActiveUsers'
hourlyTransactionCount does not add up to dailyTransactionCount
totalvaluelockedUSD is half for FOX/GIV pool (ID: 0x75594f01da2e4231e16e67f841c307c4df2313d1). Likely one of the tokens is showing zero.

Comments:dailyVolumeUSD is within range so should be fine. variability may be due to how date is counted and/or variability in pricing of assets.
High dailyTransactionCount due to bot activity and is within reasonable range.
other than the three issues above, data seems to be in reasonable.

@ishraq8 for 1 and 2, why should they add up? If there is only a single user and that users makes a tx every hour, then hourly active users should add up to 24 and the latter 1.

@this-username-is-taken Thanks for the clarification, my mistake.
Overall the lower tvl is due to pools being excluded, there are a lot of low TVL tokens that could add up. Other than that i think Honey Swap on Gnosis is good to go. Thank you Vincent & @mrbrianhobo for fixing and putting together the subgraph.

@this-username-is-taken @ishraq8 i closed #615 as well
also for point 2, i was able to verify that hourlyTransactionCount does add up to dailyTransactionCount:
blockNumber: 24355699
timestamp:<PHONE_NUMBER>
"usageMetricsDailySnapshot": {
  "id": "19261",
  "blockNumber": "24355699",
  "timestamp": "1664236765",
  "dailyTransactionCount": 2595
}

"usageMetricsHourlySnapshots": [
  {
    "id": "462287",
    "blockNumber": "24355699",
    "timestamp": "1664236765",
    "hourlyTransactionCount": 62
  },
  {
    "id": "462286",
    "blockNumber": "24355112",
    "timestamp": "1664233150",
    "hourlyTransactionCount": 81
  },
  {
    "id": "462285",
    "blockNumber": "24354536",
    "timestamp": "1664229595",
    "hourlyTransactionCount": 38
  },
  {
    "id": "462284",
    "blockNumber": "24353949",
    "timestamp": "1664225980",
    "hourlyTransactionCount": 78
  },
  {
    "id": "462283",
    "blockNumber": "24353357",
    "timestamp": "1664222340",
    "hourlyTransactionCount": 117
  },
  {
    "id": "462282",
    "blockNumber": "24352725",
    "timestamp": "1664218450",
    "hourlyTransactionCount": 85
  },
  {
    "id": "462281",
    "blockNumber": "24352191",
    "timestamp": "1664215140",
    "hourlyTransactionCount": 33
  },
  {
    "id": "462280",
    "blockNumber": "24351572",
    "timestamp": "1664211330",
    "hourlyTransactionCount": 20
  },
  {
    "id": "462279",
    "blockNumber": "24351010",
    "timestamp": "1664207870",
    "hourlyTransactionCount": 66
  },
  {
    "id": "462278",
    "blockNumber": "24350406",
    "timestamp": "1664204155",
    "hourlyTransactionCount": 299
  },
  {
    "id": "462277",
    "blockNumber": "24349838",
    "timestamp": "1664200655",
    "hourlyTransactionCount": 130
  },
  {
    "id": "462276",
    "blockNumber": "24349273",
    "timestamp": "1664197175",
    "hourlyTransactionCount": 79
  },
  {
    "id": "462275",
    "blockNumber": "24348681",
    "timestamp": "1664193535",
    "hourlyTransactionCount": 289
  },
  {
    "id": "462274",
    "blockNumber": "24348096",
    "timestamp": "1664189935",
    "hourlyTransactionCount": 29
  },
  {
    "id": "462273",
    "blockNumber": "24347467",
    "timestamp": "1664186060",
    "hourlyTransactionCount": 76
  },
  {
    "id": "462272",
    "blockNumber": "24346935",
    "timestamp": "1664182790",
    "hourlyTransactionCount": 224
  },
  {
    "id": "462271",
    "blockNumber": "24346347",
    "timestamp": "1664179170",
    "hourlyTransactionCount": 170
  },
  {
    "id": "462270",
    "blockNumber": "24345755",
    "timestamp": "1664175530",
    "hourlyTransactionCount": 180
  },
  {
    "id": "462269",
    "blockNumber": "24345170",
    "timestamp": "1664171930",
    "hourlyTransactionCount": 141
  },
  {
    "id": "462268",
    "blockNumber": "24344596",
    "timestamp": "1664168395",
    "hourlyTransactionCount": 79
  },
  {
    "id": "462267",
    "blockNumber": "24343970",
    "timestamp": "1664164535",
    "hourlyTransactionCount": 82
  },
  {
    "id": "462266",
    "blockNumber": "24343418",
    "timestamp": "1664161140",
    "hourlyTransactionCount": 28
  },
  {
    "id": "462265",
    "blockNumber": "24342833",
    "timestamp": "1664157540",
    "hourlyTransactionCount": 87
  },
  {
    "id": "462264",
    "blockNumber": "24342256",
    "timestamp": "1664153990",
    "hourlyTransactionCount": 122
  }
]

Thank you @mrbrianhobo, this is great and informative for future QAs too!

@ishraq8 for point 2, did subgraphs.xyz report this or did this come from Kane's QA? If the former we probably should fix it on subgraphs.xyz.
@mrbrianhobo you should update deployment.json and let JS know this is ready for backfill.


About downstream tasks

In order to verify the effectiveness of ImageNet-21k dataset pretraining. I modified the Faster RCNN configuration file in mmdetection, only point the path of the backbone resnet50 pretraining weights to the 21k trained model but achieved worse results than the torchvision pretraining weights

this issue is not written in a polite manner, hence will be closed.
if you want to engage in a proper discussion, open a new issue, in a much more polite and informative manner


Calculate Warren-Cowley short-range-order

Hi,
I have a queation about short-range-order (SRO) when I use your code "sqsgenerator-fix-alpha-command".  Taking Ni3Al (L12) as an example. The POSCAR file like this.
# Ni Al L12
3.0
1.0000000000         0.0000000000         0.0000000000
0.0000000000         1.0000000000         0.0000000000
0.0000000000         0.0000000000         1.0000000000
Al Ni
1 3
D
0.0  0.0  0.0
0.5  0.5  0.0
0.5  0.0  0.5
0.0  0.5  0.5
I use the command "sqsgenerator alpha sqs POSCAR --weight=1 --verbosity=3", and the result is as follows,
α=1.8888888888888888
α[Al-Al]=1.00000000000000
α[Al-Ni]=-0.33333333333333
α[Ni-Ni]=0.55555555555556
The SRO of Ni-Ni does not agree with theoretical result (i.e. 1/9). In addition, I test the SRO of pure Ni (fcc), and the vaule is 0.5. I hope to calculate SRO of multi-component alloys. Whether the SRO of A-B bond should be ignored when A and B are the same element?
Thank you!

The reason why the the value is wrong is that the computation of the occupations of the coordination shells is "wrong".
The programm basically creates a histogramm of the distance matrix, to determine how many atoms are in the individual coordination shells. As in this small cell there are only 4 atoms, all the other three atoms are in the first coordination shell. Therefore, we get with 3 Ni-Ni bonds, α=1 - 3/(4 * 3 * (3/4)^2) = 1 - 4/9 = 5/9 = 0.55555555559. This is how we get to this wrong answer.
The reason why that is so is that, we usually deal with super-cells where this case does never happen (for us at least).

By the way, how to cite your code? Have you published papers by using this code.

Actually not yet! I'm working on it! I'm intensively working on a new version of it where I want to fix all those problems

In other words, this code can correctly deal with the short-range order of A-B bonds when A and B are different, is it right?

For Ni3Al, I use 108-atom (3 * 3 * 3) supercell, and the result is same.

Indeed I can confirm that

I think the difference may be due to the formula. The theoretical SRO formula is α=1-(Pij/Cj), where Pij is probability of j around i atom, and Cj is concentration of j. Taking 1st nearest neighbor as an example.
(1) For pure Ni (fcc), the theoretical SRO is 1-1/1=0. For your formula, the SRO of Ni-Ni is α=1-(12/2 N)/(N * 12 * 1 * 1)=0.5.
(2) For Ni3Al (L12), the theoretical SRO of Ni-Ni is 1-(2/3)/(3/4)=1/9. For your formula, the SRO of Ni-Ni is α=1-3N/(N * 12 * 0.75 * 0.75)=5/9. There are 6N bonds in Ni3Al (L12), 3N for Ni-Al, and 3N for Ni-Ni.

I also double checked that. Tt seems that you were right! I do get one half for the pure systems
So I have to correct myself as it seems the the computation of the shell occupation is alright, and the difference comes from, as you already said, the different definition


frame rate is low on Orin（lidar centerpoint）

version 9.0
I find that the frame rate of the lidar centerpoint is about 4-6 Hz on the orin, while it is 10 Hz on the PC (x86).”

what is the problem?

Orin and PC both use the same .record


UDP Mux Work In Progress

Implement UDP muxing for ICE for https://github.com/webrtc-rs/webrtc/issues/102.
Tasks:

[x] Port UDPMux. This is mostly done
[x] Port tests for UDPMux
[x] Hook up UDPMux in ICE gathering/agent
[x] Tests for ICE gathering/agent with UDP mux
[x] Support UDPMux in SettingsEngine
[x] Port UDPMux example
[x] Do a self review of all this

I've used std::sync::Mutex rather than tokio::sync::Mutex in a few places. This is based on Tokio's recommendations to prefer std::sync::Mutex, however in their own codebase Tokio does away with the erroring by removing the poision mechanics. Happy to convert these to tokio::sync::Mutex too.

Yeah, if you are happy with the compromise about using std::sync::Mutex with the poison logic removed, then we might as well use parking_lot's Mutex for all the other benefits outlined.
Can even put this behind a facade in util such that its opaque to the user whether std::sync::Mutex(without poisoning) or parking_lot::Mutex is used under the hood. Tokio does something like this in tokio::loom.

Yeah, if you are happy with the compromise about using std::sync::Mutex with the poison logic removed, then we might as well use parking_lot's Mutex for all the other benefits outlined.
Can even put this behind a facade in util such that its opaque to the user whether std::sync::Mutex(without poisoning) or parking_lot::Mutex is used under the hood. Tokio does something like this in tokio::loom.

good idea to wrap it in util crate to hide it, so all other crates just use util::Mutex for synchronous Mutex.

util v0.5.1 is released, where feature "sync" is added with Mutex/RwLock/Once wrapped from parking_lot

This is now ready for review. We want to support dual stack IPv4/6, but this currently isn't working correctly on Windows, there are further changes needed to support this anyway.

look good to me. Let's merge it!

Awesome, thanks for the review and support 👍🏼


feat: add lawallet extension support

Describe the changes you have made in this PR
Adding LaWallet.io extension.
Full support with NIP-05 and LUD-16.
Added nostr-tools as lawallet stack requires nostr websocket connection.
Type of change

feat: New feature (non-breaking change which adds functionality)

How has this been tested?
You can generate a random private key and test if for yourself.

Create Account
Receive funds (Generate Invoice)
Notify transaction (Zap)
Pay Invoice
Retrieve Lightning address

Checklist

[x] Self-review of changed code
[x] Manual testing

Please 🫶🏻

Interesting contribution on lightning.

Please consider this PR
LaWallet is a Custodial Bitcon comparable to WoS but linking all the entries up to Nostr in a smart way to provide a good UX and remain secure.

I need LaWallet in Alby please🤩

Hi @bumi @pavanjoshi914 , could you take a look at this?
LaWallet.ar is a custody wallet that we are developing 🫶🏻

@agustinkassis thanks for the PR!!
@unllamas we're on it and it's on the list.
It would probably be nice to tell users where they can signup for the wallet.

For testing:

Create account at https://app.btcpp.ar/

Copy private key from https://app.btcpp.ar/settings/recovery/

Set identity endpoint to https://btcpp.ar

Receiving, sending, transaction list look great. Lightning address works fine.
Things I noticed:

In the connector setup it says "Connect to your LaWallet Stack"  - maybe just "Connect to LaWallet" (less technical)?
When first connecting the balance shows 0. But afterwards the balance is ok. Maybe this should be fixed? otherwise users will think there is an issue with their account.
Having to set the identity endpoint was not obvious - I luckily saw you do it in the demo. Will everyone have to do this?

If so, can you give instructions on how the user can connect?

Does Lawallet support re-connecting to the relay? the connector became unresponsive and I had to restart my browser to re-connect.
Also, my balance then showed 0 again and took a while to update.

Just tested it and works quite great! :rocket: However I noticed some problems during testing:

Memos for invoices

When I create an invoice and enter a memo the memo seems not to be added to the invoice and won't show up in the payment screen as well as the transaction list.

The WebLN integration also seems to have some problems currently:

the preimage isn't returned for webln.sendPayment() calls
the payment_hash field seems to contain the invoice
the alias seems to contain the username (while that should be something to identify the node, e.g. lacrypta-villanueva)

Thank you very for your help on this. I'm working to fix any details you provide.
I resolved the zero balance bug and the relay reconnection issue by transitioning the getBalance and getTransactions functions from WebSocket to REST.
In regards with

Having to set the identity endpoint was not obvious - I luckily saw you do it in the demo. Will everyone have to do this?

I've made adjustments to prioritize and highlight its importance, akin to that of the private key. Additionally, I plan to incorporate an error notification for incorrect identity API inputs, guiding users to verify this setting carefully.
I am continuing to refine a few more aspects and will integrate the preimage, payment_hash  and alias shortly.

Done with every requirement, please let me know if you have any more suggestions.

@agustinkassis from where i can generate random private key? on btcapp.ar I only see login option which asks me for private key

Hey pavan, lawallet.io is a stack, so everyone has a different policy on signing up for a walias (lightning address).
You can get one from https://app.lawallet.ar/signup
A new private key is generated
https://github.com/lawalletio/la-wallet-monorepo/blob/8bcc6dc58bfc58882f2a699b49f152a7c701696f/packages/utils/src/interceptors/identity.ts#L16

@agustinkassis any updates here?

@agustinkassis any updates here?

Done with all the comments. Everything is up to as requested.

I addresses all the mentioned issues. You can always add customization or optimizations to infinity.
The PR has been delayed for months already. Let's merge it as we agreed before and we can then add more resources for future tweaks.

Thanks for the PR @agustinkassis works great! merging it :rocket:

AMAZING!!! I'm very happy. Thanks @pavanjoshi914 and Alby🐝


Could not install requirements

Description
First I tried to run pip install -r requirements,
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements'

Then, tried pip install -r requirements.txt
Collecting absl-py==0.13.0
  Using cached absl_py-0.13.0-py3-none-any.whl (132 kB)
Collecting aiohttp==3.8.1
  Using cached aiohttp-3.8.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.3 MB)
Collecting aiosignal==1.2.0
  Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3103, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/requirements.py", line 101, in __init__
    raise InvalidRequirement("Invalid URL given")
pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
    resolver.resolve(requirement_set)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 270, in _get_abstract_dist_for
    skip_reason = self._check_skip_installed(req)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 228, in _check_skip_installed
    req_to_install.check_if_exists(self.use_user_site)
  File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 443, in check_if_exists
    self.satisfied_by = pkg_resources.get_distribution(str(no_marker))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in get_distribution
    dist = Requirement.parse(dist)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3150, in parse
    req, = parse_requirements(s)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3096, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3105, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid URL given

Environment

Python version: 3.8.10
ffmpeg version: 4.2.4
OS: <IP_ADDRESS>-microsoft-standard-WSL2

Hello @jaonoctus
I recovered the requirements.txt from a previous commit and merged. Try again, please.

Fixed for me! thanx
Collecting Pillow
  Downloading Pillow-9.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
     |████████████████████████████████| 4.3 MB 3.2 MB/s
Collecting audiotsm
  Downloading audiotsm-0.1.2-py2.py3-none-any.whl (32 kB)
Collecting scipy
  Downloading scipy-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (41.6 MB)
     |████████████████████████████████| 41.6 MB 62.4 MB/s
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (1.17.4)
Collecting pytube
  Downloading pytube-12.0.0-py3-none-any.whl (56 kB)
     |████████████████████████████████| 56 kB 9.5 MB/s
Installing collected packages: Pillow, audiotsm, scipy, pytube
  WARNING: The script pytube is installed in '/home/jaonoctus/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Pillow-9.1.0 audiotsm-0.1.2 pytube-12.0.0 scipy-1.8.0