Change term - pathway: foodContaminant

Term change

Submitter: @tucotuco  John Wieczorek
Efficacy Justification (why is this change necessary?): grammar
Demand Justification (if the change is semantic in nature, name at least two organizations that independently need this term): No semantic change
Stability Justification (what concerns are there that this might affect existing implementations?): No stability implications
Implications for dwciri: namespace (does this change affect a dwciri term version)?: None

Current Term definition: https://dwc.tdwg.org/pw/#dwcpw_p023
"Foods for human consumption, whether they are transported life or dead."
Proposed attributes of the new term:

Definition of the term (non-normative):
"Foods for human consumption, whether they are transported live or dead."

For what it's worth, I'm fine with this change as it is the correction of a typo.

I would agree, but am puzzled why "Foods" has an "s"--food is a non-countable noun, additionally taking a singular verb.  If we actually mean kinds of food, that is where "foods" is appropriate, but actually aren't we talking about contaminants of food?

Should we do a general review of all controlled vocabulary terms for
non-normative changes?
On Mon, Aug 23, 2021 at 10:10 AM gkampmeier @.***>
wrote:

I would agree, but am puzzled why "Foods" has an "s"--food is a
non-countable noun, additionally taking a singular verb. If we actually
mean kinds of food, that is where "foods" is appropriate, but actually
aren't we talking about contaminants of food?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tdwg/dwc/issues/383#issuecomment-903752822, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADQ723FUJNHVT4TORBFMVTT6JCFJANCNFSM5CTV6TZA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

This would not be a be a bad idea if someone has time to do it.

OK, here are my recommendations for non-normative changes. Most of them are to fix grammatical errors. I am working on the controlled vocabulary XML files called upon by the IPT, so it would be useful to get confirmation from at least one other author (@qgroom, @peterdesmet, @baskaufs) that these fixes are satisfactory. I will note all of the ones related to pathway here (rather than one issue per term).
All Notes should end in a period. Affects many terms.
All etc. should end in a period except at the end of a sentence that ends with a period. Affects many terms.
https://dwc.tdwg.org/pw/#dwcpw_p002 Change Notes to, "Probably only applicable to plants. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p006 Change Notes to, "The organism was released with the intention of improving the conservation status of the species or the conservation status other species in the habitat. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p009 Change to, "Plants grown with the intention of harvesting."
https://dwc.tdwg.org/pw/#dwcpw_p015 Change Definition to, "Organisms escaped from a fur farm, including unauthorised releases."
https://dwc.tdwg.org/pw/#dwcpw_p016 Change Notes to, "This term excludes plants and other organisms from aquaria and terrariums, which SHOULD be classified under the pet/aquarium/terrarium term."
https://dwc.tdwg.org/pw/#dwcpw_p018 Change Definition to, "Plants and animals introduced for the purpose of breeding or scientific and medical research, including science education."
https://dwc.tdwg.org/pw/#dwcpw_p019 Change Definition to, "Live food imported for human consumption or live bait, such as shellfish and snails."
https://dwc.tdwg.org/pw/#dwcpw_p023 Change Definition to, "Foods for human consumption, whether they are transported live or dead."
Change Notes to, "This term includes unintentional introduction of contaminants (such as diseases) on foods, including seeds. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p028 Change Notes to, "These may be parasites or pathogens of seeds or species that eat seeds, whether intended to be transported or not. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p029 Change Definition to, "Contaminants on unprocessed timber, processed wood and wood-derived products."
https://dwc.tdwg.org/pw/#dwcpw_p032 Change Definition to, "Stowaways transported in or on cargo containers or bulk cargo units."
https://dwc.tdwg.org/pw/#dwcpw_p032 Change Notes to, "The difference between this category and others, such as "hitchhikers on ship/boat", is that the organism embarked and disembarked from the container rather than the ship. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p033 Change Notes to, "This term does not apply to organisms that embarked in containers that were subsequently loaded onto an aircraft. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p034 Change Notes to, "This term does not apply to organisms that embarked in containers that are subsequently loaded onto the ship, nor to contaminants of products loaded onto the ship. The term is intended for organisms that directly interact with the boat or ship. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129."
https://dwc.tdwg.org/pw/#dwcpw_p036 Change Definition to, "Organisms transported on people and/or their personal luggage."
https://dwc.tdwg.org/pw/#dwcpw_p041 Change Notes to, "Examples include fouling from offshore oil and gas platforms, offshore renewable energy sites (such as wind farms, pipelines, cable transport, etc. See also Harrower et al. 2017 http://nora.nerc.ac.uk/id/eprint/519129".
https://dwc.tdwg.org/pw/#dwcpw_p048 Change Definition to, "An umbrella term for all species transported by riding on forms of transport where the organism has a direct interaction with the transport and is not merely carried as part of, or a contaminant of cargo."

As with my other comment https://github.com/tdwg/dwc/issues/385#issuecomment-905109319 I would really prefer that we not follow any URLs directly with periods. If we must have a period, then let it be a space and a period. I realize that may be offensive to our punctuation sensibilities, but it introduces an unnecessary degree of uncertainty about the end of the URL given that URLs can have (and end with) periods.

It look go to me!
Thanks

All fixed.


Value Error for demo python code

I am getting the error 'ValueError: Cannot feed value of shape (1, 64, 64, 64, 1) for Tensor u'Placeholder:0', which has shape '(4, 64, 64, 64, 1)'' after running the demo_3D-RecGAN++.py. Could you please suggest any possible alternative/solution?

@kunalkhadilkar sorry for the delay. which version of tf do you use? It works fine on my pc. The released trained model should be able to take in the dynamic number of batch size.

@feidasheng  Please refer this #13


double word "to" Signed-off-by: vonsago<EMAIL_ADDRESS>

There are double words "to".
Description:
Risk Level: n/a
Testing: yes
Docs Changes: no
Release Notes: no

Thank you for your contribution but we do not accept PRs like this as they are generally trying to game commit/contribution statistics. Please feel free to bundle this PR into another larger contribution. Thank you!


feat: unify profile and assets (part 1)

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[x] Feature
[ ] Refactoring

Context

[x] Related #5820

Copilot Summary

🤖 Generated by Copilot at 738ed9e
This pull request introduces a new design for the connect wallet modal and the wallet asset component, using the useExperiments composable to toggle between the old and new versions. It also adds new components and props to display the user's identity and NFTs, and to customize the appearance of the NeoButton component. It fixes a syntax error in the ConnectWalletModal component and updates the IdentityItem and MediaItem components from the @kodadot1/brick library.

🤖 Generated by Copilot at 738ed9e

We are the masters of the wallet, we show our identity
We query the NFTs from the Subsquid API
We use the experiments to test the new modal
We style the buttons with the rounded and tag props

@exezbcz should I hide it under ?redesign=true or not needed? https://deploy-preview-6112--koda-canary.netlify.app/?redesign=true

@preschian if it's going to be done In more steps, then it makes sense.

should I hide it under ?redesign=true

@preschian yes please so whenever we would need to do some emergency release we have runway clear, you never know 😄
Looking awesome, looking forward to a new craft!

Good job!
some visual things
Top part

please align the profile button with the profile picture - like in the image above
current version:

please add a solid stroke around the pfp

Buttons

buttons have a bit different hover effect and different padding

default state is k-shade stroke, hover change to black - that will make the button secondary.
same button style is then used also in the "portfolio view" redirect

if we are using the fa sharp library, I would make the icons regular weight
the current ones are too light imo

let me know if any other library is used

Recent nfts

for me, the middle one is missing (or not loading, not sure)
if there are only two images, I would opt for aligning them to the left. Therefore removing the gap

Spacing

space between dividers and content is 16px

Dividers

make them k-shade in light mode, k-hovergrey in dark mode

One small thing

would it be possible to align text to baseline - for example here

Thank you!

@roiLeo @exezbcz updated

yup, good!
can you please add the small arrow as in the design?

can you please add the small arrow as in the design?

oh, added 👍


Difficulty Breaking Boxes

I'm using a digital copy of Moon. I managed to break the key and get my TSV, but I cannot get it to break my boxes. I followed the instructions on Dumping - Saves page, I believe.
What I get, when I check the Dumping tab on KeySAVe, is 4 slots - 3 of which are ghosts.
~B1 - 5,1
~B2 - 3,6
B5 - 1,1
~B6 - 1,6
I'm wondering if this is an issue with my key not breaking properly, but I'm unsure how to check this - it always tells me there's no need because I already have a key. I've tried quite a few .sav files, moving the Pokemon and the empty boxes around in various ways.

This seems strange. If KeySAVe detects that a key slot isn't working properly it should clear it and start over. Can you send me the save files you used so I can reproduce the issue?

I can do that. I'll email them to you right now.
I'm still not sure how the slot in Box 5 opened. I didn't have anything in it at the time nor was I trying to break it. I've dumped some more save files since then, and it did unlock a few slots, but they seemed random and usually were not even the ones I was trying for. Trying to unlock a bunch either results in the KeySAVe not even noticing there's been a change, a ghost, or a random unlock.

I'm sorry I couldn't get back to you earlier. Life's been quite busy. I am looking into this right now and quite frankly the behavior I'm seeing is just super weird.
Is the language of you save file Japanese? Can you also send over other files you've tried so I have some more data to work with?

In fact, it appears I have faced a similar issue before and wasn't able to resolve it at the time. It manifests itself through a OT language ID that is way out of the valid range.

No worries, I've been super busy as well. I'll email you the last few saves from when I was really trying to get it to work.
It should be in English unless something incredibly bizarre happened. I've been playing in English anyways, and the OT is Lilith.


Fix [Shift] + [PointerWheel] should scroll horizontally

What does the pull request do?
If the user holds [Shilft] while turning the mouse wheel the scroll should be horizontal. This works for Mac but not for Windows. This PR should enable this behavior for all platforms.
What is the current behavior?
Different behaviors for different platforms, see #7459
What is the updated/expected behavior with this PR?
Same behavior for all platforms
How was the solution implemented (if it's not obvious)?
If [Shift] is pressed and the scroll-vector is not horizontally the vector gets shifted
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

I need your advice here: I think this is a bug, so not a breaking change. If you think it is a breaking change, let me know.
Obsoletions / Deprecations

Fixed issues
Fixes #7459

You can test this PR using the following package version. 0.10.999-cibuild0018473-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

@maxkatz6 I see the branch ia out of date. Should I do a rebase later?

You can test this PR using the following package version. 0.10.999-cibuild0018745-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


Reduce Torch install verbosity

As suggested by @lukeyeager prepending the install command
with travis_wait will print a log message every minute
for 20 minutes, allowing Torch install to take a little more
than the usual <10 minutes.

I was not able to verify whether this is working as on the last instance it took less than 10 minutes to install Torch.

Also I couldn't simply prepend travis_wait to the command-line as the output redirection I was using for the Torch install script was also catching the log messages from the travis_wait command. So I moved the command to install Torch to a shell script.

Also tested with debug patch which adds sleep 180 to Torch install script:
https://github.com/gheinrich/DIGITS/commit/166fdb300a0c362feaabe5c5c09520e65f84468d
Corresponding Travis build:
https://travis-ci.org/gheinrich/DIGITS/builds/88911845
Torch install took 745s but there was no timeout.

I think this solution is acceptable, but let's create the file in scripts/travis/ rather than creating it manually in the .travis.yml with echo commands.
Also, you need to rebase after https://github.com/NVIDIA/DIGITS/pull/397.

Thanks Luke I have created a wrapper to the torch install script on scripts/travis/install-torch-wrapper.sh


fix: async function as next config

fix #251

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.64%. Comparing base (ba41a27) to head (ddd0832).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #252      +/-   ##
==========================================
- Coverage   90.60%   80.64%   -9.96%
==========================================
  Files          30       30
  Lines        2405     2413       +8
  Branches      336      162     -174
==========================================
- Hits         2179     1946     -233
- Misses        226      461     +235
- Partials        0        6       +6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Consistent usage of terms. Levels of Security diagram

Keep the terms consistent!
The "levels of security" diagramm has Privileged Access, the other layers are labeled *** Security. The text below talks about "privileged security"

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

ID: db39f91f-f63d-bc58-bb38-bf9bd4316a3b
Version Independent ID: 30f1a43b-e220-209e-f36f-be3f76beef27
Content: Developing a privileged access strategy
Content Source: articles/active-directory/fundamentals/security/privileged-access-strategy.md
Service: active-directory
Sub-service: ****
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@sailando
Thanks for your feedback! We will investigate and update as appropriate.

I do see it referred to as "privileged access" everywhere else. I made a pull request to update the text to that. https://github.com/MicrosoftGuyJFlo/azure-docs-pr/pull/13
@MicrosoftGuyJFlo let me know if I'm missing anything there.
@sailando you can feel free to create your own pull requests for these types of updates rather than create Github issues.


Data Extraction

data extraction workflow for offline training

TODOs:

[ ] Reuse training code to parse data but instead of training, use some sort of search or parse to filter for specifically data from the known attacker IP and victim IPs, listed in the Element
[ ] Data exploration after that
[ ] Model re-evaluation (somewhat dependent on #25)


updated input url to match current update for vsco ripper

Instead of "vsco.co//images/1" it is "vsco.co//gallery"
Category
This change is exactly one of the following (please change [ ] to [x]) to indicate which:

[ ] a bug fix (Fix #...)
[ ] a new Ripper
[ ] a refactoring
[ ] a style change/fix
[ ] a new feature

Description
Please add details about your change here.
Testing
Required verification:

[ ] I've verified that there are no regressions in mvn test (there are no new failures or errors).
[ ] I've verified that this change works as intended.

[ ] Downloads all relevant content.
[ ] Downloads content from multiple pages (as necessary or appropriate).
[ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.

[ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:

[ ] I've added a unit test to cover my change.

Fix was already submitted. See #1592
You forgot to change the pattern at the getUserName method, therefore it doesn't work the way you sumitted it.

Fix was already submitted. See #1592
You forgot to change the pattern at the getUserName method, therefore it doesn't work the way you sumitted it.

Thanks, Felix
Didn't realize, this was also my first time contributing so I guess I missed that error. Thanks for the update, I appreciate this. Hopefully I can help in the future more.
Nick


[REEF-768] Fix high-priority warnings reported by Findbugs

JIRA:
REEF-768
Pull Request:
Closes #

@tcNickolas This looks great. One suggestion I have is to change CharSet.forName("UTF-8") in getBytes and "UTF-8" in StreamReader to StandardCharsets.UTF_8.

I've done replacement and published new version

@tcNickolas This looks good. I will test and merge.


How to get access to SSHd again once gogs was installed?

I cannot login into SSH anymore, because gogs is blocking SSHd authentication.
I know, I should've used another user. But it's not possible to revert the past, and it's time to fix it now in the future.

User Experience Level: -1. I did not expect to completely break my system when I install gogs. Why was there no BIG RED warning that hinted me that my SSHd will never work again?

I have access to the physical filesystem of the SD card. I cannot afford to install my OS from scratch, I want to recover it. I had no password for root and only one user that is now used by gogs, which is started by a systemd service. I cannot ssh into the system, because it had only one user and root has no password and the single user is the one that is "blocked" by gogs now.

How can I remove the authentication modifications that gogs did to my SSHd? How does it work and how to disable it, so I can go back into my system and login via SSH as before?

Error message so people can google this issue later:
ssh<EMAIL_ADDRESS># or whatever...
PTY allocation request failed on channel 0
Hi there, You've successfully authenticated, but Gogs does not provide shell access.
If this is unexpected, please log in with password and setup Gogs under another user.

mount your sd card on a different machine and delete ~myuser/.ssh/authorized_keys.

Please read https://discuss.gogs.io/t/how-to-config-ssh-settings/34.


CF-CLI V7 removes --hostname option/ flag from cf push

As per:
https://docs.cloudfoundry.org/cf-cli/v7.html
The --hostname flag used in (at least) the instructions for deploying the prometheus exporter app has been removed.
New docs suggest using the manifest routes section instead.
This breaks the examples here for deploying the prometheus exporter here:
https://github.com/alphagov/paas-tech-docs/blob/master/source/documentation/monitoring_apps/metrics.md
source/documentation/monitoring_apps/metrics.md
cf push --no-start prometheus-exporter --hostname prometheus-exporter-ORGNAME
Will not work and returns Incorrect Usage: unknown flag '--hostname'

I'm not sure if PAAS docs are actually supporting cf-cli v7 yet but thought I'd note this for visibility 👍


pagination search issue

Please add _debounce feature in pagination , because some time result show duplicate. please asap resolve this issue

https://github.com/mdikcinar/searchable_dropdown/pull/7

not perfectly work debounce
I want to ,If I type in search field after complete my typing then hit the remote api otherwise continue the typing

there is already 800ms debonce for that case. Is it not working? can you share an example case.

i thinks its work only 200ms,
If you can change the functionality of debonce like this
_onSearchChanged(String query) {
if (_debounce?.isActive ?? false) _debounce.cancel();
_debounce = Timer(const Duration(milliseconds: 500), () {
// do something with query
});
}
if typing continue the priovous cancel debounce and create new one

now work is handle for 800ms the hit api if i typing is continue or not that why hit api twice and result show twice.
please use this code for dobouce or if possible to set the timing of dobouce in paginated function

Yeah but i already have a cancelable operation for search bar's on change, but i will also test it when i available.
    CancelableOperation<dynamic>? cancelableOperation;

    void startCancelableOperation() {
      cancelableOperation = CancelableOperation.fromFuture(
        Future.delayed(changeCompletionDelay),
      );
    }

    return Padding(
      padding: const EdgeInsets.all(8),
      child: TextField(
        controller: controller,
        focusNode: focusNode,
        onChanged: (value) async {
          await cancelableOperation?.cancel();
          startCancelableOperation();
          await cancelableOperation?.value.whenComplete(() {
            onChangeComplete?.call(value);
          });
        },
        style: style,
        decoration: InputDecoration(
          contentPadding: EdgeInsets.zero,
          isDense: true,
          border: InputBorder.none,
          hintText: hintText,
          icon: leadingIcon,
        ),
      ),
    );

if you are think code is ok then please check it dropdown value not show duplicate many times. please show unique entry. otherwise please implement this dobounce method.

I tested my code, it works well. But i figure out that the completion delay is default 200ms. So i added that value to constructor. Now you can give your completion delay what you want. Can you try it on https://github.com/mdikcinar/searchable_dropdown/tree/feature/searchDelay branch. You sould see changeCompletionDelay parametter.

If you say thats okey, i will publish a new version. But if your problem still continues i need an example case for that bug. Its not happens on my example project.

now your example code is working fine please push the code i will test it on our code

https://github.com/mdikcinar/searchable_dropdown/pull/9


Wrong currentZone value inside of onInvoke hook

Hi, there.
According to comments I found in zone.ts file, onInvoke hook has to receive currentZone as second parameter:
`/**

Allows interception of the callback invocation.

@param parentZoneDelegate Delegate which performs the parent [ZoneSpec] operation.
@param currentZone The current [Zone] where the current interceptor has beed declared.
@param targetZone The [Zone] which originally received the request.
@param delegate The argument passed into the run method.
@param applyThis The argument passed into the run method.
@param applyArgs The argument passed into the run method.
@param source The argument passed into the run method.
*/
onInvoke?:
(parentZoneDelegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, delegate: Function,
applyThis: any, applyArgs: any[], source: string) => any;`

I created an interceptZone, which I suppose should be passed as current zone to my hook method. But for some reason I receive the same value as targetZone.
I created a demo HERE, which depicts the described problem.
Am I missing something?
Thanks,
Oleksiy

It seems a bug when currentZoneSpec has not onInvoke callback or maybe zone.js designed that way, I'll confirm it, thanks for posting the issue.

close for fixed


gnupg21: 2.1.19 -> 2.1.20

See http://lists.gnu.org/archive/html/info-gnu/2017-04/msg00002.html
for release information
Motivation for this change
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

This probably broke the aarch64 build: https://hydra.nixos.org/build/51255968.

hmmmmmm, libiconv is a build input...
Also, I would think it may have to do with all the messages about "No space left on device"
./configure: line 12191: cannot create temp file for here-document: No space left on device

Oh, I didn't notice that.  There are lots of out-of-space errors on aarch64 now, so this is most likely a false negative.


[feature] Support custom refresh intervals for each group of metrics

What's changed?

close https://github.com/apache/hertzbeat/issues/2188
Support custom refresh intervals for each group of metrics. The specific implementation is as follows:
Within a monitor, metrics with different refresh intervals are divided into different jobs. If a group's metrics do not have a custom refresh interval set, the default refresh interval specified during the monitor's creation will be used.
Implementation result:

Checklist

[x]  I have read the Contributing Guide
[x]  I have written the necessary doc or comment.
[x]  I have added the necessary unit tests and all cases have passed.

hi, thanks for contributions. 👍
The one monitor mapping one collect job -> many collect jobs is a big change, we need time to think and design carefully.
This will cause some collection logics on the collector side to fail, such as supporting sequential collection and concurrent collection, using the collection response as a parameter to enter the next collection metrics, etc. System upgrade is also a big hassle.
Previously, I thought the modification direction was in the collector scheduling part, splitting the scheduling time of multiple metrics tasks in a job corresponding to a monitoring.
These two directions need to be carefully considered.

hi, thanks for contributions. 👍
The one monitor mapping one collect job -> many collect jobs is a big change, we need time to think and design carefully. This will cause some collection logics on the collector side to fail, such as supporting sequential collection and concurrent collection, using the collection response as a parameter to enter the next collection metrics, etc. System upgrade is also a big hassle.
Previously, I thought the modification direction was in the collector scheduling part, splitting the scheduling time of multiple metrics tasks in a job corresponding to a monitoring.
These two directions need to be carefully considered.

That makes sense, I'll try to implement the second approach.

hi, i draw a job task relation for refer. The main difficulty here is the scheduling of multiple metrics collection under one job. At present, I have not thought of a good way to support custom scheduling time.


Showing emoji count in gallery view sometimes in white

This is probably one hard to catch but, it's happening.
This is usual state how it should look like

... and this is how it behaves now

Probably related,
sometimes shadows on user profiles are white and should be deeppink, or $primary


Bow

Created a bow to be added to the PG mod, likely to be on enemies or just around the environment.

LGTM! Cute bow! 😄


calinet dedupe

@timschott I re-did the calinet de-dupe stuff and committed to the main. Minor fixes from what you did was: 1. grabbing the list(set(falses)) because for some reason in like 60 instances or so a repeat was included in the list of counterfacts; 2. made the counterfacts a list instead of a list of lists; 3. checked for duplicates after mixing - I caught two duplicates.
See the data caching notebook on the main branch for these minor fixes and the resulting data. When you're confident in what I did, we can delete this PR.

cool!


adding log output for successful trusting of certificates

Let me know if this pull request should be done on a different branch.

Closing this pull request, since it should be done on the master branch.


Proctored MCQ Week1 - Evan Sanchez

Total Score:
Graded By: Bryon Lu

[x] Start review ticket with study plan and study reflection for week, due EOD Monday 4/18
Monday: Working on create task
Tuesday: MCQ 1
Wednesday: Create Task Writeup
Thursday: MCQ 2
Friday: Create task revisions

[x] Finals-Quiz1 score/50 and corrections
Score: 39/50

[x] Finals-Quiz2 score/50 and corrections
Score 44/50

[x] Create Task code/runtime and 1 min video are reviewed by another person, you may request Teacher review as time permits

[x] Review ticket with Crossover Score on Monday 4/25 in class

Total Score: 3.5/5
Graded By: Byron Lu

[x] Start review ticket with study plan and study reflection for week, due EOD Monday 4/18

Started review ticket with study plan

[x] Finals-Quiz1 score/50 and corrections

Completed Finals-Quiz1 with score however no corrections -0.5

[x] Finals-Quiz2 score/50 and corrections

Completed Finals-Quiz2 with score however no corrections -0.5

[x] Create Task code/runtime and 1 min video are reviewed by another person, you may request Teacher review as time permits

Create Task has runtime and code, however video is missing -0.5

[x] Review ticket with Crossover Score on Monday 4/25 in class


A config value for default plugins to load, to make hot-reloading easier for the user

Depends on #8

Merged with #24


[CT-2958] [Feature] Postgres Query Timeouts

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
When running with an orchestrator like Airflow, users can set DAG timeouts that will issue SIGTERM to running processes. The SIGTERM does not signal to DBT to cancel a running query like SIGINT will and will cause the query to continue running even if it has exceeded the Airflow specified timeout.
This can cause a thundering herd situation when you have an incremental model that runs very frequently. The task will timeout killing the DBT process, restart and run the query again with the old one running. On and on and on.
It would be useful to specify a timeout for a Postgres query to be killed if it exceeds a certain amount of time. This can be achieved by injecting a SQL header to set statement_timeout like:
"SET statement_timeout TO '15min' ; "

This could be configured globally in profiles.yml or as a model property
type: postgres
...
execution_timeout: 15min

{{
  config(
    execution_timeout='15min'
  )
}}

Describe alternatives you've considered

Handle SIGTERM correctly and treat it like SIGINT. Upon receiving a SIGTERM cancel running queries and exit gracefully

Who will this benefit?
Anyone who uses a Postgres data base and an external orchestrator that allows setting timeouts external to DBT.
Are you interested in contributing this feature?
No response
Anything else?
No response

@jtcohen6
I don't believe there is a way to have Airflow issue a SIGINT instead of a SIGTERM on task timeout. Or at least not a method that I am aware of.
I tried to remedy this on my own. I first read this article on graceful signal handling in K8s: https://medium.com/@brianepohl/terminating-dbt-in-dagster-kubernetes-job-c53c3bc26012. This led me to another article about graceful shutdowns in ECS: https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/.
I implemented a variation of the python signal handler:
import signal, time, os

def shutdown(signum, frame):
    print('Caught SIGTERM, shutting down')
    # Finish any outstanding requests, then...
    exit(0)

if __name__ == '__main__':
    # Register handler
    signal.signal(signal.SIGTERM, shutdown)
    # Main logic goes here

On SIGTERM the handler would find all processes named "dbt" and issue a SIGINT to those processes. However the DBT process never seemed to respect it properly which I suspect is because we invoke DBT via a subprocess.run. Maybe the new DBT programmatic invocations would make this work better but I haven't got around to trying it.
Any guidance would be appreciated.

@rchui if you haven't already done so in the meantime, are you ready to try out programmic invocations?
Your python script named runner.py can be this simple:
# runner.py

from dbt.cli.main import dbtRunner, dbtRunnerResult

cli_args = ["ls", "--select", "my_model"]
res: dbtRunnerResult = dbtRunner().invoke(cli_args)

Then execute it within your shell like this:
python runner.py

To actually run the model (and then try out behavior of SIGTERM vs SIGINT), just change ls to run within the script above.

@dbeatty10 We are already on programmatic invocations (which are a huge leap forward IMO). Are you saying that a SIGTERM handler has gone into DBT? AFAIK the behavior is still the same but we're behind a couple of versions

@rchui dbt doesn't natively know how to handle SIGTERM, although I'm open to the idea. This would be a spot to start poking around within dbt-core.
I understand @dbeatty10's proposal to be: If you're programmatically invoking dbt, within your Python script/wrapper, you could try handling signal.SIGTERM by passing SIGINT into the dbt process before exiting. No dbt-core changes needed (in theory).

Hello there!
We are using Airflow DBT and stuck with same issue that DBT is not cancelling all queries on SIGTERM, which Airflow sent to all tasks on timeout.
After some investigation I found that bash is not working with passing SIGINT for subprocesses.
It is related to bash subprocesses management.
You can try it by your own with this script:
#!/bin/bash

# Print process ID at start
echo "Process ID: $$"

# Function to handle SIGTERM in parent process
handle_sigterm() {
    echo "Parent process: Received SIGTERM, sending SIGINT to child process."
    kill -2 "$child_pid" 2>/dev/null
    echo "Sent signal to child $child_pid"
    wait "$child_pid"
}

# Start child process
(
    # Function to handle SIGINT in child process
    handle_sigint() {
        echo "Child process: Received SIGINT, exiting."
        exit 0
    }

    trap 'handle_sigint' SIGINT SIGTERM
    while true; do
        echo "Current time: $(date)"
        sleep 5
    done
) &
child_pid=$!

# Print process ID at start
echo "Child ID: $child_pid"

# Set up trap for SIGTERM in parent process
# trap 'handle_sigterm' SIGINT

# Wait for child process to finish
wait "$child_pid"
```bash

But it is working well with Python:

import os
import signal
import time
import sys
from multiprocessing import Process
def print_time():
def signal_handler(signum, frame):
print("Child process: Received SIGINT, exiting.")
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
print("Child PID: ", os.getpid())

while True:
    print("Current time: ", time.ctime())
    time.sleep(5)

def main():
p = Process(target=print_time)
p.start()
print("Parent PID: ", os.getpid())

def signal_handler(signum, frame):
    print("Parent process: Received SIGTERM, sending SIGINT to child process.")
    os.kill(p.pid, signal.SIGINT)
    p.join()
    print("Child process finished.")
signal.signal(signal.SIGTERM, signal_handler)

p.join()

if name == "main":
main()

WIth these insights we decided to rewrite our tasks onto Python.
But it would be easier to use DBT with handling SIGTERM and cancelling all queries on exit...

Hi @rchui , have you overcome this issue in the end? Thanks!

I found a solution based on your discussion, if you use airflow BaseOperator to execute dbt-core, you can override this method using following code, this will transfer the Sigterm to Sigint:
    def on_kill(self):
        log.info('Transfer SIGTERM signal to SIGINT to dbt process')
        subprocess_hook = self.subprocess_hook
        if subprocess_hook.sub_process and hasattr(subprocess_hook.sub_process, 'pid'):
            log.info(f"Sub process pid: {subprocess_hook.sub_process.pid}")
            os.killpg(os.getpgid(subprocess_hook.sub_process.pid), signal.SIGINT)


Bump suggested rename method in readme

Sorry for the tiny pull request -- was burying a body in an unrelated codebase and figured I'd try and do you all a solid while I was at it.
This bumps the part of readme to reflect the new rename syntax in recent versions of mongoid (since 3 at least it looks like). Also contains an optimization by doing the operation on the collection level rather than the individual record level (though it'll work both ways) - saves a decent amount of time.
Doesn't affect any of the actual codebase or anything. Let me know if I can be of further assistance on this.

Coverage remained the same at 99.748% when pulling 795004a8f712b677d1f314ebf9e26ef3a591484b on colinxfleming:fix_rename_instructions into 77600722ae4b74bf0d9053e50ce5047a34a83150 on mongoid:master.

Coverage remained the same at 99.748% when pulling cdae1fca3426937990183f69d5db2a03db1c75d8 on colinxfleming:fix_rename_instructions into 77600722ae4b74bf0d9053e50ce5047a34a83150 on mongoid:master.

Coverage remained the same at 99.748% when pulling cdae1fca3426937990183f69d5db2a03db1c75d8 on colinxfleming:fix_rename_instructions into 77600722ae4b74bf0d9053e50ce5047a34a83150 on mongoid:master.

Coverage remained the same at 99.748% when pulling 39ec06d23ff498897d96bc1a2e2d34dc5e249faa on colinxfleming:fix_rename_instructions into 77600722ae4b74bf0d9053e50ce5047a34a83150 on mongoid:master.

Coverage remained the same at 99.748% when pulling 39ec06d23ff498897d96bc1a2e2d34dc5e249faa on colinxfleming:fix_rename_instructions into 77600722ae4b74bf0d9053e50ce5047a34a83150 on mongoid:master.

Thanks!

You're welcome -- thanks for maintaining this library, it's been a huge help for us.


[Don't merge] Try disabling shadow copy

@brson Either it's a fluke or this actually works. It's just coming up on the fifth rerun, which will be zero failures across 20 individual builds.

@Diggsey that seems like a pretty good record though. Should we merge it and hope it's an improvement?

No, it was just (bad) luck I think. I ran it again and it failed the very next build too. I wonder if there is another factor, such as time of day which affects how likely a failure is to occur.


Update C# generated docs to 0.15 release

To be merged after the nugets are released.

Nuget packages have been released, this can be merged after reviewing.


sqlcipher

any way to access an encrypted (sqlcipher) sqlite db using zqlite ?

Never heard of it, but looking at the readme, it looks like if you can get it to link / build, it should work as-is?? You'll be able to use the PRAGMA key and PRAGMA rekey like any other statement.
Not 100% sure though.

SQLCipher is a super set of SQLite, has everything SQLite has plus encryption. And it works on non encrypted databases too.
I have followed your steps for for the amalgamation solution, so I downloaded sqlcipher and created the single sqlite3.c file and transferred it, along with the sqlite3.h to a lib directory under my project, and added your suggestions for the build.zig. It builds just fine.
First, it works on non encrypted databases. Then I tried on an encrypted one, it opens the database. Immediately after opening I use conn.execNoArgs("PRAGMA key = 'mypass';") but it fails, saying error: NotADB, what by the way, is the same error SQLite emits if I try to open an encrypted db with it.
Sorry, this has nothing to do with zqlite. Am closing this now.
Please keep moving forward with zqlite. I really appreciate your minimalist wrapping approach.

For future searches ...
The solution was so obvious and I couldn't see it :(. No need of amalgamation files or anything else.
Since I have sqlite3 and sqlcipher installed by default in my system (Manjaro), I just need to link to the proper one.
For obvious reasons, in build.zig you link to sqlite3, so I just needed to change that to: exe.linkSystemLibrary("sqlcipher");
Working now :)


Don't backup text file when auto save is enabled

Currently there is no conditional for this so backups are taken even when auto save is enabled.

I wonder if this is true for all auto save configs we have. Some people might expect hot exit to work even if auto save is on (e.g. the auto save that only saves on focus lost).

I pushed a change to not backup on shutdown when auto save is on but I guess we still need to decide what to do with backing up after a file gets dirty.

@bpasero good point with the focus lost case. I'm not sure I agree about the disabling hot exit completely change that you did, untitled files don't get auto saved and it would certainly be convenient to trigger hot exit in that case.

@Tyriar I fixed that

Here are the options I can think of:
a. Leave as is, always saving backups regardless of auto save configuration. If the auto save delay is smaller than the backup delay, the content change event will be canceled and no backup will occur. If the auto save delay is larger than the backup delay, this will delete the backup that was saved shortly.
b. Prevent backups presisting to disk at the BackupFIleService level when "files.autoSave": "afterDelay". The only issue I see with this is if files.autoSave is changed to something other than afterDelay, current dirty files will not be backed up until a change is made or shutdown (when all files are backed up). So this edge case may would to be handled for crash recovery.

I am ok with option a).

I think we can close this off then as the fix for https://github.com/Microsoft/vscode/issues/15748 properly cancels content change events after a save now.

Sounds good.


Need more powerful management APIs

I'm trying to integrate ASF with my ASP.NET website (via WCF). Some API enhancements like these can be of great help:

Add/remove bots on the fly
Change configs on the fly
Notification on different events (e.g. cards drop / game change / farming finished)
More detailed status

Number of cards drop of each game in this session
Status of specified bot, instead of all

The scenario is that I'm making a cloud based farming service for a small trusted community. Any improvements on interoperability for such scenario will be great!

I'm afraid that if you want those options then you'll need to implement them yourself (and send PR if interested), as what you're asking for is at the edge of ASF scope, and those are things I have absolutely no use for.

Add/remove bots on the fly

You can do that by initializing new Bot instance, and you can remove bots by calling Stop() then removing them from Bots map.

Change configs on the fly

Too complex to consider implementing, unless you want to rewrite everything and add every callback for adapting to the change, which will be massive amount of work in current project status. It's easier to put new config, remove old bot, then re-add it (see above).

Notification on cards drop

There is no reliable way to detect card drop, the best you can do is adding some event in ShouldFarm() method that would somehow notify you that bot dropped a card (as in, old CardsRemaining > current CardsRemaining).

Notification on game change

Like above but in StartFarming().

Number of cards drop of each game in this session

There's no such thing as "session" in ASF, because ASF dynamically adapts to situation, can start/stop bot on as-needed basis and network issues and so on. Your best bet would be probably recording that information and putting in BotDatabase, but as ASF has no use of this, I don't think I'd like to see this included in main project. If you do both suggestions above, you can easily calculate this out of cards being dropped and games being switched, so this should be above in your app.

Status of specified bot, instead of all

There is !status already, and if you mean !api then I'd prefer to put that thing as different WCF function call. HandleCommand() is very limited and not the best way to execute anything at all - it's just a very simple way of pairing server with a client using command line arguments - for normal (advanced) usage there should be function for every WCF call.

In general everything you've asked for is on the edge of ASF scope and I can't see how it would be beneficial to any user or myself, so if you want to have such functionality, you'll need to code it yourself.
Personally I think that least intrusive way, and at the same time PR-like would be extending already-existing WCF class with methods that you'd like to add. This will allow your application to call those WCF functions without much hassle, while at the same time not polluting ASF codebase with out-of-scope features. You could even subscribe to channels and receive callbacks on your events. I think that would be mostly OK, as it won't hurt ASF too much to check if WCF is active, and forward some events if it is, while at the same time providing you with the functionality you want to add without rewriting majority of stuff. Just don't use HandleCommand() - instead add your own methods that will be more efficient and reliable. Commands should be avoided by anybody but endusers.
Of course, that's what I suggest if you want to enhance ASF to fit your usage. ASF is licensed on Apache License and you can fork it and do whatever changes you want, but it will be troublesome to maintain such fork in long-run, assuming you don't want to stick forever with one version.
In general I'm open for all PRs, even those I don't consider that useful for neither me nor users, as long as they're done nicely and don't affect existing codebase that much. What you're asking for is mostly a bridge between your ASP.NET app and ASF, so WCF class is a perfect place to implement everything you need, while at the same time minimizing ASF codebase edits to bare minimum.
Let me know what you think about that.

I too would appreciate these features being added.

It's painful to maintain another code base and I'm trying to avoid that. Basically I'm looking to improve current code in somewhat graceful ways.
Anyway WCF is an outdated technology and I should not rely on that too much.
Maybe ASF can be made more modular in the next major release. e.g event system, DI, split core/API/management. If ASF tend to be a powerful platform instead of an app, it need to be more pluggable.

I will make some investigations on my fork to see if there is a better way.

It could be, but ASF was never coded with modularity in mind, even WCF was added much, much later. Rewriting entire codebase to be more pluggable is something I'd like to avoid because I spent much time on making it at least partially stable and reliable in a way that there are no major bugs and I can leave it turned on for weeks without crash or something bad happening. This is impossible to do even with Steam client, not to mention Steam network, and ASF slowly manages to achieve that.
Nobody forces you to use WCF - you could rewrite existing WCF into something more modern and .NET core supported - REST API for instance. There is no major obstacle that makes it impossible to do so, as WCF is only a tool being used in a process, that can be exchanged for something else. However, rewriting entire ASF to allow modularity and better integration with third-party tools is not really that high on my list, as there is still lots of low-level work that has to be done and maintained, not to mention that I won't attempt to rewrite stuff that works excellent for no reason. There are thousands of happy users finally able to use something that works decent thanks to months of hard work on improving this little thing, and I'm sure that it would take another half of the year to achieve something like that in rewritten version.
Don't take me wrong, I'd love to make ASF good for everybody, but have you seen those excessive error handlers everywhere in the code? Every single one of those was added because at some point somebody got error due to Steam not acting appropriately, and I'm still adding more of them because the bug hunt never ends.
If I have to choose between something stable and reliable that works in the way I want, and between something that will take another half of the year to mature and cause excessive bug hunting only to improve codebase for no actual gains for the users, you know what is my choice. It's simply the fact that you can't really start rewriting ASF like this, even smallest change can lead to issues, because Steam's spaghetti-code constantly tries to infect ASF - it took literally a few hours to code ASF in a way that it works, and more than half of the year to ensure that it works for everybody in every case, and not for me only. If ASF was small project with only a few features, probably it wouldn't hurt to restructurize everything, but it reached the point where I'm sure that the modification won't affect anything, yet Steam proves me wrong.
Feel free to investigate and take a look if you want to - as I said I'll be happy to accept any PRs, also those which don't affect me that much, as long as they also won't affect other ASF things. We could probably slowly add things you'd like to see, but it definitely has to be done carefully and one-by-one, any major rewrite will lead in a mess that will be no longer possible to handle.

I appreciate your work to make ASF that stable and I've learned a lot from your clean and robust code. Even SK2 isn't that stable after years of development (although Steam Network is something killing my application before SK2 goes wrong :smile: )
I use WCF because my application infrastructure uses it internally. It will naturally be a good choice for me to integrate with ASF using WCF. Actually I'm surprised to see ASF has WCF support, even WCF is generally criticized nowadays.
Currently it seems not easy to use the same code base to work with my project, I have to create my own branch to meet my requirements and try my best to sync with ASF :cry: . Appropriate changes I think ASF should accept will be send via PR.

Alright then, thanks! I'll close the issue then as I have no plans on working on this myself, but I'll be happy to accept any appropriate PRs.


Interaction between 'delegates' and Workload Identity Federation

Hello,
I'm having a hard time understanding how to create a delegation chain to impersonate a service account using this Github Action.
Here is my workflow.
In GCP project MY_PROJECT, I have 2 service accounts:

<EMAIL_ADDRESS>main service account with large permissions
<EMAIL_ADDRESS>only has the roles/iam.serviceAccountTokenCreator on MY_SA.

Meanwhile, WIF is configured so that the principalSet corresponding to a specific repository has roles/iam.workloadIdentityUser and roles/iam.serviceAccountTokenCreator on MY_SA-CICD. I am trying to authenticate to MY_SA with a single auth Github Action.
Here is a simplified version of the Github workflow:
jobs:
  test_workflow:
    permissions:
      contents: read
      id-token: write
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - id: "auth"
        uses: "google-github-actions/auth@v1"
        with:
          workload_identity_provider: projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/MY_POOL/providers/MY_PROVIDER
          service_account<EMAIL_ADDRESS>          delegates<EMAIL_ADDRESS>          token_format: "access_token"
          access_token_lifetime: 3600s
      - id: "setup-gcloud"
        uses: "google-github-actions/setup-gcloud@v1"
      - run: |
          gcloud auth list
          gcloud artifacts repositories list

gcloud auth list returns
ACTIVE  ACCOUNT
*<EMAIL_ADDRESS>
but gcloud artifacts repositories list fails with
There was a problem refreshing your current auth tokens: ('Unable to acquire impersonated credentials', '{\n  "error": {\n    "code": 403,\n    "message": "Permission \'iam.serviceAccounts.getAccessToken\' denied on resource (or it may not exist).",\n    "status": "PERMISSION_DENIED",\n    "details": [\n      {\n        "@type": "type.googleapis.com/google.rpc.ErrorInfo",\n        "reason": "IAM_PERMISSION_DENIED",\n        "domain": "iam.googleapis.com",\n        "metadata": {\n          "permission": "iam.serviceAccounts.getAccessToken"\n        }\n      }\n    ]\n  }\n}\n')

If I don't use delegates and use --impersonate-service-account in subsequent gcloud calls, it's working fine, e.g.
jobs:
  test_workflow:
    permissions:
      contents: read
      id-token: write
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - id: "auth"
        uses: "google-github-actions/auth@v1"
        with:
          workload_identity_provider: projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/MY_POOL/providers/MY_PROVIDER
          service_account<EMAIL_ADDRESS>          access_token_lifetime: 3600s
      - id: "setup-gcloud"
        uses: "google-github-actions/setup-gcloud@v1"
      - run: |
          gcloud auth list

> ACTIVE  ACCOUNT
> *<EMAIL_ADDRESS>
          gcloud artifacts repositories list
> WARNING: This command is using service account impersonation. All API calls will be executed as<EMAIL_ADDRESS>> [list of artifact registry repositories]

In the audit logs, for the 1st case, I'm under the impression that the delegation chain is ignored when doing the gcloud call – based on the authenticationInfo and request keys in the protoPayload field. See
{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 7,
      "message": "Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist)."
    },
    "authenticationInfo": {
      "serviceAccountDelegationInfo": [
        {}
      ],
      "principalSubject": "principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/MY_POOL/subject/repo:MY_ORG/MY_REPO:pull_request"
    },
    "requestMetadata": {
      "callerIp": "<IP_ADDRESS>",
      "callerSuppliedUserAgent": "google-cloud-sdk gcloud/450.0.0 command/gcloud.artifacts.repositories.list invocation-id/81b3609092eb4031a7d5c03adcd1fe79 environment/github-actions-setup-gcloud environment-version/1.1.1 client-os/LINUX client-os-ver/6.2.0 client-pltf-arch/x86_64 interactive/False from-script/False python/3.9.16 term/ (Linux 6.2.0-1012-azure),gzip(gfe)",
      "requestAttributes": {
        "time": "2023-10-12T11:56:55.782785497Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "iamcredentials.googleapis.com",
    "methodName": "GenerateAccessToken",
    "authorizationInfo": [
      {
        "permission": "iam.serviceAccounts.getAccessToken",
        "resourceAttributes": {}
      }
    ],
    "resourceName": "projects/-/serviceAccounts/ID",
    "request": {
      "@type": "type.googleapis.com/google.iam.credentials.v1.GenerateAccessTokenRequest",
      "name"<EMAIL_ADDRESS>    },
    "metadata": {
      "identityDelegationChain": [
<EMAIL_ADDRESS>      ]
    }
  },
  "insertId": "1mk7zroe50hgl",
  "resource": {
    "type": "service_account",
    "labels": {
      "unique_id": "101851263050728808135",
      "email_id"<EMAIL_ADDRESS>      "project_id": "MY_PROJECT"
    }
  },
  "timestamp": "2023-10-12T11:56:55.771815158Z",
  "severity": "ERROR",
  "logName": "projects/MY_PROJECT/logs/cloudaudit.googleapis.com%2Fdata_access",
  "operation": {
    "id": "10658336329565734952",
    "producer": "iamcredentials.googleapis.com",
    "first": true,
    "last": true
  },
  "receiveTimestamp": "2023-10-12T11:56:56.845099618Z"
}

Please let me know if I'm missing anything and thanks in advance for your time.
Best,
Pierre

Hi @Tutuchan - thank you for opening an issue. The delegates option is listing the delegation chain for generating an ID token and/or signing a JWT. It's specifically for doing the auth handshake. If you want to repeatedly impersonate a service account for all future calls, you need to pass in the gcloud flag or API parameter. Delegation is not a persistent option.

Hi @sethvargo , thanks for clarifying that, that makes a lot more sense now.
I'll close this issue, thank you !


Fix async validation checking on submit to fix #75

This fixes issue #75.

Ahh! My line was supposed to be return !Object.keys(errors).length; (was missing .length), but yours is probably better.


Update to ART 1.9.1

Description
This pull request merges the updates of ART 1.9.1 to branch main.

Codecov Report

Merging #1476 (676b996) into main (9b9a962) will decrease coverage by 0.52%.
The diff coverage is 89.28%.

:exclamation: Current head 676b996 differs from pull request most recent head 76fef71. Consider uploading reports for the commit 76fef71 to get more accurate results

@@            Coverage Diff             @@
##             main    #1476      +/-   ##
==========================================
- Coverage   89.65%   89.12%   -0.53%
==========================================
  Files         244      244
  Lines       19761    19773      +12
  Branches     3495     3501       +6
==========================================
- Hits        17716    17622      -94
- Misses       1248     1354     +106
  Partials      797      797

Impacted Files
Coverage Δ

art/attacks/evasion/laser_attack/utils.py
82.40% <0.00%> (-0.80%)
:arrow_down:

art/estimators/classification/keras.py
87.82% <50.00%> (-0.59%)
:arrow_down:

art/__init__.py
100.00% <100.00%> (ø)

art/estimators/classification/pytorch.py
89.28% <100.00%> (+0.08%)
:arrow_up:

art/utils.py
90.85% <100.00%> (-0.29%)
:arrow_down:

...estimators/speech_recognition/tensorflow_lingvo.py
18.27% <0.00%> (-73.10%)
:arrow_down:

art/estimators/certification/abstain.py
90.90% <0.00%> (-9.10%)
:arrow_down:

art/estimators/poison_mitigation/strip/strip.py
94.44% <0.00%> (-5.56%)
:arrow_down:

art/estimators/tensorflow.py
77.77% <0.00%> (-2.03%)
:arrow_down:

art/attacks/evasion/boundary.py
92.72% <0.00%> (-1.22%)
:arrow_down:

... and 4 more


Jinja2's round filter is overriden with one without rounding method

Home Assistant release (hass --version):
0.60.0 (Docker)
Python release (python3 --version):
Docker
Component/platform:
template
Description of problem:
Home Assistant's round filter is shadowing Jinja2's without the method kwarg.
{{ (states.device_tracker.myphone.attributes.battery / 10.0) | round(method='ceil') }} doesn't work.
Expected:
Same as Jinja2's, i.e. rounding method is customizable. See http://jinja.pocoo.org/docs/2.10/templates/#round

Issue still there.
Le ven. 30 mars 2018 à 22:17, balloobbot<EMAIL_ADDRESS>a
écrit :

There hasn't been any activity on this issue recently. Due to the high
number of incoming GitHub notifications, we have to clean some of the old
issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check
if that solves the issue. Let us know if that works for you by adding a
comment 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/11458#issuecomment-377613036,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AATe9Klnawx57I4IZhh2HmWn5xlrDjAIks5tjpLogaJpZM4RT3EB
.


Remove mutex from ThreadLocal

Instead of locking when inserting a new bucket, the current thread can perform a CAS on the null pointer to store the new allocated bucket. If the CAS fails, that means another thread won the race, and the current thread can free it's allocation and continue using the bucket created by the other thread.

Benchmark results before and after on my machine:
get                time:   [1.9440 ns 1.9451 ns 1.9461 ns]
insert             time:   [18.757 ns 18.865 ns 18.963 ns]

get                time:   [1.9406 ns 1.9416 ns 1.9426 ns]
                   change: [-0.0664% +0.0109% +0.0907%] (p = 0.78 > 0.05)
                   No change in performance detected.

insert             time:   [10.367 ns 10.797 ns 11.170 ns]
                   change: [-49.717% -48.335% -46.743%] (p = 0.00 < 0.05)
                   Performance has improved.

Thanks!


ModuleNotFoundError: No module named 'dinov2.hub'

Trying:
dinov2_vits14 = torch.hub.load('facebookresearch/dinov2', 'dinov2_vits14')
get error:
File "/home/admin2/.local/lib/python3.9/site-packages/torch/hub.py", line 558, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "/home/admin2/.local/lib/python3.9/site-packages/torch/hub.py", line 584, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File "/home/admin2/.local/lib/python3.9/site-packages/torch/hub.py", line 98, in _import_module
spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/admin2/.cache/torch/hub/facebookresearch_dinov2_main/hubconf.py", line 7, in
from dinov2.hub.backbones import dinov2_vitb14, dinov2_vitg14, dinov2_vitl14, dinov2_vits14
ModuleNotFoundError: No module named 'dinov2.hub'

fixed by reinstalling from a source

@logogriph2 Hello, May I ask which part and how do you reinstall to fix the problem? Thank you

In my case I had another repo installed that had package dinov2 inside it. i.e. another_repo/dinov2 was added to sys.path. Then hub was not inside this and this repo was of more importance than local dino repo downloaded by torch.hub and added to sys.path. removing this package solved the problem.


Car location offset

Hello Alandtse, thanks for you great integration!
My model3 is in China. The gps info (longitude and latitude) obtained through teslamate's mqtt is accurate, but the gps info obtained through homeassistant's Tesla integration (v2.3.0) will always have a constant offset.
For example:
GPS info from teslamate：

latitude: 23.127603 longitude: 113.318353 (actual location)

GPS info from Tesla integration v2.3.0:

latitude: 23.125008 longitude: 113.323774

Thanks again.

I tried the GPS coordinate but the results are still different.

Enable debug logging on teslajsonpy. You can then see the info the API is returning per vehicle. See if the GPS is being returned in a more accurate state by any field. If there's a better field, we can edit the component to use that for China users.

The alternative is to figure out what Tesla mate is pulling.

Enable debug logging on teslajsonpy. You can then see the info the API is returning per vehicle. See if the GPS is being returned in a more accurate state by any field. If there's a better field, we can edit the component to use that for China users.

I debug the teslajsonpy. Then I found the GPS info as follows:
"drive_state":{"corrected_latitude":23.125017,"corrected_longitude":113.323768,"gps_as_of":1657676900,"heading":70,"latitude":23.127622,"longitude":113.318358,"native_latitude":23.125026,"native_location_supported":1,"native_longitude":113.323779,"native_type":"gcj","power":0,"shift_state":null,"speed":null,"timestamp":1657676901911}
The correct GPS info is "latitude":23.127622,"longitude":113.318358, which is the same to the teslamate.
Can you update the relevant GPS for China users?
Thanks!

Looking at this more, it looks like native_location_supported is intended to comply with Chinese regulations at the cost of accuracy. https://teslamotorsclub.com/tmc/threads/new-location-data-found-on-tesla-api.111022/. If someone wants to submit a patch so it's an option to ignore native_location, then I'd probably accept it.

Yes. I think it's a easy way that for the Chinese tesla owners, just choose the latitude" and "longitude" instead of others.

User from China.
It's because the China use GCJ－02 coordinate system（all map apps in China） instead of normal WGS－84（google）.
You can modify device_tracker.py like this,and it works on my car.
"""Support for tracking Tesla cars."""
from __future__ import annotations

from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.config_entry import TrackerEntity

from . import DOMAIN as TESLA_DOMAIN
from .tesla_device import TeslaDevice

import math
import copy

async def async_setup_entry(hass, config_entry, async_add_entities):
    """Set up the Tesla binary_sensors by config_entry."""
    entities = [
        TeslaDeviceEntity(
            device,
            hass.data[TESLA_DOMAIN][config_entry.entry_id]["coordinator"],
        )
        for device in hass.data[TESLA_DOMAIN][config_entry.entry_id]["devices"][
            "devices_tracker"
        ]
    ]
    async_add_entities(entities, True)

x_pi = 3.14159265358979324 * 3000.0 / 180.0
pi = 3.1415926535897932384626  # π
a = 6378245.0  # 长半轴
ee = 0.00669342162296594323

def wgs84togcj02(lng, lat):
    dlat = transformlat(lng - 105.0, lat - 35.0)
    dlng = transformlng(lng - 105.0, lat - 35.0)
    radlat = lat / 180.0 * pi
    magic = math.sin(radlat)
    magic = 1 - ee * magic * magic
    sqrtmagic = math.sqrt(magic)
    dlat = (dlat * 180.0) / ((a * (1 - ee)) / (magic * sqrtmagic) * pi)
    dlng = (dlng * 180.0) / (a / sqrtmagic * math.cos(radlat) * pi)
    mglat = lat + dlat
    mglng = lng + dlng
    return [mglng, mglat]

def gcj02towgs84(lng, lat):
    dlat = transformlat(lng - 105.0, lat - 35.0)
    dlng = transformlng(lng - 105.0, lat - 35.0)
    radlat = lat / 180.0 * pi
    magic = math.sin(radlat)
    magic = 1 - ee * magic * magic
    sqrtmagic = math.sqrt(magic)
    dlat = (dlat * 180.0) / ((a * (1 - ee)) / (magic * sqrtmagic) * pi)
    dlng = (dlng * 180.0) / (a / sqrtmagic * math.cos(radlat) * pi)
    mglat = lat + dlat
    mglng = lng + dlng
    return [lng * 2 - mglng, lat * 2 - mglat]

def transformlat(lng, lat):
    ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + \
          0.1 * lng * lat + 0.2 * math.sqrt(math.fabs(lng))
    ret += (20.0 * math.sin(6.0 * lng * pi) + 20.0 *
            math.sin(2.0 * lng * pi)) * 2.0 / 3.0
    ret += (20.0 * math.sin(lat * pi) + 40.0 *
            math.sin(lat / 3.0 * pi)) * 2.0 / 3.0
    ret += (160.0 * math.sin(lat / 12.0 * pi) + 320 *
            math.sin(lat * pi / 30.0)) * 2.0 / 3.0
    return ret

def transformlng(lng, lat):
    ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + \
          0.1 * lng * lat + 0.1 * math.sqrt(math.fabs(lng))
    ret += (20.0 * math.sin(6.0 * lng * pi) + 20.0 *
            math.sin(2.0 * lng * pi)) * 2.0 / 3.0
    ret += (20.0 * math.sin(lng * pi) + 40.0 *
            math.sin(lng / 3.0 * pi)) * 2.0 / 3.0
    ret += (150.0 * math.sin(lng / 12.0 * pi) + 300.0 *
            math.sin(lng / 30.0 * pi)) * 2.0 / 3.0
    return ret

def location_convert(gcj) -> dict:
    tmp =copy.copy(gcj)
    new_lon,new_lat = gcj02towgs84(tmp.get("longitude"),tmp.get("latitude"))
    tmp["longitude"],tmp["latitude"]=new_lon,new_lat
    return tmp

class TeslaDeviceEntity(TeslaDevice, TrackerEntity):
    """A class representing a Tesla device."""

    def __init__(self, tesla_device, coordinator):
        super().__init__(tesla_device, coordinator)
        self.gcj02location = self.tesla_device.get_location()
        self.wgs64location = location_convert(self.gcj02location) if self.gcj02location else None

    @property
    def force_update(self):
        """Disable forced updated since we are polling via the coordinator updates."""
        return False

    @property
    def latitude(self) -> float | None:
        """Return latitude value of the device."""
        location = self.tesla_device.get_location()
        if location and location != self.wgs64location:
            self.gcj02location=location
            self.wgs64location=location_convert(location)
        return self.wgs64location.get("latitude") if self.wgs64location else None

    @property
    def longitude(self) -> float | None:
        """Return longitude value of the device."""
        location = self.tesla_device.get_location()
        if location and location != self.wgs64location:
            self.gcj02location=location
            self.wgs64location=location_convert(location)
        return self.wgs64location.get("longitude") if self.wgs64location else None

    @property
    def source_type(self):
        """Return the source type, eg gps or router, of the device."""
        return SOURCE_TYPE_GPS

    @property
    def extra_state_attributes(self):
        """Return the state attributes of the device."""
        attr = super().extra_state_attributes.copy()
        location = self.tesla_device.get_location()
        if location:
            attr.update(
                {
                    "trackr_id": self.unique_id,
                    "heading": location["heading"],
                    "speed": location["speed"],
                }
            )
        return attr

Can  alse add a determine statement like ”if location in China“,like this
  def out_of_china(lng, lat):
      """
      :param lng:
      :param lat:
      :return:
      """
      if lng < 72.004 or lng > 137.8347:
          return True
      if lat < 0.8293 or lat > 55.8271:
          return True
      return False

It's because the China use GCJ－02 coordinate system（all map apps in China） instead of normal WGS－84（google）.

Thanks for confirming. I don't know how this plays out with HA and relevant maps for China users. The conversion may be one option but it sounded like the non-WGS coordinates may be accurate. Do you know? Again, I'm happy to take a PR that swaps over appropriately for China users but I don't know the impact on such a change.

It may works like this.
Fisrt,HA's map works on WGS-84,and phone's location was gotten disrectly from the internet so it also base on WGS. So our phone location is currect.
But we use https://auth.tesla.""cn"" for authentication,we get data from the Tesla's server which for Tesla app's build-in map(In China) ,so it was alreadly coverted into GCJ.
And after covertting it back,I can see the Car shows exactly same position in HA's map and Tesla app's map.
I'll try to make a PR later.

It may works like this. Fisrt,HA's map works on WGS-84,and phone's location was gotten disrectly from the internet so it also base on WGS. So our phone location is currect. But we use https://auth.tesla.""cn"" for authentication,we get data from the Tesla's server which for Tesla app's build-in map(In China) ,so it was alreadly coverted into GCJ. And after covertting it back,I can see the Car shows exactly same position in HA's map and Tesla app's map. I'll try to make a PR later.

Thanks a lot.


feat(network interception): implement continue request

Bug: #644
Spec: https://w3c.github.io/webdriver-bidi/#command-network-continueRequest

@sadym-chromium Just to let you know:

The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.

from Fetch.requestPaused has indeed worked as intended.
The only thing missing is to find a way to distinguish the "authRequired" phase.

Marking as 'ready for review', but note the "TODOs". They are currently WIP, some of them may be still addressed in this PR, others will be deferred.

Friendly ping.

The only thing missing is to find a way to distinguish the "authRequired" phase.

Isn't it a response with code 401?

Isn't it a response with code 401?

That didn't work. Tested with http://httpstat.us/401


Adding private connection string counterparts.

Adding the two private connection strings to the generated secret, since we only expose the peering IPs through the firewall.
Please let me know if I need to provide anything further, next steps, etc. as this is my first open source PR!

Just to add further context, our company is using the private peering option in Atlas, which means we are able to use our private IPs during communications. Thus, we have also only allowed those IPs through to the Atlas firewall. However, when using the connection strings currently being produced by the Atlas operator, they are forced to go through the public internet, losing their private IPs.
Luckily, the Atlas API already returns the private connection strings alongside the standard ones, and they were already typed in the project. I am attempting to simply add those as two new keys to the generated secret, if they exist (since not everyone will enable peering)

@jhill072 Thank you for this PR!
Could you sign our CLA please?
That will enable us to merge your patch

Sorry about that @jamesbroadhead! I have just signed the agreement, so if there is anything else I need to do to get this merged let me know.
Thank you!

I am attempting to get the E2E tests running locally, but I wanted to ask if this was something flaky? The error logs are saying the dependent helm chart isn't where it is supposed to be. I'm not sure how my changes could have affected something like that, so just wanted to throw feelers out there as to what may be going wrong here while I try to reproduce.

@jhill072  I will take a look

@jhill072 could you please update your branch with the changes from main?

@leo-ri main has been fetched, thank you for the update!

@jhill072 "Merging is blocked. The base branch requires all commits to be signed." could you please sign your commits?

@jhill072  ^ no need - thank you for the contribution!

Thank you all for the support during the process as well! This has been a
fantastic first PR experience! 😀
On Fri, Dec 3, 2021, 10:07 AM James Broadhead @.***>
wrote:

@jhill072 https://github.com/jhill072 ^ no need - thank you for the
contribution!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mongodb/mongodb-atlas-kubernetes/pull/344#issuecomment-985594770,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG7245CPMGF5HETEKQO77ALUPDMLVANCNFSM5IH3FTFQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Publish v0.10

Please let me know once the new version is published on Hex, so I can go ahead and submit the changes in elixir-arrays

V0.10 has been published ;-)


Minor issue with the data collection

Hey Amey,
Take a look at this

Till 27 Mar, it was Telangana after that it is Telengana, due to which there is an inconsistency in the data while plotting (as you can see above). Would you please clean the data to be 'Telengana' for all the records on and prior to 27 Mar?
Thanks, Rahul

Thanks for bringing this up.
I'll work on it and get it done by EOD.
Cheers,
Amey.

All respective entries have been changed to "Telangana".
Issue resolved.
Cheers!


AutoSlugField is ASCII only

related issue: #1809
https://github.com/django-extensions/django-extensions/blob/main/django_extensions/db/fields/__init__.py#L231-L234
as you can see in the above code, the allow_unicode parameter of slugify is not passed, so it only works as an ASCII utility
is there any chance we get a fix?

You can pass a slugify function to the field, so that should work:
def slugify_unicode(value):
    return slugify(value, allow_unicode=True)

class MyModel(models.Model):
    title = models.CharField(max_length=42)
    slug = AutoSlugField(
        populate_from="title",
        slugify_function=slugify_unicode,
    )

hmm
should've thought that myself 🫠
but I do hope for django extension to add support for it at some point
thanks 🙏


[BUG] tag parse error

Thanks for reporting.
Lepton uses the twitter-text for extracting twitter-style tags. A quick search shows that the ignorance of - seems to be intentional there(https://github.com/twitter/twitter-text/issues/88).
Maybe https://github.com/twitter/twitter-text/issues/88 is better place to discuss this issue :)

But - is not a query parameter on github.

It's just a policy how twitter-text extracts links from a string.  I believe it follows the same policy to extract hashtags too.

@Cologler I forgot to mention we can actually make tags in this way, which accepts -.
[title] description #tags: tag1, tag2

https://github.com/hackjutsu/Lepton/issues/211


add onEdgeClick prop to ReactFlow component

Hello,
Edges by default have an onClick prop which is how it is set to 'selected' but this prop isn't exposed to the ReactFlow component.
https://github.com/wbkd/react-flow/blob/6b6c85fe457f1a60850264a37d310d8da33c8a34/src/components/Edges/wrapEdge.tsx
Can you please add this prop to the ReactFlow component so that we can handle when user clicks on an edge?
thanks a lot

It's the onElementClick option. It triggers for nodes and edges.


Screenshot tests of root views

I added some basic measurement tests for TreehouseUIView in this PR.
We should do screenshot tests for all platforms, the same way we do with the built-in widget implementations.

#1414


fix some erros

Fixed #29 issue that disappeared images in about us page.

look like bug #27  fixed tested on staging
Closes #27


Email Authentication

Hi Miguel,
I have an odd issue with authenticating users via email. I'm able to send emails just fine and it generates the token for that user all seems to be well. However when the User clicks on the link and it brings them back to the site to log in to confirm their account it always says that the token is invalid. The thing that makes this odd is that when I click the link to resend an email with a new confirmation link it works just fine. I'm not really sure why it's behaving like this i.e. doesn't work the first time but works the second. It looks like to me the first time it runs data = s.load(token) runs nothing.
Any thoughts what might be causing the issue?

Found the issue, my own fault, hadn't committed the new User before calling self.id

am having the same problem for two days, how do solve it


Problems of obtain_word_embedding

https://github.com/JudyYe/zero-shot-gcn/blob/master/src/tools/obtain_word_embedding.py#L110
Here should raise an error if word_vectors doesn't have the key

https://github.com/JudyYe/zero-shot-gcn/blob/master/src/tools/obtain_word_embedding.py#L51
The provided embedding is not normalized.

If you don't raise error, current code will never run
https://github.com/JudyYe/zero-shot-gcn/blob/master/src/tools/obtain_word_embedding.py#L76
which leads to almost half embeddings to be empty.
At least, I've checked, if the two problems I pointed out are fixed, then the generated embedding is almost identical to the provided embedding (only tow rows don't match).

You are right.  I just fixed it... Thank you for pointing out.


Chris remove

My Name was showing up way too much on the events page so I did some editing. (Ignore the other two commits, they will return in another branch)

ack


Fix up for build error in build environment with ARM architecture

There are couple of problems when I try to build libspdm in a Yocto project with ARM architecture.
This pull request fixes the problems which I've met.
I used following cmake command.
EXTRA_OECMAKE = "-DARCH=${TUNE_ARCH} -DTOOLCHAIN=NONE -DTARGET=Release -DCRYPTO=openssl -DBUILD_LINUX_SHARED_LIB=ON"

Fixed problems:

openssllib and cryptolib_openssl prints "Unknown ARCH" and stop building, because 'os_stub/openssllib/CMakeLists.txt' and 'os_stub/cryptlib_openssl/CMakeLists.txt' has 2 if statement for 'ARCH' cmake parameter and first one prints "Unknown ARCH" with FATAL_ERROR.

Warnings and errors from sub-modules related with compile flags.
For ex, following error needs '-include base.h'.

| .../libspdm/os_stub/openssllib/include/openssl/configuration.h:55:9: error: unknown type name 'size_t'
|    55 | typedef size_t UINTN;
|       |         ^~~~~~

Cannot find -lssl and -lcrypto on linking lib/libspdm_crypto.so

.../libspdm/git-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/11.2.0/ld: cannot find -lssl
.../libspdm/git-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/11.2.0/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status

Redundant RPATH warning by Yocto QA tests

libspdm: /usr/lib/libspdm.so contains probably-redundant RPATH /usr/lib [useless-rpaths]

@uvinrg for review as well.

Changes look good to me, thank you.

@gixttl @twilfredo as you can tell this repository's CI/CD doesn't have good coverage for ARM builds. If you are interested in adding a new ARM-focused workflow to CI/CD please let me know.


AEROGEAR-7861

Web push integration with web-push-libs has been added successfully.

Hi @pb82, you can test web-push functionalities with a simple jsf project I've attached to this comment, look at template.xhtml.
webpush.zip


USBImager: fixed wrong hash

fixed wrong hash

[X] I have read the Contributing Guide.

/verify

thanks for review


Website fixes and improvements

Copy master docs instead of using symlinks (except assets): this
enables scripted conversion from <img> (HTML) to Markdown and
automatic removal of some HTML comments
Remove EKS terraform guide from TOC
Fix some bad links and formatting

@ccbayer @susanwu88 FYI I fixed a few issues with the "master" version of the website and improved a few of Cody's scripts to make it easier to keep the master branch and this branch in sync


AJ-762 address set-output and save-state deprecation warnings

See AJ-762
This PR updates the version of actions/cache to address deprecation of set-output and save-state.

Do will still need to handle the explicit usage of set-output in publish-docker.yaml?

Do will still need to handle the explicit usage of set-output in publish-docker.yaml?

Yep!  I must not have been very careful going through all the actions looking for the warnings.  Good catch, thank you!


Can not build

~/t/node-mc (master) $ npm run build

><EMAIL_ADDRESS>build /home/tperson/tmp/node-mc
> NODE_ENV=production webpack

Hash: 432211e2e876946f6ad0
Version: webpack 1.10.1
Time: 30885ms
    + 482 hidden modules

ERROR in ./~/html-tui/index.js
Module parse failed: /home/tperson/tmp/node-mc/node_modules/html-tui/index.js Line 1: Unexpected reserved word
You may need an appropriate loader to handle this file type.
| export {default as TuiElement} from './lib/tui-element';
| export {default as render} from './lib/renders';
| export {addSerializer} from './lib/serializers';
 @ ./lib/tui-dom/index.js 23:15-34

I'm also seeing this - Node 0.12.5 on Linux.

Sorry for the delay. I'll fix it tomorrow for sure.

On 07 Jul 2015, at 19:52, fetchak<EMAIL_ADDRESS>wrote:
I'm also seeing this - Node 0.12.5 on Linux.
—
Reply to this email directly or view it on GitHub.

Fixed in the latest version.


Document that onRun requires call to this.next

According to README.md, onRun requires you to call this.next if you want the next function to be called. Therefore I've updated the guide to also mention this.

@aknuds1 fixed by merging https://github.com/iron-meteor/iron-router/pull/1377


Do Zone Redundant ASP hosted WebApps support Custom Domain?

Hi Team, been trying for the last 24 hours to add a custom domain to a green field webapp hosted on a Zone Redundant ASP (EastUS)
We have both the CNAME and TXT records in our Public DNS (Azure Public DNS) but Validation continues to fail stating:

"Validation failed because the expected DNS records are not found: Hostname 'xyz.blah.com' conflicts with an already existing hostname. Try checking the hostname records entered with your domain provider.  Note that it can take up to 48 hours for the records changes to take effect.

I've also tested the same process with the same custom domain name on a normal Non-Zone Redundant ASP and the process works as advertised.  Is Zone Redundant not supported for Custom Domain Names?    Sorry for the big text here, I don't know how to make it normal sized.  :)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 224b73dd-c59d-a833-0d4d-a778af6086a9
Version Independent ID: c6b167c9-9589-45d0-ee6a-7a47a4aec41e
Content: Map existing custom DNS name - Azure App Service
Content Source: articles/app-service/app-service-web-tutorial-custom-domain.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@helplessJ
Thanks for your feedback! We will investigate and update as appropriate.


Update App Runtime Deployments WG doc

Small update with meeting/calendar info. Also added the "cf-test-helpers" repo.


[DOCUMENTATION] update title

On UUV documentation, we have title like page title | brand name.
We must have brand name | page title

hey @stanlee974 I would like to work on this issue if its open for contribution

Hey !
You're Welcome.
Thanks for your help ❤

No problem @stanlee974  I could work on #631

@vr-varad it's a pretty cool issue. Thanks.


Mobile interface

There is a pretty good implementation of it here:
https://github.com/trentmercer/gameplayadvanced
I have been working with some of these changes locally. I do think the style of it could be improved. Also if there could be a way of allowing someone to drag their finger to change which dpad input they are putting in (currently only taps work)
@trentmercer are you interested in trying to merge your changes in?

Would love to help out if I get some time this weekend
On Sat, Sep 5, 2020 at 8:14 PM Andy Chase<EMAIL_ADDRESS>wrote:

There is a pretty good implementation of it here:
https://github.com/trentmercer/gameplayadvanced
I have been working with some of these changes locally. I do think the
style of it could be improved. Also if there could be a way of allowing
someone to drag their finger to change which dpad input they are putting in
(currently only taps work)
@trentmercer https://github.com/trentmercer are you interested in
trying to merge your changes in?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/andychase/gbajs2/issues/7, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALFPWKJFONYLKJJLTYTM5O3SELH7XANCNFSM4Q3SIBBA
.

Duplicate of #13


#37 Generating traffic to website

Wondering if time can be spent also on some cool/cheap/free online resources to help generate traffic to websites

@RoyKoh Thanks for the proposal!
@lanbau @mel1313 What do you think about this?

http://www.ericstips.com/tips/lesson84/

I can share some tips

@mel1313 ... go on
On Thu, Jan 21, 2016 at 1:36 PM, mel1313<EMAIL_ADDRESS>wrote:

I can share some tips
—
Reply to this email directly or view it on GitHub
https://github.com/ga-students/wdi-sg-organisers/issues/37#issuecomment-173460047
.


Tutorial does not work: you need to call CesiumWidget() first, then Viewer()

When trying to follow the tutorial within a Jupyter notebook, I noticed that I get an error:
import cesiumpy

v = cesiumpy.Viewer()
b = cesiumpy.Box(dimensions=(40e4, 30e4, 50e4), material=cesiumpy.color.RED, position=[-120, 40, 0])
v.entities.add(b)

Javascript error adding output!
ReferenceError: Cesium is not defined
See your browser Javascript console for more details.

 If I now call the first code in a new cell once again, it will work just fine. Seems to me that the Viewer() method is not loading cesium.js correctly.
Using Firfox on Ubuntu 16.04.
See screenshots.

I am seeing the exact same issue. We should update the doc on the correct initialization order.

I think it's kind of random, sometimes it works with Viewer() just fine... (I reported this again in #77)


Add warning to autobone (in onboarding)

Autobone can be confusing, we want to add folowing warning to stress that people should check the resulting proportions, and not blindly trust the results.

Autobone will try to determine your proportions from a few movements you need to do. This can improve tracking precision by a lot. If done wrong, the proportions generated will also be wrong and the tracking will be bad. You can always reset proportions when standing up straight and get back do default or try to adjust them manually.
Please check if proportions look correct, like your height and leg length make sense. If not, please redo the calibration.

We also need to make test on all autobone screens bigger and increase the timer from 15 seconds to 30 seconds.


feat: add additional lints and bump to v2.1.0

Description

feat: add additional lints and bump to v2.1.0

New Lints

avoid_print
avoid_returning_null_for_void
avoid_single_cascade_in_expression_statements
avoid_unnecessary_containers
avoid_web_libraries_in_flutter
curly_braces_in_flow_control_structures
exhaustive_cases
file_names
no_logic_in_create_state
prefer_const_constructors_in_immutables
prefer_const_declarations
prefer_const_literals_to_create_immutables
prefer_function_declarations_over_variables
prefer_inlined_adds
prefer_is_not_operator
prefer_null_aware_operators
prefer_void_to_null
provide_deprecation_message
sized_box_for_whitespace
unnecessary_overrides
unnecessary_string_escapes
unnecessary_string_interpolations
use_full_hex_values_for_flutter_colors
void_checks

Type of Change

[X] ✨ New feature (non-breaking change which adds functionality)
[ ] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Noice!


Choice of Sequences Example Not Working Properly?

Not sure, if this is working properly. From the description the rule should fire only when A && B || C && D but it fires only when A is true.

That is correct, the rule should fire when both A and B are satisfied or C and D are satisfied. I just tried the example in node.js, Python and Ruby. It seems to work fine. Would you mind pasting the scenario that does not work for you?

I have been playing with that example, and trying to wrap my head around it. It looks like when I send:
amount: 10,000
subject: jumbo
in any order after n many events, it always matches. Similarly with approve and 1,000. In any order, these two events get paired up. Is this the expected behavior?
Now the question is, I can use the same 'id' to send two events with different parameters within the same sid. Is that normal behavior? That means I can have two events sharing the same id with different event parameters?

Hi, thanks for reporting this issue. Let me try your scenario and I will report back. The same id should not be used. When an event is accepted, the API will return 0 otherwise it will return 1. If you are using the REST API, the Post call will return a JSON object with the call outcome ({ "outcome":1 }).

Any updates on this @jruizgit ? Thank you for your help!

Hi, I have been testing the scenario. Two events with the following properties in any order should always match.
amount: 10,000
subject: jumbo
The all operator means all events that match in any order. Any operator means any of the events that match. Are you seeing different behavior, would you mind pasting your code so I can better understand your scenario?


Home Radio

Weird sound when moving around, seems to be something wrong with the distance check causing distortion and choppy sounds sometimes only 1 side working... Not very noticeable with speakers, headphone u can hear it better...

Could be solved by https://github.com/ImagicTheCat/vRP/commit/e55401a8422d1b69a069174d1e6392d5739dbce2.


Tti fix

Small typos from 90 lines changes and model initialization names fix.

what's stopping this from landing?

@FabioLuporini: This is on top of #103

Looks sensible to me. Good to go once green.


Add 16.0.5 and 16.0.6 distributions

I ran these commands:
utils/llvm_checksums.sh -g -v 16.0.4
utils/llvm_checksums.sh -g -v 16.0.5
utils/llvm_checksums.sh -g -v 16.0.6

and integrated the results into the distributions file. (I updated 16.0.4 because it looks like there are new distributions since this file was last updated).

Thanks!

Thanks for the project, and for the fastest merge I've ever seen! :)


Stack info not showing for Windows App services

Windows App services has the "Stack" column blank.

ModuleType Version    Name                                ExportedCommands

Script     3.5.7      AzureResourceInventory              {Invoke-ARI, Connect-ARILoginSession, Build-ARIExcelLargeR...

This should be fixed in the version 3.5.9 that will be released this week


Dev restful

filled about page with text

most recent flagging.py commit also fixes the f'reach_{reach} line

Very good changes.
One more thing while you're at it. This is a bit complicated but you can handle it and this will make everything come together nicely.
Dan is working on moving your API over to api.py. He's not 100% there, but he's close. I think you can take over from where he's at and merge in your changes with his.
Try the following:
git checkout dev_restful
git remote add daneder https://github.com/dfe325/flagging.git
git fetch daneder
git pull daneder api-landing-page

Do you see what the above git stuff is doing?
When you do this, you are going to run into a merge conflict. It will look something like this:
From https://github.com/dfe325/flagging
 * branch            api-landing-page -> FETCH_HEAD
Auto-merging flagging_site/blueprints/flagging.py
CONFLICT (content): Merge conflict in flagging_site/blueprints/flagging.py
Automatic merge failed; fix conflicts and then commit the result.

Here's I think the simplest way to resolve this, although it'll feel a bit like cheating because you're going to mostly be ignoring all the merge conflict helper text. Go back to your personal Github, then CTRL+C everything from line 139 down in this file: https://github.com/cameronreaves/flagging/blob/dev_restful/flagging_site/blueprints/flagging.py#L139 Then rewrite everything in api.py starting from line 25 downward by CTRL+Ving over it. Then, delete everything in lines 139 downward in the new flagging.py file.
Next, copy+paste this over to api.py as well:

And then delete the merge conflict helper text. (<<<<<<< HEAD, =======, and >>>>>>> be3bb77aa92226d8336ed03dc079102f99d86542).
Next, delete the flask_restful import in line 11 as the api.py will be handling it.
Finally, save your changes as having resolved the merge conflicts:
git add flagging_site/blueprints/*
git commit -m

There are a few additional changes that will need to be made. Basically, the end goal here is to stick everything that's under the /api/* part of the URL into this api.py file so that it's all housed in one spot. (Eventually, we're going to do even more moving around of the code base so that we aren't duplicating functionality for data retrieval, but for now it's fine).
In that merge you've made, there will be a template Dan made called /templates/api/index.html, which is the API landing page. Can you add a function to the Blueprint inside of /api that routes his template to the blueprint in api.py?
If you want a hint on how to do this, check out the cyanobacteria.py file (for testing you can uncomment lines 4-7).
Last but not least, if you do everything correctly above, you'll notice when you go to test the site that you'll need to make some minor changes to the string that routes your API to make it consistent with /api/v1/model.

Also, I understand that this is a really weird ask. I'm basically giving you a taste of the messiness of handling a collaborative project, but that might not be your idea of a fun Sunday. Just let me know if you don't have time to do this (no valid excuses needed, any excuse works) or if you find it confusing, and I can take it over instead.

No problem, I can handle it. Definitely a fun Sunday!

Looks good, and this runs perfectly with run_windows_dev; this is what I intended.
But this needs three more changes before I'll pull it in.

You can't hardcode to https://<IP_ADDRESS>/ <-- that won't work in production.
Use a URL prefix to /api in the Blueprint definition. (Cyanobacteria.py has an example of this.)
Don't use mutable objects as default options. Do this instead for model_api:

The or operator in Python isn't strictly a boolean logic operator. Technically the or operator in Python returns the first object that when cast to a bool returns True, else it returns the last thing. Check this out:
print(False or 0)  # will print 0
print(0 or False)  # will print False
print(0 or None)  # will print None
print(None or 0)  # will print 0

print(None or 1)  # will print 1
print(5 or None)  # will print 5
print(5 or 3)  # will print 3
print(None or 7)  # will print 7
print(None or [1, 2, 3])  # will print [1, 2, 3]

The reason this works is because each of these objects have a bool() type.
print(bool(None))  # will print False
print(bool(5))  # will print True
print(bool(0))  # will print False
print(int(5).__bool__())  # uses `__bool__` magic method; will print True
print(int(0).__bool__())  # uses `__bool__` magic method; will print False
print(bool([]))  # empty list; will print False
print(bool([1, 2, 3]))  # non-empty list; will print False

So that's why the code I wrote works. But why avoid the [1, 2, 3] in the argument to begin with?
This blog post a bit hyperbolic but it explains why mutable objects (notably dicts and lists) are bad as defaults: https://florimond.dev/blog/articles/2018/08/python-mutable-defaults-are-the-source-of-all-evil/

Ahhhh I see. That's neat! Thanks for all the help.

Perfect!


codeshield triggers deprecation warnings

Currently when executing the test suite, I am observing:
/usr/local/lib/python3.12/site-packages/codeshield/insecure_code_detector/oss.py:29: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.

It may be good to get rid of this, by adapting to any potential new APIs.

This is fixed as we don't depend on codeshield anymore