better naming resolvent.ArtifactGroup -> com.kazurayam.materialstore.reduce.CompositionGroup

the package com.kazurayam.materialstore.resolvent should be renamed to com.kazurayam.materialstore.reduce;
the pacakge com.kazurayam.materialstore.differ should be moved under com.kazurayam.materialstore.reduce.differ


add mode in systeminfo - [merged]

In GitLab by @liyanq528 on Apr 28, 2020, 07:24
Merges add-mode -> dev

In GitLab by @wknet123 on Apr 28, 2020, 07:26
mentioned in commit 025ae321bbc82cc66d67d1b0ca0c0859c3361b88

In GitLab by @wknet123 on Apr 28, 2020, 07:26
merged


Additional user configurable hl-groups

Hi,
Could you please make the directory (and I guess symlink) hl-groups configurable?
The hl I have for the default FuncRef isn't very fitting.
Thanks!

Thank you for your suggestion.
I have added the highlights.
Please try it out.
Please contact us if you have any further issues.

Perfect! thanks


iOS 12 password autofill / autosuggest

What
Adds the ability to suggest new passwords and autofill previously saved passwords on iOS 12.
It also hides the 1Password button on iOS 12 from the fields that were previously showing it (for simplicity - there's now a new access point - through the keyboard)
Why
Staying up to date to iOS improvements.
How
In order to hide the 1Password button we do test the version of iOS.
To add auto-fill / auto-suggestion we need to set textContentType on common username, password, new password fields thorough the app.
See 👀

Currently blocked by https://github.com/kickstarter/kickstarter/pull/13357

 Implement iOS 12 password autofill/autosuggest


Question about compiling / KanagawaCompile

How does the :KanagawaCompile command and the setup option compile = false option interact? What happens when I run the Compile command manually when this setting is set to false?

NOTE 1: If you enable compilation, make sure to run :KanagawaCompile command every time you make changes to your config.

Does any change to my whole config warrant a recompilation of the colorscheme?

Looking at  what :KanagawaCompile does (here), it calls load(), which checks config.compile - if it's true, then it runs compiled file, else it runs from config. Same goes for vim.cmd[[colorscheme kanagawa]]. Tl;dr: setting config.compile = false and running :KanagawaCompile will create compiled file, however it'll be ignored.


Ability to Apply 'Styles'

Is there a way to apply word styles such as 'Normal', 'No-Spacing', 'Title' etc.

Also, the output seems to use a custom style.  Is there a way to set the document to use the default "Built-In" style:

I realize I'm a little late but in your CSS, have something like this:
.emphasis { mso-style-name: "Emphasis"; }
Then in your HTML have something like this:

Sample Text

Basically just avail of mso-style-name. There's a complete list of attributes here.

Nice idea, although I wouldn't be able to live with mso- attributes in my codebase.  Vendor prefixes are bad enough.
Thank you for the reminder about this issue though.  I came up with a styleMap based solution.  I also created a comprehensive list of every possible selectors by turning on every possible "Word Style".
That list also includes an exhaustive list of hidden features found deeper within the MS Word settings.  You would be surprised how many times I encountered corner-case style mappings within documents that have been circulating for years...
I would suggest this issue is solved, although "one" could probably create a really nice resource based on my work...


Add examples

Codecov Report

Merging #10 into master will decrease coverage by 6.74%.
The diff coverage is 88.15%.

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   96.40%   89.65%   -6.75%
==========================================
  Files          28       31       +3
  Lines        1362     1518     +156
  Branches      306      177     -129
==========================================
+ Hits         1313     1361      +48
- Misses         49      157     +108

Impacted Files
Coverage Δ

...zure-opentelemetry-exporter/src/utils/spanUtils.ts
83.73% <50.00%> (-13.66%)
:arrow_down:

...re-opentelemetry-exporter/src/utils/breezeUtils.ts
95.12% <89.47%> (-4.88%)
:arrow_down:

...ry-exporter/src/platform/nodejs/context/context.ts
96.00% <96.00%> (ø)

...zure-opentelemetry-exporter/src/export/exporter.ts
76.82% <100.00%> (-16.43%)
:arrow_down:

...etry-exporter/src/platform/nodejs/context/index.ts
100.00% <100.00%> (ø)

...lemetry-exporter/src/platform/nodejs/httpSender.ts
92.85% <100.00%> (-7.15%)
:arrow_down:

...pentelemetry-exporter/src/platform/nodejs/index.ts
100.00% <100.00%> (ø)

...r/src/platform/nodejs/persist/fileSystemPersist.ts
84.55% <100.00%> (-9.52%)
:arrow_down:

...metry-exporter/src/utils/connectionStringParser.ts
70.58% <0.00%> (-22.06%)
:arrow_down:

... and 9 more

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 bc51cda...b84e765. Read the comment docs.

Looks good to me.


[BEAM-11956] feat: added retry and timeout params to Spanner read

The team that gives maintenance to  the googleapis/python-spanner repo have included retry and timeout options for reads and queries. I have modified the IO connector apache_beam.io.gcp.experimental.spannerio. Specifically the _ReadFromPartitionFn to include the retry and timeout arguments.
R: @chamikaramj

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

note that precommit shows broken tests on the spanner module: https://ci-beam.apache.org/job/beam_PreCommit_Python_Commit/19688/

any updates? : )

Hello @pabloem I have been unable to pinpoint why the Python PreCommit check is failing after running this locally. It appear that there are some assets that are not being captured. 🤔


ConfigureSwaggerGen

Hello Vitaly,
i was trying to configure swagger like this.
builder.AddSwashBuckle(Assembly.GetExecutingAssembly());
            builder.Services.ConfigureSwaggerGen(options =>
            {
                options.CustomOperationIds(apiDesc =>
                {
                    return apiDesc.TryGetMethodInfo(out MethodInfo methodInfo) ? methodInfo.Name : null;
                });
            });

but it does not seem to have any effect.
I've also tried to enable Annotation, but it also does not work.
Any ideas?

Hi, fmichellonet
I have included the fix into 3.1.1-beta package. Please, check it out.
Currently it is in pre-release, as there were several major changes to API/etc.
List of all the changes: https://github.com/vitalybibikov/azure-functions-extensions-swashbuckle/tree/dev

Thanks for your help.
I'll give it a try tomorrow.

Hello Vitaly,
great improvement! I've even been able to use Swashbuckle.AspNetCore.Annotations like this :
builder.AddSwashBuckle(Assembly.GetExecutingAssembly(),
                conf =>
                {
                    conf.ConfigureSwaggerGen = options =>
                    {
                        options.EnableAnnotations();
                    };
                });

The good news is that SwaggerOperation and SwaggerResponse attributes are working like a charm. I was hoping that SwaggerRequestBody attribute to describe my typed body parameter would do the job. Sadly it doesn't work.
So, i'll keep up with RequestBodyType attribute and HttpRequestMessage, that's a good start!


Improve Pagination component print styles

By default .govuk-link print styles will output the href attribute
in brackets after the link. For example: "Home (/homepage)".
This is done with the ::after pseudo selector.
So when this was styled to increase the touch area of the pagination link
it resulted in the bracketed information overlapping the component in
a difficult to read way.
By only applying this touch area improvement in the screen media context
we avoid overwriting this inherited print style and allow the default
.govuk-link behaviour to apply as usual.
In practice I think many GOV.UK Frontend users might hide this component from their print views so impact on end-users is low.
I'd be down for doing something more holistic as part of https://github.com/alphagov/govuk-frontend/issues/573 if you're interested in that contribution (including thinking about it from a more high level design pov), but I noticed this just at a quick glance.
Screenshots

Before
After

Hi @NickColley! Finally getting into this.
Very much appreciate the bugfix, deffo something we should've spotted during development 😅 However I'm going to be irritating and say this has prompted me to wonder if we should even show pagination on print and I wonder if it makes more sense to amend this PR to just hide it outright. What are your thoughts? If we wanted to just hide the whole thing, do you have capacity to amend this PR?

@owenatgov my high level thought at this point is this:

Show all components with print friendly styles by default
Allow the user to then decide which components should be hidden themself.
Perhaps an opt in default for the second option. I'd need to spend more time thinking about it.

That's what I was thinking by the extended piece of work. But what I've shared here is sort of how people are doing it in practice if you look at GOV.UK Publishing for example.

Maybe something like:

All components have functionally working print styles
By default we have some best practice defaults for components we think are most likely to be hidden
User can override those per-component basis
Write some guidance to explain all of this alongside Sass docs

@querkmachine that reminded me of something Frankie said about how they intentionally made accordions keep the state they are on the page when printed with the idea that the user might want to control that themselves.

@NickColley I think this makes sense. Let's get this in for now to clear it up and start thinking about a more consistent print strategy soon. I'll review this next.

Thanks for your time reviewing this, I'll leave it with you to merge as I have no power to merge I am a humble contributor :P


Minting success animation

Two options for confetti:

https://share.cleanshot.com/0KIJoP
https://share.cleanshot.com/9JlXAB

Any other things you’d want to see? The little “Your NFT has been minted!” message could be spiced up, but I’m not quite sure how.

Did some tweaking; what do you think of this? https://share.cleanshot.com/N0EhWy

Looks ok! I think we don't want to change the size of the well on success if we can avoid it.
Also, I have a preference to use the same libraries that we use in the main Luma repo — so for animation, I'd like to use Framer Motion. You don't need to change this now, but it's something to keep in mind.

Done! The size of the demo doesn’t change anymore, and I added a transition into the success state.
https://share.cleanshot.com/H85nVi


Using the knexfile.js alongside bookshelf

I've noticed that bookshelf doesn't really understand the notion of knex's environment.  For instance, knexfile.js uses development, staging, and production, but there is no real method of bridging that to bookshelf unless the intention is to let the developer figure that out.
I'm building an app where it is very beneficial to use migrations and various database adaptors, but I'm not finding a good way of understanding how knex sets it's internal environment, and how to use that with bookshelf.
The reason I'm mostly confused is because knex on it's own seems to "just know" which environment to do migrations on, but I don't have a way in code to determine which.  There isn't much documentation regarding both bookshelf with a knexfile and knex migrations.

Never mind, I just noticed the knex --help output.

In any case, the knexfile can be used directly in bookshelf configuration:
var knexFile = require('../knexfile.js');
var knex = require('knex')(knexFile.development);
var bookshelf = module.exports = require('bookshelf')(knex);

Detect if running on dev with app.get('env').


[AutoPR apimanagement/resource-manager] Added missing PATCH operation to Api Issue resource

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4440

(message created by the CI based on PR content)

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/3106


⚠ Bofrost.be has degraded performance

In 4ebcbb0, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1830 ms

Resolved: Bofrost.be performance has improved in 611c17b.


feat(AIP-133): add request-id-field for non-df API

Corresponds to the change to https://github.com/aip-dev/google.aip.dev/pull/1019.
resource_id is now required regardless of declarative_friendly.
fixes #1107

Corresponds to the change to https://github.com/aip-dev/google.aip.dev/pull/1019.
resource_id is now required regardless of declarative_friendly.
fixes #1107

Corresponds to the change to https://github.com/aip-dev/google.aip.dev/pull/1019.
resource_id is now required regardless of declarative_friendly.
fixes #1107


Fix ICMPv6 RS packets not being sent over  PPPoE

RTSOLD when using the -a flag will not send solicits over a point to point link. You must therefore specify the interfaces to be probed.
Re: #4733

We are not going backwards on this. Not after doing all the work to unclog this code for multi WAN DHCPv6.

It's not going backwards, you have to send a solicit... HTH is it going backwards?????

To add to my last comment, my test router is set up with multiwan dhcp6, one direct to the primary router and one over a PPPoE link to the Microtik VM, both if them get v6 prefixes and the LANs get the correct prefixes and it works fine. It does NOT work with the -a flag..

We are not going backwards on this. Not after doing all the work to unclog this code for multi WAN DHCPv6.

Seriously? What kind of strange approach is that?
As marjohn56 pointed out, RTSOLD does not send requests to a point-to-point interface when the -a flag is used. Just read the RTSOLD man page!
It has been shown that the current implementation is flawed for users using a PPP WAN link. And now you don't want to fix it?

There is a lot of drama for a silly one line restriction. https://github.com/opnsense/src/commit/2485dc035

No drama, just trying to make things work as they should.

There is a lot of drama for a silly one line restriction. opnsense/src@2485dc0

Rather than fixing the problem at the point where it arises, we are now tinkering with rtsold's source code.
That's insane!

If you knew anything of the work Martin and me have done over the years you would probably not act in this ignorant stance of yours. Time for you to go with it or just go. I don’t care.


fix caBundle lookup when running helm upgrade

Description
Fixes a bug where caBundle lookups didnt' work as expected when running Helm upgrade
Previously we stored the generated ca cert in the sidecar-injector cert secret, and looked it it from there. The problem with this was that for upgrades from pre-rc3, the ca key didn't exist, and the upgrade failed. Now instead we look up the required string directly from the existing versino of the webhook config. This is much more precise, and allows us to not store secret date we don't really need.
Tested like this:
helm upgrade --install dapr dapr/dapr --namespace dapr-system --create-namespace --version 1.0.0-rc.2 --wait
firstcert=$(kubectl get MutatingWebhookConfiguration dapr-sidecar-injector -o jsonpath='{.webhooks[0].clientConfig.caBundle}')

# run helm upgrade using local dapr chart dir
helm upgrade --install dapr . --namespace dapr-system --create-namespace --wait --values ~/Desktop/values.yml
secondcert=$(kubectl get MutatingWebhookConfiguration dapr-sidecar-injector -o jsonpath='{.webhooks[0].clientConfig.caBundle}')

if [[ "$firstcert" == "$secondcert" ]] then
   echo "IDENTICAL"
else
   echo "NOT IDENTICAL"
fi

Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #2743
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[x] End-to-end tests passing
[x] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[x] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[x] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

This PR should be opened against the release-1.0 branch which has the latest changes to the chart (not merged into master yet)

This PR should be opened against the release-1.0 branch which has the latest changes to the chart (not merged into master yet)


[QUESTION] Regarding Roblox Studio

I wanted to ask if Bloxstrap can be used to install Roblox Studio alongside the Bloxstrap features. If so, how can I do so?

It is a feature that he is working on it's just not apart of any of the builds yet

We don't currently have support for that.


MySQL Suggestion that can really help us

Greeting,
I was wondering if in the MySQL database "shop_log" it is possible to split the "product" column into two part. At this moment it is for exemple "24 x Bone" and the idea is to have one column for the number "24" and another column for the name "Bone"
The final use is to use it in PHP
Thank you,
Regards.

Is this possible ? Or we must find a workaround with it ?
Regards


Garbage function calls break valid ASM instructions

I have an example of the issue.
Explanation: A garbage function call from a data section of the ROM broke what should have been a 3-byte instruction. Screenshot shows comparison in Ghidra.

"Garbage" label creation is fairly widespread (jr targets next to data blocks do the same), but needs to be handled somehow, the target cannot be simply omitted, as the instruction needs a target.
Sometimes it's intentional, too:
    jr nz, .notZero
    db $3E ; ld a, $AF
.notZero
    xor a
    ld [wFlag], a ; Write $AF or $00

I'm not sure how this could be fixed, beyond adding some sort of data section recognition. There might be some heuristics that could be applied, like loading a register with two different values right after each other, etc. But maybe it would suffice to be even clearer in the README that properly labeling data sections is very important to get a good disassembly? It already suggests doing a trace in an emulator.

Without perfectly knowing what is code or data this will always an issue, in particular with bank 0. I believe originally mgbdis did not create labels in bank 0 for calls/jumps originating from other banks, however this changed while back.
We could go back to that old behaviour by default and add an option to enable labels to be generated in bank 0 from other banks (useful for 32KB ROMs).
Another thing that could improve it is to only generate labels in bank 0 from other banks when the call/jump originates in a known code block (from the sym file).


Reduce dependency when installing leptonai

Is your feature request related to a problem? Please describe.
By installing leptonai via poetry, the image size increased 10x resulted in longer deployment time.
Describe the solution you'd like
can we somehow have a core version or lighter version of leptonai so I can choose the one with or without additional dependency like CUDA?
Additional context

I have attached the screenshot if image built with/without leptonai lib.

this should have been fixed in the latest 0.18.0 release (split into two packages leptonai which doesn't have cuda dependencies and leptonai[runtime] which has full dependencies)

this should have been fixed in the latest 0.18.0 release (split into two packages leptonai which doesn't have cuda dependencies and leptonai[runtime] which has full dependencies)

Oh my! Thanks for doing it! I will test it later today and close once I confirmed it reduce the image size.

thanks it works!


Fix starting VMIs with DataVolume in Block mode

What this PR does / why we need it:
This PR comprises two fixes:

Block DataVolumes were added to the volumeMounts as if they were Filesystems. They are now added to volumeDevices instead.
Previously file disks were added to the libvirt domain also in case of block DataVolumes. Block disks are now added instead.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2438
Special notes for your reviewer::
The tests for OCS block mode volumes (added as part of #2617) serve as the functional tests for this PR once the workaround of referring to the underlying PVC is removed.
Release note:

Fix running VMIs with block DataVolumes.

/cc @rollandf @danielerez

/retest

/retest

/retest

/test pull-kubevirt-e2e-k8s-1.15.1-ceph

/lgtm

/approve

/retest

/retest

/retest pull-kubevirt-e2e-k8s-1.13.3

/retest

/retest

/lgtm

/retest


RFC 0351: Generic JSON communication protocol

This RFC defines a protocol for sending JSON messages between aries agents, or between external (non-aries) entities using aries agents and DIDComm to relay messages.
Signed-off-by: Filip Burlacu<EMAIL_ADDRESS>

I think there a couple of things missing from this proposal.
First, there are no actual use cases for how this would be used. Do you have any ideas on where you plan to use this?
Second. there is no detail on the purpose or use of the non-DIDComm software in the scenario.  For example, I'm wondering who is doing the decryption of the message?  If there is a non-DIDComm agent that is intended to be the recipient of the message, what does the DIDComm know about the message?  Do they decrypt the full message?  What goes into the did:peer DIDDoc?

Looks like the proposal is still being evolved.  Perhaps better to do that locally to get a complete first pass done?

The use case I'm sure about involves the HTTP over DIDComm RFC I parked and will rewrite - allowing protocols built over HTTP (eg, REST servers) to operate over DIDComm, using DIDComm as a transparent layer.
The expectation is that the sender owns the sender-agent, and the recipient owns the receiver-agent, so the encryption of the envelope between sender and sender-agent is a matter for them to decide, same for the recipient, and the payload can be encrypted by the sender for the recipient as well, but these are questions answered by different layers.
For all DIDComm purposes, the receiver-agent (perhaps I should replace this with 'recipient agent') is the true recipient of the message, the owner of the peer DID, the provider of the DID doc during DID exchange, etc.

Thanks for the questions by the way, I'll work the answers into the RFC. It was indeed ready for review, the changes you might have caught were from rebasing away a merge commit :)

The use case I'm sure about involves the HTTP over DIDComm RFC I parked and will rewrite
(@Moopli)

@swcurran FYI: the HTTP over DIDComm RFC PR is here:
https://github.com/hyperledger/aries-rfcs/pull/338


Update README.md

Clarified that there are three npm packages required.
Fixed typo in dev dependency instructions, : -> @.

I had some other changes to make to the README so combined your changes and mine :) https://github.com/idahogurl/vs-code-prettier-eslint/commit/42d08e550e2fe57ffc301450a4229cf6f38f9a8f
Thanks for the PR!

My pleasure 🙇🏽♂


UI: Refine validation strategy

Refine the validation strategy for the wizard pages containing forms.  This requires input from UX team to verify acceptable strategy.
Currently the wizard steps with forms contain a 'Validate' button.  My thought is to remove the validate button, and do the validation when the user clicks Next.  Should not advance to the next page until the current step is valid.
There may be cases where the Validate button is desirable though - for example a 'Validate' or 'Test' button so that the user can confirm basic connection properties might be desirable.

Pr merged https://github.com/debezium/debezium-ui-poc/pull/115


Rename RentStructure to StorageScoreParameters

And update the fields https://github.com/iotaledger/tips/blob/973334ae4657974dff08385d2cb912e945736a37/tips/TIP-0048/openapi3-core.yaml#L2688

[x] Rust https://github.com/iotaledger/iota-sdk/pull/1065
[x] Python https://github.com/iotaledger/iota-sdk/pull/1673
[x] NodeJs https://github.com/iotaledger/iota-sdk/pull/1673

Closed by https://github.com/iotaledger/iota-sdk/pull/1673


Put "partners" tab on top bar

It should link to /partners. We've made the webpage, so let's link to it!

Got it


Tag 0.8.0

Console has a PR ready to test out the new transaction endpoints (https://github.com/vegaprotocol/console/pull/6134) - please tag a release that contains the new endpoints.

This has been done


Video disappears when app goes to background and returns to foreground

I'm building an iOS app and i have used this module like so:

                 <Video
                      source={{uri: this.state.url }}
                      ref={(ref) => {this._player = ref}}
                      repeat={this.state.repeat}
                      paused={this.state.paused}
                      style={styles.video}
                 />

When the app is sent to the background on the iPhone, then when it is recalled to the foreground, the video is gone! Why is this?
I don't mind the video restarting from the beginning, but it needs to be there, playing, as theres a huge gap on the app screen.
The user has to go to another tab in the bottomTabNavigator and return, to get the video back!

Try setting these props and see if there's a difference:
playInBackground={false}
playWhenInactive={false}

Yes that helps thanks

I faced the same problem, setting those props to false didn't help. I am using react-native-video to play a video stream.


Question: Is it reasonably possible to support the embedded-storage-async traits?

I'm looking into using a storage crate (https://crates.io/crates/sequential-storage/1.0.0) with Embassy, but it depends on the embedded-storage-async traits.
Are there plans to support those in esp-storage?

Unfortunately, we cannot really support something which is really async because the ROM functions used are not async. Even if they were there is still the problem that the flash needs to be detached while performing operations on it
But it seems others had success by using an async wrapper of the blocking operations: https://github.com/esp-rs/esp-storage/issues/39#issuecomment-1980991446
It's certainly still blocking but if it's okay in that situation to block other async tasks during the (relatively short running) operations you might can get away with that.
We could provide that functionality (the async wrapper over blocking behavior) directly here but that feels wrong and might fool users

Ah ok, I figured looking at the rom functions, but I thought I ask anyway. I'll give it a shot. Thanks for getting back to me.


New package ankama-launcher

Description of changes
Added a new package: ankama-launcher. Used to play Ankama games like the mmorpg Dofus.
Things done

Built on platform(s)

[x] x86_64-linux

[x] Tested basic functionality of all binary files (usually in ./result/bin/)

[x] Fits CONTRIBUTING.md.

nixfmt pkgs/by-name/an/ankama-launcher doesn't give me an ouput when I run it in a nix-shell.
I don't know why it fails.

nixfmt pkgs/by-name/an/ankama-launcher/package.nix doesn't give me any ouput when I run it in a nix-shell. I don't know why it fails.

nix-shell -p nixfmt-rfc-style
cd /path/to/nixpkgs/pkgs/by-name/an/ankama-launcher
nixfmt package.nix

thank you for your help
I hope it's good now

I don't know if the url that you are fetching will work for everyone. I tried to build a package with that url but I was always getting an error 403 and a message from cloudfront... Probably some new security measures that ankama started to adopt.
But then I tried with this url https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage and worked fine. It's actually the url used by Lutris to install the ankama launcher.
Sources:
Gist of the Package that I made: https://gist.github.com/FilipeS0usa/be94779e6af12dabe9102b70cda96c24
Ankama Launcher Lutris: https://lutris.net/games/install/12426/view


Fix inconsistent error for series limits in Store API

Fixes inconsistent errors returned between Series and (LabelNames, LabelValues) when limits are reached.
See issue 6316

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

LabelNames and LabelValues rpcs now return resourceExhausted gRPC code when series limit is reached instead of internalError.
Verification

Added e2e tests.

Have you seen https://github.com/thanos-io/thanos/pull/6325? :smile: I think your PR fixes the same issue?


Add styling and Copy button to deep-link section on CiviForm admin page

The CiviForm admin's homepage shows the deep-links to each program:

To make this easier to use and more salient, we should:

Add some more styling here
Add a "Copy" button that, when clicked, copies the deep-link to the user's clipboard (easy to do with JavaScript)

Hi Neel, I would like to be assigned to this task. Not sure how I can add myself.

Hi Namrataa, just assigned to you!


Support Sketch 45 plugin update system

Hi there!
This is a quick note to remind you that Sketch 45 will include a plugin update system.
It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.
For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/
Thanks in advance!

+1

just released v1.4.0 which has appcast support (thanks to Sketchpacks API :) )


Move setup into python script

--configure and --reconfigure options to run setup?

Closed - some rework per other open items but this is done.


SnakeYaml SafeConstructor restricting deserialization

ParsedDockerComposeFile is vulnerable to deserialization gadget chain attacks that can lead to remote code execution when the file has untrusted content: https://nvd.nist.gov/vuln/detail/CVE-2022-1471
This should be fixed by using SafeConstructor as suggested by the SnakeYaml developers.
Deserialization of arbitrary Java types is not used by the Compose file spec and therefore can be disabled without any loss of functionality: https://docs.docker.com/compose/compose-file/

Thanks for your contribution, @julianladisch !


Video Reach Bid Adapter: update with prebid v5 compliance

Added adapter to v5 with this pr -> https://github.com/prebid/Prebid.js/pull/7142

Hi
I just wanted to double-check with you that this is just a docs update. If it is, let me know and I'll get it merged.


[QUESTION] Check if the request context is available

Is there a way to check if the request variable is available to use?
I'm coming from Flask and my codebase gets run from the API and inside RQ Workers (background queue).
Inside RQ Workers, the SQLAlchemy db session is maintained per worker and for API it's at the request level.
To get the session I have a function that looks something like this:
def get_session():
    if has_request_context():
        # Get it from the request. In case of Fast this will be probably be Depends(request.state.db)
    elif has_worker_context():
        # Pick it from a local variable

To run a query we simply call the above function to get the session.
How can I achieve something like this in Fastapi?

It depends on how you have things implemented.
In general, even if it is somehow possible, I think it may force an awkward design if you try to use the same get_session function to get a session inside both your fastapi endpoints and inside your workers.
I would recommend you write functions that accept a session as an argument, and then use a fastapi Depends to inject the session in your endpoints, and use an alternative approach to get a session in your workers.
This could be as simple as calling the fastapi endpoint functions while specifying a non-default value for the session (so that the Depends is not passed to the function) in the workers. Or it could mean having your fastapi endpoints basically just being wrappers around a single set of functions either the api or workers can call, if some minor amount of api-specific preparation is required.
I think it might be hard to give a better answer than that without a little more detail about the api and worker design.

If you really want to go down this route, you could maybe do something along the following lines:
def get_fastapi_request(request: Request):
    return request

def get_session(request: Request = Depends(get_fastapi_request)) -> Session:
    if isinstance(request, fastapi.params.Depends):
        # default value was passed, so in worker context
        ...
    else:
        assert isinstance(request, Request)
        # fastapi injected the value, so in a dependency
        ...

But again, I would encourage you to think if there is a way to design this that avoids this check.

Thanks for this.
--
We have 130k lines of code and doing the refactor of injecting the session through function parameters would be too much of a work.
The get_session is simply a helper function that picks the session depending on where the code was run from. Which can be 3 places. From the api request, worker and python console or jupyter environment. It allows to run the exact same code without any pre-requisites of starting an app or instantiating some objects.
It works well for us in Flask and I'd like to stick to it unless there's something very wrong with this design being used with Fast.

I understand if it is due to legacy reasons.
I take it this means you are not using fastapi's dependency injection to get access to the request?
One way you might be able to handle the request-access in a route could be through the use of context vars. You could do
from contextvars import ContextVar
from typing import Optional

fastapi_request_var: ContextVar[Optional[Request]] = ContextVar('fastapi_request', default=None)

def set_fastapi_request(request: Request):
    fastapi_request_var.set(request)

api_router = APIRouter()  # add all your endpoints to this router

app.include_router(api_router, dependencies=[set_fastapi_request])

def get_session():
    fastapi_request = fastapi_request_var.get()
    if fastapi_request is not None:
        return fastapi_request.state.db
    # Not inside a request context
    ...

Note: I haven't ever used context vars, or tested the above code, but based on the linked docs it seems like the above would be the way to accomplish it 😅.

In short, as @dmontagu says, you can use context vars to create a "global" variable that stores a single session and then close it after sending the response. You need to use Python 3.7 or above, and yes, context vars are preserved when using the thread pool (normal def functions).

I imagine you're using Flask-SQLAlchemy or similar.
That uses thread locals to store the session. That is based on the assumption that each request is handled by a single thread.
In FastAPI (or any async tool) everything is run "in turns" on the same thread, in an "event loop". And when you run blocking code / normal def functions, FastAPI runs them in a thread pool, during the same request.
So, a thread local could be shared by multiple requests (maybe even simultaneously) and when using normal def, functions and dependencies, they would get their own session, because they are run in their own thread.
That's what is solved by context vars. They are, as with thread locals, "global" variables that are actually different in each case. But in context vars they are associated to each "turn" in the event loop, instead of each thread.

I understand if it is due to legacy reasons.
I take it this means you are not using fastapi's dependency injection to get access to the request?
One way you might be able to handle the request-access in a route could be through the use of context vars. You could do
from contextvars import ContextVar
from typing import Optional

from fastapi import APIRouter, FastAPI, Depends
from starlette.requests import Request

fastapi_request_var: ContextVar[Optional[Request]] = ContextVar('fastapi_request', default=None)

def set_fastapi_request(request: Request):
    fastapi_request_var.set(request)

api_router = APIRouter()  # add all your endpoints to this router

app = FastAPI()
app.include_router(api_router, dependencies=[Depends(set_fastapi_request)])

def get_session():
    fastapi_request = fastapi_request_var.get()
    if fastapi_request is not None:
        return fastapi_request.state.db
    # Not inside a request context
    ...

Note 1: I haven't ever used context vars, or tested the above code, but based on the linked docs it seems like the above would be the way to accomplish it .
Note 2: This could lead to some debugging challenges if, for example, you try to access the fastapi_request prior to it being set. For example, I don't know if context vars are carried across threads (e.g., if starlette's run_in_threadpool is called). (But that's probably going to be a risk with any design that doesn't pass the request directly.)
Also, be aware that a new Request instance is created during each middleware (this is related to how starlette is implemented). The state should be passed along properly, but I could imagine running into some surprising behavior if you aren't aware of this.

The code don't work for def! The reason is those function run in different 'event'!

It works using a middleware.

It works using a middleware.

I was wrong. contextvars is effective in different events in different levels. Just correct it here.


Facing problems with plugin on migration to public server

After installing Octobercms on the public server and updating the related plugins (builder included), I've moved the custom plugins that has been generated by the builder plugin on my local server, manually to the plugins directory on the public server, followed up with the command line of "october:up". I'm now receiving the following errors, while trying to access the builder plugin on the back-end. I've tried re-installing the builder plugin, but the problem keeps producing. I'm quite new to the framework of October Cms and Laravel, any advice/assistance I can receive is really appreciated. Thank you.
Call to undefined method RainLab\Builder\Widgets\ModelList::getCollapseStatus()
/home/morgan51/dev.morgana-design.com/vendor/october/rain/src/Extension/ExtendableTrait.php line 388
    Type:  Undefined
    Exception:   BadMethodCallException

$parent = get_parent_class();
        if ($parent !== false && method_exists($parent, '__call')) {
            return parent::__call($name, $params);
        }

        throw new BadMethodCallException(sprintf(
            'Call to undefined method %s::%s()',
            get_class($this),
            $name
        ));
    }
Call to undefined method RainLab\Builder\Widgets\ModelList::getCollapseStatus()
/home/morgan51/dev.morgana-design.com/vendor/october/rain/src/Extension/ExtendableTrait.php line 388

    Type
    Undefined

    Exception
    BadMethodCallException

$parent = get_parent_class();
        if ($parent !== false && method_exists($parent, '__call')) {
            return parent::__call($name, $params);
        }

        throw new BadMethodCallException(sprintf(
            'Call to undefined method %s::%s()',
            get_class($this),
            $name
        ));
    }

Duplicate of #193

@NMorgana to fix it, enable edgeUpdates in config/cms.php and then update again.

Thank you, that fixed the issue!


Don't include mongo in install phase

Deploy stage calls install and so fails because the MONGODB_VER env var
is not set

Pull Request Test Coverage Report for Build 235

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 97.225%

Totals

Change from base Build 234:
0.0%

Covered Lines:
1156

Relevant Lines:
1189

💛  - Coveralls

:+1:

Looks like some docker fixes are still needed, coming up


Add Documentation for CDN Integration Blade

This is a development guide for extension developers to enable CDN integration for their resources in the Azure portal.

Removed the properties line


Feature request: Be able to persist terminals across relaunches

Whenever I restart Atom, I need to start a couple of new terminals in the correct working directories, and then set their colors and names, before starting the processes I want running in them. I'd love to be able to tag a terminal as "sticky", so that it will automatically reopen when I relaunch Atom, and remember its color, name and cwd.

Another neat feature on this would be if the terminal could persist its environment too.

dulicate of #91


Regenerate GAPIC for V1 and V2Beta1 using synth.py

Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)

[] Tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Codecov Report

Merging #110 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #110   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines           5      5
=====================================
  Hits            5      5

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 693bd53...1cbd049. Read the comment docs.


Add Light mode toggle

Implement light mode support across the app for a better user experience.

Hi @Bijayanee , i would like to work on this issue, please assign this to me.

@irshadsiddi sure

hey! @Bijayanee anyone working on this??

hey @Amitkumarkoli do you want to work on this issue.. if you want i can unassign me..

Sure! @irshadsiddi if u r ok with that .
@Bijayanee u can assign it to me, I will start work on this.


Update

[x] Update to MCBE 1.19.30
[x] Handle Immobile flag
[x] Handle fly ability
[x] Add all block mappings (all unavailable blocks are listed in unknown_blocks.json)

Waterlogging

[x] Waterlogging support in LevelChunkPacket
[ ] Waterlogging support in UpdateBlockPacket

Some special blocks and connecting blocks are still need a special handling

[ ] Item Frame & Glow Item Frame (Entity in JE)
[ ] Glass Pane, Fence, & Iron Bars
[ ] Redstone Dust
[ ] Stairs (inner & outer shape)

Invisible Bedrock is assumed as a barrier

[x] Fix waterdog transfer
[x] Fix chunk loading after coordinates >320 and <-304

wow its nice job !

ok good 👍


[0.9.x] RHBPMS-1889: Search by Find form does not work

Fix failing tests on kie-wb-common and include test in uberfire.

This is related to https://issues.jboss.org/browse/RHBPMS-1889 and https://github.com/uberfire/uberfire-extensions/pull/312

@psiroky This fixes the failing tests on kie-wb-common (6.5.x)

Thanks @manstis


TransformExtensionsManager readAs method throws FailedRequestException

Using one of the Java IO classes to read a XSL transform code, causes a FailedRequestException.
The motive of this test was to validate Git Issue 332.
Since only users with the http://marklogic.com/xdmp/privileges/xdmp-eval-in (xdmp:eval-in) or equivalent privilege can send request parameter that enables the request to be evaluated against a content database other than the default  database associated with the REST API instance,the test creates a user called "eval-user" who has the following role "test-eval".
Role "test-eval" has the following previlages :
"xdbc:eval", "xdbc:eval-in","xdmp:eval-in","any-uri","xdbc:invoke"

But
TransformExtensionsManager readXSLTransformAs(transformName, FileReader.class)

throws an exception. Using a BufferedReader also threw same exception. Maybe the API usage in the test is missing something or incorrectly used.
Here is the sample test code:
	@Test
	public void testXsltTransformReadAs() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
	{
		System.out.println("Running testXsltTransformReadAs");

		String[] filenames = {"constraint1.xml", "constraint2.xml", "constraint3.xml", "constraint4.xml", "constraint5.xml"};
		String transformName = "search2html";

		DatabaseClient client = DatabaseClientFactory.newClient("localhost", Uberport, UberdbName, "eval-user", "x", Authentication.DIGEST);

		// set query option validation to true
		ServerConfigurationManager srvMgr = client.newServerConfigManager();
		srvMgr.readConfiguration();
		srvMgr.setQueryOptionValidation(true);
		srvMgr.writeConfiguration();

		// write docs
		for(String filename : filenames)
		{
			writeDocumentUsingInputStreamHandle(client, filename, "/response-transform/", "XML");
		}

		// set the transform
		// create a manager for transform extensions
		TransformExtensionsManager transMgr = client.newServerConfigManager().newTransformExtensionsManager();

		// specify metadata about the transform extension
		ExtensionMetadata metadata = new ExtensionMetadata();
		metadata.setTitle("Search-Response-TO-HTML XSLT Transform");
		metadata.setDescription("This plugin transforms a Search Response document to HTML");
		metadata.setProvider("MarkLogic");
		metadata.setVersion("0.1");

		// get the transform file
		File transformFile = new File("src/test/java/com/marklogic/client/functionaltest/transforms/search2html.xsl");

		FileHandle transformHandle = new FileHandle(transformFile);

		// write the transform
		transMgr.writeXSLTransform(transformName, transformHandle, metadata);

		// get the combined query
		File file = new File("src/test/java/com/marklogic/client/functionaltest/combined/combinedQueryOption.xml");

		String combinedQuery = convertFileToString(file);

		// create a handle for the search criteria
		StringHandle rawHandle = new StringHandle(combinedQuery);

		QueryManager queryMgr = client.newQueryManager();

		// create a search definition based on the handle
		RawCombinedQueryDefinition querydef = queryMgr.newRawCombinedQueryDefinition(rawHandle);
		querydef.setResponseTransform(new ServerTransform("search2html"));

		// create result handle
		StringHandle resultsHandle = new StringHandle();
		queryMgr.search(querydef, resultsHandle);

		// get the result
		String resultDoc = resultsHandle.get();

		System.out.println(resultDoc);

		assertTrue("transform on title is not found", resultDoc.contains("<title>Custom Search Results</title>"));
		assertTrue("transform on header is not found", resultDoc.contains("MyURI"));
		assertTrue("transform on doc return is not found", resultDoc.contains("/response-transform/constraint5.xml	"));

		FileReader srtReadXSLTCodeHandle1 = transMgr.readXSLTransformAs(transformName, FileReader.class);

		transMgr.deleteTransform("search2html");

		// release client
		client.release();
	}

Here is the stack trace:
com.marklogic.client.FailedRequestException: Local message: config/transforms read failed: Bad Request. Server Message: REST-UNSUPPORTEDPARAM: (rest:UNSUPPORTEDPARAM) Endpoint does not support query parameter: database
	at com.marklogic.client.impl.JerseyServices.getValue(JerseyServices.java:2733)
	at com.marklogic.client.impl.TransformExtensionsImpl.readTransform(TransformExtensionsImpl.java:197)
	at com.marklogic.client.impl.TransformExtensionsImpl.readXSLTransform(TransformExtensionsImpl.java:182)
	at com.marklogic.client.impl.TransformExtensionsImpl.readXSLTransformAs(TransformExtensionsImpl.java:147)
	at com.marklogic.client.functionaltest.TestDatabaseClientConnection.testXsltTransformReadAs(TestDatabaseClientConnection.java:535)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:19

It sounds like the Java API is passing the "database" param to GET /v1/config/transforms/{name}. That method has no such param. The database param applies only to operations on the content db; transforms live in the modules db.
It might be worth verifying /v1/config/resources/{name} doesn't have the same problem, if we haven't already done so. Or the other /v1/config/* methods, if you're out of things to do. ;)

I have a  proposal for how to fix this.  Let's throw an IllegalStateException on calls to newTransformExtensionsManager() if the client has a database set, since the /v1/config/transforms REST endpoint doesn't allow the database parameter. Additionally, in case someone sets the database after calling newTransformExtensionsManager(), we can throw an IllegalStateException when any method is called on TransformExtensionsManager which would contact the server.
Let's fix this in 4.0 since it might break someone who is already doing that (though that's unlikely).  For 3.0.5, let's not have any tests that attempt to set the database when using TransformExtensionsManager.  Make sense?
I'll keep this task for me to throw the IllegalStateException where appropriate.

So I have to create a separate connection (DatabaseClient) just because I want to do a config operation?
Maybe I've lost track of the issue, but I don't understand why this needs to be an error at all. The db is just an override for the default content db associated with the REST instance. The db split is already and always present. It's not as if, when you specify no db, the CRUD/search operations and the config operations are operating on the same database.
The API impl should just do The Right Thing: Use the override on content db operations, and not use it on modules db operations.

You should most likely create a separate connection when doing a config operation because you should most likely be using a separate user with privileges to do a config operation.  Only in development land do we get to do everything as "admin".
I lean towards having the Java Client API to mirror the REST API: throw an error when someone specifies a database on a config operation.  The problem with not throwing an error is we're silently ignoring their request to operate on another database.  I can see scenarios where an instance of MarkLogic server has multiple REST endpoints, each with a separate modules database.  I don't want customers to think they could use one database client instance to configure both modules databases, because they can't--the REST endpoint doesn't even support the database parameter.
This new world we're in is even slightly more confusing because many of our config operations, such as LibraryExtensionsManager are rendered redundant by the ability to read/write directly to the modules database by specifying it at the DatabaseClient.  Since we can do that, I don't want to give the mistaken impression that we could also use LibraryExtensionsManager or any of the other config managers against a separate modules database if we really can't.  Therefore I'm voting that we throw an error (just like the REST API) to make it clear that's not allowed.

I don't understand the concern about being consistent with the REST behavior. The REST API is throwing an error because the API is using it wrong, not because there's something special about passing it the database parameter. If the Java API passed it a parameter named "sausage", you'd get the same behavior. The user isn't doing anything wrong. We are.
I think as long as we talk about the parameter in terms of the content database, there's no need to fear the database entanglement, either. The REST dev guide, REST apidoc, and the Java dev guide all talk about this knob as changing the CONTENT database. The javadoc doesn't, which may be where your concern arises. It just says the following, which is misleading:
"database - the database to access (default: configured database for the REST server)"
Anyway, I'll take pity on the poor horse and stop beating it now. :)

A few more beatings . . .
I'm trying to say the user is doing something wrong if they use a DatabaseClient pointed to a non-default database and attempt to do a config operation with that DatabaseClient.  We made the choice to attach non-default database config to the DatabaseClient and we agree that we need to make sure it's clear that only applies to changing operations against he CONTENT database.  I agree we need to improve the javadocs to clarify that.
As a principle, however, let's lean towards "fail fast" rather than silently accept misuse.  I submit that it's misuse to attempt config operations when the DatabaseClient is pointed at a non-default database.  Now I too will leave the horse to rest. ;)

After some discussion with the team, we're going to mark this "will not fix" since the current behavior is doing what it should: throw an error for an ambiguous call.  The call is ambiguous because it is pointing to a different database which might mean the dev incorrectly thinks they can change modules in a different database than the default modules database for the REST server.  The solution is to perform any rest-admin calls using a DatabaseClient instance configured with no specific content database--that way it's clear that the dev expectes the calls to affect the default modules database for that REST API instance.


Cannot compile tesseract in vs2015

Environment

Tesseract Version:3.05

Platform: windows 10

Current Behavior:
I can compile it successfully in my this computer yesterday by such command
cppan
mkdir build && cd build
cmake ..

But after I reinstall the system today, it will give me such error information

LINK : fatal error LNK1104: cannot open file “Debug\unicharset training.lib

But I cannot search any information about it. Can anybody can tell me something?

...and it describe clearly there is no issue in tesseract but in your computer setting. Use tesseract forum as described in issue tracker instruction.


(FLK-E261) At least two spaces before inline comment

Description
Inline comments should have two spaces before them.
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/robotichead/NearBeach/issue/FLK-E261/occurrences/

Hello, I would like to work on th

@robotichead  Hey, I have solved this issue could you please review my PR #506


Make bouncycastle a provided dependency for mockwebserver

I'm getting the following exception when running tests that use mockwebserver on 2.3.x devices:
11-15 13:40:55.565 W/ClassPathPackageInfoSource(25066): Cannot load class. Make sure it is in your apk. Class name: 'org.bouncycastle.asn1.x500.X500Name'. Message: org.bouncycastle.asn1.x500.X500Name
11-15 13:40:55.565 W/ClassPathPackageInfoSource(25066): java.lang.ClassNotFoundException: org.bouncycastle.asn1.x500.X500Name

On devices with Android 4.x installed, I don't get the exception and the tests pass.
If I change the org.bouncycastle:bcprov-jdk15on dependency on mockwebserver to provided, the tests pass on 2.3.x as well. I'm assuming that the bundled version of bouncy castle on older devices is simply incompatible with the dependency. Does this sound like a reasonable fix for this problem? If so, I'll make a pull request.

No longer relevant, given dependency structure and support android versions


Encrypting using private key in Hybrid Encryption

I am trying to encrypt plain text using a private key, via Hybrid encryption.
It doesn't allow me to do it, and gives an error  invalid HybridEncrypt key material.
Doesn't tink support encryption using the private key? And i am assuming, I won't be able to decrypt using a public key as well. 🤔
Any leads on how i can do this?

Please reopen if you have any further questions.


REDMINE-16290

Coverage remained the same at 99.291% when pulling be98c20c71c0e67adbd970ef664d774ee5c9cdae on tf:load-less-images into b7af1ee77d0d7070b102f77c875764b478708db6 on codevise:master.


Create documentation for unarchiving-repositories

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/repositories/archiving-a-github-repository/archiving-repositories
What part(s) of the article would you like to see updated?

Create a page explaining how to unarchive a repository
Edit the archiving page to link to it in manner similar to how the deleting a repository page links to restoring a deleted repository.

Additional information
Noted as missing here:
https://github.community/t/is-it-possible-to-unarchive-repository-one-it-is-archived/257681

Has this issue been solved or do i still need to contribute

No. In theory you could try to write a PR offering such content.
I tend not to make PRs for things until I get an indication from GitHub staff that they'll accept it. (But, that's a personal choice wrt managing my resources.)

It's okay now but you can still help by cording easy and quick understanding

@jsoref Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

Thanks for opening an issue @jsoref! I've looked at this one with the team and we think it makes the most sense to just add a new section below "Archiving a repository" called "Unarchiving a repository." Several of the steps can just be reusables from the Archiving section.
You or anyone else is welcome to open a PR with this update!


qube github support update

adapt gh support from qube

Also fix load_yaml
    path = Path(yaml_file_path)
    yaml = YAML()
    yaml.boolean_representation = ['False', 'True']
    return yaml.load(path)


Add Jieba to Strings

Add Jieba to Strings, "Jieba" (Chinese for "to stutter”) is a Chinese
text segmentation library for natural language processing.

Chinese segmentation is not as easy as other language, for example, sentence “When approaching” we can just use space to cut the sentence to words [When, approaching], but “When approaching” in Chinese “即將來臨時” we can't apply any easy way to cut sentence to meaningful words. Jieba can cut “即將來臨時” to meaningful words like [即將, 來臨, 時] or [即, 將來, 臨時].
Chinese segmentation is the foundations of Chinese natural language processing. So, I think we can add this library to awesome-php.
By the way, this library is a PHP port of Python's jieba.

While I understand that the project is for working with the Chinese language; having the README entirely in Chinese makes it un-interesting to add to this list as the vast majority of people will not understand it.
I am closing this for now, but please re-submit once you have a minimal english description on the project's README as it looks promising and gained some popularity already (I don't understand Chinese, so just looked at stars).

@jadb I do have English document, just scroll down to see the doc. jieba-python is in awesome python, and it's important for Chinese natural language processing, I think PHP should have one like this.
PHP is weak in machine learning, but many people still want to make PHP better in machine learning, jieba-php can use in Chinese natural language processing for machine learning. I hope jieba-php can put in this list, so that someone need it, they can find it.

Can you rebase this? I'd actually like to pull it in. Also please ensure it is in the right place alphabetically.

@josegonzalez I just rebase the repo~ Please review my pull request, thanks!


refine bridge model str method

Coverage increased (+0.09%) to 86.352% when pulling 5b2b0f7ad9d6ca10493e0c0268c6d152e3d4a985 on fang/bridge-upd into cba4c036af6b69001c7668e6792c22a3dcb6d1e9 on develop.


Y24-298 - [BUG] Exception An ActionController::RespondToMismatchError occurred in search#create 27/08/24 @ 11:01

Describe the bug
There is a repeated exception for Limber (prod):
An ActionController::RespondToMismatchError occurred in search#create:

  respond_to was called multiple times and matched with conflicting formats in this action. Please note that you may only call respond_to and match on a single format per action.
  app/controllers/search_controller.rb:46:in `rescue in create'

Acceptance Criteria

[ ] Identify the root cause
[ ] Finding and applying a solution
[ ] Document progress + summary in the issue comments

Additional context
URL: https://limber.psd.sanger.ac.uk/search
HTTP Method: POST
Parameters: {"plate_barcode"=>"SQPP-63431-L", "controller"=>"search", "action"=>"create"}

Could be fixed but we don't know?


test: ignore 3703

Flaky polygon RPCs, even in alchemy: https://github.com/foundry-rs/foundry/actions/runs/10837501747/job/30073602758

Failed to send/recv storage err=failed to get storage for 0x7aB0b2835f71ad2a31056007F651C897E5EE148A at 43: server returned an error response: error code -32000: execution aborted (timeout = 10s) address=0x7aB0b2835f71ad2a31056007F651C897E5EE148A index=43

Playgon


move declarations to separate file

https://github.com/foundpatterns/torchbear/blob/fdb47a2150261c1869b39e364a90ac60d70f6d3f/src/lib.rs#L2-L48
would it be possible to move extern crate declarations to declarations.rs or better?  we should be able to Split a module across several files
, right?

For now they can stay as is since moving them wont really solve anything and would likely break stuff. I do plan on moving torchbear to 2018 edition which would allow us to remove extern crate for the majority of them, though there is really no gain or loss from switching

I'd still like to split lib.rs into organized submodules


The use of .text as a test of message type is wrong

hey Jesse et al.. a simple thought: given we have .isMediaMessage, checking inbound messages against .text is wrong. That field can easily be used for notifications, captions etc for any media message. As is, out-of-the-current-box, if we pass a caption/notif via .text, the msg renders as a text message.
just a minor fyi ;)

Ahh.. interesting use (abuse? :smile:) of those APIs.
This wasn't how I intended those methods to be used — that is, you implement either text or media.
In any case, for these situations I would implement your own custom object that implements the JSQMessageData protocol. That way, you can override isMediaMessage appropriately, the configure your cells how you want.

A simple change to the isMediaMessage to test against a nil media item would allow us to use the existing property without changes to the existing model.
One person's mis-use is another's use ;)

Haha, touche.
Actually... I'm looking through the code now. Where do we check text against nil?
JSQMessage is initialized with a readonly BOOL. :confused:

Ah, it was an assumption since I passed a media message through with .text set and it simply appeared as a text message through the repo code.
I remembered peeking at the Bool set weeks ago and figured it had to check against the existence, not nil, for text for this setting.

Oh I see. The initializers for JSQMessage restrict the behavior to what I described above.
Internally, the library only uses isMediaMessage to determine the type. So it sounds like what you really need is access to the full designated initializer:
- (instancetype)initWithSenderId:(NSString *)senderId
               senderDisplayName:(NSString *)senderDisplayName
                            date:(NSDate *)date
                         isMedia:(BOOL)isMedia
                           media:(id<JSQMessageMediaData>)media
                            text:(NSString *)text

However... this is a bit awkward (and breaks some rules that I'm trying to enforce), thus the current set of public initializers. I'll think about this a bit more.
In the mean time, I think a custom <JSQMessageData> object with an initializer similar to the above will do what you need.

thanks dude.. i'll drop this in. I seem to enjoy breaking things ;) but this will lead more easily to a captioned media message at my end.


Files with names matching "nix-shell*" with shebangs exhibit unexpected behaviour

For example, none of the examples of nix-shell shebangs usage from the nixpkgs manual work as expected if put in a file matching nix-shell* (usually with error: undefined variable ...)
The problems disappear after the name is changed to any other.
$ nixos-version
19.03pre167858.f2a1a4e93be (Koi)
$ nix --version
nix (Nix) 2.2

can't repro


IP_VS_NFCT not enabled in latest docker image. Causes docker swarm issues?

The kernel tools x86_64/4.8.14-docker enables IP_VS_NFCT. The x86_64/4.10.8-docker version does not enable the IP_VS_NFCT kernel module.
When I for example run nginx as a docker swarm service on a scaleway docker server and expose port 80 with --publish 80:80 it should be available on http://localhost on the server, but is not. Running nginx as a normal container and publishing the port works as expected.
I think the missing IP_VS_NFCT module might be what is causing my issues when running docker services in swarm mode. The docker engine logs among other things:
Apr 14 20:39:40 <hostname> docker[15787]: time="2017-04-14T20:39:40Z" level=error msg="Failed to write to /proc/sys/net/ipv4/vs/conntrack: open /proc/sys/net/ipv4/vs/conntrack: nno such file or directory"
Apr 14 20:39:40 <hostname> docker[15787]: time="2017-04-14T20:39:40.154260407Z" level=error msg="Failed to add firewall mark rule in sbox ingress (ingress): reexec failed: exit status 8"
Apr 14 20:41:17 <hostname> docker[15787]: time="2017-04-14T20:41:17.432619182Z" level=error msg="Failed to delete real server <IP_ADDRESS> for vip <IP_ADDRESS> fwmark 259 in sbox ingress (ingress): no such process"
Apr 14 20:41:17 <hostname> docker[15787]: time="2017-04-14T20:41:17.432762944Z" level=error msg="Failed to delete service for vip <IP_ADDRESS> fwmark 259 in sbox ingress (ingress): no such process"

$ uname -r
4.10.8-docker-1

$ ./check-config.sh
info: reading kernel config from /proc/config.gz ...

Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
    (cgroup swap accounting is currently enabled)
- CONFIG_LEGACY_VSYSCALL_EMULATE: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled (as module)
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled
- CONFIG_IP_VS_NFCT: missing
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: enabled (as module)
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled
      - CONFIG_CRYPTO_GCM: enabled (as module)
      - CONFIG_CRYPTO_SEQIV: enabled
      - CONFIG_CRYPTO_GHASH: enabled (as module)
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled (as module)
      - CONFIG_XFRM_ALGO: enabled
      - CONFIG_INET_ESP: enabled (as module)
      - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
  - "ipvlan":
    - CONFIG_IPVLAN: enabled (as module)
  - "macvlan":
    - CONFIG_MACVLAN: enabled (as module)
    - CONFIG_DUMMY: enabled (as module)
  - "ftp,tftp client in container":
    - CONFIG_NF_NAT_FTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_FTP: enabled (as module)
    - CONFIG_NF_NAT_TFTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
- Storage Drivers:
  - "aufs":
    - CONFIG_AUFS_FS: enabled (as module)
  - "btrfs":
    - CONFIG_BTRFS_FS: enabled (as module)
    - CONFIG_BTRFS_FS_POSIX_ACL: enabled
  - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled (as module)
    - CONFIG_DM_THIN_PROVISIONING: enabled (as module)
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled (as module)
  - "zfs":
    - /dev/zfs: missing
    - zfs command: missing
    - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

I believe I have this problem too. Is there any way to override the version when we create a new server?
Situation right now is that I cannot create any new servers that can publish ports from docker swarm.

Same issue with Scaleway kernel 4.10.8-docker-1, i change docker version from 17.05.0-ce to 17.03.0-ce, but it is not helps. Swarm not accessible from outside, or even from host.
same errors:
level=error msg="Failed to write to /proc/sys/net/ipv4/vs/conntrack:

Same for me, waiting for new bootscript, please add new bootscript!

Same issue for me. Kernel 4.8.x was working before.

Please, return old kernel - 4.8.14-docker-2 as a choice, if you can't add new one, it is critical.

Same thing.

+1

:+1:

Please add the NFCT option! Docker Swarm will not run without it!

👍  I'm waiting also this fix :)

I am trying to use docker swarm and It looks I can not get IPVS works fine ....
docker.log has:
level=warning msg="Running modprobe ip_vs failed with message: **modprobe: module ip_vs not found** in modules.dep, error: exit status 1"
level=error msg="Failed to write to /proc/sys/net/ipv4/vs/conntrack: open /proc/sys/net/ipv4/vs/conntrack
I am using:
bootscript: x86_64 4.10.8 docker #1 ( is this the one I should be use ?)
OS Alpine 3.6.1
Where is the problem if IP_VS_NFCT is enabled  ?
It is possible to have docker swarm and running with your baremetal servers ?
Should I use Private IPs o Public IPs for the swarm cluster ?
Considering that private IPs could be reassigned at boot time

The x86_64 4.4.70 std #1 bootscript which address another issue should run Docker fine and has this options enabled. I tried to merge most of the -docker and -apparmor kernels into the -std one.

Many thanks for your answer ... I almost give up !!!
swarm finally works.  I still do not know if it is better to use prive or public IPs for the nodes and swarm but both seems to work from outside and ip_vs module is loaded.
It will be nice to know what is different in each bootscript ... or at least what are your criteria to setup that options.
Thanks for your answer and work

@tbillon The bootscript you mention is not available in AMS1.
Any fix for AMS servers? Thanks.

I think it is but unfortunately it's only available for x86.

In my case, I need this for when I use the docker-machine driver. Is it possible to adjust which bootscript is used there?

Just lost 2 hours trying to find why docker swarm wasn't publishing my ports to the outside :)
Worked with x86_64 4.4.70 std #1 bootscript

@tbillon The bootscript "x86_64 4.4.70 std #1" you mentioned seems to be not available anymore. Is there any bootscript currently available that supports docker swarm?

The 4.11 mainline kernel works for me
On Thu, 31 Aug 2017, 9:15 PM Max Trense<EMAIL_ADDRESS>wrote:

@tbillon https://github.com/tbillon The bootscript "x86_64 4.4.70 std #1
https://github.com/scaleway/kernel-tools/issues/1" you mentioned seems
to be not available anymore. Is there any bootscript currently available
that supports docker swarm?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/scaleway/kernel-tools/issues/343#issuecomment-326238827,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJN8111CFEfscBOfK0ikAb7oROs0dXFks5sdnnBgaJpZM4M-Gwf
.

I've just tested x86_64 mainline 4.11.12 rev1 on two VC1S instances.
A docker service create -p 9090:80 --replicas 2 --name test1 nginx:alpine creates the specified service but the networking between swarms loadbalancer and the service does not work.
The required module ip_vs_nfct is also not available for that kernel.
@insertjokehere How did you get swarm to work?

Try one of the current 4.4 or 4.9 bootscript. Both have CONFIG_IP_VS_NFCT enable.

This also holds for the latest mainline scripts (I use x86_64 mainline 4.13.5 rev1)

4.10.8 docker doesn't work. Why closed?

x86_64 mainline 4.9.64 rev1 works. It seems finally I can run my server on Scaleway.

Latest bootscripts got it disabled again :(

No, it's still here. Look into the /proc/config.gz file.
# uname -a
Linux git 4.9.64-mainline-rev1 #1 SMP Tue Nov 21 10:00:26 UTC 2017 x86_64 GNU/Linux

# zcat /proc/config.gz | grep -i nfct
CONFIG_IP_VS_NFCT=y

The mainline kernel works as expected.

as of june 2018 in ubuntu 16.04, default config, only choosing the server range (in amsterdam by the way), docker swarm does not work, to make it work you have to change the bootscript, for me "x86_64 mainline 4.9.93 rev1" worked, but to be able to change the bootscript you have to disable enable boot mode under advanced, after disabling it and creating the server, bootscript will now show, and you can change it


defaultSort prop on Table.ColumnHeader

It would be nice for Table.ColumnHeader to accept a defaultSort prop. In some cases we want a particular column to sort descending when clicked when it is not currently sorted. For example, we have an "Expert Users" column that we'd rather have sort descending when clicked the first time since admins are normally looking for the skill with the most experts (in this case).

Triage: Edward will contact Ben. Seems like props today will work for a "default sort" case. Need to get more details on the use case.
Docs:
https://design-system.pluralsight.com/components/table#sorting

Met with Ben and learned about his use case. I now understand his ask. Right now he is doing this https://design-system.pluralsight.com/components/table#sorting. It is possible we could make a hook that makes doing this easier that can be used in a manner similar to the Drawer RC or the new radio api. However, I don't think adding a new prop is a wise idea. Seems like prop creep. Adding topic to our retro.


Upgrade citrus integration test framework to latest version

Problem description
Upgrade citrus integration test framework to latest version
Feature request
Upgrade citrus integration test framework to latest version

Fixed #449


Add remark to Error in transaction response

@EMcG0402429 Almost forgot. Thanks and congrats on your first pull request for arangodb-net-standard 🥳

Opened #336


Adding 2 new operator classes.

It adds the operator classes "cocoercive strongly monotone" and "negatively comonotone".
It also fixes some minor typos here and there.
About the negative comonotonicity. It has been added for readability but is exactly the same as strong monotonicity with a negative parameter. Is it really useful?

Codecov Report
Patch coverage: 36.84% and project coverage change: -0.42% :warning:

Comparison is base (6b1a6c3) 89.72% compared to head (3ec98ec) 89.31%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   89.72%   89.31%   -0.42%
==========================================
  Files         151      153       +2
  Lines        5012     5043      +31
==========================================
+ Hits         4497     4504       +7
- Misses        515      539      +24

Files Changed
Coverage Δ

PEPit/functions/smooth_convex_function.py
85.71% <ø> (ø)

PEPit/primitive_steps/epsilon_subgradient_step.py
100.00% <ø> (ø)

PEPit/primitive_steps/exact_linesearch_step.py
100.00% <ø> (ø)

PEPit/primitive_steps/inexact_gradient_step.py
90.90% <ø> (ø)

PEPit/primitive_steps/linear_optimization_step.py
100.00% <ø> (ø)

PEPit/operators/cocoercive_strongly_monotone.py
26.31% <26.31%> (ø)

PEPit/operators/negatively_comonotone.py
33.33% <33.33%> (ø)

...onstrained_convex_minimization/gradient_descent.py
79.16% <100.00%> (ø)

PEPit/operators/__init__.py
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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


Added fixed_compute_cost tests to ContainerProjectChargeback

Added tests for the 'fixed compute cost' field in container projects chargeback.
for a project, its the fixed compute rate * number of hourly metrics each pod in that project has.

@miq-bot add_label chargeback, tests
@gtanzillo @sergio-ocon Please review

cc @simon3z

@yaacov @moolitayer please review.
@gtanzillo @sergio-ocon have you had time to look at this?

LGTM

@lpichler @yaacov I Changed code according to your comments

@delaluzparra Comments?

LGTM :+1:
@miq-bot assign chessbyte

👍  LGTM


Infinitely retry in intra-VC scheduler due to inconsistent view of bad cells.

If bad cells are not bound to VCs, it is possible that intra-VC scheduler keeps schedule a job to bad cells, which cannot find the same healthy cell in the physical cluster. When the intra-VC scheduler is aware of the bad cells, it will avoid placing a job on the bad cells.
Example:
A physical cluster of two L2 cells, each of which can be split to two L1 cells. There is only one VC with two L2 cells.
Each of the physical L2 cell has one bad GPU (L1 cell).
If the intra-VC scheduler is unware of the bad GPUs, it can place two 1-GPU requests using a L2 cell, following a packing policy.
However, there is no healthy L2 cell in the physical cluster. Buddy allocation returns a allocation failure. Due to the intra-VC scheduler cannot see bad cells in its VC, it may infinitely retry the same placement (two 1-GPU in a L2 cell).
It is necessary to pre-bind the bad cells to VCs that expose the bad GPUs to intra-VC schedulers.

fixed in this PR: https://github.com/microsoft/hivedscheduler/pull/17


Update links to new 2016 sites

@blongden if you've got time. :smiley: If not, toss it back. :wink:

Tnx! :cake:


Request: Show discard price.

Would it be possible to show discard prices on the transfer market?

That should be possible without too much hassle. Will keep it in mind for a future release.

Is this still a thing? If yes, how should it be integrated into the UI?

There isn't a lot of room to put this data. Since the use cases for this are so little, I would deem this issue to be not very important in my opinion.


Ensure that UIGraphicsEndImageContext is called.

🚀
Fix an issue where the init(color:size:) method had some guard else { return ... }s that could put the graphics context in an open state. UIGraphicsBeginImageContextWithOptions was called with no UIGraphicsEndImageContext to close it.
Checklist

[x] I checked the Contributing Guidelines before creating this request.
[x] New extensions are written in Swift 4.
[x] New extensions support iOS 8.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+.
[x] I have added tests for new extensions, and they passed.
[x] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[x] All extensions are declared as public.
[x] I have added a changelog entry describing my changes.

          1 Warning

:warning:
Consider adding tests for new extensions or updating existing tests for a modified SwifterSwift extension

          4 Messages

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

:book:
Executed 477 tests, with 0 failures (0 unexpected) in 3.034 (3.509) seconds

:book:
Executed 444 tests, with 0 failures (0 unexpected) in 1.702 (2.069) seconds

:book:
Executed 329 tests, with 0 failures (0 unexpected) in 1.271 (1.477) seconds

  Generated by :no_entry_sign: Danger


PHPLIB-606: Move CI checks from travis-ci to GitHub Actions

PHPLIB-606
Creating this PR against the current stable branch so we can take advantage of these checks already (evergreen currently only tests the master branch).
The change in DocumentationExamplesTest.php were necessary as drivers-evergreen-tools starts a sharded cluster backed by a single-member replica set. I'll take a look at either changing the orchestration file to start a three-member replica set or alternatively add support for defining a custom orchestration file.

Note: GitHub does not seem to pick up on the files until they've been merged. Build results are available by checking the last commit in my repository: https://github.com/alcaeus/mongo-php-library/commit/3f9c717540bcd14d47e9b227a7bc13aeb380357f.

Note: GitHub does not seem to pick up on the files until they've been merged. Build results are available by checking the last commit in my repository: https://github.com/alcaeus/mongo-php-library/commit/3f9c717540bcd14d47e9b227a7bc13aeb380357f.

One more note: I haven't explored how we can test against upcoming driver versions (which requires compiling the extension ourselves rather than installing it via the setup-php action). This will most likely become relevant at some point in the future when we start working on features that require bumping to a development driver version.

One more note: I haven't explored how we can test against upcoming driver versions (which requires compiling the extension ourselves rather than installing it via the setup-php action). This will most likely become relevant at some point in the future when we start working on features that require bumping to a development driver version.

One more note: I haven't explored how we can test against upcoming driver versions (which requires compiling the extension ourselves rather than installing it via the setup-php action).

Would something like .travis/install-extension.sh not port over nicely to GitHub Actions? I think it's reasonable to make that follow-up work, although it shouldn't be urgent since such upcoming features would likely be developed internally and our PRs would be able to target Evergreen. Perhaps it'd be problematic if that meant GH Action builds would perpetually fail, though?

One more note: I haven't explored how we can test against upcoming driver versions (which requires compiling the extension ourselves rather than installing it via the setup-php action).

Would something like .travis/install-extension.sh not port over nicely to GitHub Actions? I think it's reasonable to make that follow-up work, although it shouldn't be urgent since such upcoming features would likely be developed internally and our PRs would be able to target Evergreen. Perhaps it'd be problematic if that meant GH Action builds would perpetually fail, though?

Would something like .travis/install-extension.sh not port over nicely to GitHub Actions?

Potentially - although I don't want to use this all the time as the cache layer speeds up builds when the selected PHP version has already been installed.

I think it's reasonable to make that follow-up work [...] Perhaps it'd be problematic if that meant GH Action builds would perpetually fail, though?

That's correct: it's follow-up work, but once we get PHPC-1684 done this will be required to keep the build stable. Either way, nothing to worry about for the time being.

Would something like .travis/install-extension.sh not port over nicely to GitHub Actions?

Potentially - although I don't want to use this all the time as the cache layer speeds up builds when the selected PHP version has already been installed.

I think it's reasonable to make that follow-up work [...] Perhaps it'd be problematic if that meant GH Action builds would perpetually fail, though?

That's correct: it's follow-up work, but once we get PHPC-1684 done this will be required to keep the build stable. Either way, nothing to worry about for the time being.


Better Packaging

:tada: This PR is included in version 3.7.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Redis: provide a generic interface, import redigo optionally from main

issue #94
A new interface has been created for Redis (redis_generic.go) complete with a mock implementation.
A driver is in a different package, in backends/storage/redigo/driver.go
This driver is enabled from serve.go found in the cmd/guerrillad dir, similar to the way the mysql driver is enabled

Hi, what's the timeline for this being merged?
I was about to submit a change to update the redigo import path to fix internal/ package import issues from another package which has the same dependency but is updated to use the new path.
This change will fix this :-)


Select2 triggers unselect event but does not unselect the option

Prerequisites

[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[x] The issue still exists against the latest master branch of Select2
[x] This is not a usage question (Those should be directed to the community)
[x] I have attempted to find the simplest possible steps to reproduce the issue
[ ] I have included a failing test as a pull request (Optional)

Steps to reproduce the issue
See this js fiddle for an example of the issue and simpler steps to reproduce
https://jsfiddle.net/xvL14mzv/

Create a select2 that loads data from a ajax datasource and in a process results function return back a js object with id and text properties that are different.
In your select find an option to select and select it
Find that option again in the select.  It should be shown as selected and use your mouse to click that option again.  This will trigger an unselect event which is expected but the option will not be unselected.

Expected behavior and actual behavior
See
https://jsfiddle.net/xvL14mzv/
When I follow those steps, I see...
Option is not removed from the select but an unselect event is triggered
I was expecting...
Option to be removed from the select.  This happens when the id and text properties are the same
Environment
Browsers

[x] Google Chrome
[x] Mozilla Firefox
[ ] Internet Explorer

Operating System

[x] Windows
[ ] Mac OS X
[ ] Linux
[ ] Mobile

Libraries

jQuery version: Edge
Select2 version: 4.0.3

Isolating the problem

[ ] This bug happens on the examples page
[x] The bug happens consistently across all tested browsers
[x] This bug happens when using Select2 without other plugins
[x] I can reproduce this bug in a jsbin (used js fiddle: https://jsfiddle.net/xvL14mzv/)

This does not seem to be the same issue as described in #5049, and is not fixed as of 4.0.6-rc.1.

So this was confirmed as a bug over three months ago. Almost never will you have your id and your text be the same thing yet this only works with an ajax data source if this is the case, making it unusable with the ajax option. Is there a fix incoming "soonish" for this?

 It states that the value needs to be a string so its best to send in string id's. Taking this into mind I typecast my id to a string in my API and this issue went away. For those of you that have access / control of their API's this is a fix. For the rest of you maybe try mapping the data element so it does better typecasting of id (not my forte). With 400+ issues and counting I don't see a fix coming any time soon.
Also, I tried to look into the code to find out WHY me sending in strings vs ints would be such a big deal since int's usually convert to string rather well and I couldn't find anything. If someone else is more familiar with the code you may be able to use this as a starting point at least.


API

Hi, i just switched from NPM to NPMplus and evrything seems to be working fine with my proxies but i can't get the api with the Homepage Dashboard (https://gethomepage.dev/latest/widgets/services/nginx-proxy-manager/ ) to work. Is there something else i have to change?

do you use https?

Yes, i tried it with both.

I'm seeing this in the NPMplus logs:

Can you try to resign in in homepage?

Ok it's fixed, i just deleted the widget, restarted Homepage and added it again. 👍


How to Generated Trimap for an input image ?

I want to get an trimap of the input image, so that I can get foreground image using this two things (input image & corresponding trimap). Actually I want to build an PoC (Proof of Concept) which takes any image and generates its foreground image.

Maybe you could refer to this issue.

@minkvirparia Did you solve the problem? I have the same question - how's possible to generate trimap programmatically and not manually?

If you mean generate from alpha mattes for training or generate from a segmentation map like MatAny, it is possible. However, if you mean automatic object detection, I'm afraid not.
For this purpose, you may refer to the keywords 'human matting'. Here is some great work: RVM(human video matting), SIM(semantic image matting), MODNet(realtime human matting).

@LukaGiorgadze In ViTMatte, we generate in this way: https://github.com/hustvl/ViTMatte/blob/c2605975063bacd49852b9709cc1e0ebe58e4972/data/dim_dataset.py#L509

@LukaGiorgadze In ViTMatte, we generate in this way:
https://github.com/hustvl/ViTMatte/blob/c2605975063bacd49852b9709cc1e0ebe58e4972/data/dim_dataset.py#L509

Thank you @JingfengYao! This is helpful!
I love your work, it's absolutely amazing!
btw I suggest you add a sponsor button so people can sponsor with some bucks 💸

@LukaGiorgadze Thanks 😄


cannot import name secret_key from scripts.tool

Error loading script: api.py
Traceback (most recent call last):
  File "/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing/scripts/api.py", line 5, in <module>
    from scripts.tool import (
ImportError: cannot import name 'secret_key' from 'scripts.tool' (/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing/scripts/tool.py)

and my stablediffusion was dysfunctional on runpod, also my local (on CPU) became dysfunctional after updates (three; this extension was one that got updated, yesterday local did work). Disabling this extension made stable-diffusion_webui work again.
Not 100% what causes the import of secret_key to fail. Maybe it should be assigned "" if environment lookup returns None?

I have tested on my Win10 PC, MacBook Pro, WSL, Colab, and several cloud platforms, but I couldn't reproduce this issue. You can check if you've made any changes to the code.
You can execute the following command in the root directory of this extension to reset to the latest commit and then try restarting the SD-WebUI:
git reset --hard 6174b58e84d89e4dbf81fd12b1a2d9641c1b46a5

Although I'm a Python newbie, I don't think ImportError is caused by None.

I didn't have local changes. Today I did another update of my extensions, and now the issue seems resolved. Not sure what the issue was, but I'll close it as no longer reproducible. It may be just a bleeding edge issue? Thanks anyway, for your attention.


Schema Registry error codes

This PR adds the type ErrorCode and constants for known error codes taken from https://docs.confluent.io/platform/current/schema-registry/develop/api.html.

I might take this and change it into
type Error struct {
    Code int
    Message string
}

func (e *Error) Error() string { return fmt.Sprintf("%v: %s", e.Code, e.Message) }

and then have a bunch of
ErrXyz = &Error{...}

for all of these errors, similar to the kerr package. What do you think?

Sure, error comparisons would definitely be nicer then. The only drawback I see is that messages would be hardcoded in advance and not updated if the server starts responding with a different message. Although that can be seen as a feature 🙃
I can adjust the code to use that structure, it should stay in the same package though, right?

I changed the code to use an Error type, it's not done yet, the error messages need to be filled in. I left ResponseError as a wrapper around Error so that additional info is printed when formatting it with "%+v". It also has the Unwrap method so that the actual error can be compared using errors.Is.
The only issue I see with this approach is that we lose the dynamic message returned by the server. For example, the server actually responds with the message Schema 123 not found, but since we convert it into a hardcoded error object it would probably read something like Schema not found instead.
Let me know if this was what you had in mind.

I think you have a point here. I'll try to take a look more tomorrow, busy today and probably tomorrow to actually.

Whoops, I renamed the branch in my fork and it closed the PR, sorry about that. But now that I think about it, I will leave it closed as this is more of a "nice to have", I'd rather focus on the other two schema registry related PRs for the time being.

For posterity, just in case:
40401 -- subject not found
40402 -- version not found
40403 -- schema not found

409 -- incompatible schema

42201 -- invalid schema or schema type
42202 -- invalid version
42203 -- invalid compatibility
42204 -- invalid mode
42205 -- operation not permitted

50001 -- failure in backend data store
50003 -- failure forwarding the request to the primary
50004 -- unknown leader


Support for extensions to dynamically change the interpretation of code

Howdy'
First of all, thanks for taking the time to do this! I am currently a Roblox LSP user, as are most of the teams I've had the privilege to work with. I've developed an open-source tool called Overture, which allows us to require a ModuleScript by its name, instead of by path.
This tool allows us better organize our codebase, and while maintaining autocomplete, typechecking, and inline documentation capabilities that only require(Path) can usually provide. It has become essential to our workflow. I'd like to make this compatible with Luau LSP, which I find more reliable, but I've been unable to do so.
Roblox LSP has a feature, which allows users to run their own Lua-based plugin that can change the code before the language server interprets it. We piggyback on this feature and basically change references to library names:
local Maid = Overture:LoadLibrary("Maid")

...gets, opaquely to the user, changed to
local Maid = require(game.Path.To.Module.Maid)

I have been unable to find the ability to achieve this with Luau LSP. Is there a venue I am missing? Would this be a capability that you're willing to add?

require a ModuleScript by its name, instead of by path

This feature is already supported. See luau-lsp.require.fileAliases and luau-lsp.require.directoryAliases in settings.
How it looks (in my codebase):

There's no plugin support right now, which is heartbreaking - to put it lightly.
This is by far the starkest contrast between Luau LSP and Roblox LSP.

Unfortunately, that feature makes the assumption that we are using or overriding require, which we are not. Even if we did change that, it would not support more complex patterns, like retrieving a single function in a module by name:
local GetCentroid, GetAABB = Overture:LoadLibrary("ModelUtilities", {"GetCentroid", "GetAABB"})

Indeed. The current reality is Luau LSP is exceedingly rigid. In other words, it does not support your workflow.
When I first made the switch from Roblox LSP -> Luau LSP, boy lemme tell ya.


Config values aren't persisted

When I try to save the config stuff it's not saved. Where should the values be written? There is no Workflow Data folder for this workflow

Can you try with the latest release? It handles the case when there's no Workflow Data folder for the workflow now.