post-push.js is not executing anymore

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
dkn95cusc5c8
Region
us-west-2
Amplify Hosting feature
Backend builds
Describe the bug
We have a post-push.js script which runs on after every build.  This has been working without fail for months.  On Tuesday it stopped working for us on some of our existing branches.  Today I created a new branch and post-push.js ran on it, but when redeploying post-push.js no longer runs.  The post-push.js file exists in the app S3 bucket.  When I pull the environment locally the post-push.js file exists.  When I attempt to deploy locally it runs post-push.js locally.
Expected behavior
post-push.js should continue running after a build.
Reproduction steps

Add post-push.js to your hooks folder
Push to your github branch that is connected to amplify
Amplify builds and post-push.js runs
Push another change to the same branch
Amplify builds but post-push.js does not run

Build Settings
version: 1
env:
  variables:
    NODE_OPTIONS: --max-old-space-size=6500
backend:
  phases:
    preBuild:
      commands:
        - yum install -y yum-utils
        - yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
        - yum install -y terraform
        - yum install -y python3

    build:
      commands:
        - update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.8 11
        - /usr/local/bin/pip3.8 install --user pipenv
        - '# Execute Amplify CLI with the helper script'
        - amplifyPush --simple

Additional information
No response

It's due to the fact that the Amplify v.10.0.0 changes how the Hooks are handled. Now you have to check-in them in the version control. The hooks folder isn't uploaded to S3 anymore.
I think set the version in the Amplify Console/You App/Build Settings/ to the previous version of Amplify: 9.2.1, then you'll be ok:

However, with the v.10.0.0 of Amplify, there is another issue: https://github.com/aws-amplify/amplify-cli/issues/11021

Hi everyone 👋 , thanks for reaching out to us and we apologize for the delayed response on this thread.
It seems that this issue was fixed with the release of Amplify CLI version 10.5.0 as confirmed here: https://github.com/aws-amplify/amplify-cli/issues/11021#issuecomment-1319321271.
I am going to close this thread but please feel free to open a new GitHub issue if you are experiencing issues with Amplify Hosting.


feat: add azure openai support, refactor config

feat: add azure openai support
refactor config:

add WithXXX options, allow construct a config like  openai.NewConfig(...Option)
make the config field naming more like the openai python pkg's, this will make us follow py's changes more easy
add new NewConfig method, which will check the config just like the py' pkg (the error message almost the same)

resolve https://github.com/sashabaranov/go-openai/issues/142
new azure openai client:
	config, err := openai.NewConfig(openai.WithAPIKey("my-azure-key"),
		openai.WithAPIBase("https://xxxxxx.openai.azure.com/"),
		openai.WithEngine("YOU-MUST-SET-THIS"),
		openai.WithAPIVersion("2023-03-15-preview"),
		openai.WithAPIType(openai.APITypeAzure))

	c := openai.NewClientWithConfig(config)

LGTM, there is one authorization that needs to be revised. Also the /chat/completions API does not exist for the current stable API version api-version

authorization for non stream request just fixed.
about the /chat/completions API, we are using the preview version. I did not aware that -_-
what can we do about the stable version?  add a check and just return an not supported error ?

stable API version 2022-12-01
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/inference.json
This API includes a prompt field, if we want to support it, we can just deal with this field.
Or we can just declare we only support 2023-03-15-preview api version

currently, I follow the openai python package's logic just use the api type to detect the auth method like:
if c.config.APIType == APITypeAzure {
// use api-key method
} else {
// user bear token
}

I think maybe it is better to add a AuthMethod option to the config ?
like
type AuthMethod interface {
	SetupAuth(req *http.Request, apiKey string)
}

then impl two common :
type GenericAuth struct {
	KeyName string
}

func (a *GenericAuth) SetupAuth(req *http.Request, apiKey string) {
	req.Header.Set(a.KeyName, apiKey)
}

type BearTokenAuth struct{}

func (a *BearTokenAuth) SetupAuth(req *http.Request, apiKey string) {
	req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", apiKey))
}

and we can have the default:
var AzureAPIKeyAuth = &GenericAuth{KeyName: "api-key"}

var OpenAITokenAuth = &BearTokenAuth{}

Thank you so much for the PR!

A couple of general comments:

add WithXXX options, allow construct a config like  openai.NewConfig(...Option)

We are actively avoiding this style of configuration as discussed in https://github.com/sashabaranov/go-openai/pull/79.

make the config field naming more like the openai python pkg's, this will make us follow py's changes more easy

While making this package close to python's, it is less of a priority than not breaking API for existing clients. I don't think renaming Config fields and NewConfig with a returned error are justified given the API non-breakage goal.

A couple of general comments:

add WithXXX options, allow construct a config like  openai.NewConfig(...Option)

We are actively avoiding this style of configuration as discussed in #79.

make the config field naming more like the openai python pkg's, this will make us follow py's changes more easy

While making this package close to python's would be a good thing, it is less of a priority than not breaking API for existing clients. I don't think renaming Config fields and NewConfig with a returned error is justified given the API non-breakage goal.

it's just a kind of  common practice, many project use this style. I can accept that, if you don't like it.

if we do not check the error in the Config constructor, then it seems inappropriate to check for configuration errors elsewhere.  we just ignore the error checking， Leave the blame to the server and have the user check for errors returned by the server ？

just add error check for CreateChatCompletionStream,
seems there's other thing need fix:
=== RUN   TestCompletionsStreamWrongModel
    stream_test.go:29: CreateCompletion should return ErrCompletionUnsupportedModel, but returned: Post "http://localhost/v1/completions": dial tcp [::1]:80: connect: connection refused
--- FAIL: TestCompletionsStreamWrongModel (0.00s)

it's just a kind of common practice, many project use this style. I can accept that, if you don't like it.

Exactly, there are multiple common ways to pass the configuration, this library prefers using a single config struct.

if we do not check the error in the Config constructor, then it seems inappropriate to check for configuration errors elsewhere. we may need just ignore the error checking， Leave the blame to the server and have the user check for errors returned by the server ？

This PR checks for three errors:

Empty API key — I think it's fine not to check this during the configuration
Whether API type is supported – just type checking should be enough here if we use iota-enum for APIType
Empty APIVersion — it might make sense to have a DefaultAzureConfig(...) that ensures all the nitty-gritty details are specified

if cfg.APIKey == "" {
	return ClientConfig{}, fmt.Errorf("api key is required")
}

if _, ok := supportedAPIType[cfg.APIType]; !ok {
	return ClientConfig{}, fmt.Errorf("unsupported API type %s", cfg.APIType)
}

if cfg.APIType == APITypeAzure || cfg.APIType == APITypeAzureAD {
	if cfg.APIVersion == "" {
		return ClientConfig{}, fmt.Errorf("an API version is required for the Azure API type")
	}
}

OK.
I updated commits. and it is a mininal patch now. it is non-breaking.
try to fix the CreateChatCompletionStream not detect http error code issue, but which cause ErrorAccumulatorWriteErrors tests fail.
I think it's better deal this with other PR.
PTAL

Excellent, ready to merge once codecov issues are fixed 🙌🏻


As a Data owner/ manager I want to see basic summary of my data that I have uploaded ..so that I can see the impact of the data that I have contributed

original id#30
could be a summary on private login page - of data you uploaded - in ICES - in the bag
more suited to sit with a coordinator role to summarise data uploaded in the year

Need a bit more of clarification!

split out coordinator summary of data uploaded to JCDP in the year from this one - see data I have uploaded which original comment suggests is in the the ICES bag correct @neil-ices-dk

e.g. stock assessment example.
Fields per row TBC: surveyID, data owner, data provider, year. Includes count of downloads per dataset

@neil-ices-dk @cmspinto do we need a wireframe for this meta summary page? either way can you post a suitable screenshot of the stock assessment example which already exists in the system so that i can propose something based on this for our needs. thanks


07/11/2018 22:42 : Create Pull Request for branch master -> prTesting1_2018071122

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Delete notes.md

File has no right to be on this existential plane.

Done in commit: https://github.com/OriolFilter/Steam_Lobby_Discord_Bot/commit/c403a9912f25fed35c0f2e2a934263e9c3e95c71


Move the other periodic server tasks out to log_processes.cc

Dedup more server code and cleanup a lot of includes and using statements that are no longer used.

LGTM
I was going to say the flag was put in the wrong place, but the next commit fixes it, so all good. :smiley:


Should we show a product length for pseudogenes?

In v2 we show the product length for pseudogenes?  Should we?  PomBase v1 doesn't show it.
eg. "349 aa" here: http://preview.pombase.org/gene/SPAC212.10

we also need to review all pseudo genes.
https://github.com/pombase/curation/issues/21
If a gene has a single frameshift, it could be an error in the sequence we represent as a frameshift and call it "coding". We should only use pseudogene for things which are really degraded...

oh this was the comment I put earlier, but fogot to click "comment"
I don't think we should show length or size for pseudo.


Memory-heavy workloads may be scaled too high

Problem description / Motivation
Currently, the vm-monitor:

Reserves ~75% of memory for LFC
Asks for scale-up when postgres exceeds the remainder (without looking at what is actually being used by the LFC)

This works ok as a naive solution for most OLTP workloads, but happens to mean that certain memory-heavy workloads can be scaled higher than they need (note: excluding cache usage by LFC, so allocations are elsewhere — like in pgvector index build).
Meanwhile the autoscaler-agent triggers upscaling based on memory usage if postgres' memory usage exceeds 75% of memory... so it's basically always handled by the vm-monitor first in practice.
This came up in this thread: https://neondb.slack.com/archives/C03TN5G758R/p1723127762991289
Feature idea(s) / DoD
We should be more careful about how we treat memory usage as a scaling signal, so that memory-heavy workloads are no longer scaled up beyond what's necessary, while also making sure that we don't harm performance for workloads that are memory-heavy and also rely on LFC being in the OS page cache.
Implementation ideas
See https://www.notion.so/neondatabase/0f75b15d47ad479094861302a99114af
- [ ] #1031
- [ ] neondatabase/neon#8668

Now that neondatabase/neon#8668 has been merged, this will be fixed with the next compute release containing it.

This has since been released, and should be fixed for new computes.


chore(xo): fix some xos

Issues
Fixes #
Reviewer Suggestions
Where should the reviewer start?
Additional Comments
Anything else?

:tada: This PR is included in version 1.2.32 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


High WPM numbers when holding down Space or Enter

Hey, I noticed that when you hold the space or enter key and not write correct words, when you finish the test the wpm are really high when they should be low or 0. Do you know what might be causing  this?.
Thanks in advance.

https://codesandbox.io/s/heuristic-mccarthy-y37sg?file=/src/components/TypingInput.tsx:1898-1909 I found the issue on this demo.

Hi! The high WPM is due to space/enter being taking into account for that demo. If you look at the accuracy it's pretty low since none of the letters has been entered. Thus, the hook is functioning as expected.
That being said, would gladly accept a better ( simplistic as well ) demo to showcase more variation of using hook!

Hey thanks for answering, If I have enough time I would make a more complete demo, and also thanks for making such an amazing hook. Grettings.


setFFmpegPath on Windows requires running twice.

This is almost certainly related to Issue 21, but on Windows, I have to run skvideo.setFFmpegPath(r'Path\to\binary') twice for it to work.  Running it once, I'll receive a warning, and further skvideo calls will fail.  However, running that same command a second time seems to solve the issue.
(toolchain) D:\bppci\ectests\bpp\main>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import skvideo
>>> skvideo.setFFmpegPath(r'D:\bbpci\ectests\bpp\main\bin\ffmpeg\windows\stable')
D:\bppci\ectests\bpp\main\toolchain\lib\site-packages\skvideo\__init__.py:310: UserWarning: ffmpeg/ffprobe not found in path: D:\bbpci\ectests\bpp\main\bin\ffmpeg\windows\stable
  warnings.warn("ffmpeg/ffprobe not found in path: " + str(path), UserWarning)
>>> skvideo.setFFmpegPath(r'D:\bbpci\ectests\bpp\main\bin\ffmpeg\windows\stable')
>>> skvideo.getFFmpegPath()
'D:\\bbpci\\ectests\\bpp\\main\\bin\\ffmpeg\\windows\\stable'
>>>

A note on this, I've tried combinations of os.path.normpath and the rawstring character, but that doesn't seem to make a difference.   Also, if you call skvideo.getFFmpegPath() after the first attempt, it does return the path, but it seems like skvideo isn't working correctly after.

I pushed a fix where I use os.path.join to form the full execution path. You were getting a '/' appended to the end of your path string, which likely made windows upset. I'm surprised that this worked for other people windows users so far.
Let me know if it works or doesn't work, and we can keep digging.

Looks like this is fixed in 1.1.8.  Thanks!


Renderables not regions...

This should support animations of vector graphics.

LGTM.

Thanks for the contribution!


Changes to readme and About screen

As per the MIT license I am legally fine with this fork existing and I am in favor of it having a different name. I would appreciate it if you could do two things:

Remove all the links in the Readme. As this is a fork, I will not be providing any support whatsoever for it.

Remove my name, those of my old patrons, and my special thanks credits from the About screen (Starting at line 72 in ui_info_dialog.py). For the contributor credit sections, I would say leave those in and anyone who doesn't want to be named there can let you know (I doubt they are aware of this fork).

You're under no legal obligation to do these things, it would just be the decent thing to do. Should take 10 minutes, tops. Thanks!
I will not be responding to any comments in this issue thread except to answer questions or provide guidance on the above requests.

I will absolutely make those changes. Thanks JP.


Changed gradle plugin version

Current coverage is 97.33% (diff: 100%)

Merging #120 into master will not change coverage

@@             master       #120   diff @@
==========================================
  Files            39         39
  Lines          1612       1612
  Methods           0          0
  Messages          0          0
  Branches        281        281
==========================================
  Hits           1569       1569
  Misses           13         13
  Partials         30         30

Powered by Codecov. Last update 5cf4133...c6d70ef


upsertGraph (with relate) on HasMany example?

So previous I was using surrogate keys ManyToMany where a user can speak many languages:
profile -> profile_languages -> language
profile
---
id
1

profile_languages
---
id  profile_id  language_id
1   1           1
2   1           2

language
---
id type
1  English
2  Chinese

// Profile model
languages: { relation: Model.ManyToManyRelation, modelClass: language, join: { from: 'profile.id', through: { from: 'profile_languages.profile_id', to: 'profile_languages.language_id' }, to: 'language.id' } },

relate: ['languages'],
unrelate: ['languages']

And I could upsert like:
profile: {
  id: 1,
  languages: [{ id: 1 }, { id: 2 }],
},

Now I am trying to get rid of the extra join, and having trouble upserting.
profile -> profile_languages
profile
---
id
1

profile_languages
---
id  profile_id  language_id
1   1           English
2   1           Chinese

(now no longer need to join to language because we already have the name from natural key)

language
---
id
English
Chinese

(I have also tried with and without a composite key):
profile_languages
---
profile_id  language_id
1           English
1           Chinese

profile_languages
---
id  profile_id  language_id
1   1           English
2   1           Chinese

class profile_languages extends Model {
    static get tableName() { return 'profile_languages' }

    // if using composite key
    static get idColumn() {
        return ['profile_id', 'language_id'];
    }
}

// Profile model
languages: { relation: Model.HasManyRelation, modelClass: profile_languages, join: { from: 'profile.id', to: 'profile_languages.profile_id' } },

I tried defining:
relate: ['languages'],
unrelate: ['languages']

I would like to upsert relate something like this:
profile: {
  id: 1,
  languages: [{ language_id: 'English' }, { language_id: 'Chinese' }],
},

In summary, I am trying to go from (surrogate keys) ManyToMany -> (natural keys) HasMany, and still be able to upsertGraph on the HasMany. I think I just need to see an example of the upsertGraph with HasMany.

relate and unrelate make no sense in this case. What relate does for HasManyRelation is that it updates the related tables foreign key, so in this case both the language_id and profile_id, but you don't have language_id in profile so that's going to be pretty much broken.
First of all, consider not using upsertGraph! I mean there are use cases for it, but don't use it as a silver bullet for using relational database like a document database. This particular problem would be pretty trivial without upsertGraph.
Now to the problem: I think this should work if you just remove relate and unrelate options. What you really want with HasManyRelation, where Profile has the ownership of the items, is to delete and insert rows. So what happens if you just remove those options?

And also remove the composite key. You only need id to be the indentifier here.

For some reason this HasMany was not as intuitive to me as getting the ManyToMany to work, but it does work with your recommendations! Thank you so much, here is the final solution:
profile
---
id
1

profile_languages
---
id  profile_id(fk)  language_id(fk)
1   1               English
2   1               Chinese

language
---
id
English
Chinese

class profile_languages extends Model {
    static get tableName() { return 'profile_languages' }

    // default idColumn = id :)
}

// Profile model
languages: { relation: Model.HasManyRelation, modelClass: profile_languages, join: { from: 'profile.id', to: 'profile_languages.profile_id' } },

didn't use relate :)
// relate: ['languages'],
// unrelate: ['languages']

// upsertGraph
profile: {
  id: 1,
  languages: [{ language_id: 'English' }, { language_id: 'Chinese' }],
},

👍


Augment code from config

This provides a series of APIs that let you run a configuration action when all or a specific route/backend are loaded. The actions rerun if the config is reloaded. The main scenario covered so far is applying global or targeted policies and reacting to additional config metadata. This system is not tightly coupled to our config file datasource, it could be used with other custom sources as well.
What's not covered here is injecting middleware on a per route or backend basis. That needs to be designed differently because you don't want to rebuild a full middleware pipeline each time config changes. One option is to put the relevant middleware into the main pipeline and have them enable/disable per request based on endpoint matadata. We can also use a UseWhen wrapper to enable/disable middleware that are not endpoint aware.

How does that look?

Rebased with updates


YJDH-378 | KS-Backend: Unify activation link expiration

Description :sparkles:

Unify activation link expiration:

Replace YOUTH_APPLICATION_ACTIVATION_LINK_EXPIRATION_HOURS with
NEXT_PUBLIC_YOUTH_APPLICATION_ACTIVATION_LINK_EXPIRATION_SECONDS and
use 12 hours (i.e. 12 * 60 * 60 = 43200) as its default value.

Shorten activation link expiration variable name:

Rename NEXT_PUBLIC_YOUTH_APPLICATION_ACTIVATION_LINK_EXPIRATION_SECONDS
to NEXT_PUBLIC_ACTIVATION_LINK_EXPIRATION_SECONDS for ease of use.
Issues :bug:
YJDH-378
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #578 (405d1fa) into develop (fcb2b51) will decrease coverage by 1.39%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #578      +/-   ##
===========================================
- Coverage    95.67%   94.27%   -1.40%
===========================================
  Files          230       96     -134
  Lines         9040     3354    -5686
===========================================
- Hits          8649     3162    -5487
+ Misses         391      192     -199

Impacted Files
Coverage Δ

backend/kesaseteli/applications/models.py
97.82% <100.00%> (+0.01%)
:arrow_up:

backend/kesaseteli/applications/tests/conftest.py
85.00% <100.00%> (+0.78%)
:arrow_up:

backend/kesaseteli/kesaseteli/settings.py
93.91% <100.00%> (ø)

...nd/shared/shared/service_bus/service_bus_client.py
33.33% <0.00%> (-57.58%)
:arrow_down:

backend/shared/shared/yrtti/yrtti_client.py
37.50% <0.00%> (-53.13%)
:arrow_down:

...t/applications/migrations/0011_application_step.py

backend/benefit/messages/models.py

...ator/migrations/0007_apprenticeship_calculation.py

...d/benefit/applications/migrations/0003_employee.py

.../migrations/0006_field_changes_for_employee_api.py

... and 129 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcb2b51...405d1fa. Read the comment docs.

Even though in the review environment the browser tests don't pass, see test run and related bug ticket (This ticket is in Finnish and it may or may not be the same bug as the error messages are not identical),
locally they do:
browser-test passes locally:
frontend/kesaseteli/youth> yarn browser-test
yarn run v1.22.17
$ testcafe 'chrome --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size="1249,720"' testcafe.dotenv.js browser-tests/
 Running tests in:
 - Chrome 96.0.4664.110 / Windows 10

 Frontpage
 √ can fill up youth application

 Frontpage
 √ can change to languages

 2 passed (19s)
Done in 38.30s.

browser-test:ci passes locally:
frontend/kesaseteli/youth> yarn browser-test:ci
yarn run v1.22.17
$ testcafe 'chrome:headless --disable-gpu --window-size="1249,720" --ignore-certificate-errors-spki-list="8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY="' --screenshots path=report,fullPage=true --video report --reporter spec,custom,html:report/index.html testcafe.dotenv.js browser-tests/
-
 Running tests in:
 - Chrome 96.0.4664.110 / Windows 10

 Frontpage
 √ can fill up youth application

 Frontpage
 √ can change to languages

 2 passed (20s)
Done in 39.58s.

The tests pass now, they were fixed with the merging of PR #583 and rebasing on develop after that.

Looks good to me! Using number of hours seemed clearer, but I'm assuming the unification required the use of seconds.

I preferred the use of hours myself too but agreed to go with seconds to support frontend testing where setting a very small non-zero value for the expiration time is useful.


coqPackages: etc

Motivation for this change
Fixes in coqPackages:

updated coqPackage.heq (broken url)
fixed use of DESTDIR and COQMF_COQLIB in mkCoqDerivation

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg build coqPackages coqPackages_8_12 coqPackages_8_13

@GrahamcOfBorg build coqPackages_8_6 coqPackages_8_7 coqPackages_8_8 coqPackages_8_9 coqPackages_8_10

@GrahamcOfBorg build coqPackages_8_7 coqPackages_8_8 coqPackages_8_9 coqPackages_8_10

@GrahamcOfBorg build coqPackages_8_7 coqPackages_8_8 coqPackages_8_9 coqPackages_8_10

@GrahamcOfBorg build coqPackages_8_5 coqPackages_8_6

@GrahamcOfBorg build coqPackages_8_11 coqPackages_8_12 coqPackages_8_13


WIP: cmd/server: PoC of "pipeline steps" for processing incoming records

When Watchman gathers data such as individual names it needs to
inspect and analyize the data using a varied method of
techniques. This can be length-relative word weightings, nickname
expansion, reordering, stopword removal, etc..
To further this aim we're looking at code designs for "pipelines"
where each analysis/process is separated with optional debugging.

Codecov Report

Merging #209 into master will decrease coverage by 1.27%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
- Coverage   68.02%   66.74%   -1.28%
==========================================
  Files          28       30       +2
  Lines        2846     2881      +35
==========================================
- Hits         1936     1923      -13
- Misses        722      774      +52
+ Partials      188      184       -4


xRDSessionCollection: refactoring and adding features

Pull Request (PR) description

complete refactor of resource xRDSessionCollection by adding feature "add or remove a sessionhost to/from a collection"
add feature "set parameter RDSessionHost->NewConnectionAllowed"

Task list

[x] Added an entry under the Unreleased section of file CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[x] Resource documentation added/updated in README.md.
[x] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[x] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Community Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
[ ] New/changed code adheres to DSC Community Style Guidelines.

This change is

Hi @svenboll, thank you for this PR!
I noticed there are a few issues in the build pipeline for this DSC resource at this moment which I need to resolve, as currently, the tests are failing to run properly. I hope to fix that this week, after which I will get back to you on this PR.

Hi @svenboll, the tests are now running properly again and showing some issues on the code in your PR, this mainly relates to the DSC style guidelines. While these might not be perfect, it at least makes sure all code for DSC resources is formatted in the same way. Please check here for an overview (including line numbers): https://dev.azure.com/dsccommunity/xRemoteDesktopSessionHost/_build/results?buildId=2437&view=logs&j=47266b63-9d03-5281-d38b-75133a4264f6&t=4d8b314c-6b76-5ae4-aed5-2779b7a3afdb&l=273.
Next to that, are you up to writing unit tests for your changes as well?

Hi @danielboth , thanks for your comments.
I will check the changes and look at the style guidelines.
After that i try to write some new unit tests, i never done it before, but let me have a look at it.

Ok, let me know if you need any help on writing the tests!
One question from me on this "NewConnectionAllowed" parameter that we are able to set to "NotUntilReboot". What happens when, after applying a DSC configuration, we reboot the system? I would assume that Get-RDSessionHost then returns "Yes" for NewConnectionAllowed, instead of "NotUntilReboot", so my question is, to what level is "NotUntilReboot" a desired state?
When set to NotUntilReboot, after a reboot, DSC would (depending on the settings of the LCM) just try to convert it back to NotUntilReboot. Which is not the state you would like to end up in I assume.

@danielboth
That's a good objection, a desired state with a value "notuntilreboot" will always be restored after the computer is rebooted.
I just checked the values that are valuable for that entry and added them to be configured.
But you are right, it doesn't makes sense for a desired state configuration. I think i will remove it.
For testing my pester tests, is there a quick-and-easy-to-use variant of testing them locally?

Hi @svenboll, yes there is a quick-and-easy-to-use variant of running your tests locally:
From the root of the repository just run:
.\build.ps1 -Tasks test

no time to update this PR, i will close it and open a new one in the future


[Bug]: After adding a faulty plugin in "Add Remote Plugin", no other plugin can be imported

What happened?
After adding a faulty plugin in "Add Remote Plugin", no other plugin can be imported: the button on the right is stuck in the "Loading..." state. The project must be reopened before a plugin can be imported again.
What was the expected functionality?
Pasting a new URL in "Add Remote Plugin" should reset the button.
Describe your environment
Kubuntu 23.04
rivet_1.2.1_amd64.AppImage
Relevant log output
No response
Relevant screenshots
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Fixed in dd488ef5db7b3fd98adc5314dc7fbf4c2c7c50e1, will be in next release, thanks!


Error: Cannot find module 'keccak' when running tabeland token on node v14

Describe the bug
To Reproduce

Install node version 14.19.2 with nvm.  the correct version of npm will be included
install this module globally with npm install -g @tableland/cli
run tableland token -k 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80. Note that private key is one of the publically available hardhat wallets.  DO NOT add funds to it.

You will see an error saying Error: Cannot find module 'keccak' followed by a stack trace.
Expected behavior
A tableland siwe token is printed to the console

Device: macbook
OS: unknown, but reportedly "new"
Version: node version 14.19.2 npm version v6.14.17

Additional context
A user reported this bug in Discord here: https://discord.com/channels/592843512312102924/902337528902860820/1027582083016699964
the siwe npm module has keccak as a dependency and for reasons I haven't fully looked into, it's not being installed by the npm version noted above.  As an idea for a fix, we can try to include 'keccak' as a dependency in this module.

@carsonfarmer Good call, I just transfered the issue


Sequential.exceptLast should be refined to return Sequential

Split off from #5641.

This change survived the revert of #5641.


The predicted landmarks appear out of face box

In order to shorten the detection time of the face detect, I predict the face box of the current frame by using the landmark of the previous frame of the image. In some cases, the landmarks predicted by PIPNet predicted would appear outside my face box.
In the image below, the area in the red box is the image I entered into the network, and the green dot is the landmarks predicted by PIPNet.

Some of these landmarks appear outside the box, does anyone know why?

Hi, I think is actually normal to predict outside because the face is outside, and there is no restrict to prevent it being outside.

I am a beginner, and thank you very much for your answer


Add a "whitelist" function on the ban list configuration page

I want to give someone a pardon on my server, but my SCBL remote ban list is still synchronizing his/her banned information from other servers. I don't want to change my SCBL configuration.
And I don't use Battlemetrics, so I won't have the function of "exemption" in the Battlemetrics panel.
If possible, could you please add a "whitelist" section for the ban list configuration?
The function expects to work like: list owner manually input Steam64ID on a whitelist submit box(maybe one 64ID for one line), when system generating ban list contents, automatically remove the Steam64ID mentioned in the "whitelist submit box", after that, output the ban list content(should already remove whitelisted IDs) to remote list URL (https://squad-community-ban-list.com/export/XXX)
Can I expect that we will have such a function in the (near) future?

This is definitely something we should look into as BM's UI for this is very difficult to find and those using remote ban lists cannot access it anyway.


KAFKA-12584; Remove deprecated Sum and Total classes

Sum and Total classes were deprecated and replaced by WindowedSum and CumulativeSum in 2.4. As they are not really supposed to be used by external parties (even if they are part of AK's public API), it seems fine to remove them for 3.0.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Test failures are not related to this PR. Merging to trunk.


Rewrite renderer using SVG/canvas

The Scratch site recently dropped support for IE 8, and now only support IE 9 or above.
We can't fix #17 using DOM/CSS; @nathan tried to do this for Visual, and eventually settled upon a hybrid DOM/canvas solution.
Since we only need static images, we should output either just canvas or just SVG (ideally, whichever is faster). This will:

allow higher accuracy (eg. fix #17)
make PNG screenshots easier to generate (eg. for SO posts)
make PDFs easier to generate (eg. for Code Club projects)
drop our jQuery dependency (we could do this already, but since the Scratch site requires it anyway I've never bothered!)

Parser output
The new renderer needs to interpret the AST format output by the parser. You can get an idea of what this looks like by using parse_scripts, which outputs in the AST format:
> scratchblocks2.parse_scripts("when flag clicked")

[
    [
        {
            "blockid": "when @green-flag clicked",
            "category": "events",
            "image_replacement": "green-flag",
            "lang": "en",
            "pieces": [
                "when ",
                "@",
                " clicked"
            ],
            "shape": "hat"
        }
    ]
]

I'd also like to rewrite the parser at some point (see #90), but for now we can assume that the AST format will remain the same. :-)

@as-com You made some progress on this? :)

Here's what I have right now: https://jsfiddle.net/ascom/zdfscywv/
There's no layout or proper block sizing, but at least there's pixel-perfect block rendering.

@as-com Thanks so much for making this proof-of-concept!
I've started writing a layout engine, based on the shapes and filters from your code. Here's a screenshot:

You can even export the SVG, although compatibility is iffy (eg. Inkscape works fine, Sketch doesn't understand the filters).
:D

Shiny! Also.. really nice boolean corners.

@liam4 Thanks! Fixing long-standing bugs like #17 is a large part of the motivation for this :P

Fixed via #94. :D


Is there anyone from developers?

Is there anyone from developers?
The project is creeping into third-party repositories, and here there is no one at least to receive someone pull requests.
Sync is broken, there is working fix to fix it https://github.com/IITC-CE/ingress-intel-total-conversion/commit/115825f80c1ab93c5f25b4fdd9ad182bbdd87189 but here nobody can approve pull requests etc.

@johnd0e What about handing the project over to interested parties? Would you give your blessing to a fork that resumes development?
I greatly appreciate this tool and would like to see its growth supported. Thanks for all the work you've done on the project

@skregas
Why you ask me? I am not related with iitc-project.
If you are looking for forks then give a try to iitc-ce.

@Xelio Can you shed some light on the design of SYNC?
Please PM me.

@Xelio Can you shed some light on the design of SYNC?
Please PM me.

It was built around Google Realtime API, Realtime API was deprecated years ago. And I've forgot how I design the SYCN after so many years....

@Xelio Well, SYNC has been taken forward into IITC-CE.
The authorizer has been adjusted since then and the plugin is working.
Still we see a lot of code, that seem not to make sense, unless you had a bigger picture in mind.
The existing code might then only be a subset to get the first version working
One thing that comes to my mind is "Collaboration/sharing" which would require to use an other set of access data.
So its not about the deep details, but "what were your ideas (for the future)?"
If you do not want to look at the "new" code, even hints from the old versions can be helpful. In the end there might be a refactoring of SYNC. But we neither want to break existing functionality nor re-invent the wheel.
Take your time
and thanks in advance


NPM publishing for sub modules

I can see that the main bower package is also available through NPM but that is not true for packages like angular-translate-storage-* and angular-translate-loader-partial.
Is it possible to have all those packages published too?

At the moment all dist files are available in that one npm.

Thanks


MouseEvent class behaves differently in JDK11 and JDK8

Please provide a brief summary of the bug
We are translating Received Swing MouseEvent for some customization. In our custom method we are creating a new MouseEvent instance by providing the details received as part of MouseClickEvent.
But the button field which is member of MouseEvent class filled with 0 value in the new instance of MouseEvent whereas the received event has button value as 1.
Copying the code below for reference:
        newEvent = new MouseEvent ( c, mevent.getID(),
                                mevent.getWhen(), mevent.getModifiersEx(),
                                point.x, point.y, mevent.getClickCount (),
                                mevent.isPopupTrigger() ) ;

In the above code mevent also the instance of MouseEvent and has the value of button as 1 but when try to create a new MouseEvent from mevent the button value filled as 0 in newEvent. I am using JDK11 but in JDK 8 in both instances having the button value as 1.
Please provide steps to reproduce where possible
Create a MouseEvent instance from existing MouseEvent and observed the button value
Expected Results
The button value of MouseEvent should be consistent
Actual Results
The button value of MouseEvent is changing based on JDK version
What Java Version are you using?
openjdk version "11.0.18" 2023-01-17 OpenJDK Runtime Environment Temurin-11.0.18+10 (build 11.0.18+10) OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)
What is your operating system and platform?
Windows Server 2012 R2
How did you install Java?
No response
Did it work before?
No response
Did you test with the latest update version?
No response
Did you test with other Java versions?
No response
Relevant log output
No response

@munnanoori Can you post a Java source code file that has a single button component which highlights this problem?

We identified that one argument we changed for retrieving the modifiers is from java8 code to java11 as getModifiers method is deprecated from java9 onwards. But the return values from getModifiers () and getModifiersEx() different.  The method getModifiersEx() returns zero as value. I am not sure how we can achieve the same behavior with getModifiersEx(). Please suggest any recommendations on this. I am copying the MouseEvent instance creation code when using Java8 and Java11.
Java8:
    newEvent = new MouseEvent ( c, mevent.getID(),
                            mevent.getWhen(), mevent.getModifiers(),
                            point.x, point.y, mevent.getClickCount (),
                            mevent.isPopupTrigger() ) ;

Java11:
    newEvent = new MouseEvent ( c, mevent.getID(),
                            mevent.getWhen(), mevent.getModifiersEx(),
                            point.x, point.y, mevent.getClickCount (),
                            mevent.isPopupTrigger() ) ;

Any recommendations on this?

Not sure I'm afraid, I may submit this as a bug upstream

It looks like getModifiersEx was backported to later versions of Java 8 - https://bugs.openjdk.org/browse/JDK-8041928 can you give that a go and see if you have parity?

Also see https://bugs.openjdk.org/browse/JDK-8043771 for more context


App crash at /replicasets

Describe the bug
App crash at /replicasets
Only with "raw" Replicasets.
It doesn't affect if the Replicaset is created by a Deployment.
To Reproduce
Steps to reproduce the behavior:

Create a new Replicaset.
Open Replicaset detail.

Expected behavior

See the replicaset detail

Environment:

OS: Windows 10
Lens: 2023.9.290703-latest

Logs:
Component stack:

    at Details (C:\Users\auser\AppData\Local\Programs\Lens\resources\app.asar\node_modules\@lensapp\shipa-lens-extension\dist\renderer.js:81774:102)
    at div
    at div
    at div
    at NonInjectedAnimate (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:652346:13)
    at NonInjectedDrawer (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:150035:9)
    at observerComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352042:16)
    at ObserverComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352090:23)
    at NonInjectedErrorBoundary (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:658765:9)
    at observerComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352042:16)
    at ObserverComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352090:23)
    at observerComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352042:16)
    at NonInjectedKeyboardShortcutListener (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:664815:48)
    at ThemeProvider (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:227296:24)
    at https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:126768:28
    at Router (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:583997:30)
    at https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:126768:28
    at observerComponent (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:352042:16)

Error stack:

TypeError: Cannot read properties of undefined (reading 'uid')
    at ApplicationStore.getApplicationFromReplicaSet (C:\Users\auser\AppData\Local\Programs\Lens\resources\app.asar\node_modules\@lensapp\shipa-lens-extension\dist\renderer.js:77652:58)
    at Details (C:\Users\auser\AppData\Local\Programs\Lens\resources\app.asar\node_modules\@lensapp\shipa-lens-extension\dist\renderer.js:81774:67)
    at Ch (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582516:137)
    at ck (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582626:460)
    at bk (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582609:347)
    at ak (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582609:278)
    at Tj (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582609:138)
    at Lj (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582602:163)
    at https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:582482:115
    at exports.unstable_runWithPriority (https://86fd21fa0a1acff9a9332f9e7edab66b.lens.app:52791/build/lens.js?b4b4cb4e679b779d31c2:606334:343)

Additional context

Microk8s running on remote server
Kubectl working without any problem

v2023.10.122002-latest contains fix for this.


Sean/feat(prismic): init prismic cms setup

Changes:

Add Prismic setup

Type of change

[ ] Bug fix
[x] New feature
[ ] Update feature
[ ] Refactor code
[ ] Translation to code
[ ] Translation to crowdin
[ ] Script configuration
[ ] Improve performance
[ ] Style only
[ ] Dependency update
[ ] Documentation update
[ ] Release

We will need to add the environment variables onto Vercel to pass the test link build step.


Can we use the bitfields directly?

I have a word in a register which has to be mapped to different bitfields, depending on what I wrote to a different writeonly element in the same register.
Since I cannot use the (0xf00 => ugly_field: ReadWrite<u32, SomeBitfield::Register>), syntax I checked your and tock's documentation whether I can manually safely parse a u32 to different bitfields, but I didn't find anything useful.
Is that possible? If not, could you make it possible?

Trying to understand the question:
Is your question that the content of one part of the same register defines the layout of the rest of the register?
Example:
| XX | variant_XX_field1 | variant_XX_field2 | vairant_XX_field 3|

| YY | variant_YY_field1 |

If the content of the first bitfield is XX, then the rest of the register can be interpreted as having 3 more fields. If the content is YY, then the rest of the regsiter only has one field.
Does that example match what you are asking?
If that is the case, you can define all of the four subvariants, and use the one you need conditionally on what the content of the first one is.

Closing due to no activity.


Struggling to get plugins working

I'm trying out react-remark and I'm struggling to get plugins working.
At the moment I'm just trying to follow the example. I've installed rehype-autolink-headings, imported it as in the example, and passed it in to the Remark component as in the example.
Headings are getting rendered exactly the same as when I don't add the plugin.
import rehypeAutoLinkHeadings from "rehype-autolink-headings";

...

  return (
    <Remark rehypePlugins={[rehypeAutoLinkHeadings]}>
      {markdown}
    </Remark>
  );

Am I doing something wrong?

rehype plugins work, you can see an example at https://github.com/ChristianMurphy/react-remark/blob/d588f807c00fbcbb69668eb488ba744481b55cae/stories/remark-component.stories.tsx#L44-L67
and running at https://christianmurphy.github.io/react-remark/?path=/story/remark-component--mixed-html-sanitized
In this case the issue is that rehype autolink headings depends on rehype slug.
see the documentation in the rehype autolink headings readme https://github.com/rehypejs/rehype-autolink-headings#use

@ChristianMurphy Would be good to add rehype-slug to the examples, next to rehypeAutoLinkHeadings

Thanks. That wasn't at all obvious, especially since in your example you don't include slug, as wooorm pointed out above.


ec2 security group - TypeError: unhashable type: 'list'

unhashable.py:
import boto3
from moto import mock_ec2
from moto.ec2 import ec2_backends
from moto.ec2.models import AMIS

mock = mock_ec2()
mock.start()

ec2_client = boto3.client("ec2", region_name="us-east-1")
ec2_client.run_instances(
    MaxCount=1,
    MinCount=1,
    NetworkInterfaces=[
        {
            "DeviceIndex": 0,
            "Description": "Primary network interface",
            "DeleteOnTermination": True,
            "SubnetId": next(ec2_backends["us-east-1"].get_all_subnets()).id,
            "Ipv6AddressCount": 0,
            "Groups": ["default"],
        }
    ],
)

$ python unhashable.py
Traceback (most recent call last):
  File "/Users/tekumara/code/aec/tests/unhashable.py", line 10, in <module>
    ec2_client.run_instances(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/client.py", line 401, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/client.py", line 717, in _make_api_call
    http, parsed_response = self._make_request(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/client.py", line 737, in _make_request
    return self._endpoint.make_request(operation_model, request_dict)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/endpoint.py", line 107, in make_request
    return self._send_request(request_dict, operation_model)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/endpoint.py", line 183, in _send_request
    while self._needs_retry(attempts, operation_model, request_dict,
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/endpoint.py", line 305, in _needs_retry
    responses = self._event_emitter.emit(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 358, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 229, in emit
    return self._emit(event_name, kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 212, in _emit
    response = handler(**kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 194, in __call__
    if self._checker(**checker_kwargs):
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 267, in __call__
    should_retry = self._should_retry(attempt_number, response,
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 286, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 333, in __call__
    checker_response = checker(attempt_number, response,
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 233, in __call__
    return self._check_caught_exception(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/retryhandler.py", line 376, in _check_caught_exception
    raise caught_exception
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/endpoint.py", line 246, in _do_get_response
    responses = self._event_emitter.emit(event_name, request=request)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 358, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 229, in emit
    return self._emit(event_name, kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/botocore/hooks.py", line 212, in _emit
    response = handler(**kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/core/models.py", line 288, in __call__
    status, headers, body = response_callback(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/core/responses.py", line 205, in dispatch
    return cls()._dispatch(*args, **kwargs)
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/core/responses.py", line 315, in _dispatch
    return self.call_action()
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/core/responses.py", line 405, in call_action
    response = method()
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/responses/instances.py", line 82, in run_instances
    new_reservation = self.ec2_backend.add_instances(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/models.py", line 1143, in add_instances
    new_instance = Instance(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/models.py", line 741, in __init__
    self.prep_nics(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/models.py", line 1042, in prep_nics
    use_nic = self.ec2_backend.create_network_interface(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/models.py", line 498, in create_network_interface
    eni = NetworkInterface(
  File "/Users/tekumara/code/aec/.venv/lib/python3.9/site-packages/moto/ec2/models.py", line 360, in __init__
    self.ec2_backend.groups[subnet.vpc_id][group_id] = group
TypeError: unhashable type: 'list'

Present in moto 3.1.2 but not previous versions.

Hi @tekumara, thanks for raising this! We refactored our EC2 backend a bit, but we didn't have a test for this specific scenario, so we didn't know that was broken. Will push a fix shortly.

This should be fixed with Moto 3.1.3 that was just released. Please let us know if you're running into any other issues!


Fix issues in record io example

Purpose
Fix issues in record io example
Fixes #19201
Check List

[ ] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #19569 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #19569   +/-   ##
=======================================
  Coverage   15.21%   15.21%
=======================================
  Files          50       50
  Lines        1308     1308
  Branches      199      199
=======================================
  Hits          199      199
  Misses       1096     1096
  Partials       13       13

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fde0a6e...a52a0d2. Read the comment docs.


Synchronize and store all metadata for events and series

Tobira needs to know about the arbitrary metadata attached to each event/series for a couple of use cases. Since the metadata (especially extended one) could be arbitrary, we cannot have a column for each kind of data, but have to have some kid of hstore or json inside of the DB table.

Done in

https://github.com/elan-ev/opencast-tobira/pull/69
https://github.com/elan-ev/opencast-tobira/pull/70
https://github.com/elan-ev/tobira/pull/422


[BUG] cannot merge

I can’t seem to get 2 clips to merge because I’m receiving a “unable to get total videos duration times.” error.
The 2 files are untouched and simply moved from the card to my MacBook desktop. I can select them through auto scan, and it find the 2 chapters, but no matter what I do I get that same error.
Any help would be appreciated.

Please, use the bug report template:
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
- Explain in more detail how to reproduce the error

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
 - OS: [e.g. MacOS or Windows]
 - Version [e.g. 22]
 - ReelSteady Joiner Version [e.g. v1.2.4]

**GoPro camera and files information**
(If applicable)
- GoPro Model: [e.g. GoPro Hero 9 Black]
- GoPro Files info: [General info about your chapter files, like framerate, fov info, stabilization enabled or not, etc.]

**Additional context**
Add any other context about the problem here.

**[IMPORTANT] Video Files**

If it is possible to share the video files, upload them to drive, mega, dropbox, etc. and share the link to the download in the issue (This is very helpful when identifying a problem or failure)

**[IMPORTANT] Logs (attach log file)**

You can find the log files by opening ReelSteady Joiner > Settings Button > Open Logs

getting the same error

I have the same issue. If I look at the log it says:
stderr: '/bin/sh: /Applications/ReelSteady Joiner.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg: Bad CPU type in executable\n'
So maybe it is not compatible with m CPU. I use a 2015 MacBook Pro Retina 15"
An help appreciated!

I have the same issue. If I look at the log it says:
stderr: '/bin/sh: /Applications/ReelSteady Joiner.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg: Bad CPU type in executable\n' So maybe it is not compatible with m CPU. I use a 2015 MacBook Pro Retina 15"
An help appreciated!

It may be related to the type of shell you are using on your system (sh), try changing it to (zsh) as indicated in the following guide: https://support.apple.com/en-us/HT208050
If this fixes the problem I'd appreciate knowing!

I tried the previous version (1.2.4) and it worked well. When I have time I will try changing the shell and try again the 1.2.5 version. Thank you for your tip!


Runtime generated actions make same effect

Fixed! using id() to get unique id of func and then making it 4-character (hope nobody creates 16^4 callbacks)


[VL] Gluten-it: By default use -P spark-3.2

In #2605 , we by default set -P spark-3.4 for gluten-it to fix the dependent bot alert. However it was more or less a deceit to go around dep bot's code scanning without actually fixing the issue.
Let's use spark-3.2 to avoid mismatching with gluten's main code until we came up with a better fix.

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_3238_time.csv
log/native_master_09_24_2023_e7152a05a_time.csv
difference
percentage

q1
43.96
43.08
-0.883
97.99%

q2
24.97
24.37
-0.603
97.59%

q3
37.32
36.77
-0.552
98.52%

q4
40.28
41.00
0.722
101.79%

q5
70.80
70.15
-0.646
99.09%

q6
6.66
5.11
-1.554
76.67%

q7
85.51
86.15
0.640
100.75%

q8
81.21
78.81
-2.400
97.04%

q9
114.97
115.81
0.844
100.73%

q10
47.88
46.15
-1.722
96.40%

q11
19.02
19.57
0.557
102.93%

q12
23.49
25.39
1.898
108.08%

q13
49.87
50.31
0.444
100.89%

q14
17.73
19.95
2.221
112.53%

q15
27.23
30.64
3.412
112.53%

q16
16.22
16.03
-0.197
98.79%

q17
121.67
120.09
-1.587
98.70%

q18
163.05
164.22
1.177
100.72%

q19
12.61
12.51
-0.102
99.19%

q20
25.77
30.33
4.560
117.70%

q21
234.82
238.20
3.385
101.44%

q22
15.59
15.33
-0.265
98.30%

total
1280.63
1289.98
9.350
100.73%


Print SWF(file) not working.

from swf.movie import SWF    <--- works fine
file = open('CT12KORJ001.swf', 'rb' )    <---- works fine
print SWF(file)
Traceback (most recent call last):
  File "", line 1, in
  File "build/bdist.macosx-10.8-intel/egg/swf/movie.py", line 87, in init
  File "build/bdist.macosx-10.8-intel/egg/swf/movie.py", line 143, in parse
  File "build/bdist.macosx-10.8-intel/egg/swf/tag.py", line 112, in parse_tags
Why am I getting this?    Where have I made my mistake,   Did I leave anything out?   Did the install go badly?    It didn't indicate so.
Please also reply to my email -<EMAIL_ADDRESS>John

Same issue here, basically I can't get passed of simply printing the SWF structure at "print SWF(File)".
Issues start with:
pyswf/swf/movie.py", line 100, in init
self.parse(self._data)
Any ideas?

This issue was started more then 3 years ago,   I have since gone on to
work on other projects.
John
On Fri, Dec 2, 2016 at 1:42 PM, ch3c05<EMAIL_ADDRESS>wrote:

Same issue here, basically I can't get passed of simply printing the SWF
structure at "print SWF(File)".
Issues start with:
pyswf/swf/movie.py", line 100, in init
self.parse(self._data)
Any ideas?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timknip/pyswf/issues/16#issuecomment-264570283, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC_DOVaXxWJVGl2VodeG_SB1v1TCghwGks5rEJDbgaJpZM4CHVSy
.


Roll Flutter Engine from b5d5832f7144 to db5d29f2ef5a (4 revisions)

https://github.com/flutter/engine/compare/b5d5832f7144...db5d29f2ef5a
2024-04-24<EMAIL_ADDRESS>Roll Skia from b5dd23bd29df to 510b6766d907 (16 revisions) (flutter/engine#52364)
2024-04-24<EMAIL_ADDRESS>Fix some warnings reported by recent versions of clang-tidy (flutter/engine#52349)
2024-04-24<EMAIL_ADDRESS>Roll Skia from e15464e6e982 to b5dd23bd29df (1 revision) (flutter/engine#52353)
2024-04-24<EMAIL_ADDRESS>Roll Dart SDK from 5227dc5103f6 to f470eaaf6e6d (1 revision) (flutter/engine#52359)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jimgraham@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


introduce parallel computing

For the sake of execution times of the functions emap, efor and eover I took the liberty of making them parallel. Can you have a look at it and tell me if I didn't screw up too much?
Thanks in advance.

Hiya! Thanks for the PR. Have you noticed a significant perf improvement from this change?
There's the beginnings of a benchmark suite here: https://github.com/isovector/ecstasy/blob/insanity2/bench/Main.hs
That being said, I'm pretty aware that ecstasy's performance is balls---It's something like 100x slower than apecs. I've been doing a lot of perf work recently and been getting 100x perf gains in other domains. It seems to me like this approach would work just as well in ecstasy, and for bonus points we can use selective functors to statically analyze the queries.
This is work I really want to get started on---probably this week. If this PR isn't super important to you, I think we might both benefit from holding off and putting it into the 0.3.0 version. What do you think?

Please don't take my previous comment as rant about the performance. I know this library is experimental and I could use apecs, but I like your approach better. It saves me quite some boilerplate. I am more than willing to help out developing this library further, but I am only a Haskell hobbyist with no formal training in this language (and only little education in Computer science in general, speaking of qualification).
As for a performance boost from this PR, I think that I reached some minor speedup, but that's very subjective, since I don't have any benchmarks set up.
To conclude: I'm fine with saving this PR for later and poke me if you think I might be helpful in one way or another.


ModuleNotFoundError in examples

Following the README verbatim, and pasting in the examples, I'm getting an error finding the modules. I'm new to Python, but something seems off.
Traceback (most recent call last):   File "./actioncable.py", line 1, in <module>     from actioncable.subscription import Subscription   File "/Users/nic/programming/test_python/actioncable.py", line 1, in <module>     from actioncable.subscription import Subscription ModuleNotFoundError: No module named 'actioncable.subscription'; 'actioncable' is not a package
Also: Thanks for writing this! I lost the entire morning thinking that ActionCable was so great, only to realize that as always, it only works well inside a Rails world where all the parameters are abstracted away. :(

Nevermind, long day. Now I have it "running" but nothing happens, or connect. Will continue to test.


Various issues in unit unificiation

"Apfel Tasse" given in 100g is weird:

Same for Rispentomaten:

Not sure there's a solution for this.

 Should be 250ml, is 200ml.

See #49 for fixing the spar units.
Concerning the hard-coded 100g base price: Does it make sense to switch from price/100g to price/kg below a certain price (like 50Cent/100g)?
Alternative: let the user select the base unit

I think the latest changes are good enough.

mpreis weighted items are still wonky. E.g.
https://heisse-preise.io/?q=!isWeighted%3Dtrue and `store`%3D"mpreis"
Example:

quantity is 900g, but the price is the kilo price.
https://www.mpreis.at/shop/p/zuckerhut-salat-ca-1-stueck-541201
Haven't dug into mpreis at all yet.

Similar issue with Spar

Bunch of Spar items are super wonky on their end. Unit then defaults to 1 stk, while they are weighted.

Yeah, they are loosey goosey with the unit/quantity/price data. Ah well, another day :)


Improve use of Secrets Manager between Portal and Explorer

Portal and Explorer both use secrets for some configuration parameters.
In some cases the same data is located in multiple places.
For example, the auth0 client ID, is shared between portal and explorer, and between dev and staging, so it
appears in 4 secrets.
Similarly there are secrets that are shared between portal and explorer, and therefore appear in 2 secrets each.
The proposal is to

consolidate the secrets to remove duplication.

make better use of cellxgene explorer's newer, and more flexible way of using secrets
https://github.com/chanzuckerberg/cellxgene/pull/1904

use terraform to set the secrets related to auth0, and switch portal and explorer to use that
https://app.zenhub.com/workspaces/single-cell-5e2a191dad828d52cc78b028/issues/chanzuckerberg/single-cell-infra/168

Blocked by refactoring config route.

Very low priority. Closing for now.


errors with class arguments to check_estimator

I'm trying to validate an estimator which takes class arguments and seem to be getting multiple error messages:
Taking the TemplateEstimator example and adding an additional argument my_class:
def __init__(self, demo_param='demo_param', my_class=None):
    self.demo_param = demo_param
    self.my_class = my_class

It is then called passing class Gaussian inherited from Likelihood:
import abc
import tensorflow as tf

class Likelihood:
    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def predict(self, latent_val):
        raise NotImplementedError("Subclass should implement this.")

class Gaussian(Likelihood):
    def __init__(self, log_var=-2.0):
        self.log_var = tf.Variable(log_var, name="log_theta")

    def predict(self, latent_val):
        return latent_val

like = Gaussian()
estimator = TemplateEstimator(demo_param='demo_param', my_class=like)
check_estimator(estimator)

throwing an error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-dd2c6598c00e> in <module>()
      1 like = Gaussian()
      2 estimator = TemplateEstimator(demo_param='demo_param', my_class=like)
----> 3 check_estimator(estimator)

/opt/conda/envs/py3/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py in check_estimator(Estimator)
    263     for check in _yield_all_checks(name, estimator):
    264         try:
--> 265             check(name, estimator)
    266         except SkipTest as message:
    267             # the only SkipTest thrown currently results from not

/opt/conda/envs/py3/lib/python3.5/site-packages/sklearn/utils/testing.py in wrapper(*args, **kwargs)
    289             with warnings.catch_warnings():
    290                 warnings.simplefilter("ignore", self.category)
--> 291                 return fn(*args, **kwargs)
    292
    293         return wrapper

/opt/conda/envs/py3/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py in check_estimators_dtypes(name, estimator_orig)
    837
    838     for X_train in [X_train_32, X_train_64, X_train_int_64, X_train_int_32]:
--> 839         estimator = clone(estimator_orig)
    840         set_random_state(estimator, 1)
    841         estimator.fit(X_train, y)

/opt/conda/envs/py3/lib/python3.5/site-packages/sklearn/base.py in clone(estimator, safe)
     59     new_object_params = estimator.get_params(deep=False)
     60     for name, param in six.iteritems(new_object_params):
---> 61         new_object_params[name] = clone(param, safe=False)
     62     new_object = klass(**new_object_params)
     63     params_set = new_object.get_params(deep=False)

/opt/conda/envs/py3/lib/python3.5/site-packages/sklearn/base.py in clone(estimator, safe)
     50     elif not hasattr(estimator, 'get_params'):
     51         if not safe:
---> 52             return copy.deepcopy(estimator)
     53         else:
     54             raise TypeError("Cannot clone object '%s' (type %s): "

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    180                             raise Error(
    181                                 "un(deep)copyable object of type %s" % cls)
--> 182                 y = _reconstruct(x, rv, 1, memo)
    183
    184     # If is its own copy, don't memoize.

/opt/conda/envs/py3/lib/python3.5/copy.py in _reconstruct(x, info, deep, memo)
    295     if state is not None:
    296         if deep:
--> 297             state = deepcopy(state, memo)
    298         if hasattr(y, '__setstate__'):
    299             y.__setstate__(state)

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    153     copier = _deepcopy_dispatch.get(cls)
    154     if copier:
--> 155         y = copier(x, memo)
    156     else:
    157         try:

/opt/conda/envs/py3/lib/python3.5/copy.py in _deepcopy_dict(x, memo)
    241     memo[id(x)] = y
    242     for key, value in x.items():
--> 243         y[deepcopy(key, memo)] = deepcopy(value, memo)
    244     return y
    245 d[dict] = _deepcopy_dict

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    180                             raise Error(
    181                                 "un(deep)copyable object of type %s" % cls)
--> 182                 y = _reconstruct(x, rv, 1, memo)
    183
    184     # If is its own copy, don't memoize.

/opt/conda/envs/py3/lib/python3.5/copy.py in _reconstruct(x, info, deep, memo)
    295     if state is not None:
    296         if deep:
--> 297             state = deepcopy(state, memo)
    298         if hasattr(y, '__setstate__'):
    299             y.__setstate__(state)

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    153     copier = _deepcopy_dispatch.get(cls)
    154     if copier:
--> 155         y = copier(x, memo)
    156     else:
    157         try:

/opt/conda/envs/py3/lib/python3.5/copy.py in _deepcopy_dict(x, memo)
    241     memo[id(x)] = y
    242     for key, value in x.items():
--> 243         y[deepcopy(key, memo)] = deepcopy(value, memo)
    244     return y
    245 d[dict] = _deepcopy_dict

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    180                             raise Error(
    181                                 "un(deep)copyable object of type %s" % cls)
--> 182                 y = _reconstruct(x, rv, 1, memo)
    183
    184     # If is its own copy, don't memoize.

/opt/conda/envs/py3/lib/python3.5/copy.py in _reconstruct(x, info, deep, memo)
    295     if state is not None:
    296         if deep:
--> 297             state = deepcopy(state, memo)
    298         if hasattr(y, '__setstate__'):
    299             y.__setstate__(state)

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    153     copier = _deepcopy_dispatch.get(cls)
    154     if copier:
--> 155         y = copier(x, memo)
    156     else:
    157         try:

/opt/conda/envs/py3/lib/python3.5/copy.py in _deepcopy_dict(x, memo)
    241     memo[id(x)] = y
    242     for key, value in x.items():
--> 243         y[deepcopy(key, memo)] = deepcopy(value, memo)
    244     return y
    245 d[dict] = _deepcopy_dict

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    180                             raise Error(
    181                                 "un(deep)copyable object of type %s" % cls)
--> 182                 y = _reconstruct(x, rv, 1, memo)
    183
    184     # If is its own copy, don't memoize.

/opt/conda/envs/py3/lib/python3.5/copy.py in _reconstruct(x, info, deep, memo)
    295     if state is not None:
    296         if deep:
--> 297             state = deepcopy(state, memo)
    298         if hasattr(y, '__setstate__'):
    299             y.__setstate__(state)

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    153     copier = _deepcopy_dispatch.get(cls)
    154     if copier:
--> 155         y = copier(x, memo)
    156     else:
    157         try:

/opt/conda/envs/py3/lib/python3.5/copy.py in _deepcopy_dict(x, memo)
    241     memo[id(x)] = y
    242     for key, value in x.items():
--> 243         y[deepcopy(key, memo)] = deepcopy(value, memo)
    244     return y
    245 d[dict] = _deepcopy_dict

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    180                             raise Error(
    181                                 "un(deep)copyable object of type %s" % cls)
--> 182                 y = _reconstruct(x, rv, 1, memo)
    183
    184     # If is its own copy, don't memoize.

/opt/conda/envs/py3/lib/python3.5/copy.py in _reconstruct(x, info, deep, memo)
    295     if state is not None:
    296         if deep:
--> 297             state = deepcopy(state, memo)
    298         if hasattr(y, '__setstate__'):
    299             y.__setstate__(state)

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    153     copier = _deepcopy_dispatch.get(cls)
    154     if copier:
--> 155         y = copier(x, memo)
    156     else:
    157         try:

/opt/conda/envs/py3/lib/python3.5/copy.py in _deepcopy_dict(x, memo)
    241     memo[id(x)] = y
    242     for key, value in x.items():
--> 243         y[deepcopy(key, memo)] = deepcopy(value, memo)
    244     return y
    245 d[dict] = _deepcopy_dict

/opt/conda/envs/py3/lib/python3.5/copy.py in deepcopy(x, memo, _nil)
    172                     reductor = getattr(x, "__reduce_ex__", None)
    173                     if reductor:
--> 174                         rv = reductor(4)
    175                     else:
    176                         reductor = getattr(x, "__reduce__", None)

TypeError: can't pickle _thread.lock objects

@nji-syd the error message reads can't pickle _thread.lock objects, which tells you there was an error pickling your estimator. This probably stems from the check_estimators_pickle test. To fix it, you'd best omit the reference to that object from the library from your estimator, if possible (i.e. only use it as local variable in fit())

The issue is that tf.Variable is not pickable. At the moment of making a clone of the class, we will try to copy this variable which is then failing.
You will have to check in tensorflow documnetation how to handle this case.


update the build-files (buildToolsVersion '29.0.2' / gradle-plugin  / use signingConfigs)

Looks like you also need to update appveyor.yml / .travis.yml to make CI pass.


MINOR: Document MetadataResponse invariants for name and ID

In MetadataResponse version 12, the topic Name field was made nullable. As an API consumer, it's quite hard to find out why this change was made, and one has to dig quite deep to figure out that the reason is to be able to respond properly to requests querying topics by ID (thanks @gharris1727 for explaining this!).
To improve this situation, this commit documents under which circumstances the two fields should be expected to be null by API clients. I'm hoping that my understanding here is correct, and that essentially a client can have these expectations:

At least one of the fields is always populated, no matter what.
If ErrorCode is none, both fields are always populated.

Since there is no entity-wide "about", this is documented from the perspective of each field, in their respective "about" sections.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Hi @dengziming @jolshan @rajinisivaram Could you PTAL at this documentation change?
Going off of KIP-516 and the discussion on the PRs which added topic IDs to the metadata request/response, Anton and I think that these descriptions are accurate for fully upgraded and converged clusters, because the KIP-516 migration to backfill topicIDs should apply to every topic in the cluster.
Is this a property that we can document in the spec?


Ledger/ble

@calvinkei

turns out it's not possible to request bluetooth access with a cross-origin iframe (that's what we are currently using on the chrome extension)
reference: https://talk.observablehq.com/t/web-bluetooth-api-cross-origin-iframe-security-error/1537
this issue will be blocked until @francochau revamp the chrome extension UI and remove the iframe completely

will be implemented in new chrome extension


Bad initial position method

The Sphere component looks like this:
export function Sphere({ entity }: { entity: Entity }) {
  // we only get initial position as prop – we won't re-render this component when the position changes! –
  // instead, a system will update the position imperatively. If we wanted to re-render we could
  // use the `useTrait` hook to get a reactive snapshot of the Position trait.
  const initPosition = useMemo(() => Object.values(entity.get(Position)) as Vector3Tuple, [entity]);
  const meshRef = useRef<Mesh>(null!);

  useEffect(() => {
    // add the ref to the mesh as a trait to the entity
    entity.add(MeshRef({ ref: meshRef.current }));
    return () => {
      entity.remove(MeshRef);
    };
  }, [entity]);

  return (
    <mesh position={initPosition} ref={meshRef} castShadow receiveShadow>
      <sphereGeometry args={[0.65, 18, 18]} />
      <meshStandardMaterial color={"gold"} />
    </mesh>
  );
}

And passes a memoized version of the position into the position prop on the mesh for the initial position and then after this the position is overwritten by a system imperatively. This is a common mistake. It mixes a controlled prop with mutation and bugs will appear if the component rerenders for any reason, including HMR.
If a prop is meant to be uncontrolled, ie mutated by a system, it should never be set via props on the JSX. Instead, the initial position should be set imperatively in an effect, or, if order is really important, imperatively in the ref callback. Likely what you want is to set all the initial properties and capture the ref in the ref callback so that all of this data will be set before any effects occur.

Also, useEnttiyRef will do all of this for you.

FYI if you use the ref callback make sure you memoize it with useCallback as the ref callback will rerun every time the component rerenders if it finds a new function (arrow function for example).

Ah that's good to know. I just removed the init position completely for the example as the mesh is picked up in the first frame anyway.


java_binary should line up with kotlin run markers.

Simple fix for #387 -- this regressed or it was never included from my kotlin-v3 work.

@chaoren @brendandouglas could you have a look and upstream this simple upstream this simple PR please.

Merged upstream.


Unable to retype a constant that Ghidra interprets as label reference

Describe the bug
It does not seem to be possible to rename constants that are interpreted as label references. Consider the following case where the label is actually a stack string constant:

Unfortunately, I am unable to share the sample from the above screenshot, but I am hoping the illustration is clear. The expected behavior here would be that the constant is retyped to a char sequence as the constants above it.
Environment (please complete the following information):

OS: Windows 10, Version 1809, OS Build 17763.437
Java Version: 11.0.2
Ghidra Version: 9.0.2

If you go into the references for that location (at 0009cc, right-click, References, Add/Edit), there should be a reference.  If you delete it, you should be able to convert the value to which format you want.

Ah, I see, thank you very much and sorry for the unwarranted bug report; but maybe this could be a feature request. Since the interface gives the option to transform the given immediate value to, say, a char value, it would be convenient if it was also capable of doing so without first removing the reference manually.


TypeError: Cannot read property 'string' of undefined Webpart Tiles

Hi,
I get issue String of undefined after click configure tile in workbench, i get code from master.
I read this link but not help me https://github.com/pnp/sp-starter-kit/issues?q=TypeError%3A+Cannot+read+property+'string'+of+undefined+
log

TilesWebPart.ts:94 Uncaught TypeError: Cannot read property 'string' of undefined
at TilesWebPart.getPropertyPaneConfiguration (TilesWebPart.ts:94)
at TilesWebPart.BaseClientSideWebPart._internalGetPropertyPaneData (sp-webpart-base.js:1399)
at PropertyPaneController._renderPropertyPane (sp-webpart-base.js:3873)
at PropertyPaneController._setPropertyPaneState (sp-webpart-base.js:3790)
at PropertyPaneController.setPropertyPaneState (sp-webpart-base.js:3764)
at ClientSideWebPartManager.setPropertyPaneState (sp-webpart-base.js:2121)
at PropertyPaneAccessor._open (sp-webpart-base.js:2536)
at PropertyPaneAccessor.open (sp-webpart-base.js:3317)
at Placeholder._this._handleBtnClick (PlaceholderComponent.tsx:75)
at HTMLUnknownElement.boundFunc (react-dom.js:8928)

Do you have any idea?
Thank you for your help in advance

Hi, can you create a new issue in the Starter Kit Repository, and we can help you over there. Thanks!

done, sorry wrong place


(demo): update grafana dashboards

Updates Grafana dashboards in the demo based on the changes in this demo repo PR

@puckpuck ready for a rebase


Ghosts can remove fultons from objects.

Ghosts can remove fultons from objects.
Reproduction
Die
See an object with a fulton on it
Remove it

This is to add-on to Warentan's report (Video by admin Skarlet) - Further testing done with ghost roles. It looks like other entities can also remove the Fulton. Basically anything with the ability to right-click and open the interactions menu can do this.
https://github.com/space-wizards/space-station-14/assets/137844976/effd267b-2345-4f0e-aa90-f503dd758b90

I have been able to do this as well


account syncing error

my account's  syncing  was blocked by error below:
[cardano-wallet.wallet-engine:Error:5452] [2020-08-03 06:41:30.34 UTC] 5180708f: Unexpected error following the chain: ExceptionInLinkedThread ThreadId 125077 DecoderFailure (ChainSync (ByronBlock) (Tip ByronBlock)) ServerAgency TokNext TokCanAwait) (DeserialiseFailure 1015 "Found unknown tag 2 while decoding Block")   from cardano-wallet
and cardano-node log error:
[nuls-nov:cardano.node.LocalErrorPolicy:Error:54] [2020-08-03 06:42:11.18 UTC] [String "ErrorPolicyUnhandledApplicationException (MuxError (MuxIOException writev: resource vanished (Broken pipe)) \"(sendAll errored)\")",String "ErrorPolicyTrace",String "LocalAddress {getFilePath = \"\"}"]
my byron-wallet syncing was blocked at 99.58 ....?  what are the meanings of error from log.
I build cardano-node from master,
git clone https://github.com/input-output-hk/cardano-node.git  cd cardano-node nix-build -A scripts.mainnet.node -o mainnet-node-local && ./mainnet-node-local  and build cardano-wallet from master too:
git clone https://github.com/input-output-hk/cardano-wallet.git nix-build -A cardano-wallet-byron cardano-wallet serve --node-socket ~/cardano-node/state-node-mainnet/node.socket --mainnet --database /tmp/mainnet
and restore my wallet with API  below
POST http://xxx.xxx.xxx.xxx:8091/v2/byron-wallets.
then wallet syncing met error. what happened?  and the meaning of the error

I have some ADA in my wallet, and the wallet is not available since syncing blocked.
it  is very urgent for me,  could you guys help me with these error..

Hi, the mainnet has forked  since July 29th to a new Era. Therefore, you need to use a version of the wallet that is compatible with this new era. We're in the process of removing cardano-wallet-byron, in the meantime, you ought to use cardano-wallet-shelely.
Cheers.

how to build cardano-wallet from source  to support Shelley ERA?  could you give some link or tips to move wallet from byron to shelley

Hi, the mainnet has forked since July 29th to a new Era. Therefore, you need to use a version of the wallet that is compatible with this new era. We're in the process of removing cardano-wallet-byron, in the meantime, you ought to use cardano-wallet-shelley.
Cheers.

could you give some links to introduce  how to move to new ERA with source code

cardano-wallet only provided byron type nix-build -A cardano-wallet-byron, any building way for shelley with source code

cardano-wallet only provided byron type nix-build -A cardano-wallet-byron, any building way for shelley with source code

Have you tried:
$ nix-build -A cardano-wallet-shelley
You might want to check that you've pulled the latest changes to the cardano-wallet repository, or just clone it again from scratch.

thanks for your replay, I will try it

hello.
I build cardano-wallet with nix-build -A cardano-wallet-shelley;
however it is impossible to retore byron-wallet into shelly, it happened "message": "Error in $['mnemonic_sentence']: Invalid number of words: 15, 18, 21 or 24 words are expected.", indeed my byron-wallet has 12 words?
what should I do to retore my byron-wallet and resue my ADA from this wallet

should I build source code with Shelley mode and use API with byron mode? isn't it  wired

@lijianl, yes. The naming may looks a bit confusing but, the entire API is available now because, the chain isn't just Shelley. The chain is the continuation of Byron -> Shelley. So, blocks, addresses, transactions etc.. are present in BOTH format in the chain. Therefore, anything that existed in Byron still exists after the hard fork. Wallets that existed in Byron and new Shelley wallets have different address formats, but so-called Byron wallets are still valid and exist in the Shelley era as well.

thanks for your reply and I have solved my problem;
Here is the summary:

build  Cardano-node from source:  v-1.18.0
git clone https://github.com/input-output-hk/cardano-node.git cd cardano-node nix-build -A scripts.mainnet.node -o mainnet-node-local

build Cardano-wallet from source: v-1.18.0:

git clone from source nix-build -A cardano-wallet-shelley

retore my wallet and serve the wallet with byron-api

Thanks again!

thanks for your reply and I have solved my problem;
Here is the summary:
1. build  Cardano-node from source:  v-1.18.0
git clone https://github.com/input-output-hk/cardano-node.git cd cardano-node nix-build -A scripts.mainnet.node -o mainnet-node-local
2. build Cardano-wallet from source: v-1.18.0:
git clone from source nix-build -A cardano-wallet-shelley
1. retore my wallet and serve the wallet with byron-api
Thanks again!

@lijianl Good to hear that it's now working for you!


Visual Studio C++ for Android

@Serguk commented on Thu May 21 2020
I work with Unreal Engine and make games for android and ios.
I liked work with Visual Studio with C++. And I would like to learn more about make programs and games for android and ios with Visual Studio on C++.
Can I get some documentation or information about these?
The main areas that interest me: gaining access to the settings of the android and ios mobile device (camera, flashlight, gyroscope, compass, location, etc.) and connect to server.
Cane I get description about library and how use its?

Сведения о документе
⚠ Не вносите правки в этот раздел. Это необходимо для связывания страницы сайта docs.microsoft.com с вопросом на GitHub.

ID: a762b2ab-91e6-eda8-01ad-977f89d4462b
Version Independent ID: cca4863b-8658-968f-b1fa-5e2b0d292f56
Content: Кроссплатформенная разработка для мобильных устройств в Visual Studio - Visual Studio
Content Source: docs/cross-platform/cross-platform-mobile-development-in-visual-studio.md
Product: visual-studio-windows
Technology: vs-ide-mobile
GitHub Login: @conceptdev
Microsoft Alias: crdun

@srvbpigh commented on Thu May 21 2020
Hello, @Serguk
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards,
Microsoft DOCS International Team

@CeciAc -- Cecilia, thank you for raising this issue.  Please send @Serguk the following links and best wishes:

https://visualstudio.microsoft.com/vs/features/game-development/
https://answers.unrealengine.com/questions/352144/how-to-get-mobile-acceleration-and-gyroscope-data.html

Thank you all for participating in solving my problem. I have already read these articles. They describe the possibilities of a visual studio. But I'm interested in practice. How can I interact with android devices using c ++?
Since I work in Unreal Ungine, I am writing c ++ code. And I would like to receive data from a mobile device and manage it.
With Regards,
Serg.

Thank you all for participating in solving my problem. I have already read
these articles. They describe the possibilities of a visual studio. But I'm
interested in practice. How can I interact with android devices using c ++?
Since I work in Unreal Ungine, I am writing c ++ code. And I would like to
receive data from a mobile device and manage it.
With Regards,
Serg.
пт, 22 мая 2020 г. в 23:55, William Anton Rohm<EMAIL_ADDRESS>
Closed #5355
https://github.com/MicrosoftDocs/visualstudio-docs/issues/5355.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/visualstudio-docs/issues/5355#event-3366162028,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHYXFHCZTUAKSKL4RPKNK3RS3REHANCNFSM4NHE7KVA
.

@Serguk -- thank you for your followup.  This repo is solely for documentation issues, and your questions are more broad than we can cover.  Please consider the following resources:

https://social.msdn.microsoft.com/Forums/vstudio
https://www.stackoverflow.com
https://www.reddit.com/r/VisualStudio/

can i get direct access to the file
C: \ NVPACK \ android-ndk-r17c \ sysroot \ usr \ include \ camera
NdkCameraManager.h
using #icnlude "......" ???
пт, 29 мая 2020 г. в 21:25, William Anton Rohm<EMAIL_ADDRESS>
@Serguk https://github.com/Serguk -- thank you for your followup. This
repo is solely for documentation issues, and your questions are more broad
than we can cover. Please consider the following resources:

https://social.msdn.microsoft.com/Forums/vstudio
https://www.stackoverflow.com
https://www.reddit.com/r/VisualStudio/

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/visualstudio-docs/issues/5355#issuecomment-636119957,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHYXFCMJZIE6FP44DQINBDRT742RANCNFSM4NHE7KVA
.