Parameters as vector

In some applications, the parameter vec consist of individual components that are are in itself a vector, e.g. when interpreting the displacement vector in a FEM computation as an unknown. Any idea on how we are going to handle this?

We could handle the parameters as individual classes instead of doubles, i.e. we could store in the dictionary a BaseParameter class that is then either a scalar or a vector or whatever someone needs. And have methods such as number of entries get/set from vector (to convert this into the parameter vector) In this class, we could then also store additional information such as the prior distribution.

Nice idea! I think you have the constitutive gap method in mind for that! I would love to see/have a minimal test case -- linear elasticity for inferring E and nu is totally sufficient! -- to base these developments on. Maybe from @ajafarihub ?
The only entry types of the parameter list (to implement this issue) are scalars and vectors. In that case, a BaseParameter class is overkill IMO. A simple type check could be sufficient:

try:
   N = len(parameter_list["some_entry"])
   # the len function is valid, so it must be a vector.
except:
    N = 1 # scalar

Prior information is inference-method-dependent (scalars? for deterministic optimize, theano vectors for pymc3...) But we already talked about not considering that here.

Followup design question: If my problem has two latent parameters, one scalar and one vector of length N, should the "length" of my latent parameters be 2 or N+1?

I think, according to @joergfunger 's suggestion, it should be 2. Or ... ?

The latent parameter has length N+1, the parameter list has two entries.

I am almost concluding that, the input parameters of the forward model's callable must be a long N1 vector, where N is the number of total latent parameters. I think, it is not wise to pass this information (all latent parameters) to the forward model in any other form than a N1 vector, since this would complicate the interpretation/construction of the Jacobian with respect to the latent parameters. If for example the input is a 2*1 vector, whose each entry is by itself another vector/array, then we would have to establish our Jacobian as a higher-dimensional tensor, which IMO could not be preferred to a full 2-D array. This could also be inconsistent with typical optimizer routines (like scipy.optimize) which most often cannot handle such a higher-dimensional tensor of Jacobian.

why would this complicate the interpretation of the Jacobian. If you compute the Jacobian with respect to a single parameter (this could be a scalar and a vector) and then store it accordingly, it should be straightforward to assemble this (similar to the full latent vector that is a function of the individal named parameters) into the full matrix. This also makes it much more clear when you compute the Jacobian what terms you are actually computing. And if you add another parameter, you get rid of all the clumsy keeping track of what index you matrix starts. And for the computation, you would compute each block Jacobian separately anyway (the computation of the derivative is usually done per parameter since those are in most cases different computations).

Imagine a forward model with:
number of material parameters = 3
number of random admissible displacements = 1000
number of residuals (in the output of forward model) = 1000
number of admissible displacements comparable with measurments (in the output of forward model) = 800
.
What shape would the Jacobian have? IMO, it must have the shape 1800§1003 .
If we consider any other nested format, it might become unclear for the optimizer to relate the component of that nested Jacobian to the individual components of the input latent parameters.

Just to address the point maybe a bit more clearly, the issue is not related to the computation or storage of Jacobian by itself or the interpretation of it for the user/developer. Rather, the issue IMO is, that the optimizer must be able to handle/interpret this Jacobian in relation to the input latent parameters.
Furthermore, I think this issue is even a bit beyond the scope of the Jacobian, i.e. given even an optimizer which would compute the Jacobian numerically (like using central difference method), I am not sure if it is possible to introduce latent parameters in any kind of nested structure to such an optimizer. For example, as far as I can see, scipy.optimize can only recognize a simple long vector as the latent parameters.
Like often, please correct me if I am missing something :) .

There are two levels: "named" parameters as convenient input to the models and "vector" parameters as input to the optimize/inference algorithms. The "JointLatent" class currently handles the conversion. So in your case, the model input would be a dict like
"E" : 6174
"nu": 0.2
"k0" : 0.042
"disp" : [0.2, 0.1, ... ] # len 1000

and the output could be a dict like
"residual (sensor)" : [0.0, 0.1, ...] # len 1000
"disp error (sensor)" : [ ... ] # len 800

The "JointLatent" converts the optimization/inference algorithm input vector of length 1003 to the input dict of the model error and somewhere (currently also in the model error) the output of the model error is concatenated to a output vector of length 1800.
We have not thought much about the Jacobian and I am glad that you do. My first idea would be to have the model error return the individual parts of the jacobian as
me.Jacobian("residual", "E") #  1000x1
me.Jacobian("residual, "disp") # 1000x800
me.Jacobian("disp error", "k0") # 800x1

that are combined as needed.

Followed by some private chat with @TTitscher , I prepared with a design for the base classes of forward model and model error. IMO, we can keep such a general workflow/design for any forward-model.
Note that, this is only for ONE model/error.
base_classes_fw_me.txt

Related to the Jacobian - I would agree with the above individual contributions (which is what you compute anyway, all individual). Assembling them if needed can from my point of view be done directly in the computation, or on some higher leve in this multimodel error (or inference problem). So I'm not sure what the advantage of the assembler class that is given with the forward model would be, because e.g. when combining different expriments, you would have again to reassemble everything and decompose your matrix into the individual components because e.g. a shared parameter in exp.1 is at another position in the local Jacobian than the same parameter in experiment two). So I'm stillvery much in favor of the approach with the individual components. Assembling them at some point should be handled by the Multimodelerror class, and then extracting a full matrix instead of individual components should be possible, so you can directly use this then in any optimizer that can just work with arrays.

You are right and I see the point of having multi-model-errors featuring shared latent parameters. In such cases, it is wise to postpone the assembly of the Jacobian to the higher level. In this respect, I adjusted the classes design (in the attachment), so that the user can decide which Jacobian to use (un-assembled "jac " vs. assembled "JAC"). For the case of a single model error, one would be able to directly use self.JAC . For a multi-model error scenario however, one would postpone the assembly into the multi-model error as you also pointed out. But still it seems to me that we would need to take the assembled jacobian of individual model erros and try to re-assemble them again. I am not 100% sure of it thouh.
On the other hand, generally, the logic behind any possible user-computed Jacobian (like analytical) must be IMO provided for each individual forward model, and this "logic" is now structured in two parts each being provided by a routine:

first to compute the jacobian just component-wise (w.r.t. parameters separately) --- self.jac
second to assemble the component-wise Jacobian to the full one --- self.JAC

fw_me_base_2.txt


Issue setting client level with same session multiple times.

From @martindsouza on August 25, 2013 18:54
The following raises an error:
exec dbms_session.set_identifier('martin_session');

exec logger.set_level('DEBUG', 'martin_session');

PL/SQL procedure successfully completed.

exec logger.set_level('DEBUG', 'martin_session');

*
ERROR at line 1:
ORA-20000: l_include_call_stack must be TRUE or FALSE DEBUG
ORA-06512: at "GIFFY.LOGGER", line 97
ORA-06512: at "GIFFY.LOGGER", line 1345
ORA-06512: at line 1

The issue is in get_pref as it only looks at logger_level for sessions where client_id is defined.
Copied from original issue: tmuth/Logger---A-PL-SQL-Logging-Utility#39

Resolved.


Sort versions numerically in 'listall'

With the release of Go 1.10, make sure releases are sorted numerically instead of just lexically:
...
go1.8.5
go1.8.5rc4
go1.8.5rc5
go1.8.6
go1.8.7
go1.9
go1.9.1
go1.9.2
go1.9.3
go1.9.4
go1.9.5
go1.10
go1.10.1

The naïve sorting applied currently sorts version like this:
go1.10
go1.10.1
go1.4
go1.4.1
go1.4.2
go1.4.3
go1.7.1
...

The same PR that I previously created for gvm: https://github.com/moovweb/gvm/pull/293


Plugin breaks Javascript comments

Discussed on https://github.com/haidubogdan/netbeans-php-blade-plugin/issues/3#issuecomment-1057066344
Expected
<script>
function test(){
    //test
}
</script>

Blade Plugin

After that it breaks other js highlight sintax

Hi I created a new release to fix this :
It was an embedding issue with new lines
https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/nb122-126-05032022a

Looks great, thanks for your time


Omen Store page grammar issue

Should be "Access to give yourself your player skull" and extra "in" snuck in.

Merged into #1567


Highlight unused variables

NetBeans IDE is able to track down unused variables and highlight them. They are underlined and the tooltip is shown after a while on cursor hover. This feature should be very subtle.
This is a separate issue from the big list #2982

This is hard to do with GDScript, at least for now. I don't think the editor have access to the parser to know if a variable is used or not.

Indeed, fixed by #19993.


Require user registration to have approval

Is your feature request related to a problem? Please describe.
When user registration is enable anyone can register an account and gain access
Describe the solution you'd like
When a user registers an account it needs approval or to be enabled first prior to having access

The thinking when implemented was, if you wanted control over who could register, you would turn it off and create accounts as an admin. The registrtion option was more for public sites who want to know who is using it but otherwise don't care.


bug: helix generates invalid toml files

Did you check docs and existing issues?

[X] I have read all the tokyonight.nvim docs
[X] I have searched the existing issues of tokyonight.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
helix 24.3 (2cadec0b)
Operating system/version
macOS 14.5
Describe the bug
The extras/helix have invalid toml files with no values:
"markup.link" =
"markup.link.label" =
"markup.link.text" =
"markup.list" =
"markup.raw" =
"markup.raw.block" =

Steps To Reproduce

Copy the file to .config/helix/themes/tokyonight_storm.toml
Set :theme tokyonight_storm

Expected Behavior
Those lines should include a value or be removed if null
Repro
No response

I don't use helix and the code that the original OP wrote for it is pretty messy. Feel free to provide a PR


Fixes #18

Added pyobj support. Fixed tests to recognize pyobj support.

Sorry for the delay in getting to this. Thanks for fixing this!


Move from Thrift JSON to Thrift Binary

Moving library from Thrift JSON protocol to Thrift Binary protocol for better performance.
There is a small change to the way THttpPostClient is created in the vendored thrift library (no default headers as those default to the Thrift JSON protocol).
Updated Vendored libraries.
Fixed test and renamed it to reflect the true nature of the test.

It will be convenient to have  it as an option to pick binary vs json via api..


Support schema.org @reverse relations

As discussed in https://github.com/schemaorg/schemaorg/issues/1031 and other places.

Implemented. Example: bolognese https://doi.org/10.5517/cc8h01s.


The maximum line length of 120 has been exceeded. The rule cannot be modified or disabled.

ktlint {
version.set("0.45.2")
android.set(true)
additionalEditorconfigFile.set(file("/my-android/.editorconfig"))
disabledRules.set(Set.of("max_line_length", "import-ordering", "no-wildcard-imports", "final-newline", "missing-newline-after", "no-unused-imports", "indent"))
}
}

Result:  Exceeded max line length (100) (cannot be auto-corrected)
With these settings, I keep getting an error about exceeding 100 characters. What could I set up wrong, why is everything so not obvious (
Also tell me, is it possible to disable the rule that prohibits putting a comma at the end of the enumeration, for example, in the class constructor after the very last argument? I would like to be able to put a comma, ide allows me to do this, but ktlint does not

version 10.3.0

Please update to latest version of ktlint (0.45.2) first and report back if the problem still occurs.

I tried to specify the full path to the .editorConfig file, but it did not help

Based on your last screendump, I get the feeling that you only epxerience the problem with ktolin script (*.kts) files. That is caused by the space before *.kts in the .editorconfig file. Change it to:
[{*.kt,*.kts}].

Also tell me, is it possible to disable the rule that prohibits putting a comma at the end of the enumeration, for example, in the class constructor after the very last argument? I would like to be able to put a comma, ide allows me to do this, but ktlint does not

Please read documentation. https://github.com/pinterest/ktlint#trailing-comma

@paul-dingemans

I was already happy, but deleting this space didn’t help either. (I even deleted everything else and left it as on the screen, but that doesn’t help either. I cleared the cache in android studio, all to no avail.

In screenshot above you have set max_line_length=off so that might be the cause. Also, you need to explcitily save the .editorconfig file as changes otherwise are not picked up by IntelliJ IDEA.
If error still occurs then please paste the source code instead of only providing a screenshot.

[*.{kt,kts}]
max_line_length=105
indent_size=4
insert_final_newline=false
disabled_rules=max_line_length

ktlint {
        version.set("0.45.2")
        android.set(true)
        additionalEditorconfigFile.set(file("/my_project/.editorconfig"))
        //disabledRules.set(Set.of("max_line_length", "import-ordering", "final-newline", "missing-newline-after", "no-unused-imports", "indent"))
    }

Here are my settings. In the logs, I get a message about exceeding 100 characters, although I set 105 for the experiment. It is noteworthy that I commented out the android.set(true) line
and I picked up the setting about 105 characters, but I returned this setting again, and then turned it off again and that's it .. I can no longer come to this state and did not understand what affected it. I also did not understand what you said about the fact that ide does not save changes. I tried turning "enable editorConfig support" off and on thinking I could get it to save the settings, but alas.

it is also not clear where it is better to write disabled_rules in gradle or in .editorConfig and which entry has a higher priority

The ktlint gradle plugin is maintained in another project, so I can not be 100% sure what is happening. From the perspective of Ktlint, I can say that:

The max line length is not checked for lines that only contain an EOL comment like your //disabledRules.set(...)
If the API consumer of ktlint, e.g. the gradle plugin, is calling ktlint correctly then it can override properties which are specified in the .editorconfig file.

The ktlint gradle plugin is maintained in another project, so I can not be 100% sure what is happening. From the perspective of Ktlint, I can say that:

The max line length is not checked for lines that only contain an EOL comment like your //disabledRules.set(...)
In your example, an additional .editorconfig files seems to be provided via additionalEditorconfigFile.set(file("/my_project/.editorconfig")). Assuming that the gradle plugin passes this file to ktlint then all other .editorconfig files are ignored.
If the API consumer of ktlint, e.g. the gradle plugin, is calling ktlint correctly then it can override properties which are specified in the .editorconfig file. This override the setting provided via .editorconfig files (including the additional file mentioned in previous step).

I can confirm that the check cannot be disabled.
I think there's something wrong with editorconfig inheritance, for example, if I put max_line_length=off in [*] everything works.
But if I put max_line_length=off in [**/test/**.kt] -- it doesn't work. Same goes for [*.kt] as well.
Looks like ktlint respects only root-level declaration.

@sanyarnd I am happy to look into this, if you can document the full reproduction path including sources to be used, commands being executed and output (using option --verbose).

sample project ktlint-max-length-bug.zip
.editorconfig:
root = true

[*]
max_line_length = 120

[{*.kt, *.kts}]
max_line_length = 80
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL

[**/test/**.kt]
max_line_length = off
ktlint_ignore_back_ticked_identifier = true

mvn package output:
[ERROR] src\main\kotlin\LongLineClass.kt:2:1: Exceeded max line length (80)
[ERROR] src\test\kotlin\LongLineTest.kt:2:1: Exceeded max line length (80)

I can not reproduce the problem with your sample project. What OS are you running on? Based on the backslashed in the path, it looks like Windows.
When I run command: ktlint --trace --relative
11:31:46.237 [pool-1-thread-2] TRACE com.pinterest.ktlint.KtlintCommandLine - Checking src/main/kotlin/LongLineClass.kt
11:31:46.237 [pool-1-thread-1] TRACE com.pinterest.ktlint.KtlintCommandLine - Checking src/test/kotlin/LongLineTest.kt
11:31:46.753 [pool-1-thread-1] TRACE com.pinterest.ktlint.core.internal.EditorConfigLoader - Resolving .editorconfig files for ./src/test/kotlin/LongLineTest.kt file path:
	max_line_length: off, ij_kotlin_code_style_defaults: KOTLIN_OFFICIAL, ktlint_ignore_back_ticked_identifier: true
11:31:46.753 [pool-1-thread-2] TRACE com.pinterest.ktlint.core.internal.EditorConfigLoader - Resolving .editorconfig files for ./src/main/kotlin/LongLineClass.kt file path:
	max_line_length: 80, ij_kotlin_code_style_defaults: KOTLIN_OFFICIAL

Please send your complete output of command ktlint --trace --relative for further analysis.
Please also note that the "space" in [{*.kt, *.kts}] does not result in what you might expect (the settings would only be on kts-files for which the filename actually starts with a space).

Tested 0.47.0 and error is gone now

Tested 0.47.0 and error is gone now

Ok, tnx for confirming.

@Turalllb This is a little late but it seems like "max_line_length" should be "max-line-length" instead?

@Turalllb This is a little late but it seems like "max_line_length" should be "max-line-length" instead?

Funny, just a couple of day there was another issue in which the same problem occurred. As I suggested in https://github.com/pinterest/ktlint/issues/1974, ktlint should give a more clear warning.

funny enough max_line_length is actually max-line-length

I am not sure what you mean. Do you care to explain?

@Kashif-E You can try suppressing both rules @Suppress("max_line_length", "max-line-length").

The proper way to suppress this rule is:
@Suppress("ktlint:standard:max-line-length")

But of course this only works for violations created by this rule specifically.


Tests can fail when app under test is a substring of another app

Report from @tleach. Consider two applications, alpha and alphabet. Under the following conditions, dusty test alpha <suite> will fail:

An intermediate test image dusty/test_alphabet already exists for the longer app. This is created whenever you run dusty test alphabet <suite>.
The alpha app has never been tested, so a corresponding intermediate test image called dusty/test_alpha does not exist.
Running dusty test alpha <suite> will erroneously believe the intermediate testing image for alpha already exists and will not attempt to create it. This will fail, probably with the message Error: image dusty/test_alpha:latest not found

The issue is with the image_exists check in dusty.system.docker.testing_image. This should be an exact check, not an in check. Also worth checking whether we are doing a similarly loose check anywhere else.

@thieman not sure this is an actual issue.  we are using in in image_exists because image['RepoTags'] is a list.  So we are not using string contains.  I also tried to reproduce this issue with an app named test and an app named test1 and it did not reproduce the behavior described above.

I'm guessing this was fixed by this recent commit, but this issue wasn't closed. https://github.com/gamechanger/dusty/commit/96a1e78879f6b5234e6c7d83f53aa11f6fe47ab5


dolt: 0.21.0 -> 0.21.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/liquidata-inc/dolt/releases.
meta.description for dolt is: "Relational database with version control and CLI a-la Git"
meta.homepage for dolt is: "https://github.com/liquidata-inc/dolt"
meta.changelog for dolt is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.21.1 with grep in /nix/store/2s8i6m0gd742kqi0s4qc5vi78c0w9jk0-dolt-0.21.1

directory tree listing: https://gist.github.com/827e1c1b500163862b01a1d81c134c03

du listing: https://gist.github.com/8c9d6971bb81c4aec0797cabe421fa50

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
dolt

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2s8i6m0gd742kqi0s4qc5vi78c0w9jk0-dolt-0.21.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A dolt https://github.com/r-ryantm/nixpkgs/archive/dcebf8c88dab87bb31b41b53f3fdbd896a4959f7.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2s8i6m0gd742kqi0s4qc5vi78c0w9jk0-dolt-0.21.1
ls -la /nix/store/2s8i6m0gd742kqi0s4qc5vi78c0w9jk0-dolt-0.21.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

dolt

Maintainer pings
cc @danbst @kalbasit for testing.

Result of nixpkgs-review pr 102046 run on x86_64-darwin 1

1 package built:

dolt


pull access denied for pinpointdocker/pinpoint-flink

[root@ansiblemaster pinpoint-docker-2.2.2]# docker-compose pull
Pulling pinpoint-mysql (pinpointdocker/pinpoint-mysql:2.2.2)...
2.2.2: Pulling from pinpointdocker/pinpoint-mysql
Digest: sha256:98254030405a0e922435a557ce6c5c4f017381e7ff5d29accb09250b56641427
Status: Image is up to date for pinpointdocker/pinpoint-mysql:2.2.2
Pulling zoo1 (zookeeper:3.4)...
3.4: Pulling from library/zookeeper
Digest: sha256:3882d9493d387ba77b7b69e2a031b9396477ec29483d51ceaed645c1389182e5
Status: Image is up to date for zookeeper:3.4
Pulling pinpoint-hbase (pinpointdocker/pinpoint-hbase:2.2.2)...
2.2.2: Pulling from pinpointdocker/pinpoint-hbase
Digest: sha256:444ece9391c58eb44eac145470d6157e67251a58d676fa2bb2e719188641b061
Status: Image is up to date for pinpointdocker/pinpoint-hbase:2.2.2
Pulling pinpoint-collector (pinpointdocker/pinpoint-collector:2.2.2)...
2.2.2: Pulling from pinpointdocker/pinpoint-collector
Digest: sha256:203b1c999c2eba1fe03087c971bdf8fa5f99745e2fd28936b90a8a4ecb2cc2cd
Status: Image is up to date for pinpointdocker/pinpoint-collector:2.2.2
Pulling pinpoint-agent (pinpointdocker/pinpoint-agent:2.2.2)...
2.2.2: Pulling from pinpointdocker/pinpoint-agent
Digest: sha256:33d74c34fb51b81fb21e74859ea6d8d80dde663e24be3ad9a68b7d98a5ba5f78
Status: Image is up to date for pinpointdocker/pinpoint-agent:2.2.2
Pulling pinpoint-quickstart (pinpointdocker/pinpoint-quickstart:latest)...
latest: Pulling from pinpointdocker/pinpoint-quickstart
Digest: sha256:3a241f64d8fa17bf55b6da01e53cc5ac746ab1a2c0e4d48195e78de3cce15052
Status: Image is up to date for pinpointdocker/pinpoint-quickstart:latest
Pulling pinpoint-web (pinpointdocker/pinpoint-web:2.2.2)...
2.2.2: Pulling from pinpointdocker/pinpoint-web
Digest: sha256:75be6fd9246fb4abed471327823c2ea1703fa565a6c97433953d6335377d4426
Status: Image is up to date for pinpointdocker/pinpoint-web:2.2.2
Pulling zoo2 (zookeeper:3.4)...
3.4: Pulling from library/zookeeper
Digest: sha256:3882d9493d387ba77b7b69e2a031b9396477ec29483d51ceaed645c1389182e5
Status: Image is up to date for zookeeper:3.4
Pulling zoo3 (zookeeper:3.4)...
3.4: Pulling from library/zookeeper
Digest: sha256:3882d9493d387ba77b7b69e2a031b9396477ec29483d51ceaed645c1389182e5
Status: Image is up to date for zookeeper:3.4
Pulling jobmanager (pinpointdocker/pinpoint-flink:2.2.2)...
ERROR: pull access denied for pinpointdocker/pinpoint-flink, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

ERROR: for jobmanager  repository docker.io/pinpointdocker/pinpoint-flink not found: does not exist or no pull access
ERROR: for taskmanager  repository docker.io/pinpointdocker/pinpoint-flink not found: does not exist or no pull access
ERROR: repository docker.io/pinpointdocker/pinpoint-flink not found: does not exist or no pull access

pinpoint-flink docker hub repository was not there for some time (has been deleted for some unknown reason?) and now it is back up again from 2.3.1.
It seems like it doesn't have any problem pulling pinpoint-flink now.

Error response from daemon: pull access denied for pinpoint-flink-flink, repository does not exist or may require 'docker login': denied: requested access to the resource is denied


[Claim Menu] Refactorings + Improve redux

Fixes
Issue Number: n/a

If there is a rush to ship this, I suggest separating out the 2(?) commits that fixes the actual issue and ship that first.
The other code-churn probably needs a second set of eyes and testing (will look later...)

separated 👍🏻

@saltrafael can another stab after mobile improvements. There's some feedback on Slack too.

Too hard to read the diffs, so I just skimmed.
When updated, I think it's best to ask Miko to re-test all components and functionality that were touched.

Looking now...

Plan is to get this up on a test server and do some more internal testing before shipping.

I recall this caused some issues and now is a bit behind master. I'm ok with giving it another shot in the future, but closing for now.


Remove syntax used as a workaround while Python 3.7 was being supported

I noticed a few places in the code where there were workarounds associated with Python 3.7. Since support for 3.7 has been dropped, I have refactored to remove these workarounds.

Hmmm.... not sure why the CI isn't showing up here (I have a dev branches that is identical to this one and run the tests from there, they usually show up automatically in the PR???) but this fails on Posit Connect, it looks like @functools.cached_property might not be an exact swap from @property.
If you would like, I can pick up the fix for that platform since I have access to that testing environment (probably early next week). But up to you, depending on your willingness to debug that specific platform!

I think I just forgot to access the value ["username"].


bump amazon-music to latest <IP_ADDRESS>3 version

Thank you for the contribution. It was merged directly as ed5c15406164278f1299a7f2ec927b1b475c5c8e to keep commit history cleaner. Your contribution is still credited to you.


make test_cc fails on Ubuntu 20.04 with v9.3

What version of OR-Tools and what language are you using?
Version: v9.3
Language: C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) n/a
What operating system (Linux, Windows, ...) and version? Ubuntu 20.04
What did you do?
wget https://github.com/google/or-tools/releases/download/v9.3/or-tools_amd64_ubuntu-20.04_v9.3.10497.tar.gz
tar xzf or-tools_amd64_ubuntu-20.04_v9.3.10497.tar.gz
cd or-tools_amd64_ubuntu-20.04_v9.3.10497
make test_cc

What did you expect to see
No error
What did you see instead?
CC = cc
CC_BIN = /usr/bin/cc
CXX = g++
CXX_BIN = /usr/bin/g++
CXXFLAGS = -fPIC -std=c++17 -O4 -DNDEBUG -Iinclude -I. -DARCH_K8 -Wno-deprecated -DUSE_BOP -DUSE_GLOP -DUSE_PDLP -DUSE_CBC -DUSE_CLP -DUSE_SCIP
LDFLAGS = -Wl,-rpath,$ORIGIN -Wl,-rpath,$ORIGIN/../lib64 -Wl,-rpath,$ORIGIN/../lib -lz -lrt -lpthread
OR_TOOLS_LNK = -Llib -Llib64 -lortools

make run SOURCE=examples/cpp/simple_knapsack_program.cc
make[1]: Entering directory '/tmp/or-tools_Ubuntu-20.04-64bit_v9.3.10497'
g++ -fPIC -std=c++17 -O4 -DNDEBUG -Iinclude -I. -DARCH_K8 -Wno-deprecated -DUSE_BOP -DUSE_GLOP -DUSE_PDLP -DUSE_CBC -DUSE_CLP -DUSE_SCIP \
 objs/simple_knapsack_program..o \
 -Llib -Llib64 -lortools -Wl,-rpath,"\$ORIGIN" -Wl,-rpath,"\$ORIGIN/../lib64" -Wl,-rpath,"\$ORIGIN/../lib" -lz -lrt -lpthread \
 -o bin/simple_knapsack_program
/usr/bin/ld: lib/libortools.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char><EMAIL_ADDRESS>/usr/bin/ld: lib/libortools.so: undefined reference to<EMAIL_ADDRESS>collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:306: bin/simple_knapsack_program] Error 1
make[1]: Leaving directory '/tmp/or-tools_Ubuntu-20.04-64bit_v9.3.10497'
make: *** [Makefile:275: test_cc] Error 2

Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment
I think the library may have been compiled against a newer GLIBCXX (3.4.29). When running:
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

on Ubuntu 20.04, the latest version returned is GLIBCXX_3.4.28.

Actually we should use a C++20 compiler so I use gcc11 for ppa which bump the GLIBCXX
https://github.com/google/or-tools/blob/49b6301e1e1e231d654d79b6032e79809868a70e/tools/docker/amd64/ubuntu-20.04.Dockerfile#L15-L24

Also noticed two more things:

When updating the Ruby library to 9.3, linking with libortools.so works, but when running the program, it looks for libortools.so.9 (which wasn't the case previously). I think it may be due to SONAME.

objdump -p lib/libortools.so | grep SONAME
  SONAME               libortools.so.9

There are 3 identical copies of the shared library (libortools.so, libortools.so.9, libortools.so.9.3.10497) in the lib directory. It may be better to use symlinks for two.

Yes since we are using CMake based build now, so we have soname support
https://github.com/google/or-tools/blob/49b6301e1e1e231d654d79b6032e79809868a70e/cmake/cpp.cmake#L108-L118

when building there are effectively symlink BUT our archive recipe replace all symlinks by copy of the library also python, java, .net only embed the libortools.so.9 (since bridge library depend on it) so it was easier to keep it as it  than breaking everything

BTW I will try to fix it for the next release

ToDo List:

[ ] Create table for each Ubuntu gcc default max GLIBCXX availabe and same after bumping compiler
[ ] Fix symlinks in archive

Thanks @Mizux, will use libortools.so.9 for the gem.
Also, just saw your question about testing. Happy to test anything around this.

Fixed with
or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz
and
or-tools_amd64_flatzinc_ubuntu-20.04_v9.3.10502.tar.gz

Thanks @Mizux, working great! Just pushed a new release of the Ruby gem.

Still not working with the actual official binary version in the or-tools site. Thanks @Mizux, this version working great.
Plz put the correct version(without BUG) in the official website.


Copilot should allow enable even if the filetypes are disabled by default.

For security reasons it should be possible to only toggle it for the current file even if all filetypes are set to disable.
Copilot enable does not currently enable copilot in that case but should.

I guess it's possible to do that with Copilot! enable. The problem is that when that option is used it will force enable it for all subsequent files as well.
This isn't the behaviour of the normal plugin. You can enable it per file, but it will still honour the filetype settings for subsequent files.

I guess it's possible to do that with Copilot! enable. The problem is that when that option is used it will force enable it for all subsequent files as well.

Where did you find that behavior?

Use :Copilot! attach for force attaching copilot to the current buffer.


Repo sync for protected CLA branch

The pull request is created from main638079336933913582sync_temp to main to fix git push error for protected CLA branch

Learn Build status updates of commit 97cf037:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


update pypi to include FlamegraphFormatter

please? :)

Done (version 0.3.0). Be warned that I haven't done much testing.

yay! many thanks.


Review TODO.txt file

There's a TODO.txt file that needs to be reviewed. Many of the items are probably no longer interesting, and the remaining should be migrated into github issues.
I suspect a few may be good candidates to first time contributors

I'll have a look on this this week (probably Wednesday and Thursday). Let me know if you have any comments on advance @peff @sxlijin @jnavila

To be honest, we could probably just declare "todo bankruptcy" and wipe the whole list. If a particular issue is mentioned again, then we can make it into an issue. And if not, then it probably wasn't that important in the first place.

As they say: you must do it today, at least tomorrow or never… We've already brought down the "related" feature, so I guess we're not yet on the path of adding more. Talking usability (which I'm not literate at), I think that the priority should be the rework of the navigation map and ensuring the content is up to date rather than adding cross linking and shiny stuff.

@jasonlong there's one topic about Fullscreen Manpage (or, hide sidebar). I'm not sure if it's worthy, but in case you want to consider it on your redesign :)
@jnavila I have the impression you have been more focused on the book than any other of us, so can I ask your opinion on these topics?

link for translation sources
show that newer content is available for missed slugs (fallback to v1)
incremental updates (get hashes of all pages, only update changed ones)
errata / commenting?

link for translation sources

Definitely wanted. We have often people landing on progit (english) with issues for translations. The source repo are already available in the task for importing the files but they are not available in DB for dynamic building.

show that newer content is available for missed slugs (fallback to v1)

How often is the book v1 accessed? Instead of fallback, getting rid of it would be safer. The repo for v1 is already declared deprecated.

incremental updates (get hashes of all pages, only update changed ones)

We don't really care unless @peff can tell there is a non negligible cost induced by that additional processing. The update is checked once a day and triggered only when the content changes.

errata / commenting?

Not relevant. The book is now updated live. So, it's mostly up to date and getting better with time.

thanks @jnavila ! I would say that it makes sense to create a new issue for link for translation sources.
what about removing the book v1, what do we need? why haven't we removed yet?

No, as far as I know book processing CPU is not currently a big deal.


bad error message at method lifting

Consider the following example
import Lean

namespace Lean.Meta

def f (e : Expr) : MetaM Bool := do
  forallTelescope e fun xs b =>
    match (← unfoldDefinition? b) with
    | none   => pure true
    | some _ => pure false

end Lean.Meta

It produces the error message unknown identifier 'b'. I believe most users will find this message counterintuitive.
The issue is that forallTelescope ... is viewed as an atomic do-element, and the nested (← unfoldDefinition? b) is "lifted", producing
import Lean

namespace Lean.Meta

def f (e : Expr) : MetaM Bool := do
  let r ← unfoldDefinition? b
  forallTelescope e fun xs b =>
    match r with
    | none   => pure true
    | some _ => pure false

end Lean.Meta

So, if one understands how method lifting works, the message makes sense and the fix is clear: add a do before match.
That is, we should write
import Lean

namespace Lean.Meta

def f (e : Expr) : MetaM Bool :=
  forallTelescope e fun xs b => do
    match (← unfoldDefinition? b) with
    | none   => pure true
    | some _ => pure false

end Lean.Meta

I tried to address this issue using the following approach
1- Create an auxiliary notation litfMethod% m a term where m is the id of the metavariable where we should put the elaborated term, and a is the name of the variable we created to perform the lifting
2- The elaborator for litfMethod% m a term elaborates the term with the current local context, and then tries to assign the result to m. If it contains variables that are not in the local context of m, we generate a nice error message. Then, the elaborator retrieves the variable a from the local context and returns it.
3- A do-element C[(<- t)] is expanded to let a <- ?m; C[liftMethod% m a t]
It is good enough for passing our test suite, but it fails to build stage2. The problem is that the elaborated term may contain "holes", that is, unassigned metavariable corresponding to postponed terms, pending TC problems, etc. We cannot perform the check until terms are assigned to these metavariables.
I liked the solution above because I thought it didn't require changes to the elaborator, but I think we would be able to at least register a new kind of pending elaboration problem. Moreover, even if we do it, the solution may still not be good enough since we would be affecting the elaboration order. @Kha, I will keep thinking about alternative solutions. This one is getting too complicated.
Here is the failed experiment: https://github.com/leanprover/lean4/tree/liftMethodIssue
BTW, we also considered the following solution

Interrupt method lifting as soon as we find fun and match. This will of course fail for user-defined syntax, but we could let users register other SyntaxNode kinds that we cannot lift over. If we view this feature as a linter that is helping the user to make mistakes, then this solution doesn't look too bad.


Set nscd template variables to lazy

Description
Currently unable to override nscd attributes from a recipe later in the run_list. By setting the nscd.conf template variables to Lazy Evaluation this waits until after all compile time overrides have completed.
While adding overrides in attribute files, in policies or earlier in the run_list works, this change allows more flexibility.
Issues Resolved
Check List

[x] A summary of changes made is included in the CHANGELOG under ## Unreleased
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.

Obsolete ci/delivery will be removed when https://github.com/sous-chefs/nscd/pull/40 is merged. Need someone with permission to add a Release Label Validator


Create documentation notebooks

Documentation notebooks:

the data and degradation functions
dataset creation
the acme dataset
the degrader
measure errors
the models (load parameters saved on dropbox)
evaluation
reproducing results

Probably can be closed?

Yup!


error migrate 1.14.7 to 1.15.11

Description
I want to migrate from version 1.14.7 to 1.15.11.
The platform is well accessed but when accessing any repository I get a 500 error.
The log shows this:
Render Failed: template: repo/branch_dropdown:12:126: executing "repo/branch_dropdown" at <.root.CommitId>: invalid value; expected string
Template: status/500
What can happen?
Gitea Version
1.15.11
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
1.15.11
Operating System
windows Server
How are you running Gitea?
Windows server + SQL Server
Database
MSSQL

The latest supported release is 1.17.x, please try to upgrade to 1.17.2

The latest supported release is 1.17.x, please try to upgrade to 1.17.2

Error with 1.17.2
2022/10/05 16:19:51 cmd/web.go:95:func1() [F] PANIC: template: repo/home:67: function "EscapePound" not defined
/usr/local/go/src/html/template/template.go:374 (0x240fab5)
/go/pkg/mod/github.com/unrolled/render@v1.4.1/render.go:322 (0x240f836)
/go/pkg/mod/github.com/unrolled/render@v1.4.1/render.go:202 (0x240ebee)
/go/pkg/mod/github.com/unrolled/render@v1.4.1/render.go:146 (0x240e7c1)
/source/modules/templates/base.go:86 (0x24bf73e)
/source/routers/web/base.go:127 (0x2fbbe69)
/source/routers/web/web.go:123 (0x2fbefab)
/source/routers/init.go:174 (0x2fdeedc)
/source/cmd/web.go:177 (0x30abc66)
/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:524 (0x29ef75f)
/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:173 (0x29f036b)
/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:277 (0x29ed333)
/source/main.go:116 (0x30e2766)
/usr/local/go/src/runtime/proc.go:250 (0x132fc00)
/usr/local/go/src/runtime/asm_386.s:1326 (0x135ce70)

Are you using custom templates?

Are you using custom templates?

I don't think so. How can I be sure?

You must be using customized templates. https://docs.gitea.io/en-us/customizing-gitea/#customizing-gitea-pages-and-resources
Remove your customized templates then Gitea will work well.

Since it doesn't seem to be a Gitea bug, I will close this issue.
Feel free to re-open if you can reproduce it with a fresh setup and confirm it's a bug, or if you would propose some solutions for the edge cases or update the documents to help to future users to get rid of similar problems.


npm update is not working.

Hello,
How to upgrade from vue2.2 to vue 2.3 I am trying to do npm update and all but package.json is not updated. Is it something I have to edit manually? I hope there is something npm update --save. Can someone please help me with this?

Hi @bramu
It depends how you specified vue dependency in your package.json.
See https://docs.npmjs.com/cli/update
You can update it manually in your package.json and then run npm install.
I recommend you to use https://yarnpkg.com/lang/en/ or https://www.npmjs.com/package/npm-check-updates

Thank your for your interest in this project.
However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).
We encourage you to ask it on the forum  , Stack Overflow or on gitter and are happy to help you out there.


[BUG] EmbeddingBag sparse gradients skipped without error or warning

Describe the bug
When you try to use EmbeddingBag with sparse gradients, they will be skipped silently and will not be used in all_reduce logic because split_half_float_double_csr doesn't check torch.cuda.sparse.FloatTensor type.
I think we need to change logic and not iterate over data types, but rather iterate over tensors and check that their data type in supported data types.
To Reproduce
import copy
import torch
import typing
import torch.distributed
import deepspeed

params = {
    "train_batch_size": 2048,
    "train_micro_batch_size_per_gpu": 1024,
    "steps_per_print": 1,
    "sparse_gradients": True,
}

class Adam(torch.optim.Optimizer):
    def __init__(
        self,
        dense_params: list,
        sparse_params: list,
        lr: float = 1e-3,
        betas: typing.Tuple[float, float] = (0.9, 0.999),
        eps: float = 1e-8,
        weight_decay: float = 0,
        amsgrad: bool = False,
    ):
        super().__init__(
            dense_params + sparse_params, dict(lr=lr, betas=betas, eps=eps, weight_decay=weight_decay, amsgrad=amsgrad)
        )

        self.adam = torch.optim.Adam(dense_params, lr, betas, eps, weight_decay, amsgrad)
        self.adam_sparse = torch.optim.SparseAdam(sparse_params, lr, betas, eps)

    def state_dict(self) -> dict:
        result = super().state_dict()
        result["adam"] = self.adam.state_dict()
        result["adam_sparse"] = self.adam_sparse.state_dict()
        return result

    def load_state_dict(self, state_dict: dict) -> None:
        state_dict = copy.deepcopy(state_dict)
        self.adam.load_state_dict(state_dict.pop("adam"))
        self.adam_sparse.load_state_dict(state_dict.pop("adam_sparse"))
        super().load_state_dict(state_dict)

    @torch.no_grad()
    def step(self, closure=None) -> typing.Optional[float]:
        loss_1 = self.adam.step(closure)
        loss_2 = self.adam_sparse.step(closure)

        if loss_1 is not None and loss_2 is not None:
            return loss_1 + loss_2
        return loss_1 or loss_2

class Model(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.emb = torch.nn.EmbeddingBag(10, 3, mode="sum", sparse=True)
        self.linear = torch.nn.Linear(3, 1)

    def forward(self, x, offsets):
        return self.linear(self.emb(x, offsets))

model = Model()
model, optim, _, _ = deepspeed.initialize(
    model=model, optimizer=Adam(list(model.linear.parameters()), list(model.emb.parameters())), config_params=params
)
loss = torch.nn.BCEWithLogitsLoss()

device = f"cuda:{torch.distributed.get_rank()}"
x = torch.tensor([1, 2, 4, 5, 4, 3, 2, 9], dtype=torch.long, device=device)
offsets = torch.tensor([0, 4], dtype=torch.long, device=device)
model(x, offsets)
y = torch.tensor([[1.0], [0.0]], device=device)

model.train()
res = model(x, offsets)
model.backward(loss(res, y))
model.step()

Expected behavior
Throw an error if it encounters gradients with unsupported data types.

Thank you for reporting this issue @Dipet! I've just pushed #1418, can you give it a try? I've added a unit test based on your repro code above, thank you for including this.


Image not available

When non-imgur link, Image not available

Accounted for non-imgur direct image links


Fix CI

Travis does not seem to work anymore. See for example #156  which did not trigger any build.
Maybe we could switch to GitHub actions.

I fixed it - the problem was a missing plan selection. Should be built again now.

Works again. Thanks!


Why does it crash?

My software used ReoGridControl, and I don't know why it often crash in some situation. It's not clear what's wrong with the code because the exception message and the stack trace are not understandable.
exception:

stack trace:

Is it a bug? How could I do with that?

This is a bug. ReoGrid keeps position of old selection range and when loading a new worksheet that has less cells than the position of selection range, the bug will happen.
You may set the selection range to first cell before loading any worksheet to avoid this problem. I will fix this as soon as possible.

We are happy to get reply soon and thank you so much. Waiting to get repair~

@jingwood Have this bug been fixed? Should we wait for nuget update or use the source code in github?

Hello,
i handle this bug by changing the current worksheet property when new worksheet added. You can try it until the bug fixed.
grid.CurrentWorksheet = grid.Worksheets[1];
grid.CurrentWorksheet = grid.Worksheets[0];

Somehow this trick works for me.

How to reproduce this bug, can someone provide an example code?


Dynamically changable effects

Consider for example a card, let's call it "Megaman" that has: "At the end of your turn, deal 2 damage to all opponent creatures"
And then a card that says: "Your Megaman's deal 4 damage to all opponent creatures instead."
The key here is that the effect of the Megaman should be changed without changing the code for the Megaman. i.e. no if-else statement to check if the other card is in play or not.

Perhaps I'm reading this wrong but would this not be principally a matter of being able to have an effect applicable on a specific card? (rather than a card type or zone)? Like, for instance (notice new keyword in filter)
name: "gives Megaman +2 attack",
afterPlay: [
    {
        res: ATTACK,
        priority: 1,
        change: 2,
        filter: { specificCreature: "Megaman", owner: "owner" }
    },

No, this does not change the attack of Megaman, it changes one of the effects on Megaman.


How to pass environment variables to docker-compose?

Can you provide an example in which environment variables, which are defined within the Vagrantfile, are made available to the docker-compose command? The goal is to have a Dockerfile that references them, like so:
RUN ["login-npm", "${NPM_USERNAME}", "${NPM_PASSWORD}", "${NPM_EMAIL}"]

Nothing I've tried so far seems to work.
Thank you.

@tkambler There isn't a way to do this in the current version (1.0.0), but I think this could be added without a great deal of effort. Stay tuned.

@leighmcculloch Here's the situation:
I've got a collection images that need to be built, but the build process includes some dependency grabs that require credentials. I obviously don't want to add that information to the Dockerfile, so I'd like to be able to pass it in as config via the Vagrantfile.
I hear you re: environment variables. I may be on another wild goose chase, but I do think I may be on the verge of making this work with ARG options. I'll post any progress shortly.

Closing this out for now. While not ideal, due to the duplication (for each service), I managed to get to a semi-decent state by doing the following:
The docker-compose.yml file looks like this:
version: '2'
services:
  service:
    build:
      context: ./resources/service
      dockerfile: docker/Dockerfile
      args:
        - NPM_USERNAME=username
        - NPM_PASSWORD=password
        - NPM_EMAIL=user@domain
        - NPM_REGISTRY=https://npm.domain.com
    container_name: service
    entrypoint: npm start
    working_dir: /opt/service
    environment:
    - NODE_PATH=./lib
    - NODE_ENV=development
    ports:
    - "7020:7020"

That service's Dockerfile looks like this:
FROM node
# ...
ARG NPM_REGISTRY
ARG NPM_USERNAME
ARG NPM_PASSWORD
ARG NPM_EMAIL
RUN ["npm", "set", "always-auth", "true"]
RUN npm set registry "${NPM_REGISTRY}"
RUN login-npm "${NPM_USERNAME}" "${NPM_PASSWORD}" "${NPM_EMAIL}"

Am just testing this change ^.

@tkambler This is added in the latest version (v1.1.0) and has been pushed. If you run vagrant plugin install vagrant-docker-compose you should get the new version. Then you can specify environment variables in a Hash like so:
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"

  config.vm.provision :docker
  config.vm.provision :docker_compose, env: { PORT: "80" }, yml: "/vagrant/docker-compose.yml", run: "always"
end

Terrific!


uart buffering

I'm using the BNO085 on a Raspberry Pi in RVC mode. I had some odd behaviour when using the example program from the Adafruit website to read the sensor in a loop every 0.1 seconds. The problem seems to be that the serial.Serial object buffers input, with the result that loop like
while True:
    yaw, pitch, roll, x_accel, y_accel, z_accel = rvc.heading
    print(yaw, pitch, roll, x_accel, y_accel, z_accel)
    time.sleep(0.1)

returns lots of old buffered values, rather than the current value each time it is requested. I worked round the issue by inserting a line
rvc._uart.reset_input_buffer()

before reading the heading property, but presumably this shouldn't be necessary.

The problem in the demo is with the UART buffer and the sleep.  During the sleep, the sensor is filling up the buffer which is first in first out.  Based on a cursory read of the code, it looks like the buffer can hold over 100 entries.  Therefore, the actual heading getting printed in the demo can be old data.
Your solution of resetting the buffer should work.  Another solution is to set the buffer to 19 bytes instead of 2048.
uart = busio.UART(board.TX, board.RX, baudrate=115200, receiver_buffer_size=19)
I chose 19 because the program looks for a 2-byte header prefix and then once found reads an additional 17 bytes which comprises the heading frame.
Obviously either approach has the potential to skip some of the transmitted 19-byte messages depending on how fast you process the received data.  Decreasing the sleep value should allow for a larger buffer.


cancelled open sell order from binance dashboard

If you cancelled open sell order from Binance dashboard the coin will disappear until you sell all of it, it will show again

look to ETH

First of all, @AhmedElkanany please use the template provided for the bug report.
And provide any details and some logs.
See this page  https://github.com/chrisleekr/binance-trading-bot/wiki/Troubleshooting

As I haven't got any more information, let me close the issue.
Please open a new issue or reopen this if you still have an issue.


Add ability to configure subset of OGC services

Overview
It shouldn't be necessary to run a WMS service in order to run a WCS service. This PR makes all top level service configurations optional; empty configuration blocks are tolerated
All supplied:

Only WMTS supplied:

Closes #151

Changelog added here https://github.com/geotrellis/geotrellis-server/commit/11ac302731e07fa23ca13ec8f2a2b7d41460c51e


500 Error (SocketException) After Publish To Azure

Bot Info             bot handle: wandrillehandle, messaging endpoint: https://wandrille-chatbot1.azurewebsites.net/api/messages

App ID: d113c215-0172-41db-8a87-740c101f9754
SDK Platform: .NET
SDK Version: 4.7
Active Channels: Skype, Webchat
Deployment Environment: Azure App Service, Azure bot service, ngrok

Issue Description
Application that utilizes bot framework.  When ran locally, it works as expected as tested from bot emulator.  When push to Azure, and test from bot emulator get a 500 error.
Code Example
public async Task Post([FromBody]Activity activity)
{
        if (activity.Type == ActivityTypes.Message)
        {
            await Conversation.SendAsync(activity, () => new Dialogs.RootDialog());
        }
        else
        {
            HandleSystemMessage(activity);
        }

        var response = Request.CreateResponse(HttpStatusCode.OK);
        return response;
    }

Reproduction Steps

Publish bot to Azure
open bot emulator and send message to api/messages endpoint
get message can't be sent and see 500 error in logs

Expected Behavior
bot to receive and respond correctly.
Actual Results
When run with debugger attached, on the code line:
await Conversation.SendAsync(activity, () => new Dialogs.RootDialog());
am getting an HttpRequestException with: Message      "An attempt was made to access a socket in a way forbidden by its access permissions <IP_ADDRESS>:61384"
full error:
System.Net.Http.HttpRequestException occurred
HResult=0x80131500
Message=An error occurred while sending the request.
Source=mscorlib
StackTrace:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Rest.RetryDelegatingHandler.<>c__DisplayClass11_0.<b__1>d.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Rest.RetryDelegatingHandler.d__11.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Connector.JwtTokenRefresher.d__2.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Bot.Connector.BotState.d__8.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Connector.BotStateExtensions.d__7.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.ConnectorStore.<Microsoft-Bot-Builder-Dialogs-Internals-IBotDataStore-LoadAsync>d__2.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.d__8.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.CachingBotDataStore.<Microsoft-Bot-Builder-Dialogs-Internals-IBotDataStore-LoadAsync>d__6.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.BotDataBase1.<LoadData>d__16.MoveNext()    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.Bot.Builder.Dialogs.Internals.BotDataBase1.d__8.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.DialogTaskManagerBotDataLoader.d__11.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.PersistentDialogTask.d__3.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.ExceptionTranslationDialogTask.d__2.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.SerializeByConversation.d__4.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.PostUnhandledExceptionToUser.d__5.MoveNext()
at Microsoft.Bot.Builder.Dialogs.Internals.PostUnhandledExceptionToUser.d__5.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Internals.LogPostToBot.d__3.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Conversation.d__11.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.Dialogs.Conversation.d__6.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ContosoHelpdeskChatBot.MessagesController.d__0.MoveNext() in F:\IntelligentAppsTest\ContosoHelpdeskChatBot-Pbi1\ContosoHelpdeskChatBot\Controllers\MessagesController.cs:line 23
Inner Exception 1:
WebException: Unable to connect to the remote server
Inner Exception 2:
SocketException: An attempt was made to access a socket in a way forbidden by its access permissions <IP_ADDRESS>:61384

@wany23 I just tested your bot in webchat on the dev portal and it seemed to be working fine, are you still having this issue?

updating the bot emulator to v3.5.34 fixed the issue and is now working for
me.
On Fri, Dec 1, 2017 at 12:21 PM, Jason Sowers<EMAIL_ADDRESS>wrote:

@wany23 https://github.com/wany23 I just tested your bot in webchat on
the dev portal and it seemed to be working fine, are you still having this
issue?
[image: image]
https://user-images.githubusercontent.com/6301037/33497056-67f94766-d681-11e7-8409-86c786e49d3e.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BotBuilder/issues/3859#issuecomment-348569565,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD1k5wiXdY-VmhXm-LIZ2FwxSErnzMk_ks5s8EO_gaJpZM4QyZVe
.

I am using Bot Framework v4, Emulator v 4.3.3 and working properly in local host but once i publishing to azure , when i test in emulator it is not working ? Could you please help me out.


Build keybase without CGO, kbfsdokan with CGO

@maxtaco @MarcoPolo

I already built an installer on this branch, it works


Remove or update existing PR comments when adding a new one

Given I set add-job-summary-as-pr-comment: 'on-failure',
And 'foo' job has failed leaving a PR comment with the failure
When a later run of 'foo' succeeds

Then should the failure comment be removed? From what I gathered, that's not implemented, so I'm opening a discussion about it. Repro of current behavior: https://github.com/gabrielfeo/develocity-api-kotlin/pull/233
In my opinion, it'd be best to either remove the comment or update it with an OK sign and the latest (successful) build scan. When the job succeeds, the failure comment becomes outdated info.

You're right we don't do anything to remove or modify previous job summary comments when submitting a new one.
Likely the ideal default behaviour would be to replace any outdated PR comments with a simple link to the GitHub Actions build (removing the large summary). Although removing it would also be reasonable behaviour I guess.


[feature]: add feature to support dim export onnx model

this pr is used to support dim to export onnx model

Thanks! This will fix https://github.com/open-mmlab/mmediting/issues/205 by detecting the is_in_onnx_export mode, right?

Thanks! This will fix #205 by detecting the is_in_onnx_export mode, right?

yes,It is only used when exporting the onnx model, and does not affect the training process


test(post-deploy): use different way of excluding post-deploy tests

See https://github.com/adobe/helix-rum-collector/pull/351#issuecomment-2211048765


Virtual Meet and Greet

integrate video chat functionality into the app, allowing pet lovers to meet and interact with pets they are interested in virtually. This feature can help them understand the pet's personality and behavior before deciding to meet in person.

Integrate video chat functionality into the app, allowing pet lovers to meet and interact with pets they are interested in virtually. This feature can help them understand the pet's personality and behavior before deciding to meet in person.


Include errors in ParallelWaitError.toString somehow

This tracker is for issues related to:

Dart core libraries (dart:async, dart:io, etc.)

ParallelWaitError.toString currently only returns the string "ParallelWaitError". This makes it hard to understand what the problem is when ParallelWaitError is not explicitly caught and inspected.

Another potential issue that makes ParallelWaitError hard to diagnose is that they are thrown without a StackTrace.
How things work right now, I feel like the only advisable usages of the wait extensions are (1) without a try/catch if you are certain that the involved Futures with never complete with an error (which seems unrealistic in most cases) or (2) with a try/catch where you inspect the errors. It's also easy to get option 2 wrong by not matching the shape of the awaited record properly in the on clause of the try/catch.

@lrhn I see https://dart-review.googlesource.com/c/sdk/+/326644 is "Ready to submit". Thanks for working on this! Any idea when this CL will land?

Hey, it's been more than six months since the above Dart PR was submitted. Are there plans to merge it? :) @lrhn

That CL was replaced by https://dart-review.googlesource.com/c/sdk/+/353080 (which did less work on the success branch, in return for more work if an error occurred, which is a good trade-off).
It landed in February (just!).

Tested this out with an sample below.
Is it possible to get the ParallelWaitError.stackTrace also for the await (runA(), runB()).wait; in main method?
In this sample the ParallelWaitError.stackTrace doesn't show that the .wait was executed from main only runA method is shown. See comments in sample.
The problem is that when runA is reusable and also called from somewhere else, then i don't which code called it.
import 'dart:async';

void main() async {
  try {
    final (a, b) = await (
      runA(),
      runB(),
    ).wait;
  } on ParallelWaitError<
      (
        void,
        void,
      ),
      (
        AsyncError?,
        AsyncError?,
      )> catch (exception) {
    final stackTrace = exception.stackTrace;
    // The stackTrace is equal to:
    // #0      runA (package:my_app/main.dart:29:3)
    // <asynchronous suspension>
    // #1      _FutureResult._onValue (dart:async/future_extensions.dart:584:3)
    // <asynchronous suspension>
  }
}

Future<void> runA() async {
  await Future.delayed(Duration(seconds: 1));
  throw Exception('error A');
}

Future<void> runB() async {
  await Future.delayed(Duration(seconds: 1));
  throw Exception('error B');
}

I don't see any easy way to give you a stack trace that contains the wait, since the wait never throws.
The only stack traces you get are for actual throws. There is no throw in the wait code, it doesn't fail, and the code that does fail was runA() which was called before wait, not during the execution of wait.

`. @mkustermann Is there something here that might allow a better stack trace?)

Delegating to @mraleph who recently reworked this logic - with support of a @pragma('vm:awaiter-link') that guides unwinding for stack trace purposes (see a52f2b96179ebdf29c38cab47e73dd1c6ec6bdff and following CLs)


New Dice gamble

Please add this Dice in your DiceBot
https://yobit.net/en/dice/

Yobit is not provably fair.


[add] nbproject in .gitignore

Coverage decreased (-0.003%) to 84.792% when pulling ea73cf7d326bf81e432c89b554bf7fd03ca052f3 on itowtips:gitignore into 41fcfc1cf1462995427e2d74dd614ba289aeddde on shirasagi:master.


Problems with unbound_forward_zones

If using Python 3 (like on Ubuntu 18.04), you encounter this:
FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"}

.iteritems() has been removed in Python 3
Secondly, it's a dict so you can't have multiple keys with the same name, like in the case of multiple forward-addr keywords.
 [WARNING]: While constructing a mapping from ..., line 68, column 9, found a duplicate dict key (forward-addr). Using last defined value only.

Seems to be the same for stub-zones.

Hi,
Thanks for the issue. You're right about both, I will move to a list for unbound_forward_zones (but still supporting dicts for backward compatibility, just moving to .items() instead of iteritems().

Hi @quulah,
Sorry for the delay. In fact, I kept dicts for forward and stub zones, but I switched to items() to fix the issue with python 3, and now allows to have a list as a value for one key in order to duplicate the option.
So, in your case, with multiple forward-addr, you can just do:
unbound_forward_zones:
  - name: domain.tld
    forward-addr:
      - addr1
      - addr2

Tell me if you have any issue with these changes.
Thanks!


[CT-2825] [Bug] Executing ALTER ROLE in DBT macro

Is this a new bug in dbt-core?

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

Current Behavior
I’m alternating between two schemas and in the final step of my DBT process have to change the user’s search_path.
It works fine in plain SQL:

ALTER ROLE ci_api SET search_path TO ci_f, public;
SELECT rolconfig FROM pg_roles WHERE rolname=‘ci_api’;

My macro supposed to do exactly the same:

{% macro sp1() %}
{% set sql %} ALTER ROLE ci_api SET search_path TO ci_x,public {% endset %}
run_query(sql);
{% do log(run_query(“SELECT rolconfig FROM pg_roles WHERE rolname=‘ci_api’”).columns[0].values()[0], info=True) %}
{% endmacro %}

But does nothing. No errors, the log looks normal, but search_path doesn’t change.
What am I missing?
Expected Behavior
the macro should ALTER ROLE
Steps To Reproduce
Run the above macro
Relevant log output
No response
Environment
- OS: Max OS
- Python: 3.9.6
- dbt: 1.5.2

Which database adapter are you using with dbt?
postgres
Additional Context
No response

Thanks for reaching out @acherniak!
Could you try this?
{% macro sp1() %}
{% set sql %} ALTER ROLE ci_api SET search_path TO ci_x,public {% endset %}
{{ run_query(sql) }}
{% do log(run_query("SELECT rolconfig FROM pg_roles WHERE rolname='ci_api'").columns[0].values()[0], info=True) %}
{% endmacro %}

Then run it:
dbt run-operation sp1

Otherwise, run_query(sql); will just be text (rather than executing the run_query Jinja macro).

Thank you @dbeatty10! It works!


FFTW

I've compiled liquiddsp but am not seeing evidence of FFTW being used in-place of the native liquid FFT functionality. ./configure states it sees FFTW on my system. Is there anything else I need to do to use FFTW's FFT capabilities? I ran liquid's FFT and FFTW in the same application to compare them and am certain liquid is not using FFTW based on speed. Thanks!

好啊，邮件收到啦！
Hi, your email is arrived safely

@jrmims What functions are you expecting FFTW to be used? configure should define the following in config.h:
#define HAVE_FFTW3_H 1
#define HAVE_LIBFFTW3F 1

This in turn specifies the use of FFTW in the internal header file to define macros used throughout the library.

I was expecting liquid to use fftw_plan_dft_1d instead of fft_create_plan (internally), for example. I made an application that ran Chrono for liquids fft and compared to fftw and the time duration was much larger with liquids. My expectations could be off or my install could be botched.

Just to follow up on this, running ./configure.sh should indicate that it's found both the FFTW header(s) and library, in which case it will use FFTW internally for most functions that need a transform. You can confirm this by looking at config.h as indicated above. That's step 1.
If there are specific functions that you are noticing are slow, please indicate to me which ones these are and I can check to see if they are using the internal FFT with liquid.

I am seeing fftw3 when I run configure.
"
Checking for fftw3.h usability... Yes
Checking for fftw3.h presence... Yes
Checking for fftw3.h... yes
Checking for fftwf_plan_dft_1d in -lfftw3f...  Yes
"
I do not see FFTW mentioned in /use/local/include/liquid.h
Slow down is in fft_execute, fft_create_plan. Vs fftw3's fftw_plan_dft_1d
and fftw_execute.
On Sun, Sep 25, 2022, 11:09 AM Joseph D. Gaeddert @.***>
wrote:

Just to follow up on this, running ./configure.sh should indicate that
it's found both the FFTW header(s) and library, in which case it will use
FFTW internally for most functions that need a transform. You can confirm
this by looking at config.h as indicated above. That's step 1.
If there are specific functions that you are noticing are slow, please
indicate to me which ones these are and I can check to see if they are
using the internal FFT with liquid.
—
Reply to this email directly, view it on GitHub
https://github.com/jgaeddert/liquid-dsp/issues/292#issuecomment-1257215100,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADLTE4ZAAJIOKMII4LCPPYTWABTJTANCNFSM56IDHASA
.
You are receiving this because you were mentioned.Message ID:
@.***>

./configure is showing FFTW3 found.
config.h also shows the values above.
the functions I am comparing in speed are:
fft_create_plan vs fftw_plan_dft_1d
fft_execute vs fftw_execute
fft_destroy_plan vs fftw_destroy_plan
sample code:
`
int main(int argc, char *argv[]) {
if(argc > 3) {
std::string inputFile = argv[1];
std::string outputFile1 = argv[2];
std::string outputFile2 = argv[3];
    // Extract filename
    std::cout << "Attempting to open file. : " << inputFile << std::endl;
    // Open file
    std::ifstream fin(inputFile, std::ios::binary);
    if(!fin) {
        std::cout << "Could not open input file" << std::endl;
        return 1;
    }
    fin.seekg(0, std::ios::end);
    const size_t numInputElements = fin.tellg() / sizeof(std::complex<float>);
    fin.seekg(0, std::ios::beg);

    std::ofstream fout1(outputFile1, std::ios::binary);
    std::ofstream fout2(outputFile2, std::ios::binary);

    size_t bufferSize = 1000000;  // number of symbols per grab
    unsigned int fftSize = nextPowerOfTwo(bufferSize);  // value is 1048576

    // Grab data
    std::vector<std::complex<float>> inputSymbols(bufferSize);
    fin.read(reinterpret_cast<char*>(&inputSymbols[0]), bufferSize*sizeof(std::complex<float>));
    std::cout << "fftSize : " << fftSize << std::endl;
    // FFTW
    {
        std::vector<std::complex<double>> signalVector(fftSize, 0);
        std::copy(inputSymbols.begin(), inputSymbols.end(), signalVector.begin());
        std::vector<std::complex<double>> fftVector(fftSize, 0);
        auto start = std::chrono::high_resolution_clock::now();
        fftw_plan plan;
        plan = fftw_plan_dft_1d(fftSize, reinterpret_cast<fftw_complex*>(&signalVector[0]), reinterpret_cast<fftw_complex*>(&fftVector[0]), FFTW_FORWARD, FFTW_ESTIMATE);
        auto end1 = std::chrono::high_resolution_clock::now();
        fftw_execute(plan);
        auto end2 = std::chrono::high_resolution_clock::now();
        fftw_destroy_plan(plan);
        auto end3 = std::chrono::high_resolution_clock::now();
        auto total = std::chrono::duration_cast<std::chrono::microseconds>(end3 - start);
        auto dur1 = std::chrono::duration_cast<std::chrono::microseconds>(end1 - start);
        auto dur2 = std::chrono::duration_cast<std::chrono::microseconds>(end2 - end1);
        auto dur3 = std::chrono::duration_cast<std::chrono::microseconds>(end3 - end2);
        std::cout << "Total Time fftw: " << total.count() << " microseconds" << std::endl;
        std::cout << "create plan fftw: " << dur1.count() << " microseconds" << std::endl;
        std::cout << "execute fftw: " << dur2.count() << " microseconds" << std::endl;
        std::cout << "destroy fftw: " << dur3.count() << " microseconds" << std::endl;

        std::vector<std::complex<float>> outVector(fftVector.size());
        std::copy(fftVector.begin(), fftVector.end(), outVector.begin());
        // Output to file
        {
            for(size_t idx = 0; idx < fftVector.size(); idx++) {
                fout1.write(reinterpret_cast<const char*>(&outVector[idx]), sizeof(std::complex<float>));
            }
        }
    }

    // Liquid DSP
    {
        std::vector<std::complex<float>> signalVector(fftSize, 0);
        std::copy(inputSymbols.begin(), inputSymbols.end(), signalVector.begin());
        std::vector<std::complex<float>> fftVector(fftSize, 0);
        auto start = std::chrono::high_resolution_clock::now();
        fftplan plan = fft_create_plan(fftSize, &signalVector[0], &fftVector[0], LIQUID_FFT_FORWARD, 0);
        auto end1 = std::chrono::high_resolution_clock::now();
        fft_execute(plan);
        auto end2 = std::chrono::high_resolution_clock::now();
        fft_destroy_plan(plan);
        auto end3 = std::chrono::high_resolution_clock::now();
        auto total = std::chrono::duration_cast<std::chrono::microseconds>(end3 - start);
        auto dur1 = std::chrono::duration_cast<std::chrono::microseconds>(end1 - start);
        auto dur2 = std::chrono::duration_cast<std::chrono::microseconds>(end2 - end1);
        auto dur3 = std::chrono::duration_cast<std::chrono::microseconds>(end3 - end2);
        std::cout << "Total Time Liquid: " << total.count() << " microseconds" << std::endl;
        std::cout << "create plan Liquid: " << dur1.count() << " microseconds" << std::endl;
        std::cout << "execute Liquid: " << dur2.count() << " microseconds" << std::endl;
        std::cout << "destroy Liquid: " << dur3.count() << " microseconds" << std::endl;

        // Output to file
        {
            for(size_t idx = 0; idx < fftVector.size(); idx++) {
                fout2.write(reinterpret_cast<const char*>(&fftVector[idx]), sizeof(std::complex<float>));
            }
        }
    }
    fin.close();
    fout1.close();
    fout2.close();
} else {
    std::cout << "./ffttest <input data> <output file fftw> <output file 2 liquid>" << std::endl;
    return 1;
}
return 0;

}
`
output:
fftSize : 1048576
Total Time fftw: 41066 microseconds
create plan fftw: 1956 microseconds
execute fftw: 39098 microseconds
destroy fftw: 10 microseconds
Total Time Liquid: 143412 microseconds
create plan Liquid: 48338 microseconds
execute Liquid: 95056 microseconds
destroy Liquid: 18 microseconds

Yes, the reason why liquid-dsp's FFT is slower is because of several additional memory copy operations. These will get removed at some point. Grepping the source code indicates the only area that I'm using liquid's internal FFT is the fftfilt, qdetector, and qpilotsync used for framing synchronization.
I should be able to pull these forward.

Should be up to date now.

Ok, just to confirm fftfilt, qdetector, and qpilotsync now use FFTW if
available and I should use FFTW directly if I need faster FFTs?
On Thu, Oct 20, 2022, 8:58 PM Joseph D. Gaeddert @.***>
wrote:

Should be up to date now.
—
Reply to this email directly, view it on GitHub
https://github.com/jgaeddert/liquid-dsp/issues/292#issuecomment-1286324350,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADLTE47QV3AHLFT4P7NE7CDWEHTCPANCNFSM56IDHASA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yes, that is correct. They all use templated FFT methods and default to FFTW if installed. They fall back to the internal FFT methods if FFTW is not installed or if configure is run with the --enable-fftoverride option.


Update cloudflare/circl and golang.org/x/crypto

cloudflare/circl v1.3.7 fixes https://github.com/advisories/GHSA-9763-4f94-gfch

+1, this is also impacting https://github.com/GoogleContainerTools/kaniko/ - https://github.com/GoogleContainerTools/kaniko/issues/2953

Closing as it's included in #182


How to add a tile to Power BI report

Hi there. Have followed along these instructions. However, I do not see a tile feature anywhere in the current version of Power BI Service or Power BI Desktop. I would like to add HTML content. Thank you

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

ID: d341efbc-c7f8-97ea-080f-8c5c4dc32613
Version Independent ID: 473c098e-8d06-be1a-1720-d516a1ec5cc6
Content: Create or edit a dashboard tile - Power BI
Content Source: powerbi-docs/create-reports/service-dashboard-edit-tile.md
Service: powerbi
Sub-service: pbi-reports-dashboards
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Hi @jaramiar, hmm.. indeed, in Desktop I do not see that option. We will follow up. In the service, have you tried doing it in the service via a dashboard? Go into a workspace, select New > Dashboard

Then, in the new dashboard, choose Tile under the Edit menu:

Does that give you the options you were looking for?
In the meantime I'm going to close this issue here and move your comment about the docs pages to our work backlog so that we can better consider it and track progress on it. Please feel free to comment on this issue still or to reopen if necessary. Thanks!


Merge StagerPool into DeaPool

DEA will stop sending staging.advertise messages

[#112002541]
Signed-off-by: Jonathan Berkhahn<EMAIL_ADDRESS>

Do not merge this until I give the go ahead. I have not accepted any part of this.

LGTM, this can now be reviewed for inclusion


Service not found issue

Change the registry.ErrNotFound error message, and update some other changes.

#659 service not found error message

I was going to pull my implementation, but after a little testing, you closed my issue.

selector.ErrNotFound is only used by the router, but registry.ErrNotFound is returned at this time.
https://github.com/micro/go-micro/blob/8986b3135f72770b70596871e4ecd8c508c7b354/server/grpc/grpc.go#L273

if service == nil {
	return status.New(codes.Unimplemented, fmt.Sprintf("unknown service %v", service)).Err()
}

service is nil, so it will just print , use serviceName will be better.

I can't accept this change. The client uses the selector. The registry doesn't have to be used within the selector. Leaking the registry error and making use of that is wrong. We only need to look for the select error.

OK, I'll change the registry error back, but this issue occurs by below code:
client/grpc.go
next, err := g.opts.Selector.Select(service, opts.SelectOptions...)
	if err != nil && err == registry.ErrNotFound {}
}

selector/default.go
func (c *registrySelector) Select(service string, opts ...SelectOption) (Next, error) {
	services, err := c.rc.GetService(service)
	if err != nil {
		return nil, err
	}
}

registry/cache.go
func (c *cache) GetService(service string) ([]*registry.Service, error) {
	// get the service
	services, err := c.get(service)
	if err != nil {
		return nil, err
	}
	// if there's nothing return err
	if len(services) == 0 {
		return nil, registry.ErrNotFound
	}
	// return services
	return services, nil
}

Do you think this change is ok?
// get the service
// try the cache first
// if that fails go directly to the registry
services, err := c.rc.GetService(service)
if err != nil {
	if err == registry.ErrNotFound {
		return nil, ErrNotFound
	}
	return nil, err
}

That's fine. Can you squash the commits please.

OK, i'll squash my commits later.

I've squash my commits.


Typo in Q10

The question is What is the highest level of education you have attained? and the last option should be Other. Currently, the r is missing, and the option is rendered as Othe

The source file contains the correct entry. Presumably a bug in the survey generation code


Avoid using IHostEnvironment.IsDevelopment in OptimizeArtifactWorkflow

What was done for Marten in https://github.com/JasperFx/marten/issues/2367 would make sense for Wolverine as well.
From the ticket

our local machine uses the environment Local and Development is used in one of the deployed environments.

We face the exact same issue.

Funny, I thought about that a bit the other day. That's a quick "I take pull requests" for the inevitable 1.0.1 early next week


How to decode instruction data

I am trying to figure out how to get the decoded instruction data for system programs, I found this comment on an old issue but it appears there was a change and that code path was removed.
My use case is to filter for transactions that are using the token program initialize mint and I believe I need the decoded instruction to see what the type is?
Is there an example somewhere of how to decode a UICompiledInstruction for something like this?

See https://kevinheavey.github.io/solders/api_reference/instruction.html#solders.instruction.CompiledInstruction.from_bytes


Match shows error when running on new clean keychain

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Match shows error when running on new clean keychain
output
[16:20:53]: --------------------------------
[16:20:53]: --- Step: create_keychain ---
[16:20:53]: --------------------------------
[16:20:53]: $ security list-keychains -d user
[16:20:53]: ▸ "/Users/antol/Library/Keychains/login.keychain"
[16:20:53]: -----------------------------
[16:20:53]: --- Step: match_all_certs ---
[16:20:53]: -----------------------------
[16:20:53]: $ security default-keychain
[16:20:53]: ▸ "/Users/antol/Library/Keychains/TempKeychain.keychain"
[16:20:53]: -------------------
[16:20:53]: --- Step: match ---
[16:20:53]: -------------------

+-----------------------+------------------------------------------------+
|                        Summary for match 0.6.2                         |
+-----------------------+------------------------------------------------+
| git_branch            | *********                                     |
| team_id               | **********                                     |
| app_identifier        | com.****.****.staging                     |
| type                  | enterprise                                     |
| readonly              | true                                           |
| shallow_clone         | true                                           |
| force_for_new_devices | false                                          |
| git_url               | git@bitbucket.org:*******/******-certs.git |
| username              |<EMAIL_ADDRESS>                     |
| keychain_name         | TempKeychain.keychain                          |
| verbose               | false                                          |
| force                 | false                                          |
| skip_docs             | false                                          |
+-----------------------+------------------------------------------------+

[16:20:53]: Cloning remote git repo...
[16:20:56]: Checking out branch *********...
[16:20:56]: 🔓  Successfully decrypted certificates repo
[16:20:56]: Installing certificate...

//Error
[16:20:56]: There are no local code signing identities found. You can run `security find-identity -v -p codesigning` to get this output.
            This Stack Overflow thread has more information: http://stackoverflow.com/q/35390072/774.
            (Check in Keychain Access for an expired WWDR certificate: http://stackoverflow.com/a/35409835/774 has more info.)

//Following output
[16:20:57]: Installing provisioning profile...

+----------------------+--------------------------------------------+
|                  Installed Provisioning Profile                   |
+----------------------+--------------------------------------------+
| App Identifier       | com.******.********.staging                 |
| Type                 | enterprise                                 |
| UUID                 | ********************************       |
| Environment Variable | sigh_com.*******.*******.staging_enterprise |
+----------------------+--------------------------------------------+

[16:20:57]: All required keys, certificates and provisioning profiles are installed 🙌
[16:20:57]: 🔒  Successfully encrypted certificates repo
[16:20:57]: Setting Provisioning Profile type to 'enterprise'

Configuration Files
Fastfile:
lane :temp do
  create_keychain
  match
  delete_keychain
end

.env
MATCH_KEYCHAIN_NAME="TempKeychain.keychain"
KEYCHAIN_NAME="TempKeychain.keychain"
KEYCHAIN_PASSWORD="*******"
KEYCHAIN_SET_DEFAULT="1"

Environment
/Users/antol/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/fastlane-1.99.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?

Yes

I have the same error, when there are no codesigning identities in keychain.

@Antol @yakimant Have you run match development yet for this app? Also can you set read_only: false
Let me know how it goes! Hope you Have a great day!

I had the same error. As a workaround, I created new development certificate manually using Apple Developer Portal, downloaded it and installed on my Mac. Then, I just run match development and match appstore. This solved the issue. After match downloaded my certificates stored in GitHub repository, I revoked newly created development certificate and removed it from my Mac.
I had one more problem described here: #5649, but creating symlink:
ln -s ~/Library/Keychains/login.keychain-db ~/Library/Keychains/login.keychain

solved it as well.

@darrarski Thanks for sharing that update. Are you using Sierra? Thanks!

@TKBurner yes, I am using Sierra (clean install from usb stick after formatting whole drive). Apart from this issue I had no problems so far.

Hi @darrarski Thanks for following up. The symlink is required on sierra right now because of the change in location of the keychain. Do you still have any outstanding issues or are you able to run your lanes now? Thanks!

@TKBurner you are right about the symlink. I have no problems running lanes on Sierra after I performed steps mentioned above in my comment.

@darrarski Thanks! Going to leave this open because of the outstanding issue with the keychain 👍

This should have been fixed with the latest fastlane update, let us know if you still experience any issues.

I'm getting this error with CircleCI. Circle uses "circle" instead of login keychain, could this be related?

@i-schuetz Have you passed a keychain_name? Thanks!

I am experiencing a similar issue while setting up match on a clean Sierra machine with Fastlane 2.2.0 and Match 2.2.0
I am trying to set it up on an existing account, but ran nuke on both development and distribution to start on a clean slate. I have installed the WWDR certificate, both to the login and System keychains.
I have also tried creating a development certificate as suggested above, but this also did not help, as there are no certificates in the git store - I am trying to make them.
I experience the problem both when running sudo fastlane match development and sudo fastlane match distribution.
Any help would be greatly appreciated, I spent most of a day struggling with this now.


Start proxy within a Node/Express application, and run on a client in Heroku

Is there a way to run the scripts to download the proxy, have Google authentication set up, and begin listening for connections from an application in Heroku with the appropriate credentials? I have an application in Heroku with Express routes that connect to a Google Cloud SQL instance, and I would like to use the cloud_sql_proxy to connect it.
I can run the application locally, starting the proxy locally and listening for events. It seems to me that the proxy needs to run on the same machine/instance as the application, so it would seem to have to run in the cloud with Heroku. If so, how do I set up the proxy invocation to do so? Should it be invoked within Node/Express?

You will need to do this work yourself, but you can download the proxy and add it to your slug using a custom buildpack. You would then also need to write a script (and use that in your Procfile) that starts both the proxy and the express server together.
A coworker pointed me to heroku's pg-bouncer that uses a very similar strategy, which you can look at: https://github.com/heroku/heroku-buildpack-pgbouncer
Sorry that this is pretty convoluted.

It was a bit convoluted, but I did get it to work using a specific instantiation of the Procfile using a bash script to download and start the instance.
For others' reference, I used a file called proxy.sh that looks like below:
#!/bin/bash
wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.386
mv cloud_sql_proxy.linux.386 cloud_sql_proxy
chmod +x cloud_sql_proxy
./cloud_sql_proxy -instances=[instance-name]=tcp:3306 -credential_file=[path-to-file]

and a Procfile that looks like this:
web: (bash ./proxy.sh &) & node start.js

This was very helpful. Thank you!

Thanks for figuring this out!

@mm-wang does it work?

I would assume the credential file lives next to the app code, but isn't checked in. But I haven't tried this myself.

I haven't looked at this anytime recently, but I think I had a file that listed the credentials that was not checked in, as was suggested. It seems as if this is still a possibility:
https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/main/cmd/cloud_sql_proxy/cloud_sql_proxy.go#L104-L108


Unable to run setup

Whenever I open the set-up, I press a key and the cmd window immediately closes. When run as administrator, it gives the error "cannot find 'C:\WINDOWS\system32/EdgeWare/start.pw'"

When running as admin, it will change the current directory as explained in this stackoverflow post.
If you want to run as administrator, you could:

Open "Command Prompt" as Administrator
Execute the .bat in it. Either with the absolute path or by moving to its directory first.

But could you give your entire cmd output when not running as admin ?
Might help to debug

When ran normally, it gives this:
+==============[ Welcome to Edgeware Setup~ ]==============+
Python Version:
Python 3.11.3
Edgeware is ready to start.
Press any key to continue . . .
However when I press a key, it instantly closes the command prompt

Thank you. So ye, it does seems like it's crashing, the question is now why.
If you could share the in Edgeware/logs.
And also give the output when you run the "debugScript.bat" and select the "start" option( 1, if I remember correctly)

When I run the set-up batch file, it gives no log file. However, when I run the debugger, it runs the start option correctly, and also gives a log output. Though, another issue arises, and now whenever a sound plays, a horrid static sound accompanies it.
Sun_May_21_23-03-33_2023-dbg.txt

The setup should be only called once. Then it close and call the start.pyw which then should create desktop shortcuts etc.
So it's normal that it is closing. But then you should have a popup for the config if it the first time(no config.cfg found to be specific)..
The audio problem is not a new one I think. Not sure what's the problem is exactly. Might be thread-locking problem.
So reducing the frequency might do it for the moment.
What's your audioMod/Frequency ? You can check by launching the config.pyw(or via the debug script).


Implement --dry-run.

Implement with flag -n, and long flags --just-print, --dry-run, and --recon.
Print recipe lines but don't execute unless lines start with command prefix + or contain sub-make calls.
Reference: https://www.gnu.org/software/make/manual/html_node/Instead-of-Execution.html.

Maybe don't worry about sub-make in this issue. Just make sure + forces execution. We have another issue for sub-make craziness.

This should also ignore @ command prefixes since the whole point is to echo the commands rather than executing them.

Implemented in 1eeb32d1116870c6c37987498cbc16de03d7f8d7


compat(ACF): Replace structValueArray function

The structValueArray function is not available in ACF.

Thanks a bunch! 👍🏻

Absolutely! I'm really loving cbPlaywright so far. Thanks for your work on it. And thanks for guiding me through my first PR on Github. Now I'll know what to do next time!


Couldn't start clinet XXX server

Issue Type
Bug
Description
When I open JSON file or HTML file, there is error msg which show "Couldn't start clnet JSON/HTML server." Only Ruby client server can work.
Error: spawn C:\Program Files\Microsoft VS Code\Code.exe ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)

Memory (System)
3.88GB (0.62GB free)

Process Argv
C:\Program Files\Microsoft VS Code\Code.exe

Screen Reader
no

VM
40%

Extensions (11)

Extension
Author (truncated)
Version

html-snippets
abu
0.2.1

solargraph
cas
0.12.0

path-intellisense
chr
1.4.2

githistory
don
0.4.0

jquerysnippets
don
0.0.1

vscode-html-css
ecm
0.2.0

beautify
Hoo
1.3.0

Angular-BeastCode
Mik
5.2.16

vscode-docker
Pet
0.0.25

Ruby
reb
0.17.0

slim
sia
0.1.2

Reproduces only with extensions

Pls provide additional information or file the issue against the extension that causes the issue. Thanks a ton!


Update readtime text

Updated read time text from: XX min To: XX minute read. Added read time to top of blog post.
I pulled the read time icon css from: ShortBlogPost.razor.css and put it into ShowBlogPostPage.razor.css - this okay or should it be removed from both and put somewhere more universal?

Like, Approved, Merged ;) Thanks @digitaldirk