Upgrade dependencies

We have a gargantuan number of outdated dependencies.

I tried updating dependencies within the semver bounds with cargo update here: https://github.com/agora-org/agora/pull/285. The problem is that those newer dependencies don't build on rustc-1.48 as you can see in the CI runs on that PR. I wonder how we should go about this in general. Should we just bump our MSRV liberally? Since agora is mostly distributed as a binary having a low MSRV is not that important. But we did have someone ask for support for 1.48 (https://github.com/agora-org/agora/issues/207). Another option is to try to update individual dependencies manually and keep older versions when the newer ones would break 1.48. That sounds super tedious though. I also wonder what other rust projects do.

I think the only downside of bumping our MSRV is going to be getting Agora packaged for Linux distros which use old versions of Rust. Users of those distros can get the latest version of Rust via rustup, and build that way.
For distros, it strikes me that they should be able to package the last version of agora which built with the older version of Rust that they're using. If they're six months behind on packaging Rust, then they'll just be six months behind on packaging Agora. This seems kind of fine to me.
The main place this would be a problem is Debian and Ubuntu, but getting things packaged for Debian is such a slog that think we shouldn't worry about it too much.
So given all that, I think we should probably just keep our MSRV as low as possible, but bump it whenever it's even slightly annoying not to, i.e. for new language features, and new versions of dependencies.

Yeah, that sounds good to me. CC'ing @Kixunil.
Another question about this issue: Is this about updating dependencies within the semver bounds from our Cargo.toml files, or also about bumping those versions?

I noticed all the out-of-date dependencies by running cargo outdated, which prints outdated dependencies regardless of current semver bounds.


[Ochestrator] add retry strategy to syncinformer

What does this PR do?
Implement exponential backoff to syncinformer. The Deadline is 60 seconds and each n times try it will augment timeout value to kube_cache_sync_timeout_seconds+2^n .
For example , when kube_cache_sync_timeout_seconds = 5s :
First try : 5s
Second retry : 6s
Third retry : 7s
Forth retry : 9s
....
until 60s
Tested locally:
2021-12-02 15:05:51 UTC | CLUSTER | WARN | (pkg/util/kubernetes/apiserver/util.go:48 in func1) | couldn't sync informer RoleBinding in 3.246µs
2021-12-02 15:05:51 UTC | CLUSTER | WARN | (pkg/util/kubernetes/apiserver/util.go:51 in func1) | increase kube_cache_sync_timeout_seconds to 1s
2021-12-02 15:05:51 UTC | CLUSTER | WARN | (pkg/util/kubernetes/apiserver/util.go:48 in func1) | couldn't sync informer ClusterRole in 1.91µs
2021-12-02 15:05:51 UTC | CLUSTER | WARN | (pkg/util/kubernetes/apiserver/util.go:51 in func1) | increase kube_cache_sync_timeout_seconds to 1s
2021-12-02 15:05:51 UTC | CLUSTER | DEBUG | (pkg/util/kubernetes/apiserver/util.go:60 in func1) | Sync done for informer Service in 100.87932ms, last resource version: 60711
2021-12-02 15:05:51 UTC | CLUSTER | DEBUG | (pkg/util/kubernetes/apiserver/util.go:60 in func1) | Sync done for informer StatefulSet in 100.394564ms, last resource version: 60711
2021-12-02 15:05:51 UTC | CLUSTER | DEBUG | (pkg/util/kubernetes/apiserver/util.go:60 in func1) | Sync done for informer ClusterRoleBinding in 100.160187ms, last resource version: 60711
2021-12-02 15:05:51 UTC | CLUSTER | DEBUG | (pkg/util/kubernetes/apiserver/util.go:60 in func1) | Sync done for informer ReplicaSet in 100.564022ms, last resource version: 60711
2021-12-02 15:05:51 UTC | CLUSTER | DEBUG | (pkg/util/kubernetes/apiserver/util.go:60 in func1) | Sync done for informer CronJob in 101.657379ms, last resource versi

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] The appropriate team/.. label has been applied, if known.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

what would be the total retry time to reach the last 60s retry?

what would be the total retry time to reach the last 60s retry?

If the kube_cache_sync_timeout_seconds is 5s, the total retry time will be 5+2^0 + 5+2^1 + 5+2^2 + 5+2^3 + 5+2^4 + 5+2^5 + 65(in last retry, normally it should be 5+2^6=69, but 69> 60+5 so we take 65) = 6+7+9+13+21+37+65=158s

I left some comments inline, but I have a bigger question:
I may be missing something completely, and definitely not an expert in k8s APIs, but this code doesn't seem to implement backoff: WaitForCacheSync is retried immediately after it has failed, without any delay, but with progressively larger timeouts. Actual sync seems to be happening elsewhere (only impl of HasSynced I found doesn't do any work), so we're not backing off from the API even if a delay was inserted. From reading the changelog entry I expected we would backoff from the kubelet API, but it isn't what is happening here.
And given that WaitForCacheSync is just waiting for a boolean to become true, what is the reason to increase timeouts slowly? If we're going to wait 60 seconds anyway, we might just pass that as a timeout to begin with. (WaitForCacheSync can also wait on multiple informers, so the code where we launch sync one by one in separate goroutines could possibly be simplified too).

Hi @vickenty  I think you are perfectly right. This is not an API backoff, what we do is progressively increase the timeout value. But it solves the issue of the default timeout and it avoids waiting too much time on the sync in case the sync fails if we only set a higer timeout value .  I will rename it to exponentialWait to make it make clearer.

But it solves the issue of the default timeout and it avoids waiting too much time on the sync in case the sync fails if we only set a higer timeout value.

Sorry, I'm not sure I follow. In what situation the code would wait too much? WaitForCacheSync returns true as soon as the sync is complete (HasSynced returned true). Calling it once with a large timeout, or several times with smaller timeouts would have the same effect: either sync is done and we get out early, or we wait the full time (combined) timeout.

But it solves the issue of the default timeout and it avoids waiting too much time on the sync in case the sync fails if we only set a higer timeout value.

Sorry, I'm not sure I follow. In what situation the code would wait too much? WaitForCacheSync returns true as soon as the sync is complete (HasSynced returned true). Calling it once with a large timeout, or several times with smaller timeouts would have the same effect: either sync is done and we get out early, or we wait the full time (combined) timeout.

Indeed, my initial idea is wrong. If the sync fails, we have wait the full time timeout in both cases.

closing this in favor of a simpler and safer solution #10470


Migrate BDNYC photometry to SIMPLE

Move photometry to SIMPLE

This was done for WISE data as part of https://github.com/SIMPLE-AstroDB/SIMPLE-db/blob/main/scripts/ingests/bdnyc_ingest_photometry.py
I'll expand that script to include all other bands.


Bring your own resource scenario

What problem are you facing?

I have a fleet of resources in my cloud account that I bought on a discount. Reserved EC2 instances on AWS could be an example. I'd like crossplane to use these resources and not dynamically provision new ones unless all of them are scheduled for use by crossplane.
How could Crossplane help solve your problem?

Few options:

Define a way to import my resources into crossplane.
One way could be that I create Managed Resource CRs that have cloud provider identifier. Crossplane can detect that the cloud provider identifier is given and it exists, well, make this ready in terms of provisioning.
Define a resource class that enforces use of existing cloud resources.
This makes all existing resources in that account available for Crossplane to use instead of specifically importing them. Labeling on cloud provider level and specifying that label in ResourceClass could be an option.

For both cases one has to consider that whether we should allow crossplane to delete or update individual resources that were statically provisioned. I think the question here is that what level of granularity we want to have as option for the user to choose in terms of object manipulation operations. Is mutable/immutable enough? Or update allowed,deletion not kind of granularity?

@muvaf this looks to me like a duplicate of #409, what do you think? If so, can you update that issue with any new thinking from your write-up here and then close this issue?

Yes, I wasn't aware of that. Closing in favor of https://github.com/crossplaneio/crossplane-runtime/issues/22 (409 has been moved to 22)


🐛 Bug Report: Code of Conduct link broken in all issue templates

👟 Reproduction steps
Open the Code of Conduct link at the bottom
👍 Expected behavior
It should display the right window
👎 Actual Behavior
404 page
🎲 Appwrite version
Version 1.2.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Heyyo! Can I please be assigned to this? Thanks in advance:)

@vj-codes assigned! Thanks for your interest!


feat(core): tooltip show hide delay

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows Conventional Commits
[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

Closes #202
What is the new behavior?
Copy of #205 with implementation of review notes
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Small comments. @MarsiBarsi please take a look at this PR as well. Do you think hint controller has to be involved as well?

I think It has sense. I've added delay settings to hint controller

Hey @KarimovDev thanks for your PR and mentioning me. I'll take a look today


sd

This is not going to be merged as it does NOT change anything that is of ANY need to impress.js

Yeas, you are right. Sorry. I think it was a mistake while I was coding using the web editor in Android

Yeas, you are right. Sorry. I think it was a mistake while I was coding using the web editor in Android. While I was trying to push to my own repo, it submitted a pull request


Issue Opening Folder Using vscode.openFolder

VSCode Version: 1.26.0-Insider (This issue is happening in Insiders only)
OS Version: macOS 10.13.6

While running a custom extension, I execute:
vscode.commands.executeCommand(
     'vscode.openFolder',
     vscode.Uri.parse(
        <some-local-path>
     )
);

I get a 'Path does not exist error', even though the path exists.

Steps to Reproduce:

Run a custom extension
Execute the code snippet above

cc @bpasero

@allileong It works if you prefix the local path with file:/ for me. For example: file://Users/me/hello. Can you try that?
@jrieken In the stable bits of 1.25.1, this would work even without the prefix of the scheme. I am not sure if the api for Uri changed or the one for vscode.openFolder command. Regardless, this would be a breaking changes for extension authors.

@aeschli maybe due to the changes for supporting URIs on the main side?

Hi @ramya-rao-a , prefixing the local path with file:/ gets me past the issue.

@allileong Please use vscode.Uri.file. Thats the proper way to create a URI from a file path that works on all platforms.

@aeschli what you're saying is that our implementation of vscode.URI.parse behaves incorrectly.  It's documented as:
		/**
		 * Create an URI from a string. Will throw if the given value is not
		 * valid.
		 *
		 * @param value The string value of an Uri.
		 * @return A new Uri instance.
		 */
		static parse(value: string): Uri;

but for local file path inputs it creates URIs without a mandatory scheme component, i.e. invalid URIs.

you're saying is that our implementation of vscode.URI.parse behaves incorrectly

I don't think he is saying that. The issue is this: Uri.parse('c:\foo\bar') is different from Uri.file('c:\foo\bar'). The sample code is vscode.Uri.parse(<some-local-path>) which is incorrect, when you have path you must use Uri.file

but for local file path inputs it creates URIs without a mandatory scheme component, i.e. invalid URIs.

 Un-commenting this code yields in many, many test failures and while the product starts we will likely see failure here and there. So, iff we want to support scheme-enforcement a coordinated effort is needed.

We now throw an exception when invoking vscode.openFolder with an invalid (schema-less) URI.

I change the fix to treat the missing schema gracefully. The URI without scheme is converted to a file:// URI. That change only applies to vscode.openFolder.
Extensions are advised to not rely on the workaround but change vscode.Uri.parse to vscode.Uri.file. Note that vscode.Uri.parse(<filename>) doesn't (and hasn't) work on Windows as drive letters (c:/) are treated as URI schemes and will not be part anymore of uri.fsPath.

@aeschli The warning message doesn't expand ${uri} because it is not in a template string. Verified otherwise.

@chrmarti Good catch, I added a fix. I also improved the fix to use URI.file(uri.toString()) as alternative URL (then it also works on windows).

@chrmarti If you can verify again that would be great

Thanks @aeschli for the fix


Some transcoded videos won't cast (60 fps related - backend?)

i.e many on this channel: https://odysee.com/@UniverseInsideYou:8/how-rockefeller-monopolized-medicine-and:1
Tried looking at the m3u8/data/headers comparing ones that work/don't, and can't find much difference.
original stream is 60 fps, may test with that more next...

If you click original format, and then cast, then it works.
@andybeletsky any idea from our end?
one that works: https://odysee.com/@TheQuartering:1/libsoftiktok-to-sue-twitter-taylor:0

Oddly, I still can't get chromecast to fail, both on the 60fps channel and the examples mentioned in slack.


Use SVG icon instead of font icon in modeladmin index view

This uses the same classes and tags than wagtailadmin/shared/header.html to construct the <header> element and its children.
Contribute to #6107.

Thanks for your comments @lb-!

I see there is a larger discussion about icons via #7565 so will let that resolve before looking into this further.

I think this PR can be treated separately as it does not target the same components.

However, as per that discussion I noticed that the fa icons did not work with this change but the built in SVG icons did.

I don't use fa icons but I understood that wagtail-font-awesome-svg should work, is it the case?

Another idea might be to try to leverage the header shared include even more, although it does require a change to that include.

I don't really see the goal of your proposal; this new template - modeladmin/includes/header_with_search.html - will be included only once, almost everything from wagtailadmin/shared/header.html is overwritten, and modeladmin/index.html already provides some blocks which could permit to extend just some part of it. Could you tell more?

@jeromelebleu thanks for the response above, just ignore that patch suggestion, my thinking was it would be good to leverage the shared includes for all headers but that is not really the purpose of this PR.


ZHS translation update: new cull cards and other changes

ZHS translation update

New cards: Accumulation, Anxiety, Cleanse, Concentrate, Discordance, Exhale, Equinox, Feint, FindWeakness, FranticMind, Frustration, GatheringEvil, Melt, Overkill, Paralysis, PollutedStrike, Pollute, Strike_Cull, Summoning, WastingStrike, Withering

Card changes(according to "Cull card changes 20200402"): Abjure, CULLCard, Haunt, Miracle_Cull, Strife, Toil, Wail, WastingForm(WastingEssence)

Improvements: Catharsis, Counterspell, Firebolt, MistyStep, Mind Glass(relic)

New keywords: Exert, Exerted, Deck of Trials

New UI strings: Thirst

I've been holding off on approving this because there are still a few suggested text changes in the other CULL PRs that this adds text for; once those are updated, we can get this in (I'd like to do a release at that point so we can start doing balance passes of this batch of CULL cards)

That's understandable. I will continue to work on keeping this up to date.

I think we're going to try to release in about the state this is currently in! I think the only thing that's missing in this branch is a translation for stsjorbsmod:EntombedGrimDirgePower

Ooops, "fatal" missing. I've pushed a new commit to fix it.
Other improvments will be made according to players' feedback after the official release, so this branch should be stable now.

FYI: the text on Withering changed a little during the merge of its PR, the name of "WitherPower" changed to "WitheringPower", and its text also changed slightly.

(That's going to be the last non-translation PR I plan to merge prior to v1.8.0, will release v1.8.0 as soon as the ZHS and SPA translations are updated)

Wow, "Withering" seems much different from what it used to be...


User Salt API Method

We can authenticate users by giving them a token when they login. They can send that token with every API request to prove they are who they say they are. The first step of logging in is getting a user's salt. Create an API method that accepts an email and returns the salt associated with that email. It will be necessary to ensure emails cannot be duplicated in the database User table.

Completed 6f08fdd806ed3ba8f0062c0a342e6b6ecaf30c55


Make select menu better

Overview
Making the select menu better
Screenshots (if applicable)

Via keyboard navigation:

Documentation

[ ] Updated Typescript types and/or component PropTypes
[ ] Added / modified component docs
[ ] Added / modified Storybook stories

Generally would prefer these types of PRs to be separated into more than 1 since there are multiple things happening here:

useStyleConfig on new components
a new bind props hook
changing component internal structure

Gonna make these tweaks, as well as break this PR up a little bit more

Braking this up

has there been a follow-up to this? was just looking and trying to find out if autocomplete or combo-box can be used with up/down/enter keys. it's an important feature for our usecase.


Ansible 2.14 update

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 201699 run on x86_64-linux 1

2 packages marked as broken and skipped:

python310Packages.pytest-ansible
python39Packages.pytest-ansible

6 packages failed to build:

ansible-later (python310Packages.ansible-later)
python310Packages.ansible-kernel
python310Packages.ansible-runner
python39Packages.ansible-kernel
python39Packages.ansible-later
python39Packages.ansible-runner

11 packages built:

ansible (ansible_2_14 ,python310Packages.ansible-core)
ansible-lint (python310Packages.ansible-lint)
ansible_2_12
ansible_2_13
kargo
python310Packages.ansible
python310Packages.ansible-compat
python39Packages.ansible
python39Packages.ansible-compat
python39Packages.ansible-core
python39Packages.ansible-lint

ansible-later is waiting for jsonschema upgrade currently on staging-next.

Result of nixpkgs-review pr 201699 run on x86_64-linux 1

2 packages marked as broken and skipped:

python310Packages.pytest-ansible
python39Packages.pytest-ansible

17 packages built:

ansible (python310Packages.ansible-core)
ansible-later (python310Packages.ansible-later)
ansible-lint (python310Packages.ansible-lint)
ansible_2_12
ansible_2_13
kargo
python310Packages.ansible
python310Packages.ansible-compat
python310Packages.ansible-kernel
python310Packages.ansible-runner
python39Packages.ansible
python39Packages.ansible-compat
python39Packages.ansible-core
python39Packages.ansible-kernel
python39Packages.ansible-later
python39Packages.ansible-lint
python39Packages.ansible-runner


Error occurs when converting between TMT thread model to OWASP model

When running the ConvertTMT2TD.py script a list index out of range error occurs and the TMT file cannot be converted.
Expected behaviour
The TMT file should be converted to OWASP's json format.
Environment

Version: 1.6
Platform: Desktop app
OS: Windows
Browser: Chrome

To Reproduce

Run the ConvertTMT2TD script
Select a TMT file to convert

Any additional context, screenshots, etc
Error code thrown

If anyone else encounters this error, I have found a solution to this issue. Just figured I should put this on the board anyways.
Solution

Adding "diagramnum = 0"  after line 430 clears up this error.

Hello @AlamosJ
Many thanks for reporting this and even better providing a fix.
I have applied your change in commits:

V2.x: https://github.com/OWASP/threat-dragon/commit/33f2cfa681629c5198693e483ff0f25eeab49048
V1.x: https://github.com/OWASP/threat-dragon/commit/6541f89620b485dfaae5d90858aaa57e28bb9d65

Thanks again!


add Soundcloud search/playback

There is an API for soundcloud too, add funcitonalities to Search and Play music from there too.
https://developers.soundcloud.com/docs/api/reference#tracks

Currently it is not possible to create a new Client ID for the API,
so how can we search for Songs in Soundcloud and load it to a player via Javascript or Php?


Api links don't work

Your api pages dont seem to work http://ember-simple-auth.com/api/

seems to be fine - maybe github pages had issues intermittently


No turns in the game

There is no turns mentioned in the game. We cannot know which player's turn it is now.
Assign this issue to me and I'll fix it.

someone else is assigned in this issue , wait for it if he/she cant i will assign you

hi sir, its showing there is no one assigned , can it be assigned to me if possible.

I wolud like to solve this issue


Allow small calculation for dynamic badge to human readable byte print

:clipboard: Description
Hi.
I want to create a badge for docker like MicroBadger .
Because MicroBadger is not supported flat-square badge. Three-dimensional only this badge looks dirty.
As MicroBadger rest json api returns size as byte like {"DownloadSize": 356492798}, shields.io dynamic badge maker is not produce it.
I want to show human-readable filesize using pretty-bytes. Could you add this feature?

Hi! We do have a couple badges for microbadger, though they show the size and layer count separately. We could add a new badge that shows both. Maybe like this?

Alternatively if you want to do your own thing, we have a new way to accomplish that which is the Endpoint badge. It's in beta. Want to give that a try? #2838


do not normalize Models.Component.properties with CDX-spec-1.2

CycloneDX specification 1.2 does not know the properties of a component.
see https://github.com/CycloneDX/specification/tree/master/schema
Current status: the JSON- and XML-normalizer will render the Models.Component.properties with spec.1.2
This might not seam like a big issue, as JSON- and XML-schema allow custom elements.
:x: BUT the JSON-strict schema does not allow any unexpected elements.

closed via #153


Add note about versions

Hi, I have been using the library and it is working well! However I was initially confused that the docs home page says the docs are for "Trrack v2" but the NPM package linked from the README is @trrack/core which has the latest version of v1.3.0. I was unsure if I was looking at the wrong docs/package.
With further investigation it seems that v1 vs. v2 refers to @visdesignlab/trrack vs. @trrack/core. A note about this would make it more clear.

@keller-mark I will make sure to update the README. It makes sense to add the distinction.


Inactive users repo automation: Let removed users re-add themselves back into the Org

Background
When we remove inactive users via the inactive repo script / automation, they receive an email from GH to say they have been removed from the Org, users then email us to add them back into the Org. This ticket is to provide automation / functionality to let them get access themselves, which saves emailing and us adding the user back to the Org. The user has to provide their username and be added back to the Org using their username to restore their previous permissions. GH stores the username previous permissions for 90 days after being removed.
Proposed user journey
Test adding a removed user back to the Org via the GH API and see if they get the previous permissions / settings. If that works then in the email that states they have been removed: add / provide functionality / add link that the user can use themselves to provide their username to get access back to the Org.

Closing: More effort than value provided in this work to add users back onto Github.


Collections - method:random

The random method now returns a new Collection instance regardless of the argument passed into the method. Previously, this method would return a single object instance if 1 was passed to the method.

Not used


chore: bdd-sbrp-import-1587057925 to 0.0.1

chore: Promote bdd-sbrp-import-1587057925 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


ACRA version 4.3.0 snapshot currently on master branch isn't 1.5 compatible

You need to use the code for ACRA that is above revision 733 : http://code.google.com/p/acra/source/detail?spec=svn766&r=733
because of an IOException error.
I tried updating to the latest 4.3.0 snapshot http://acra.googlecode.com/svn/repository/snapshots/org/acra/acra/4.3.0-SNAPSHOT/acra-4.3.0-20111101.153002-1.jar
But if you have preexisting error logs to be sent... you get:
12-19 01:27:13.056: E/ACRA(1172): java.lang.IllegalArgumentException: REPORT_SENDER is not a constant in the enum type class org.acra.ReportField
12-19 01:27:13.056: E/ACRA(1172): 	at java.lang.Enum.valueOf(Enum.java:196)
12-19 01:27:13.056: E/ACRA(1172): 	at org.acra.CrashReportPersister.load(CrashReportPersister.java:265)
12-19 01:27:13.056: E/ACRA(1172): 	at org.acra.CrashReportPersister.load(CrashReportPersister.java:76)
12-19 01:27:13.056: E/ACRA(1172): 	at org.acra.SendWorker.checkAndSendReports(SendWorker.java:112)
12-19 01:27:13.056: E/ACRA(1172): 	at org.acra.SendWorker.run(SendWorker.java:58)```

Here is how the .stacktrace file looked: http://snipt.org/qpmI6

Then it doesn't send any more crashes....

Using the current version of ACRA means that an exception will cause the app to go in a sending loop until it runs out of diskspace on the /data partition on the device.


Enable -Wall and clean up warnings

This enables and fixes some essential warnings like Wreturn-type.
With this commit preeny should still build without warnings.

Thanks! I think it's okay if the testcases throw warnings, but there's also nothing wrong with disabling them :-)


Translation Delivery

Translation Delivery

This pull request is for translation delivery. Please review and approve them,  @I534472

@corona-warn-app/cwa-app-ios-members: IMPORTANT: do not merge this yet, until we have clarified the needed translations for 1.3.1

OBSOLETE


Make this a package?

We have to decide if this should become a python package or not. My immediate reaction to seeing this repo was: "let's make it a package!". But maybe this is not what is really wanted.
What do I mean by package?
A package in python can be understood as a library. That is a "namespace" containing classes and functions, to be used to solve a certain problem, or multiple related problems. Like requests or numpy.
There are 3 ways, I know a package can be used.
1. import it
Usually a package is imported into other python code by users to solve a particular problem.
Example Problem: "I want to print the folder where pip installs all the packages into"
Solution by importing a package:
import site
print(site.getsitepackages())
# -->  ['/home/dneise/anaconda3/lib/python3.5/site-packages']

2. call it via -m
Some packages can also be "called" from the command line using pythons -m parameter:
~/Desktop:$ python -m site
sys.path = [
    '/home/dneise/Desktop',
    '/home/dneise/anaconda3/lib/python3.5',
    ...,
    '/home/dneise/anaconda3/lib/python3.5/site-packages',
]
USER_BASE: '/home/dneise/.local' (exists)
USER_SITE: '/home/dneise/.local/lib/python3.5/site-packages' (exists)
ENABLE_USER_SITE: True

3. call a console_script of the package
Some packages can be imported, but they are equally often used as a command line application, just like calling make, ls, or firefox also some python packages can be called. A well known example is py.test.
Typically one uses the python package pytest on the shell like this:
~/Desktop:$ pytest
============================= test session starts =============================
platform linux -- Python 3.5.2, pytest-3.0.7, py-1.4.31, pluggy-0.4.0
rootdir: /home/dneise/Desktop, inifile:
collected 0 items

======================== no tests ran in 0.24 seconds =========================

How does this work? The package was installed with pip install pytest or conda install pytest, so that one can import pytest inside ones code. But somehow it magically also installed a commadline application, that I can call, just like any other program on my computer. In any path:
~/foo/bar/baz:$ pytest
============================= test session starts =============================
platform linux -- Python 3.5.2, pytest-3.0.7, py-1.4.31, pluggy-0.4.0
rootdir: /home/dneise/foo/bar/baz, inifile:
collected 0 items

======================== no tests ran in 0.00 seconds =========================

It just works.
How does this work? Well, the authors of pytest chose to define a console_script within the setup.py of pytest. See here.

Now we have to understand:
a) Does this repo contain code, that should be used by others? That is: Should somebody be able to do:
pip install git+http://github.com/fact-project/drsTemperatureCalibration

And then use some of the code, we have developed here?
and b)
If they should reuse some of the code here, how do we plan them to use this repo?

import? or
python -m drsTemperatureCalibration
or do we provide some console_scripts

Current Situation
At the moment, I worked towards option 3 without even talking about it that was not good.
So at the moment, one should pip install the repo and then call one of two the console_scripts provided, have a look into our setup.py for how they are called.

I think the code inside this repo can naturally be devided into two parts:

(long running) preparations and
analysis and quick plots

The "preparations" in this case can be devided into 2 parts again. (maybe even more parts)

collect "some data" from many fits files into few (1 or maybe 2 or 3) HDF5 files
train a model based on the HDF5 files.

These "collect" and "train" parts might be loosely coupled, which creates a chance for others to reuse part of the code.
Maybe somebody has already some data in a HDF5 file and can just use our "train" part. Or somebody wants to train a similar model but not the same, he might decide to reuse the "collect" part only.
Yesterday I learned this repo also contains code which is of diagnostic character. So during the "collect" part, also diagnostic information is gathered, telling people which fits files could not be used and why. Maybe this diagnostic part can be stripped out, so it can be reused on its own... maybe not. I don't know.


Migrating from Kinect & SDK integration w/ Microsoft?

Required Info

Camera Model
n/a

Firmware Version
n/a

Operating System & Version
Win 10

Kernel Version (Linux Only)
n/a

Platform
PC

SDK Version
n/a

Hi RealSense community!
Like many others my team was using the Kinect V2 sensor (with its ecosystem of Visual Gesture Builder & Kinect Studio) to quickly train gestures.
Since the Kinect is going extinct and with it all of its amazing gesture training/tagging tools like Visual Gesture Builder, we'll need to migrate to a new system.
I'm especially curious what this community has found works best for training in custom gestures.

Are there any rough equivalents to the Kinect Visual Gesture Builder for RealSense?
ex.

Record clips of actors attempting a gesture then tag/train it

Emit events when those gestures occur with a payload like gesture name, system confidence of the gesture, & bodyId

Also on the main Microsoft Kinect site, current users are directed to Intel's RealSense cameras & the text hints that Microsoft is working w/ Intel to "provide an option" for developers to transition away:
"Microsoft is working with Intel to provide an option for developers looking to transition from the Kinect for Windows platform. Microsoft will continue to provide support for the Kinect for Windows SDK via our online forums, premiere and paid technical support. As developers transition from Kinect hardware, Microsoft encourages developers to look into Intel’s RealSense depth cameras."

Are there any details about what this might entail?

Specifically (and most important) what are the plans for software tools like Visual Gesture Builder to work w/ RealSense cameras under this arrangement?

Hello @valgaze,
RealSense focuses on providing depth across numerous platforms and wrappers.  For Kinect users, we do not have the middleware Kinect has.  We are evaluating options with third parties and will announce more as we make the decision to adopt middleware for RealSense D400 series.
Regards,
Jesus G.
Intel Customer Support

[Realsense Customer Engineering Team Comment]
Hello @valgaze,
Do you still need help with this issue?
Regards,
Jesus G.
Intel Customer Support

Hey Jesus--
Hi @ jlgarcia75 --
Hi @jlgarcia75 --
Nope all is resolved for now-- very interested to learn which 3rd-party gesture support the Realsense team adopts!


Change to WhseLinesExist in Whse. Validate Source Line

BC OnPremise October 2018 Release
Not sure if this should be here or in the new ALAppExtensions.
In our extension we have added a new document called Manifest (similar Sales Quote/Order/Invoice/Cr. Memo), if the WhseLinesExist function in CU5777 Whse. Validate Source Line, had a VAR parameter for the TableCaptionValue variable then we could easily duplicate the SalesLineVerifyChange and SaleLineDelete functions without having to modify the CU.

It should go to ALAppExtensions:)


Particle Wall

Is there a way to create a wall so the particles would be stopped or bounced off?

That was never implemented. AFAIK This is not implemented in any particle system. Particles are meant to be very simple, if we add any collision detect / physics, the amount of computation per cycle becomes too much to keep and draw a large number of them smoothly.
You might want to check some proper Game Engine and use actual bodies, maybe AndEngine with the Box2D support, or maybe something else that is newer.


How export async from storybook/webpack.config.js

Hello. Faced the problem that I need to make asynchronous calls before exporting the config from storybook/webpack.config.js.
module.exports = configureStorybook;

async function configureStorybook(storybookBaseConfig) {
    const config = await Promise(...)
    storybookBaseConfig.module = config.module;
    storybookBaseConfig.resolve = config.resolve;

    return storybookBaseConfig;
}

it's possible? Because native webpack support return promise/async functions
thanks

Currently it's not possible.

Release in v4.rc2


replace custom flake8 test with ament_pep8 / ament_pyflakes invocation

Connects to ament/ament_tools#22.

+1

(Before merging I have to replace the temporary branch split_linter_packages_in_python_and_cmake in the travis file.)

+1


Create Databricks workflow API for running jobs

A much improved version of https://github.com/amesar/databricks-api-workflow for running Databricks jobs.

https://github.com/mlflow/mlflow-export-import/tree/master/mlflow_export_import/workflow_api


qt5.qtwebengine: fix Qt version number in cmake

Motivation for this change
This fixes the build failures in packages depending on qtwebengine and
using cmake to find the Qt dependencies (like libsForQt5.messagelib).
Things done

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

[ ] 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)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

cc @dotlambda @petabyteboy

We should somehow pass the version to the module's expression.

I may have found a workaround: this picks up the version from
the sources in 5.15/default.nix and shouldn't break older Qt releases.

I don't have the computing power to test this though.

I do and it fails to build but I am unsure if this is an error on my side.
       > /nix/store/5s812h9jxlqmwyx3x4abs74167hqnm8p-qtbase-5.15.2-dev/bin/qmake -install qinstall /build/source/lib/cmake/Qt5PdfWidgets/Qt5PdfWidgetsConfig.cmake /nix/store/dy6bnvkmxdm3v81w19bm5cf2nbghvpxs-qtwebengine-5.15.3-a059e74/lib/cmake/Qt5PdfWidgets/Qt5PdfWidgetsConfig.cmake
       > /nix/store/5s812h9jxlqmwyx3x4abs74167hqnm8p-qtbase-5.15.2-dev/bin/qmake -install qinstall /build/source/lib/cmake/Qt5PdfWidgets/Qt5PdfWidgetsConfigVersion.cmake /nix/store/dy6bnvkmxdm3v81w19bm5cf2nbghvpxs-qtwebengine-5.15.3-a059e74/lib/cmake/Qt5PdfWidgets/Qt5PdfWidgetsConfigVersion.cmake
       > make[2]: Leaving directory '/build/source/src/pdfwidgets'
       > make[1]: Leaving directory '/build/source/src'
       > sed: no input files
       For full logs, run 'nix log /nix/store/36v1q1pyahaga8nmpc5fzlkhphcaf4dm-qtwebengine-5.15.3-a059e74.drv'.

No, apparently the files are moved to the dev out later, so in the post install $out should be used instead.
The version was also wrong because it includes the short revision. I should have fixed both issues, now.

Ok, just finished testing: it seems to fix the build of messagelib and other KDE applications.


Noob for poetry, missing setup instructions in ReadMe?

System Info
Perhaps not needed?

Information

[X] One of the scripts in the examples/ folder of LeRobot
[ ] My own task or dataset (give details below)

Reproduction
Try a brand new setup by following the ReadMe step by step.
Open the folder in VS Code.
Try to debug the 1_load_lerobot_data.py in examples and see import errors and other errors.
More details:
First and foremost, thank you for the ongoing effort on this! I am excited to see Robotics getting attention within Hugging Face!
The default setup instructions in the ReadMe caused a lot of further package import issues for me when attempting to run the above code. (I created a notebook in the repository to run the script code so that I can iteratively explore the data/code but that's not different from running the script).
The default instructions don't have a step to install the package dependencies needed to run things. I am new to poetry and I see the .toml file specifying dependencies using poetry. But reading poetry documentation felt like reading english poetry - a bit more complicated for simple things like installing dependencies. So I just used pip to manually install package dependencies as I tried to run code in the notebook and saw several import errors (for ex: 'datasets', 'torch', 'torchvision' - all these imports were failing in importing the 'lerobot.common.datasets.lerobot_dataset.LeRobotDataset' class).
It would be useful to add perhaps one instruction from poetry to install the needed dependencies in the ReadMe file so that everyone who's getting started with the repository shouldn't need to go through this and figure this out on their own.
Expected behavior
Should be able to get started on running examples smoothly and seamlessly without a lot of hassle and figuring out.

Hi @PradeepKadubandi, the poetry instructions are just meant for contributors. So you may find them in https://github.com/huggingface/lerobot/blob/main/CONTRIBUTING.md. Can you please take a look and let me know if the instructions there are helpful?

Hi, as mentioned above we only use poetry for development. You should be able to run the scripts with everything installed through pip.
Having import errors suggest that something in your install didn't go right.
Can you provide an example of what you're trying to run and the error messages you're getting?

Closing this for inactivity, feel free to reopen if need be.


CioAnalytics library have wrong sources format

SDK version: 3.3.2
Environment: Development
Describe the bug
Cannot install the library using Tuist. The problem is with dependency CioAnalytics. It does not have Sources/CioAnalytics folder, so, there is an error Source path must be one of ["Sources/CioAnalytics", "Source/CioAnalytics", "src/CioAnalytics", "srcs/CioAnalytics"].
To Reproduce
Install CustomerIO 3.2.2 dependency using Tuist. Then run tuist generate
Expected behavior
CioAnalytics dependency has Sources/CioAnalytics folder.

Hey there, Andrii. Sorry to hear that you have experienced this issue. Let me see if I can help.
Could you provide your tuist config file so I can try and reproduce this error myself?

@levibostian Sure, this is Package.swift file:
// swift-tools-version: 5.9
import PackageDescription

#if TUIST
    import ProjectDescription

    let packageSettings = PackageSettings(
        productTypes: []
    )
#endif

let package = Package(
    name: "TestProj",
    dependencies: [
        .package(url: "https://github.com/customerio/customerio-ios", exact: "3.3.2")
    ]
)

and Project.swift file:
let project = Project(
    name: "TestProj",
    targets: [
        .target(
            name: "TestProj",
            destinations: .iOS,
            product: .app,
            bundleId: "com.testproj",
            sources: ["Sources/**/*.swift"],
            resources: ["Resources/**"],
            dependencies: [
                .external(name: "DataPipelines"),
                .external(name: "MessagingPushFCM")
            ]
        )
    ]
)

After tuist install command if you rename ./Tuist/.build/checkouts/cdp-analytics-swift/Sources/Segment to ./Tuist/.build/checkouts/cdp-analytics-swift/Sources/CioAnalytics everything works fine.

Greatly appreciate the config files.
From that, I have been able to reproduce the issue.
We're working on a fix for this issue. We hope to get something out to you as soon as we can. We'll keep you updated here on the progress.

@alpha-moisol, I have a fix for you to try out.
If you update your Package.swift file to install the customerio-ios version 3.3.3 and run your tuist install; tuist generate functions again, see if the error goes away.
I no longer see the error from testing on my machine. Hope the same goes for you!

@levibostian Hi, thanks. Now it works perfectly fine!


variables cannot be keywords

if I try:
type alias Config = {
  host: String,
  port: Int
}

config =
  Config "localhost" 3000

Compiler complains with:
unexpected keyword 'port', variables cannot be keywords

So I am wondering if this is a real limitation, I don't really understand why (port is a keyword, but why can't it also be used as a record field?)
it seems to me like this should be allowed.

I had the same issue. I wanted to use the attribute "type" inside a record.
Most languages work this way: keywords cannot be used as variable
identifiers. In Python at least the convention is to put a trailing
underscore. So I used "type_".
On Thursday, November 12, 2015, Sebastian Porto<EMAIL_ADDRESS>wrote:

if I try:
type alias Config = {
host: String,
port: Int
}
config =
Config "localhost" 3000
Compiler complains with:
unexpected keyword 'port', variables cannot be keywords
So I am wondering if this is a real limitation, I don't really understand
why, but it seems to me like this should be allowed.
—
Reply to this email directly or view it on GitHub
https://github.com/elm-lang/elm-compiler/issues/1160.

The way the current parser works, I don't see any reason we couldn't allow keywords to be used as record fields.  Note that this would need to be supported not only in record types {x:Int} and expressions {x=9}, but also in patterns {x}, field access r.x, and field accessors .x.

+1

Track in #1375


feat: deploy notifications

🤖 Generated by Copilot at 6f146f3
Summary
:rocket::package::hammer_and_wrench:

Add Discord notifications for dxos package deployment. Use .circleci/scripts/publish.sh to send messages to a webhook URL based on the branch name.

Oh, we are the dxos crew and we sail the cyberspace
We deploy our packages with a webhook in our face
We send a message to Discord when we reach the branch we seek
And we heave away and haul away and sing this shanty cheeky

Walkthrough

Add functions to send Discord notifications based on deployment status (link)
Call notification functions after deployment command for production, staging, or main branches (link)
Pass package name as argument to notification functions (link)

we need to set a DX_DISCORD_WEBHOOK_URL to point to #alerts to finish this after merge

we could improve this later with links to circle and gh actions jobs


Rate of Change Indicator bug

This line should be:
return (input - window.MostRecentlyRemoved) / MostRecentlyRemoved;

If not is a simple difference / momentum instead of rate of change.

That makes more sense to me as well. The source for our test data is freestockcharts. They have a Rate of Change indicator defined here.
After some searching, I couldn't find anyone else who defines Rate of Change like that.  Here's one that suggests it should be a percentage, scaled 0 to 100, and then this one suggests as you have defined.  We already have a RateOfChangePercent which defined here and scaled 0 to 100, so let's update RateOfChange as you suggest.
The only question that remains: is there an external data source that has values we can test against?

IMHO, given the simplicity of the operation and the concept, an external data source to check the indicator is not needed.
As always, I'm glad to help.

Closed via #250


Trusted Advisor Graceful Timeout

Added timeout for Trusted Advisor check to gracefully move on when TA doesn't refresh in time

We have released updated version of the solution, closing the PR. Thanks.


Have anyhow::Error implement std::error::Error?

anyhow::Error does not implement std::error::Error, which leads to confusion when using anyhow with code that expects a Result<_, std::error::Error>.
I noticed that the same applies to failure::Error in the failure crate.
What is the reason for that? What prevents anyhow::Error from implementing std::error::Error?
... and thanks for all your awesome Rust crates!

That impl would be incoherent with the existing pair of impls impl From<T> for T (libcore) and impl<E> From<E> for anyhow::Error where E: std::error::Error + Send + Sync + 'static (? support).
error[E0119]: conflicting implementations of trait `std::convert::From<anyhow::Error>` for type `anyhow::Error`:
   --> src/error.rs:313:1
    |
313 | / impl<E> From<E> for Error
314 | | where
315 | |     E: std::error::Error + Send + Sync + 'static,
316 | | {
...   |
320 | |     }
321 | | }
    | |_^
    |
    = note: conflicting implementation in crate `core`:
            - impl<T> std::convert::From<T> for T;

Can you give a minimal example of code that would want this impl to exist?

There's a (short) story behind that. A new rustacean colleague had written something like this, with a function panicking with expect, calling it in main along with other functions returning standard errors:
use anyhow::Context;

fn with_expect() {
    let foo = std::env::var("FOO")
        .expect("Env var FOO must be set to provide the foo");

    let data = std::fs::read(foo) // Result<_, io::Error>
        .expect("Failed to read data");

    println!("{:?}", data);
}

fn do_something() -> std::io::Result<()> {
    Ok(())
}

fn main() -> Result<(), Box<dyn std::error::Error>> {
    with_expect();
    do_something()?;
    Ok(())
}

I explained that anyhow::Context would allow to provide the context he added with expect without panicking. So he ended up with this, which doesn't compile because anyhow::Error cannot be converted to a stdlib error.
fn with_anyhow() -> anyhow::Result<()> {
    let foo = std::env::var("FOO")
        .context("Env var FOO must be set to provide the foo")?;

    let data = std::fs::read(foo)
        .context("Failed to read data")?;

    println!("{:?}", data);
    Ok(())
}

fn main() -> Result<(), Box<dyn std::error::Error>> {
    with_anyhow()?;
    do_something()?;
    Ok(())
}

The solution of course is to change the return type of main to Result<(), anyhow::Result> (or even anyhow::Result<()> but being a new rustacean he couldn't find why anyhow which is supposed to help in error handling was causing these compilation errors and was confused to no end.
There was an implicit assumption that an anyhow::Error was also a std::error::Error or at least implemented Into<std::error::Error> so that '?' would work with a Box<dyn std::error::Error> return type.
Error handling is still a hard thing for people new to Rust because of lack of standardization around std::error::Error caused by the fact that Result doesn't mandate its error part to implement it. I guess it's to support no_std but newcomers easily assume that Result and std::error::Error go hand in hand and can be confused to no end by that.

Ah that's somewhat different, that looks like a missing From impl not a missing Error impl. I released 1.0.16 with the extra impl to make your second code sample work.

Awesome! Indeed this was actually more about having aFrom than a missing impl. Thanks a lot!


Fix a small typo in expose intro

This change is

@lfdversluis thank you for the fix - if would sign the CLA, this will merge in...
/approve

FYI I am not receiving verification emails from the CLA, I get errors to contact the site admin which I did. But no response so far.

👋 We've migrated the site's framework to Hugo. Please re-open this PR with changes to files in their post-migration location (/content/en/docs/...).


Demo page should be directly available in all supported localizations

Unless I'm missing something, the demo page is available in the English only. It would be useful to have a simple way to have this page available in every supported language. I know that the demo page should adjust to the language set in the users browser, but some users use a different locale so they might be confused by a "missing" localization.

It does -- just provide it the language parameter. E.g. http://assets.digitalclimatestrike.net/demo.html?language=de
I've updated the README with a sentence that makes this clear. Closing this one.


⚠ PrivateHD has degraded performance

In 672c7a1, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 1258 ms

Resolved: PrivateHD performance has improved in 2299c87.


Bump the version to v2.5.1

Merge activity

Jan 25, 9:55 PM: @jklein24 merged this pull request with Graphite.


Need help using this framework/repository

Help! :)
Need more specific directions on how to use this repository with sdl core.

What cmake flags are required when building sdl core to use this testing framework? Build for qt hmi or can these tests be used with either hmi type?
Do you run ./start.sh already after sdl core is running?
What are the arguments supplied to the start.sh script? Can I get an example?
Is the "scripts" argument supplied with scripts from this repository
What are the different possible options arguments?
When running ./start.sh I get the errorLua error:
./modules/reporter.lua:1: module 'xml' not found:

@JackLivio,

No specific flags for SDL are required.
SDL now testing using default WebHMI through websockets.
We have a feature to start sdl from ATF, and it needs to be configured
And you can start manually, but
See README
Yes, if you are goint to test SDL you need to select test from those repository
What options do you mean?
See apt-get install command for compiled binaries or apt-get for building from source.


Accept .jdl file extension and not only .jh

The issue
Its strange that the jdl file passed to jhipster uml needs to named .jh. Naming it .jdl which for me is more logical since we always speak of it as the jdl file should also be okey. Maybe the file extensions should not even be restricted at all? Is there a reason for this restriction? I dont know how many times I named it  .jdl instead of .jh and got this nasty stack trace
$ jhipster-uml test.jdl
An error has occurred:
	TypeError
Error message:
	Cannot read property 'hasOwnProperty' of undefined
Stack trace:
TypeError: Cannot read property 'hasOwnProperty' of undefined
    at /Users/anders/Workspace/jhipster-uml/lib/editors/parser_factory.js:88:15
    at Parser.<anonymous> (/Users/anders/Workspace/jhipster-uml/node_modules/xml2js/lib/xml2js.js:488:18)
    at emitOne (events.js:77:13)
    at Parser.emit (events.js:169:7)
    at Object.onerror (/Users/anders/Workspace/jhipster-uml/node_modules/xml2js/lib/xml2js.js:309:26)
    at emit (/Users/anders/Workspace/jhipster-uml/node_modules/sax/lib/sax.js:639:35)
    at error (/Users/anders/Workspace/jhipster-uml/node_modules/sax/lib/sax.js:668:5)
    at strictFail (/Users/anders/Workspace/jhipster-uml/node_modules/sax/lib/sax.js:692:7)
    at beginWhiteSpace (/Users/anders/Workspace/jhipster-uml/node_modules/sax/lib/sax.js:965:7)
    at Object.write (/Users/anders/Workspace/jhipster-uml/node_modules/sax/lib/sax.js:1006:11)

or maybe the stacktrace should be replaced with a file extension check?

Frankly, I don't know why we still don't allow this extension. I'll do it ASAP (tonight)!

It was because the .jdl already existe but that's for some obscure database. Shouldn't be a problem.

It's finally done!


Missing items: Titan-Forged Mail Helm of Dominance, Titan-forged Ringmail Helm of Salvation

Links to WOTLK Wowhead for each item:
https://www.wowhead.com/wotlk/item=44896/titan-forged-sabatons-of-dominance
https://www.wowhead.com/wotlk/item=44897/titan-forged-sabatons-of-salvation
Missing from ele-sham sim.

Added now!


feat: enable prometheus metrics for overlaybd

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adding prometheus port for overlaybd
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.007%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2243

Relevant Lines:
2839

💛  - Coveralls


tell git to ignore build output

See torch/distro#36

Thanks.

Thank you for quick pull!

No problem. Thanks for the useful PR!


Unable to specify configuration in lerna repo with hoisted packages

I've got a lerna repo with packages/* packages and apps/* packages. In one of my apps, I've added cypress and cypress-cucumber-preprocessor. When I go through the example, I'm able to get my .feature file detected by the cypress runner, but when I execute it, it doesn't detect any step definitions.
I added some logs to see where the issue might be, and I can see that the cosmiconfig is not finding any configuration even though I've tried adding the section to package.json as well as in an external file. I suspect the issue is with the fact that the cosmiconfig package has been hoisted out of my app directory's node_modules and put into the root node_modules.
Is there some other way to configure the preprocessor without relying on cosmiconfig, or alternatively, "dumping" all the paths that the tool searches for step definitions in order to just put them in the right place without configuration?
Please let me know if you require additional info.
Thanks.

Hello @akatechis. Thanks for using our package (or at least trying!)
Could you make a small repro for us?

Hi @lgandecki, I was able to get past this issue, seems like I was neglecting some configuration.

My .feature file looks like:

I'll try to put together a repro, and see if that helps.

Sorry for the multiple edits, I fat-fingered some of the code snippets as I was pasting

Finally figured this out, I was iterating on the phrase in my feature file, and without realizing it, the matcher in the step definition did not match what was in the feature file.
Apologies for taking up your time, and thank you so much for such an awesome tool. I was only recently made aware of cucumber and cypress, and using them together unlocks so many possibilities for us. I'm really excited to get the rest of my team on board with this.
Thanks!

Thank you for kind words @akatechis ! Feel free using this space if you need any help. :-)


Update mil2525d meta table and doc to match new team agreed-upon spec

@mbriat , raj, and I went over the .stylx meta table fields and here was the reviewed, agreed-upon list for the mil2525d.stylx (Pro 1.2/Quartz version):
We just need to update the names for the source version table for our mil2525d entries and add this table to the readme so others understand the format (and we can maintain it there):

Key
Expected value/format/example
Description/Usage
Application Used By

version
1.0
This specifies the latest supported version of database schema for stylx files.
Pro

content
json
Verifies that the content of stylx is of type json.
Pro

cim_version
1.1.0
Verifies what version of CIM spec to be supported.  Anything older than this version should be supported. E.g. all versions will be supported here until the number becomes “1.2.0”.
Pro/Runtime

build
4351
Pro Build Number. Internal use only.
Pro

forceRGB
true
Cim Format Option. Needs to be checked by runtimecore for loading plugins.
Pro

vectorizeCM
true
Cim Format Option. Needs to be checked by runtimecore for loading plugins.
Pro

densifyCurves
true
Cim Format Option. Needs to be checked by runtimecore for loading plugins.
Pro

runtime_version
1.0.0
Checks the supported “rule_engine” api version from cim_rule_engine to be implemented by plugins.
Cim_Rule_Engine(Plugin  Manager)

rule_engine_plugin_version
1.0.0
"Checks the supported version of plugin dll. E.g. there can be internal changes to the plugin dll logic.  Anything older than this version(that matches the rule engine API spec) should be supported. E.g. all versions will be supported here(from 1.0.0) until the number becomes 1.2.0. This number should be an incremental number from ""runtime_version"".  This should be the same as the “version” in the metadata file."
Plugin Implementation

pro_version
1.1.0
Internal use for plugins. Version of ArcGIS Pro.
mil2525d plugin* (metadata for the stylx)

milstylx_version
1.1.0
Internal use for plugins.
mil2525d plugin* (metadata for the stylx)

milstd_version
2525D-0.1
Internal use for plugins
mil2525d plugin* (metadata for the stylx)

jmsml_version
1.0.1
Internal use for plugin
mil2525d plugin* (metadata for the stylx)

* - these "mil2525d plugin" ones are primarily administrative entries we use to keep track of the various versions of dependencies used to create the mil2525d data
Related to #121 (removing the DatabaseVersion table)

Resolved in #144


Flutter does not call dispose after android application exit

Hello I just found that Flutter will not call widget's dispose method after android application exit. So I can not cancel the Timer object I created, If I quit and re-enter the application again, there will be another Timer object created.
Now both Timer object are running, and I can not do anything on it.
Steps to Reproduce

use codes bellow
build and run the app
press back button on android phone
re-enter the app
see the log, it will show both Timer object are running.

import 'dart:async';

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Welcome to Flutter'),
        ),
        body: Demo(),
      ),
    );
  }
}

class Demo extends StatefulWidget {
  @override
  _DemoState createState() => _DemoState();
}

class _DemoState extends State<Demo> {
  Timer _timer;
  int _count = 0;

  @override
  void initState() {
    _timer = Timer.periodic(Duration(seconds: 1), (timer) {
      debugPrint('tick. timer id: ${_timer.hashCode} count: $_count');
      setState(() {
        _count++;
      });
    });
    super.initState();
  }

  @override
  void dispose() {
    debugPrint('disposed...');
    _timer?.cancel();
    super.dispose();
  }
  @override
  Widget build(BuildContext context) {
    return Container(child: Text('$_count seconds.'));
  }
}

Logs
Launching lib/main.dart on A0001 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
Syncing files to device A0001...
I/Choreographer(26990): Skipped 82 frames!  The application may be doing too much work on its main thread.
D/FA      (26990): Connected to remote service
V/FA      (26990): Processing queued up service tasks: 4
I/flutter (26990): tick. timer id: 709499887 count: 0
I/flutter (26990): tick. timer id: 709499887 count: 1
I/flutter (26990): tick. timer id: 709499887 count: 2
I/flutter (26990): tick. timer id: 709499887 count: 3
I/flutter (26990): tick. timer id: 709499887 count: 4
V/FA      (26990): Inactivity, disconnecting from the service
I/flutter (26990): tick. timer id: 709499887 count: 5
I/flutter (26990): tick. timer id: 709499887 count: 6
I/flutter (26990): tick. timer id: 709499887 count: 7
I/flutter (26990): tick. timer id: 709499887 count: 8
I/flutter (26990): tick. timer id: 709499887 count: 9
I/flutter (26990): tick. timer id: 709499887 count: 10
I/flutter (26990): tick. timer id: 709499887 count: 11
I/flutter (26990): tick. timer id: 709499887 count: 12
I/flutter (26990): tick. timer id: 709499887 count: 13
V/FA      (26990): Recording user engagement, ms: 15764
V/FA      (26990): Connecting to remote service
V/FA      (26990): Activity paused, time: 592445181
D/FA      (26990): Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=15764, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=8511900614029532923}]
V/FA      (26990): Connection attempt already in progress
D/FA      (26990): Connected to remote service
V/FA      (26990): Processing queued up service tasks: 2
I/flutter (26990): tick. timer id: 709499887 count: 14
I/flutter (26990): tick. timer id: 709499887 count: 15
I/flutter (26990): tick. timer id: 709499887 count: 16
V/FA      (26990): onActivityCreated
E/flutter (26990): [ERROR:flutter/shell/platform/android/android_context_gl.cc(217)] Could not make the context current
E/flutter (26990): [ERROR:flutter/shell/platform/android/android_context_gl.cc(53)] EGL Error: EGL_BAD_ACCESS (12290)
V/FA      (26990): Activity resumed, time: 592448104
I/flutter (26990): tick. timer id: 709499887 count: 17
I/flutter (26990): tick. timer id: 709499887 count: 18
I/flutter (26990): tick. timer id: 709499887 count: 19
I/flutter (26990): tick. timer id: 366485841 count: 0    !!!! new timer created !!!!
I/flutter (26990): tick. timer id: 709499887 count: 20   !!!!! and old one still alive !!!!!
I/flutter (26990): tick. timer id: 366485841 count: 1
I/flutter (26990): tick. timer id: 709499887 count: 21
I/flutter (26990): tick. timer id: 366485841 count: 2
V/FA      (26990): Inactivity, disconnecting from the service
I/flutter (26990): tick. timer id: 709499887 count: 22
I/flutter (26990): tick. timer id: 366485841 count: 3
I/flutter (26990): tick. timer id: 709499887 count: 23
I/flutter (26990): tick. timer id: 366485841 count: 4
I/flutter (26990): tick. timer id: 709499887 count: 24
I/flutter (26990): tick. timer id: 366485841 count: 5
I/flutter (26990): tick. timer id: 709499887 count: 25
I/flutter (26990): tick. timer id: 366485841 count: 6
I/flutter (26990): tick. timer id: 709499887 count: 26
I/flutter (26990): tick. timer id: 366485841 count: 7
I/flutter (26990): tick. timer id: 709499887 count: 27
I/flutter (26990): tick. timer id: 366485841 count: 8
I/flutter (26990): tick. timer id: 709499887 count: 28

[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-CN)
    • Flutter version 1.2.1 at /Users/xxxx/Library/flutter
    • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/xxxx/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    ✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
        brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    ✗ ios-deploy not installed. To install:
        brew install ios-deploy
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
        For more info, see https://flutter.io/platform-plugins
      To install:
        brew install cocoapods
        pod setup

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] VS Code (version 1.30.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (1 available)
    • ONEPLUS A3010 • 3460a357 • android-arm64 • Android 8.0.0 (API 26)

! Doctor found issues in 4 categories.

Same problem for me. I'd like to close my database on exiting the app. Unfortunately dispose() is not called.

Add FlutterViewController to iOS  app, When enter in flutter page and back. FlutterViewController called dealloc but flutter page do not call dispose.

I'm facing the same issue when trying to close my database. As the sqflite method close() is a future I think it doesn't wait it to close and retrieve an error log after I exit my app "a resource failed to close".

I guess I'm a bit late for answering this. Even I was facing the same issue when I created a normal constructor. So I created a Singleton and now it works fine. I've included the code snippet below.
import 'dart:async';

class MySingleton {
  static final MySingleton _instance = MySingleton._internal();
  factory MySingleton() => _instance;

  MySingleton._internal() {
    // init things inside this
    int counter = 0;
    Timer.periodic(Duration(seconds: 1), (timer) {
      counter++;
      print(counter);
    });
  }
}

@guzishiwo have you found any solution ?

Add FlutterViewController to iOS app, When enter in flutter page and back. FlutterViewController called dealloc but flutter page do not call dispose.

I have the same proble with you on iOS app.

I guess I'm a bit late for answering this. Even I was facing the same issue when I created a normal constructor. So I created a Singleton and now it works fine. I've included the code snippet below.
import 'dart:async';

class MySingleton {
  static final MySingleton _instance = MySingleton._internal();
  factory MySingleton() => _instance;

  MySingleton._internal() {
    // init things inside this
    int counter = 0;
    Timer.periodic(Duration(seconds: 1), (timer) {
      counter++;
      print(counter);
    });
  }
}

Have you solve the dispose problem by Singleton ?

I guess I'm a bit late for answering this. Even I was facing the same issue when I created a normal constructor. So I created a Singleton and now it works fine. I've included the code snippet below.
import 'dart:async';

class MySingleton {
  static final MySingleton _instance = MySingleton._internal();
  factory MySingleton() => _instance;

  MySingleton._internal() {
    // init things inside this
    int counter = 0;
    Timer.periodic(Duration(seconds: 1), (timer) {
      counter++;
      print(counter);
    });
  }
}

Have you solved the dispose problem by Singleton ?

I don't understand how this is possible. initState shouldn't get called again when you come back.

for me ever since i used the timer without disposing it in a specific app, every app i run i get all previous build logs printed out, currently i need to type "flutter logs -c" before every build in order to clean the logs. @Hixie does it even make sense?

Hey @guzishiwo You closed the issue but I don't know how you solved the issue. Can you please share?

I have a slightly different problem but it may be related:
Timer _checkNewMinute;

checkAndUpdateCurrentAngle() {
    DateTime lastLoadingTime = DateTime.now();
    Duration checkingFrequency = Duration(seconds: 1);

    _checkNewMinute.periodic(checkingFrequency, (timer) {
      //print(DateTime.now());
      if (DateTime.now().minute != lastLoadingTime.minute) {
        lastLoadingTime = DateTime.now();
        //print('updating...');
        setState(() {
          currentCity.computeCurrentAngle();
        });
      }
    });
  }

And it gives me this error:

Sorry, my bad. I got the error now.
I should have written
_checkNewMinute = Timer.periodic
instead of
_checkNewMinute
But that still doesn't answer my question. Is this issue really closed? Does Dart disposes the Flutter now? How can I double-check on my end? Can anyone give a novice developer some easy steps to follow on how to check whether my functions have been disposed?
Thanks :)

I guess I'm a bit late for answering this. Even I was facing the same issue when I created a normal constructor. So I created a Singleton and now it works fine. I've included the code snippet below.
import 'dart:async';

class MySingleton {
  static final MySingleton _instance = MySingleton._internal();
  factory MySingleton() => _instance;

  MySingleton._internal() {
    // init things inside this
    int counter = 0;
    Timer.periodic(Duration(seconds: 1), (timer) {
      counter++;
      print(counter);
    });
  }
}

Have you solved the dispose problem by creating Singleton ?

Yep, you can call singleton().dispose()
`import 'dart:async';
class MySingleton {
Timer _timer;
get timer=>_timer;
dispose() => _timer.dispose();
static final MySingleton _instance = MySingleton._internal();
factory MySingleton() => _instance;
MySingleton._internal() {
// init things inside this
int counter = 0;
_timer = Timer.periodic(Duration(seconds: 1), (timer) {
counter++;
print(counter);
});
}
}`
and you can call MySingleton.dispose() from main dispose() widget method.


offroad icon add

offroad icon add
community -> discord icon
kale mode -> remove emoji add kale icon
ssh -> ssh icon add
Lane Departure Warnings -> ldws icon

Thanks for the PR, but we have a comprehensive design update in the works.


Proposal: Modify AMI search to query a regex pattern and select latest

Different AWS partitions (and regions) may have different AMI names/versions available. In the aws-us-gov partition, the current default AMI name, AX_AWS_IMAGE_NAME=k8s-1.6-debian-jessie-amd64-hvm-ebs-2017-05-02, is not available. But the AMI that is available there, k8s-1.6-debian-jessie-amd64-hvm-ebs-2017-07-07, is not available in the aws partition. 🤦♂
To simplify the initial cluster install experience, I propose using a regex pattern to search for the AMI name, sorting the list, and selecting the latest. Something like, ^k8s-1.6-debian-jessie-amd64-hvm-ebs-[0-9]{4}-[0-9]{2}-[0-9]{2}$.
If a user wants to pin to a particular AMI name/version, they can still override the ENV.
@lcjlcj @shrinandj @abhinavdas

I'm hesitated to add this regex into picture as latest does not mean its tested. We specifically hardcode an AMI name in the community version as we tested it, just as we freeze all our upstream package versions. Plus, the community did not say AMI was named according to this regex officially so theoretically we cannot find an AMI, or we might hit something ancient if naming scheme is changed.
One solution I would prefer:
for aws partition, use k8s-1.6-debian-jessie-amd64-hvm-ebs-2017-05-02, for us-gov partition, use k8s-1.6-debian-jessie-amd64-hvm-ebs-2017-07-07, once we have an GOV account and test it out.
Thoughts?

Both the partition and the region are constraints. There is no guarantee that every region in the aws partition will have an AMI named k8s-1.6-debian-jessie-amd64-hvm-ebs-2017-05-02.
There are also more partitions than aws and aws-us-gov, some of which are not particularly public. I don't think it is possible to hard code this value to tested AMIs that will work for every partition and every region.

Closing v1 issues.


GBS Tutorial: Point Process

Add a tutorial for using GBS point processes.

@soranjh this seems ready to remove the "draft" status, i.e., can mark as "Ready for review" and also remove the "WIP" label

Codecov Report

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

@@           Coverage Diff           @@
##           master     #210   +/-   ##
=======================================
  Coverage   97.94%   97.94%
=======================================
  Files          44       44
  Lines        5748     5748
=======================================
  Hits         5630     5630
  Misses        118      118

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 6004dc7...18fa8e0. Read the comment docs.


Error and lag due to fishing

whenever a player casts a rod in any of my servers i get a huge lag spike and this error (http://prntscr.com/7bnazb) but it doesn't seen to effect the game play of the fishing only the server its self with the error.

It actually might be linked with someone joining and leaving I'm not sure

There was an update with the way Rocket handles events which is where this error comes from.  It will be worked on.

thanks zami!


I would need a way to add my own button(s)

Hiya; thank you for this awesome tool :)
Is your feature request related to a problem? Please describe.
my app is about uploading files on the backend, and then having the ability to do stuff with these files from there (namely, deploy the files to people who have subscribed it)
so in essence I need to somehow create some sort of reactive area inside the file widget, that allows the app user to trigger these extra tasks
Describe the solution you'd like
I can live with something a little patchy at first (see below)
not quite sure how this could be proposed nicely
Describe alternatives you've considered
So far I have tried to use the .filepond--file-info-sub span area to inject my stuff
my initial attempt was to insert in there something like a <span onclick="my_stuff(...)">
however my_stuff() won't trigger, and I'm at a loss to figure how to make it alive
I understand that this is sort-of conflicting with allowReorder so I did set it to false (knowing that the extra button is much more important to me than the ability to manually reorder things) but that still won't work
At the very least I could use some description of how the events are handled
incidentally I tried to reverse-engineer this mechanism by enabling debugging on the 'click' event but could not guess how all this is supposed to work...
Additional context
I did search on stackoverflow but came up with nothing relevant
I also tried

to set opacity: 1 on the one item which was 0.5, because of some code in filepond.js that suggested it might matter
to set z-index : 100 on the element just in case

but no avail either
in my current code the small horizontal arrow is meant to become the button (once styled a little more properly of course)

thanks for any tip / thought

There is onactivatefile callback you could use, you can then open a modal or show edit fields somewhere else to modify file data.

all righty
however the doc only seems to mention a file parameter
is there a way that I can access the event object then ? I'd need the event's target so I can implement something a little less intrusive than a modal, and/or several sensitive areas inside the blob, or...

It receives the fileItem that was clicked, this item has an id which you can use to interact with FilePond itself. Maybe I misunderstand what you plan to do.

so first off, the solution you gave me so far is way better than anything I had tried before
so BIG THANKS already :)
what I meant was:
the 'activatefile' callback being called is the result of me clicking in the item area, right ?
so I'd love to access that click event - as a parameter to the callback - this way I can for example see in which part of the item the click occurred, that sort of stuff

Hey, that info is currently not available in the onactivatefile callback.
I'd consider creating a custom plugin, that will give you a lot more flexibility. Forking the file-poster plugin might be a good start.

Closed because inactive.


fix backward compatibility for Generator

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a2cbd72). Click here to learn what that means.
The diff coverage is 90%.

@@            Coverage Diff            @@
##             master     #250   +/-   ##
=========================================
  Coverage          ?   68.04%
=========================================
  Files             ?       64
  Lines             ?     5295
  Branches          ?        0
=========================================
  Hits              ?     3603
  Misses            ?     1692
  Partials          ?        0

Impacted Files
Coverage Δ

onmt/Factory.lua
29.19% <ø> (ø)

onmt/LanguageModel.lua
44.23% <0%> (ø)

onmt/modules/Decoder.lua
85.06% <100%> (ø)

onmt/modules/Generator.lua
100% <100%> (ø)

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 a2cbd72...9823de4. Read the comment docs.


Option to skip building unbottled dependents from source

I think behavior has changed recently so that unbottled dependents are now built from source instead of being skipped. Is there an option to skip building unbottled dependents to speed up test-bot runs?

Not currently, but adding one seems reasonable.

#736 should restore the old behaviour that unbottled dependents are built from source only when requested with --build-dependents-from-source.

thanks @carlocab!


API Harmonization

This PR as discussed internally tries to harmonize all siwe libraries to a similar behavior across all different languages.

[x] API uniformization across libraries
[x] Improve message syntax checking

👍  You can update the version number as well and then I'll publish it


MBED_16 is not working on STM32F4 with IAR toolchain

Hello,
We noticed that the MBED_16 is failing with IAR toolchain at least for STM32F4 and STM32L4 families
it gives the following result:
Executing 'python host_test.py -d D: -f "c:\MCDGitW601\mbed\build\test\NUCLEO_F410RB\IAR\MBED_16\rtc.bin" -p COM7 -t 15 -C 1.5 --auto -m NUCLEO_F410RB'
Test::Output::Start
MBED: Instrumentation: "COM7" and disk: "D:"
HOST: Copy image onto target...
        1 file(s) copied.
HOST: Initialize serial port...
Looking for NUCLEO_F410RB with MBEDLS
...port ready!
HOST: Reset target...
HOST: Property 'timeout' = '20'
HOST: Property 'host_test_name' = 'rtc_auto'
HOST: Property 'description' = 'RTC'
HOST: Property 'test_id' = 'MBED_16'
HOST: Start test...
MBED: [1256729737] [2009-10-28 11:35:37 AM]
HOST: [1256729737] [2009-10-28 11:35:37 AM] received time +1256729737 sec after 0.00 sec... OK
MBED: [1256726138] [2009-10-28 10:35:38 AM]
HOST: [1256726138] [2009-10-28 10:35:38 AM] received time -3599 sec after 0.00 sec... FAIL
MBED: [1256729739] [2009-10-28 11:35:39 AM]
HOST: [1256729739] [2009-10-28 11:35:39 AM] received time +3601 sec after 0.00 sec... OK
MBED: [1256729740] [2009-10-28 11:35:40 AM]
HOST: [1256729740] [2009-10-28 11:35:40 AM] received time +1 sec after 0.00 sec... OK
MBED: [1256729741] [2009-10-28 11:35:41 AM]
HOST: [1256729741] [2009-10-28 11:35:41 AM] received time +1 sec after 0.00 sec... OK

{{failure}}
{{end}}
Test::Output::Finish
TargetTest::NUCLEO_F410RB[F63D]::IAR::MBED_16::RTC [FAIL] in 5.41 of 20 sec

Test summary:
+--------+---------------------+-----------+---------+------------------+--------------------+---------------+-------+
| Result | Target              | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+---------------------+-----------+---------+------------------+--------------------+---------------+-------+
| OK     | NUCLEO_F410RB[F63D] | uARM      | MBED_16 | RTC              |        5.43        |       20      |  1/1  |
| FAIL   | NUCLEO_F410RB[F63D] | IAR       | MBED_16 | RTC              |        5.41        |       20      |  0/1  |
| OK     | NUCLEO_F410RB[F63D] | ARM       | MBED_16 | RTC              |       22.07        |       20      |  1/1  |
| OK     | NUCLEO_F410RB[F63D] | GCC_ARM   | MBED_16 | RTC              |        5.51        |       20      |  1/1  |
+--------+---------------------+-----------+---------+------------------+--------------------+---------------+-------+
Result: 1 FAIL / 3 OK

Adding the following line in rtc_read function of hal/targets/hal/TARGET_STM/TARGET_STMF4/rtc_api.c fixes the issue:
timeinfo.tm_isdst = -1;
Basically I would say that I am happy with this bug fix. But why is the issue toolchain dependent ?
I reverted the database and discovered that the issue appeared at the merge of PR#1863.
I cannot find the link between the modification and the failure, neither between the bug fix I suggest and the failure on IAR toolchain only...
Do you have any idea ?
Kind regards
Armelle

Hello all,
I submitted a pull request #2029
but it does not solve every targets. This means that the question :

But why is the issue toolchain dependent ?
I reverted the database and discovered that the issue appeared at the merge of PR#1863.
I cannot find the link between the modification and the failure, neither between the bug fix I suggest and the failure on IAR toolchain only...
Do you have any idea ?

is still opened.
@0xc0170 @screamerbg  do you have any idea about this topic ?
Kind regards
Armelle


Specify recruitment needs

Identify technologies to be used and gaps in skills/resources. Make a suggestio to management regarding resource allocation.

We organised a meeting on the recruitment needs for the project 21 April.
Meeting minutes can be found from here https://apinf.hackpad.com/2015-04-21-Needs-assessment-meeting-minutes-6XTZXzoVcKt (The minutes include specs for a developer who should be recruited for the summer period).


[Support]:  Trouble Getting Into WebUI - 502 Bad Gateway error

Describe the problem you are having
Can't access WebUI - 502 bad gateway error
Repository has been added, and add-on installed. I have also installed the HACS integration. I tried to setup the normal integration (which is now showing up) but wasn't sure if I'm pointing to the right URL as I'm getting an error back on that.
Bigger issue seems to be with getting into the WebUI
Version
3.0.2
Swatch config file
# REQUIRED: Define a list of objects that are expected to be seen. These can be specific
# to one camera or common between many / all cameras
objects:
  # REQUIRED: Name of the object
  trash_can:
    # REQUIRED: the list of color variants that this object can be detected as. Useful for
    # different lighting conditions
    color_variants:
      # REQUIRED: the name of the color variant
      default:
        # REQUIRED: the lower R, G, B values that are considered a potential match for the
        # color variant of the object.
        color_lower: 70, 70, 0
        # REQUIRED: the upper R, G, B values that are considered a potential match for the
        # color variant of the object.
        color_upper: 110, 100, 50
        # OPTIONAL: the time range for when this color variant is allowed
        # NOTE: make sure that /etc/localtime is passed to the container so it has valid time
        time_range:
          # OPTIONAL: Color variant is valid if current time is > this 24H time (Default: shown below).
          after: "00:00"
          # OPTIONAL: Color variant is valid if current time is < this 24H time (Default: shown below).
          before: "24:00"
    # OPTIONAL: the min number of pixels with R, G, B values within the bounds to be
    # considered a true positive. This is recommended to be set as a super small amount
    # could be a false positive. (Default: shown below)
    min_area: 1000
    # OPTIONAL: the max number of pixels with R, G, B values within the bounds to be
    # considered a true positive (Default: shown below).
    max_area: 100000

# REQUIRED: Define list of cameras that will be used for color detection.
cameras:
  # REQUIRED: Name of the camera
  GR:
    # OPTIONAL: Frequency in seconds to run detection on the camera.
    # a value of 0 disables auto detection (Default: shown below).
    auto_detect: 0
    # OPTIONAL: Configure the url and retention of snapshots. (Default: Shown Below)
    snapshot_config:
        # OPTIONAL: but highly recommended, setting the default url for a snapshot to be
        # processed by this camera. This is required for auto detection (Default: none).
        url: "http://ip.ad.dr.ess/jpg"
        # OPTIONAL: Whether or not to draw bounding boxes for confirmed objects in the snapshots (Default: shown below).
        bounding_box: true
        # OPTIONAL: Whether or not to save a clean png of the snapshot along with the annotated jpg (Default: shown below).
        clean_snapshot: true
        # OPTIONAL: Whether or not to save the snapshots of confirmed detections (Default: shown below).
        save_detections: true
        # OPTIONAL: Whether or not to save the snapshots of missed detections (Default: shown below).
        save_misses: false
        # OPTIONAL: Variations of snapshots to keep. Options are all, mask, crop (Default: shown below).
        mode: "all"
        # OPTIONAL: Number of days of snapshots to keep (Default: shown below).
        retain_days: 7
    # REQUIRED: Zones are cropped areas where the object can be expected to be.
    # This makes searching / matches for efficient and more predictable than searching
    # the entire image.
    zones:
      # REQUIRED: Name of the zone.
      street:
        # REQUIRED: Coordinates to crop the zone by.
        # NOTE: The order of the coordinates are: x, y, x+w, y+h starting in the top left corner as 0, 0.
        coordinates: 225, 540, 350, 620
        # REQUIRED: List of objects that may be in this zone. These correspond to
        # the objects list defined previously and are matched by name.
        objects:
          - trash_can

Relevant log output
[2022-06-08 14:13:47,455]: INFO - Starting SwatchApp
[2022-06-08 14:13:47,464]: INFO - Importing SwatchApp Config
[2022-06-08 14:13:47,464]: INFO - Verified SwatchApp Config
Starting migrations
[2022-06-08 14:13:47,480]: INFO - Starting migrations
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3113, in connect
    self._state.set_connection(self._connect())
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3453, in _connect
    conn = sqlite3.connect(self.database, timeout=self._timeout,
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3175, in execute_sql
    cursor = self.cursor(commit)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3159, in cursor
    self.connect()
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3112, in connect
    with __exception_wrapper__:
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 2950, in __exit__
    reraise(new_type, new_type(exc_value, *exc_args), traceback)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 191, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3113, in connect
    self._state.set_connection(self._connect())
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3453, in _connect
    conn = sqlite3.connect(self.database, timeout=self._timeout,
peewee.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/swatch/swatch/__main__.py", line 14, in <module>
    swatch_app = SwatchApp()
  File "/opt/swatch/swatch/app.py", line 44, in __init__
    self.__init_db__()
  File "/opt/swatch/swatch/app.py", line 74, in __init_db__
    router.run()
  File "/usr/local/lib/python3.10/site-packages/peewee_migrate/router.py", line 201, in run
    diff = self.diff
  File "/usr/local/lib/python3.10/site-packages/peewee_migrate/router.py", line 75, in diff
    done = set(self.done)
  File "/usr/local/lib/python3.10/site-packages/peewee_migrate/router.py", line 70, in done
    return [mm.name for mm in self.model.select().order_by(self.model.id)]
  File "/usr/local/lib/python3.10/functools.py", line 981, in __get__
    val = self.func(instance)
  File "/usr/local/lib/python3.10/site-packages/peewee_migrate/router.py", line 59, in model
    MigrateHistory.create_table(True)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 6758, in create_table
    cls._schema.create_all(safe, **options)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 5861, in create_all
    self.create_table(safe, **table_options)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 5716, in create_table
    self.database.execute(self._create_table(safe=safe, **options))
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3190, in execute
    return self.execute_sql(sql, params, commit=commit)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3174, in execute_sql
    with __exception_wrapper__:
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 2950, in __exit__
    reraise(new_type, new_type(exc_value, *exc_args), traceback)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 191, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3175, in execute_sql
    cursor = self.cursor(commit)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3159, in cursor
    self.connect()
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3112, in connect
    with __exception_wrapper__:
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 2950, in __exit__
    reraise(new_type, new_type(exc_value, *exc_args), traceback)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 191, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3113, in connect
    self._state.set_connection(self._connect())
  File "/usr/local/lib/python3.10/site-packages/peewee.py", line 3453, in _connect
    conn = sqlite3.connect(self.database, timeout=self._timeout,
peewee.OperationalError: unable to open database file

Any other information that may be helpful
No response

The 502 is occurring because swatch is not started. I need to add a warning, but the config there is for reference and not to be copied as it is not compatible with all installs and doesn't have valid values anyway.
A good starting point should be:
objects:
  trash_can:
    color_variants:
      default:
        color_lower: 70, 70, 0
        color_upper: 110, 100, 50

cameras:
  GR:
    zones:
      street:
        coordinates: 225, 540, 350, 620
        objects:
          - trash_can

it won't fit your setup but swatch should start so you can get started

I updated the config file to the above and I'm seeing the same error in the logs. I rebuilt the HACS add-on, as well as re-starting it. Same error in the logs

I didn't have a /media folder, but I created one and then created a swatch folder inside of it. Still no luck. Rebuilt the add on and restarted it - same error

What kind of install are you running? The /media folder should come for free with the HomeAssistant OS install
(to be clear this is outside of /config so it is NOT /config/media/swatch/).

Ah thanks for the clarification - just located the media folder and there is already a swatch folder created...
Inside of that folder is a swatch.db folder with nothing in it.

Oh, I see, that's me being dumb then. Please delete the swatch.db folder and it should work

Deleted the swatch.db folder and it recreates itself every time I restart or rebuild Swatch in my add-ons section. Still getting the same errors

That moved the needle! The logs are much cleaner now, but I'm still not getting anything when I click into the WebUI. I've reinstalled, updated to the newest version you just released, as well as restarted my HASS instance.
Logs
[2022-06-08 17:17:00,829]: INFO - Starting SwatchApp [2022-06-08 17:17:00,838]: INFO - Importing SwatchApp Config [2022-06-08 17:17:00,838]: INFO - Verified SwatchApp Config Starting migrations [2022-06-08 17:17:00,842]: INFO - Starting migrations There is nothing to migrate [2022-06-08 17:17:00,849]: INFO - There is nothing to migrate [2022-06-08 17:17:00,851]: INFO - Starting snapshot cleanup [2022-06-08 17:17:00,852]: INFO - Starting Detection Cleanup

What address comes up when trying to view? What happens if you view http://{ha ip address}:4500

It's trying to do the ingress so I probably should disable that as I don't care to support that until I understand it more.
And the url in the config would be a snapshot url (some cameras natively support it some don't)
I might be able to get snapshot from rtsp stream but currently it needs to give a jpg

Going to go ahead and close this. If you have any issues with setting up config feel free to create a new issue


Update credentials #27

So I used my username and api key as suggested in #27, hope this helps

Hope this works, please try @2m