Option to enforce proof requirement for Verifiable Credential?

What I'm trying to do
I'm trying to enforce the requirement for Verifiable Credential to have embedded proofs.
Expected result
It would be nice to have an option to enforce embedded proofs.
Actual result
It seems to currently not being enforceable as of the following snippet on line 68.
proofElement, ok := jsonldDoc["proof"]
	if !ok || proofElement == nil {
		// do not make a check if there is no proof defined as proof presence is not mandatory
		return docBytes, nil
	}

@adn-misa could you please elaborate what you are trying to do here.
we enforce proof validation in verifiable credential only if it has proof.
For example you want to sign a credential then you to parse one without proof
vc, err := verifiable.ParseCredential(rawBytes)
err = vc.AddLinkedDataProof(...options..)

if we always enforce proof validation then it will fail in first line itself.

@sudeshrshetty my bad, i wasn't clear enough.
What I meant was for an option for ParseCredential to fail when a verifiable credential does not have a proof.
It would also make a good default from a security perspective.
The first time using the ValidateCredential API, I thought that it would fail on missing proof.
It was later when I verified the source code that I found that behaviour you mentioned on missing proofs.
From my view, I don't see a lot of use cases  for verifiable credentials without proofs.
I would appreciate your view of the issues.


Having trouble with asset loading after build

Question
So when I run my serve script all is working well, but when I run build and look at site locally (not serving) my js file and css file are not being added.
Additional context
Serve seeing this:
<script type="module" src="https://modl-craft-starter.ddev.site:3000/src/js/app.js"></script>
After build and direct view locally seeing this:
<script type="module">     !function() {         const e = document.createElement("link").relList;         if (!(e && e.supports && e.supports("modulepreload"))) {             for (const e of document.querySelectorAll('link[rel="modulepreload"]'))                 r(e);             new MutationObserver((e => {                 for (const o of e)                     if ("childList" === o.type)                         for (const e of o.addedNodes)                             if ("LINK" === e.tagName && "modulepreload" === e.rel)                                 r(e);                             else if (e.querySelectorAll)                                 for (const o of e.querySelectorAll("link[rel=modulepreload]"))                                     r(o)             })).observe(document, {                 childList: !0,                 subtree: !0             })         }         function r(e) {             if (e.ep)                 return;             e.ep = !0;             const r = function(e) {                 const r = {};                 return e.integrity && (r.integrity = e.integrity), e.referrerpolicy && (r.referrerPolicy = e.referrerpolicy), "use-credentials" === e.crossorigin ? r.credentials = "include" : "anonymous" === e.crossorigin ? r.credentials = "omit" : r.credentials = "same-origin", r             }(e);             fetch(e.href, r)         }     }();     </script>
Hoping for a lead to help me troubleshoot where my issue might be.

I think I figured it out. In the vite.php config. I had to adjust the following line to include the .vite/ segment. Wondering if that changed from v4 -> v5.
'manifestPath' => Craft::getAlias('@webroot') . '/dist/.vite/manifest.json',

Yes, that's a change they made in Vite 5 -- but I'd suggest instead just modifying your Vite config like this:
    manifest: 'manifest.json',

(it's now a boolean or string, and if it's a string, it's a path to your manifest file you want generated)
This will keep the manifest in the default location it was in for Vite 4.x and previous.


Make order_by work in has_many through association

Fix the order_by issue in has_many through associations.

Thank you @YoussefKababe. More important than the fix would be a test case. Can you write a test case inside the integration_test directory that reproduces your issue using the existing schemas? Thank you!

@josevalim I updated the tests and fixed what I did before!

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

:smile: :+1: :heart:


Fix problem characters in password and force host change refresh

This PR contains the following fixes:

Exclude symbol characters from password that could cause encoding/usage issues
Force a user/password refresh if the host changes in the DBClaim

We also need to update the Jenkinsfile to push the docker image and helm-chart generated on a merge to this branch.


Fixed Team Page Nav bar to be similar to Home Page

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!
Providing the issue number/url helps us identify the problem being solved and keep the issues tab clean and tidy

This is not a fix. This is a request to add login and signup pages to the site.
Summarize what this PR fixes:-
I fixed the Team Page Navigation header to resemble the same as the Home Page Navigation header
Fixes #689
Checklist
(Add an x between the brackets to check the items)

[x] I have summarized what this PR fixes above
[x] I have provided the issue ID/URL above
[x] I have not added Bootstrap or jQuery and used the correct styling guide.
[x] This PR fixes only the issue mentioned above (create separate PRs for separate issues)
[x] I was the first one to claim the issue or I created the issue - I created the issue

The link back to home isn't working on the team page. I'll merge this, but that is something that needs fixed.


base-pom release 1.8

added project.reporting.outputEncoding --> UTF-8
updated dependencies to newest versions
added java-jwt from auth0
updated travis to build with oracle jdk 9

@patrickboesch pls review, merge and release this new version.

@nikolastankovic Release to maven central is done :)


Think through challenge design

Migrating this comment rom @procacci in #9 here for better tracking:

My feelings on this, future (bCDs), and on past (CB8) host-guest
challenges are that the focus is too much on force fields while being
somehow unfaithful to the original commitment of the challenge. In my
understanding, that commitment was aimed at identifying the most
appropriate methodology in dealing with the SAMPLing of systems with
disparate time scales/complex collective variables and hence in
producing sufficiently reliable (and reproducible) binding free
energies. WP6 is a mostly rigid host that does not involve any
serious sampling issue. The very same can be said for the guest
molecules. This is at variance with the reality of ligand-protein
systems where both the host (the binding pocket) and the guest
(drug-like compounds with up to 9 rotatable bonds) are characterized
by a complex conformational landscape. Besides, the issue of the
protonation state of heavily charged WP6 is an extra complication that
can affect severely the prediction. If WP6 is in part protonated at ph
7.4, then the BFEs of the guest cations (12 out of 13) computed
assuming a fully deprotonated state for WP6 are expected to be
overestimated. On top of all this, electrostatic interactions have
certainly a prevailing role in shaping the affinity. So, despite all
these modelization challenges, it was quite a surprise for me to see
that all the MD-based methodologies performed decently, whether they
used openFF GAFF or AMOEBA.
I do think that testing FF is important but I also think that the
SAMPLing issue in BFE determination is still far from being solved for
protein-ligand systems, even in the GPU era. My hope is that in the
future challenges these two crucial issues (FF and SAMPLing) are
addressed in separate specialized sessions: i) test the FF (and any
other physical methods) for rigid host and guest challenges ii) test
MD-based methodologies for protein-ligand systems, requesting for all
participants to use only one (well-established) FF. The common set of
topological/parameter files for the most popular MD codes could be
provided by the organizers with little work.
Using a fancy and expensive FF (e.g. AMOEBA or QM-M) with a poor
sampling methodology in a system where sampling is important makes no
real sense in my view. By the same token, using a fancy sampling
methodology with a poor FF in systems where sampling is not an issue
makes no sense as well. I am quite convinced that disentangling the FF
issue (systematic errors) from the sampling issue (reproducibility)
will allow us to move forward more quickly.
Piero Procacci

I'll try and take this point-by-point for the record:

My feelings on this, future (bCDs), and on past (CB8) host-guest
challenges are that the focus is too much on force fields while being
somehow unfaithful to the original commitment of the challenge. In my
understanding, that commitment was aimed at identifying the most
appropriate methodology in dealing with the SAMPLing of systems with
disparate time scales/complex collective variables and hence in
producing sufficiently reliable (and reproducible) binding free
energies.

Honestly, the SAMPL challenges are not staged with a particular purpose in mind other than to (a) allow fair assessment of the state of the art in prospective challenges, and (b) to drive progress in the field. Whether that progress comes from force fields or from sampling methods is dependent on participation/innovation, not on the structure of the challenges necessarily.
That said, the SAMPL6 "SAMPLing" challenge did have a clear focus specifically on sampling methods. One thing on my list has been to stage another "SAMPLing" challenge as I see it important to focus some amount of attention directly on sampling issues (as opposed to overall accuracy, which can be the result of many factors) but I haven't had the bandwidth to orchestrate another such challenge recently, as it requires a great deal of engagement with the community. Are you interested in helping out with organizing one?

WP6 is a mostly rigid host that does not involve any
serious sampling issue. The very same can be said for the guest
molecules. This is at variance with the reality of ligand-protein
systems where both the host (the binding pocket) and the guest
(drug-like compounds with up to 9 rotatable bonds) are characterized
by a complex conformational landscape.

This seems like it's an argument for NOT using WP6 for a SAMPLing challenge, but not necessarily for not including WP6 in SAMPL, unless I'm missing something.

Besides, the issue of the
protonation state of heavily charged WP6 is an extra complication that
can affect severely the prediction. If WP6 is in part protonated at ph
7.4, then the BFEs of the guest cations (12 out of 13) computed
assuming a fully deprotonated state for WP6 are expected to be
overestimated.

I did just add some experimental data on WP6 protonation states in #11

I do think that testing FF is important but I also think that the
SAMPLing issue in BFE determination is still far from being solved for
protein-ligand systems, even in the GPU era. My hope is that in the
future challenges these two crucial issues (FF and SAMPLing) are
addressed in separate specialized sessions: i) test the FF (and any
other physical methods) for rigid host and guest challenges ii) test
MD-based methodologies for protein-ligand systems, requesting for all
participants to use only one (well-established) FF. The common set of
topological/parameter files for the most popular MD codes could be
provided by the organizers with little work.

Completely isolating FF from sampling is tricky, in my experience, since even "simple" systems often have some amount of sampling problems. However, as noted, one can pose a "SAMPLing" challenge (as in SAMPL6/as you suggest) to specifically focus on sampling issues. Note, however, such challenges do not necessarily require new data as in such cases the goal is to get the "right" answer (the force field gold standard) efficiently rather than to get the most accurate result.
It is probably time for another such challenge; let me know if you're interested in lending a hand with organization.

Using a fancy and expensive FF (e.g. AMOEBA or QM-M) with a poor
sampling methodology in a system where sampling is important makes no
real sense in my view. By the same token, using a fancy sampling
methodology with a poor FF in systems where sampling is not an issue
makes no sense as well. I am quite convinced that disentangling the FF
issue (systematic errors) from the sampling issue (reproducibility)
will allow us to move forward more quickly.

In general I agree with you that one needs to address both sampling and force field quality and if sampling is the limiting factor, force field quality won't fix it. That said, my role in running these challenge is... to make them available to the community and let them use the challenges to drive progress, not to decide who gets to use which methods and how. I would note that over the years, far fewer pure QM methods have participated in SAMPL host-guest challenges and far more methods have begun incorporating extensive sampling, as this has proven critical for decent performance. Yes, we still see more expensive force fields used -- but there are far fewer methods now which just do expensive QM calculations on host-guest complexes.
Anyway, let me know if you're interested in helping orchestrate another round of SAMPLing challenges, and what system(s) you think would be best suited for those.

Hi David,
I have seen the pKa data (by the way the file WP6_pKa_report.pdf does
not show up correctly).  In my submission, as a justification for
computing the BFE with the -12 host, I used the statistical factor
formula pka(n) = pka(1) - log((n)/(13-n)) where the pKa(1) of 3.23
refers to the monobasic acid 2-(2,5-dimethylphenoxy) acetic acid (from
Scifinder).  This yielded 5.71 as the largest pKa, in surprisingly good
agreement with the experimental data. I hence guess that there must be
some other reason for the systematic overestimation of the BFA in my
ranked submission. Probably electrostatics again plays a primary
role. I am saying this because only the AMOEBA/Ponder gave a negative
MSE among the MD submissions, while all the other subs (including mine)
seem to consistently overestimate the BFE. Paraquat (g13) is an
exception since I knew already that the BFE would have been underestimated
using the GAFF2 parameterization (see FSDAM results for g19 on Isaac
clips in SAMPL7). In any case, this challenge with -12 charges on the
host, like those of the calixarenes, put a very hard strain on the
electrostatic model.
Concerning the possibility of organizing a new SAMPLing
challenge specifically addressing the sampling issue and assessing
the efficiency and convergence as you did in the past SAMPLing, I am
available for helping as far as I can. Speaking of host-guest, I
recently came across two interesting macrocyclic systems recently
reported in the literature (see the attached file). Unlike the
relatively rigid WP6 CB8 or OA, these two hosts are characterized by
high conformational flexibility, making them suitable for achieving
good selectivity and affinity.  For host1 (10.1002/cjoc.202000738),
the interconversion between conformers is fast (in the ns), and
binding for a given guest is specific and more efficient for just one or two host1
conformations (induced fit). In host2 the five conformers are separated by
large energetic barriers so that they can be even distinguished in NMR
( 10.1038/s41467-020-16534-9 ). host2 follows "conformational
selection", in the sense that binding affinity of the metastable
conformers can be quite different.  Induced fit and conformational
selection are quite common in drug-receptor systems, and I think that
these two hosts could be an excellent platform for assessing the
precision/reproducibility of MD-based approaches.  In the attached tgz,
for each of the hosts you will find two figures referring to a standard MD
and an HREM MD in vacuo at 300 K (with Nose). Conformations have been
examined by using two distance for host1 ( between oxygen atoms 118 130
and oxygen atoms  123 120), and two dihedral for host2 (involving the oxygen
atoms 181 196 165 194 and the oxygen atoms 172 193 188 195).  The measurement
for these hosts systems were done in 1:1 acetonitrile:dicloroethane (for host1) and
in CD2CL2 (for host2).
These hosts are not soluble in water (see attached swissadme.pdf), but
the synthesis seems to be pretty straightforward and maybe they can be
modified (as they did with WP6) introducing some polar group (e.g. OH
or COOH) to enhance solubility if we feel that the water solvent is
essential for the challenge. On the other hand, simulation in CH2Cl2
of acetonitrile should pose no extra problems for MD-based free energy
calculations. I am looking forward to hearing your comments
Piero
hosts1-2.tar.gz

There was a mistake in the tar file. The host2.png was a copy of the host1.png. The attached png is the correct version
for host2 MD/HREM comparison.

Hi, sorry for the very long delay on this. I'm in a bit of a rush but I'll try and take a couple of your questions:

Concerning the possibility of organizing a new SAMPLing
challenge specifically addressing the sampling issue and assessing
the efficiency and convergence as you did in the past SAMPLing, I am
available for helping as far as I can.

The hard part of this is, essentially, identifying a system we think people can converge with somewhat reasonable efficiency and then getting enough folks to agree to do it, as well as finding an approach to serve as a reference method and getting someone to run that. It's a major community initiative/a large cat-herding exercise, and I haven't had bandwidth to lead this. One route forward might be if you wanted to put together a draft of a proposed plan for such a challenge, such as in an editable Google Doc, I could circulate it to our e-mail list for feedback and then depending on the feedback we'd know how hard it would be to push this forward/herd the cats.
The hosts you mention sound interesting and like they share some similarity with the CBclip/TrimerTrip type systems that have appeared in past challenges, in that they are significantly flexible. It's interesting that the timescales are already known. Are you proposing those as the focus of a SAMPLing challenge? At some level I thought that the rihgt level of difficulty would be do essentially revisit something like the systems which were in the SAMPL6 SAMPLing challenge, as at that point the field still did not quite reach complete agreement as to the right answer for calculated binding free energies even with equivalent methods. Originally the plan had been to compare method efficiency by checking which converged to the known answer most rapidly, but in the end we were unable to do this since they didn't all converge to the same answer. Before going to systems with more difficult sampling I'd hope we could do an efficiency comparison in a case where we do all get the same answer.


Fix #13242 - Escape command title for CodeLens

I cannot test it (as for some reason I can't install extensions on compiled from source version of Code) but I think it should be enough.
CC: @jrieken, issue: #13242

Hi @Krzysztof-Cieslak, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Coverage remained the same at 61.228% when pulling 39a3862d6577585cb7d469352148512bb2ab8174 on Krzysztof-Cieslak:fix_13242 into cd6fb060c187c0a199954d1fe19704a164827761 on Microsoft:master.

LGTM - thanks

Thanks :)


Adds a new One time token type.

This token type is not a JWT and is useful for when you need one time access.
The one time token uses Ecto to keep track of it's contents if it has been used or not.
If a token has already been used it will be as though that token never existed and will not verify.
From the tests:
{:ok, claims} = Impl.decode_and_verify(ctx.token)
assert claims["claims"] == ctx.claims["claims"]

assert Impl.resource_from_claims(claims) == {:ok, %{id: ctx.id}}

assert Impl.decode_and_verify(ctx.token) == {:error, :token_not_found_or_expired}

See Guardian.Token.OneTime for more information

I originally had it in it's own package but put up a q on #ueberauth which came back as put it in core.
Does it assume postgres? It's my understanding of ecto that it's just going to use whatever your backing DB is, so long as it's an ecto repo. The OneTimeToken requires that you provide a repo to use with it.

@hassox it was my understanding that MySQL didn't support JSON columns? Or does the MySQL adapter handle that automatically as a text column and handles casting and dumping automatically?

@scrogson MySQL as of 5.7.x supports a JSON datatype.

@scrogson MySQL as of 5.7.x supports a JSON datatype.

Good to know. Thanks @hassan

Looks like this was merged recently: https://github.com/xerions/mariaex/pull/201
However, it's not yet released on hex.
I think we have decided to put this into its own package so that we don't block progress on Guardian 1.0.


remote add: better explain how to form path to GDrive remote

In the URL like
gdrive://root/some/path
it's not 100% clear if root is a predefined and is always here (expect for shared folders of course), how do I get path (be more explicit how to find it for people with GUI experience)
btw, is path case sensitive?
Also, in case of a shared drive path can be skipped?
More context:
https://discordapp.com/channels/485586884165107732/563406153334128681/665786272312459304

E: The problem was dvc remote add myremote gdrive://root/my-dvc-root
so you do not need to type anything after Google drive root folder.

From Discord
OK seems like the use is talking about https://dvc.org/doc/command-reference/remote/add, inside the Click for Google Drive expandable section:

He's suggesting the /my-dvc-root part is not necessary.

I: yep, and you can do dvc remote add -d myremote gdrive://root/my-dvc-root to set it as a default...
E: OK, just making clear, what is ../my-dvc-root after root part?
If I am not wrong root is your folder
I: I think gdrive://root is a predefined prefix for any folder in your GDrive
then you just specify a path inside - gdrive://root/path/inside/gdrive/to/store/files
E: when I remove /path/... and use only gdrive://23ADN67363BSJHAS (just an example link https://drive.google.com/drive/folders/23ADN67363BSJHAS) then I could create a remote

And goes on to suggest that the shared drive example in the same doc section,
dvc remote add myremote gdrive://0AIac4JZqHhKmUk9PDA/my-dvc-root

also doesn't need the path (/my-dvc-root) after the directory ID.
So, we'll need to try these options before changing docs.

It's also confusing how to know when a drive is shared or not or what we mean why "shared drive". At first glance it looks like root in the normal example is the same as the directory ID in the shared drive example.

root in the normal example is the same as the directory ID in the shared drive example.

@jorgeorpinel yes, that's more or less how I understand this.

when I remove /path/... and use only gdrive://23ADN67363BSJHAS (just an example link https://drive.google.com/drive/folders/23ADN67363BSJHAS) then I could create a remote

this part - I still don't get it.
hopefully @MaxRis can shed some light here?

I've used others remotes docs as example to create doc for gdrive. But, yes, it makes sense to explain URL construction rules in details ( for others remotes as well, looks like ).
root - is an alias of user's topmost Google Drive directory (it is always available).
remote url can be just gdrive://root, but in this case DVC will put all files just in the topmost directory of Google Drive. I don't think that this is a good solution for most of the users.
That's why the doc suggest to create subdirectory my-dvc-root. So, following explanation
I: I think gdrive://root is a predefined prefix for any folder in your GDrive
then you just specify a path inside - gdrive://root/path/inside/gdrive/to/store/files

is the correct one :)

btw, is path case sensitive?

Will need to check this. Good question.

Also, in case of a shared drive path can be skipped?

Remote URL can contain just ID of the remote folder:
gdrive://23ADN67363BSJHAS
Since shared drive can't be accessed via root alias (shared drive is not mounted under topmost user's directory), the only known way (known for me) to access shared drive is by ID of remote folder.
If needed, user also can specify additional nested directories inside remote folder referenced by ID:
gdrive://23ADN67363BSJHAS/path/inside/gdrive/to/store/files

It's also confusing how to know when a drive is shared or not or what we mean why "shared drive".

"Shared drive" section in doc was created with users in mind who look how to use "Team Drives", which are mounted  as "shared drives" into Google Drive "user space".
Usually user should know if she/he wants to use shared drive or just his own drive.
Currently, DVC. for example, handles gdrive://23ADN67363BSJHAS remote URL and for DVC there is no difference if remote directory with ID 23ADN67363BSJHAS located at shared or personal drive.

GDrive construction template:
gdrive://[root|FOLDER_ID][path/inside/gdrive/to/store/files]

Woa so it's pretty complex... Any chance we can just simplify the description in our docs and point users to some Google documentation page where GDrive URL construction is explained?

@jorgeorpinel I'm going to try to create PR into docs to address current issues.
Will let you know


An error about Version keras-rl-0.3.0

I updated my keras-rl, to Version 0.3.0
When i use "model.add(Merge([lstm,dense],mode='concat',concat_axis=1))",
then "dqn.compile(Adam(lr=.00025), metrics=['mae'])" will return an error about that
File "/usr/local/lib/python2.7/dist-packages/rl/agents/dqn.py", line 156, in compile
self.target_model = clone_model(self.model, self.custom_model_objects)
File "/usr/local/lib/python2.7/dist-packages/rl/util.py", line 15, in clone_model
clone.set_weights(model.get_weights())
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 695, in set_weights
layer.set_weights(weights[:nb_param])
File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1175, in set_weights
if pv.shape != w.shape:
AttributeError: 'list' object has no attribute 'shape'
But keras-rl-0.2.0 won't return this error.
Thank you for your help!!

I have same question


Splunk App for Infrastructure (SAI) is EOL

Splunk App for Infrastructure (SAI) is already End of Sale and is going EOL soon.

To provide the best experience for Splunk users who want to monitor their infrastructure, Splunk is refocusing engineering efforts on our IT Essentials Work and IT Service Intelligence offerings. As a result, we will End Of Sale Splunk App for Infrastructure on April 30, 2021 and End of Life on August 14, 2022.

It is mentioned in Getting Started/index along with the SAI add-on.
For new SC4S users it's probably not a good idea to recommend unsupported Splunk App and Add-ons that will require additional migration work in the near future.
For existing SC4S users a migration/upgrade path should be developed to move away from SAI.

Thanks we just need to update docs the direct replacement for SAI is IT Essentials Work

:tada: This issue has been resolved in version 1.82.0-develop.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.82.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Test Home Assistant beta on a nightly Github workflow

This pull request creates a nightly Github workflow to test the Home Assistant Beta Docker tag. In this way it would be possible to detect breaking changes in a nearly version of Home Assistant.

coverage: 100.0%. remained the same
when pulling 152c5048b17090726740e165aac08f6742e712cb on test_home_assistant_beta
into 089e0302dfb2506deed75562ec7bf4df9ce1e140 on master.


Added WebStore link to README.md

thank you for catching this.
much appreciated 👍

No worries :)
Just recommended this to a bunch of colleagues, and having the link there makes it easier. Thanks for implementing it!


[api-minor] Remove the, in legacy builds, bundled DOMMatrix polyfill

According to the MDN compatibility data, see https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix#browser_compatibility, all browsers that we support have native DOMMatrix implementations (since quite some time too).
Hence Node.js is the only environment that lack DOMMatrix support, which probably isn't that surprising given that it's browser functionality.
While the DOMMatrix polyfill isn't that large, it nonetheless seems completely unnecessary to bundle it in the legacy builds when it's not needed in browsers. However, we can avoid that by simply listing dommatrix as a dependency for the pdfjs-dist library.

/botio browsertest

Nice find!


Duplicate Notifications

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.100
Where did you get the app from?
Other
Android version
ColorOS 11
Device model
Oppo A52
Steps to reproduce

Add Google Account/s using new OAuth 2.0 log-in feature
Enable Push for all folders
Exhibit multiple notifications for a single e-mail.

Expected behavior
Display a single notification for the e-mail that is fetched.
Actual behavior
The application is sending out duplicates of the same notification. This varies from 2 or 3 duplicates, probably related to the number of Google accounts linked (I have 3 accounts linked via OAuth 2.0 and push enabled for all three accounts).
I have provided screenshots of some sample notifications. The duplicates are only for the notifications, opening the app displays the fetched e-mails correctly.
Logs
No response

For others finding this issue through search: Don't enable notifications for Gmail's "All mail" folder. Every message in the Inbox can also be found in the "All mail" folder. But for K-9 Mail these are distinct messages.

Don't enable notifications for Gmail's "All mail" folder.

how does one do that? "settings > account A > Notifications > notification folders" only allow selecting it by some kind of level, it does not allow per-folder.
the same applies to the setting of which folders to sync. I would rather also turn off syncing the "all mail" folder because it does not make sense.


Add Full Screen feature  Windows

any updates?
i need it too
but also control opacity

I added the capability of launching the WebviewWindow in a maximized state in this PR (already merged).
I have another PR open, which aims to extend the bringToForeground() method by the capability of bringing the Webview to foreground maximized.
Maxbe those PRs solve your problem at least partially?


Add highlights for the week ending 2022-05-27

Please remember to

[x] Give the PR a meaningful title -- it will be shown in the release notes
[ ] Add (or remove) user questions associated with any updated docs

as I'll be AFK for the next 2 days, I left a note for @giantswarm/team-honeybadger to provide with team contributions. In case you don't hear from the team on Friday morning, please feel free to ping @MarcelMue and/or @piontec


Support for high-DPI tiles

Right now the parameter OsmLayerParam.dpi is ignored. We should support tiles with a higher DPI.
For example MapBox provides high-DPI tiles for retina screens. These tiles use the 256x256 tiling scheme, but instead of a 256x256 image, you get a 512x512 tile.
For example:
16/33188/22542.png

<EMAIL_ADDRESS>
See also:
https://github.com/mapbox/mapbox-studio/issues/455
https://github.com/mapbox/mapbox-studio/issues/555

Moved from https://github.com/mapfish/mapfish-print/issues/478#issuecomment-262465946:
What should we do in the print to support HiDPI tiles?
As I understand to have HiDPI tiles we should:
Generate a specific tile set for HiDPI
Update the sended spec.json to use it

But there is nothing in the print... Did I miss something? Or do we want something better?


Error: Type or namespace does not exists

Hey, I try to run KlakSpout in Unity Version 2021.2.19f1 but I always get this Error:
Assets\Script\SourceSelector.cs(2,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Assets\Script\SourceSelector.cs(9,22): error CS0246: The type or namespace name 'Dropdown' could not be found (are you missing a using directive or an assembly reference?)
I didnt change anything of that and also in older versions it is not working :/ Would be a great help to get this working!

Please try adding the Unity UI package using the Package Manager window.


SQL config error on Mac OSX installation

With Python3 and pip3 on Mac OSX, there's a sql config error
$ sudo pip3 install -U https://github.com/clips/pattern/archive/development.zip

Collecting https://github.com/clips/pattern/archive/development.zip
  Downloading https://github.com/clips/pattern/archive/development.zip (24.8MB)
    100% |████████████████████████████████| 24.8MB 40kB/s
Collecting future (from Pattern==2.6)
  Downloading future-0.16.0.tar.gz (824kB)
    100% |████████████████████████████████| 829kB 850kB/s
Collecting backports.csv (from Pattern==2.6)
  Downloading backports.csv-1.0.5-py2.py3-none-any.whl
Collecting mysqlclient (from Pattern==2.6)
  Downloading mysqlclient-1.3.12.tar.gz (89kB)
    100% |████████████████████████████████| 92kB 2.5MB/s
    Complete output from command python setup.py egg_info:
    /bin/sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-build-c2voibrz/mysqlclient/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/private/tmp/pip-build-c2voibrz/mysqlclient/setup_posix.py", line 44, in get_config
        libs = mysql_config("libs_r")
      File "/private/tmp/pip-build-c2voibrz/mysqlclient/setup_posix.py", line 26, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    OSError: mysql_config not found

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-c2voibrz/mysqlclient/

I had the same error in MacOS High Sierra
Doing:
brew install mysql PATH=$PATH:/usr/local/mysql/bin
solved the problem

I found downloading Pattern from source allows you to use Pattern without worrying about SQL, until you actually need to use the database feature.

I got the same error as @alvations using the version from PyPI:
Emiel$ pip install pattern
Collecting pattern
  Downloading https://files.pythonhosted.org/packages/1e/07/b0e61b6c818ed4b6145fe01d1c341223aa6cfbc3928538ad1f2b890924a3/Pattern-3.6.0.tar.gz (22.2MB)
    100% |████████████████████████████████| 22.3MB 1.4MB/s
Collecting future (from pattern)
  Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
    100% |████████████████████████████████| 829kB 18.4MB/s
Collecting backports.csv (from pattern)
  Downloading https://files.pythonhosted.org/packages/71/f7/5db9136de67021a6dce4eefbe50d46aa043e59ebb11c83d4ecfeb47b686e/backports.csv-1.0.6-py2.py3-none-any.whl
Collecting mysqlclient (from pattern)
  Downloading https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz (90kB)
    100% |████████████████████████████████| 92kB 5.5MB/s
    Complete output from command python setup.py egg_info:
    /bin/sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/p0/dfmctn613mj8l2q3rpksnsz80000gn/T/pip-install-xcr99rmb/mysqlclient/setup.py", line 18, in <module>
        metadata, options = get_config()
      File "/private/var/folders/p0/dfmctn613mj8l2q3rpksnsz80000gn/T/pip-install-xcr99rmb/mysqlclient/setup_posix.py", line 53, in get_config
        libs = mysql_config("libs_r")
      File "/private/var/folders/p0/dfmctn613mj8l2q3rpksnsz80000gn/T/pip-install-xcr99rmb/mysqlclient/setup_posix.py", line 28, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    OSError: mysql_config not found

I am coming across this issue when I install pattern via pip (on python 3.6). I am installing this library as a dependency for gensim. I just need pattern for lemmatization features, is a mysql installation really required?
Several people have suggested installing mysql via brew or apt, but I need to install this library in an environment where things are pretty locked down. Not having a mysql dependency will make this much easier.

No. Mysql is needed for storing results. My solution above would work for you as well.

Having the same issue with OS Mojave 10.15.5 and the workaround from @curiousrohan seemed to work.

I had the same error in MacOS High Sierra
Doing:
brew install mysql
PATH=$PATH:/usr/local/mysql/bin
solved the problem

Performing these lines in terminal worked also for solving the problem in Jupyter Notebook 5.7.4 with Python 3.7.1 on macOS Mojave

I solved the problem using
brew install mysql
as mentioned above! thanks


(Julia) Migrated Julia

Description
Julia is a promising high-level, high-performance programming language for technical computing. It is used by a large and increasing number of people, and recently it has entered the 1st major version, and is becoming more stable. This is to migrate the original Julia chocolatey package to core team packages.
Motivation and Context

It fits the criteria of core team packages and automatic updating is needed for this package, hence the migration.

How Has this Been Tested?
The install/uninstall/shimming have been tested on my local windows 10 machine, as well as the chocolatey test environment.

Screenshot (if appropriate, usually isn't needed):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[x] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] All files are up to date with the latest Contributing Guidelines
[x] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

Original Location

Original Repository
Open Issues Add the different issues underneath, and tick those that are fixed in this PR

[x] https://github.com/FlorianRappl/Chocolatey-Julia/issues/1
[x] https://github.com/FlorianRappl/Chocolatey-Julia/issues/5

[ ] The original repository will be deleted or archived altogether if this PR is approved, since it is a one-package repository. (Include the link to the opened PR that removes the package from the original location)
[x] The migration guidelines have been followed, except for the PR to delete the original package (will do if required).

:white_check_mark: Package verification completed without issues. PR is now pending human review

There is one problem though, your username does not match to any known usernames of the maintainer of this package.
I also can not see any history of any triage for this package either.
Before we can merge and proceed with the migration of this package, we either need approval from @FlorianRappl (which seem to be the actual maintainer), or you'll need to follow the package triage process first and be added as a co-maintainer (see the documentation for the triage process).

I hereby approve this PR!

@FlorianRappl thank you for confirming.
@drelatgithub no worries, and yeah I noticed you added yourself as a maintainer in the nuspec file (this isn't used on chocolatey.org though).
One thing I missed initially though, is that the chocolatey user is supposed to be listed as the first maintainer in the nuspec file (as per our contribution guidelines). No matter though, I'll change that when I merge this in.
I've added chocolatey as a maintainer as well (we need to do that so we can push packages from this repo).
I would suggest that @drelatgithub to be added as a maintainer on the package page as well, if you @FlorianRappl agree with that?

Yes @AdmiringWorm I agree to that - @drelatgithub did a fabulous job here and I trust him 100% on this one (plus I was often lacking behind with the recent releases; so if anything comes up on Julia's side I am sure having more maintainers on the choco package is helpful). Thanks!

@FlorianRappl awesome.
@drelatgithub just to confirm, is your chocolatey username drel?
I'll send out a request so you can get added as a co-maintainer of the package (or @FlorianRappl could do that as well, since he is already the maintainer of the package).

@drelatgithub I've added you as a maintainer, you should have received an email from chocolatey where you need to confirm to be added as a maintainer.

Thanks @AdmiringWorm !
I still have a question though. It seems that the updated package of Julia has been submitted and approved on chocolatey, but the package in this repository remains untouched by auto-updaters. Is it the normal behavior?


Fix bug where the knife wasn't clean between use

This is intended to fix two issues that the annotation team found:

The knife was not cleaned in between use (so we were either slicing the banana with a dirty knife or scooping nutella with a dirty knife)
Sometimes "scoop nutella" would be immediately followed by "slice banana", an impossible combination.

@Purg PTAL, this needs to land on Monday to unblock the annotators.
If you have a better solution, lmk. I wasn't able to work out a graph that put the "clean knife" step in the correct spot while also maintaining that we can start with either "slice banana" or "scoop nutella". So this fix is kinda hacky, but seems to produce okay results.

It seems like we are encountering a real-world "critical resource" conflict (single knife for the recipe). Or alternatively considered an object is transformed such that another step is no longer satisfiable.
This solution is, for now, good enough as a short-term fix, but I do agree that we should come up with a more mature solution as this fix will not assist a next-gen task monitor algorithm.
Thinking out loud about the "real" issue: Either we will need to track "noun" resources as they are acquired/transformed by task steps, which can block other task steps, or consider that we have more than one instance of the nouns we are provided. I assume the latter is "easier" but may violate the recipe as provided, meaning that object resource usage tracking is the real way to go.


ios-How to implement a custom vibration pattern programatically

I want a create a custom vibration pattern from my code.So far i have searched dint get a proper idea on how to implement it.Any suggestions on implementing it.

Try reading through #262 a couple of times.


Chinese comments needing different translations

I noticed two comments in curriculum/dictionaries/chinese/comments.js that translated words that were actually code variable names.
Comment 1
  {
    id: 'tegkqa',
    text: 'Define the Container component here:'
  },

Container is a variable name that should not be translated.
Comment 2
  {
    id: 'ead98i',
    text: 'Global count variable:'
  },

count is a variable name that should not be translated.

Just fixed them. Thanks!

Just fixed them. Thanks!

Where is the PR?

Where is the PR?

This commit closed this issue.

This commit closed this issue.


PLAT-6631 Enable test fixture and testing building on Unity 2020

Goal

Uses a different manifest to install Unity 2019/2020 packages depending on the UNITY_VERSION defined.
Updates the pipeline to build and run test fixtures for the Android, MacOS, and iOS platforms across all supported Unity versions

After some discussion we believe the issues have been resolved and guarded against happening in the future.

It doesn't have to be part of this PR, but I think it'd definitely be a good time to consider whether the pipeline can be split into multi-stage builds at this point similar to how Android works - as the overall CI time is creeping up.
I'd be happy with just running tests on one Android/iOS/macOS platform when targeting an integration branch, and then running everything when targeting master/or when a manual trigger is pressed - this might need a bit of discussion with others though.

Yes, we've been putting some thought to this too.  We have a test epic coming up to enhance the way we do multi-stage builds (by dynamically generating pipelines), so it may make sense to wait for that pattern to establish itself before embarking on a change.  We also have the option of assigning another Unity license to speed the build up.


tying to login to Youtube so I can download my "Watch later playlist"

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2020.03.24
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--username', u'PRIVATE', u'https://www.youtube.com/playlist?list=WL']
Type account password and press [Return]:
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.16 (CPython) - Darwin-19.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:watchlater] Downloading login page
[youtube:watchlater] Looking up account info
[youtube:watchlater] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:watchlater] WL: Downloading webpage
ERROR: This playlist does not exist.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 3185, in _real_extract
    _, playlist = self._extract_playlist('WL')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2685, in _extract_playlist
    raise ExtractorError(message, expected=True)
ExtractorError: This playlist does not exist.

Description

When I run the following command:
youtube-dl -v --username "<myid>" "https://www.youtube.com/playlist?list=WL"
the login fail with the following message
WARNING: Unable to log in: HTTP Error 400: Bad Request

I didn't see any new ticket about this issue @dstftw

Yeah, this is becoming a bit of a mess.
AFAIK, this is still not working properly, i.e. you can't login to your Google/YT account with youtube-dl at the moment.
@dstftw correct me if I am wrong here.
This has been going for a while now. (Although, there is an option in the Google account settings: "Allow access to less-secure apps", maybe this works if you allow it temporarily).
If you want to access certain playlists on YouTube (or restricted videos, age-gated etc. pp.) you need to sign into YT in a browser, then simply use one of the good extensions to export your cookies, and finally use the resulting cookies.txt file with the --cookies switch from youtube-dl.


Move slime commons to submodule

Slime commons library should be a git submodule in this repo. Need to adjust workflow if needed, and update README accordingly with new instructions too.

Has been done by @adigyran in https://github.com/SlimeVR/SlimeVR-Server/commit/c035135fb779138b424ef2592d285e2e3c89573a


use ildasm.exe from a NuGet package

More of the work to make our build and tests independent of machine state.

Is this expected?
---------------- Done with build, starting pack/update/prepare ---------------
----------------  start update.cmd ---------------
Failed to compile D:\j\w\release_ci_pa---c6929ad7\release\net40\bin\fsc.exe because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
Failed to compile D:\j\w\release_ci_pa---c6929ad7\release\net40\bin\FSharp.Build.dll because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
Failed to compile D:\j\w\release_ci_pa---c6929ad7\release\net40\bin\fsi.exe because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Failed to compile D:\j\w\release_ci_pa---c6929ad7\release\net40\bin\FSharp.Build.dll because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
Failed to compile D:\j\w\release_ci_pa---c6929ad7\release\net40\bin\fsiAnyCpu.exe because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
Strong name validation failed. (Exception from HRESULT: 0x8013141A)
set NUNITPATH=packages\NUnit.Console.3.0.0\tools\
xcopy "packages\NUnit.Console.3.0.0\tools\*.*"  "D:\j\w\release_ci_pa---c6929ad7\tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
18 File(s) copied
xcopy "D:\j\w\release_ci_pa---c6929ad7\tests\fsharpqa\testenv\src\nunit*.*" "D:\j\w\release_ci_pa---c6929ad7\tests\fsharpqa\testenv\bin\nunit\*.*" /S /Q /Y
2 File(s) copied
SDK environment vars from Registry
==================================

@KevinRansom I believe the strong name failures are because we no longer sn -Vr the MS public key, so ngen.exe also fails.  My recently pulled PR that removes the build dependency on sn.exe (#3983) is indirectly linked with my PR that removes ngen.exe (#3993).


Questions about using the i-resnet for other applications.

Dear authors,
Thank you for your great work. Currently, I'm working on the application of semantic segmentation. So I wonder whether the i-resnet can be directly applied by semantic segmentation by simply changing the final classification layer (i.e. modified the following four lines). Or do u have other suggestions?
https://github.com/jhjacobsen/pytorch-i-revnet/blob/307413043e33540cbe9c3746ef420261f8138315/models/iRevNet.py#L134-L137
Thank you very much for your help in advance.

Hi, @xyIsHere
Do you have any progresses on semantic segmentation?


barebacked is 4 syllables, should be 2

Hi Savanah! Thanks for reporting this. PRs to solve this bug are welcome—for examples, see https://github.com/words/syllable/commit/bbcad6f860cfaac91d52387b05b540ff275cfc9d or https://github.com/words/syllable/commit/a30ec92b6070d68cce76ee0c5f15f4b514a53978!


org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body

when I SCROLL SEARCH "SearchScroll.Builder" ,result this expection "org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body"  ,how could I solve it ?

i got the same problem too.


bevy_reflect benchmarks

What problem does this solve or what need does it fill?
With an upcoming focus on animation, asset pipelines, and scenes, bevy_reflect is at the center of all 3, and its performance is going to be critical in driving all of them. We currently do not have any measurable benchmarks for any operation in bevy_reflect, and would be running blind into these features without them.
What solution would you like?
Benchmarks for the most common use cases across all 3 primary target features.
What alternative(s) have you considered?
Using bevy_reflect as-is.

These were added in #3690. Closing this.


Allow tradfri to transition between settings

Currently when the the bulbs attributes are changed they jump to the setting instead of transitioning to the new setting, this is quite jerky and doesn't look smooth. This also causes a huge contrast with the IKEA app that fades between all changes (this also seems to suggest that the bulbs can be set in a range of colour temps than fixed ones, but IKEA are doing fixed temps for simplicity). When I was talking to the Dev of the library he seems to have suggested that fade was supported by the library.

There is a branch called tradfri-observe, also supporting transitions. If I got things right, then there are problems with incompatibilities between libraries. See PR #7815 for more information.

Ahh, ok

Today I tested different scenes in Home Assistant with Tradfri lights and realized that the brightness transitions smoothly as expected but that the colour temperature instantly jumps. This can be best observed by switching between scenes similar to IKEA's "Relax" and "Focus" settings.

FYI currently transitions only work if the bulb is already on.

If the bulb is already ON, at full brightness, and call the light.turn_on service, passing the lowest brightness setting and a transition time, the transition time is respected.
This means you cannot use transition times in triggers.


Fix currency display on index tables

Allows the default currency field to render as well on resource index listing tables.

Oopsie, looks like an autocomplete related typo indeed. :) Thank you for the PR! I will release it immediately.


Clone content from page into modal?

I have a hidden form that I want to deep clone into my tingle modal so I can retain all the event listeners that my dev wrote. When I try modal.setContent($('#target').clone(true,true)) or var clone = $('#target').clone(true,true); modal.setContent(clone) I get this error:

Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

Is there a way to clone the form into the modal so I can keep all the event listeners?

Finally figured it out. My workaround was to add a new button to the modal content and use the onOpen event to add a click listener to the button, which would submit the form when fired. Not pretty, but it works.


webchat not responding issue in sharepoint modern site

hi all,
https://github.com/SharePoint/sp-dev-fx-extensions/tree/master/samples/react-aadtokenprovider-bot
i have used this complete code and did some modification to embed webchat in sharepoint modern site.
bot is also responding, but if user become idle for approx. more than one hour, bot stops responding.
there is no such issue showing in console regarding webchat.
i am not getting what kind of issue is there.
i need quick response on this.

@Bradrajkumar, it looks like your token needs to be refreshed.
Please note that your link is not a Web Chat sample and therefore we are unable to provide support. In the future I recommend taking your implementation questions to Stack Overflow.


fix comments in Kudos Controller and Avatar Controller

add more detail to comments and added more info regarding @param and @return

@chloealee just the two comments about northstar.com, but afterwards feel free to merge


Support for Horizontal Scrolls?

It appears that the scroll event is only triggered for a vertical scroll.
Any way to get it to work for horizontal scroll areas?

The script listens to a generic scroll event on scrollable areas, both horizontal and vertical scroll should be covered. Can you share the code on gist or codepen / jsbin?

Thanks for responding @verlok
Here's an example: http://codepen.io/mendel/pen/wamYyO
At least when I test, it stops loading images after the first couple.
Thanks!

It's an error on your side. You just didn't specify the container of the scroll.
You can fix it like that:
var myLazyLoad = new LazyLoad({
    data_src: 'src',
    container: document.getElementById('container')
});

See the fork of your example, fixed.
Cheers!


SQLiteException database is locked : BEGIN EXCLUSIVE

Hello,
Sometimes, i got BEGIN EXCLUSIVE exception while using CWAC-saferoom librarie for our database (see complete trace below).
While looking at the source code, i was wondering if there was not a problem with object lock on the Helper.java class because the method getWritableDatabase is synchronized to avoid multiple database creation but the getWrappedDb is not synchronized so you may create two wrappers on the same database.
SupportSQLiteDatabase getWritableSupportDatabase(char[] passphrase) {
      SQLiteDatabase db=super.getWritableDatabase(passphrase);

      return(getWrappedDb(db));
    }

    Database getWrappedDb(SQLiteDatabase db) {
      if (wrappedDb==null) {
        wrappedDb=new Database(db);
      }

      return(wrappedDb);
    }

Full exception traces
01-22 11:27:57.893 24879-24879/? E/UncaughtExceptionFragment: [main] - onCreateView uncaughtException=net.sqlcipher.database.SQLiteException: database is locked: BEGIN EXCLUSIVE;
                                                                  at net.sqlcipher.database.SQLiteDatabase.native_execSQL(Native Method)
                                                                  at net.sqlcipher.database.SQLiteDatabase.execSQL(SQLiteDatabase.java:2265)
                                                                  at net.sqlcipher.database.SQLiteDatabase.beginTransactionWithListener(SQLiteDatabase.java:706)
                                                                  at net.sqlcipher.database.SQLiteDatabase.beginTransaction(SQLiteDatabase.java:658)
                                                                  at com.commonsware.cwac.saferoom.Database.beginTransaction(Database.java:61)
                                                                  at android.arch.persistence.room.InvalidationTracker.internalInit(InvalidationTracker.java:153)
                                                                  at android.arch.persistence.room.RoomDatabase.internalInitInvalidationTracker(RoomDatabase.java:282)
                                                                  at com.android.database.Database_Impl.access$400(Database_Impl.java:21)
                                                                  at com.android.database.Database_Impl$1.onOpen(Database_Impl.java:72)
                                                                  at android.arch.persistence.room.RoomOpenHelper.onOpen(RoomOpenHelper.java:101)
                                                                  at com.commonsware.cwac.saferoom.Helper$1.onOpen(Helper.java:81)
                                                                  at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:182)
                                                                  at com.commonsware.cwac.saferoom.Helper$OpenHelper.getWritableSupportDatabase(Helper.java:158)
                                                                  at com.commonsware.cwac.saferoom.Helper.getWritableDatabase(Helper.java:121)
                                                                  at android.arch.persistence.room.RoomDatabase.compileStatement(RoomDatabase.java:204)

My code mirrors that of FrameworkSQLiteOpenHelper, the official implementation from Google that wraps the native SQLiteDatabase. It too does not use synchronized here.
Also, I am skeptical that synchronized here would help. There are two layers of synchronization needed, neither of which are at the level of the SafeRoom code:

We need synchronization in the SQLiteDatabase implementation that all of this wraps. That is handled by the native SQLiteDatabase and by the SQLCipher for Android implementation of SQLiteDatabase.

Consumers of a SupportSQLiteOpenHelper need to ensure that they are creating a singleton instance of SupportSQLiteDatabase. You appear to be using Room, and Room should be ensuring that it uses singleton instance of SupportSQLiteDatabase, assuming that you have a singleton RoomDatabase subclass.  Looking at the Room code, I do not see where they are synchronizing creation of the SupportSQLiteDatabase, though I am having some difficulty navigating all of their code and may be missing the relevant sections.

If you have a project that can reproduce this crash, I'd be happy to look at it and see if I can track down the problem.
If you are looking for a workaround, in your code that creates your singleton RoomDatabase, use getOpenHelper().getWritableDatabase() to force Room to create the SupportSQLiteDatabase inside your own synchronized code segment.

After further review of the code, I'm more comfortable that we're doing the right thing. It is the job of SQLiteOpenHelper to ensure that it creates a single instance of SQLiteDatabase. SQLCipher's does, and I presume that the native implementation does as well. It is the job of RoomDatabase to ensure that it creates a single instance of SQLiteOpenHelper, and that seems to be done as part of instantiation. So, AFAICT, the only way to wind up with two SQLiteDatabase objects is to have two RoomDatabase objects.
So, I'm back to needing a reproducible test case in order to proceed further.

Closing as not reproducible.


Add Linter for Python

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/23
Originally created by @jschatz1 on 2018-04-11 14:01:04

This issue is to track adding linters to python scripts.
cc @mbergeron @tayloramurphy

View 6 previous comments from the original issue on GitLab


Restore chat card descriptions

Currently, chat cards of items (assumably spells too) have no descriptions due to the recent migration.
(reverting it to data could've worked, but going through item.system does too; they're both on the chat card data object)

I think for this one, the better option would be to change the underlying data structure in ItemSFRPG#roll() rather than touching the template. Basically, change it like this:
const templateData = {
    actor: this.actor,
    tokenId: token ? `${token.parent.id}.${token.id}` : null,
    item: this,
    system: this.getChatData(htmlOptions), // <-- changed from data to system
    labels: this.labels,
    hasAttack: this.hasAttack,
    hasDamage: this.hasDamage,
    hasSave: this.hasSave,
    hasOtherFormula: this.hasOtherFormula
};

It's a little more consistent with the rest of the data model changes and is less confusing overall. I'm actually working on this right now, so I'm just gonna close this PR.


Crash with Ore Scanner

Minecraft Version: 1.12.2
Forge Version: <IP_ADDRESS>78
Advanced Rocketry Version: 1.2.6-44
LibVulpes Version: 0.2.7-24-universal
latest curseforge build: yes
https://pastebin.com/ecBL8ZhW
Explain issue in detail:
After a few seconds of clicking on the map of the ore scanner remote it crashes.

I believe i have discovered the cause for the crash.
The ore scanner GUI functions as it should but the moment i clicked outside the GUI the game began freezing and then crashing. Unsure if this is the cause and would like confirmation from other people if the same happens to them.

I built an ore scanning satellite with 3 large solar panels and 3 data storage units. I'm playing on FTB Continuum 1.4.1.
When I use the ore scanner, it takes forever to load up the ore data (but it does eventually display a map!), but when I try to click anywhere on the gui or off the gui the game crashes. It doesn't matter whether the map has loaded yet or not, clicking anywhere crashes the game.
Here's a crash log:
https://pastebin.com/KaMrMaAM

I can confirm that a crash occurs if you click outside the window.  Additionally there appears to be a crash associated with changing view distance too fast because of a race condition.


thumbs up, thumbs down cannot be changed and fixed feedback not accepting

Fixes #380, #385
Changes:

Remove thumbs up and thumbs after successfully submitted feedback to prevent multiple feedbacks
Fixed feedback not accepting issue

Screenshots for the change:

Before feedback (News)
After feedback (News)

@AnupKumarPanwar @batbrain7 please review!

@chashmeetsingh It is not checking and will display thumbs up and down again because from server side we don't have any check if the feedback is submitted or not, the same goes to realm database. All we can do is temporary disable thumbs up and down.

Yes, this is what is happening if we need to permanently reflect this, we have to change the Memory API from the server

@batbrain7 I am not sure how memory API can do that because messages don't have any ID associated and also, a anonymous user can submit feedback too.

IMO the Issue is still now fixed of user is able to provide feedback after he opens the app again.

Yes, thats a tricky part. We are allowing anonymous feedbacks as well as we need to identify the feedbacks uniquely.

@chashmeetsingh Web and Android client are also having this temporary feature. For now, can we add this? and in the future when server-side implement this, we will implement here too.

Ok, let'd iterate on this. Cheers.


fix(examples): webpack 3 App direct import description

It appears that in #2561 the decision was made to switch to using babel-plugin-lodash, but the description of how direct imports are handled was not updated

Released in<EMAIL_ADDRESS>


[google_maps_flutter] changing Traffic layer not working on android

https://gist.github.com/HamdanHD/c3a33265e468efa225de829d2b6dada9

main.dart
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Google Maps Demo',
      home: MapSample(),
    );
  }
}

class MapSample extends StatefulWidget {
  @override
  State<MapSample> createState() => MapSampleState();
}

class MapSampleState extends State<MapSample> {
  Completer<GoogleMapController> _controller = Completer();
  bool _traffic = true;

  static final CameraPosition _kGooglePlex = CameraPosition(
    target: LatLng(37.42796133580664, -122.085749655962),
    zoom: 14.4746,
  );

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: GoogleMap(
        mapType: MapType.normal,
        trafficEnabled: _traffic,
        initialCameraPosition: _kGooglePlex,
        onMapCreated: (GoogleMapController controller) {
          _controller.complete(controller);
        },
      ),
      floatingActionButton: FloatingActionButton.extended(
        onPressed: _updateTraffic,
        label: Text('Update Traffic!'),
        icon: Icon(Icons.traffic),
      ),
    );
  }

  void _updateTraffic() {
    print("pressed");
    setState(() {
      _traffic = !_traffic;
    });
  }
}

Run on android
changing Traffic layer not working on Android release/debug
Simply I am trying to show and hide traffic layer when a FAB is pressed, it works fine on IOS but its not working on Android.
iOS is ok
Target Platform: Android
Target OS version/browser: targetSdkVersion 28
Devices: All available
Logs

Analyzing testing...
No issues found! (ran in 4.1s)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.13.6 17G8037, locale en-AE)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 10.1)
[✓] Android Studio (version 3.5)
[!] VS Code (version 1.39.2)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)

@HamdanHD are there any errors in log when your run it in debug with --verbose flag?

Here is what I got
Launching lib/main.dart on Mi MIX 2S in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
Syncing files to device Mi MIX 2S...
W/PlatformViewsController(14433): Creating a virtual display of size: [1080, 2160] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2030].
I/zzbz    (14433): Making Creator dynamically
W/example.testin(14433): Unsupported class loader
W/example.testin(14433): Skipping duplicate class check due to unsupported classloader
I/DynamiteModule(14433): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221
I/DynamiteModule(14433): Selected remote version of com.google.android.gms.maps_dynamite, version >= 221
V/DynamiteModule(14433): Dynamite loader version >= 2, using loadModule2NoCrashUtils
I/DynamiteLoaderV2(14433): [71] Mapsdynamite
W/example.testin(14433): Unsupported class loader
W/example.testin(14433): Skipping duplicate class check due to unsupported classloader
I/Google Maps Android API(14433): Google Play services client version: 12451000
I/Google Maps Android API(14433): Google Play services package version: 19530037
W/example.testin(14433): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
D/NetworkSecurityConfig(14433): No Network Security Config specified, using platform default
E/GoogleMapController(14433): Cannot enable MyLocation layer as location permissions are not granted
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
W/com.example.testing(14433): type=1400 audit(0.0:27180): avc: denied { search } for comm=474C5468726561642037353138 name="ctx" dev="debugfs" ino=14066 scontext=u:r:untrusted_app:s0:c213,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
W/PlatformViewsController(14433): Creating a virtual display of size: [1080, 2160] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2030].
W/DynamiteModule(14433): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule(14433): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
I/DynamiteModule(14433): Selected remote version of com.google.android.gms.googlecertificates, version >= 4
I/DynamiteLoaderV2(14433): [71] Googlecertificates
W/example.testin(14433): Unsupported class loader
W/example.testin(14433): Skipping duplicate class check due to unsupported classloader
I/Adreno  (14433): DequeueBuffer: dequeueBuffer failed
I/Adreno  (14433): DequeueBuffer: dequeueBuffer failed
I/Adreno  (14433): DequeueBuffer: dequeueBuffer failed
W/OpenGLRenderer(14433): swapBuffers encountered EGL error 12301 on 0x7187302780, halting rendering...
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
D/libEGL  (14433): eglInitialize: enter
D/libEGL  (14433): eglInitialize: exit(res=1)
I/example.testin(14433): ProcessProfilingInfo new_methods=1079 is saved saved_to_disk=1 resolve_classes_delay=8000
I/flutter (14433): pressed

Seems duplicate with https://github.com/flutter/flutter/issues/42346.

Fixed with https://github.com/flutter/plugins/pull/2497. Closing the issue.


Gopher filter fails when encounter empty docs

https://github.com/allenai/dolma/blob/41ec1efb580457716fd7209de70974d66ba6f9fb/python/dolma/taggers/gopher.py#L103
When processing documents with no words

We are awaiting a response here: https://github.com/allenai/dolma/pull/98

Your pull request has been merged and this issue is therefore closed with this pull request https://github.com/centre-for-humanities-computing/danish-foundation-models/pull/234


Fix simple typo: dervived -> derived

Closes #650

Thanks for the fix! There is a large overhaul PR I'm working on and I'll resume processing the pending ones once mine is complete.

Coverage decreased (-1.1%) to 80.095% when pulling 0e657f9dfd732cb3c89023560d5457846280d761 on timgates42:feature/typo_derived into 679974effd56b407ac7ef49728cdce86bdd3f067 on pybuilder:master.


Enough logs are not there in create_network_postcommit

In create_network_postcommit can add a log with "network_info"
same applicable for all other post_commit methods

@log_helpers.log_method_call will record the function entry with paramaters.
Context is printed inside setNetWorkInfo, so no need to print network infor again

ok


bug in handling \r

I'm using yara from python with such rule (just an example for illustration of a problem):
rule my_rule {
strings:
$a = {
50 45 00 00
}
condition:
$a
}

where braces near hex digits located in different lines, and where each line ends with windows end-of-line \r\n - nothing works. I've got this tracelog:
Traceback (most recent call last):
  File "script.py", line 6, in <module>
    rules = yara.compile(source=rule_body, error_on_warning=True)
yara.SyntaxError: syntax error, unexpected '{', expecting _REGEXP_

and when I'm deleting all \r from file - everything works fine.
Console utility - yara64.exe - works fine when there are \r or \r\n, but not \r\r.
Why yara-python & yara64.exe behavior differs - I don't know.
I think problem is in file libyara/lexer.l:
\{(({hexdigit}|[ \-|\?\[\]\(\)\n\t]|\/\*[^*]*\*\/)+|\/\/.*)+\} {
must be
\{(({hexdigit}|[ \-|\?\[\]\(\)\n\r\t]|\/\*[^*]*\*\/)+|\/\/.*)+\} {

Fixed in f4b535fa2b8adb73a0494b8f96d16af0c920180d


window.FirebasePlugin.getToken

According to link below the registration token must be kept secret.

https://firebase.google.com/docs/cloud-messaging/concept-options
Registration token: An ID generated by the FCM SDK for each client app instance. Required for single device and device group messaging. Note that registration tokens must be kept secret.

How sensitive is the token? Can anyone with the registration token returned from a call to window.FirebasePlugin.getToken send notifications to the device ?
I need to save the token on the server and associate it with  the logged in user.
In my Cordova project can I safely call  window.FirebasePlugin.getToken and post this token to the server together with the user name?
Would it be unsafe to store the token in localstorage ?

Same question answered here: http://stackoverflow.com/questions/42102017/why-must-i-keep-the-registration-token-secret


Define Property Palette

Currently we don't have a way to just drag and drop the properties that are define in the flow to DM using palette. This will enhance the data mapping from the usability perspective

moved to product-ei repo at https://github.com/wso2/product-ei/issues/2436


Python AsyncProducer Implementation

Moving this implementation to 0.8.2-02 because we at least have a sync producer implementation in Python.

Is there a good reference point for the design of an async producer? Maybe another project that implements something similar or a kafka project design document. Given that, I can probably put one together.

That's the best idea I have.  The need for it was taken from the fact that there is a Scala one, so I've got no better source

The librdkafka docs may be of interest too: https://github.com/edenhill/librdkafka/blob/master/INTRODUCTION.md#producer-api
The approach there is that the underlying producer is always async; implementing a sync producer on top of it basically means producing through the async producer, and then waiting for the message delivery report(s) before returning:
https://github.com/edenhill/librdkafka/wiki/Sync-producer
(we did exactly that on the cffi branch: https://github.com/Parsely/pykafka/blob/feature/archived_rdkafka_cffi/pykafka/rdkafka/producer.py#L71 )

Started work on this here. It's still very prototypal, but I figured out some basic things. It's nowhere near ready for review.

Pull requested here. It's ready for initial review from @kbourgoin and/or @yungchin.

Ready for final review and merge

Merged!


finetuneNet.py

Hi...I am unable to find the file "finetuneNet.py".
Could you please tell me where it is.
Thanks.

Hi. After stores the embeddings in a pickle file (by running LM_extractor.py), you can use files in the "finetune_models" folder (as finetuneNet), for example, "MLP_LM.py".

okay. Thanks for the clarification.
There are some inconsistencies with the .py files in the finetune_models folder.
Some look for the .pkl file in the root folder, while some in the same folder.
Case in point:
LR.py Line 36 file = open('../' + inp_dir + dataset_type + '-' + embed + '-' + embed_mode + '-' + mode + '.pkl', 'rb')
MLP_LM.py Line 46 file = open(inp_dir + dataset + '-' + embed + '-' + embed_mode + '-' + mode + '.pkl', 'rb')
Would be great if you could look into them.
Thanks.


Update install.md

fix #34

Sorry for the delay, I've been partly off the grid this past week. Looks great, much appreciated.

No problem.


Unable to escape $ combination for use in PowerShell snippets

Issue Type: Bug
I have tried multiple combinations of backslashes and/or double dollar and cannot get this to work.
Steps to reproduce:
Make a powershell snippet-
{
"PowerShell Test Snippet": {
"prefix": "pstest",
"body": [
"$$Root\\$$Module"
],
"description": "Testing"
}
}

Using this snippet outputs $Root$Module but should output $Root\$Module.
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:35.976Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz (8 x 2808)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.89GB (17.39GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

powershell
ms-
2019.11.0

https://github.com/microsoft/vscode/issues/33933#issuecomment-328793257

But when I do the \\ as listed as the solution from #33933 followed by either a \$ or a $$ then all I get is the $

I figured it out. For $ you specifically need to use \\$$. Adding comment here in case anyone else gets stuck on this.


RUM-2572 WebView - force fullsnapshot in browser sdk when RUM native view changed

What does this PR do?
Because the player always needs a fullsnapshot as a starting state to apply the mutations whenever it needs to play a RUM view event we need to make sure that for the WebView we always force a fullSnapshotRecord in the Datadog browser sdk that is tracking the loaded web page whenever the RUM view changes.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #1807 (fd7fd93) into feature/sr-web-view-support (d02623f) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files
@@                       Coverage Diff                       @@
##           feature/sr-web-view-support    #1807      +/-   ##
===============================================================
+ Coverage                        83.66%   83.72%   +0.05%
===============================================================
  Files                              471      472       +1
  Lines                            16497    16531      +34
  Branches                          2473     2479       +6
===============================================================
+ Hits                             13802    13839      +37
+ Misses                            2015     2010       -5
- Partials                           680      682       +2

Files
Coverage Δ

...dog/android/sessionreplay/SessionReplayRecorder.kt
94.81% <100.00%> (+0.07%)
:arrow_up:

...essionreplay/internal/recorder/SnapshotProducer.kt
91.67% <100.00%> (+3.79%)
:arrow_up:

.../recorder/webview/WebViewBrowserSnapshotHandler.kt
100.00% <100.00%> (ø)

... and 30 files with indirect coverage changes


Associate project dir with new virtual environment

This adds a flag to pew that lets it know which directory to switch to when activating an environment with pew workon foo.
I really miss this feature from virtualenvwrapper, and I'd love still use this workflow, so if I've gone about this the wrong way, please let me know, and I'll see what I can do to make it right.
This fits the workflow I'm used to, but I understand it might impact other people's workflows.
Because of that, this may be blocked waiting for the PR on pew to add an option to prevent the directory changing when running pew workon, as that will offer a way to restore the existing behaviour.
Update: That's been merged now.
I wasn't sure where to add tests for this particular functionality, but I'm not entirely familiar with pytest, so I might have missed something.
If there's a place you think is appropriate for the tests, or a better way to achieve this, please let me know.

Hey @meshy thanks for putting htis together, sorry for the delay! We had some issues with our testing infrastructure recently and we are just getting that sorted.  Once that's straightened out I'd say we can merge this as a bolt-on for now. We can sort out the testing bit if we ever actually build out the feature in pipenv.
/cc @pfmoore #1824

Hey @techalchemy, no worries on the delay :)
I'm delighted you're happy with the concept of merging this. Thanks very much!

plz update onto master and we can resume work

No worries. I've just rebased, and repushed.

Thanks for pointing me in the direction of Pipes -- it does look very nice, but I'm concerned about moving to a project that's only a little over a day old. I'll keep an eye on it though.
At the moment, my work-around for this is to make the following call immediately after creating the virtualenv:
pipenv install --three
echo $(pwd) > $(pipenv --venv)/.project

@meshy can you pull from master and rebase?

The tests failures are unrelated, but I think it’s best to fix them first before merging. We can’t have a release until everything’s back working anyway…

FWIW, this PR solves the issue that the Pipes author mentions in their follow-up tweet.
The --link approach is kind of nasty but I could not think of another way to detect & tie envs to project dirs.

Hi @meshy -  How would this PR solve the issue?
Pipes needs a way to from a pipenv folder, know which directory the env was created from.
Will the additional pew flags create a .project file in the env folder?

@gtalarico Hey!

Will the additional pew flags create a .project file in the env folder?

Yes, exactly :)

Thanks!


PR: Argparse execution in IPython Kernel is now successful

Fixes #3883

Works great, thanks @andfoy!


In App Purchase documentation

I believe that the documentation needs improvement in the App Purchase plugin. I know it's still in early stage but it's quite hard to test it if the documentation is lacking.
For example I want to implement a subscription but there is no clear way to do it. I can get it to display in the app but I have no clue what to do in the purchaseUpdatedStream
Would be great to have a step by step example on how to implement the different types of payments, especially subscription as that tends to be a bit more complicated.
Currently this is how my method looks for the stream:
void _listenToPurchaseUpdated(List<PurchaseDetails> purchaseDetailsList) {
    purchaseDetailsList.forEach(
      (PurchaseDetails purchaseDetails) async {
        if (purchaseDetails.status == PurchaseStatus.pending) {
          //showPendingUI();
          print('pending');
        } else {
          if (purchaseDetails.status == PurchaseStatus.error) {
            //handleError(purchaseDetails.error);
            print('error');
          } else if (purchaseDetails.status == PurchaseStatus.purchased) {
            bool valid = await _verifyPurchase(purchaseDetails);

            if (valid) {
              await RepositoryServicePurchase.setSubscribed(true);
            } else {
              await RepositoryServicePurchase.setSubscribed(false);
              //_handleInvalidPurchase(purchaseDetails);
              print('invalid');
            }
          }
          if (Platform.isIOS) {
            InAppPurchaseConnection.instance.completePurchase(purchaseDetails);
          } else if (Platform.isAndroid) {
            InAppPurchaseConnection.instance.consumePurchase(purchaseDetails);
          }
        }
      },
    );
  }

This is probably the one that I have the hardest time wrapping my head around. How do I verify it? Should I create a firebase https cloud function if so what is needed for the Android part and iOS part
  Future<bool> _verifyPurchase(PurchaseDetails purchaseDetails) {
    // IMPORTANT!! Always verify a purchase before delivering the product.
    // For the purpose of an example, we directly return true.
    final serverVerificationData = purchaseDetails.verificationData.serverVerificationData;
    if (Platform.isIOS) {
      return Future<bool>.value(true);
    } else {
      // Android
      return Future<bool>.value(true);
    }
  }

not sure for firebase, but for other backend you can verify it with googleapis for android
https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get or
https://developers.google.com/android-publisher/api-ref/purchases/products/get
its important to know that you might need to link google cloud console with playstore before you create an product/subscription, we cant seem to verify product/subscription that was created before linking
also using libraries from google for your language seems to work easier then oauth
for ios see https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html
use https://buy.itunes.apple.com/verifyReceipt or https://sandbox.itunes.apple.com/verifyReceipt
with json body of receipt-data and the value of serverVerificationData and get the password with
https://www.appypie.com/faqs/how-can-i-get-shared-secret-key-for-in-app-purchase

Don't have much time but as soon as I get some time I will try it out. Thanks for the detailed answer!

Hi @RobertBrunhage
are you still experiencing this issue with the latest version of Flutter?
If so please reply attaching your flutter doctor -v

Started using RevenueCat instead so I don't have this issue anymore.

Thank you for your answer @RobertBrunhage
I feel safe to close this issue,
if you disagree please write in the comments
and I will reopen it


Fix run instructions in README.md

Goodbye P3, welcome GDX Particle Editor!

Thank you for making this one. I actually have this already in the dev branch, but I haven't merged it over yet. It's still important to update immediately though.


QG 4 checks (Release 3.2)

QG checks
Please keep this issue open until QG 4 is concluded and will be managed by the Issue Creator!
We will inform you about finding and proposals in separated issues, this issue here is for the Overview of the Checks!
Please keep this issue open until QG 4 is concluded!
Product Name: Portal Backend
Product Owner: @jjeroch
Dev SPOC: @evegufy
Helm Chart Version:
App Version:
QG5 Approval: yes/no
Check of Tractus-X Release Guidelines
This QG 4 Check is depending on the mandatory information from our current Release Guidelines.
TRG 1 Documentation

[x] TRG 1.01 appropriate README.md
[ ] TRG 1.02 appropriate INSTALL.md
[x] TRG 1.03 appropriate CHANGELOG.md

TRG 2 Git

[x] TRG 2.01 default branch is named main

[x] TRG 2.03 repository structure

Checks within TRG 2.03

[ ] TRG 2.03 /docs directory contains detailed product related documentation for the Tractus-X product
[ ] TRG 2.03 /charts directory contains the Helm chart for the Tractus-X product IF available
[ ] TRG 2.03 AUTHORS.md file (optional) (TRG 2.03)
[x] TRG 2.03 CODE_OF_CONDUCT.md file (TRG 2.03)
[x] TRG 2.03 CONTRIBUTING.md file (TRG 2.03)
[x] TRG 2.03 DEPENDENCIES file(s) with up to date content (Dash tool generated) (TRG 2.03)
[x] TRG 2.03 LICENSE file (TRG 2.03)
[x] TRG 2.03 NOTICE.md file (TRG 2.03)
[x] TRG 2.03 SECURITY.md file (TRG 2.03)

[x] TRG 2.04 Leading product repository

Checks within TRG 2.04

[ ] TRG 2.04 repository name must be productname without prefix or suffix
[x] TRG 2.04 should contain the release
[x] TRG 2.04 references/urls to the product's other repositories
[x] TRG 2.04 might contain product helm chart(s)
[x] TRG 2.04 README.md: contains the urls for the underlying applications

[x] TRG 2.05 .tractusx metafile in a proper format

TRG 3 Kubernetes

[ ] TRG 3.02 PersistentVolume and PersistentVolumeClaim is used when needed

TRG 4 Container

[ ] TRG 4.01 semantic versioning and tagging

[x] TRG 4.02 top level README.md file, that contains information about the used base image

[x] TRG 4.03 Image has USER command and Non Root Container

Checks within TRG 4.03

[x] TRG 4.03 deployment.yaml has runAsUser and allowPrivilegeEscalation: false properly set

[x] TRG 4.05 released image must be place DockerHub as mandatory container registry; remove GHCR references

[x] TRG 4.06 Notice File for DockerHub has all necessary information

Checks within TRG 4.06

[x] TRG 4.06 Link to the source of your base image (Container registry and GitHub if available)
[x] TRG 4.06 Link to your product image on DockerHub
[x] TRG 4.06 Link to your repository on GitHub
[x] TRG 4.06 Direct link to the Dockerfile used to build your image
[x] TRG 4.06 Link to LICENCE file in your repo as Project License (make clear, that this is the PROJECT licence, not an image license

TRG 5 Helm

[ ] TRG 5.01 Helm chart must be released

Checks within TRG 5.01

[ ] TRG 5.01 appropriate semantic versioning for version and appVersion has to be used in Chart.yaml
[ ] TRG 5.01 must not contain any environment specific values-xyz.yaml
[ ] TRG 5.01 values.yaml file must contain proper default values/placeholders
[ ] TRG 5.01 No hostname provided for ingress
[ ] TRG 5.01 Ingress is disabled
[ ] TRG 5.01 No references to any secret engine service (e.g.: Hashicorp Vault)
[ ] TRG 5.01 Dependencies should be prefixed with the nameOverride and/or fullnameOverride properties
[ ] TRG 5.01 Image tag is set to the Chart.yaml appVersion property
[ ] TRG 5.01 must be deployable to any environment without overwriting default values with a simple helm install command
[ ] TRG 5.01 dependencies have to be declared in Chart.yaml NOT requirements.yml

[ ] TRG 5.02 Helm chart location in /charts directory and correct structure

Checks within TRG 5.02

[ ] TRG 5.02 each file must contain the Apache 2.0 Licence
[ ] TRG 5.02 latest tag is not used in helm chart be default

charts/
    chartNameA/
      Chart.yaml
      ...
    chartNameB/
      Chart.yaml
      ...
AUTHORS.md
DEPENDENCIES.md
LICENCE
README.md

[ ] TRG 5.04 CPU and memory limits and requests are properly set

[ ] TRG 5.06 application must be configurable through the Helm chart

[ ] TRG 5.07 dependencies are present in the Chart.yaml they are properly configured

[ ] TRG 5.08 a product has a single deployable helm chart that contains all components

Checks within TRG 5.08

[ ] TRG 5.08 name of the Chart should be just the product-name without prefix or suffix
[ ] TRG 5.08 values file should contain all available variables (even from subcharts) with default values and comments about what they do
[ ] TRG 5.08 helm install command should successfully install the chart to any supported Kubernetes version cluster (without overwriting default values)
[ ] TRG 5.08 helm test runs without errors

[ ] TRG 5.09 Helm Test running properly

Checks within TRG 5.09

[ ] TRG 5.09 A GitHub action exist which builds or uses the helm chart which gets released
[ ] TRG 5.09 The GitHub action can be triggered manually through Github WebUI manually running a workflow
[ ] TRG 5.09 Helm test verifies that the application is up and running

[ ] TRG 5.10 Products need to support 3 versions at a time

Checks within TRG 5.10

[ ] TRG 5.10 latest (K8s version 1.25)
[ ] TRG 5.10 latest - 1 (K8s version 1.24)
[ ] TRG 5.10 latest - 2  (K8s version 1.23)

[ ] TRG 5.11 Upgradeability PRERELEASE

Checks within TRG 5.11

[ ] TRG 5.11 Based on the Helm test workflow, you must provide a GitHub action which takes the latest released helm chart, does an installation of it and then execute the upgrade to the current / new version.

TRG 6 Released Helm Chart

[ ] TRG 6.01 Released Helm Chart

TRG 7 Open Source Governance

[x] TRG 7.01 Legal Documentation

[x] TRG 7.02 License and copyright header

[x] TRG 7.03 IP checks for project content

[x] TRG 7.04 IP checks for 3rd party content

Checks within TRG 7.04

[x] TRG 7.04 DEPENDENCIES file is up-to-date and reflects the current use of the 3rd party content
[x] TRG 7.04 all libraries listed there should have the status "approved"
[x] TRG 7.04 no libraries with status "rejected"
[x] TRG 7.04 for libraries with status "restricted", the according IP issues must be present (issue number in the source column)

[ ] TRG 7.05 Legal information for distributions

[ ] TRG 7.06 Legal information for end user content

[ ] TRG 7.07 Legal notice for documentation

Hints
Information Sharing

Hi @evegufy,
This issue is for portal backend, please confirm on below:
Product Owner: @jjeroch
Dev SPOC: @evegufy
and provide following:
Helm Chart Version:
App Version:

Portal-backend repository is part of Portal product with portal-cd as leading repository which keeps main helm chart installing all required components hence skipping TRG 5.x & TRG 6.x for this specific repo.

One for missing headers: https://github.com/eclipse-tractusx/portal-backend/issues/220

Hi @evegufy One for missing headers: #220
Can you also help me understand if SemVer is used for IAM-seeding images? Not sure if I can find it at docker hub: https://hub.docker.com/r/tractusx/portal-iam-seeding/tags

Hi @tomaszbarwicki thanks, I'll solve https://github.com/eclipse-tractusx/portal-backend/issues/220 shortly
Regarding IAM-seeding image: This job is following the versioning of portal-iam.
So https://hub.docker.com/layers/tractusx/portal-iam-seeding/iam-v1.2.0/images/sha256-2add410d9c31e165aa90d0bff731a8277266c662be4bb613751d68c4248e3017?context=explore is currently relevant.
The image is mentioned there https://github.com/eclipse-tractusx/portal-iam/blob/chores-3.2-release/README.md#notice-for-docker-images
According to our keycloak roadmap this job will be moved to  portal-iam latest in PI11, it'll be more intuitive then.

Hi @tomaszbarwicki regarding final RC version for QG4:
Helm Chart Version: 1.6.0-RC8
App Version: 1.6.0-RC8

Hi @evegufy One for missing headers: #220
Can you also help me understand if SemVer is used for IAM-seeding images? Not sure if I can find it at docker hub: https://hub.docker.com/r/tractusx/portal-iam-seeding/tags

Hi @evegufy One for missing headers: #220
Can you also help me understand if SemVer is used for IAM-seeding images? Not sure if I can find it at docker hub: https://hub.docker.com/r/tractusx/portal-iam-seeding/tags

Hi @tomaszbarwicki, image compliant with SemVer was provided: https://hub.docker.com/layers/tractusx/portal-iam-seeding/v1.2.0-iam/images/sha256-93a9559d302bf36082e9bf0aeea8c63d82278f462afdb6aaa950b1504af80ee9?context=explore

@evegufy, can you please let me know how you implement TRG 7.05 Legal information for distributions, not sure where to find build instructions..

@tomaszbarwicki sure here's the PR https://github.com/eclipse-tractusx/portal-backend/pull/104

Checks completed, issue closed.


Improved algobattle init cli

This improves the cli interaction of algobattle init in two ways:

It cleans up the help message my moving the language choices into a neater display at the bottom.
It adds the --new flag to enable creating entirely new projects with a blank problem template. You can then use eg algobattle init --new -p "Very Fancy Problem" -l python to create a new folder for the Very Fancy Problem that already contains templates for the problem file, a blank config, and generator/solver templates. This addresses #150.

Nice, this should make it easier to write a problem from scratch.


Unable to forbidden tcp lisener

Environment

OS: Ubuntu 14.04
Erlang/OTP:
EMQ: 2.0.2

Description
In our environment, we only want to enable connections via ssl or wss listeners.
However, even if the tcp listeners is disabled(comment out) in emq.conf, it is still reachable. And if you check the dashboard, you will see the tcp listen there.
Please see attached screenshot.

you can temp block it by firewall ;-)

@renwanly ;) A quick fix: https://github.com/emqtt/emqttd/pull/797

@renwanly Yes, I have to block it via security rules now.


Custom Editor, contribute to the context menu?

For my form designer custom editor, I was hoping to add commands to the right-click context menu, but this doesn't seem to be possible at the moment?

If you have no plans to allow us to contribute to this menu, can we at least disable it so that we can provide a custom version inside the webview?   At the moment, it doesn't appear to be possible to customize it, nor disable it.

Duplicate of #54285