Improve disease/target evidence ingestion from uniprot

Uniprot provides a curated set of naturally occurring, protein coding variation that are involved in diseases. This dataset has already been captured by the uniprot_variants dataset produced by the parser developed by the Uniprot team. However, recent development in the platform and the upcoming integration of the genetics product made it necessary to reconsider the evidence generation process and the data model.
Consideration

Evidence generation is not integrated into our pipelines, the codebase is written in java, which makes it harder to implement new features and maintain the code.
Disease label to EFO mapping is not efficient: we are losing a large number of evidence (eg. on the BRAF page there are 38 disease associated variants reported for 6 diseases, however we only get 7 evidence for two diseases)
Some of the mappings provided by the java pipeline is inaccurate.
The current pipeline does not map rs identifiers to the conventional variant identifiers (especially considering multiallelic variations)
The current pipeline does not consider variant/disease annotation that would inform us about target modulation (eg. elevated kinase activity; efficiently induces cell transformation is not parsed all evidence is annotated with the constant: "targetModulation":"up_or_down" )
The current pipeline applies a very crude way to assess disease to target confidence (essentially does a string match for eg. this entry may act as a disease modifier would imply a weaker confidence)

TODOs

[x] Develop a sparql query to retrieve disease/variant/target triples from uniprot API.
[x] Parse valuable data from response.
[x] Develop a robust, incremental way to map rsids to variant identifiers (considering matching substituted amino acids!)
[x] Integrate with the existing disease mapping pipeline (Ontoma based logic)
[ ] Parse and classify target modulation data.
[ ] Parse and classify target/disease confidence.
[ ] Change disease/target schema if required.
[ ] Integrate parser into pipeline.

SPARQL data retrieval

The developed query fetches 41,475 entries in ~20sec from the Uniprot API.
The data contains evidence for 3934 unique proteins and 5248 unique disease labels establised by 26,368 unique rs identifier.
The number of unmapped associations: 5440. This is the number of unique disease/target pairs in the dataset. This is the theoretical maximum we can get from this dataset assuming 1 to 1 disease to EFO mapping.
The SPARQL API can also provide the reference and alternative amino acid for each rsid/disease/protein pair. This is required for variant mapping.

RsID to variant ID mapping

To get variant data, a pipeline was developed to extract VEP annotation for each overlapping transcript.
The VEP API endpoint allows extracting the canonical vcf string (vcf_string=1), which is required to normalise indel variants.
Even the POST endpoint won't allow more than 200 rsids at the same time, so the pipeline needs to loop through the variants and pool the data together at the end.
Because requesting VEP data for 200 variants takes ~3minutes, which means the mapping the full dataset takes around 7-8 hours, I decided to develop a caching, where only missing variants will be mapped. Upon completing the mapping the new variants are added to the cache. The cache needs to be refreshed from time to time.
When mapping is done the evidence data is joined to the mapping by the rsid. Then we need to select the right variant identifier.
To find the right id, we follow this logic: identifier for a biallelic variant is automatically accepted. A variant id of a multiallelic variant is accepted if the substituted amino acid is matching (it means one rsid might have multiple variant ids if they code the same amino acid). If there's no matching amino acid for a variant, all options are accepted. This ensures weird substitutions/indes/stop gains are not lost in mapping.

Disease mapping
The usual disease mapping pipeline is applied as we use for other parsers:
from common.ontology import add_efo_mapping

mapped_df = add_efo_mapping(unmapped_df, spark, '.')

Comparison with existing evidence set
These comparisons expects valid EFO mappings:

New evidence data: evidence: 30,798 associations: 4,428
Old evidence data: evidence: 41,922 associations: 4,380
New evidence data -> mapped disease/target pairs: 4,057
Old evidence data -> mapped disease/target pairs: 3,508

Conclusions:

From the original dataset, where we have 5,440 disease/target pairs, we could map 4k however in the previous pipeline this number was only 3.5k.
The old pipeline heavily explodes data.

Let's see P05067 vs OMIM:605714. There are four rsids as evidence for this association on the uniprot page. So assuming perfect mapping, it would mean one association and 4 evidence. This is exactly what we see in the new pipeline:
+------------------+----------------------------------------+-------------------+-----------+-------------------------+----------------------------------------+
|targetFromSourceId|diseaseFromSource                       |diseaseFromSourceId|variantRsId|diseaseFromSourceMappedId|name                                    |
+------------------+----------------------------------------+-------------------+-----------+-------------------------+----------------------------------------+
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |rs63750579 |MONDO_0011583            |cerebral amyloid angiopathy, APP-related|
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |rs63750921 |MONDO_0011583            |cerebral amyloid angiopathy, APP-related|
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |rs63749810 |MONDO_0011583            |cerebral amyloid angiopathy, APP-related|
+------------------+----------------------------------------+-------------------+-----------+-------------------------+----------------------------------------+

However there are 32 evidence in the old pipeline because there's an 8x explosion as that pipeline maps the disease to 8 EFOs:
+------------------+----------------------------------------+-------------------+-------------------------+--------------------------------------------------------------+
|targetFromSourceId|diseaseFromSource                       |diseaseFromSourceId|diseaseFromSourceMappedId|name                                                          |
+------------------+----------------------------------------+-------------------+-------------------------+--------------------------------------------------------------+
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_324713          |Hereditary cerebral hemorrhage with amyloidosis, Italian type |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_100006          |Hereditary cerebral hemorrhage with amyloidosis, Dutch type   |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_324718          |Hereditary cerebral hemorrhage with amyloidosis, Flemish type |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |MONDO_0011583            |cerebral amyloid angiopathy, APP-related                      |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_324708          |Hereditary cerebral hemorrhage with amyloidosis, Iowa type    |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_324703          |Hereditary cerebral hemorrhage with amyloidosis, Piedmont type|
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_324723          |Hereditary cerebral hemorrhage with amyloidosis, Arctic type  |
|P05067            |Cerebral amyloid angiopathy, APP-related|OMIM:605714        |Orphanet_85458           |Hereditary cerebral hemorrhage with amyloidosis               |
+------------------+----------------------------------------+-------------------+-------------------------+--------------------------------------------------------------+

@DSuveges , can we close this issue as completed?

No, we are ~75% of the way. Unfortunately in the upcoming weeks, I surely won't have the capacity to push it completion, but aiming for the December release.


about IHP and Redwood JS stickers

Do IHP an Redwood send stickers to our adress for free actually??
Like are the delivery and rest charges also zero??
I want to confirm whether the entire thing is fully free or not
Pls answer.

Redwood JS stickers are 100% free. I've actually just received some in the mail a few days ago. (Expect them to be delivered 2-4 weeks after request).
I am unsure about IHP, but I think so. I've filled out a request for IHP stickers; they didn't ask for any payment info... but I still didn't get any stickers in the mail yet.

ok...So even if some payment is needed then I can cancel taking...Right

/\ No, no payment info is asked for.
By mail, I mean USPS/UPS; aka home/business/street address delivery.

Can the stickers be sent to Asia?


ENH: Finalize migration of reporting interfaces

Resolves: #54.

Codecov Report
Patch coverage: 54.05% and project coverage change: +6.15 :tada:

Comparison is base (dd4fd48) 56.09% compared to head (7ea0b3a) 62.25%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
+ Coverage   56.09%   62.25%   +6.15%
==========================================
  Files          19       23       +4
  Lines        1829     2273     +444
  Branches      369      449      +80
==========================================
+ Hits         1026     1415     +389
- Misses        728      766      +38
- Partials       75       92      +17

Flag
Coverage Δ

unittests
62.25% <54.05%> (+6.37%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

nireports/tools/timeseries.py
88.09% <ø> (ø)

nireports/interfaces/reporting/segmentation.py
47.05% <47.05%> (ø)

nireports/interfaces/reporting/registration.py
49.65% <49.65%> (ø)

nireports/interfaces/reporting/base.py
50.76% <50.76%> (ø)

nireports/interfaces/reporting/masks.py
65.90% <65.90%> (ø)

... and 3 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@effigies @mgxd @esavary @celprov - if I forget to bring this up in the next TechMon, could you remind me?


TEST-#4821: monkeypatch cache_readonly to avoid errors in doc_checker.py

Signed-off-by: Myachev<EMAIL_ADDRESS>
What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[x] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[x] signed commit with git commit -s
[x] Resolves #4821
[ ] tests added and passing
[x] module layout described at docs/development/architecture.rst is up-to-date

The change actually helps as we can see in https://github.com/modin-project/modin/pull/5354.

@mvashishtha I think we can merge it right now

thanks @mvashishtha !

This is actually doing things in a wrong way 😞
As it would break help(Foo.prop) when not testing a doc but running interactively. We should have fixed the _inherit_docstrings() decorator to properly decorate things instead of hiding stuff under the rug.

This is actually doing things in a wrong way 😞
As it would break help(Foo.prop) when not testing a doc but running interactively. We should have fixed the _inherit_docstrings() decorator to properly decorate things instead of hiding stuff under the rug.

So this only works erroneously with _inherit_docstrings?


MenuFlyout and CommandBarFlyout have different opening animation

Describe the bug
A menu flyout opens by sliding in, whereas a command bar flyout opens by fading in.
Steps to reproduce the bug

Create MenuFlyout and CommandBarFlyout
Open them.
Observe different opening animation

Expected behavior
The animation should be the same?
Also, it seems the command bar flyout isn't aligned to the mouse cursor, whereas menu flyout is aligning perfectly.
It' be great if WinUI's figma can specify these kinds of animation as well.
Screenshots
https://user-images.githubusercontent.com/16918354/159403244-66aa1b5f-a7aa-45ba-9ab2-696664fd576b.mp4
NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type

[X] UWP
[ ] Win32

Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
No response

This hasn't been resolved in WinUI 3.

@DmitriyKomin can you please explain the rationale for this? Depending on the item that's right clicked, we'll sometimes display a MenuFlyout and other times a CommandBarFlyout.
Having different animations appears to our users as a bug so it'll help if this issue is resolved or if you provide an explanation we can pass on to users.

Plz change this. I always feel the fade-in animation is very awkward

@DmitriyKomin

As the names of these flyout types may imply, their origins are in supporting different control contexts with different expected usage patterns. Each animation was chosen for that specific context. Using them directly side by side wasn't part of that design. While I can see the experience being a bit jarring in the way shown here, changing the animations would have other repercussions and likely require added customization that just isn't a priority at this moment relative to the severity.

Animations can significantly impact the user experience, so this response is disappointing to me. I understand that the controls are independent, but there should still be consistency between them. While I agree that there are higher priority items, it would be beneficial for the community to keep this issue open for tracking.

I think this issue should be reopened and reconsidered, even if just to provide a space for discussion.
The CommandBarFlyout animation feels sluggish. It takes too long to open, and often suffers from stuttering or disappearing altogether. Plus it adds even more unnecessary inconsistencies into the Windows UI ecosystem...
My two cents: I'd consider replacing the custom fade animation with the Flyout animation. Why?
The MenuFlyout animation wouldn't fit as it would be too fast (and CommandBarFlyouts are usually bigger than MenuFlyouts)
Meanwhile, normal Flyouts have a smoother animation that is more appropriate and optimized for larger surfaces.


BZ-1274515 - [Drools][Quartz] The number of retries of a failed task …

…are fixed
as you can see there is no test as it very (and I mean very) difficult to provide one that you can read about in the BZ comments. Though it was verified both by QE/GSS and the customer that it solves the issue

If this were my BZ, I would add a test that makes sure that jobq.setRequestsRecovery(true) is called: while this may seem pointless, it does ensure that the build will fail if a developer removes this code in the future.
You could test this by mocking the scheduler field and then  gettingjobq argument (via Mockito: ArgumentCaptor + verify) from it.
The test then serves as a sort of documentation for other developers later. Another option is to add documentation to the code itself, although this would make the code less readable IMHO.
However, that's just how I would do things in cases like this, and definitely not per se the "right" thing to do. :)
+1 for whatever you want to do (leave it like this or add a test).

thanks @mrietveld will look into some tests and update pr


Finalize Docs

[x] Get some time on writing the docs :)
[x] Add Info for ES6 Environments
[ ] Add Info on how to Contribute
[ ] Add Code snippets
[ ] Add more usage examples; ideally of every rule and real world examples

Two questions, maybe two requirements:)))

Is there a convenient way to  disable button "Submit" when there is a invalid input. And after all invalid inputs are correct,  enable the "Submit" button. I know there is callback function, but if there are too many input components , the error status is not easy to manage.
Is there a way use Submit action to  run all validater rules. You project is really useful, maybe it's time to write more document and example.

I am just a server side programmer, i am not familiar with JS.  I think current version is really simple, easy to understand.  Hope you keep your project simple and "stupid" :))))

Well, I am as well. :)
That's the Challenge keeping it simple!
richardproxy<EMAIL_ADDRESS>schrieb am Mo., 7. Mai 2018, 16:38:

I am just a server side programmer, i am not familiar with JS. I think
current version is really simple, easy to understand. Hope you keep your
project simple and "stupid" :))))
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PascaleBeier/bootstrap-validate/issues/15#issuecomment-387085876,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACnBhnIpw6EcsHEJ4H4aw4sPaA7NDHpvks5twFxygaJpZM4OlUTd
.


Simplify router options using macros

instead of:
vec![
RouterOption::new::<AModel, _>(|route| a_component::Props::try_from(route).ok()),
...
]

Something like:
vec![
route!(AModel, |route| a_component::Props::try_from(route).ok() ),
...
]

Or more aspirational:
routes![
AModel => |route| a_component::Props::try_from(route).ok(),
...
]

Or as an end goal once flexible RouteOption backends are implemented:
routes![
AModel => {"/a/*", case_insensitive},
...
]

I am holding off on implementing a macro like this for now, because future support for nested components, with inspection of specialized children is a future possibility for Yew, removing the need for the simplifications such a macro could make.


Add Cloudflare Pages/Workers to the Free Hosting section

I'm adding them as 2 separate links since they're technically 2 different kinds of hosting services. Workers is for hosting serverless functions and Pages is for hosting websites (but it uses Workers internally).

Cloudflare Pages
Cloudflare Workers

I don't want to create 2 separate pull requests since it's kind of overkill.

Please resolve merge conflicts @Sylphritz


Lecture 04_error typo

For the floating point arithmetic Ax = b example, the solver I used generated x = [1; 16], and not x = [-0.5; 16].

The matrix was miscopied I discovered (not sure how that happened).  The correct question is now there.


bug: PersistedS3ObjectStore.open() got an unexpected keyword argument 'mode' in v3

Hi, thank you for the amazing project! Unfortunately I encountered an issue after upgrading to the latest version.
In Node JS, after upgrading to version >= 3.0.0
const s3 = new S3Client({
  // region: 'us-west-1',
  forcePathStyle: true,
  // endpoint: 'http://localhost:4566',
})

s3.send(
  new PutObjectCommand({
    Bucket: 'mybucket',
    Key: 'image.png',
    Body: fs.readFileSync('image.png'),
  })
)

Leads to throwing an error
/pathToProject/node_modules/@smithy/smithy-client/dist-cjs/index.js:838
  const response = new exceptionCtor({
                   ^
S3ServiceException [InternalError]: exception while calling s3.PutObject: PersistedS3ObjectStore.open() got an unexpected keyword argument 'mode'
    at throwDefaultError (/pathToProject/node_modules/@smithy/smithy-client/dist-cjs/index.js:838:20)
    at /pathToProject/node_modules/@smithy/smithy-client/dist-cjs/index.js:847:5
    at de_CommandError (/pathToProject/node_modules/@aws-sdk/client-s3/dist-cjs/index.js:4756:14)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /pathToProject/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20
    at async /pathToProject/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js:225:18
    at async /pathToProject/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
    at async /pathToProject/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:173:18
    at async /pathToProject/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:97:20
    at async /pathToProject/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:120:14 {
  '$fault': 'client',
  '$metadata': {
    httpStatusCode: 500,
    requestId: '72d0bfbc-84b6-43c8-8d95-1108cf601475',
    extendedRequestId: 's9lzHYrFp76ZVxRcpX9+5cjAnEH2ROuNkd2BHfIa6UkFVdtjf5mKR3/eTPFvsiP/XV/VLi31234=',
    cfId: undefined,
    attempts: 3,
    totalRetryDelay: 157
  },
  Code: 'InternalError',
  RequestId: '72d0bfbc-84b6-43c8-8d95-1108cf601475'
}

I am not sure, why is this happening.
I suppose the code is not working somewhere in the class https://github.com/GREsau/localstack-persist/blob/main/src/localstack_persist/s3/storage.py#L35
What is the best way to debug/fix this?

Thanks for the report, this should now be fixed in localstack-persist:latest.
There was a breaking change to the S3 storage code in localstack, so I had to make a corresponding change here to restore compatibility.
This should have been caught by the automated tests, but unfortunately that didn't happen because the tests were mistakenly running against locakstack:3 even when the actual image being pushed to Docker Hubwas based on localstack:latest. That's also now fixed, which should prevent bugs like this from being pushed to Docker Hub again 🤞


Release Management

Hi, not sure if this issue belongs here.
Since now we can download all the releases, I wonder whether there's the possibility to avoid downloading all the assets every time. I like that each release is self-contained, but also, I do not like that I need to download 6GB each time, most of which is likely the same content I have from previous versions.
I do not have a solution yet for this, maybe the release can be divided into "all", "engine" and "data" something?

Hello, thanks for the suggestion. We discussed the feature request but decided to not implement it.


⚠ Bofrost.fr has degraded performance

In 8928119, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1475 ms

Resolved: Bofrost.fr performance has improved in c6cd0ba.


Moves coil code into new library

WHAT
Follow up for #1868, creates a new library that will host coil-specific implementation of Paintable and other image-related implementations in the future.
WHY
To remove the hard dependency on coil for use-cases where simpler image loading is possible (e.g. apps only using local resources).
HOW
By moving CoilPaintable and rememberArtworkColor into a new compose-material-coil library.
Checklist :clipboard:

[X] Add explicit visibility modifier and explicit return types for public declarations
[X] Run spotless check
[X] Run tests
[X] Update metalava's signature text files

I went with images/base and images/coilinstead of compose-material and compose-material-coil in the latest revision, PTAL.


Add CodeQL Analysis workflow

Adds a GitHub Actions workflow that runs CodeQL on every push, and on a daily schedule.
Code scanning looks for vulnerabilities, such as XSS, SQL injection, etc., in your code. If it finds any new vulnerabilities it surfaces them in the PR as check annotations, and blocks the build until they’re fixed or marked as false positives. If it finds any on the repo’s default branch it displays them in the security tab.
For now you also need to be feature flagged to see results in the security tab (as well as having write permission on this repo) - if you drop an email to<EMAIL_ADDRESS>I can get anyone you need added.
Finally, this is an early access program, so please don't share screenshots/tweet about this before May 6th when we're unveiling it at GitHub Satellite.
Cc: @greysteil

No thank you.

Finally, this is an early access program, so please don't share screenshots/tweet about this before May 6th when we're unveiling it at GitHub Satellite.

I am pretty sure creating a PR on a public repo with no affiliation to GitHub already exposed this.

Sorry about that! This was intended for a  fork of this repository 🤦😬


Add tests

@willothy let's continue the discussion here, continued from #178

Oh I'd love that 😍 It's been on my TODO list but I haven't gotten around to it yet. (The possibility of testing was one of the reasons behind me splitting up the plugin into separate progress and notifications subsystems, and also maintaining a notifications view/abstract state separate from the window).

Cool, sounds good! Do you have a preference for plenary vs. mini for test framework?

I'd only looked at plenary before, so I was planning on using that. But if there's a good reason to use mini, I'm open to that too; I don't have a strong preference for either.

Plenary works then, I don't have a preference either.


Log messages are being duplicated

All of the logger messages seem to be shown twice in my terminal, with slightly different formatting.
240828-20:37:30,401 nipype.workflow INFO:
	 fMRIPost-AROMA workflow graph with 55 nodes built successfully.
2024-08-28 20:37:30,401 [    INFO] fMRIPost-AROMA workflow graph with 55 nodes built successfully.

Must be two handlers being registered.

I looked through the code and didn't see where that was happening, but I'll do a deeper dive in the next couple of days.

If you're importing Fmriprep, it could be done at import time. We haven't made much effort for it to be usable as a library.

I'm currently testing fMRIPost-AROMA out on ds001419 and it looks like one is going to stdout (expected) and the other is going to stderr (unexpected).


Enter Edit Mode on mouse click

Mouse click on a search parameter to edit the value doesn't seem to be working for me in Firefox or Chrome.  It does set editMode to "true" but also seems to blur or lose focus right away.

Hi,
please try to remove the ng-click="!focus ? setSearchFocus = true : null" from the first line of the template as temp. workaround.

Awesome thanks, that worked.  Didn't think to look at the top line for some reason.

Fixed in Version 1.1.0


Editor endpoints write performance analysis

Closes #5085

retest this please

@rafatower CR please (is just pending manual checks to confirm all is fine)

Wait a bit for the CR @rafatower , we've found two rogue StatsD calls plus one specific backend place were we want to also already gather stats so I'll add them

ok, just let me know :)

@rafatower Go ahead!
I'm also going to take a look because some methods are a bit prone to errors by needing to return variables from the timing calls

Ok in general with the changes, testing at discretion.

retest this please

retest this please


Correct post path in blog tutorial. Closes #644

While following the current tutorial, if a user goes to the admin screen and clicks on a slug, the website gives a 404 error.
This is because the slug redirects the user to /admin/<slug> path instead of /posts/<slug> path.
This change fixes the above mentioned issue

My PR https://github.com/remix-run/remix/pull/641 addresses the same fix but also adapts the sources in the examples folder.

My PR https://github.com/remix-run/remix/pull/641 addresses the same fix but also adapts the sources in the examples folder.

I just saw that. I'll go ahead and close this PR. Hope yours gets merged soon!


DiffUtil usage

DiffUtil can be added for dispatching only necessary updates as an enhancement.

That would be a good enhancement! If you would like to contribute to the project, please feel free to create a PR. Otherwise, I will try my best to implement DiffUtill soon.


Update feature status for MySQL, S3 and Minio

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/approve


x/pkgsite: example code should be displayed as package main when rendering

What is the URL of the page with the issue?
https://pkg.go.dev/github.com/reddit/baseplate.go@v0.0.0-20200327042237-1365288992e4/thriftclient?tab=doc#example-package
What did you expect to see?
On godoc.org, the Example* functions will be renamed to main when rendering, for example: https://godoc.org/github.com/reddit/baseplate.go/thriftclient#example-package
What did you see instead?
On pkg.go.dev we kept the original Example function name in the code.

/cc @julieqiu

Thanks for reporting the bug, @fishy! We'll look into it.
/cc @dmitshur

This issue was fixed in https://golang.org/cl/240685, and will be available soon on pkg.go.dev. It is currently behind the executable-examples experiment flag.
If you would like to test it out locally, you can run go run ./devtools/cmd/experiment create executable-examples.
The output should look like this:


Typed holes

@anchoryte @alexgrejuc so I added in a missing import to get the test cases in-line, they all pass except for one:
...
assertEqual "Check Updated Board 2"
  "Right (\"Symbol\",Board)"
  (show (parseAll xtype "" "(Symbol,Board)"))

with an error of:
expected: "Right (\"Symbol\",Board)"
 but got: "Right (T|\"Symbol\",Board(no extension))"

So nothing broke syntactically. If it looks like this is an okay internal adjustment so holes can work (and has been accounted for internally) we can probably just update the test and move this along.
I would ask that we add specific examples for usage of typed holes in the tests, maybe 2 or 3 of them, or however many you think are adequate to cover it testing-wise.


webpage: list changes in the most recent release

This bug report was migrated from our old Bugzilla tracker.
Reported in version: unspecified
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2009-11-16 03:03:07 +0000,  wrote:

The webpage at [http://www.libsdl.org/projects/SDL_ttf/] does not list the changes in the most recent release. The webpage should use headings
like  and  so that it is possible to link to
[http://www.libsdl.org/projects/SDL_ttf/#changes] and
[http://www.libsdl.org/projects/SDL_ttf/# 2.0.10].
And of course the page should be syntactically correct:
http://validator.w3.org/

On 2012-01-02 22:09:06 +0000, Sam Lantinga wrote:

Good idea, thanks!

This is implemented.


Ukrainian translation updated

Coverage remained the same at 56.803% when pulling c0bc9ce821fb51169e70bd5ee0214de165c22a82 on probil:feature/update-uk-l18n into 48904123a4969ef29e323bca432d753cc3f6e0f1 on codecombat:master.

Wow, @CatSkald. Thanks for your review. I'm surprised :+1:

Coverage decreased (-0.1%) to 56.662% when pulling 6df2e28c096f6e30524fd83d3f028c14054fc9b8 on probil:feature/update-uk-l18n into 48904123a4969ef29e323bca432d753cc3f6e0f1 on codecombat:master.

Coverage decreased (-0.1%) to 56.675% when pulling 6df2e28c096f6e30524fd83d3f028c14054fc9b8 on probil:feature/update-uk-l18n into 48904123a4969ef29e323bca432d753cc3f6e0f1 on codecombat:master.

I think it's ready to merge

Coverage increased (+0.01%) to 56.816% when pulling f26de9a522874c8c6431725d9712aef07b12dd41 on probil:feature/update-uk-l18n into 48904123a4969ef29e323bca432d753cc3f6e0f1 on codecombat:master.

Agree, it can be merged 👍

Awesome work, @probil and @CatSkald! Thank you 👍


Use ReactDOM.render instead of Render (README)

Dang, I forgot this project is using semantic-release. I wonder what happens now :fearful:

@gaearon pretty sure all it takes  is a rebase(reword commit) and then force push and it will build / publish the new version

I just tried force pushing but ! [remote rejected] master -> master (protected branch hook declined)

All right, I removed protection, force-pushed, and added protection again. Seems to work.

@gaearon Sorry for the late reply, but I guess what you did is the only solution in this circumstance. In an ideal world, there'd be a hook to check if commit message conventions were adhered to.
/cc @boennemann


Appstudio update test-component-pac-xpts

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-xpts-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
1 minute
init

✅ Succeeded
22 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
44 seconds
deprecated-base-image-check

✅ Succeeded
40 seconds
sanity-inspect-image

✅ Succeeded
4 minutes
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
27 seconds
sbom-json-check

✅ Succeeded
22 seconds
sanity-optional-label-check

✅ Succeeded
21 seconds
sanity-label-check

✅ Succeeded
11 seconds
show-summary

Pipelines as Code CI/test-component-pac-xpts-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
17 seconds
init

✅ Succeeded
18 seconds
clone-repository

✅ Succeeded
56 seconds
build-container

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
22 seconds
clair-scan

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
18 seconds
sbom-json-check

✅ Succeeded
21 seconds
sanity-optional-label-check

✅ Succeeded
21 seconds
sanity-label-check

✅ Succeeded
32 seconds
show-summary


Constant disconnects, and publish example

Describe the bug
I recently switched to this library from umqtt.simple. The client does not subscribe to anything, only publishes data every 30 seconds. On the previous library, it would work consistently for 8-10 hours, then have some kind of crash (I assume a network error). After switching to this library, it publishes data 2-3 times and then says there is a connection error and reconnects. It does this constantly.
The error it shows is (MQTTException(7,), 9)
Relevant code:
from umqtt.robust2 import MQTTClient

def mqtt_connect():
    mqtt_client = MQTTClient(mqtt_client_id, broker, 1883, mqtt_user, mqtt_pass, keepalive=60)
    mqtt_client.set_last_will(last_will_topic, 'Disconnected', retain=True)
    mqtt_client.connect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)
    return mqtt_client

def mqtt_reconnect():
    print('Could not connect to MQTT broker, reconnecting: ' + str(mqtt_client.conn_issue))
    mqtt_client.reconnect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)

try:
    mqtt_client = mqtt_connect()
    print('MQTT Connected')
except OSError as e:
    print('Error connecting to MQTT, retrying...')
    mqtt_reconnect()

while True:
    if mqtt_client.is_conn_issue():
            while mqtt_client.is_conn_issue():
                mqtt_reconnect()
    else:
        mqtt_client.publish(topic, data, qos=1)
        mqtt_client.check_msg()
        mqtt_client.send_queue()
        sleep(30)

I'd also request an example for a publishing (not subscribing) client. There doesn't seem to be much documentation on that.
Details (please complete the following information):

Device board: RPi Pico W
Micropython version: latest nightly build
Library version 2.1.1

In mqtt_reconnect function, the variable mqtt_client has the value null. Change to:
def mqtt_reconnect(mqtt_client):
    ....

Also add resubscribe, see below:
        while c.is_conn_issue():
            c.reconnect()
        else:
            c.resubscribe()

I also uploaded a small code fix for this library. But rather, the problem is in your code. Let us know if it works.

Hello!
I do not believe the mqtt_client variable is null since it is defined by mqtt_client = mqtt_connect(). At least the mqtt_reconnect() function appears to work correctly and not throw any errors, and the client reconnects.
For the resubscribe() function, is that necessary if the client is not subscribed to any topics, but only publishing messages?

I looked into it. The problem is keepalive. You are not keeping the connection with any packages. Therefore, the connection is closed. Below is an example of how to do it. This is one of many solutions.
from umqtt.robust2 import MQTTClient

def mqtt_connect():
    mqtt_client = MQTTClient(mqtt_client_id, broker, 1883, mqtt_user, mqtt_pass, keepalive=60)
    mqtt_client.set_last_will(last_will_topic, 'Disconnected', retain=True)
    mqtt_client.connect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)
    return mqtt_client

def mqtt_reconnect():
    print('Could not connect to MQTT broker, reconnecting: ' + str(mqtt_client.conn_issue))
    mqtt_client.reconnect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)

try:
    mqtt_client = mqtt_connect()
    print('MQTT Connected')
except OSError as e:
    print('Error connecting to MQTT, retrying...')
    mqtt_reconnect()

while True:
    if mqtt_client.is_conn_issue():
            while mqtt_client.is_conn_issue():
                mqtt_reconnect()
    else:
        mqtt_client.publish(topic, data, qos=1)
        mqtt_client.check_msg()
        mqtt_client.send_queue()
        # While waiting for the next action, you send a "ping" to keep the connection.
        count = 0
        while count < 30:
            count += 1
            sleep(1)
            if count % 5: # For example, every 5 seconds
                mqtt_client.ping()

I'm just looking, and I see that the errors continue to appear. So this is not the solution I wrote above.

This code works
from umqtt.robust2 import MQTTClient

def mqtt_connect():
    mqtt_client = MQTTClient(mqtt_client_id, broker, 1883, mqtt_user, mqtt_pass, keepalive=60)
    mqtt_client.set_last_will(last_will_topic, 'Disconnected', retain=True)
    mqtt_client.connect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)
    return mqtt_client

def mqtt_reconnect():
    print('Could not connect to MQTT broker, reconnecting: ' + str(mqtt_client.conn_issue))
    mqtt_client.reconnect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)

try:
    mqtt_client = mqtt_connect()
    print('MQTT Connected')
except OSError as e:
    print('Error connecting to MQTT, retrying...')
    mqtt_reconnect()

while True:
    if mqtt_client.is_conn_issue():
            while mqtt_client.is_conn_issue():
                mqtt_reconnect()
    else:
        mqtt_client.publish(topic, data, qos=1)

        # While waiting for the next action, you send a "ping" to keep the connection.
        count = 0
        while count < 30:
            mqtt_client.check_msg()
            mqtt_client.send_queue()
            count += 1
            sleep(1)
            if count % 5: # For example, every 5 seconds
                mqtt_client.ping()

The MQTT specification here says: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
The Keep Alive is a time interval measured in seconds. Expressed as a 16-bit word, it is the maximum time interval that is permitted to elapse between the point at which the Client finishes transmitting one Control Packet and the point it starts sending the next. It is the responsibility of the Client to ensure that the interval between Control Packets being sent does not exceed the Keep Alive value. In the absence of sending any other Control Packets, the Client MUST send a PINGREQ Packet [MQTT-3.1.2-23].

The Client can send PINGREQ at any time, irrespective of the Keep Alive value, and use the PINGRESP to determine that the network and the Server are working.

If the Keep Alive value is non-zero and the Server does not receive a Control Packet from the Client within one and a half times the Keep Alive time period, it MUST disconnect the Network Connection to the Client as if the network had failed [MQTT-3.1.2-24].

If a Client does not receive a PINGRESP Packet within a reasonable amount of time after it has sent a PINGREQ, it SHOULD close the Network Connection to the Server.

A Keep Alive value of zero (0) has the effect of turning off the keep alive mechanism. This means that, in this case, the Server is not required to disconnect the Client on the grounds of inactivity.
Note that a Server is permitted to disconnect a Client that it determines to be inactive or non-responsive at any time, regardless of the Keep Alive value provided by that Client.

Shouldn't this mean that with a keepalive time of 60 seconds, sending a publish command every 30 seconds should be sufficient to keep the connection open, without manually sending a ping?

In theory, you're right. In practice, the sent packet has 15 seconds to reach the server, and then we have 15 seconds to receive a response from the server.
In your code, there was an additional delay associated with processing the received data. You processed the received data every 30 seconds (check_msg()), so more than 60 seconds passed between sending and processing the data.
You also need to keep in mind that the packet sent by the client may not reach the server for some reason. A packet sent to the client from the server may also not arrive in the expected time. Therefore, you need to call the send_queue method, which tries to resend packets that did not reach the server.

I moved some things around and it appears working now.
I set keepalive to 120. I call check_msg and send_queue but now sleep for 60 seconds between transmissions. And I combined a few publish commands into a single publish of JSON data. No manual pinging. With this, no more constant disconnects.
For what it's worth, using the umqtt.simple library I had no issues. Watching the broker and client, messages were sent and received almost instantly, so I'm not sure how a 30 second interval could have timed out a 60 second keepalive (since it didn't with the old library). Using the simple library I wasn't using check_msg or send_queue though.

It is interesting that I am not now repeat the problem.
I have keepalive set to 11 seconds and check_msg() every 10 seconds. And everything is working.

I had the device running for about 12 hours with no issues. Then I updated the MQTT broker software, which caused a disconnect of the clients. There was some error on the device, so I've set it to reboot when there is an exception. (If it was just an MQTT disconnect it should have reconnected). The device successfully rebooted and reconnected to the MQTT broker. But now it is having the constant disconnects and reconnects every couple minutes. No change in the code.

The solution to this problem may be this implementation (micropython-umqtt.robust2==2.2.0):
import utime
from umqtt.robust2 import MQTTClient

def mqtt_connect():
    mqtt_client = MQTTClient(mqtt_client_id, broker, 1883, mqtt_user, mqtt_pass, keepalive=60)
    mqtt_client.set_last_will(last_will_topic, 'Disconnected', retain=True)
    mqtt_client.connect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)
    return mqtt_client

def mqtt_reconnect():
    print('Could not connect to MQTT broker, reconnecting: ' + str(mqtt_client.conn_issue))
    mqtt_client.reconnect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)

try:
    mqtt_client = mqtt_connect()
    print('MQTT Connected')
except OSError as e:
    print('Error connecting to MQTT, retrying...')
    mqtt_reconnect()

while True:
    if mqtt_client.is_conn_issue():
            while mqtt_client.is_conn_issue():
                mqtt_reconnect()
    else:
        mqtt_client.publish(topic, data, qos=1)

        #########################################
        # 500ms wait for response. This depends on the delays that may occur in the network.
        for _ in range(500):
            mqtt_client.check_msg()
            mqtt_client.send_queue()
            if not mqtt_client.things_to_do():
                break
            utime.sleep_ms(1)
        #########################################

        sleep(30)

I have updated micropython to the latest 1.20 release, and umqtt.robust2 to 2.2.0, and tried your code above. I am now getting MQTT disconnects/reconnects between every 3-15 minutes.

There is another variable that can affect the triggering of restarts (indirectly).
Set "message_timeout=2*keepalive".

There is another variable that can affect the triggering of restarts (indirectly).
Set "message_timeout=2*keepalive".

I set that variable at the top of the program, but still getting period disconnects. The strange thing to me is that the umqtt.simple library did not have this disconnect issue.

umqtt.simple does not report a lack of response from the server for a certain period of time (sometimes it can just hang).
The error reported with umqtt.robust2 mentioned only occurs with me when restarting the mqtt server.
For the code below, in my case the connection is stable for hours. And most importantly messages for qos=1 always reach the server. If, in fact, the library is doing occasional connection restarts, it means that something with the connection is wrong.
keepalive = 60
message_timeout = keepalive * 2

def mqtt_connect():
    mqtt_client = MQTTClient(hexlify(machine.unique_id()).decode('ascii'), MQTT_BROKER_IP, 1883, keepalive=keepalive,
                             message_timeout=message_timeout)
    mqtt_client.DEBUG = True
    mqtt_client.set_last_will(last_will_topic, 'Disconnected', retain=True)
    mqtt_client.connect()
    mqtt_client.publish(last_will_topic, 'Connected', retain=True)
    return mqtt_client

start = time()

def from_start():
    ct = time()
    fs = ct - start
    # print(ct, start, fs, str(fs))
    return str(fs)

def mqtt_reconnect():
    print('Could not connect to MQTT broker, reconnecting: ' + str(mqtt_client.conn_issue))
    mqtt_client.reconnect()
    mqtt_client.publish(last_will_topic,
                        'Connected from start: %s from cpackiet: %s' % (from_start(), last_cp(mqtt_client)),
                        retain=True)
    # mqtt_client.check_msg()
    # mqtt_client.send_queue()

pk = 0

try:
    mqtt_client = mqtt_connect()
    print('MQTT Connected')
except OSError as e:
    print('Error connecting to MQTT, retrying...')
    mqtt_reconnect()

while True:
    if mqtt_client.is_conn_issue():
        while mqtt_client.is_conn_issue():
            mqtt_reconnect()
    else:
        pk += 1
        for i in range(20):
            mqtt_client.publish('test/pub',
                                'OK [%s%s] from start: %s from cpackiet: %s' % (
                                    pk, '.' * i, from_start(), last_cp(mqtt_client)),
                                qos=1)

        # 500ms wait for response. This depends on the delays that may occur in the network.
        for _ in range(500):
            mqtt_client.check_msg()
            mqtt_client.send_queue()
            if not mqtt_client.things_to_do():
                break
            utime.sleep_ms(1)

        sleep(keepalive - 1 / 2 * keepalive)
        print('.', end='')

If the connection restarts in your case are not occasional, then try to find the cause. I can't replicate this problem.


Predicting longer audio files

Hello, I want to ask how can I predict audio files with more than 2.5 seconds, I don't want to predict part of the audio only

You can predict longer files as well. The only difference it would make is it will increase the number of features.

thank you @MITESHPUTHRANNEU I have asked before I have noticed that librosa.load takes agrs duration and offset, I understood that it will start after offset seconds and take only duration seconds`, when I changed these I got shape error from keras model
so we don't need to change anything except the file given right? I am following your code in final_result_gender_test.ipynb

I tried to use librosa.get_duration after loading, and I am getting 2.5 seconds for all wav files I tried, even if they're longer than 2.5 seconds

Yes, you would reach the hurdle as the model is trained to take input of 2.5 seconds. Even if you supply it a longer file, it will clip it to 2.5 seconds with around 216 features I guess. If you want a model that would work on longer files then you would have to train your own model with the required time frame.

Thanks, this clear now


Reg: User account specific / Support multi-tenancy

This is a great library and wondering if you can support multi-tenancy? If we have various tenants and each tenant has users. How to enable the functionality to be scoped to the user (rather than as admin)

We would be glad to consider this. Tell me more about where you would like to see support for this. In the ActiveRecord boxcar?

@francis Thoughts on this?

Let me make sure this works and get back to you, but I think you can pass the user id in as context.

It doesn't quite work yet. I'm planning on changing the ActiveRecord boxcar to take additional context and use it in the prompt. I believe your use case would be solved with this.

Thanks a lot @francis

@francis Was this completed? Also looking for this but I can't see how to accomplish this in the docs?


Add density as a tracer in the code

Title speaks for itself - store density as a variable in the tracers.nc file.

Added via PR #44


Adjust GUI to fit precisely on my screen

Basically just reducing negative space.

Looks like this on mine (and I can't increase the window size since MAX_RATIO was changed).

I see that you also modified the .ui file. What happens on your screen if you change MAX_RATIO (width and height) back to 1 but keep the .ui file changes?

Then it's too big. The "Apply" button (which is the most important button) is hidden.

It's weird that adjusting the max ratio adjusts the actual startup GUI size. It's surely possible to set a specific startup GUI size (and we'll want to base it on monitor dimensions), so we should look for how to do that.
I think max ratio should always be 1 since the user shouldn't be prevented from maximizing the app. (Actually, on my laptop, even if I click the green maximize button with max ratio < 1, the GUI still doesn't fill the whole screen and also just made my computer crash lol).

I think max ratio should always be 1 since the user shouldn't be prevented from maximizing the app. (Actually, on my laptop, even if I click the green maximize button with max ratio < 1, the GUI still doesn't fill the whole screen and also just made my computer crash lol).

I agree with this theoretically but reducing it helps my computer

@eric-unc , could you test this latest commit?
I added a startup width/height ratio and the default values are 0.65 and 0.6 (for your computer). Also, let me know if you see our logo for the window icon at the top left and in your dock at the bottom.

Startup 0.65 and 0.6 looks like this on mine (so I suspect it may have to be increased for you...)

Sure. Remains at the top. Never been on the bottom.

Looks like this in the macOS dock (whereas macOS doesn't show window icon)

Yeah, no such blessings on Windows

This is good to merge, I'm just playing around with the application name in the dock now


Btm 61 filter lambda

Initial implementation of the filter lambda, which receives event batches and passes on individual records that are of the type we are interested in.

Recreated on a different branch, to squash commits and because this branch had a number of commits that weren't signed.


NEXT: Accordion missing a11y

Describe the feature in detail (code, mocks, or screenshots encouraged)
In #2370, I implemented the Accordion, but I forgot some crucial accordion specific role's, states and keyboard navigation.
This should still be done, there are some utils in #2754 that will come handy so let's wait for that to be merged first.
If you could assign this to me that would be appreciated.
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
Accordion spec: https://www.w3.org/WAI/ARIA/apg/patterns/accordion/

Closed by #2778


why am i not able to import the imagenet models i was trying to implement this on tensorflow plz help??

2020-12-22 17:41:21.737027: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "/content/TrojanNet/code/TrojanNet/trojannet.py", line 18, in
from Imagenet.Imagenet import ImagenetModel
ModuleNotFoundError: No module named 'Imagenet'

Please check your tf version.


fix(sec): upgrade org.springframework:spring-web to

What happened？
There are 1 security vulnerabilities found in org.springframework:spring-web 2.5.6.SEC03

CVE-2016-1000027

What did I do？
Upgrade org.springframework:spring-web from 2.5.6.SEC03 to  for vulnerability fix
What did you expect to happen？
Ideally, no insecure libs should be used.
The specification of the pull request
PR Specification from OSCS

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Update backing fields to private and setters to protected in BaseService

Overview
Follow-up to https://github.com/microsoft/MixedRealityToolkit-Unity/pull/8906, which is new for 2.6, this updates the visibility of the backing fields and setters. The enabled and initialized state should be visible outside the class, but doesn't need to be set from outside the class.

/azp run


BUG: embedded fonts in html component not working properly

Hi,
When trying to use vaadin-grid component the icons in the header for sorting don't render properly when using polymer-webpack-loader they do work with the default polymer cli tools.
Steps to reproduce:

Checkout webpack-polymer-loader
cd demo
update webpack-polymer-loader to 1.2.5 in package.json
npm i && bower install
bower install --save iron-ajax
bower install --save vaadin-grid
In demo/src/my-element.html add

<link rel="import" href="../bower_components/iron-ajax/iron-ajax.html">
<link rel="import" href="../bower_components/vaadin-grid/vaadin-grid.html">
<link rel="import" href="../bower_components/vaadin-grid/vaadin-grid-sorter.html">

at the top and
<iron-ajax auto url="https://demo.vaadin.com/demo-data/1.0/people?count=10" handle-as="json" last-response="{{users}}"></iron-ajax>

<vaadin-grid items="[[users.result]]" style="width: 300px;">
  <vaadin-grid-column>
    <template class="header">
      <vaadin-grid-sorter path="firstName">First Name</vaadin-grid-sorter>
    </template>
    <template>[[item.firstName]]</template>
  </vaadin-grid-column>
  <vaadin-grid-column>
    <template class="header">
      <vaadin-grid-sorter path="lastName">Last Name</vaadin-grid-sorter>
    </template>
    <template>[[item.lastName]]</template>
  </vaadin-grid-column>
</vaadin-grid>

below the h1 in the template

run npm start

Now the icons next to the first and lastname columns in the datagrid don't show up properly.
The font is embedded in the webcomponent here at line 29:
https://github.com/vaadin/vaadin-grid/blob/master/vaadin-grid-sorter.html
For a working example click here and select the sorting and filtering demo:
https://vaadin.com/elements/-/element/vaadin-grid#demos
Anything i can do to get the font icons to show up properly? (Without locally hacking the vaadin-grid component)

**polymer-webpack-loader result **

**working example without polymer-webpack-loader **

@constantijn Thanks for filing the issue. Let me dig into this a bit and see what I can find.

This is really a duplicate of #12. Closing in favor of that one, but thanks for the repo case!


Fix Crash from Force Unwrapping

Stretch Goal - Remove ALL force unwrapping!
We uploaded a new TestFlight build today, but it crashes when you tap here:

Already fixed in #64


agentClient.restoreAgent resolves before LRO is actually done

Calls to endpoints with long-running operations return an array with an operation object and an API response. You are supposed to be able to call operation.promise() which should resolve when the operation completes. In the scenario where the API response object's done property is set to true (in other words, the operation completed immediately), the promise resolves immediately even though the agent is not done training.
Calling the agentClient.restoreAgent, the initial request has done: true, but when I send a detectIntent request I get an error.
Environment details
OS: Linux
Node.js version: 10.16.0
npm version: 6.14.8
dialogflow version: 3.3.0
Steps to reproduce:

Perform an restoreAgent function, i.e. const [op, resp] = agentsClient.restoreAgent()
Call op.promise().
Call detectIntent on agent after promise resolves in step 2.

Current behavior:
Produces error:
Exception has occurred: Error: 9 FAILED_PRECONDITION: Intent with id 'e934b3f7-81b3-4203-96ed-6b4675ed3ec6' not found among intents in environment '' for agent with id '98ff9ea2-41f5-4af7-a262-b7e46e59bcee'. com.google.apps.framework.request.StatusException: <eye3 title='FAILED_PRECONDITION'/> generic::FAILED_PRECONDITION: Intent with id 'e934b3f7-81b3-4203-96ed-6b4675ed3ec6' not found among intents in environment '' for agent with id '98ff9ea2-41f5-4af7-a262-b7e46e59bcee'.
Expected behavior:
Return results from the agent for detectIntent request.
It seems like this only happens when the agent that is being restored has existing intents. If all intents are deleted before calling restoreAgent no error is produced but no intents has been trained on the agent therefore detectIntent returns no intent.
NOTE: I have tried using the checkRestoreAgentProgress after calling restoreAgent as well but when detectIntent is called it produces the same error.
Not sure if this is a duplicate of #450.

Sorry for my mistake, did not read the docs. Anyone else facing this issue, you need to train the agent after the restore and wait for that operation to finish. As it is mentioned in the docs that the operation returned by the restoreAgent is only for the restore process not for the training process.


BVAL-571, BVAL-572 Allowing to pass in value extractors when bootstra…

…pping a validator

Pushed an update for removing Configuration#getDefaultValueExtractors() and introducing ValueExtractorDeclarationException.

@gunnarmorling looks good. I added a couple more comments. If not talking about ValidatorContext was intentional, I'll fix the grammar on merging. I'll wait for an update of the HV PR though.

@gsmet Reworked the last commit to address your grammar remark. I think both works.

Merged, thanks!


Get value of location/resource group from "Basic" section.

In this example it shows creating a variable called "location".
How do you get the value of the location from the "Basic" section.
IE I could use [resourceGroup().location] if I didn't want to allow an override.
But when you do this: (The value just shows "[resourceGroup().location]")
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Specify the location for the logic app.  (Override Field)"
}

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

ID: bec5cd7c-2241-dc13-0f95-be2bbf300d6c
Version Independent ID: c42e2294-e257-9993-dc9c-5da0453513d9
Content: Create and deploy an Azure Resource Manager template by using the Azure portal
Content Source: articles/azure-resource-manager/resource-manager-quickstart-create-templates-use-the-portal.md
Service: azure-resource-manager
GitHub Login: @mumian
Microsoft Alias: jgao

@bbakermmc - The portal actually creates a parameter called "location".  not a variable.  When you use the template generating feature from the portal, the portal creates a template and a parameter file.  The location value you entered in the "Basic" tab is saved in the parameter file.
It looks like you want to hard-code the location so users can't change it.  To accomplish this, you need to make some changes to the generate parameter:

Delete the location parameter definition.
Add a variable called "location".
Configure the resource definition to use the variable instead of the parameter.

Here is an example:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "<IP_ADDRESS>",
"parameters": {
"accountType": {
"type": "string"
},
"kind": {
"type": "string"
},
"accessTier": {
"type": "string"
},
"supportsHttpsTrafficOnly": {
"type": "bool"
}
},
"variables": {
"storageAccountName": "[concat(uniqueString(subscription().subscriptionId), 'storage')]",
"location": "centralus"
},
"resources": [
{
"name": "[variables('storageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2018-07-01",
"location": "[variables('location')]",
"properties": {
"accessTier": "[parameters('accessTier')]",
"supportsHttpsTrafficOnly": "[parameters('supportsHttpsTrafficOnly')]"
},
"dependsOn": [],
"sku": {
"name": "[parameters('accountType')]"
},
"kind": "[parameters('kind')]"
}
],
"outputs": {}
}
#please-close

@mumian I dont think thats correct.  The param file never gets a "location" that I can tell, even if closing browser, going to custom deployment loading new file.  I'm not trying to make a variable, Im trying to set a parameter equal to the "location" thats displayed in the UI, so it can be OVERRIDDEN.  I know I can make a variable and have it be static, that wasnt the ask, the ask was how do I reference the value in the Location under the basic heading, there is no mention on how to do any of that.
Side note: is there a way to create a link that will load the ARM template to this UI screen, kind of like the Azure Deploy Button, but from a private azure dev ops repo, or storage account.  I see there is a Templates preview, but there is no versioning and all of our code is in private repos.  I thought I saw an article somewhere that did it but its been awhile now.
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
  "contentVersion": "<IP_ADDRESS>",
  "parameters": {
    "environmentType": {
      "value": "Dev"
    },
    "enabledFlag": {
      "value": null
    },
    "serverName": {
      "value": "blah"
    },
    "databaseName": {
      "value": null
    },
    "timeout": {
      "value": 30
    },
    "timerInterval": {
      "value": 5
    },
    "encryptionFlag": {
      "value": true
    },
    "persistSecurityInfoFlag": {
      "value": true
    },
    "locationoverride": {
      "value": "[parameters('location')]"
    }
  }
}

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "parameters": {
        "environmentType": {
    "type": "string",
    "allowedValues": [
        "Dev",
        "Test",
        "Stage",
        "Prod"
    ],
    "defaultValue": "Dev",
    "metadata": {
      "description": "The environment type."
    }
  },
        "enabledFlag": {
            "defaultValue": false,
            "type": "bool",
            "metadata": {
                "description": "Should logic app be enabled by default."
            }
        },
        "serverName": {
            "defaultValue": "blah",
            "type": "String",
            "metadata": {
                "description": "Enter server name.  If Azure format is 'tcp:<URL>,1433'"
            }
        },
        "databaseName": {
            "defaultValue": "",
            "type": "String",
            "metadata": {
                "description": "Enter database name."
            }
        },
        "timeout": {
            "defaultValue": 30,
            "type": "int",
            "metadata": {
                "description": "Enter database connection timeout in # sec."
            },
            "minValue": 15,
            "maxValue": 500
        },
        "timerInterval": {
            "defaultValue": 5,
            "type": "int",
            "metadata": {
                "description": "Enter timer interval in # min."
            },
            "minValue": 1
        },
        "encryptionFlag": {
            "defaultValue": true,
            "type": "bool",
            "metadata": {
                "description": "If database is in Azure, this value is true, otherwise false."
            }
        },
        "persistSecurityInfoFlag": {
            "defaultValue": true,
            "type": "bool",
            "metadata": {
                "description": "Value should always be true, but this is an override if needed."
            }
        },
        "locationoverride": {
            "type": "string",
            "defaultValue": "[parameters('location')]",
            "metadata": {
                "description": "Specify the location for the logic app.  (Override Field)"
            }
        }
    },
    "variables": {
        "sites_MMCETLFunctions_externalid": "REFID",
        "workflows_name": "[concat('MMCETL_', parameters('databaseName'),'_GetJobsToRun_', parameters('timerInterval'), '_Min_Interval')]"
    },
    "resources": [
        {
            "type": "Microsoft.Logic/workflows",
            "apiVersion": "2017-07-01",
            "name": "[variables('workflows_name')]",
            "location": "[parameters('location')]",
            "properties": {
                "state": "[parameters('enabledFlag')]",
                "definition": {
                    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
                    "contentVersion": "<IP_ADDRESS>",
                    "parameters": {},
                    "triggers": {
                        "Recurrence": {
                            "recurrence": {
                                "frequency": "Minute",
                                "interval": "[parameters('timerInterval')]"
                            },
                            "type": "Recurrence"
                        }
                    },
                    "actions": {
                        "GetJobsToRun": {
                            "runAfter": {},
                            "type": "Function",
                            "inputs": {
                                "body": {
                                    "DatabaseName": "[parameters('databaseName')]",
                                    "EncryptionFlag": "[parameters('encryptionFlag')]",
                                    "PersistSecurityInfoFlag": "[parameters('persistSecurityInfoFlag')]",
                                    "ServerName": "[parameters('serverName')]",
                                    "Timeout": "[parameters('timeout')]"
                                },
                                "function": {
                                    "id": "[concat(variables('sites_MMCETLFunctions_externalid'), '/functions/GetJobsToRun')]"
                                }
                            }
                        }
                    },
                    "outputs": {}
                },
                "parameters": {}
            }
        }
    ]
}

@bbakermmc - for your first question, it can't be done.  You can ask for the feature at https://feedback.azure.com/forums/223579-azure-portal.
For your second question - the Azure Deploy button is an HTML anchor link. Here is an example of the link:
https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-key-vault-create%2Fazuredeploy.json.  You can replace the template URI in the link, as long as the template json file is accessible.  If you want to save your template to an Azure storage account,  you might consider using a SAS token.  To see an example - https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-tutorial-secure-artifacts#prepare-a-bacpac-file.
I created a Azure Pipeline tutorial recently.  It shows how to store template files in Git.  https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-tutorial-use-azure-pipelines
I hope it helps.
#please-close

added triage labels


Adjust quote-props behaviour

Mixing unquoted keys and quoted keys are throwing warnings
Might be a byproduct of #1 not being implemented

Fixed by e999cd7


Is it possible to run RPN scripts?

Is it possible to run a script, rather than an event, when a button is pressed?  For example, this is how you toggle the Wing/Engine Anti-ice in the CJ4.
(A:STRUCTURAL DEICE SWITCH, Bool) 0 == if{ 1 (>L:DEICE_Airframe_1, bool) 1 (>L:DEICE_Airframe_2, bool) 1 (>K:TOGGLE_STRUCTURAL_DEICE) } els{ 0 (>L:DEICE_Airframe_1, bool) 0 (>L:DEICE_Airframe_2, bool) 0 (>K:TOGGLE_STRUCTURAL_DEICE) }
Can something like this be done?

You can run scripts using the built in jinja2 engine. You can either code the script directly into the json file or link to a separate file, the latter one is recommended.
Linking to a file: https://github.com/maartentamboer/X-Touch-Mini-FS2020/blob/main/Configurations/config_default.json#L16
Example script files: https://github.com/maartentamboer/X-Touch-Mini-FS2020/tree/main/Configurations/Functions/Generic
The functions that you can call in a script can be found in the ConditionalRunner class. This includes setting / getting simvars, getting mobiflight vars and triggering events.
For more information about the syntax for if and else see https://jinja.palletsprojects.com/en/3.0.x/templates/

Oh okay, so you can't just pass in RPN scripts like the above?  You've got to rewrite them in this kind of domain-specific language you've got?  That's not a critique, I just want to make sure I understand this correctly.

That's correct

Is there any way to interact with local variables?  In the example I gave above, you manipulate the Wing/Engine Anti-ice in the WT CJ4 with the L vars DEICE_Airframe_1 and DEICE_Airframe_2 (pictured below).

This is something that's possible in Axis and Ohs, is it possible with X-Touch-Mini-FS2020 as well?


Move tags not found for image sha256 to debug

What does this PR do?
Reduce log level from warning to debug as there is a common and valid cases that triggers it: untagged images.
Motivation
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
Reviewer's Checklist

[x] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[x] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[x] A release note has been added or the changelog/no-changelog label has been applied.
[x] Changed code has automated tests for its functionality.
[x] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[x] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[x] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[x] If applicable, the need-change/operator and need-change/helm labels have been applied.
[x] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[x] If applicable, the config template has been updated.

Could we also catch the error ErrImageIsSha256 and handle it differently ?


Fixing apt repo configuration, key should be key ID not key fingerprint

when used with https://github.com/puppetlabs/puppetlabs-apt

:-1:
This would revert https://github.com/puppetlabs/puppetlabs-rabbitmq/pull/336
Perhaps you could report the specific issue you are seeing at tickets.puppetlabs.com? It might be an issue with the apt module, not this module.


didDetermineState doesn't work with Secure UUID beacons

So I've tried to set this up, nothing is working.

Put appID and token in AppDelegate.

Enabled "Secured" in init method for Beacon Region.

Secure my Estimote, then start ranging.

What works is when you manual startRanging, then I get my secure Estimote.
What doesn't is when I notifyOnEntry or Display. didDeterminateState doesn't get called as usual. Secure UUID is what is stopping this.

We're aware of a bug in the didDetermineState method that prevents it from working correctly with Secure UUID beacons. That's the root cause of the issue here. Stay tuned for the fix.

Fixed in 3.0.


Inconsistent use of role vars/role defaults

Describe the bug
Use of role vars and role defaults is inconsistent/unclear to me in ansible-os-hardening.
Expected behavior
I believe most variables set by this role should be overrideable using host_vars or group_vars if the need arises to deviate from a strictly hardened config.
Variable precedence tells us role vars can only be overriden by the user from a very limited set of vars sources (realistically, only extra vars passed through command line). Values that are expected to be changed from the playbook shoulg rather go in defaults/.
Actual behavior
For example in this PR, hidepid_option value can not be overriden by host/group vars.
OS / Environment
Any.
Ansible Version
Any.
Role Version
Any.
Additional context
If my reasoning is correct, the only correct use of role vars is through includes on specific conditions (for example ansible_local.os_release or similar), when the value is not expected to be changeable by the user.
Can you clarify what dictates whether a variable should go in vars/ or defaults/ in this role?

Hey @nodiscc,
thanks for this issue!

Can you clarify what dictates whether a variable should go in vars/ or defaults/ in this role?

We try to follow the Ansible standard here:

Basically, anything that goes into “role defaults” (the defaults folder inside the role) is the most malleable and easily overridden. Anything in the vars directory of the role overrides previous versions of that variable in namespace.

In defaults should go things that should be easily overwritable. Variables in vars shouldn't.

For example in this PR, hidepid_option value can not be overriden by host/group vars.

This is therefore a bug. Thank you for noticing - I'll fix this.

Ok then, glad I could help. The remaining variables in vars/main.yml seem fine.

Thanks for your help!


[Question] Page title both in result and header of the snippet content

Hi,
When searching for a blog post titled "Fall-Winter 2024 Fashion Trends", Pagefind displays the following result :

The problem is that the title is duplicated in the content snippet, which is redundant.
I would prefer if the title did not repeat within the snippet.
Is there a way to adjust the snippet generation so that the title is excluded from the content part?
Thanks for your help!

Page content :

Hi @gustaveWPM 👋
There's no Pagefind setting for this — I'm looking at some ways to do this in the future but there are a couple quirks to solve first.
The best action for now is to use the processResult hook on the DefaultUI to strip out the title.

Hi @bglw!
Thank you for your answer. ^^


[Flink] Fix class annotation of AsyncLookupSinkWrite

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

+1


fix syntax

@okcy1016 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Exact distance of image

i have got midas depth but i need to convert this into distance like meter and centimeter. Can anyone help me?

The best approach may be to try using the ZoeDepth models which are built to give metric distances as an output.
Otherwise, if you know the range of the depth of the image, you can convert the midas output into true depth using the formula:
True Depth = 1 / (A * normalized_midas_depth + B)
Where the variables A and B are given by:
A = (1 / min_depth) - (1/ max_depth)
B = 1 / max_depth

Here, the min_depth & max_depth refer to the minimum & maximum depth values in the image (i.e. you'd need to know something like, 'the closest point is 2 meters away, the farthest is 17 meters'. Then invert those numbers to calculate A and B). Though this approach will be sensitive to errors in the min/max depth values as well as the midas output (again, probably better to use the ZoeDepth models).

Thank you for the given formulas. It is working. Together with several points with known distance it gives proper results.
def depth_to_real(midas_prediction, known_points):

    '''
        Transfer relative MiDaS depths to real depths with known points
        Args:
        midas_prediction: output from MiDaS
        known_points: points on image with known distances (x, y, distanse)
    '''

    # normalize midas prediction to 0...1
    midas_depth_array = midas_prediction/np.max(midas_prediction)

    if len(known_points)>=2:
        # get pairs of normalized relative and real depths
        points = np.array([(midas_depth_array[int(y), int(x)], distance) for x,y,distance in known_points])

        # solve the system of equations :
        # relative_depth*(1/min_depth) + (1-relative_depth)*(1/max_depth) = 1/real_depth
        x = points[:,0]  # normalized relative depth
        y = 1/points[:,1]  # reversed real depth
        A = np.vstack([x, 1-x]).T

        s, t = np.linalg.lstsq(A, y, rcond=None)[0]

        min_depth = 1/s
        max_depth = 1/t

    else:
        print('Not enough known points to make real depth estimation')
        return None

    # align relative depth to real depth
    A = (1 / min_depth) - (1/ max_depth)
    B = 1 / max_depth
    midas_depth_aligned = 1 / (A * midas_depth_array + B)

    return midas_depth_aligned

I am confused. Is there any way to extract the exact distance(in meters) of any pixel in the image? Assume I don't know any other points other than the predicted values. Can I still get the exact distance out of the image?

Is there any way to extract the exact distance(in meters) of any pixel in the image?

Metric depth models (like ZoeDepth) attempt to do this. With relative depth models (like MiDaS) you need additional information to convert the relative mapping to an absolute one.

give me the end-to-end complete code for calculating the depth using webcam and convert the
distance like meter and centimeter

Is there any way to extract the exact distance(in meters) of any pixel in the image?

Metric depth models (like ZoeDepth) attempt to do this. With relative depth models (like MiDaS) you need additional information to convert the relative mapping to an absolute one.

If you know the real depth (meters) for 1 pixel, would it be enough to convert the rest of the depths to real distance too?

If you know the real depth (meters) for 1 pixel, would it be enough to convert the rest of the depths to real distance too?

Not quite, it's sort of a '2 knowns to figure out 2 unknowns' situation. You'd need to know the true depth for at least 2 pixels to be able to solve for A and B in the equation. In general though, you'd want to use many more than 2 points, since any error on those 2 pixels will lead to errors in estimating A and B. You might want to check out issue #171, where this was discussed in more detail.
That being said, if you want to try to fit using only two pixels, you can setup a system of 2 equations using the known pixels (and the equation from before) and solve it to figure out A and B. If your 2 known true depths are d1 and d2 and correspond to pixels with relative midas depths of m1 and m2 (respectively), then as far as I can tell, the parameters are given by:
Let:
  inv_d1 = 1 / d1
  inv_d2 = 1 / d2

then:

A = (inv_d2 - inv_d1) / (m2 - m1)
B = inv_d1 - m1 * A

And for clarity, I'm just getting this by re-arranging the equations:
d1 = 1 / (A * m1 + B)
d2 = 1 / (A * m2 + B)

I wonder if the part of the ego vehicle can be seen in the image, can I pick any two points of the ego vehicle as the distance reference points to calculate the scale and shift ?
For example, the distance of the red and blue points are known:

So, I can calibrate scale and shift in every frame

Ya that's a clever idea to stabilize the prediction. If that's still inconsistent, it should even be possible to grab the entire region of pixels belonging to the car and use a least-squares type of fit (like what @ximader posted) to further reduce the sensitivity to errors on individual pixels.

Is there any way to extract the exact distance(in meters) of any pixel in the image?

Metric depth models (like ZoeDepth) attempt to do this. With relative depth models (like MiDaS) you need additional information to convert the relative mapping to an absolute one.

If you know the real depth (meters) for 1 pixel, would it be enough to convert the rest of the depths to real distance too?
But how to get the or now the real depth for 1 pixel?

If you know the real depth (meters) for 1 pixel... But how to get the or now the real depth for 1 pixel?

I think the idea is if you know the depth for some part of the image, then you can convert the relative depth into real distances. If you don't know the depth, then it's better to use the metric depth (ZoeDepth) models.


Cannot open MCS window

Traceback (most recent call last): File "C:\GitHub\CNApy_Org\CNApy\cnapy\gui_elements\main_window.py", line 1296, in mcs self.appdata, self.centralWidget()) File "C:\GitHub\CNApy_Org\CNApy\cnapy\gui_elements\mcs_dialog.py", line 210, in init self.eng.is_cplex_matlab_ready()) AttributeError: 'NoneType' object has no attribute 'is_cplex_matlab_ready' File "C:\GitHub\CNApy_Org\CNApy\cnapy\gui_elements\main_window.py", line 1296, in mcs self.appdata, self.centralWidget()) File "C:\GitHub\CNApy_Org\CNApy\cnapy\gui_elements\mcs_dialog.py", line 210, in init self.eng.is_cplex_matlab_ready())

Addendum: After several starts of CNApy, this problem somehow does not occur anymore, nevertheless, this error should not occur at all

Resolved with #303

Under circumstances that I cannot reproduce, a very similar error appears again!


consider slabs in monotonicity penalty

If monotonic_penalty is set the volume fraction of the rightmost left slab (the slab next to the spline) is considered when determining if the profile is monotonic or not.

You need to submit the pull request against the main refnx repository.
On 20 Feb. 2018 16:39, "igresh"<EMAIL_ADDRESS>wrote:

If monotonic_penalty is set the volume fraction of the rightmost left slab
(the slab next to the spline) is considered when determining if the profile
is monotonic or not.
You can view, comment on, or merge this pull request online at:
https://github.com/andyfaff/refnx/pull/1
Commit Summary

Modified the brush vfp monotonicity enforcement to consider the vf
of the rightmost left slab.
Equal vfs no longer trigger monotonic penalty

File Changes

M examples/analytical_profiles/brushes/brush.py
https://github.com/andyfaff/refnx/pull/1/files#diff-0 (8)

Patch Links:

https://github.com/andyfaff/refnx/pull/1.patch
https://github.com/andyfaff/refnx/pull/1.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/andyfaff/refnx/pull/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAq51jfjRiMnL4RkzR3ziRzFqlzAsvL7ks5tWlqZgaJpZM4SLcdA
.

Aren't we using the emcee3 compatible version for the paper?

But you can submit against refnx/refnx, when it gets merged I'll rebase
emcee3 onto master.
TLDR: submit PR against master branch on refnx/refnx.
On 20 February 2018 at 16:55, igresh<EMAIL_ADDRESS>wrote:

Aren't we using the emcee3 compatible version for the paper?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/andyfaff/refnx/pull/1#issuecomment-366874281, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq51qB-sW4oCB9yTWuwXnqVLQghdP2Gks5tWl4-gaJpZM4SLcdA
.

--

Dr. Andrew Nelson


Create derickmartin

Hi @derickmartin  it looks like you did everything right except you did not include the ".yml" extension on your filename. If you repeat the steps and include the .yml extension in your filename, that will trigger an automated workflow that will process your request within 1-3 minutes.
Thanks!


Flutter doctor cant execute jdk

I have this problems in flutter doctor
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Linux, locale pt_BR.UTF-8)
    • Flutter version 1.7.8+hotfix.4 at /home/pedro/development/flutter
    • Framework revision 20e59316b8 (6 days ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /home/pedro/Android/Sdk/
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /usr/local/jdk-11.0.2/bin/java
    ✗ Cannot execute /usr/local/jdk-11.0.2/bin/java to determine the version

[✓] Android Studio (version 3.4)
    • Android Studio at /home/pedro/development/android-studio
    • Flutter plugin version 37.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1343-b16-5323222)

[!] Android Studio
    • Android Studio at /home/pedro/.AndroidStudio3.4/
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    ✗ android-studio-dir = /home/pedro/.AndroidStudio3.4/
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.
    • Consider removing your android-studio-dir setting by running:
      flutter config --android-studio-dir=

[✓] VS Code (version 1.36.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.2.0

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Do you need the jdk 11? How about to downgrade to jdk 8 as you will not be able to compile android code with jdk 11?

@phaalonso Is it still relevant? how about with current stable version?

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of ' flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Step 4 - Household member amount not updating correctly

When a user has filled out the screener with multiple family members, but goes back to change that they only have one family member in their household, the old data persists.
Expected behavior would be that the data gets updated properly and the "cards" displaying household should be updated accordingly. i.e. if the household was initially 2 members (head of household + child) but they go back and indicate that they only have one household member, the screener should get rid of the "card" for the child, keeping only the card for head of household.
Technical notes -
@bespinosa01, @kbrey, @CalebPena, @msrezaie if possible could I get y'all to flesh out details or hints here about what the dev picking this ticket up should think about? Not sure if we are currently prop drilling in the frontend code or if we have a more robust library/approach for global state management in the frontend and how that answer might affect the solution here.

You can truncate the household members array when the household size is submitted.
The following will set the householdSize, and truncate the householdData array.
setFormData({
  ...formData,
  householdSize: newSize,
  householdData: formData.householdData.slice(0, newSize),
});

Household size is set in https://github.com/Gary-Community-Ventures/benefits-calculator/blob/main/src/Components/Steps/HouseholdSize.tsx


Queued subject creation (use UUID instead of PK for subject ID)

Subject creation can be slowed down when the database is under load, to the extent that it sometimes goes over the 60 second limit for requests via the ELB so the client gets a 504 error. This will be worse when we let people create subjects in batches (#2175).
The only reason Panoptes needs to touch the database before returning a response to the client is to get the subject ID. Instead, it could generate a random UUID as the subject ID and return that with the signed S3 URLs, then put the rest in a queue.

I like the idea, we'd still have to validate the resource params on input or we just drop these from the create queue?
Could this be incorporated into another service to handle subject imports, e.g. the ouroboros data manifest processors?

So storing (and recalling) the last used/given_out ID(sequential) is the bottleneck ?
...
Reads up on UUID.
Plugs in last known highest classification rate per hour (rounded-up to 10 million per day) into the 103 trillion from the Collisions section.
1.03 * 10e14 / 10e6 / 365 = ~2.8*10e5 years
Bummer, that's way to long to use as UUID counter argument. :(

this is a good idea, we should do something like this


Update counting of TAF RECOMPUTATION WARNING

With new version (5.5.1) of TAF, reports of recomputation warnings changed
a little bit (dropping one additional "TAF" before RECOMPUTATION).
With this minor update, testreport catches the same number of warnings with
both new and previous version of TAF.
What changes does this PR introduce?
see above
Does this PR introduce a breaking change?
no
Other information:
Suggested addition to tag-index
nothing to add there (minor update)

@jahn I refined a litle bit the "grep" search (to be sure to catch "TAF" as first word, with the "end of word" ">"). Do you know it this willl work every "grep" version ?

@jahn with latest change, no need to check anymore.


Cloudflare Workers Support

Hey! I attempted to use Bugsnag within a Cloudflare Worker: https://www.cloudflare.com/products/cloudflare-workers/. This is like the Service Workers API, but built to run at the CDN layer instead of in a user's browser.
I attempted to bring in both @bugsnag/js (didn't work due to navigator not being set) and @bugsnag/node (didn't work due to no "fs" module). I also tried to use the unofficial https://github.com/jmshal/bugsnag-js-cloudflare-workers but this did not work either.
The way to compile workers is to use webpack + webworker target (https://webpack.js.org/configuration/target/#string), which complicates things even further.
I ended up with a solution that looks something like this (using @bugsnag/core/report + error-stack-parser, thanks to report.test.js in this repo! + your HTTP API):
const Report = require('@bugsnag/core/report');
const ErrorStackParser = require('error-stack-parser')

addEventListener('fetch', event => {
  event.passThroughOnException();

  event.respondWith(respond(event));
});

async function respond(event) {
  try {
    // Some more worker code that may error
    return fetch(event.request);
  } catch(e) {
    const report = new Report(e.name, e.message, ErrorStackParser.parse(e));
    report.updateMetaData('request', {
      method: event.request.method,
      url: event.request.url,
    });
    report.app = {
      id: 'name',
      version: '1.0.0',
    };
    console.log('Sending error to bugsnag', e.name, e.message, ErrorStackParser.parse(e), JSON.stringify(report));

    event.waitUntil(fetch('https://notify.bugsnag.com/', {
      method: 'POST',
      headers: {
        'Bugsnag-Api-Key': 'BUGSNAG_API_KEY',
      },
      body: JSON.stringify({
        notifier: {
          name: 'name',
          version: '1.0.0',
          url: 'https://example.com/',
        },
        events: [
          report,
        ],
      }),
    }))
  }
}

This seems to work, but would be great to have first class support for this!
Cheers

Hey Dom! 👋
We have service worker support on our internal backlog. It seems like supporting service workers would be the first step towards achieving this (removing reliance on parts of the browser environment that doesn't exist etc.) and then direct support for Cloudflare workers would be added via a plugin. I'll add that to the backlog too.

Hey Ben! :) thanks for the update on this, I'll be sure to follow along here for any future news. Let me know if I can help with testing anything.
Here's our cloudflare worker if you're interested: https://github.com/readmeio/cloudflare-worker. Here's the modified version of the worker to send any errors to Bugsnag: https://github.com/readmeio/cloudflare-worker/blob/144f8c2c16054d110f4e9164e3cfbfdab29ef8bf/debug-template.js#L28-L54.
Cheers!

@bengourley the only blocker to using @bugsnag/core/client in Cloudflare is the use of navigator in @bugsnag/cuid.  If you could remove that dependency (or just gate it on a typeof check), then the community could create a Cloudflare plugin.

@domharrington if you add a webpack.DefinePlugin to your webpack config, you can have webpack rewrite the navigator global references:
new webpack.DefinePlugin({
  navigator: '{ userAgent: "" }',
}),

It results in some weird but completely functional code:
var mimeTypesLength = {
  userAgent: ''
}.mimeTypes ? {
  userAgent: ''
}.mimeTypes.length : 0;
var clientId = pad((mimeTypesLength + {
  userAgent: ''
}.userAgent.length).toString(36) + globalCount.toString(36), 4);

Would be very awesome to have Cloudflare Workers support. Workers is a really amazing software, but they really lack better debugging options. Currently I am out of luck of integrating bugsnag with cloudflare workers.

I posted a working implementation here.

Cloudflare workers are always a single file. Whether you use Wrangler, Webpack, or something else to compile your files down to a single file, you're going to end up with line-number changes on every release. That makes Bugsnag's default exception group fairly useless. I find this helps a lot:
report.groupingHash = e.message || 'Uncaught exception'

Bugsnag's sourcemap support won't work in the case of Cloudflare workers since neither the compiled JS nor the source is available at any URL.

@domharrington if you add a webpack.DefinePlugin to your webpack config, you can have webpack rewrite the navigator global references:
new webpack.DefinePlugin({
  navigator: '{ userAgent: "" }',
}),

It looks like '@bugsnag/js' depends on more global properties than navigator.
new webpack.DefinePlugin({
  navigator: JSON.stringify({ userAgent: '' }),
  window: JSON.stringify({}),
  document: JSON.stringify({}),
}),

Currently getting the following error:
TypeError: Cannot read property 'host' of undefined

It'd be great to removing reliance on browser globals.

Hi @zorbash, I'm afraid we don't have any updates on this at present. Does the working implementation posted above work for you?

Hi @yousif-bugsnag, the working implementation posted above seems incomplete since the createReportFromError function is not defined anywhere.
I'm the missing function is implemented as follows:
const ErrorStackParser = require('error-stack-parser')

function createReportFromError(event, error) {
  const report = new Report(e.name, e.message, ErrorStackParser.parse(e));

  report.updateMetaData('request', {
    method: event.request.method,
    url: event.request.url,
  });

  report.app = {
    id: 'name',
    version: '1.0.0',
  };

  return report;
}

Given our worker is written in TypeScript though, the application won't compile due to errors triggered by the following imports:
import Client from '@bugsnag/core/client'
import payload from '@bugsnag/core/lib/json-payload'
import { schema } from '@bugsnag/core/config'

Errors:
Could not find a declaration file for module '@bugsnag/core/client'.
Could not find a declaration file for module '@bugsnag/core/lib/json-payload'.
Could not find a declaration file for module '@bugsnag/core/config'.

TypeScript's suggestion is to install @types/bugsnag__core which doesn't exist. Any idea how to fix this?

I believe using the require syntax e.g.
var Client = require('@bugsnag/core/client')

should get you past the typescript issues.
I've flagged your interest in official Bugsnag support for Cloudflare workers with our product team, and we'll be sure to post back here if there are any updates.

The navigator issue still exists in https://github.com/bugsnag/cuid/blob/master/lib/fingerprint.browser.js

@joshunger In general we're open to accepting PRs, however we'd be unlikely to accept a PR that removes navigator as we use that to help generate device IDs which is something we'd need to consider carefully if changing. Additionally there may be other areas that reference globals in @browser/js so that might not be sufficient.
You could create your own fork of the repository for now until we're able to look into adding official support for Cloudflare workers.

@phillipsam Afternoon! Sounds good, thanks for letting me know. I ended up here because browser was being included in SSR when using rails webpacker. Of course multiple ways to fix but this was the easiest.

Hey! Any updates on the official support for Cloudflare workers? Would be awesome to have the official package for them.

From the Cloudflare Workers docs:

When the global_navigator compatibility flag is set, the navigator.userAgent property is available with the value 'Cloudflare-Workers'. This can be used, for example, to reliably determine that code is running within the Workers environment.

So in your wrangler.toml, you can try adding:
compatibility_flags = ["global_navigator"]

This can at least help to patch the navigator issue. I haven't tried this solution myself though, will update when I have tried it out.

Biggest issue here for me is next.js and bugsnag. The underlying architecture of the bugsnag plugins just don't play well, and very soon (likely announcing Oct. 25) they'll be encouraging and moving toward the cloudflare runtime underneath, however it remains to be seen if things are going to be compat / configurable.
This means Bugsnag, effectively, will have even worse compatibility with Next.js projects. Is there any way to get visibility for this? Right now I'm looking at recommending moving to a different logging platform entirely due to the limitations of the design.

Hi @jclusso, support for Cloudflare workers remains on our backlog. We hope to get to it soon, but at present don't have an ETA. We will post updates as soon as we have them.

Hey team! Same question, any update on this? Thank you!

Hi @Danetag
This item is still on our backlog. Once we have more information we will be sure to update this thread.

Maybe a tail worker with https://docs.bugsnag.com/api/error-reporting/ will do the trick.  I haven't tried, yet.

any updates for this?

Hi @RayBans2111
No update just yet. Once we have more information we will be sure to update this thread.