Processing of data, EU.

(https://docs.microsoft.com/en-us/azure/purview/overview#in-region-data-residency)
Is this something that going to change with the EU data boundary work that Microsoft is doing? https://blogs.microsoft.com/eupolicy/2021/12/16/eu-data-boundary-for-the-microsoft-cloud-a-progress-report/

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

ID: 3e385f83-b6f2-f62c-44ed-6dd3751162fc
Version Independent ID: 8bf3699c-c2e9-6b31-31b2-b2c8264da367
Content: Introduction to Azure Purview - Azure Purview
Content Source: articles/purview/overview.md
Service: purview
GitHub Login: @hophanms
Microsoft Alias: hophan

Thanks for the question! We will review and get back to you shortly.

@hophanms Could you please share your inputs on this

This is on the roadmap to address first half of this year. We don't have ETA yet.

If/As things are changed for Azure Purview in the upcoming year, documentation will be updated to reflect that information.
Thank you for your question!

#please-close


InfluxDB reporter

After adding RabbitMQ support, I'd like to add an InfluxDB reporter, alongside Datadog.

Actually, I notice that the stats reporter is hardcoded to be datadog and isn't exposed in the CLI yet.

That is correct, I think the path forward on this is adding a --reporter option to the replicate command https://github.com/Nextdoor/pg-bifrost/blob/master/main/main.go#L479 and just have a switch statement to construct the appropriate reporter. The ticket is #3


[8.x] Per route parameter binding

This PR adds the ability to define per route parameter binding definitions, overriding global bindings defined at the router level.
Example:
$router
    ->delete('{user}', function (User $user) {
        dd($user);
    })
    ->bindParameter('training', fn ($value) => User::withTrashed()->findOrFail($value));

This binding is evaluated before implicit bindings or global bindings defined via Route::bind(), allowing you to customize your routes even more.
I think this is very util when working with soft deletes.
Function naming can be changed if needed. I'd like to use the word bind, but it is already used to bind the request to the route.

I see no tests for this with route caching enabled does it work in that case as well?

@morloderex You are totally right. I'll add this behavior to compiled routes file ASAP. Thank you for pointing it out.

Updated with route caching and a better description 👍

Maybe I'm not understanding this fully, but if you want custom binding resolution, don't you just come up with a custom word to use in the route?
Route::get('users/{customUser}/force');

And then in your RouteServiceProvider:
public function boot()
{
    Route::bind('customUser', function ($value) {
        return User::where('name', $value)->firstOrFail();
    });

    // ...
}

Now you can reuse this binding logic if you like, and you don't need to base your resolution logic off what the route is.

@browner12 Yes and no. I see 2 disadvantages with this approach.

It forces you to declare the logic somewhere in your application. It's not visible at first glance.
It forces you to declare the variable in your controller with the same name of your route path. To me this second point is important because I don't want to declare something like this: public function __invoke(User $customUser). It could make sense in the context of the route definition but not in the controller itself. And I'm sure customUser is too generic and an unreal case. More realistic cases would be something like:

users/{trashedUser}
users/{userWithCategoryAssociated}
trainings/{trainingThatBelongsToUser}

That's what we do with literally everything. Query scopes, container bindings, form request validations, etc.

I don't think this is actually true. I just did some quick testing, and the router will literally send the data in whatever order they are received. Also, if you like, you can customize the parameter names. It's not a documented feature, but you can check it the parameter and parameters methods here:

https://github.com/laravel/framework/blob/8.x/src/Illuminate/Routing/PendingResourceRegistration.php

It forces you to declare the logic somewhere in your application. It's not visible at first glance.

Actually my first thought when I first saw this PR is that it wouldn't be clear from running php artisan route:list that a route has an inline bound parameter.
When working in applications with lots of routes, mainly ones I didn't write myself (working to add features or fix something) when I found any extraneous route parameter my first option is to skim over the RouteServiceProvider to find any explicit binding.
Of course I could just go to the routes files, but many applications split their routes into several route files either by requiring them from RouteServiceProvider or by requiring them from a main route file.
What I mean, is that for me it wouldn't be clear at first glance if the custom bindings are defined on each route, specially if they share a parameter name with some implicit route binding that I would expect to work in a totally different way.
I am not sure I explained my PoV clear enough (not a native English speaker here):

gets hired to add a feature on an app with lots of routes
run php artisan route:list -c to find the route client says they want the feature to be added
route has a route binding like this: /users/{user}/toggle assumes {user} is a regular implicit binding, checks User model nothing fancy over there, starts working on feature
{user} is actually a route-defined custom binding that overrides the implicit binding, per this PR proposal
Starts getting unexpected results, scratches forehead why that is happening

If an explicit binding is defined the steps would be

gets hired to add a feature on an app with lots of routes
run php artisan route:list -c to find the route client says they want the feature to be added
route has a route binding like this: /users/{thisIsACustomBindingSpecificToThisRoute}/toggle clearly sees {thisIsACustomBindingSpecificToThisRoute} is a custom explicit binding, checks RouteServiceProvider for its definition

I can see the value if that gets added, but I am more inclined on thinking this seems to be an edge case that Laravel already provides a clear way on how to handle it.

@rodrigopedra @browner12 totally valid points.
I understand both your POV, yet I find this little addition useful for some scenarios.
Let's see what the Laravel organization think. This can be rejected without problems.
Thank you both for your feedback.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


No dark mode on login page

There is no dark mode for login/signup page which affect user experience.

Assigned!
Make sure to attach before & after screenshots in your PR. Also, star the repo before working on it. While creating your PR, ensure you pull all existing changes beforehand to avoid conflicts.
Happy open-source contributing!

assign this please

hey i can fix this issule.please assign it to me under gssoc24

Please assign this task to me. Looking forward to contribute

Please assign this task to me. Looking forward to contribute

assigned!


Background: '#FFFFFF' forces ALL transparent PNGs to white

Expected behavior:
When I set Background: '#FFFFFF' I expect white background ONLY on JPGs converted from transparent PNGs.
Current behavior:
Applies white background to ALL transparent PNGs, not just the ones being converted to JPGs.
I am using the Sharp adapter.

You can add background colors to individual images, see https://github.com/herrstucki/responsive-loader/blob/master/test/sharp/index.js#L43. So instead of setting background globally for all images, I recommend to set it per image.


Won't add friend

I tried:
from argparse import ArgumentParser
from snapchat_bots import SnapchatBot
class StorifierBot(SnapchatBot):
def on_snap(self, sender, snap):
self.post_story(snap)
def on_friend_add(self, friend):
    self.add_friend(friend)   #I also tried with seld.add_friend(self,friend) with no luck

def on_friend_delete(self, friend):
    self.delete_friend(friend)  #I also tried with seld.delete_friend(self,friend) with no luck

if name == 'main':
parser = ArgumentParser("Storifier Bot")
parser.add_argument('-u', '--username', required=True, type=str, help="Username of the account to run the bot on")
parser.add_argument('-p', '--password', required=True, type=str, help="Password of the account to run the bot on")
args = parser.parse_args()

bot = StorifierBot(args.username, args.password)
bot.listen()

But I am not able to make it add friends by itself.

When I run this the bot is able to add all snaps to its story, though it does not add/delete new friends...
Also, how can the bot be persistent, meaning that if it fails it would run again?

Yes; please look for the try... except... statement in the python docs, you'll learn much ! :smile:

@N07070 Where can I find that?

@jcherrera Your code is a bit tricky to understand when you dont use code blocks. Identation is gone, and I cant tell if you are writing code or talking about it. Please put code inside a block like this:
    ```python
    code
    ```

As for persistence, N07070s suggestion would turn out like this:
if __name__ == '__main__':
    # code to set up would go here
    while True:
        try:
            bot.listen()
        except Exception:
            print "Exception happened"

Note that using except Exception will catch all exceptions, even ctrl c, so you might want to select what exceptions to catch more precisely.
Have a look at Errors and Exceptions part 8.3 Handling Exceptions.


Fix injecting into file which contains chinese

🌈 Also work for other utf-8 codes such as Japanese, Korean.

👍


Unable to read RDS file which contains a list of trained caret ML model and R dataframe

When using pyreadr package in order to read a RDS file I get the error

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pyreadr\pyreadr.py in read_r(path, use_objects, timezone)
38     if timezone:
39         parser.set_timezone(timezone)
---> 40     parser.parse(path)
41
42     result = OrderedDict()
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pyreadr\librdata.pyx in pyreadr.librdata.Parser.parse()
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pyreadr\librdata.pyx in pyreadr.librdata.Parser.parse()
LibrdataError: Unable to read from file

The RDS file contains a list which contains a trained RandomForest model (trained with the caret library - S3: train, train.formula), a dataframe (S3: data.frame) and a list.
I can not share the RDS file due to data privacy issue.
Any help appreciated!

Thank you for the report. However, without a sample RDS file that demonstrates the issue, there is nothing I can do.
Without more information I am considering this a duplicate of #29.

@86mm86 please read carefully the section "known limitations" in pyreadr, it states clearly that currently r lists are not read, and attempting to reading them can raise all kind of strange error messages, the one you mention apparently among them.

Thank you!


55 refactor posts part of the documentation

Refactoring the posts part of the documentation.
Splitting main points to make it more clear.

Adding information (proto + arguments)
Adding examples
Adding forget usage

I created them manually using the data tables in mkdocs :
https://squidfunk.github.io/mkdocs-material/reference/data-tables/
For the error page, I thought I'd done it. It was a matter of calling get_messages() and get_messages_error() to find out the status of a request and, in the event of a problem, to have logs about it.

As a reminder, this PR was originally intended to re-document the Post method.
I've just completed the rebasing with the main branch and written the explanation of the error page.
What do you think of this version?

The Error section looks good, but it would be even greater if we could list some of the common errors. For that, you could look into the pyaleph code to find a list of error codes.
About the size, I don't mind that much. I'll try to review the pages that were changed in the preview and if they read well, I approve.

This is a great idea, I'm going to do that!

I've created a table with all the error codes instead of just a few.
I find it more complete and the display is very nice.
What do you think?


[SMALLFIX] Add test for removing extended acl masks

@yuzhu

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/201/
Test FAILed.

Merged build finished. Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/202/
Test PASSed.


Using this package with nestedscrollview/tab bars causes issue with scrolling

When using this to render a paginated list inside of a nestedscrollview with tabs, going to another tab and then back to the tab with paginated list causes the list to be shown from the beginning, not maintaining the view before moving to a different tab. is there a way to scroll to the previous position or to maintain the position with nested views?

TabBarViews not retaining the state of their children is an issue unrelated to this package and has simply to do with how the framework works. This issue applies to any scrollview. There are workarounds for this but I cannot recommend anything specific.
Please consult the community resources instead.

That is not the case, they maintain state and scroll position for all except the tab utilizing this package.

Could you provide a minimal reproducible example?


Add dev requirement for phpunit/phpunit

Q
A

Branch
master

Bug fix?
no

New feature?
yes

BC breaks?
no

Deprecations?
no

Tests pass?
yes

Fixed tickets
n/a

License
MIT

Doc PR
n/a

The main goal is to have under control which version of PHPUnit is required to run the test suite.

@phansys @GrahamCampbell is right, phpunit is known to create a whole lot of problems with global installs on composer, i don't care because it is now docker era, but still would be nice to avoid plugging a fixed phpunit, try rather to have a phar 💃 😊 or dockerize phpunit?

@GrahamCampbell though i agree with you, @phansys is doing some strides and if we think again, we should probably have a note or discourage global installations for the very reason that they are conflicting always, not just phpunit. That is what docker has wrought, independence from those problems.


Add new map to show off water/naval units

Zetawar currently has two built-in maps, neither of which gives very much room (if any) for ships. A new default map should include a significant number of deep-water and shallow-water terrains, though not enough for naval combat to dominate gameplay.

@djwhitt Would using one of the default maps from Elite Command be okay for this? We'd obviously add credit in the code and probably in the UI too. I was thinking of writing a cljs script for lumo to convert EC maps for ZW.

Sure, pulling in an Elite Command map would be great. We should probably add something to the map data structure to support attribution. A Lumo converter sounds cool too.

EC includes a description for each of its maps. For example, "Little Island" has "A tiny war on a tiny island." Should I include this info? We could change :description to :title in our map data structure to accommodate this.

Yep, that sounds reasonable. Though, I'd like to keep the new more verbose description optional.

Do you mean not load it into the DB at all, or just use something else (like the title or a blank string) if a description isn't available?

Not loading it into the DB at all if it's missing is probably best. The UI should also gracefully handle a lack of description.

I'm thinking of using something like :notes for the longer description instead. I don't like how :title/:description breaks with every other use of :description.

Agreed, I like that better. I was a little uncomfortable with :title / :description too, but didn't have a better idea. I'm glad you thought of one.


Feature: Strings Exercises for Basic Data Types

Description
After the student has gone through the Basic Data Types Lesson it would be good for them to practice what they have learnt by completing a few exercises.
Acceptance Criteria
The following exercises should be created for strings:

An exercise for sub strings
An exercise that uses some escape characters - the newline escape character is the most practical
An exercise for capitalising the given string
An exercise for upper casing the given string
An exercise for down casing the given string
An exercise for checking if a given string is empty
An exercise for checking the length of a given string
An exercise for reversing a string
An exercise for stripping a given string of white space.

Additional Notes
These exercises should go in the existing string_exercises file.
We have an example exercise and test which demonstrates the pattern that should be followed for the strings exercises.

Working on this. I have most of it done, just missing the escape characters exercise.


Fix wasm panic caused by a race condition in IotaDocument and CoreDocument

Description of change
fixes #https://github.com/iotaledger/identity.rs/issues/1150
This PR change the methods requiring read/write to be fallible if the lock is acquired to prevent uncontrolled crashes, since blocking is not supported for RwLock in wasm.

If I do a Promise.all on multiple promises each of which does a createJws (so an async read), that should be fine because it would use asynchronous rather than synchronous locking, right?

yes that's true.


Request: create go.mod and git tag

@jaytaylor
Could you consider creating a versioned tag on the repo, with go.mod?

Please open a PR and I'll be glad to include it.

FYI, the go.mod is now merged


add jhipster as user

JHipster is a happy user, so thanks for your work!

Thanks @atomfrede 👍 We're happy to have such a great project as a user 🎉


Up-to-date vagrant/kvm/ec2 lxd host images

Would be great if there was an official LXD host virtual machine image, which is kept up-to-date with LXD preinstalled, for example using packer templates (http://packer.io), and which outputs at least vagrant virtualbox+vmware box files.
I guess ubuntu cloud server or ubuntu server wily would be a good base?
Also, this machine image could implement lxd config best practices, like btrfs for /var/lib/lxd and would give a plug-and-play experience.
This is similar to boot2docker, docker machine etc. Make it easy to run LXD on virtualbox+vmware.

So we've got vagrant support in tree, isn't that sufficient?

Only seems to support virtualbox, not vmware:
vagrant up --provider=vmware_fusion
fails because the ubuntu/trusty64 is a virtualbox-only build. That goes for all official ubuntu images on vagrant cloud it seems.
Also, it's based on Ubuntu 14.04, which is a bit old, and no btrfs.
I'm trying to run it now by changing the base box to box-cutter/ubuntu1404

https://github.com/lxc/lxd/pull/1028

Branch merged, closing this issue. Thanks!


When editing Balancer or Service from main project list page, it returns with project closed

v0.22.0-rc1
Steps:

Add a project
Add a service and balancer
From main project list page click on ^ to open project
Click on Edit for balancer or service
Save

Results:  the project is closed and you have to click ^ to open it.
Expected:  Project should stay open.

When going to stacks page, all stacks are open


Error in one test

def test_solve_Roothan_equations(mol_h2o):
Huv = SCF.calc_hcore_matrix(Tuv, Vuv)
Duv = SCF.calc_initial_density(mol_h2o)
Fuv= SCF.calc_fock_matrix(mol_h2o, Huv, eri, Duv)
mo_e, mo_c = SCF.solve_Roothan_equations(Fuv, Suv)
assert mo_e[0] == ([-32.5783029, -8.08153571, -7.55008599,
-7.36396923,  -7.34714487, -4.00229867,
-3.98111115])
assert mo_c[0, :] == ([-1.00154358e+00, 2.33624458e-01,
                                    1.31048670e-17, -8.56842145e-02,
                                    -1.26828709e-31, -4.82226067e-02,
                                    1.47103574e-17])

Error: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
tests\SCF\test_SCF.py:53: ValueError
FAILED tests/SCF/test_SCF.py::test_solve_Roothan_equations - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
How can I fix this?

This was addressed in a previous issue:
pytest has an appox function that does rounding, and the sign of the values in the eigenvector matrix may not be the same across different machines, so you cannot test against the signed value.


Hotfix 4.7.2

Fixes #925
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan

Create an app  (App A) with library version 4.6.3 or lower
Create second app (App B) with library version 4.7.0 or newer, but do not include router service
Ensure that App B connects to App A

Summary
Addressed issue in TransportBroker that caused previous router service's connection messages to be dropped. Add logic to check router service version and perform appropriate logic.
Changelog
Bug Fixes

#925

CLA

[x] I have signed the CLA

Codecov Report

Merging #927 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master     #927      +/-   ##
============================================
- Coverage     42.58%   42.56%   -0.03%
  Complexity     3734     3734
============================================
  Files           434      434
  Lines         23061    23072      +11
  Branches       2690     2692       +2
============================================
  Hits           9820     9820
- Misses        12597    12608      +11
  Partials        644      644

Impacted Files
Coverage Δ
Complexity Δ

...com/smartdevicelink/transport/TransportBroker.java
23.59% <0%> (-0.72%)
20 <0> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93981e8...c31b1ee. Read the comment docs.


Ambiguous on:workflow_dispatch statement about "default branch"

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch
What part(s) of the article would you like to see updated?
The docs say that workflow_dispatch will only trigger a workflow run "if the workflow file is on the default branch".

However, below it's shown that the user can choose which branch to use:

I'm struggling to interpret the phrasing from the docs. Let's say we have .github/workflows/deploy.yml with a trigger on: workflow_dispatch. The default branch is main. Which interpretation is true?

a) Only deploy.yml@main can ever run. The versions in other branches can never run. The branch selector does nothing.

b) If deploy.yml exists in main, then the user can trigger a version located in any branch. If deploy.yml does not exist in main, the versions in other branches cannot be triggered.

c) The user can trigger a version of deploy.yml located in any branch. However, if ANOTHER WORKFLOW tries to trigger deploy.yml via gh, API, or by any other means, then this ANOTHER WORKFLOW must be located in main.

d) ...something else?

Additional information
No response

@neongreen Thank you for raising this issue! I'll get this triaged for review :sparkles: Our team will provide feedback regarding the best next steps for this issue - thanks for your patience! 💛

Hi @neongreen 👋 thanks for raising an issue. The best answer I can provide here is that it's true that it's only officially supported by the default branch, and that the reason other branches are visible on the dropdown is to support the case where you may be testing a new workflow, triggered by workflow_dispatch, that hasn't yet been committed to the default branch.
The conversation in this issue might also be relevant: https://github.com/github/docs/issues/34884. The method noted there isn't officially supported.
I hope this helps—may I ask if your GitHub plan includes Support? They are best positioned to help with this kind of query in general.

@subatoi for context — I’m not looking to use this feature. I’m evaluating the security of a CI setup.
What I need to know is “can someone potentially run this workflow from a non-default branch, and under what conditions?”. This someone can be an external contributor, for example.
When I read “this event will only trigger a workflow run …”, I interpret it as a guarantee: a workflow with this trigger will NEVER run from a non-default branch.
The same of course applies to everything else in the documentation. If I read “a nested workflow cannot access secrets”, now I have to wonder if it actually can’t access secrets — or whether it can, just not officially.

So, just to clarify — in #34884, the author seeks to run a workflow from a non-default branch. GitHub does not want to officially commit to this feature. This is perfectly understandable.
In this issue, I didn’t want to run a workflow — I wanted to know if somebody else could.

Thanks for the additional context—we'll ask an SME to review this internally, but since our requests are made in the context of the accuracy of the docs, we're unable to guarantee a timeframe for their response. If it's available to you, the faster way to get an answer would be via GitHub Support.

-oauth-app-and-github-app-access-requests.md

https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch

@neongreen Thank you for your patience while our SME team reviewed! 💛 They confirmed that b) is correct:

If deploy.yml exists in main, then the user can trigger a version located in any branch. If deploy.yml does not exist in main, the versions in other branches cannot be triggered.

They are proposing the following wording to add more clarity:

This event will only trigger a workflow run if the workflow file exists on the default branch.

I've added the help wanted label so that you, or anyone else, may make this update ✨


migrate to ts

Feel free to reject this if you want to keep it JS only, I won't be offended :) Moved this over to TS to get Intellisense and code completion working on p5. Everything is building fine and appears to be working identically but haven't done extensive testing on anything like stats generation or code splitting.

That's perfect! I wish I had done TypeScript for Murano Fantasy - debugging was cumbersome.
Everything works perfectly. I will just update the documentation later on.


settings cannot scrolling

When i open settings, I can`t see bottom of setting.
My screen is 12inch

Could you send me a screen shot please?

For reference:

Are you using medium/larger display settings?

My display setting is 1366 * 768

That's not what I meant. In the personalization settings, you can make all the screen elements larger.

It's no longer important I added a scrollviewer to the settings dialog that will display a scrollbar if needed to see all the settings. Thanks for the bug report. I'll post this in a new release (probably 1.4.2.