chore(l10n): Update Polish translation

Ref: https://github.com/newsboat/newsboat/pull/2088#issuecomment-1151448047

Coverage remained the same at 59.496% when pulling c4387109e8341cafd5ec56f491441618958c87b5 on carno:update-pl-translations into 816e53e1d4fa16deed801ede6fb5f50706eb349f on newsboat:master.


Migration to clang-9

It would be nice to update the source code of the obfuscator to support newer releases of clang.

merged


*: add golangci-lint

Signed-off-by: crazycs520<EMAIL_ADDRESS>
What problem does this PR solve?

Issue Number: close #4
What is changed and how it works?
▶ make lint
GO111MODULE=on tools/bin/golangci-lint run -v $(go list ./...| grep -E "github.com/pingcap/ng-monitoring/" | sed 's|github.com/pingcap/ng-monitoring/||') --config .golangci.yml
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 21 linters: [asciicheck bodyclose deadcode durationcheck errcheck exportloopref goimports gosec gosimple ineffassign makezero misspell prealloc rowserrcheck staticcheck structcheck stylecheck typecheck unconvert unused varcheck]
INFO [loader] Go packages loading at mode 575 (files|imports|exports_file|name|types_sizes|compiled_files|deps) took 1.016317274s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 9.514185ms
INFO [linters context/goanalysis] analyzers took 0s with no stages
INFO [runner] Issues before processing: 55, after processing: 0
INFO [runner] Processors filtering stat (out/in): cgo: 55/55, filename_unadjuster: 55/55, nolint: 0/2, skip_dirs: 55/55, exclude: 55/55, skip_files: 55/55, path_prettifier: 55/55, autogenerated_exclude: 55/55, identifier_marker: 55/55, exclude-rules: 2/55
INFO [runner] processing took 3.574576ms with stages: nolint: 1.357858ms, identifier_marker: 918.032µs, path_prettifier: 572.218µs, autogenerated_exclude: 409.829µs, exclude-rules: 225.766µs, skip_dirs: 63.106µs, cgo: 15.483µs, filename_unadjuster: 5.693µs, max_same_issues: 1.674µs, uniq_by_line: 928ns, path_shortener: 729ns, diff: 662ns, max_from_linter: 476ns, source_code: 419ns, skip_files: 359ns, exclude: 336ns, severity-rules: 311ns, max_per_file_from_linter: 277ns, sort_results: 273ns, path_prefixer: 147ns
INFO [runner] linters took 188.779209ms with stages: goanalysis_metalinter: 185.055838ms
INFO File cache stats: 0 entries of total size 0B
INFO Memory: 14 samples, avg is 81.9MB, max is 139.0MB
INFO Execution took 1.233832538s

@breeswish @zhongzc PTAL

/merge


Ipython updates clean

Updating the notebook:

animations and an extra example kernel to the PARCELStutorial notebook
automated testing of the notebook via the ipynb plugin of py.test (which annoyingly doesn't seem to allow testing of files that don't start with test_*, so created a symlink)

Except for 'none'-> None this looks good to me. Good to go.

Looks great now, merging.


fix for #1164

Hi,
when I search for bug (#1164) in my old PR I found that this PR was reverted (https://github.com/EmpireProject/Empire/commit/71a22a3b9fdc84a2348679d04ff7f5807b8c70ba). But I think that Get-Acl was already in powershell v2. Microsoft remove v2 from their PS doc but at least I found this v2 reference here http://adamringenberg.com/powershell2/get-acl. At least I fixed my previous bug if you don't accept this PR :).

Thanks @winnie22 !


Fix call to cuda library

The wrong function was called with the given arguments. cudaOccupancyMaxPotentialBlockSize can only be called with max. 5 arguments. There is an extra function cudaOccupancyMaxPotentialBlockSizeWithFlags which additionally can accept optional flags - like described in the official documentation.
So currently (without this fix) the following error occurs when compiling a hip program, which uses hipOccupancyMaxPotentialBlockSize, for a nvidia device:
/opt/rocm/include/hip/nvcc_detail/hip_runtime_api.h:1217:44: error: no matching function for call to ‘cudaOccupancyMaxPotentialBlockSize(int*&, int*&, const void*&, size_t&, int&, unsigned int&)’
     cerror = cudaOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, dynamicSMemSize,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_runtime.h:1827:1: note: candidate: template<class T> cudaError_t cudaOccupancyMaxPotentialBlockSize(int*, int*, T, size_t, int)
 static __inline__ __host__ CUDART_DEVICE cudaError_t cudaOccupancyMaxPotentialBlockSize(
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_runtime.h:1827:1: note:   template argument deduction/substitution failed:
/opt/rocm/include/hip/nvcc_detail/hip_runtime_api.h:1217:44: note:   candidate expects 5 arguments, 6 provided
     cerror = cudaOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, dynamicSMemSize,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I just saw, that there is an issue for this problem: #879 - that issue should be solved with this commit.

@mangupta Thanks for the feedback. I agree with what you said and changed the file accordingly.


Readme documentation for iOS oneTimeCode textContentType.

Readme changes discussed at https://www.nativescript.org/blog/building-an-awesome-login-screen-with-nativescript

Thanks so much for this @mattfaces! I finally got around to merging it in 🙂


[WIP] Added FW-Yaml module for distributed-firewall network example.

Tests are on the way.

@juliocc we need to find a way to make example tests work for this ;)

@averbuks one thing I'm a bit wary of with this is rule name clashes within the same project: what about using a format like [vpc name]-[leaf directory name]-[name for the rule yaml block]?

@averbuks one thing I'm a bit wary of with this is rule name clashes within the same project: what about using a format like [vpc name]-[leaf directory name]-[file name]-[direction]-[name for the rule yaml block]?

@ludoo good catch, I will incorporate vpc-name, I also like taking directory names, not sure about file name though.

@ludoo I adjusted VPC name to the FW rule name, but decided to skip taking folder names for now. I would definitely do that if I'm a customer (so I can define a strict folder structure and naming), but let's keep it more generic for now. Someone can just define one yaml file in the same folder where main.tf resides and say config_folder="./", so we have nothing to derive.
WDYT?


private to protected in WebhookHandler

Hi, I need to override handleCallbackQuery, but it's a private function. It's impossible to create your own handling of callbackQuery.
I think, here should be protected instead of private

Hi, may I ask why do you need to override handleCallbackQuery?

Hi, may I ask why do you need to override handleCallbackQuery?

Hi. Sure, I have created a plugin system, so, callbackQuery is executing in another class.
Here is an example with a command executing:

P.S. Also it's possible to create something like handleUnknownCallbackQuery. Maybe it will be better than changing the accessor.

I got your point, will implement a way to handle unknown callback queries soon ;-)

I got your point, will implement a way to handle unknown callback queries soon ;-)

I can implement and send PR if my help is needed :3

Sure! Any help is welcome ❤ feel free to open a PR

It was released in 1.53.0 version


prefer transaction id over txid

in this case, i disagree because TxId is the LRZ type we rely on.

I see your point, but couldn't that actually be an argument in favor?   The developer can read the foreign crate type in the signature..  now..  without further action it's disambiguated by the ident as "a transaction" as opposed to e.g. "a transmission".   So the more-explicit ident helps to fix an ambiguity introduced by the slightly less careful name being used elsewhere?


try to improve vitest-pool-workers for the cjs module resolution

What this PR solves / how to test
Fixes #6591
Author has addressed the following

Tests

[ ] TODO (before merge)
[ ] Included
[ ] Not necessary because:

E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)

[ ] I don't know
[ ] Required / Maybe required
[ ] Not required because:

Changeset (Changeset guidelines)

[ ] TODO (before merge)
[ ] Included
[ ] Not necessary because:

Public documentation

[ ] TODO (before merge)
[ ] Cloudflare docs PR(s):
[ ] Not necessary because:

Assigning to @penalosa as we discussed, he should be well positioned to debug the windows incompatibility/failure 🙂


Decide what we are going to spike, test, prototype? (Brett leading, opportunity for steering group to contribute) (developer, design, accessibility)

What
We want to show some 'things' to the Navigation steering group on the 8 April 2024 for a crit.
We are looking to base our starting point off the Navigation bar used on the Design System website, as this was mentioned in the Backlog prioritisation survey and has been seen in many examples. Including x-gov prototype components, primary navigation. It also helps us build our own website to the same high standards as our contribution process.
Prioritised spike and prototype work

[ ] How does navigation fit in with our existing header component? Can we extend our current header component rather than knock up something new? (list out the needs then pass to developer to spike)
[ ] What do we display on smaller views? How does the smallest view expand to the largest view? (design)
[ ] How do we enable “add-ons” like search and account stuff? (design, developer - two tasks)
[ ] How easy will it be to upgrade? (developer)
[ ] Can we provide some consistency to how links are treated in the existing header? How do we communicate where the links link to to our users (design and conversations with other teams incl. steering group)

Additional spikes and prototype work

[ ] Do we want to spike what level 3 might look like? (design, developer)
[ ] Can level 2 nav be left-side? (design, developer)

Outcomes

Investigate any early accessibility issues
What does our MVP look like? (just copy the DS nav bar wholesale?)

Why
We want to have a better idea about our contribution ahead of the working group review w/c 15 April 2024
Done when

[x] Collected all suggestions for spikes/prototypes
[x] Prioritised the suggestions
[ ] Start running spikes and/or collaborating on designs
[ ] Publised spikes to main cycle board as tasks

Nice to investigate any early accessibility issues: https://docs.google.com/document/d/1WMMgbnxriRekaDPfrudXDOyyCMgFBky6ymbK_vsNn7c/edit#heading=h.y8esn6wmdany

Here we have listed out our needs in a google document for the Spike: Header component

Running this experiment has helped me understand some changes we may need to make to the existing header component in the design system.

If we want the content of the Navigation elements to align with the logo we will have to apply the blue border-bottom to a different container
We still do not address the issues with linking back to a homepage

We've prioritised the following 3 investigative spikes, aiming to be completed for the steering group crit on 8 April:

#3714
#3715
#3716


Example code tests timeout and fail

I'm submitting a ...  (check one with "x")
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior

Following the example code at https://hackedbychinese.github.io/ng2-idle.  When I run the tests, they timeout with this error:
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
If I remove the call to this.idle.watch(), the tests don't timeout.
Expected behavior
The tests should run and pass without timing out.
Minimal reproduction of the problem with instructions
I create a new project with angular-cli (RC2), add the example code, validate the example works in the UI, run the tests using ng test, the tests now fail with a timeout.
What is the motivation / use case for changing the behavior?
It would be nice to get the tests to work.
Please tell us about your environment:
MAC Sierra

@ng-idle version: 2.x
2.0.0-beta.8

Angular version: 2.x
2.4

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Chrome

Language: [all | TypeScript X.X | ES6/7 | ES5]
Typescript

Node: node --version =
6.9.4

I can get the tests to work if I create a mock for the Idle class:
@Injectable()
export class IdleMock {
    private onIdleEnd = new EventEmitter();
    private onIdleStart = new EventEmitter();
    private onTimeout = new EventEmitter();
    private onTimeoutWarning = new EventEmitter();

    watch() {
    }

    setIdle() {
    }

    setTimeout() {
    }

    setInterrupts() {
    }
}

and then override the Idle class with the mock:
TestBed.configureTestingModule({
           declarations: [
               AppComponent
           ],
           imports: [
               NgIdleKeepaliveModule.forRoot()
           ],
           providers: [
               {provide: Idle, useClass: IdleMock}
           ]
       }).compileComponents();

Hi, It would be helpful if you can share the complete test file with some tests written


Update dependencies

Summary
This pull request introduces significant updates to the project's dependencies and its main index.ts file. With the addition of these dependencies users no longer need to manually install these dependencies to follow the recipes provided in the README.md
File Changes
package.json

Dependencies Added:

@types/jest-image-snapshot: Version ^5.1.0.
axe-playwright: Version ^1.2.3.
jest-image-snapshot: Version ^6.2.0.

src/index.ts

New Imports and Exports:

Imported Config type from @jest/types.
Exported several entities from ./playwright/hooks, ./config/jest-playwright, and ./setup-page.
Added exports for image snapshot related functions from jest-image-snapshot.
Defined and exported JestConfig and GlobalConfig types.
Exported various functions related to accessibility testing from axe-playwright, like injectAxe, configureAxe, getAxeResults, etc.

From #323

Hey @bryanjtc! Thank you for this contribution!
Although this is a pretty neat idea, I believe this doesn't align with our current plans for the test-runner. The recipes exist so users can extend the test-runner and add different testing capabilities to it, based on whatever they like. By making this baked in to the test-runner, it adds a lot of maintenance area for us, and given that jest-playwright-preset is in maintenance mode and there are plans in the future to migrate away from it and use @playwright/test directly instead, the less attached to jest dependencies the test-runner is, the better it will be. I hope you understand and don't mind if I close this PR! We can always revisit this and discuss either here or on discord.
Thank you so much <3

@yannbf I noticed that there is also a new @storybook/test package that uses vitest. The end goal is for the test-runner to just support @playwright/test and vitest? Isn't there a way to also keep jest?

@yannbf I noticed that there is also a new @storybook/test package that uses vitest. The end goal is for the test-runner to just support @playwright/test and vitest? Isn't there a way to also keep jest?

The idea would be to use @playwright/test only, without Jest or Vitest. It would be as contained as possible. The @storybook/test package is pretty much the same as @storybook/jest in the sense that it only exposes the expect and spy utilities, but now it's from Vitest's internals instead of Jest. I know it's confusing!
cc @kasperpeulen


feat: added usehederavotecallback for hedera

Summary

What does this PR do?

Added useHederaVoteCallback for hedera mainnet in useVoteCallbackHook mapping

Why is this change needed?

To able the user to vote in hedera mainnet via UI

Details
Please provide enough information so that others can review your pull request.
Type of Change

[ ] Bug Fix (a non-breaking change that solves an issue)
[x] New Feature (a non-breaking change that adds functionality)
[ ] Breaking Change (fix or feature that would change existing functionality)
[ ] Refactoring (improves code quality but has no user-facing effect)
[ ] Documentation Update (if none of the other choices apply)

Related Issue(s)

Give link to the issues

Checklist

[x] I have read the CONTRIBUTING document.
[x] I have included Changeset
[ ] I have included screenshot/video if required
[x] I have tested my changes.
[ ] I have made corresponding changes to the documentation if needed.

/snapshot


[extractor/youtube] Update piped instances

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Updated piped instances based on https://github.com/TeamPiped/Piped/wiki/Instances and https://piped-instances.kavin.rocks/
Similar PR #5286
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Does the generic redirect not work for these?

@pukkandan it doesn't
@Lesmiscore it works here!
./yt-dlp -s https://piped.smnz.de/watch?v=c70T_a58owc
[youtube] c70T_a58owc: Downloading webpage                 [youtube] c70T_a58owc: Downloading android player API JSON
[youtube] c70T_a58owc: Downloading MPD manifest
[youtube] c70T_a58owc: Downloading MPD manifest
[info] c70T_a58owc: Downloading 1 format(s): 303+251

My bad - It's invidious that Generic can resolve, not piped.
Does Piped have anything similar to https://github.com/iv-org/invidious/pull/1730? If not, someone should probably bring it up to them

My bad - It's invidious that Generic can resolve, not piped.
Does Piped have anything similar to iv-org/invidious#1730? If not, someone should probably bring it up to them

We don't support it yet but it shouldn't be hard to add, I'll probably add support for it later! :)


[FLOC 3488] Add a note to agent service doc about Docker running

Fixes 3488
The flocker-container-agent service must have Docker running before it is enabled (there is currently a bug on Ubuntu that forces a hang if Docker is not running - see FLOC 3490)
This PR adds a note to the Configuring the Agent Services page so the user is aware that they should have Docker running at this point in configuring Flocker.

LGTM. Thanks.


BUG: read_csv: dtype={'id' : np.str}: Datatype not understood

I have a CSV with several columns. The first of which is a field called id with entries of the type 0001, 0002, etc.
When loading this file, the following works:
pd.read_csv(my_path, dtype={'id' : np.int})

but the following doesn't:
pd.read_csv(my_path, dtype={'id' : np.str})

nor does this either:
pd.read_csv(my_path, dtype={'id' : str})

I get: Datatype not understood
This is with pandas-0.10.1

it works now
D = pd.read_csv(filep, sep=sep, dtype=mm,header=None,names=feature_name,\
            keep_default_na=False,na_values={m:'' for m,v in mm.items() if v==np.object_})


docs: add Dockerfile and .yml for building conda env

The Dockerfile proposed here downloads the executable file from dssp repo, and installs it in the container context. It also uses a yml file (together with a txt file) for installing conda and pip dependencies, respectively.
@DaniBodor for reviewing this PR you can follow the new docker instructions and the new installation instructions.
I opened a separate issue for creating an action for testing the Dockerfile #529.
When this PR is going to be merged, remember to update the JOSS' reviewers (https://github.com/openjournals/joss-reviews/issues/5983)

I'm getting an error in the trainer notebook if I run it now (in the cell where GNN is tested). I get the same error if I run it locally from this branch and the latest env, but not from my working repo/env.

UnboundLocalError                         Traceback (most recent call last)
Cell In[9], line 7
4 earlystop_maxgap = 0.1
5 min_epoch = 10
----> 7 trainer.train(
8     nepoch = epochs,
9     batch_size = batch_size,
10     earlystop_patience = earlystop_patience,
11     earlystop_maxgap = earlystop_maxgap,
12     min_epoch = min_epoch,
13     validate = True,
14     filename = os.path.join(output_path, f"gnn_{task}", "model.pth.tar"))
16 epoch = trainer.epoch_saved_model
17 print(f"Model saved at epoch {epoch}")
File /opt/conda/envs/deeprank2/lib/python3.10/site-packages/deeprank2/trainer.py:640, in Trainer.train(self, nepoch, batch_size, shuffle, earlystop_patience, earlystop_maxgap, min_epoch, validate, num_workers, best_model, filename)
638 # Now that the training loop is over, save the model
639 if filename:
--> 640     torch.save(checkpoint_model, filename)
641 self.opt_loaded_state_dict = checkpoint_model["optimizer_state"]
642 self.model_load_state_dict = checkpoint_model["model_state"]
UnboundLocalError: local variable 'checkpoint_model' referenced before assignment

The issue is that if the loss is nan (such as in this case using very few datapoints), checkpoint_model is never created, thus the error. Will be fixed in #533


Add GoRails to screencast section

I run a site with Rails screencasts called GoRails. Figured I'd add it to the list! :)

@excid3 GoRails is awesome. Keep up the great work :+1:

:metal: :metal:


add-ashutoshmishra

Hi team
Request to please add me
Thanks !

https://github.com/SeleniumHQ/sosc/pull/81 - added


add option to manually dispatch workflow run

Since I have disabled the automatic cronjob that runs the page generation, I have to manually tell the docs to do a re-deploy when any of the repositories has a new release. But I forgot to add a way to trigger the deploy workflow...

The workflow_dispatch trigger adds a button on the top of the workflow history that allows triggering it manually on any branch (It should only be used on main, otherwise the branch-content would be published on gh-pages).

Does this mean, tag -> press the new button ?

Yep.


What is the procedure for updating almond?

Just what the title says :)

Sorry for the quite late answer :|
Just re-install it, but passing the --force option to almond (like ./almond --install --force). That will override any previous almond (or kernel with name scala).


Create needed Styles

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Have a styles.css (and other) components to add it in all HTMLs to everything is styled like Shindy
Describe alternatives you've considered
An alternative would be, to define each styled individually in each file, but that's nonsense. So its my way or highway
Additional context
None

Please clean up the styles


Reducing even eliminating all clippy warning

Is your feature request related to a problem? Please describe.
Running clippy cmd, current workspace generate serval warnings
cargo clippy --workspace --all-targets --no-deps -- -D warnings
output is
...

error: non-binding `let` on a future
   --> src/client/dispatch.rs:455:9
    |,
455 |         let _ = tx.try_send(Custom(3)).unwrap();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider awaiting the future or dropping explicitly with `std::mem::drop`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future

error: could not compile `hyper` (lib test) due to 49 previous errors

Describe the solution you'd like

Some of the more obvious fixes and can be automatically adopted, can be repaired
Something that requires a little bit of thinking about how to improve, like defining types for complex expressions, like Poll<Option<crate::Result<(MessageHead<T::Incoming>, DecodedLength, Wants)>>>,
Add clippy CI workflow

Describe alternatives you've considered
Additional context

I would love to reduce clippy error prompts :)

Some of the things clippy finds are worth fixing! But just enough things I disagree with that I therefore don't automatically run clippy, nor do I keep it in a CI job.
So, if you see some things that seem like obvious wins, those are welcome in a PR! I might comment on some of them that I disagree with what clippy recommends, just so you know ahead of time :)

Some of the things clippy finds are worth fixing! But just enough things I disagree with that I therefore don't automatically run clippy, nor do I keep it in a CI job.
So, if you see some things that seem like obvious wins, those are welcome in a PR! I might comment on some of them that I disagree with what clippy recommends, just so you know ahead of time :)

Thanks for you clarification.


No StrongAuthenticationRequirements parameter for Set-MsolUser

Current version of the MSOnline PowerShell module (<IP_ADDRESS>) doesn't have any StrongAuthenticationRequirements parameter for Set-MsolUser cmdlet. Currently I'm using this code to enable MFA:
$user = Get-MsolUser -UserPrincipalName<EMAIL_ADDRESS>$req = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement -Property @{
    State = 'Enabled'
    RelyingParty = '*'
}
$user.StrongAuthenticationRequirements.Add($req)
$user | Set-MsolUser

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

ID: 4cb129d2-9594-bf0c-5946-982f0ed0d888
Version Independent ID: 6522b038-6853-3552-55c8-f174cf56573d
Content: Microsoft Azure Multi-Factor Authentication User States
Content Source: articles/active-directory/authentication/howto-mfa-userstates.md
Service: active-directory
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

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

@PaoloCastAway Are you getting any error while running the script as I see this parameter available for set-user cmdlet.  See screenshot below -

@PaoloCastAway We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Update security.rst

Minor punctuation and terminology fixes. Updated security policies section based on: https://github.com/mattermost/docs/issues/885.

Thanks for the feedback, @lieut-data - much appreciated. Changes have been made and committed. :)


[v1-0.0.5] Wrong tag name

Hi,
The v1-0.0.5 release name does not follow the naming convention.
Right now, it is "v1.0.0-5" but it should be "v1-0.0.5".
It also makes the README.md invalid since the
git checkout tags/v1-0.0.5

command will not work.
Is it possible to fix this ?
Thank you.

Fixed (I'm not going to delete the bad tag, but at least the instructions will work). Thanks!


hvm: init at 0.1.88

Description of changes

High-order Virtual Machine (HVM) is a pure functional compile target that is lazy, non-garbage-collected and massively parallel.

https://github.com/kindelia/hvm

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

hvm


Is this project maintained? Do you want a hand?

Hi @TomFrost!
Firstly, thanks for this great library!
We're quite heavily dependent on it now here at cogs.show but I haven't seem many releases for a while despite a number of issues and PRs around key problems. It Jexl still being maintained in this repo? If not, is there a fork we should use?
I really don't want to be all "YOUR FREE SOFTWARE DOESN'T WORK" because, of course, you're not obliged to keep working on Jexl. So would you like some help reviewing issues and PRs? I'd also be happy to contribute bug fixes and features if it's helpful.

Hey Chetan! Yep, I'm here and still maintaining :) I've been slow due to a combination of the day job being quite busy, and working on a pretty significant update -- knowing that any issues I integrate now will have to be redone under the new version. I'd love for that not to drag on, though, so I'll see if I can get that wrapped soon!

Thanks @TomFrost!
If you're feeling a little overwhelmed feel free to give me a shout. Happy to help if I can. :)

Not to step on anyone's toes, but perhaps it makes sense to create a "next" branch that can be next major rewrite and allow others who are willing to help add patches to the current release branch. Jexl looks great, but from the outside it looks dead. Allowing the two branches to evolve in parallel might mitigate this perception and keep the community from splintering. Just a thought. Thanks.

Hi @TomFrost how are you. With the same respect as the original poster, I am wondering how things are wrt to the new version.
We're also considering integrating Jexl (and i used it in the past with much satisfaction), so having a sense of the status ofthe project is quite useful. Thanks!

Hello,
is there any planned upgrade to this library regarding this issue:
/node_modules/ngx-schema-form/fesm2020/ngx-schema-form.mjs depends on 'jexl'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
it looks like jexl is not ivy compatible and probably will not work under angular 16+ ?
thanks

Hi all! Apologies this has been slow-going -- Jexl still has my attention, and continues to compete with an aggressive deadline schedule at the day job. I'll get out a maintenance release soon at the minimum.

Hey @TomFrost ! This library looks fascinating. Is there any news regarding the maintenance, or can we help somehow? :-)


Contact Form component

As an Author, I want to have the possibility of adding a contact form to a page.
Details:

[x] contact form should have at least three input fields: email, message, and a consent checkbox,
[x] contact form should have a dialog with checkboxes allowing adding a subject and phone number inputs, a label for submit button, and text for a consent checkbox (rich text),
[x] an email address field should be validated if it is correct,
[x] an email address and message should be validated if not empty (consider if validate subject and phone number if present),
[x] a consent should be validated if it is checked,
[x] form request endpoint should be configured by the developer (not by the author),
[x] endpoint should be read from the configuration and stored as a global object on the page
[x] component should send the data to the endpoint from the configuration
[x] component should inform about success or failure.

During the implementation we discussed the required changes:

[ ] reading the configuration on the backend and adding

data-config="{'contactForm': 'endpoint/from/configuration'}"

to body tag

[ ] sending submitted form to endpoint from data-config
[ ] removing ReadContactFormConfigRestAction as it's useless anymore


Notch corrections for Lamination object

Few corrections to implement notches in Lamination object, especially LamHole rotors.
Also solve bug when importing FEMM files with worker parallelization.

The work is done, tests still have to be launched before merging.


feat: remove unnecessary global types

Thanks but __VLS_GlobalComponent is necessary 😅, see: https://github.com/johnsoncodehk/volar/blob/a93a5ad124a7da2070e2ca14cd25b9b7a185d759/packages/vscode-vue-languageservice/src/virtuals/template.ts#L65

__VLS_GlobalComponent has been declared here.
https://github.com/johnsoncodehk/volar/pull/172/files#diff-41f9e68d0b2a1f38a24c56baaa52c0acecb68943992373a82d4f6db808ee5991R42

We need use __VLS_GlobalComponents extends CoreGlobalComponents to support GlobalComponents interface from @vue/runtime-core before vue repo merge #3399.
HTMLAttributes from @vue/runtime-dom/types/jsx is also necessary for sfc-playground type-checking in vue repo.


Add Draggabilly support

This adds Draggabilly support by default.
If you'd rather this was optional, can do a separate PR for that.

Hi,
I know this is an old PR but this is not working when adding elements dynamically.
You are creating a new Dragabilly instance each time performLayout is called, which cause multiple instances of Dragabilly being binded when the grid is updated. It causes the layout to be completely messed up with strange gaps.
My solution was to only make new elements draggable:
        performLayout: function() {
            var diff = this.diffDomChildren();

            if (diff.removed.length > 0) {
                this.packery.remove(diff.removed);
            }

            if (diff.appended.length > 0) {
                this.packery.appended(diff.appended);
                diff.appended.forEach( this.makeEachDraggable );
            }

            if (diff.prepended.length > 0) {
                this.packery.prepended(diff.prepended);
                diff.prepended.forEach( this.makeEachDraggable );
            }

            this.packery.reloadItems();
            this.packery.layout();
        },

Let me have a look shortly. Do you mind if I use your solution and compare?

Yeah of course, let's say the code I gave above is public domain.


Viewer: Show pagination links

Should have working pagination links in the viewer

[ ] on main page
[ ] on a user's feed page

@nichoth - The goal of this issue is to get more than 10 posts on the planetary.link url at a time. Pagination is one option, however due to DB issues it may make more sense to implement an infinite scroll for now and return to pagination later as I believe there is less interaction with the DB for infinite scroll.


Added a view to create templates for future contests

added Create contest template view
added button to go to the view

Closes #2154

Why do we need to show the types of name, description and so on, on view?

On this view, the user specifies which fields to fill in future contests and chooses what type they should be.

Member

I think
name = str
descr = text
should be enough, isn't it?
if not, may be we can create aliases on frontend? pure types like MULTI_STRING are very ugly
and by the way, why is critial = num? shouldn't it be bool?

Member

I think name = str descr = text should be enough, isn't it?
if not, may be we can create aliases on frontend? pure types like MULTI_STRING are very ugly
and by the way, why is critial = num? shouldn't it be bool?

Added pretty name


0.5.8 seemingly breaks existing secrets due to decodingStrategy functionality

We are using ESO 0.5.6 and secrets come in fine using this ExternalSecret spec:
spec:
  data:
  - remoteRef:
      conversionStrategy: Default
      key: /test/302040/RDS_PASSWORD
    secretKey: RDS_PASSWORD
  - remoteRef:
      conversionStrategy: Default
      key: /test/302040/RDS_USER
    secretKey: RDS_USER
  refreshInterval: 1m
  secretStoreRef:
    kind: SecretStore
    name: test-whale-aws-secretsmanager-secret-store
  target:
    creationPolicy: Owner
    deletionPolicy: Retain
    name: test-whale-aws-secrets-eso

Upgraded to 0.5.8, seeing this now in controller logs:
{"level":"error","ts":1659544532.7462354,"logger":"controllers.ExternalSecret","msg":"could not get secret data from provider","ExternalSecret":"test-whale/test-whale-aws-secrets-eso","SecretStore":"test-whale/test-whale-aws-secretsmanager-secret-store","error":"could not apply decoding strategy to spec.data[0]: decoding strategy is not supported","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227"}
Does 0.5.8 require some spec update I'm not seeing? it looks like PR #1294  defaults it to "None", which should replicate existing 0.5.6 behavior.

This error is caused because your cluster is still using c0.5.6 CRDs. The field itself was introduced in 0.5.8. You need to upgrade the CRDs, and then it will work out!

oof..... 🤦
NEVERMIND ME slowly backs away


Producer transaction support

Hi there,
currently KafkaFlow isn't surfacing pruducer transaction API that are available con the confluent dotnet consumer.
Is there any plan to support it?
Thanks,
Imerio

Examined the IMessageProducer interface and their actual implementations. It seems quite a straightforward task to extended it in order to cover the transaction support that has been added to the confluent dotnet producer.
Our main usage scenario is to accomplish "effectively once" semantics on a consumer/producer handler we are corrently implementing using kafka-flow.
I will try with some experimentation on it before eventually submitting a PR.

It will be a nice feature @fab60
Just take a look if we should change something on the consumers' side.
I'll ask you to create your branch from v2 branch e open the PR targeting it too.

Hi, I'm wondering what is the plan regarding supporting transactions, please? As far as I see the pull request has not been merged.
I can try getting access to the underlying IProducer instance by adding a ProducerCustomFactory, but this is more like a workaround that I would like to avoid.
Thanks!


The link to documentation is broken

https://docs.rs/human-panic/1.0.0/human_panic/ =>
The requested resource does not exist

I wonder if this is relate to https://github.com/onur/docs.rs/issues/205

It works now at least.


Changing Azure Stack Admin Specs to be under preview

The changes I made are to specs which have just been submitted within the last few days.  Currently they are not under a stable/preview folder.
PR information

[X] The title of the PR is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[X] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[X] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[X] I have read the contribution guidelines.
[X] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[X] The spec follows the guidelines described in the Swagger checklist document.
[X] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-go

Automation for azure-libraries-for-java

Automation for azure-sdk-for-node

Automation for azure-sdk-for-python


feat: env var HARVEST_CONFIG has higher precedence than --config cm…

…dline arg

do we need to change for admin also?
https://github.com/NetApp/harvest/blob/635791b17330aec4d71ed75345972e2f6adf107c/cmd/admin/admin.go#L223

admin.go and all other cmds should be covered by the one change in conf. The two special cases for doctor and generate are because:

doctor doesn't use conf since it validates the yaml file directly
generate needs to write a path to the config file, in addition to normal reads


http/http responseNode are bBroken on Startup

What are the steps to reproduce?
Set up a http/http response set. The one I use retrieves data or triggers other nodes based on the query.
What happens?
When Node-RED starts, either from a cold start or a restart, the http node parrots back the query, instead of responding properly.
What do you expect to happen?
For Node-RED to process the query and respond accordingly.
Is there a known workaround?
Making any change to the flow and deploying it seems to kick it into gear. For me, I've been toggling a debug node on and off to get it going for now. This still requires manual intervention whenever I start Node-RED however.
Please tell us about your environment:

[x] Node-RED version: 0.20.8
[x] Node.js version: I don't know (Using docker image: nodered/node-red-docker:v8)
[x] npm version: I don't know (Using docker image: nodered/node-red-docker:v8)
[x] Platform/OS: Unraid 6.7.2
[x] Browser: Firefox 69

Can you share your actual flow? Without that, there's not much to go on.

@knolleary
Here's the relevant nodes relating to http requests:
https://pastebin.com/VneWL60D

Given how widely the HTTP In/Response nodes are used, we've not had any similar reports to this, nor can I reproduce it locally.
Can you add a Debug node after the HTTP In node to check the node is handling the request or get any further insight into what might be happening?

I stuck a debug node in, and restarted the container.
I'm getting the query parroted back again, and the debug node isn't reporting anything.

After you restart the container, have you reloaded the editor to see what flows it thinks are deployed?

I did, and redid the test. No changes.

How are you running the container? Have you mounted a volume to /data to store your flows?

Yes, it's all persistent. It just for some reason requires a redeploy on the flow to start this.

Can you edit your settings file and increase the logging level to trace. That will cause NR to log a lot more information about the nodes/flows it is starting. You can then check that against the flow configuration you have deployed to see if it is starting the nodes you think it ought to be.
But to be clear, when you load the editor it shows the flows that are running. There is no way for it to show a different set of flows.
Given we can't recreate this, we're going to need you to do some digging to see if you can identify what is going on.

Sure, I'll make the changes and have a look.

14 Oct 23:47:23 - [trace] [flow:6f4ddae8.18649c] ------------------|--------------|-----------------
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] start flow
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] ------------------|--------------|-----------------
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] id | type | alias
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] ------------------|--------------|-----------------
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 284ebc08.f52484 | http in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a76a4504.9db768 | http response |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a97f6010.fc38 | mongodb out |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a699685b.9d3fe | inject |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] bbfbff00.726e4 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 4e3a663c.743e4 | inject |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] ed541487.d9036 | mongodb in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] d95674c7.2e16c8 | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 51e47094.51547 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 43c32cdf.637a74 | inject |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 547b02e0.2b4abc | mongodb out |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 6ae9ee19.621b1 | json |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 2d41bf64.e519e | switch |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] fd6ae544.7c3ae8 | switch |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 6171af98.b8151 | link in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a9d54cc5.89046 | mongodb out |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 765a34d6.999204 | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 240efecd.dcff2a | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 25b3a4d3.5b7de4 | mongodb in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] b466d287.dd4bd8 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 4bb24e3f.754308 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] c54d19dc.2a4f18 | mongodb in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] b87eacee.463238 | inject |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 7557bd83.25f52c | switch |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 4d5a6ba5.c87f94 | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 57f7b395.1be8b4 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 249ebb07.ecd3bc | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 438e5c0b.9080ec | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 78abbbe2.3ae6bc | uuid |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 695404fb.1371ec | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] eb84fbd7.725308 | mongodb out |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 394d58b0.a247a | mongodb out |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 42cfca84.96cfe4 | switch |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a4555540.af55d8 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] f5661a5e.99b128 | mongodb in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] d6a01b33.9c70c8 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] a0acb716.a05a4 | inject |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] b54c1e9d.c64e18 | function |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] aee6c107.3701c | mongodb in |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 36b8a350.851acc | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] 69bd9e3f.4a24e8 | debug |
14 Oct 23:47:23 - [trace] [flow:1f453d6c.db47e3] ------------------|--------------|-----------------
14 Oct 23:47:23 - [trace] runtime event: {"id":"runtime-state","retain":true}
14 Oct 23:47:23 - [info] Started flows
14 Oct 23:47:25 - [trace] comms.open BkNAWN07z6mZaPBGZoPw05BMCZOsCFZA

This is the section relating to the flow starting, and the rest of the log.

@knolleary
What info is needed? This is still happening and I provided the trace above.

I was assuming you'd use the trace yourself to look for anything odd around what nodes are being stopped and started - the sample of trace you've provided doesn't include all the 'starting' and 'stopping' messages.
Looking at the flow you've shared, I can see a simple path where the msg from the HTTP In node is passed straight to the HTTP Response node without setting a payload - which would cause the behaviour you describe. This happens when msg.req.query.request is equal to update.
Where in your flow have you put Debug nodes to try to understand what is happening?
For example, I would suggest putting one on the output of every node you have wired to the HTTP Response node. You can then use that to see which one is passing a message to the response node in the case where you don't get the response you expect.

the sample of trace you've provided doesn't include all the 'starting' and 'stopping' messages.

That's correct, I identified the startup of the flow and posted that. As the issue is with it starting, i didn't look for stopping sections.

Looking at the flow you've shared, I can see a simple path where the msg from the HTTP In node is passed straight to the HTTP Response node without setting a payload - which would cause the behaviour you describe. This happens when msg.req.query.request is equal to update.

I don't see how that would cause the error.
The setup is as such. My phone makes a "RetrieveFullList" request regularly. That the only request it makes, until that query returns something. If something is return, the phone processes it and then (and only then) preforms an update request to red with what's needed to red to update whatever. the switch node links "update" back to the http response node only to close the com line. This doesn't cause an error, and if I don't have it, I get a timeout error on the phone.
When red restarts, the http response node is broken. it doesn't send json data to the phone at all, and nothing works. It's not until I do something like toggle a debug node that it'll all start working again.

For example, I would suggest putting one on the output of every node you have wired to the HTTP Response node.

I stuck a node were things should be processing the request. According to the debug, nothing is even seen on the http in node. Phone shows an error for invalid json data. (red is just parroting the "RetrieveFullList" request back to the phone.)


Implement new SelfSizingWaterfallCollectionViewLayout

https://github.com/adamwaite/SelfSizingWaterfallCollectionViewLayout

[ ] Needs to be refactored to Swift
[ ] Replace all WrappingFlowLayouts with this

Will be able to use AutoLayout (no more estimation code!!) and this is one of our biggest crash causes

It also needs to respect the notch on the iPhone X (horizontal safe areas in landscape)

I'm going to postpone this for now in favor of other tasks. There's too much I don't understand at the moment about my test branch for this issue.

😢

F

Just to elaborate why we tried this, gave up, and repeated three times: Auto Layout is not very happy with self-sizing cells that have text, and it's a lot slower doing that than precalculating the heights. We just need to live with it.


collect likely rust samples from VT

[ ] determine candidate strings @Arker123
[ ] fetch samples from VT @williballenthin
[ ] determine which strings are required vs optional @Arker123

related to #762

VT isn't providing good content results for the above strings (bug?) so im fetching files that contain "RUST_BACKTRACE=1" and we can start with that.

URL to download sent via PM


TC- search bar functionality with special characters

Description: search bar is functional with special characters ,, ###$$%%(( "
Preconditions: validator is open and running.

Step 1 : Login the validator.
Expected results : The homepage of the valiator is displayed.

Step 2:  enter special character inside the search bar e.g "@,#$$"
Expected  result: the page after this query shoud be blank.
Actual result: the companies are still displayed.

ENVIROMENT: Testing and integration
URL: peviitor.ro
Browser: Chrome
Device: Laptop
OS: Windows 10
Precondition:
validator is open and running
STEPS TO REPRODUCE:
Step 1 : Login the validator.
Expected results : The homepage of the valiator is displayed.
Step 2: enter special characters inside the search bar e.g "@,#$$"
Expected result: the page after this query shoud be blank.
Actual result: the companies are still displayed.

Fixed..

retested.pass


Checkable dots in hint mode

Dots are checkable after returning from help.
This code does not help:
if (viewModel.state == DotsChecker.State.HINT) {
    viewModel.expectedDots?.let {
        dotsState.display(it)
    }
}

The flip button makes them clickable too.

in which mode/fragment? I cannot reproduce this issue. They are not checkable after returning from help in theory and browser

(and in which branch)

in which mode/fragment? I cannot reproduce this issue. They are not checkable after returning from help in theory and browser

In practice and in input staps in theory

Fixed in #269


Added 30 Days of FAANG

Added 30 Days of top Faang questions asked in interviews.

Thank you for your contribution. Keep contributing.


[Bug]: Code doesn't work on AWS Lambda function when deployed with attached Role to access bedrock service.

Describe the bug
Current approach hard-coded with accessing bedrock-runtime client to use session with access_credentials. We need to handle a case where it can pick client with attached IAM role to managed service. (boto3.client)
Steps to reproduce
Simply deploy sample code using lambda function.
Attach a role to Lambda function which has access to Bedrock Invoke.
No access credentials to be generated and attached in environment, as this is unsecure approach in comparision.
Model Used
bedrock service, haiku model
Expected Behavior
Code should connect with bedrock deployed models without need to pass access credential.
Screenshots and logs
No response
Additional Information
No response

Added this pull requests.:#85[Updated bedrock.py to handle case...]

Thanks @irshadc! I'll look through #85 and help get it through.


when scanning a new barcode item, the item name doesn't correctly show up

Details
Recreation note:
if you don't have a barcode scanner -- wherever we say "scanning",  you can just type in the barcode and hit enter.
When scanning a new (previously unrecognized) barcode, the "new barcode" dialog correctly pops up, but after selecting quantity + item, only the quantity shows up as populated in the item entry, and it appears that no particular item has been selected yet.
Related, the text focus remains on the barcode entry that the user as just added rather than finalizing (via hitting enter) and proceeding to new item. It appears when I press Enter manually that the item name is correctly updated, Add Item is auto-pressed, and the text focus moves to the (as-yet empty) barcode entry text block for the new item.
That could mean that the only required fix is to ensure the 'Enter' action equivalent is still triggered when returning from adding the info for the new barcode item? (Usually the barcode scanner's 'Enter' causes the item name lookup to work AND jump to a new Add Item.)

Tested+verified in both Firefox and Chrome.
Why fix?
Reduce confusion and, in addition (with the missing Enter action), reduce likelihood that user accidentally keeps adding barcodes to the same field (which will keep looking like new barcodes to the app and keep causing the app to ask what the new entry is and keep suppressing the Enter action).
Criteria for completion

[ ] item name shows up consistently in the gui
[ ] text focus jumps to new Add Item after adding details for new barcode
[ ] tests to demonstrate that.

Questions for developers (i.e. Scott, who reported it)
TODO: add screenshots

Can I make an attempt at this?


terminate called after throwing an instance of 'std::runtime_error' revents != POLLWRNORM

Hello,
Could you please explain to me what this error means, and how to resolve it?
if (payload.second.revents != POLLWRNORM) {
throw std::runtime_error("revents != POLLWRNORM\n");
}
//terminate called after throwing an instance of 'std::runtime_error' revents != POLLWRNORM
Many thanks!
-Scott

sys/poll.h
#define POLLWRNORM	0x0100	/* Writing now will not block */

http://www.qnx.com/developers/docs/6.5.0SP1.update/index.html#com.qnx.doc.neutrino_lib_ref/p/poll.html#id9
POLLWRNORM
Equivalent to POLLOUT.
The significance and semantics of normal, priority, and high-priority data are file- and device-specific.
If the value of fd is less than 0, events is ignored, and revents is set to 0 in that entry on return from poll().
In each pollfd structure, poll() clears the revents member, except that where the application requested a report on a condition by setting one of the bits of events listed above, poll() sets the corresponding bit in revents if the requested condition is true. In addition, poll() sets the POLLHUP, POLLERR, and POLLNVAL flag in revents if the condition is true, even if the application didn't set the corresponding bit in events.
If none of the defined events occurs on any selected file descriptor, poll() waits at least timeout milliseconds for an event to occur on any of the selected file descriptors. If the value of timeout is 0, poll() returns immediately. If the value of timeout is -1, poll() blocks until a requested event occurs or until the call is interrupted.
The poll() function isn't affected by the O_NONBLOCK flag.
The poll() function reports regular files, terminal and pseudo-terminal devices, FIFOs, and pipes.
Regular files always poll TRUE for reading and writing.
A file descriptor for a socket that's listening for connections indicates that it's ready for reading, once connections are available. A file descriptor for a socket that connects asynchronously indicates that it's ready for writing, once a connection has been established.

After running a few days in ubuntu 20.04,  It means we cannot write the encode image to the stream ...


fix(paste-markdown): Incorrect paste behaviour when HTML source is VSCode

Overview
This fixes a long-standing issue when pasting rich-text (HTML) content copied from VS Code while using a Chromium based browser (other browsers don't have support to detect VS Code as the source of the content like Chromium does).

Note
I took the opportunity to refactor the PasteMarkdown extension slightly to make the code more clear and readable, but the downside is that it makes it harder to review the actual changes that fix the issue. With that in mind, I left comments in PR explaining what were the actual changes, everything else is pure refactor.

PR Checklist

[x] Pull request title follows the Conventional Commits Specification

Test plan
Preparation

Open VS Code, create a new Markdown file

Make sure that Language Mode is set to Markdown

Copy the following content and paste it into the Markdown file in VS Code:# Qui cum ad ignara intremuit volucres formidine

## Quidem pectus

Lorem markdownum terraeque deos nocte novissima ego nepotem fraternis gaudere;
ubi. Quem sim de sparsi auctor, est et an Iovis me lilia germanamque.

- Lacrimaeque suaque ab inquit quos stolidarum omnia
- Peregrina est nubes in levavit

Sicaniam merguntque mentior vicem magis latices, et amara et manu expulit,
venit. Et iube tamen verba et nihil [amantis dum
vitibus](http://stat.com/etet.html) Ditis ad!

Core Test #1

Open the preview Storybook deployed to Netlify on a Chromium based browser
Open the Rich-text → Default story
Copy the Markdown content that you pasted into VS Code from VS Code

It's important that the copied content comes from VS Code (and not GitHub)

Paste it into the Rich-text editor on the preview Storybook with Cmd/Ctrl+V

[x] Observe that the Markdown content is pasted with correct formatting

If you compare this with production, you'll see that formatting is lost

Now, do the same but use the Cmd/Ctrl+Shift+V shortcut instead

[x] Observe that the Markdown content is pasted with correct formatting (exactly as before)

Bonus Test
If you want to try this on Firefox/Safari, here's what you should expect...

Open the preview Storybook deployed to Netlify on a Chromium based browser
Open the Rich-text → Default story
Copy the Markdown content that you pasted into VS Code from VS Code

It's important that the copied content comes from VS Code (and not GitHub)

Paste it into the Rich-text editor on the preview Storybook with Cmd/Ctrl+V

[ ] Observe that the Markdown content is NOT pasted with correct formatting

If you compare this with production, you'll get the same result
As explained before, this is expected, because other browsers don't have support to detect VS Code as the source of the content like Chromium does

Now, do the same but use the Cmd/Ctrl+Shift+V shortcut instead

[ ] Observe that the Markdown content is pasted with correct formatting

In this case it's expected to work because with this shortcut we are forcing the plain-text version from the clipboard data to be pasted instead, and we always handle this ourselves

That's strange, @Bloomca.
Here's a comparison betweeb Firefox and Edge (Chormium) on my side running the deployed preview above:
https://github.com/Doist/typist/assets/96476/2c0eb598-40bc-4452-9c98-8e4dcc6cb5f0
Is this different from what you get?

That's strange, @Bloomca.
Here's a comparison betweeb Firefox and Edge (Chormium) on my side running the deployed preview above:
https://github.com/Doist/typist/assets/96476/759c34f2-08c9-4edc-8e97-50eb438f1383
Is this different from what you get?

@rfgamaral sorry, I missed that one.
In Firefox, both on this branch and the production one, when I paste using Ctrl + V, I see this:

Ctrl + Shift + V works the same way.
In Chromium, it works incorrectly on production, but correctly on this branch.

Ricardo debugged it with me in DMs, and turned out that in my VSCode I had this setting set to false:
"editor.copyWithSyntaxHighlighting": false,

After I switched to true (the default value), it works as expected in Firefox now.


#DI-95 implement tox for vestapol tests

Ticket: #DI-95
Run tests in a reliable environment with tox.
Notes:

some small changes were made in the codebase based on feedback from flake8 which now runs as part of tox testing
please add comments with suggestions for which versions of Python we should be testing with tox. keep in mind all developers will have to have these installed
please add comments with your opinion: should we add pylintor mypy to the tox tests? would require some overhead in terms of configuration and updates to the codebase

Something I was wondering: if poetry is creating a virtual env for you when you run poetry install, how can I select this environment in VSCode? This was apparently the most requested feature in VSCode's GitHub repo, and rolled out last May, but I couldn't get it to work. So instead I ran poetry config virtualenvs.in-project true, which then creates a .venv in my project's root directory, and VSCode automatically detects and activates it.
Not sure if you found a more straightforward way of getting VSCode and poetry environments to play nice.

@waligob re:poetry virtualenv with vscode
will add this to the README. the solution here worked for me: https://github.com/microsoft/vscode-python/issues/8372#issuecomment-830805106 -  you can then select the poetry env from the list of python interpreters

the solution here worked for me: microsoft/vscode-python#8372 (comment) - you can then select the poetry env from the list of python interpreters

Nice! Worked for me too. Thanks.

please add comments with your opinion: should we add pylint or mypy to the tox tests? would require some overhead in terms of configuration and updates to the codebase

I think adding a linter would be really valuable for producing consistent, readable, and reliable code. I don't have strong opinions on our choice of linter—mypy's static type checking is intriguing given that there are at least a few implicit type constraints in the code (e.g. the json writers). We're using flake8 in our tox.ini—would that also be in contention for our linter solution?
At any rate, given the overhead in implementing the linter, I'd suggest that we create a new ticket for it.

please add comments with your opinion: should we add pylint or mypy to the tox tests? would require some overhead in terms of configuration and updates to the codebase

I think adding a linter would be really valuable for producing consistent, readable, and reliable code. I don't have strong opinions on our choice of linter—mypy's static type checking is intriguing given that there are at least a few implicit type constraints in the code (e.g. the json writers). We're using flake8 in our tox.ini—would that also be in contention for our linter solution?
At any rate, given the overhead in implementing the linter, I'd suggest that we create a new ticket for it.

I'm leaning toward mypy as well. I'm most interested in the type checking so I wouldn't really consider flake8 as a contender, and I don't think it will compete too much with mypy. Agree that it should be a separate ticket (really 2 tickets for both vestapol and inq-data-resources).


Fix pretraining more than once Issue #538

Description

Changed the reuse parameter when creating the tf variables in the pretrain method to tf.AUTO_REUSE. This prevents tf from trying to create the variables again when pretraining more than once and raising the error:
ValueError: Variable pretrain/model/shared_fc0/w/Adam/ already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?

Motivation and Context

Closes #538

[x] I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)

Checklist:

[x] I've read the CONTRIBUTION guide (required)
[x] I have updated the changelog accordingly (required).
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly (required for a bug fix or a new feature).
[ ] I have updated the documentation accordingly.
[x] I have ensured pytest and pytype both pass (by running  make pytest and make type).

the build is failing due to pytype, you can probably add an exception for it (and check locally that the type check passes)

The pytype error seems to be in record_expert.py. The code in this PR passes locally as well as in CI (see the line 55 of the typecheck CI)
[39/107] check stable_baselines.common.base_class

The pytype error seems to be in record_expert.py. The code in this PR passes locally as well as in CI (see the line 55 of the typecheck CI)

yes, I know, the error is due to a newer pytype version I assume, so what I was suggesting is ignoring explicitly that error (cf pytype doc, you need to add # pytype: disable=...

The build is failing because of atari-py :see_no_evil:  (see https://github.com/openai/atari-py/pull/79)
Could you pin the atari-py version as in https://github.com/DLR-RM/stable-baselines3/pull/448 ? (atari-py==0.2.5)
Sorry for the CI issues...


Packing Excel Timezone

Coverage decreased (-0.2%) to 75.858% when pulling adb8fa274300fcbaafc8f17e9fa4edbb83ca6cef on jackyruslymoonlay:dev into 08f80e5857bb7734b6d177e596e31c6f0c539c4f on danliris:dev.


Function that print each function's execution time

This came in super handy for #1173 and would be helpful while tackling #1143.
I can close this PR if you don't think it needs to be included in the codebase.

With pytest, you don't need special code (that's kind of why I'm advocating to run the tests with pytest, no bazel, it's way more futureproof). For example, to profile the stochastic_weight_average_test.py, I just run:
pytest -v --durations=10 tensorflow_addons/optimizers/stochastic_weight_averaging_test.py

and I get:
================================================================== test session starts ==================================================================
platform linux -- Python 3.7.4, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /opt/conda/bin/python
cachedir: .pytest_cache
rootdir: /mnt/c/Users/yolo/Desktop/projects/addons
plugins: typeguard-2.7.1
collected 7 items

tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_assign_batchnorm PASSED                                           [ 14%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_averaging PASSED                                                  [ 28%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_fit_simple_linear_model PASSED                                    [ 42%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_get_config PASSED                                                 [ 57%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_optimizer_failure PASSED                                          [ 71%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_optimizer_string PASSED                                           [ 85%]
tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_session SKIPPED                                                   [100%]
=================================================================== warnings summary ====================================================================
/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15
  /opt/conda/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_assign_batchnorm
  /opt/conda/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py:1389: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    if isinstance(sample_weight_mode, collections.Mapping):

tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_assign_batchnorm
  /opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/indexed_slices.py:348: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    if not isinstance(values, collections.Sequence):

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============================================================== slowest 10 test durations ===============================================================
11.52s call     tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_fit_simple_linear_model
1.74s call     tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_assign_batchnorm
0.13s call     tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_averaging
0.01s setup    tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_assign_batchnorm
0.01s call     tensorflow_addons/optimizers/stochastic_weight_averaging_test.py::SWATest::test_get_config

(0.00 durations hidden.  Use -vv to show these durations.)
======================================================= 6 passed, 1 skipped, 3 warnings in 16.05s =======================================================

But for the moment, since we're still going to work with bazel for a while, it's better to have tools to help us time the tests. Thanks for the pull request!

Woah, did not know you could do that with pytest, that's amazing.

And that's nothing, just wait until you see #677 😄

Alright, so I have good news. I think we can get pytest working with bazel. We'll need to define our own build rule (say tfa_py_test) instead of using the default py_test. I'll take a crack at this tomorrow.

Or we could just use bazel only to build the SO files and use pytest for everything else. It would require nearly no changes to the repo since pytest is already compatible with unittest. We could also get rid of the BUILD files for python if we decide to go with the native python wheels builder.

But what I really like about Bazel is the incremental and dependent building/testing it offers. If you're working in a python only world, then going with pytest would be A+, but since we do cross-language calls (Python->C++), Bazel is very useful since it can figure out what to recompile and whatnot, this wouldn't be available in pytest. If we ever decide to completely stop all C++/CUDA code (which depends on the progress of XLA and MLIR) then we can drop bazel all together.

Even if we keep C++/Cuda code, I'm not sure running the tests with bazel is our best option. I believe we need some discussion regarding all of this before implementing anything. Let's open an issue and we'll be able to discuss it there :)


[fix] avoid doing (Java) document factory finder lookup

every time a new XML document is being created, since it causes class-path scanning
(considerable slow-downs esp. in multi-threaded envs)
samples of captured lock waits (note the stack trace bellow pointing to XmlDocument.new) :

Have you included adequate test coverage?
hard to test multi-threaded behaviour with internal (JVM) locking
Does this change affect the C or the Java implementations?
change is a Java specific fix that improves Nokogiri performance under JRuby

Hi @kares - I'm pretty sure this change was rolled into the PR at #1934, but wanted to confirm before I close this.

yes, its in https://github.com/sparklemotion/nokogiri/pull/1934/commits/827d7ba64dccc2072ee1ef71c001b7c97018de40 (from #1934) ... thanks for the merge (should make some folks happy as it gets out)!


Example of removing connection

Hi there, great library btw!
I was wondering if you had an example of how to remove a connection? I'm doing this in my code but it seems hacky and doesn't have the animate out effect.
const wrap = d3.select(".connections-wrapper");
wrap.selectAll("path").remove();

I've noticed this line in the source but am not sure how to use it
 const connExit = connectionsSel
            .exit()
            .transition()
            .duration(attrs.duration)
            .attr('opacity', 0)
            .remove();

Thanks! There's no exit animation/transition but that's fine.
I found a bug which was causing this not to work before. I had added
  .connectionsUpdate(function (d, i, arr) {
          d3.select(this)
            .attr("class", "transition")

but turns out adding a class doesn't work well with the paths

.attr("class", "transition")

This sets transition class but removes other classes which were already in place. it could cause  strange errors to happen, because previous classes may be used somewhere in the code.
I'd suggest using classed method in those cases
  .connectionsUpdate(function (d, i, arr) {
          d3.select(this)
            .classed("transition", true)


Timex.max()

Can i add Timex.max() that will return December 31, 9999 ? I'm form .net and there you can find: https://msdn.microsoft.com/en-us/library/system.datetime.maxvalue(v=vs.100).aspx which can be useful.

Could you provide an example of where you would use it?

Not arguing either way, but this value is actually at least supported by elixir itself in typespecs: https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/calendar/iso.ex#L19

I'm not saying it's an "invalid" date/time value, but rather where it's use fits in to code you would write with Timex. Comparisons already support the concept of "far future" and "far past" which are effectively maximum values (though they are really more like infinity/negative infinity). You can already create date/time values which represent a value of 9999/12/31, so a convenience function for that seems a bit unnecessary unless it's something that would be commonly used.


Export yolov5s-quantized-prunning model to onnx

I'm trying export model YOLOv5s Pruned Quantized to ONNX. ONNX version this model from model:zoo doesn't work with OpenCV dnn. So I tried to download .pt version and export to onnx with dynamic option.
here is the command:
sparseml.yolov5.export_onnx --weights model.pt --dynamic --simplify --include onnx
And I get this error:
File "/opt/conda/bin/sparseml.yolov5.export_onnx", line 8, in <module>
    sys.exit(export())
  File "/opt/conda/lib/python3.8/site-packages/sparseml/yolov5/scripts.py", line 60, in export
    export_run(**vars(opt))
  File "/opt/conda/lib/python3.8/site-packages/yolov5/export.py", line 712, in export_run
    main(opt)
  File "/opt/conda/lib/python3.8/site-packages/yolov5/export.py", line 706, in main
    run(**vars(opt))
  File "/opt/conda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
    return func(*args, **kwargs)
  File "/opt/conda/lib/python3.8/site-packages/yolov5/export.py", line 595, in run
    model, extras = load_checkpoint(type_='ensemble', weights=weights, device=device)  # load FP32 model
  File "/opt/conda/lib/python3.8/site-packages/yolov5/export.py", line 531, in load_checkpoint
    state_dict = load_state_dict(model, state_dict, run_mode=not ensemble_type, exclude_anchors=exclude_anchors)
  File "/opt/conda/lib/python3.8/site-packages/yolov5/export.py", line 555, in load_state_dict
    model.load_state_dict(state_dict, strict=not run_mode)  # load
  File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1406, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Model:
	Unexpected key(s) in state_dict: "model.24.anchor_grid".

https://github.com/neuralmagic/deepsparse/issues/600


copyedit README

Minor edits for consistency following the renaming.

A couple of notes I didn't feel sure enough of to add to this PR:
The README mentions "standard KeyframeAnimationOptions." I wanted to link to that API, but I can't find it on MDN. TypeScript docs include KeyframeAnimationOptions, which extends KeyframeEffectOptions. MDN only mentions the latter.  The only difference I can find between the two is that KeyframeAnimationOptions includes an id field.
Also, was wondering whether it would be worthwhile linking the keyframe properties (in and out) with Keyframe Formats page (https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats#syntax). I think that's what's expected here.


dlib.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE

Expected Behavior

import dlib
ERROR:
ImportError: /home/xx/anaconda3/lib/python3.5/site-packages/dlib-19.10.0-py3.5-linux-x86_64.egg/dlib.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE
Current Behavior

Steps to Reproduce

Version:
dlib-19.10
Installation method:

pip install dlib
or
2.reference install tutorial: http://dlib.net/compile.html

Platform:
Ubuntu 16.04
Anaconda3
Compiler:
python3.5

That error isn't about dlib. It means something is terribly wrong with your compiler. I also use dlib on ubuntu all the time without issue.  If you can post complete instructions to replicate this error on ubuntu I'll look into it. But you need to post what exactly someone types, starting from a standard ubuntu install.

Today，I reinstalled dlib on the system of Ubuntu 14.04 with python3.6 and it succeeded.
I think the Error may be related to python3.5。

I also got this problem on
ubuntu16,
ananconda3,
python3.5
cuda9.0
cudnn7

Fill out the issue template

@QuantumLiu
I encountered this problem again.
run: conda install libgcc
can solve this problem.


How to add my own data type for fields?

Can the optionsMap params whether content your demand? if be can't then not support it.

ok Thanks @jianxiaoBai


Page out dated content

This content is out dated
On the left navigation pane, select Billing -> Subscriptions.

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

ID: 2eebb06d-174a-4f38-6e9e-c6176e97b3ba
Version Independent ID: b3feb7ce-6756-29af-f18b-2b9fd4e29f3e
Content: Purchase Power Apps for your organization - Power Platform
Content Source: power-platform/admin/signup-for-powerapps-admin.md
Service: power-platform
GitHub Login: @jimholtz
Microsoft Alias: jimholtz

@jamilhaddadin
Thanks for bringing this to our attention. Content has been updated.


Update PowerShell to build with .NET Core SDK 2.1.4

PR Summary
Update repo to use latest CLI tools.

Now we can use C# 7.2 features.
We continue use Runtime 2.0.5

PR Checklist
Note: Please mark anything not applicable to this PR NA.

[x] PR has a meaningful title

[x] Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[NA] User facing Documentation needed

[NA] Issue filed - Issue link:

[x] Change is not breaking
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

[x] Add [feature] if the change is significant or affects feature tests

[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

@daxian-dbw Many thanks for help and merge!


Fix str_cat/fullmatch/removeprefix/removesuffix/translate/wrap

What do these changes do?

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

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

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

Hello @helmeleegy, why did you close this pull request?


Error handling v1

Hey Taylor,
Just wanted to capture the situation where a bad API key is given. Wanted to run my solution by you. If you think this is good we should add it to the other verbs too.
Let me know if you think this is the right approach.

I haven't folded this into master yet because it would be a breaking change, but I'd love to get your thoughts on the Error branch.
Check it out here: https://github.com/taylorbrooks/closeio/tree/error

In particular: https://github.com/taylorbrooks/closeio/blob/error/lib/closeio/error.rb

I think that's a great way to do it.
I would prepend the error message with something in each of those classes though just so something like this works:
class NotAuthorized < Error
  def initialize(msg)
    this.super("Not Authorized #{msg}")
  end
end

# that way this workflow works:
begin
  model.save
rescue Closeio::Error => e
  model.errors << e.message # this would be something like 'Not Authorized #{env.body}'
end

Just add a initialize variable to let folks turn it off, then the breaking nature of it is a non-issue:
def initialize(..., throw_errors = true)
   ...
end

...
conn.user(error_handler) if this.throw_errors

also don't think you need to require faraday in error.rb if you require it in client.rb before requiring error (although not totally sure)

Hey @taylorbrooks, is there an update on this branch? You planning to merge it? I'd love to use these features officially!

@rathboma I just cut a new version 2.5.0 that uses the error handler middleware.
It is disabled by default, but can be enabled by passing true to the fourth argument when instantiating the client.
def initialize(api_key, logger = true, ca_file = nil, errors = false)
  # stuff
end

I'm thinking on cutting a 3.0.0 series that uses keyword args for the client and some of the underlying endpoints. Thoughts?

Ok to close?

Hey, thought I'd check in to see if error handling made it into any releases? I've been getting 400 errors and I'm not picking them up really

@rathboma https://github.com/taylorbrooks/closeio/blob/master/lib/closeio/client.rb#L27-L32


Add deployment variable syntax examples, notes

Hey team!
Thanks for building this great product. I got stuck for a while on calling variables from deployment pipelines. The syntax used for variables vs conditionals is different (!?), so I wanted to document it, add some notes for folks to find that information, and make one small bug-fix in an example that isn't correct.
Please feel free to make edits, would love to get this information added so others can save some time.
Thanks!
kyler

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

Hey team, is it possible to get this merged? I imagine there will be source drift if we wait too long.

@juliakm Could you review the proposed updates to your articles? Thanks.

#sign-off
Thanks @KyMidd!

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

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


Moving to version 3.0

The next major release is in active development with the biggest update being the removal of the dependency on redux. By leveraging React's new Context API the library will now work without redux, while still providing the option to use redux for those users using it in their app.

Release plan:
✅ release-candidate - READY!!!
⬜ release v3.0.0

Todo for release:
✅ should work without redux by default
✅ should work with redux if store provided to LocalizeProvider
✅ option to show default language on missing translation
✅ correct spelling for add language action #71
✅ update documentation
✅ battle test new TypeScript definition #69
✅ update examples
✅ document breaking changes
✅ provide migration guide

What's changed?
See official change log.

The release candidate is ready for those that wish to try out v3.0.0.
To Install:
npm install react-localize-redux@next --save

The official docs for the new version are still in the works, but for now be sure to have a look at the basic example in v3 branch. It has an example app which gives a basic implementation demo.
To run the basic example, run the following from the root of directory:
npm install
npm start

If you are coming from v2.x.x a migration guide to go from v2 to v3 is in the works as well.
Lastly if you find any bugs please open an issue, and be sure to mention the release candidate version you are on.

i am using "react-localize-redux": "^3.0.0-rc3". but i could not find <LocalizeProvider /> as mentioned in given office docs link. BTW, basic example link is also not working.

@priyankmtr can you elaborate on what you mean by "I could not find"? I just installed the react-localize-redux": "^3.0.0-rc3 and ran the demo, and it appears to work fine.
Also I've updated the broken basic example link.

@priyankmtr are you sure that you have installed the library? It doesn't show up in your dependencies, and if you use npm > v5 it should autosave.

@thchia if you have time to do a PR with some tests covering the issue that would be much appreciated. I'm just getting things wrapped up with the v3.0 launch, so if you're able to tackle this before I release on Monday that'd be amazing.

@ryandrewjohnson opened in #79. I appreciate you accommodating my contribution efforts 😄

v3.0.0 now released!!


Execute script: run the current line if nothing is selected

Testing https://github.com/Microsoft/vscode/issues/25332
I had a hard time to figure out how 'Execute script' works. I always put the cursor after an expression and expected it to be evaluated.
IMO if the current selection is empty, I suggest to run the line on which the cursor is.

This has been fixed already, I believe originally in this commit:
https://github.com/Microsoft/vscode-mongodb/commit/d559f427ffc27873ecddffd943f58e69d3afb22b#diff-642d30b32e9e553bf3e4cb781356c62bR71


add zh-CN docs

based on 2263812

Hi, @sestinj, I add a new version of zh-CN docs.

Cool!! I will take a look. Thanks so much for doing this : )

@mayf09 For some reason all of the /zh-CN pages are redirecting right back to /, any ideas on how to fix this?

@mayf09 For some reason all of the /zh-CN pages are redirecting right back to /, any ideas on how to fix this?

@sestinj How do you build docs? I use follow command, and it's looks good.
in continue/docs folder,
npm run build
npm run serve

You're right, this works for me, thanks!
I switched to zh-CN, then had my browser auto-translate back to English and all of the pages look good 👍
@mayf09 What do you think about maintaining this going forward? Is there a tool you've used that makes it easy, and would you be willing to occasionally update things when they change?
and finally cc @TyDunn for any general thoughts

I will follow up this project, update docs occasionally, maybe once a month.
Currently, there is no such tool, just by hand.

amazing, well I really appreciate this contribution! Merging now and looking forward to working together more!


How to trigger browser click event in browser and send event to C# host app

There are tab open, tab close, tab update events, that we can send the events to host app. Is it possible to sent the click events that we click in the browser to the c# host app?

You will need to look into what events Chrome makes available. Considering you can run Javascript in the context of the webpage however you should be able to listen to those click events. https://developer.chrome.com/extensions/content_scripts


Enables some unit tests on travis.

Implements idea from #7179 about reusing the same tests and run portion of them on Travis CI via node.

/botio unittest

Should we also add the metadata_spec.js, ui_utils_spec.js and util_spec.js tests to the test/unit/clitests.json manifest file?

I missed  util_spec.js by accident. metadata_spec.js and ui_utils_spec.js (as well as cmap, annotation_layer and api) require DOM objects such as XMLHttpRequest or document.

Awesome, thanks!


MAINT: update build_tools/convert-python-script-to-notebook.py to myst-parser 1.0.0

I think I found the way to update the script to work with the latest version of myst-parser to avoid the ModuleNotFoundError.

Please do not merge, I pushed the result of:
fix end of files.........................................................Failed

from the pre-commit. Let me exclude ipynb files from there and re-run.


launchProjectile() method failing

Something seems to have changed between the SpongeVanilla-1.11.2-6.0.0 versions 196 and 198 where the player.launchProjectile() method is no longer working. This also affects Forge (although I'm not sure when it changed) and running the exact same plugin on 196 works whereas it does not on 198.

Is there anything in the console when it fails to work?

Only if you try to access it, it will just say that it can't find the object. Otherwise, nothing. 196 works fine, launches the object and it can be modified, but 198 does not.

Can I see the whole error? Also, what plugin are you referring to/what code is failing?

It's for a plugin I am writing. I marked a spot that will write to the logger.
My code:
logger.info("This is where it fails, no arrow launched"); Projectile arrow = player.launchProjectile(Arrow.class, getNewArrowVelocity(player, 1.5)).get();
Logger on 198:
[21:20:15] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:20:15] [Server thread/ERROR] [Sponge]: Could not pass InteractItemEvent$Secondary$MainHand$Impl to Plugin{id=bowta, name=Bowta, version=1.0, source=mods\Bowta.jar} java.util.NoSuchElementException: No value present 	at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_111] 	at io.github.geotan00.bowta.PlayerInteractListener.onPlayerInteract(PlayerInteractListener.java:38) ~[PlayerInteractListener.class:?] 	at org.spongepowered.common.event.listener.SecondaryListener_PlayerInteractListener_onPlayerInteract96.handle(Unknown Source) ~[?:?] 	at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:305) [SpongeEventManager.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:320) [SpongeEventManager.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:144) [SpongeImpl.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractItemEventSecondary(SpongeCommonEventFactory.java:423) [SpongeCommonEventFactory.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.network.PacketUtil.firePreEvents(PacketUtil.java:250) [PacketUtil.class:1.11.2-6.0.0-BETA-198] 	at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:89) [PacketUtil.class:1.11.2-6.0.0-BETA-198] 	at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjd000(SourceFile:539) [fo$1.class:?] 	at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fo$1.class:?] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111] 	at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?] 	at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:1526) [MinecraftServer.class:?] 	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:335) [lh.class:?] 	at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:562) [MinecraftServer.class:?] 	at net.minecraft.server.MinecraftServer.run(SourceFile:466) [MinecraftServer.class:?] 	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Logger on 196:
[21:24:15] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:15] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:17] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:18] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:18] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:19] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:19] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:19] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:19] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched [21:24:19] [Server thread/INFO] [bowta]: This is where it fails, no arrow launched
As you can see it just repeats the message I want to log, and actually arrows are launched as they are supposed to be on 196, so the testing log I wrote is wrong.

Oh I think I know why, since 1.9 there are different types of arrow, and the Arrow interface became a common superinterface between the types. Use TippedArrow for a standard arrow

Interesting. That seems to have fixed it. I'm a little surprised that this change was so random just inbetween two versions, I guess that is to be expected between the experimental releases.

Since this is pretty much an invisible change between the two versions, would it be possible to implement some default behavior for Arrow, or to log an information message for developers to see?

@JBYoshi I did a PR to fix this issue, we just have to determine if we let plugins launch Arrows or not.

For now I will close this with https://github.com/SpongePowered/SpongeCommon/pull/1776, if more issues occur, please open a new issue.


Url use url encoded queries

Continuation of broken PR : https://github.com/Azure/azure-sdk-for-cpp/pull/598
Fixes: #592

@katmsft please encode query parameters

There is a work in progress that is pending PR https://github.com/Azure/azure-sdk-for-cpp/pull/737. After the mentioned PR is merged I'll merge master and submitt the PR to encode query parameters.

Storage's fix is done. Please take a look.

Hi @vhvb1989 , this PR finally can be merged!


Consider building a HadoopCatalog

I think we should consider building a Catalog implementation that relies on renames for committing metadata. That way, users will be able to avoid using HMS if they don't have one yet.
One of the challenges is renameTable as Iceberg uses absolute paths in the metadata.

This is interesting, I'd like to spend some effort on this if you haven't started it yet.
Regarding the renameTable challenge, The renameTable  requires to rename the location of the table, for example, hdfs://tableA -> hdfs://tableB, which means to rename the directory and update the JSON file in both file version and location value of its content as well.  The challenge is to do them atomically via hdfs rename. Could you please help to correct me if my understanding is not correct?

@chenjunjiedada it would be great if you could work on this!
One of the ideas was to use smth like this: hdfs://nn:8020/iceberg/warehouse/(DB).db/(TABLE).
I think the challenge with renameTable is that Iceberg keeps absolute paths in the metadata. So, we might need to keep data files somewhere else (controlled by write.folder-storage.path). Also, we need to avoid rewriting manifests while renaming a table. I think if we keep only *.metadata.json files under those locations, it should work (maybe write.metadata.path can help). Alternatively, we can consider using relative paths in the metadata. I haven't thought a lot about what's best.
@rdblue what are you thoughts on this?

I think adding a HadoopCatalog sounds good, but we should plan on continuing to support tables identified by full paths.
For rename, I would probably just throw an exception and disallow rename.

I just had the chance to go through our implementation done in #529. Seems reasonable. Thanks, @chenjunjiedada! I am closing this issue.

Thanks for updating the issue!


Remove unicode feedback from Find Most Common Character question

User studies show users get confused by the feedback regarding unicode. They assumed some action was required, spent time researching ways to resolve the comment, and either became frustrated when they realized they did not have to make any specific change to their code or became discouraged when they could not "resolve" the feedback.

This should be fixed in #336, I think.

Closing; this is fixed.