Add parameters for versionControlProvenance and use relative paths

To enable deeplinks to repo source in tools like https://marketplace.visualstudio.com/items?itemName=sariftools.scans (and https://github.com/microsoft/sarif-web-component which it wraps) we need at least:

versionControlProvenance-node with repositoryUri and revisionId (commit)
Relative paths without file:// (AFAIK) and possibly adding uriBaseId and originalUriBaseIds to define root

A sample for reference here though it's way more complicated than we need here. 🙂
I've gotten a manual sample working like this:
{
    "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
    "version": "2.1.0",
    "runs": [
        {
            "tool": {
                "driver": {
                    "name": "PSScriptAnalyzer",
                    "version": "1.0.0",
                    "informationUri": "https://github.com/PowerShell/PSScriptAnalyzer",
                    "rules": [
                        {
                            "id": "rule-PSAvoidUsingWriteHost",
                            "name": "PSAvoidUsingWriteHost",
                            "helpUri": "https://github.com/PowerShell/Psscriptanalyzer"
                        },
                        {
                            "id": "rule-PSAvoidTrailingWhitespace",
                            "name": "PSAvoidTrailingWhitespace",
                            "helpUri": "https://github.com/PowerShell/Psscriptanalyzer"
                        }
                    ]
                }
            },
            "originalUriBaseIds": {
                "SRCROOT": {
                    "uri": "file:///C:/Git/sandboxrepo/"
                }
            },
            "artifacts": [
                {
                    "location": {
                        "uri": "demo.tests.ps1",
                        "uriBaseId": "SRCROOT"
                    }
                },
                {
                    "location": {
                        "uri": "subfolder/demo.testsv4.ps1",
                        "uriBaseId": "SRCROOT"
                    }
                }
            ],
            "results": [
                {
                    "ruleId": "PSAvoidUsingWriteHost",
                    "message": {
                        "text": "File 'demo.tests.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information."
                    },
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "demo.tests.ps1",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 23,
                                    "startColumn": 13
                                }
                            }
                        }
                    ]
                },
                {
                    "ruleId": "PSAvoidTrailingWhitespace",
                    "level": "note",
                    "message": {
                        "text": "Line has trailing whitespace"
                    },
                    "locations": [
                        {
                            "physicalLocation": {
                                "artifactLocation": {
                                    "uri": "subfolder/demo.testsv4.ps1",
                                    "uriBaseId": "SRCROOT"
                                },
                                "region": {
                                    "startLine": 10,
                                    "startColumn": 1
                                }
                            }
                        }
                    ]
                }
            ],
            "columnKind": "utf16CodeUnits",
            "versionControlProvenance": [
                {
                    "repositoryUri": "https://dev.azure.com/myorg/myproject/_git/sandboxrepo",
                    "revisionId": "commmithash"
                }
            ]
        }
    ]
}

Quick workaround I made for PoC


Plugin not loading in Traefik 2.5

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
Started Traefik 2.5.2 using this plugin 'azurejwttokenvalidation' and it fails immediately while it works fine in Traefik 2.4.11 or lower. Could be related to an updated Yaegi version?
What did you see instead?
Error message:
traefik.go:81: command traefik error: github.com/dkijkuit/azurejwttokenvalidation: failed to import plugin code "github.com/dkijkuit/azurejwttokenvalidation": 1:21: import "github.com/dkijkuit/azurejwttokenvalidation" error: plugins-local\src\github.com\dkijkuit\azurejwttokenvalidation\validatetoken.go:226:70: cannot use type [32]uint8 as type []uint8

What version of Traefik are you using?
Traefik version 2.5.2 built on 2021-09-02T15:07:43Z
What is your environment & configuration?
# Static configuration
api:
  dashboard: true
  insecure: true

pilot:
  token: <TOKEN>

log:
  level: DEBUG

experimental:
  localPlugins:
    azure-jwt-check:
      moduleName: github.com/dkijkuit/azurejwttokenvalidation

entryPoints:
  http:
    address: ":4000"
    forwardedHeaders:
      insecure: true

providers:
  file:
    filename: plugins-local/src/github.com/dkijkuit/azurejwttokenvalidation/dynamic-dev-config.yml

If applicable, please paste the log output in DEBUG level
time="2021-09-15T14:44:33+02:00" level=info msg="Configuration loaded from file: C:\\Development\\Tools\\Traefik\\plugins-local\\src\\github.com\\dkijkuit\\azurejwttokenvalidation\\static-dev-config.yml"
time="2021-09-15T14:44:33+02:00" level=info msg="Traefik version 2.5.2 built on 2021-09-02T15:07:43Z"
time="2021-09-15T14:44:33+02:00" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true,\"sendAnonymousUsage\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"http\":{\"address\":\":4000\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{\"insecure\":true},\"http\":{},\"udp\":{\"timeout\":\"3s\"}},\"traefik\":{\"address\":\":8080\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"udp\":{\"timeout\":\"3s\"}}},\"providers\":{\"providersThrottleDuration\":\"2s\",\"file\":{\"watch\":true,\"filename\":\"plugins-local/src/github.com/dkijkuit/azurejwttokenvalidation/dynamic-dev-config.yml\"}},\"api\":{\"insecure\":true,\"dashboard\":true},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"},\"pilot\":{\"token\":\"39492e56-a258-4156-940b-bb06e2e79755\",\"dashboard\":true},\"experimental\":{\"localPlugins\":{\"azure-jwt-check\":{\"moduleName\":\"github.com/dkijkuit/azurejwttokenvalidation\"}}}}"
time="2021-09-15T14:44:33+02:00" level=info msg="Stats collection is enabled."
time="2021-09-15T14:44:33+02:00" level=info msg="Many thanks for contributing to Traefik's improvement by allowing us to receive anonymous information from your configuration."
time="2021-09-15T14:44:33+02:00" level=info msg="Help us improve Traefik by leaving this feature on :)"
time="2021-09-15T14:44:33+02:00" level=info msg="More details on: https://doc.traefik.io/traefik/contributing/data-collection/"
2021/09/15 14:44:33 traefik.go:81: command traefik error: github.com/dkijkuit/azurejwttokenvalidation: failed to import plugin code "github.com/dkijkuit/azurejwttokenvalidation": 1:21: import "github.com/dkijkuit/azurejwttokenvalidation" error: plugins-local\src\github.com\dkijkuit\azurejwttokenvalidation\validatetoken.go:227:70: cannot use type [32]uint8 as type []uint8

It is a yaegi issue. It can be reproduced independently of traefik by running yaegi test in a clone of https://github.com/dkijkuit/azurejwttokenvalidation. I will look into it.

@mvertes ok, since there's no corresponding issue (as far as I know), we can track the problem here, and we'll leave the issue open until it is fixed in yaegi.

+1
Thanks for the plugin, great job.

https://github.com/traefik/yaegi/issues/1328
The problem will be fixed in the next release of Yaegi (v0.11.2) and the next releases of Traefik (v2.5.6 and v2.6.0-rc2)

Closed by #8650.


Nghttp2 related fix

These are nghttp2 related updates.
I clarified nghttp2 callback return values in eb05372.
I think it does not break mod_h2, but please review it.

Thanks a lot!


Crashes when trying to add new Home Assistant controls

Hi, I've recently added a new light group to my Home Assistant instance which I'd like to add to my power menu, but when I tap the 3 dots and select "Add controls", it crashes on me every time.
I'd be happy to provide logs, I'm just not sure where to find them.

A logcat would be required, yes. See this guide: https://www.xda-developers.com/how-to-take-logs-android/

I use both home assistant and cpm. I've never had this issue. Make sure your home assistant app is working right. Make sure you're not blocking it from running in the background, also I'm pretty sure you can't have it lock either.

Ah sorry for taking so long on this. I'm going to send a link to the log to your Twitter DMs @KieronQuinn because I don't feel comfortable putting it here for anyone to see.


Add 44kHz WT and option for max voices

The 44kHz WT is found at https://github.com/pedrolcl/sonivox/blob/0c7beb23c2da2f2b8d3aa7c7bf126b50c53e46f9/arm-wt-22k/jetcreator_lib_src/darwin-x86/wt_44khz.c.
I think it weird that the 44k one has the same samples as the 22k one, only articulations and regions are different. How it works? :confused:
Tests are broken, and I do not know how to work on it.

You asked about how it works. The name wt_44khz.c is somewhat misleading. You interpreted that 44kHz was the sample rate of the included samples, but the each one of the 8 bit samples of this soundfont has different sample rate, and the only place where the number 44100 is used in this file is here, at line number 14695. This value is compared with the output sample rate when loading the soundfont here.
Here is an alternate PR using the other soundfont wt_22khz.c, but also with audio output sample rate of 44.1 kHz:  #21

Got it. Thanks for reviewing, #21 is nice, and I think it is okay to close this PR (#20).

2aed483 (#20) removes arm-wt-22k/lib_src/wt_44khz.c, which is different from arm-wt-22k/jetcreator_lib_src/darwin-x86/wt_44khz.c. arm-wt-22k/lib_src/wt_44khz.c got 16 bits sample support.

2aed483 (#20) removes arm-wt-22k/lib_src/wt_44khz.c, which is different from arm-wt-22k/jetcreator_lib_src/darwin-x86/wt_44khz.c. arm-wt-22k/lib_src/wt_44khz.c got 16 bits sample support. (I should mention it earlier 😕)

Then, you should re-add your file, commit and push it.

This works with both sample rates 22050 and 44100. I still don't like having, in the same repository, two large source files that are mostly identical. What about unifying them into a single one? We could rename the unified source as: "wt_200k_g.c", which was the original file name according to one top comment.
By the way, you can find the original soundfont "wt_200k_G.sf2" in this archive.

I just split the WTs and merged the same parts together. It should look better now.


Support dependency without outputs

terragrunt_v0.26.7 calls dependency with  terraform output -json which response with
{}

Terragrunts messages are
[terragrunt] [dir] 2021/01/20 18:14:13 Running command: terraform output -json
[terragrunt] 2021/01/20 18:14:37 xxxxxxx/terragrunt.hcl is a dependency of  yyyyy/terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs. If this is expected, set the skip_outputs flag to true on the dependency block.
[terragrunt] 2021/01/20 18:14:37 Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Consider {} a valid response of no output however error as its expected to have output without waiting 30 seconds.

Any chance you could share the code so we have some way to repro this?

Any chance you could share the code so we have some way to repro this?

After looking at this again, I think the issue here is that terragrunt dependency always assumes there is some output provided by the module, since that is the point of the explicit dependency (to string outputs to the dependent module).
I think the feature request here is to support this semantic of dependency where you only want to add it for the purpose of deployment ordering with xxx-all commands. I updated the issue to reflect this.
For now, the workaround is to use the dependencies block for these modules instead, which is only used for the purpose of dependency ordering as opposed to dependency passing.

After looking at this again, I think the issue here is that terragrunt dependency always assumes there is some output provided by the module, since that is the point of the explicit dependency (to string outputs to the dependent module).
I think the feature request here is to support this semantic of dependency where you only want to add it for the purpose of deployment ordering with xxx-all commands. I updated the issue to reflect this.
For now, the workaround is to use the dependencies block for these modules instead, which is only used for the purpose of dependency ordering as opposed to dependency passing.

Another workaround: if you know you are not using any outputs from dependency block, you can also set skip_outputs = true. With skip_outputs = true, terragrunt would still include the dependency in the graph, but will skip pulling out the outputs with terragrunt output, thereby bypassing the check for empty output.

Another workaround: if you know you are not using any outputs from dependency block, you can also set skip_outputs = true. With skip_outputs = true, terragrunt would still include the dependency in the graph, but will skip pulling out the outputs with terragrunt output, thereby bypassing the check for empty output.

It seems when terraform outputs  {} only "terragrunt appears to timeout waiting for the output" instead of moving on. I am surprised its hitting the timeout limit.    Maybe its looking  for
{
}

When their  is no output variables in json

It seems when terraform outputs  {} only "terragrunt appears to timeout waiting for the output" instead of moving on. I am surprised its hitting the timeout limit.    Maybe its looking  for
{
}

When their  is no output variables in json

It could also be that terraform has changed its behavior when their are no outputs and you request json
$ terraform output

Warning: No outputs found

The state file either has no outputs defined, or all the defined outputs are
empty. Please define an output in your configuration with the `output` keyword
and run `terraform refresh` for it to become available. If you are using
interpolation, please verify the interpolated value is not empty. You can use
the `terraform console` command to assist.

$ terraform output -json
{}

It could also be that terraform has changed its behavior when their are no outputs and you request json
$ terraform output

Warning: No outputs found

The state file either has no outputs defined, or all the defined outputs are
empty. Please define an output in your configuration with the `output` keyword
and run `terraform refresh` for it to become available. If you are using
interpolation, please verify the interpolated value is not empty. You can use
the `terraform console` command to assist.

$ terraform output -json
{}

@yorinasub17  please label this as a bug, as terragrunt is stuck because terraform outputs  {} when terragrunt expects {<linefeed>}

@denis256 could you look into this one?

Hello,
with terraform 1.0.x, stuck issue is not happening - tested with terragrunt v0.26.7 and with the version from master 0.31.2, now terraform outputs json variables as {} which is handled correctly.

@denis256 What happens in your test repo if app declares no output variables whatsoever?

With commented output,  immediate error response:
$ terragrunt init
ERRO[0000] app/terragrunt.hcl is a dependency of terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs. If this is expected, set the skip_outputs flag to true on the dependency block.
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1

I suspect the issue is when terraform outputs is:
{}
vs expect by the terragrunt code is
{ }
When the JSON contains something there are line feeds after the first { and before the last }
{    something = "hello" }

True, but this is not happening now on the last terraform version 1.0.x), I can try to hack maybe invocation of terraform output -json  to add a new line to see if the behaviour will be different

I suspect terraform would have been 0.13 or 0.14. I was hoping you could read the terragrunt code to check it handles just getting  {} from output. Sorry not a go programmer.

Terragrunt handles it with a timeout, rather than knowing its output is finished.

Thanks for looking into this.....

With commented output, immediate error response:
$ terragrunt init
ERRO[0000] app/terragrunt.hcl is a dependency of terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs. If this is expected, set the skip_outputs flag to true on the dependency block.
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Right, so I think the request in this issue is that Terragrunt does not error out when outputs are empty, but allows it.

Had a look though the source code and can not see any reason for a 20 second delay.
terraform output  ; echo $?
╷
│ Warning: No outputs found
│
│ The state file either has no outputs defined, or all the defined outputs are
│ empty. Please define an output in your configuration with the `output`
│ keyword and run `terraform refresh` for it to become available. If you are
│ using interpolation, please verify the interpolated value is not empty. You
│ can use the `terraform console` command to assist.
╵
0

$ terraform output -json ; echo $?
{}
0

Note that to me Unable to determine underlying exit code  (main.go) reads to me that terragrunt did not get an exit code from terraform.  Is that the intention of this message?

This should've been fixed by https://github.com/gruntwork-io/terragrunt/pull/1811.

Thanks 😃

I think we are going to have to revert #1811 because it had the unfortunate side effect of producing an unhelpful error message when the output is empty. Specifically, in the following example:
dependency "dep" {
  config_path = "../dep"
}

inputs = {
  input = dependency.dep.outputs.id
}

The error message you get when you run plan without the dependency being applied, is:
ERRO[0002] Module ./main has finished with an error: ./main/terragrunt.hcl:6,25-33: Unsupported attribute; This object does not have an attribute named "outputs".  prefix=[./main]

which is very confusing because it implies the outputs syntax is wrong, not that there is no outputs from the dependency which is what the original error message indicated.
I don't actually see a use case to allow empty outputs with dependency without a config that indicates no output should be fetched (which is the skip_outputs = true flag), as otherwise, the terragrunt.hcl would reference dependency.dep.outputs and empty outputs will fail.

For the issue at hand, since there is a concern that reverting that PR might cause the timeout to happen again:
Looking at the code, the only place where this 30 second "timeout" might come into play is this line, where it is waiting for all the dependency fetches to finish. Is it possible that the 30 second "timeout" is actually terragrunt waiting for other dependency fetching to happen in parallel, one of which might be using remote state and there is a network delay? This might be highlighted more with verbose logging using --terragrunt-log-level debug.
Another possibility is that the "timeout" is actually from terragrunt running the output command. Under certain circumstances, note that terragrunt output could take a long time because it runs terragrunt init on the dependent module to initialize the remote state (see the docs on dependency, specifically section "Can I speed up dependency fetching?"). You can disable this and use the cached init if you set disable_dependency_optimization = true on the remote_state block.
The reason I don't think the issue is that terragrunt is waiting for a line feed, is because the terraform output logic is not parsing the output line by line. In fact, the only wait that happens regarding the outputs is the wait for the terraform subprocess to finish (it uses this function under the hood RunTerraformCommandWithOutput, where the only wait is on cmd.Wait), so it doesn't matter if terraform returns {} or {<linefeed>}.
Either way, the fix in #1811 wouldn't make a difference to the timeout logic because the code change is not directly related to the wait logic in terragrunt. So I think reverting it shouldn't have an effect on the wait times.

Hm, ok, I agree to revert this change if it is generating more confusions


Add function for multi label confusion matrices

Is your feature request related to a problem? Please describe.
Example nb for multi label classification uses the standard interp.plot_confusion_matrix() is used, but this has no meaning. The proper confusion matrices are computed lower but not as a plot. To make it more readable for newbies, a set of 2 x 2 plots would be helpful
Describe the solution you'd like
Add a function taking the interp object, and uses sklearn multilabel_confusion_matrix() to get each individual confmatrix and plot then in a grid to make it visual.
This will allow to make the example nb more readable for newbies and also can be reused for other
Describe alternatives you've considered
We also can create a class MultiLabelClassificationInterpretation, that inherits from ClassificationInterpretation and adds the method .plot_multilabel_confusion_matrices()
Additional context
Code for the function is ready. Just need to decide if we do as a function or an Class method. Guidance on preferred option and where to add it appreciated.

Interactively show multilabel conf matrix
In case there might be too many categories（like 80+ for coco）,maybe we can try something like?
def plot_multilabel_confusion_matrices(self):
    category_name_list = self.categories
    @interact
    def show_binary_confusion(category = category_name_list):
        self.plot_confusion(category)

Just a discussion, your judgement is as wonderful.

Yes, this sounds good. Thanks. Will experiment with that.


bitcoin: Fix path to the readme

We moved to a submodule and didn't fix the readme path in the bitcoin manifest.

Lol, possibly the fastest 2-acks-and-merged PR ever.

Like a boss!


remove the release when helm had installed failed. - [merged]

In GitLab by @tmon546596046 on Nov 24, 2020, 07:00
Merges bugfix2671 -> dev
report the information for release failed.

In GitLab by @wknet123 on Nov 24, 2020, 08:41
mentioned in commit f3ac2560ffa856f1545d7e757fd1adaed5f885e6

In GitLab by @wknet123 on Nov 24, 2020, 08:41
merged


Version the envoy.type API package

Currently the envoy.type package is versionless. I think we should make this consistent with other API packages in v3, since we are actually likely to see churn here going forward, as we migrate to UDPA. Ultimately, having the freedom to deprecate is valuable and comes at a low cost with the automation in the new stable API versioning approach.

This is actually required, api/envoy/type/matcher/string.proto already features a deprecation, due to the simple regexes going away.


firebase functionality for projects page

firebase functionality for create and delete projects

Hi Team,
I am collaborating with @Jakeclearwater on the Project page to allow the user to create and delete the project. Below is the screen grab of the completed feature.
Thanks,
Dani.


Add introspection option texts

Added the token introspection texts

Thank you. While you are enjoying your holiday, I will fix the final minor edits, such as the table of contents.


Add a php_cs config file to apply a declared policy automatically

I added a .php_cs.dist file so that contributors don't have to worry about which rules to apply.
This file let us invoke the php-cs-fixer without any options.
./vendor/bin/php-cs-fixer fix

The configuration I made is  just a basement, so if you would like to change anything,   please feel free to make comments or modify it. :pray:

Very excellent commits! Thanks!


SodaTest should be structured in a way that automatically builds releases for both Scala 2.8 and 2.9

Coercion doesn't work correctly due to a bug in the Scala 2.9.1 compiler, so building against 2.9 will have to wait for that to be resolved:
https://issues.scala-lang.org/browse/SI-5255


cclient/serializer/json:remove_neighbors - serialize response & deserialize request

This needs implementation, touches:
cclient/serializer/serializer.h
cclient/serializer/json/json_serializer.c
cclient/serializer/json/remove_neighbors.{c,h}
cclient/serializer/json/tests/remove_neighbors.c

fixed in #980


add Node.js 14, update default Node.js targets to use 12

I'm not sure how to resolve this build issue. If I'm reading the logs correctly, this is currently failing because stable/nodejs/nodejs.jsonnet doesn't contain an image tagged as kubeless/nodejs:14; but, if so, this is a chicken and egg problem, because that image won't exist until this PR is merged (or the image is manually built and pushed).
whenever y'all have a chance, please let me know if / how I can help resolve this build issue. thanks!

Thanks @knksmith57, I have built the image and added it to the manifest. Now it should be properly tested.

awesome, thanks for the speedy turn around!
and just a heads up that I've filed #76 to discuss rebuilding the existing images to pick up security releases. cheers! :beers:


UHF with customized Hamiltonian

Good afternoon,
I have an issue running UHF with customized hamiltonian. The calculation works well if the calculation is done with RHF (mf = scf.RHF(mol)). I have used an example of the customary RHF provided in the manual and replaced mf = scf.RHF(mol) with mf = scf.UHF(mol).  scf.UHF(mol) works for non-customized hamiltonian. The 1 and 2 e integrals that are used are made for 1d Hubbard model. Thank you in advance for any help you are able to provide.
def initialize_UHF( self, h_site, V_site ):
Norbs = self.Nele
mol = gto.M()
mol.nelectron = self.Nele
mol.imncore_anyway = True
mf = scf.UHF(mol)
mf.get_hcore = lambda *args: h_site
mf.get_ovlp = lambda *args: np.eye(Norbs)
mf._eri = ao2mo.restore(8, V_site, Norbs)
mf.kernel()
mfRDM = mf.make_rdm1()
return mfRDM
and the error that I receive is :
mf1RDM = self.initialize_UHF(h_site, V_site)
File "/storage/home/hcoda1/2/dyehorova3/research/pDMET.py", line 317, in initialize_UHF
mf.kernel()
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/lib/misc.py", line 598, in aliased_fn
return getattr(self, fname)(*args, **kwargs)
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/scf/hf.py", line 1642, in scf
kernel(self, self.conv_tol, self.conv_tol_grad,
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/scf/hf.py", line 122, in kernel
dm = mf.get_init_guess(mol, mf.init_guess)
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/scf/hf.py", line 1572, in get_init_guess
dm = self.init_guess_by_1e(mol)
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/scf/uhf.py", line 848, in init_guess_by_1e
for b0, b1, p0, p1 in mol.aoslice_by_atom():
File "/storage/home/hcoda1/2/dyehorova3/.conda/envs/dyehorova3/lib/python3.8/site-packages/pyscf/gto/mole.py", line 1647, in aoslice_by_atom
shell_start[0] = 0
IndexError: index 0 is out of bounds for axis 0 with size 0

I had a brief look. Could it be that this line: https://github.com/pyscf/pyscf/blob/master/pyscf/gto/mole.py#L1656 gets called with mol.natm being equal to zero? Just to check: Are you referring to this example which you said you modified: https://github.com/pyscf/pyscf/blob/master/examples/scf/40-customizing_hamiltonian.py ? Interestingly, the example says that an initial guess for the SCF calculation should be specified but then it does not seem to specify an initial guess. I am not sure but on first glance it seems RHF does not call mol.natm when estimating the initial guess for the SCF calc. Would your problem run fine if you specified an initial guess for your SCF calculation?

A quick fix can be
mf.init_guess = 'hcore'

@sunqm would this also be an issue for other SCF classes (other than RHF and UHF)?

In RHF class, this corner case has been considered. Initial guess can be switched to "hcore" automatically. Error here is caused by a different place in UHF initial guess function which tries to break the spin-symmetry between the spin-up and spin-down densities using information from atoms.

Fixed in PR #1359


Remove confusing usage of CMK in DynamoDB KMS query

CMK can mean customer master key and customer managed keys.
In my mind, it is most evidently the latter, which confused me when I read it the in the DynamoDB query and reason.
The underlying sse_description does not mention CMK at all: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_SSEDescription.html
Also, AWS has deprecated the usage of CMK for customer master key:

Note : AWS KMS is replacing the term customer master key (CMK) with AWS KMS key and KMS key. The concept has not changed. To prevent breaking changes, AWS KMS is keeping some variations of this term.

https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys
Given the above, I believe it is better to remove CMK from the query name and resulting reason.
Checklist

[ ] Issue(s) linked

Hey @pdecat , FYI we're reviewing this query (and the other DDB table encryption query) to ensure we're checking for the right conditions, and we can adjust the names accordingly. Based on our testing of the AWS Config rule itself, we'll provide more feedback in this PR afterward.

@pdecat We ran some tests and confirmed that the AWS Config rule produces the following results for each of the encryption options (from https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/EncryptionAtRest.html):

AWS owned key – Default encryption type. The key is owned by DynamoDB (no additional charge). - Non-compliant
AWS managed key – The key is stored in your account and is managed by AWS KMS (AWS KMS charges apply). - Compliant
Customer managed key – The key is stored in your account and is created, owned, and managed by you. You have full control over the KMS key (AWS KMS charges apply). - Compliant

So the proposed query + reason changes in this PR look good. Apologies for the PR being accidentally closed (happened when we merged in and deleted the release branch), can you please create a new PR from your pdecat:dynamodb_kms branch again and we'll have another review? Thanks!


Improve crate documentation

The library is somewhat poorly documented. A better documentation should be created instead.
For instance:

there is no documentation on how to use the library itself to show a single slide
there is no documentation about the shipped command line tool (the hot reload, and such)
and there is missing documentation on objects, functions, and so on

Done in bb9d4dd1142f70d4bf00d310bda8b7d6f60dc284


bngblaster PPPoE does not work with accel-ppp

Describe the bug
Bngbluster does not work with accel-ppp as PPPoE-client
To Reproduce
Version (bngblaster -v):
$ sudo bngblaster -v
Version: DEV
Compiler: GNU (11.4.0)
IO Modes: packet_mmap_raw (default), packet_mmap, raw

Distro Ubuntu 22.04:
$ sudo uname -a
Linux sever 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Accel-ppp version:
$ sudo accel-cmd -V
accel-cmd 1.12.0-250-g9669bcb

JSON configuration:
{
   "interfaces":{
      "access":[
         {
            "__comment__":"PPPoE Client",
            "interface":"enp6s0",
            "type":"pppoe",
            "qinq":false,
            "session-group-id":1
         }
      ]
   },
   "pppoe":{
      "reconnect":true,
      "discovery-timeout":3,
      "discovery-retry":10
   },
   "ppp":{
      "mru":1492,
      "authentication":{
         "username"<EMAIL_ADDRESS>         "password":"test",
         "timeout":1,
         "retry":60
      },
      "lcp":{
         "conf-request-timeout":5,
         "conf-request-retry":30,
         "keepalive-interval":30,
         "keepalive-retry":3
      },
      "ipcp":{
         "enable":true
      },
      "ip6cp":{
         "enable":true
      }
   },
   "dhcpv6":{
      "enable":false
   },
   "session-traffic":{
      "ipv4-pps":1
   }
}

Accel-ppp configuration:
cat /run/accel-pppd/pppoe.conf

[modules]
log_syslog
pppoe
shaper
ippool
auth_pap
auth_chap_md5
auth_mschap_v1
auth_mschap_v2

[core]
thread-count=4

[log]
syslog=accel-pppoe,daemon
copy=1
level=5

[auth]
noauth=1

[client-ip-range]
disable

[ip-pool]
<IP_ADDRESS>/21,name=ONE
gw-ip-address=<IP_ADDRESS>

[dns]
dns1=<IP_ADDRESS>

[ppp]
verbose=1
check-ip=1
ccp=0
unit-preallocate=0
min-mtu=1280
mppe=prefer
lcp-echo-interval=30
lcp-echo-timeout=0
lcp-echo-failure=3
ipv6=deny
ipv6-accept-peer-intf-id=0
mtu=1492

[pppoe]
verbose=1
ac-name=ACN

interface=eth0
interface=eth1
interface=eth2
noauth=1
ip-pool=ONE
gw-ip-address=<IP_ADDRESS>/21

[cli]
tcp=<IP_ADDRESS>:2001

Steps to reproduce the behavior:

Start bngblaster sudo bngblaster -C one.json -I
Check accel-ppp logs

Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=69 <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=69 <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=6a <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=6a <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=6b <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=6b <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=6c <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=6c <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=6d <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=6d <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=6e <mru 1492> <magic 29116a7e>]
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfNak id=6e <auth c023>auth: unexcepcted configure-nak
Nov 03 12:53:13 r4 accel-pppoe[703513]: eth1:: ]

It cannot connect and create a PPPoE session.
Expected behavior
Expected to create PPPoE session.
The logs for a working session if I connect from another device as PPPoE client:
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1: recv [PPPoE PADI 52:54:00:92:35:5d => ff:ff:ff:ff:ff:ff sid=0000 <Service-Name > <Host-Uniq cc100000>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1: send [PPPoE PADO 52:54:00:04:33:2b => 52:54:00:92:35:5d sid=0000 <AC-Name ACN> <Service-Name > <AC-Cookie 29155e431fdfd0e1fa81938f42686cc89dd501f63828dcf2> <Host-Uniq cc100000>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1: recv [PPPoE PADR 52:54:00:92:35:5d => 52:54:00:04:33:2b sid=0000 <Service-Name > <Host-Uniq cc100000> <AC-Cookie 29155e431fdfd0e1fa81938f42686cc89dd501f63828dcf2>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1: send [PPPoE PADS 52:54:00:04:33:2b => 52:54:00:92:35:5d sid=0140 <AC-Name ACN> <Service-Name > <Host-Uniq cc100000>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: lcp_layer_init
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: auth_layer_init
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: ccp_layer_init
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: ipcp_layer_init
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: ipv6cp_layer_init
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: ppp establishing
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: lcp_layer_start
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=45 <mru 1492> <magic 525583fa>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfReq id=1 <mru 1492> <magic f2551b7e>]
Nov 03 12:55:38 r4 accel-pppoe[703513]: eth1:: send [LCP ConfAck id=1]
Nov 03 12:55:41 r4 accel-pppoe[703513]: eth1:: fsm timeout 9
Nov 03 12:55:41 r4 accel-pppoe[703513]: eth1:: send [LCP ConfReq id=45 <mru 1492> <magic 525583fa>]
Nov 03 12:55:41 r4 accel-pppoe[703513]: eth1:: recv [LCP ConfAck id=45 <mru 1492> <magic 525583fa>]
Nov 03 12:55:41 r4 accel-pppoe[703513]: eth1:: lcp_layer_started
Nov 03 12:55:41 r4 accel-pppoe[703513]: eth1:: auth_layer_start
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: connect: ppp0 <--> pppoe(52:54:00:92:35:5d)
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: ppp connected
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: auth_layer_started
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: ccp_layer_start
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: ipcp_layer_start
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: ipv6cp_layer_start
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: recv [LCP EchoReq id=0 <magic f2551b7e>]
Nov 03 12:55:41 r4 accel-pppoe[703513]: ppp0:: send [LCP EchoRep id=0 <magic 525583fa>]
Nov 03 12:55:41 r4 (udev-worker)[769357]: Network interface NamePolicy= disabled on kernel command line.
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: recv [IPCP ConfReq id=1 <addr <IP_ADDRESS>> <dns1 <IP_ADDRESS>> <dns2 <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: send [IPCP ConfReq id=f4 <addr <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: send [IPCP ConfRej id=1 <dns2 <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: recv [IPCP ConfAck id=f4 <addr <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: recv [IPCP ConfReq id=2 <addr <IP_ADDRESS>> <dns1 <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: send [IPCP ConfNak id=2 <addr <IP_ADDRESS>> <dns1 <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: recv [IPCP ConfReq id=3 <addr <IP_ADDRESS>> <dns1 <IP_ADDRESS>>]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: send [IPCP ConfAck id=3]
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: ipcp_layer_started
Nov 03 12:55:44 r4 accel-pppoe[703513]: ppp0:: pppoe: ppp started

Screenshots

If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

You are using accel-ppp as BNG (PPPoE server) and try to connect BNG Blaster as PPPoE client to the accel-ppp PPPoE server, is this correct?

It seems that auth is disabled on your side but BNG Blaster tries to authenticate, it will also not fallback to no-auth.

It seems that auth is disabled on your side but BNG Blaster tries to authenticate, it will also not fallback to no-auth. The BNG Blaster currently enforces PAP or CHAP authentication.

Thanks for the reply.
noauth=1 was added to apply any login with any auth. It seems it is a wrong way.
Fixed with changing the configuration to
[auth]
any-login=1

I guess it could be closed :)
@GIC-de Thanks

Invalid issue, misconfiguration on Accel-ppp site.
close it


Uncaught ReferenceError: remaining is not defined

Hi there, this error occurs on load.
Installed using npm, using with a svelte project.
Fix should be just a case of defining the variable "remaining" before use.
Uncaught ReferenceError: remaining is not defined
at LZWEncoder.encode (canvas-capture.js:3402:14556)
at GIFEncoder.writePixels (canvas-capture.js:3402:12864)
at GIFEncoder.addFrame (canvas-capture.js:3402:7599)
at renderFrame (canvas-capture.js:3402:28769)
at self.onmessage (canvas-capture.js:3402:29314)

oof, this error is coming from a pre-compiled dependency.  I've added a fix to the dev branch, can you test this by running:
npm install https://github.com/amandaghassaei/canvas-capture#dev

If that works, I'll merge it into main.
thanks!

ok I took a look at https://github.com/jnordberg/gif.js/blob/92d27a02841339e202c75150dcf6fe5f4fa42ec5/src/LZWEncoder.js
and realized that remaining and curPixel should be defined in the root of LZWEncoder, rather than inside a function.  I also found another variable n_bits that needed to be defined.  I've just commited the latest to the dev branch, let me know if that's working!

@amandaghassaei Thank you for your work.
After looking further I found that this issue didn't occur in incognito mode. I tried disabling extensions one by one and it seems some how this issue only occurs when the official react dev tools extension is enabled. It probably declares the variables in same scope as gif.js. So, this seems to be a non issue altogether.

@symetryn sounds good, thanks for looking into that.
@CreativeTransmissions does the current dev branch fix the svelte issue?  or do you have a project that I can take a look at to resolve this?  thanks!

Sorry, @amandaghassaei , do you have merge this last 4 commits into main branch?

Because in the main branch I have the same issue;

@Paolino95  I don't think I ever did because I was waiting to hear back if the changes I made had any effect.  Can you import the dev branch and test it?
npm install git+https://github.com/amandaghassaei/canvas-capture.git#dev
thanks

I had the same problem and the dev branch fixed it for me


401 Bad credentials

Hello, I'm just trying to retrieve the token but I still have the same result.
curl request :
curl -X POST https://mylocalhost.com/api/login_check -d _username=johndoe -d _password=test --insecure

response :
{"code":401,"message":"Bad credentials"}

my symfony version : 2.5.10 - ezpublish/dev/debug
lexik/jwt-authentication-bundle version : 1.6.0
security.yml :
firewalls:
        login:
            pattern:  ^/api/login
            stateless: true
            anonymous: true
            form_login:
                check_path: /api/login_check
                success_handler: lexik_jwt_authentication.handler.authentication_success
                failure_handler: lexik_jwt_authentication.handler.authentication_failure
                require_previous_session: false
        api:
          pattern:   ^/api
          stateless: true
          lexik_jwt: ~

routing.yml :
api_login_check:
    path: /api/login_check

exactly the same config for parameters.yml and I add the jwt_key_pass_phrase used when i generate my private/public keys and i have added the apache config + restart apache
any idea ?

Do you have a user provider configured in your security.yml ?
With your actual configuration, just try to add these lines to your security.yml :
encoders:
  Symfony\Component\Security\Core\User\User: plaintext

providers:
  in_memory:
    memory:
      users:
        johndoe:
          password: test

Hope it solves your issue.

thx, okay so i add this
encoders:
  Symfony\Component\Security\Core\User\User: plaintext
providers:
    in_memory:
        memory:
            users:
                johndoe:
                    password: test
                    roles: 'IS_AUTHENTICATED_FULLY'
[...]
            form_login:
                [...]
                provider: in_memory

but no success. I still have 401 bad credentials

Hi @MarioPatch,
Could you please show your access_controls? My guess is that the problem come from them.

Sorry my mistake it does not return a 401 but 500. Sorry for the noise.

No problem @MarioPatch. Just a thing thought, for this kind of support issues, you should before look if a similar question exists on StackOverflow by searching questions tagged with lexikjwtauthbundle. If no question, ask your own one.
And last, if you can't get help on SO, you can open an issue here, as you did at first.
Thank you.

That's what I did, may be I had definitely look bad... A lot of problems but with a other provider or with "guard". This simple exemple with the "in_memory" provider would have helped me a lot to understand the security system of sf2. Thx again yoannfleurydev


add empty bloomfilter bits function

something like bloom.empty() that set all bits to initial status
plz :)

Why can't you recreate the Bloom filter? Is this an issue of performance?


splitting support over FnAPI for Go SDK

Adding support for splitting over FnApi for Go SDK.

Thanks @lostluck ! Updated, PTAL.

thanks!

@aaltay Please merge! Thanks!

Hi, could you please annotate the description of the PR with the associated JIRA issue?
(and open one if there isn't)

https://issues.apache.org/jira/browse/BEAM-5791
This change is the "unreading elements already sent by the runner" part.

Also related: https://issues.apache.org/jira/browse/BEAM-6655

run go postcommit


ticker.info.get is giving 404 Client Error since 30-OCT-2023 afternoon

Same here. Still going this morning. This is the error code I got:
Traceback (most recent call last):   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/main.py", line 167, in <module>     main()   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/main.py", line 145, in main     last_price = current_price(ticker)   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/main.py", line 24, in current_price     price = yf.Ticker(ticker).info['currentPrice']   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/yfinance/ticker.py", line 142, in info     return self.get_info()   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/yfinance/base.py", line 1736, in get_info     data = self._quote.info   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/yfinance/scrapers/quote.py", line 571, in info     self._fetch(self.proxy)   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/yfinance/scrapers/quote.py", line 600, in _fetch     result = self._data.get_raw_json(   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/yfinance/data.py", line 75, in get_raw_json     response.raise_for_status()   File "/Users/willmorrissey/Documents/Personal/Programming/Python/Trading Bot 3.0/venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status     raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://query2.finance.yahoo.com/v6/finance/quoteSummary/MVIS?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true

Same here. Trying to open URL in Chrome returns:
_yahoo!
Will be right back...
Thank you for your patience.
Our engineers are working quickly to resolve the issue._

Same... receiving the following:
Traceback (most recent call last):
  File "ticker.py", line 68, in <module>
    main()
  File "ticker.py", line 34, in main
    match thisstock.info["quoteType"]:
          ^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/yfinance/ticker.py", line 142, in info
    return self.get_info()
           ^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/yfinance/base.py", line 1736, in get_info
    data = self._quote.info
           ^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/yfinance/scrapers/quote.py", line 571, in info
    self._fetch(self.proxy)
  File "/lib/python3.11/site-packages/yfinance/scrapers/quote.py", line 600, in _fetch
    result = self._data.get_raw_json(
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/yfinance/data.py", line 75, in get_raw_json
    response.raise_for_status()
  File "/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://query2.finance.yahoo.com/v6/finance/quoteSummary/%5EDJI?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true

thisis an example link that yfinance goes to but yahoo throws error:
https://query2.finance.yahoo.com/v6/finance/quoteSummary/AAL?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true

Same 404 error here - is the yahoo finance API down?

I'm in a class thats using yfinance, and I seem to be the only person having these problems

I am also getting the same problem
msft = yf.Ticker("MSFT")
msft_data = msft.info
print(msft_data.get("grossMargins"))

same here

Is there any alternative to get market_cap and enterprise_value with out using ticker.info

Duplicate issue.

do you have a link to the duplicate issue?

Duplicate issue.

Interesting because the other 404 issue that I see that is currently open was submitted 2 weeks ago and I only started to receive this issue this morning.

@KryptoEmman  Because USA was safe initially but not anymore. But you knew that because you read the thread ...

From what I've been able to find, this problem is only happening with the .info function. Sometimes the .info function breaks but it'll get fixed again soon (this has happened before). for now, if you can get buy with .fast_info then you should be ok. We just need to wait for the yfinance.info function to get updated again. (I'm not sure if this is the same problem that everyone else is having).

ticker.fast_info() isn't responding either.  Is it available some other way?

ok, print(yf.Ticker("AAPL").fast_info["last_price"]) works, but there are fewer keys in fast_info[] than the original .info[]

Same issue, Still today. Anybody found a fix? The fixes in the duplicate didn't do it.

@AliCodesJava
I gave up waiting. Did some digging around and ended up writing my own from broken examples I found out there using LXML and Requests modules grabbing the tables and values from the Summary and Statistics page tabs at their associated URLs (https://ca.finance.yahoo.com/quote/{TICKER}?p={TICKER}&.tsrc=fin-srch and https://ca.finance.yahoo.com/quote/{TICKER}/key-statistics?p={TICKER} respectively) instead of the Yahoo Finance "API" that yfinance and others Yahoo Finance readers typically use and which keep getting blown up by Yahoo from time to time. I find that those tabs give me all of the info I would normally need, but one can easily adapt things to get info from additional tabs. Still working out some kinks in the code and also create and return an ticker object with all the pertinent properties obtained from the values on those tabs (using having to use a ticker_data.get("key_name") from after I return a dictionary object with all the ticker data, which is bit sloppy. Let me know if you're interested and I'll share what I put together somehow.

@AliCodesJava
I gave up waiting. Did some digging around and ended up writing my own from broken examples I found out there using LXML and Requests modules grabbing the tables and values from the Summary and Statistics page tabs at their associated URLs (https://ca.finance.yahoo.com/quote/{TICKER}?p={TICKER}&.tsrc=fin-srch and https://ca.finance.yahoo.com/quote/{TICKER}/key-statistics?p={TICKER} respectively) instead of the Yahoo Finance "API" that yfinance and others Yahoo Finance readers typically use and which keep getting blown up by Yahoo from time to time. I find that those tabs give me all of the info I would normally need, but one can easily adapt things to get info from additional tabs. Still working out some kinks in the code and also create and return an ticker object with all the pertinent properties obtained from the values on those tabs (using having to use a ticker_data.get("key_name") from after I return a dictionary object with all the ticker data, which is bit sloppy. Let me know if you're interested and I'll share what I put together somehow.

Please share when done, this sounds great!

@AliCodesJava I gave up waiting. Did some digging around and ended up writing my own from broken examples I found out there using LXML and Requests modules grabbing the tables and values from the Summary and Statistics page tabs at their associated URLs (https://ca.finance.yahoo.com/quote/{TICKER}?p={TICKER}&.tsrc=fin-srch and https://ca.finance.yahoo.com/quote/{TICKER}/key-statistics?p={TICKER} respectively) instead of the Yahoo Finance "API" that yfinance and others Yahoo Finance readers typically use and which keep getting blown up by Yahoo from time to time. I find that those tabs give me all of the info I would normally need, but one can easily adapt things to get info from additional tabs. Still working out some kinks in the code and also create and return an ticker object with all the pertinent properties obtained from the values on those tabs (using having to use a ticker_data.get("key_name") from after I return a dictionary object with all the ticker data, which is bit sloppy. Let me know if you're interested and I'll share what I put together somehow.

I see! Super interested! Would appreciate it if you shared, please!

@AliCodesJava @
Here you go.
<from lxml import html
import requests
from collections import OrderedDict
class ticker_data_object:
'''
Instantiation of ticker_data_object will set attributes and assign their value(s) from the URL response keys and values
stored to ticker data dictionary passed while using valid attribute names mapped in ticker_data_translator dictionary
to keys retrieved from URL response
'''
def __init__(self, data=None):
    if data is not None:
        for key, value in data.items():
            attribute = [translator_value for translator_key, translator_value in ticker_data_translator.items() if key.startswith(translator_key) == True][0]
            setattr(self, attribute, value)

def get_ticker_data_translator():
'''
Map valid attribute names to use for each key retrived from the URL response

NOTE: Keys below are substrings used to locate actual key names restrieved from URL responses
      some of which may terminate with dynamic info such as a specifica date

'''
return {
        'Current Price': 'current_price',
        'Previous Close': 'previous_close',
        'Open': 'open_price',
        'Bid': 'bid',
        'Ask': 'ask',
        'Day\'s Range': 'days_range',
        '52 Week Range': 'fifty_two_week_range',
        'Volume': 'volume',
        'Avg. Volume': 'avg_volume',
        'Market Cap': 'market_cap',
        'Beta (5Y Monthly)': 'beta_5y_monthly',
        'PE Ratio (TTM)': 'pe_ratio_ttm',
        'EPS (TTM)': 'eps_ttm',
        'Earnings Date': 'earnings_date',
        'Forward Dividend & Yield': 'forward_dividend_and_yield',
        'Ex-Dividend Date': 'ex_dividend_date',
        '1y Target Est': 'one_year_target_est',
        'Market Cap (intraday)': 'market_cap_intraday',
        'Enterprise Value': 'enterprise_value',
        'Trailing P/E': 'trailing_pe',
        'Forward P/E': 'forward_pe',
        'PEG Ratio (5 yr expected)': 'peg_ratio_5_yr_expected',
        'Price/Sales (ttm)': 'price_to_sales_ttm',
        'Price/Book (mrq)': 'price_to_book_mrq',
        'Enterprise Value/Revenue': 'enterprise_value_to_revenue',
        'Enterprise Value/EBITDA': 'enterprise_value_to_revenue',
        '52-Week Change': 'fifty_two_week_change',
        'S&P500 52-Week Change': 'sp500_52_wee_change',
        '52 Week High': 'fifty_two_week_high',
        '52 Week Low': 'fifty_two_week_low',
        '50-Day Moving Average': 'fifty_day_average',
        '200-Day Moving Average': 'two_hundred_day_moving_average',
        'Avg Vol (3 month)': 'avg_vol_3_month',
        'Avg Vol (10 day)': 'avg_vol_10_day',
        'Shares Outstanding': 'shares_outstanding',
        'Implied Shares Outstanding': 'implied_shares_oustanding',
        'Float': 'float_amount',
        '% Held by Insiders': 'percentage_held_by_insiders',
        '% Held by Institutions': 'percentage_held_by_institutions',
        'Shares Short': 'shares_short',
        'Short Ratio': 'short_ratio',
        'Short % of Float': 'short_percentage_of_float',
        'Short % of Shares Outstanding': 'short_percentage_of_shares_outstanding',
        'Shares Short (prior month': 'shares_short_prior_month',
        'Forward Annual Dividend Rate': 'forward_annual_dividend_rate',
        'Forward Annual Dividend Yield': 'forward_annual_dividend_yield',
        'Trailing Annual Dividend Rate': 'trailing_annual_dividend_rate',
        'Trailing Annual Dividend Yield': 'trailing_annual_dividend_yield',
        '5 Year Average Dividend Yield': 'five_year_average_dividend_yield',
        'Payout Ratio': 'payout_ratio',
        'Dividend Date': 'dividend_date',
        'Ex-Dividend Date': 'ex_dividend_date',
        'Last Split Factor': 'last_split_factor',
        'Last Split Date': 'last_split_date',
        'Fiscal Year Ends': 'fiscal_year_ends',
        'Most Recent Quarter (mrq)': 'most_recent_quarter_mrq',
        'Profit Margin': 'profit_margin',
        'Operating Margin (ttm)': 'operating_margin_ttm',
        'Return on Assets (ttm)': 'return_on_assets_ttm',
        'Return on Equity (ttm)': 'return_on_equity_ttm',
        'Revenue (ttm)': 'revenue_ttm',
        'Revenue Per Share (ttm)': 'revenue_per_share_ttm',
        'Quarterly Revenue Growth (yoy)': 'quarterly_revenue_growth_yoy',
        'Gross Profit (ttm)': 'gross_profit_ttm',
        'EBITDA': 'ebitda',
        'Net Income Avi to Common (ttm)': 'net_income_avi_to_common_ttm',
        'Diluted EPS (ttm)': 'diluted_eps_ttm',
        'Quarterly Earnings Growth (yoy)': 'quarterly_earnings_growth_yoy',
        'Total Cash (mrq)': 'total_cash_mrq',
        'Total Cash Per Share (mrq)': 'total_cash_per_share_mrq',
        'Total Debt (mrq)': 'total_debt_mrq',
        'Total Debt/Equity (mrq)': 'total_debt_to_equity_mrq',
        'Current Ratio (mrq)': 'current_ratio_mrq',
        'Book Value Per Share (mrq)': 'book_value_per_share_mrq',
        'Operating Cash Flow (ttm)': 'operating_cash_flow_ttm',
        'Levered Free Cash Flow (ttm)': 'levered_free_cash_flow_ttm',
        'Ticker': 'ticker'
        }

def get_ticker_data(ticker):
# GET & Parse Response from Summary URL to ticker_data dictionary
summary_url = "http://finance.yahoo.com/quote/%s?p=%s" % (ticker, ticker)
summary_response = requests.get(summary_url, verify=True, timeout=30)
summary_parser = html.fromstring(summary_response.text)
current_price = summary_parser.xpath('//*[@id="quote-header-info"]/div[3]/div[1]/div[1]/fin-streamer[1]/text()')
summary_table = summary_parser.xpath('//div[contains(@data-test,"summary-table")]//tr')
ticker_data = OrderedDict()
ticker_data.update({'Current Price': current_price[0]})
for table_data in summary_table:
    raw_table_key = table_data.xpath('.//td[1]//text()')
    raw_table_value = table_data.xpath('.//td[2]//text()')
    table_key = ''.join(raw_table_key).strip()
    table_value = ''.join(raw_table_value).strip()
    ticker_data.update({table_key: table_value})

# GET & Parse Response from Statistics URL to ticker_data dictionary
statistics_url = "http://finance.yahoo.com/quote/%s/key-statistics?p=%s" % (ticker, ticker)
statistics_response = requests.get(statistics_url, verify=True, timeout=30)
statistics_parser = html.fromstring(statistics_response.text)
statistics_table = statistics_parser.xpath('//div[contains(@class,"Mstart(a) Mend(a)")]//tr')
for table_data in statistics_table:
    raw_table_key = table_data.xpath('.//td[1]//text()')
    raw_table_value = table_data.xpath('.//td[2]//text()')
    table_key = ''.join(raw_table_key).strip()
    table_value = ''.join(raw_table_value).strip()
    ticker_data.update({table_key: table_value})

# Add Ticker key to ticker_data dictionary
ticker_data.update({'Ticker': ticker})

# Return TickerData object from ticker_data disctionary
return ticker_data_object(ticker_data)

if name == "main":
# Get ticker_data_translator dictionary
ticker_data_translator = get_ticker_data_translator()

stock_tickers_list = ['GOOGL', 'AMZN', 'AAPL', 'META', 'MSFT', 'NVDA', 'TSLA']

for stock_ticker in stock_tickers_list:
    ticker_data = get_ticker_data(stock_ticker)
    print(ticker_data.ticker + " current price: " + ticker_data.current_price)>


How to run wordpress with this server?

This software looks very interesting and promising.
However, i didn't find some dock that explains how to use it with php apps .
For example, if i want to run wordpress with it. What should i do?
As i understand, i have to create a worker. But it is not clean what should be in that worker. Just require("wordpress/index.php")  ?
Also, as i understand PHP must be installed separately. It is not part of this code. What are requirements for PHP intallation?
What are requirements fro PHP on different platforms?
My aim is to understand  if i can use this tool to make a desktop version of my PHP application. I want to make installation package with my PHP code, some web server and PHP itself

Hey!
I don't think its possible to run WP behind RR. You need PSR7 compatible system.
About PHP installation - it can be any PHP version. As long as it runs from the console.

Wordpress works with mysql ok. There is a lot of plugin for example,woocommerce or other similar ( mycred  https://wordpress.org/plugins/mycred/  )  plugin saves transactions in mysql. Is it possible to use part with this db, that tables carrying transactions from mysql partly go into blockchain?

If you are talking about Golang to PHP SDK to communicate with blockchain - yes, it is possible.

If you are talking about Golang to PHP SDK to communicate with blockchain - yes, it is possible.
My site galonet.eu/wallet. It's a little harder to sign in because I put in double e-mail because of spammers. When you first sign up you get 8000 dolars, there are options to send to another user. I'd like to put that transaction in the blockchain.

You can implement it using Golang SDK, there are examples in roadrunner docs how to create your own service.

I don't think its possible to run WP behind RR. You need PSR7 compatible system.

...

Wordpress works with mysql ok.

I'm confused - RR does or does not require a strictly PSR7-compatible app, or can you run any PHP script with it?

RoadRunner is not only a web server but an application server. This means you can move some of your functionality to golang and still serve the app using the classing PHP-FPM method.
In this case, it makes sense to move Blockchain communication methods to Golang.
On another end, RoadRunner does not require PSR-7 (you can use low-level HTTP protocol instead).
But it does require your application to be capable of running in stateless mode. Unfortunately, WordPress did everything it can to build architecture incapable of running in stateless mode.

Unfortunately, WordPress did everything it can to build architecture incapable of running in stateless mode.

I am not sure I understand. WP's only "state" mechanism is cookies. It doesn't use sessions, or anything else. How is this "incapable of running in stateless mode" claim determined?

You are not able to pass more than one request through the WP. Since WP treats the request as a global instance it will cache its values inside the config and other functions. This makes impossible to reuse already initiated application. This is caused by the fact that WP does not use any request/response abstraction.

Someone got it running under Swoole.
README in Wordpress-PSR/swoole explains ideas that could (maybe) work for Roadrunner.
Non-trivial, experimental.

https://github.com/WordPress-PSR/request-handler/
https://github.com/Wordpress-PSR/swoole

Closing due to the https://github.com/spiral/roadrunner/issues/64#issuecomment-586931926.

Is it available now ??

No, see comments above.

Is it available now ??

No, see comments above.


[Feature]: add links to resouces in competitive programming page

Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response

!assign me

give it to me. previously i am the one who added all resources to this page. i can do it better.

@ishan-nahid we need you to add relevant images and links to  all the resources and also add some youtube channels as resources such as takeyouforward and other cp channels

is it possible making this into two separate PRs? one for all links and other one for images.
what would be the image standard size? it would be helpful if you specify the image size.

have a good day.

@ishan-nahid

Yeah cool you can raise two separate PRs
there is no fixed image size, whatever looks good on the page in both large and small screens works

check ,  review and marge first issue.
please add hacktoberfest-accepted label

1st PR done

@ishan-nahid are you still working on this issue??

tried. but it is requiring a lot of times to collect and shaping the images.
i think it will be better if you assign image part to anyone else.
sorry for inconvenient...

I could do this.


149 content list filter defined by author

Fix #149
Test URLs:

Before: https://main--hlx-test--urfuwo.hlx.page/news/0000/the-article-lars-test

After: https://149-content-list-filter-defined-by-author--hlx-test--urfuwo.hlx.page/news/0000/the-article-lars-test

[x] New Blocks introduced in this PR

Block Name
Documentation
Library Link

content-list
doc-link
Library Link

[ ] New variations introduced in this PR

I've noticed that, if there are more than two content types, the output differs vs. e.g. tags:
"["ai","sap-store","sap-io","startups"]"
"["business-innovation, solutions"]"
I've adjusted my filter now so that this is being taking care of.
In case that should be unintentional, please revert my changes on the content topics.
Unfortunately, I can't proceed further on this ticket, as today is my last day on the project.
So please review the current state and thank you very much for taking over the remaining improvements suggested in the comments above!

@pahupe @larsauffarth on the content structure of this block:

variation option is used all the time, looks like it is default, so why is that needed?
Paths filter what is the use case. This is technical and the authors should not care about what the URL of a doc is

List 1:

+------------------------------+---------------------+
| **Content List (variation)** |                     |
+------------------------------+---------------------+
| Tags                         | Security,AI         |
+------------------------------+---------------------+
| Authors                      | \*                  |
+------------------------------+---------------------+
| Topics                       | Business-Innovation |
+------------------------------+---------------------+
| Content-Types                | executive-blog      |
+------------------------------+---------------------+
| Paths                        | /blog/\*            |
+------------------------------+---------------------+
| Limit                        | 6                   |
+------------------------------+---------------------+

Authors with wild card? What is the use case, it that the same as now author filter?

@pahupe @larsauffarth on the content structure of this block:

variation option is used all the time, looks like it is default, so why is that needed?
Paths filter what is the use case. This is technical and the authors should not care about what the URL of a doc is

List 1:

+------------------------------+---------------------+
| **Content List (variation)** |                     |
+------------------------------+---------------------+
| Tags                         | Security,AI         |
+------------------------------+---------------------+
| Authors                      | \*                  |
+------------------------------+---------------------+
| Topics                       | Business-Innovation |
+------------------------------+---------------------+
| Content-Types                | executive-blog      |
+------------------------------+---------------------+
| Paths                        | /blog/\*            |
+------------------------------+---------------------+
| Limit                        | 6                   |
+------------------------------+---------------------+

Authors with wild card? What is the use case, it that the same as now author filter?

b) "Authors | *" is the same as "Authors | " or removing the Authors line altogether
c) Editors need not specify paths, this filter part is now optional. I have adapted the second example in the library to only contain topic and limit filters
d) Content List (variation) <= variation has been removed from the library example blocks, as it is not needed

b) Editors need not specify paths, this filter part is now optional.

The remove at all - KISS. If something is not needed we don't implement it, this is only tech dep. If needed in the future we add it later. IMHO author should not care about the path this is technical. @benpeter if we need to filter for a subset by path I would recommed creating Excel filters and using separate sheets. Let's say we really need to filter /blogs/ ... which we have content type for also ... client side filter requieres to load all entries > 3000 and we filter out 2900 to get the 100 blog posts? This is better done via a sheet and we only load 100 entries at first place.

@mhaack understood. the path filter are required, there are scenarios from the news team where they will be needed.
I have created https://github.com/users/urfuwo/projects/1/views/5?pane=issue&itemId=55023158 for a more feasible solution as proposed by you.


fix(common-scripts): deploy defaults to data1

Description
This PR changes the default hash_type of generateDeployWithDataTx to data1 since data2 is not active on the testnet or mainnet yet
Type of change
Please delete options that are not relevant.

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

This update should be treated as a breaking change because the default value changes.


Failed during: /usr/bin/git fetch --force origin

brew doctor output
remote: Enumerating objects: 245896, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (131/131), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 1695 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: /usr/bin/git fetch --force origin

Verification

[X] My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update twice and am still able to reproduce my issue.
[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output
Downloading and installing Homebrew...

What were you trying to do (and why)?
I was trying to install brew on my Linux (Parrot OS)
What happened (include all command output)?
Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/bin/install -d -o goody -g goody -m 0755 /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chown goody /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chgrp goody /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/Homebrew
==> /usr/bin/sudo /bin/chown -R goody:goody /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 245896, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (131/131), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 1695 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Failed during: /usr/bin/git fetch --force origin
What did you expect to happen?
I was expecting direct installation but the error keeps showing up

Step-by-step reproduction instructions (by running brew commands)
Yes i did

Looks like you lost connection. Do you get the exact same result when you re-run the installer?

Yes I did. Infact I tried installing on my Kali VM but same issue.
On Fri, Aug 11, 2023, 12:05 PM Osama Albahrani @.***>
wrote:

Looks like you lost connection. Do you get the exact same result when you
re-run the installer?
—
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/15855#issuecomment-1674574550,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOQP7QIMXU3KW2UXJNR5ZILXUYGZFANCNFSM6AAAAAA3MTEMME
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yeah, that’s odd. I recommend looking into the discussion in
https://github.com/orgs/Homebrew/discussions/145#discussioncomment-131017
if you haven’t already
On Fri, 11 Aug 2023 at 7:53 AM Goody @.***> wrote:

Yes I did. Infact I tried installing on my Kali VM but same issue.
On Fri, Aug 11, 2023, 12:05 PM Osama Albahrani @.***>
wrote:

Looks like you lost connection. Do you get the exact same result when
you
re-run the installer?
—
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/15855#issuecomment-1674574550,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AOQP7QIMXU3KW2UXJNR5ZILXUYGZFANCNFSM6AAAAAA3MTEMME>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/15855#issuecomment-1674622600,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANCP5AXQQ3N2BCWFLBM5J53XUYMNLANCNFSM6AAAAAA3MTEMME
.
You are receiving this because you commented.Message ID:
@.***>

Thanks so much. I will look into that.


new event missions, title, requirements

I just pushed the new entries found in the recent master.mdb (ac65a5f); could you rebase your branch?

Resolved merge conflict manually; I'll merge this PR and clean up / add notes after directly in master. Thanks!


Add ZosConfig file (networks.js)

Fixes https://github.com/zeppelinos/zos/issues/800.
Adds a new networks.js file to the project for managing networks. It manages string providers using web3, and also works fine using truffle-hdwallet-provider.

@spalladino, this should be ready for another review! Basically, I:

Added tests for ConfigManager object (formerly ConfigVariablesInitializer), which didn't have any.
Created new mock folder test/mocks/config-files for reading both truffle.js and networks.js files for testing.
Add network_id validations. I'm not happy using snake_case here though, but I don't want to add a point of friction to users that are used to work with truffle.
Added types for ZosConfig.
Added a custom error when ZWeb3 fails in the first network-related connection. I sort of copy pasted the it from other place (hehe.. :roll_eyes:). Let's see if we can come up with a better error message together :)

Add network_id validations. I'm not happy using snake_case here though, but I don't want to add a point of friction to users that are used to work with truffle.

Why not support both? Should be easy to do!

Added a custom error when ZWeb3 fails in the first network-related connection. Let's see if we can come up with a better error message together :)

I'd go with sth like "Could not connect to the ${networkName} Ethereum network via ${providerType} on ${url}. Please check your networks.js configuration file." If we don't have info on the provider type, then we can just drop the "via ${providerType}" part.

I implemented your suggestions @spalladino! Also I rebased master into this branch, and transformed ZosConfig and Truffle (now TruffleConfig for consistency) into objects (there was no reason for having classes over objects in both cases). Last but not least, I reran the linter.

@jcarpanelli @spalladino Is the idea that the new networks.js file can be used to configure everything that can be configured with truffle-config.js? Or will many projects have both files if they're using Truffle?
In particular, I'm wondering whether both options should be reflected here in the docs.
Thanks!

Is the idea that the new networks.js file can be used to configure everything that can be configured with truffle-config.js?

Nope, we want to push networks.js as a framework-independent configuration file (hence the generic name) for specifying just networks. Info on compiler or testing should not be included there.

In particular, I'm wondering whether both options should be reflected here in the docs.

That is specific to running tests via truffle, since you cannot decide how to run mocha when running tests. We are still designing how to push framework-independent testing, but we would like to avoid hiding too much behind a custom test command, and rather provide some basic functions to handle it that the user can call.

Info on compiler or testing should not be included there.

Got it - great to know, thanks!

That is specific to running tests via truffle, since you cannot decide how to run mocha when running tests. We are still designing how to push framework-independent testing, but we would like to avoid hiding too much behind a custom test command, and rather provide some basic functions to handle it that the user can call.

Makes sense - thanks for taking the time to provide this context!

Makes sense - thanks for taking the time to provide this context!

On the contrary, thanks for taking the time for contributing here!!


OCPBUGS-42320: Prevent IgnitionServer from flooding the API server with patch requests

This patch addresses the issue of excessive patch attempts in a short period, which could overwhelm the KAS in the control plane.  A new safeguards have been implemented to prevent this scenario which involves a conditional check before executing patch commands that could potentially flood the API.
Which issue(s) this PR fixes:
Fixes #OCPBUGS-42320

/retest

/jira refresh

/hold
This would delay reconciliation for any error (including transient errors) which we don't want to.
Controller runtime already has a builtin mechanism to backoff on failures [1] that uses client-go default rate limiter [2] which we are already exercising by default. It rate limites both per item and it has a BucketRateLimiter for worst case failure of multiple items like this one. Besides, we are using a cached client to get resources and it seems the flooding request are .patch. Based on this I suggest the following:

Try to capture and type this specific disconnected failure and make it terminal so controller runtime doesn't requeue.
Make the patch logic a bit smarter so only make the write request if really needed.
When this happens "1. Start a disconnected HCP cluster with incorrect mirror-registry information
" we must signal that in the HC status somehow.

[1] https://github.com/kubernetes-sigs/controller-runtime/blob/9fd890c90e9f9ce92c61400377697e46d57c5166/pkg/internal/controller/controller.go#L321-L326
[2] https://github.com/kubernetes/client-go/blob/37045084c2aa82927b0e5ffc752861430fd7e4ab/util/workqueue/default_rate_limiters.go#L50-L56

Hey @enxebre:

Try to capture and type this specific disconnected failure and make it terminal so controller runtime doesn't requeue or increase requeue retry.

The implementation capturing the current error is a workaround until https://github.com/openshift/hypershift/pull/5168 got merged. In that PR I've get rid of all these functions and now they are part of the imageMetadataPovider. So the plan is to put a follow up PR with custom errors to be easy to be identify.

Make the patch logic a bit smarter so only make the write request if really needed.

Done

When this happens "1. Start a disconnected HCP cluster with incorrect mirror-registry information" we must signal that in the HC status somehow.

This it's not necessary because a new instance of the metadataProvider will be created in for each component that pull images from a registry.
WDYT?

/retest

The current implementation capturing the current error in this PR is a workaround until https://github.com/openshift/hypershift/pull/5168 got merged. In that PR I've get rid of all these functions and now they are part of the imageMetadataPovider. So the plan is to put a follow up PR with custom errors to be easy to be identify.

Thanks! Let's scope this PR to only the patch logic then, that solves the problem of overloading kas. Then add proper error handling once the above is true.

This it's not necessary because a new instance of the metadataProvider will be created in for each component that pull images from a registry.

If there's an issue pulling images that requires manual intervention like the one in the jira, this needs to be signaled to the user via .Status

Thanks for the review @enxebre. I will:

Signal the error pulling image to the user via .status
Better error handling

in this https://github.com/openshift/hypershift/pull/5168 PR.

/retest

/hold cancel

thanks!
/lgtm

/cherry-pick release-4.18


Getting dyld warnings when I run synx in El Capitan

dyld: warning, LC_RPATH @executable_path/../../../../../../../SharedFrameworks in /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/../../..//DVTInstrumentsFoundation.framework/Versions/A/DVTInstrumentsFoundation being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/MacOS/Xcode3Core being ignored in restricted program because of @executable_path
The app still works, it just gives me those warnings before it runs.

These are no longer emitted from Xcodeproj 0.28.2. Can be fixed by #86.


Fix gem warnings

This PR fixes an annoyance where warnings like this appear in the build log:

Ignoring gem-1.2.3 because its extensions are not built

It is fixed by running gen_bridge_metadata in a clean Bundler environment so that Bundler doesn't print the warnings.

@andrewhavens I added in
      defined?(Bundler) ? Bundler.with_clean_env { sh(cmd) } : sh(cmd)

to the xcode_config.rb to see if it worked - I'm still getting the wanrings

Resolved conflicts. Ready to merge.

@amirrajan Do you mind merging this?

@andrewhavens I pulled this change down, but I'm still getting the warnings:
> rake clean
Ignoring byebug-11.1.1 because its extensions are not built. Try: gem pristine byebug --version 11.1.1
Ignoring byebug-11.0.1 because its extensions are not built. Try: gem pristine byebug --version 11.0.1
Ignoring byebug-9.0.6 because its extensions are not built. Try: gem pristine byebug --version 9.0.6
Ignoring commonmarker-0.17.9 because its extensions are not built. Try: gem pristine commonmarker --version 0.17.9
Ignoring executable-hooks-1.6.0 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.0
Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
Ignoring jaro_winkler-1.5.4 because its extensions are not built. Try: gem pristine jaro_winkler --version 1.5.4
Ignoring jaro_winkler-1.5.2 because its extensions are not built. Try: gem pristine jaro_winkler --version 1.5.2
Ignoring json-2.3.0 because its extensions are not built. Try: gem pristine json --version 2.3.0
Ignoring json-2.2.0 because its extensions are not built. Try: gem pristine json --version 2.2.0
Ignoring redcarpet-3.4.0 because its extensions are not built. Try: gem pristine redcarpet --version 3.4.0
Ignoring unf_ext-<IP_ADDRESS> because its extensions are not built. Try: gem pristine unf_ext --version <IP_ADDRESS>

Am I missing something?

@digitalmoksha There are multiple places in the RubyMotion codebase that need this fix, so there’s probably another place that needs it (and might not be open source.

@andrewhavens So I took a little closer look.  The one I'm seeing right now, which happens right at the beginning of running a rake task, is happening in RubyMotion/lib/motion/project.rb at line 46-49, where we check if there are any updates.  We're doing
  command = "/usr/bin/ruby \"#{motion_bin_path}\" update --check"
  defined?(Bundler) ? Bundler.with_clean_env { system(command) } : system(command)

I traced the requires in motion, and it's due to the require 'yaml' in lib/motion/project/template.rb.  Remove the require, and you no longer get the warnings.  But we do use YAML in that file, so the require might be necessary.
But I think the real fix is not running the update command with /usr/bin/ruby.  The motion binary is already set as an executable and begins with #!/usr/bin/env ruby.  So is there any reason to force it to run with the system ruby, rather than using the one specified by the environment?


Face loss for face reconstruction

Thanks for sharing the code!
I tried the checkpoint IN256_Base on face images, but the faces in the reconstructed images are not great. I wonder how the reconstructed faces could be improved. Do you plan to include face loss in the total loss?

Same observation, here an example with imagenet_256_L. But I think it could be related to training data


IKEA Tradfri  RGB - No color picker

IKEA has now released their RGB lamp, but I don't get a color picker in the front end. It seems like the only difference between the RGB lamp and the one with color temp is the name.
Dump of RGB lamp with pytradfri
{'3': {'0': 'IKEA of Sweden',
        '1': 'TRADFRI bulb E27 CWS opal 600lm',
        '2': '',
        '3': '1.3.002',
        '6': 1},
  '3311': [{'5706': '0',
            '5707': 0,
            '5708': 0,
            '5709': 19831,
            '5710': 37676,
            '5711': 0,
            '5850': 1,
            '5851': 50,
            '9003': 0}],
  '5750': 2,
  '9001': 'Bed lamp',
  '9002':<PHONE_NUMBER>,
  '9003': 65539,
  '9019': 1,
  '9020':<PHONE_NUMBER>,
  '9054': 0}

Dump of color temp light  with pytradfri
{'3': {'0': 'IKEA of Sweden',
        '1': 'TRADFRI bulb E27 WS opal 980lm',
        '2': '',
        '3': '1.2.217',
        '6': 1},
  '3311': [{'5706': 'f1e0b5',
            '5707': 0,
            '5708': 0,
            '5709': 30140,
            '5710': 26909,
            '5711': 370,
            '5850': 1,
            '5851': 27,
            '9003': 0}],
  '5750': 2,
  '9001': 'Kök',
  '9002':<PHONE_NUMBER>,
  '9003': 65537,
  '9019': 1,
  '9020':<PHONE_NUMBER>,
  '9054': 0}

I changed
if self._light.device_info.manufacturer == IKEA:
                self._features |= SUPPORT_COLOR_TEMP

to
if self._light.device_info.manufacturer == IKEA and "CWS" not in self._light.device_info.model_number:
                self._features |= SUPPORT_COLOR_TEMP

in the file /components/light/tradfri.py, but I dont know if this is the correct solution.

Your code change supported_features from 3 to 17 which is ok.
But the color picker is only available after you select one the 20 default colors from the Ikea app.
If you restart HA and are on a default color the color picker is available. Once you pick a random color and restart the color picker is gone, until you choose a default color.
I haven't found a solution for this yet.

My guess is, the polymer interface decides on its own (not based on the detected features in pytradfri) to only show the color picker if there is any data in the coap parameter 5706 (like "5706":"efd275"). As stated by @mories76, this is only the case after setting one of the predefined rgb colors via coap parameter 5706 (set_hex_color() with predefined rgb color in pytradfri). If set_rgb_color() is used to set a user defined color the data in 5706 will be empty and no color picker will be offered.
Unfortunately, I can't find the section in polymer where the decision is made.

Not sure if it's the same issue, but I'm unable to get an automation to turn the bulb to anything outside of the white-colours (e.g. the blue IKEA default colour [74,65,138]) it just turns it to another white-colour, despite then reporting in the log stating the new_state as the blue's RGB values.

Maybe we should change pytradfri behaviour, so that it sets 5706 argument basing on existing x and y?

Doesn't seem like an interface issue; based on my quick testing (just got one), the bulb itself only seems to accept one of the pre-defined color codes, when PUT'ing with coap-client.

Fix is on the way (-:

It's probably the gateway which simply does not pass any rgb/hex values in param 5706 to the bulb which arent't one of the ~20 predefined ones.
When a non predefined color is set thru xy with the params 5709 and 5710 the gateway reports the rgb param 5706 as "0".
I think @matemaciek suggested to modify pytradfri to calculate the current rgb values from the current xy values and report rgb to i.e. HA (although the GW reports rgb "0").

@matemaciek has applied some color vodoo to the pytradfri-lib and this magic is available in version 3.0.1 :)

#9703 fixes it (-:


Next version

This will contain the redesign work by @joedixon 🙌

Managed to do a bit of reviewing. Here's some feedback:

It would be nice if you could click "forum" in this breadcrumb to go back to the main page. Here you're in the tag context.
This bar might also be applicable for a forum thread? Or when creating a new thread?

This textarea in the user settings needs some padding. Probably equal to the text fields above.

Using CTRL+CMD+R in Safari to test responsive modes messes up the navigation when you go back and forth.

The user detail in the admin panel might need some extra love. This feels a little bit blank.

The user detail in the admin panel might need some extra love. This feels a little bit blank.

This is pretty much like for like how it is on the current site. Anything in particular you want to add?

This is pretty much like for like how it is on the current site. Anything in particular you want to add?

We can still do this later on 👍
Btw, I also noticed that there's no hover states for nav links, buttons, etc. Can we get that in before merging?

Some more feedback:

Seems to be going something wrong here with the avatars.

The pagination for forum threads is in the middle of the container instead of the middle of the thread list.

The pagination for forum threads is in the middle of the container instead of the middle of the thread list.

Do you mean you want the pagination to be in the white section? To me, it should be separate to the list of threads, but I might be missing something.

@joedixon it needs to be outside the white area but in the middle of the threads part. Now it's in the middle of the container. So it needs to be in the middle of the "left" part.

I think I got you?

@joedixon perfect 👌

Noticed a couple more things in my latest review. Think we're almost there though.

The alerts don't fill out properly here. In my eyes the background color should be full width and the content aligned properly inside a container element.

This table has some weird hovering colors. I'd just get rid of that.

I'm not sure if that was already possible but I didn't confirm my email address and I can see the reply box. There should be a message here saying you need to confirm your email first before you can reply.

The alerts don't fill out properly here. In my eyes the background color should be full width and the content aligned properly inside a container element.

I'm not sure if that was already possible but I didn't confirm my email address and I can see the reply box. There should be a message here saying you need to confirm your email first before you can reply.

This table has some weird hovering colors. I'd just get rid of that.

I agree and not sure what I was thinking. These are now gone 😅


Remove warning about truncation limit

This removes the truncation limit warning in get_ephemerides and get_elements. I've contacted the JPL Horizons team and they confirmed that this was an unintended limitation in the CGI script that truncated the epochs provided in TLIST to around 15. The batch interface is working now without the truncation.

You're kidding... this makes life so much easier! Thanks for inquiring!

I was wondering why they would have such a small limit. It definitely makes things easier!