Vogen 5.0.5 Moved MapVogenTypes() namespace

Describe the bug
Under Vogen 5.0.5, the VogenSwashbuckleExtensions is located in a namespace that matches the project name, instead of the RootNamespace from the .csproj.
Steps to reproduce

Create a project
Change the <RootNamespace /> in the csproj
Note the difference in the namespace the VogenSwashbuckleExtensions type is located in

Expected behaviour
VogenSwashbuckleExtensions should be located in the RootNamespace

Thanks for the report. I think the namespace never used to be emitted. I'm not sure what 'default' namespace is used if none is specified. So I'm not sure if this is a bug or just 'different'

I'm not sure what 'default' namespace is used if none is specified

This would end up being in the global:: namespace, which is the global namespace without any names. Perhaps it is just "different"; I didn't realize it was in the global namespace before. However, the change is meaningful, since my project has a name of Api and a root namespace of VsaTemplate.Api, which means that I have to add a using that is a) unexpected and b) non-standard.

I think you're right, it should use the default namespace specified in the project. I'll take a look at this shortly.

I'll revert this change. The driver for this generated code is from an assembly level attribute, so it makes sense to use the global namespace (i.e. don't wrap in a namespace).

since my project has a name of Api and a root namespace of VsaTemplate.Api, which means that I have to add a using that is a) unexpected and b) non-standard.

I'll revert this change. The driver for this generated code is from an assembly level attribute, so it makes sense to use the global namespace (i.e. don't wrap in a namespace).
Actually, no. I remember why I added this now. It was to prevent naming collisions when Swashbuckle extensions were included in two or more projects. The Consumers solution demonstrates this. It has a webapi project which references a shared project. Both of these projects are configured to generate a Swashbuckle extension method. Without namespaces, they'd both be in the global namespace, which causes difficulties. With namespaces, they can be used like this:
    WebApplication.VogenSwashbuckleExtensions.MapVogenTypes(opt);
    WebApplication.Shared.VogenSwashbuckleExtensions.MapVogenTypes(opt);

When both of the extension methods are generated in the default namespace, it's more difficult to access them, e.g. without the namespaces, and without qualifying each with a global using alias, the user sees errors such as this:
6>Program.cs(33,5): Error CS0436 : The type 'VogenSwashbuckleExtensions' in 'E:\git\Vogen\samples\WebApplication\obj\Debug\net8.0\Vogen\Vogen.ValueObjectGenerator\SwashbuckleSchemaExtensions_g.cs' conflicts with the imported type 'VogenSwashbuckleExtensions' in 'WebApplication.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'E:\git\Vogen\samples\WebApplication\obj\Debug\net8.0\Vogen\Vogen.ValueObjectGenerator\SwashbuckleSchemaExtensions_g.cs'.
6>Program.cs(34,5): Error CS0436 : The type 'VogenSwashbuckleExtensions' in 'E:\git\Vogen\samples\WebApplication\obj\Debug\net8.0\Vogen\Vogen.ValueObjectGenerator\SwashbuckleSchemaExtensions_g.cs' conflicts with the imported type 'VogenSwashbuckleExtensions' in 'WebApplication.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'E:\git\Vogen\samples\WebApplication\obj\Debug\net8.0\Vogen\Vogen.ValueObjectGenerator\SwashbuckleSchemaExtensions_g.cs'.

I approached this in my IH and IA libraries by including the assembly name as part of the method name. In the case of IH, it's Add<Assembly>Handlers(), etc. This is a pattern I've seen with other libraries as well, such as AutoRegisterInject. This avoids the issue of namespace problems.

Thanks for the steer - I've followed that approach. They're now back in the global namespace, and the extension method names are suffixed with For[MyWebApp]. This will be in 5.0.6-beta.3
👍


Black hole units filled with air, wont accept items

Industrial Foregoing Version: 1.12.13
TeslaCoreLib Version: 1.12.2-1.0.15
Crashlog (If Any): no crashes with this problem.
Hi, I have the following problem: Im using black hole units as input/output for ores to be smelted, when i lock the unit to only be filled with an ore, the input box gets empty and next to it says "air" and wont accept more blocks until I unlock it again, then lock it up to only be filled with the ore i want and the problem comes back again and again, btw when this happen the black hole label shows nothing in it.

:wave: Sorry but Industrial Foregoing has ended support for version 1.12. I'm closing this issue as it will no longer be updated for that version. Thanks for playing with the mod.


Generate distribution specific Dockerfile

Signed-off-by: Sally O'Malley<EMAIL_ADDRESS>Docker-DCO-1.1-Signed-off-by: Regan McCooey<EMAIL_ADDRESS>(github: rhatdan)

when I rebased against master instead of fedora-1.7  I

created a new PR
added those tab space diffs again.

Ok lets submit this upstream, but you need to improve your description of the pull request. We also need to reference the previous pull and close it.

awesome, will do.

I think i finally found a working combination of packages needed to build with Fedora.

Ok does make test succeed?

'make test' works!  (A few tests fail but I think they are unrelated to these changes)

This has been sent upstream so closing.  @sallyom Is it working now?

@sallyom Could you send me a list of tests that are failing, and run a test without your patch to see if the tests all succeed.

I'll send that list this afternoon, as I'm heading to the 'Women in IT' lunch now, however Lokesh thinks those tests are failing with Docker and not because of my patch :)


Add attribute caching protocols and service changed

Attribute caching is an optimization that allows the client to discover the Attribute information such as Attribute Handles used by the server once and use the same Attribute information across reconnections without rediscovery.

Any reason for choosing 25 and skipping 24 ?

BLE_GAP_EVENT_CTE_CONN_IQ_SAMPLES is defined as 24 but it's not merged yet to NimBLE master branch.


s3 encryption

Policy below isn't obeying the "key-id" and taking the default key instead. Also once this works will it switch the key to the one provided in the policy should it mis-match?
policies:

name: s3-key-encryption
resource: s3
actions:

type: encrypt-keys
crypto: aws:kms
key-id: 486820a6-bafc-4cf9-aa0f-f837879075ba

looks like a bad comparison resulted in omission of SSEKmsKeyId in the copy request, plus the test around this wasn't extensive enough to verify the key id. i've fixed that in #959 and added support for re-keying if your specifying key-id. also note that for any significant volume of keys, i'd recommend looking at tools/c7n_salactus as it provides scale out s3 semantics.

@kapilt unless I'm missing something the re-key feature isn't working.  If there is an object not encrypted then it copied fine with my defined key however objects using the default key are not copied with the updated key.
thanks


Tried running the example, but I'm doing something wrong 😰

Slightly adapted the example to run by itself, unfortunately the test fails.
Adapted example:
import { setupRecorder } from "jest-nock-record";
import got from 'got';

const record = setupRecorder();
const getProfile = () => got("https://api.github.com/users/alextes", { json: true });

describe("#getUserAgent", () => {
  it("should retrieve user agent", async () => {
    // Start recording, specify fixture name
    const { completeRecording, assertScopesFinished } = await record("httpbin");

    // Run your function under test
    const result = await getProfile();

    // Complete the recording, allow for Nock to write fixtures
    completeRecording();
    // Optional; assert that all recorded fixtures have been called
    assertScopesFinished();

    // Perform your own assertionsAllow
    expect(result).toMatchSnapshot();
  });
});

 FAIL  ./index.test.js
  #getUserAgent
    ✕ should retrieve user agent (35ms)

  ● #getUserAgent › should retrieve user agent

    RequestError: Nock: Not allow net connect for "api.github.com:443/users/alextes"

      at ErroringClientRequest.req.once.err (node_modules/got/index.js:182:22)
      at ErroringClientRequest.<anonymous> (node_modules/nock/lib/intercept.js:231:10)

Perhaps side-issue, perhaps misunderstanding of nock. Another test that works perfectly fine by itself now fails too with the same error:
import got from 'got';

const getProfile = () => got("https://api.github.com/users/alextes", { json: true, timeout: 1000 });

test('get users', async () => {
  const { body } = await getProfile();
  expect(body).toMatchSnapshot();
})

Hmm, this issue appears related to a snapshot existing, and part of the system feeling a request should go through whilst another part is blocking the response.
After cleaning up the recordings it seems there's also an issue with got pushing bytes after a stream is closed which seems unrelated. Works when using isomorphic-fetch! e.g.
import { setupRecorder } from "jest-nock-record";
import got from 'got';
import fetch from 'isomorphic-fetch';

const record = setupRecorder();
const getProfile = () => fetch("https://api.github.com/users/alextes");

describe("#getUserAgent", () => {
  it("should retrieve user agent", async () => {
    // Start recording, specify fixture name
    const { completeRecording, assertScopesFinished } = await record("userProfile");

    // Run your function under test
    const result = await getProfile().then(res => res.json());

    // Complete the recording, allow for Nock to write fixtures
    completeRecording();
    // Optional; assert that all recorded fixtures have been called
    assertScopesFinished();

    // Perform your own assertionsAllow
    expect(result).toMatchSnapshot();
  });
});


Add interlinking

Create links inbetween different repos! If a reponame gets mentioned, throw a link in there. Do be careful with stuff like codeblocks.

Regex: ...reponame... should not match, but reponame should match

How far could this go? Can we detect a mention in a section, then copy or link that section from both ends?

Wontfix due to archival! See the new fork


Make coverage great (not again yet)

Implement full testing suite sometime soon:tm:.

Nah too lazy. Plus it's a discord bot you know...


Increased line spacing for body text and H2's

The default line-height is a bit small for comfortable reading, so I changed it to 130%.

I forgot to increase the line-spacing for the "next" links and others, so the extra line-spacing should also be added there also

130% example

Headers touch the line below, so I wouldn't recommend it. Also while for you it is too small, 130% is for me too much. Too much empty space, perhaps with 115% I wouldn't mind, its good as it is imo


Bug: Plugin needs pynvim installed in activated venv

Describe the bug
I tried to make it run and it does work now - however I had to install pynvim in the venv I am using for my projects - it is installed in my main environment but for some reason ultest does only consider my venv-interpreter. As I work with poetry, this would imply I needed to install the module in each project, which is a minor annoyance but I would like to know whether it's not possible to separate some of the calls that reference the editor functionality. I see in  https://github.com/rcarriga/vim-ultest/blob/45f2b2f6e35eeba25b348ea5d6420bf41b55a9d1/rplugin/python3/ultest/init.py#L65 for example that you import pynvim there, I assume that happens with the $VIRTUAL_ENV interpreter, which is called if you do these calls here:
https://github.com/rcarriga/vim-ultest/blob/b2b9caf1a30c70db62331e5b7b792876348c71e5/autoload/ultest/handler.vim#L35
This is not a "bug" per se but I'd say it's a desirable behaviour! :)
To Reproduce
Steps to reproduce the behavior:

Install vim-ultest with packer
install pynvim in system interpreter
create new venv, install pytest and activate it
configure pytest as test launcher in config file
launch nvim on file containing tests

Expected behavior
vim-ultest works if the currently activated venv is not using pynvim and sources the interpreter defined in g:python3_host_prog instead to prevent the (small) issue of installing pynvim into all projects.

I take it back. I defined vim.g.python3_host_prog = '/usr/bin/python' in .config/nvim/after/ftplugin/python.lua and that gets loaded too late apparently. All good now, great plugin :)


chore: update go version to 1.22

FYI:
https://tip.golang.org/doc/go1.22

go test -cover now prints coverage summaries for covered packages that do not have their own test files. Prior to Go 1.22 a go test -cover run for such a package would report
? mymod/mypack [no test files]
and now with Go 1.22, functions in the package are treated as uncovered:
mymod/mypack coverage: 0.0% of statements
Note that if a package contains no executable code at all, we can’t report a meaningful coverage percentage; for such packages the go tool will continue to report that there are no test files.

https://coveralls.io/builds/68905497


Update deps to be up to date with CRA 5

Fixes the build error encountered in create-react-app 5

Awesome! Thanks for this!


Port all existing out of the box Run extensions

Description of the new feature / enhancement
We should ship the same set of rich features that plugins in Run today currently provide -- we will need to migrate all of the existing out of the box plugins to the new system.
Scenario when this would be used?
NA
Supporting information
No response
tasks

[ ] #75
[ ] #76
[ ] #94

Thinking ahead -- Wox has a concept of logging... we may want to have some easy to leverage logging infrastructure.


Instruction Step Missing

The instructions for using the application is missing a step to run npm install -g  before running the ssg command. It would be helpful for those who have not used a node.js application before.

Added this to the 'instructions' section of README.MD.
Step 3 now reads: "Before running the tool, run the command npm install -g to install npm packages."


add meta tags for social link display

These meta tags conform to the standard for sharing data on social media sites.
Feel free to leave feedback with preferred text - I used my best judgement.

Thank you for the PR @elvece 🎆. LGTM 🚀


Admitted RayJobs remain in pending state when manageJobsWithoutQueueName is true

What happened:
When a RayJob managed by Kueue configured with manageJobsWithoutQueueName is admitted, it remains in pending state.
The Job that KubeRay creates to submit the actual job to the Ray cluster stays in suspended state.
What you expected to happen:
The RayJob should run successfully.
How to reproduce it (as minimally and precisely as possible):

Set manageJobsWithoutQueueName: true is Kueue configuration
Create a RayJob

Anything else we need to know?:
Relates to #1434.
Environment:

Kubernetes version (use kubectl version): v1.25.3
Kueue version (use git describe --tags --dirty --always): v0.6.0-devel-146-ged81667f-dirty

/remove-lifecycle stale

/remove-lifecycle rotten

The submitter Job, that runs "ray job submit" may not be accounted for. But a reasonable workaround is adding labels to map that submitter Job to a specific local queue

I've tested this on both main and v0.9.1 and I can confirm that this works now. For each version I've:

Deployed a kind cluster, kueue and the Ray operator
Modified the kueue CM and set manageJobsWithoutQueueName: true . Then I restarted the kueue controller pods
Applied the single clusterqueue setup from the examples
Deploy the RayJob from the example

And I can see that after deploying the rayjob
$> kubectl get rayjobs
NAME            JOB STATUS   DEPLOYMENT STATUS   RAY CLUSTER NAME                 START TIME             END TIME   AGE
rayjob-sample                Initializing        rayjob-sample-raycluster-jmmwb   2024-12-17T08:38:28Z              8s

The job is created and run
$> kubectl get jobs
NAME            STATUS    COMPLETIONS   DURATION   AGE
rayjob-sample   Running   0/1           3s         3s

$> kubectl describe job rayjob-sample
Name:             rayjob-sample
Namespace:        default
Selector:         batch.kubernetes.io/controller-uid=cc396c82-06b5-48a5-8de7-ea093d003eeb
Labels:           app.kubernetes.io/created-by=kuberay-operator
                  ray.io/originated-from-cr-name=rayjob-sample
                  ray.io/originated-from-crd=RayJob
Annotations:      <none>
Controlled By:    RayJob/rayjob-sample
Parallelism:      1
Completions:      1
Completion Mode:  NonIndexed
Suspend:          false
Backoff Limit:    2
Start Time:       Tue, 17 Dec 2024 09:38:58 +0100
Pods Statuses:    0 Active (0 Ready) / 0 Succeeded / 2 Failed
Pod Template:
  Labels:  batch.kubernetes.io/controller-uid=cc396c82-06b5-48a5-8de7-ea093d003eeb
           batch.kubernetes.io/job-name=rayjob-sample
           controller-uid=cc396c82-06b5-48a5-8de7-ea093d003eeb
           job-name=rayjob-sample
  Containers:
   ray-job-submitter:
    Image:      rayproject/ray:2.9.0
    Port:       <none>
    Host Port:  <none>
    Command:
      ray
      job
      submit
      --address
      http://rayjob-sample-raycluster-jmmwb-head-svc.default.svc.cluster.local:8265
      --runtime-env-json
      {"env_vars":{"counter_name":"test_counter"},"pip":["requests==2.26.0","pendulum==2.1.2"]}
      --submission-id
      rayjob-sample-q9jht
      --
      python
      /home/ray/samples/sample_code.py
    Limits:
      cpu:     1
      memory:  1Gi
    Requests:
      cpu:     500m
      memory:  200Mi
    Environment:
      PYTHONUNBUFFERED:       1
      RAY_DASHBOARD_ADDRESS:  rayjob-sample-raycluster-jmmwb-head-svc.default.svc.cluster.local:8265
      RAY_JOB_SUBMISSION_ID:  rayjob-sample-q9jht
    Mounts:                   <none>
  Volumes:                    <none>
  Node-Selectors:             <none>
  Tolerations:                <none>
Events:
  Type    Reason            Age   From            Message
  ----    ------            ----  ----            -------
  Normal  SuccessfulCreate  21s   job-controller  Created pod: rayjob-sample-th89s
  Normal  SuccessfulCreate  8s    job-controller  Created pod: rayjob-sample-fg7zv

sgtm, thank you for testing @kaisoz .
/close


Stuck on connectBluetoothReader

Describe the bug
i am using Android 10, physical device is discover but when i try to hit the connectBluetoothReader method, that method is not return the success or any error, stuck in await
Stripe Terminal React Native SDK version
0.0.1-beta.12
Smartphone (please complete the following information):

Device: Anroid
OS: 10
Browser [e.g. stock browser, safari]
Version [e.g. 22]

@aliwaqassi how did you solved the issue
I am able to connect with the simulated reader, but getting stuck on connectBluetoothReader when trying to connect with a physical reader

@aliwaqassi how did you solved the issue I am able to connect with the simulated reader, but getting stuck on connectBluetoothReader when trying to connect with a physical reader

Could you kindly provide the code.


pod issue

as below (no 2.2.0)
ios$ pod search XCDYouTubeKit
-> XCDYouTubeKit (2.0.3)
YouTube video player for iOS and OS X.
pod 'XCDYouTubeKit', '~> 2.0.3'

Homepage: https://github.com/0xced/XCDYouTubeKit
Source:   https://github.com/0xced/XCDYouTubeKit.git
Versions: 2.0.3, 2.0.2, 2.0.1, 2.0.0 [master repo]

Just run the pod repo update command and try again. The search command is local only.


Unsoundness issue in function function set_latency_timer

In PR #71, a change was merged to relax the valid input range in function set_latency_timer from 2-255ms to 0-255 ms, as the datasheet for device FT2232H says this is permissible.
Unfortunately this conflicts with the following words in the libd2xx API docs:
In the FT8U232AM and FT8U245AM devices, the receive buffer timeout that is used to flush remaining
data from the receive buffer was fixed at 16 ms. In all other FTDI devices, this timeout is programmable
and can be set at 1 ms intervals between 2ms and 255 ms. This allows the device to be better optimized
for protocols requiring faster response times from short data packets.

I think the change introduced by #71 must be considered unsound, as the API docs explicitly forbid values below 2 ms, and since those docs apply to every libtd2xx device, they probably cannot be overruled by the datasheet for a single device.
Possible solutions may be:

Reintroduce range checks (would suggest full assertions rather than debug assertions, as perf is probably not an issue)
Mark this function as unsafe
Add an unsafe_set_latency_timer function to allow <2ms timeouts.

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

When documentation for closed source software contains contractions I err on the side of what works experimentally.  I tested with a FT4232H and a FT2232H, both work with 0ms latency.
If there's a device for which 0ms does not work then this should be fixed, otherwise there's insufficient evidence to declare this unsound.

Page 64 of the FTDI D2XX docs does actually explicitly state that the valid range of values is 2-255. Values 0-1 are therefore explicitly invalid. Thus the existing rust is unsound, as it is possible to use it to enter libd2xx with invalid inputs. This holds regardless of any experimental result.
I admit that the hole seems inoccuous, but the question of soundness is not actually in doubt.

It's not just experimental, the FT2232H datasheet page 26 explicitly calls out a latency timer value of 0-255 as valid.


Docs refer to non-public try_push method

Good chance I'm misinterpreting the doc. My reading of this is that one should prefer to use the try_push() method over the try_push_valid() and try_push_length() methods. However, there is not try_push() method.
https://github.com/geoarrow/geoarrow-rs/blob/8b1b15e43ac6468df10cc1c769694ec98c517d05/src/array/multipoint/mutable.rs#L168C28-L168C28

Sorry, the docs in a large part of the codebase are not in a good state (copied originally from arrow2). The best way is just to follow the usage of first_pass and second_pass. Ideally with https://github.com/geoarrow/geoarrow-rs/pull/260 you won't need to touch either.

Correct! Thanks :)


Many vulnerabilies

Gitblit 1.9.3 is difficult to deploy in production. Running grype, it returns:
NAME              INSTALLED             FIXED-IN              TYPE          VULNERABILITY        SEVERITY
bcprov-jdk15on    1.57                  1.60                  java-archive  GHSA-4446-656p-f54g  Critical
bcprov-jdk15on    1.57                                        java-archive  GHSA-hr8g-6v94-x4m9  Medium
bcprov-jdk15on    1.57                  1.66                  java-archive  GHSA-6xx3-rg99-gc3p  Medium
commons-compress  1.4.1                 1.21                  java-archive  GHSA-xqfj-vm6h-2x34  High
commons-compress  1.4.1                 1.21                  java-archive  GHSA-mc84-pj99-q6hh  High
commons-compress  1.4.1                 1.21                  java-archive  GHSA-crv7-7245-f45f  High
commons-compress  1.4.1                 1.21                  java-archive  GHSA-7hfm-57qf-j43q  High
commons-compress  1.4.1                 1.18                  java-archive  GHSA-hrmr-f5m6-m9pq  Medium
commons-io        2.2                   2.7                   java-archive  GHSA-gwrp-pvrq-jmwv  Medium
gitblit           1.9.3                                       java-archive  GHSA-2c65-rq62-fqhq  High
guava             18.0                  24.1.1                java-archive  GHSA-mvr2-9pj6-7w5j  Medium
guava             18.0                  32.0.0                java-archive  GHSA-7g45-4rm6-3mm3  Medium
guava             18.0                  32.0.0                java-archive  GHSA-5mg8-w23w-74h3  Low
httpclient        4.3.6                 4.5.13                java-archive  GHSA-7r82-7xv7-xcpj  Medium
jdom              1.0                                         java-archive  GHSA-2363-cqg2-863c  High
jsch              0.1.53                0.1.54                java-archive  GHSA-q446-82vq-w674  Medium
jsoup             1.7.3                 1.14.2                java-archive  GHSA-m72m-mhq2-9p6c  High
jsoup             1.7.3                 1.15.3                java-archive  GHSA-gp7f-rwcx-9369  Medium
jsoup             1.7.3                 1.8.3                 java-archive  GHSA-48rh-qgjr-xfj6  Medium
libpam4j          1.8                   1.10                  java-archive  GHSA-x9rg-q5fx-fx66  Medium
log4j             1.2.17                                      java-archive  GHSA-f7vh-qwp3-x37m  Critical
log4j             1.2.17                                      java-archive  GHSA-65fg-84f6-3jq3  Critical
log4j             1.2.17                                      java-archive  GHSA-2qrg-x229-3v8q  Critical
log4j             1.2.17                                      java-archive  GHSA-w9p3-5cr8-m3jj  High
log4j             1.2.17                                      java-archive  GHSA-fp5r-v3w9-4333  High
mina-core         2.0.21                2.0.22                java-archive  GHSA-6mcm-j9cj-3vc3  Medium
org.eclipse.jgit  <IP_ADDRESS>904151645-r  <IP_ADDRESS>309021850-r  java-archive  GHSA-3p86-9955-h393  High
sshd-core         1.2.0                 2.9.2                 java-archive  GHSA-fhw8-8j55-vwgq  Critical
sshd-core         1.2.0                 2.10.0                java-archive  GHSA-mjmq-gwgm-5qhm  Medium
tika-core         1.5                   1.14                  java-archive  GHSA-j8g6-2wh7-6439  Critical
tika-core         1.5                   1.19.1                java-archive  GHSA-h8q5-g2cj-qr5h  High
tika-core         1.5                   1.19.1                java-archive  GHSA-6jq2-789q-fff2  High
tika-core         1.5                   1.13                  java-archive  GHSA-4xr4-4c65-hj7f  High
tika-core         1.5                   1.19                  java-archive  GHSA-w6g3-v46q-5p28  Medium
tika-core         1.5                   1.19                  java-archive  GHSA-j53j-gmr9-h8g3  Medium
tika-core         1.5                   1.18                  java-archive  GHSA-5mf7-26mw-3rqr  Medium

I downloaded code using git clone, build it and rerun grype:
bcprov-jdk15on    1.69                                         java-archive  GHSA-hr8g-6v94-x4m9  Medium
commons-compress  1.22                   1.24.0                java-archive  GHSA-cgwf-w82q-5jrr  Medium
guava             31.1-jre               32.0.0                java-archive  GHSA-7g45-4rm6-3mm3  Medium
guava             31.1-jre               32.0.0                java-archive  GHSA-5mg8-w23w-74h3  Low
httpclient        4.5.2                  4.5.13                java-archive  GHSA-7r82-7xv7-xcpj  Medium
jdom              1.0                                          java-archive  GHSA-2363-cqg2-863c  High
jsoup             1.7.3                  1.14.2                java-archive  GHSA-m72m-mhq2-9p6c  High
jsoup             1.7.3                  1.15.3                java-archive  GHSA-gp7f-rwcx-9369  Medium
jsoup             1.7.3                  1.8.3                 java-archive  GHSA-48rh-qgjr-xfj6  Medium
log4j             1.2.17                                       java-archive  GHSA-f7vh-qwp3-x37m  Critical
log4j             1.2.17                                       java-archive  GHSA-65fg-84f6-3jq3  Critical
log4j             1.2.17                                       java-archive  GHSA-2qrg-x229-3v8q  Critical
log4j             1.2.17                                       java-archive  GHSA-w9p3-5cr8-m3jj  High
log4j             1.2.17                                       java-archive  GHSA-fp5r-v3w9-4333  High
mina-core         2.0.21                 2.0.22                java-archive  GHSA-6mcm-j9cj-3vc3  Medium
org.eclipse.jgit  <IP_ADDRESS>909030838-r  <IP_ADDRESS>309021850-r  java-archive  GHSA-3p86-9955-h393  High
sshd-core         1.7.0                  2.9.2                 java-archive  GHSA-fhw8-8j55-vwgq  Critical
sshd-core         1.7.0                  2.10.0                java-archive  GHSA-mjmq-gwgm-5qhm  Medium
tika-core         1.5                    1.14                  java-archive  GHSA-j8g6-2wh7-6439  Critical
tika-core         1.5                    1.19.1                java-archive  GHSA-h8q5-g2cj-qr5h  High
tika-core         1.5                    1.19.1                java-archive  GHSA-6jq2-789q-fff2  High
tika-core         1.5                    1.13                  java-archive  GHSA-4xr4-4c65-hj7f  High
tika-core         1.5                    1.19                  java-archive  GHSA-w6g3-v46q-5p28  Medium
tika-core         1.5                    1.19                  java-archive  GHSA-j53j-gmr9-h8g3  Medium
tika-core         1.5                    1.18                  java-archive  GHSA-5mf7-26mw-3rqr  Medium

Any plan to issue a release with at least all vulnerabilities closed, or should I give up on using gitblit ?

A clear yes and no.
Yes, but not in the near future, re all vulnerabilities.
No, as in some dependencies will need more work in order to update them safely.
The thing with dependencies is that it is not always so easy to simply update to the latest version. Sometimes yes, then we can easily add that. Other times, it involves rewriting parts of the application to adapt to changed interfaces and even more testing.
One problem currently is the state of the test suite and that no one went to work on it to make it stable and reliable. Which helps a lot when rewriting your code. Also some dependencies would require a newer Java version as a minimal version than we can currently support.
Often it is a simple numbers game from a tool's perspective, and I understand this from an operator's view. Just check for the version and update. But not every vulnerability in package A is a problem when used in software X, because the problematic code is never used in the software. This is the case for log4j and Gitblit, for example. But, again, I understand that these details may be important for the developer, but not the operator running many, many tools.


Alternative - duply

Hello,
By analysis use cases and missing features I would like add info about alternative duply. It's python script.
It support all uses case:

[x] The script dumps all of your MySQL databases individually. - Yes, through by pre script
[x] The script backs up all of your Web files (e.g: root of all of your virtual hosts). - Yes.
[x] The script compresses your web-root and databases to a single archive. - It does it better because it splits into multiple archives, which secures itself against transmission problems.
[x]     The script uploads the compressed archive into a folder in your Dropbox account, Amazon S3 bucket or Owncloud Server.
[x]     If the method is set to dropbox, The script makes sure that you always have the newest Dropbox-Uploader script. - Not applicable.
[x]     After the upload, the script cleans up the temporary files (dumps, the archive itself). - Works better because it stores only a portion of the archive at a time.

It support all missing features:

[x]     Tests on CentOS, Arch etc. - Yes, a lot of distro ships packages.
[x]     Mega.nz integration - Yes.
[x]     Owncloud Integration - Yes.
[x]     AWS S3 integration - Yes.
[x]     Increased security? - Yes, encryption.
[x]     Reading configuration from an external file - Yes.
[x]     Postgres support - Yes, throught pre script.
[x]     Option to dump only the database(s) or only Virtualhost files - Yes.
[x]     Multiple Virtualhost folder support - Yes, dump any target as you want.

Greetings,

Hello,
Thanks for the suggestion. As far as I can see duply is a shell script, not python, which actually is a frontend of another python script, duplicity, as they say. Also, half of the missing features were strikethrough, so already half of them are done already.
This script is a solo project of mine, which I do on my spare time for my personal needs. I'm not trying to make this script a Swiss army knife, but I'd love to consider any kind of contributions.
Thank you. I'll check both scripts' source codes and look how they handled stuff, maybe implement / better this one.

Yes, I have made some simplifications regarding the technology and dependence of this project. However, in most environments this does not have any practical significance.
I actively use duply on several VPS servers. I used it with different file storage locations. For me, it is very important that you can painlessly change your service provider and protocol. A large supplier list is provided.
I used to use S3. Today I did not worry about using sftp, because I had such an environment.
The program has an incremental backup mechanism and their verification (as if it recovers files, but only compares their contents and prints them differently). This is related to the ability to recover any file from any time by downloading only some archives (metadata seperated).
For full features list see http://duplicity.nongnu.org/duplicity.1.html .


Improve puzzle format description

Add syntax for puzzles to https://github.com/yegor256/pdd#how-to-format (or wherever it's relevant). This way it would be unambiguous how to format a puzzle. Examples always leave room for misunderstanding and require abstraction by every reader.
Of course, examples are easier to read than a syntax spec. So the spec is there only in case of doubt or error.
Example
PUZZLE ::= "@todo" TICKET [ PARAMS ] [ description ].
TICKET ::= "#" ticketId.
PARAMS ::= [ ":" ] [ TIMEBOX ] [ ROLE ].
TIMEBOX ::= durationInMinutes "min".
ROLE ::= "/" [ "REV" | ... ]. // add further roles as needed

ticketId ::= The numer of a GitHub ticket, e.g. 23.
durationInMinutes ::= e.g. 30
description ::= a short one line text to describe the puzzle

@yegor256/z please, pay attention to this issue

Job #95 is now in scope, role is DEV

Thanks for your contribution, @ralfw/z! If you would be a member of the project, you would now earn +15 reputation points, as explained in §29. You can join and apply to it, see §2.

The job #95 assigned to @kaze/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and thiscom.zerocracy.Par@53b40c64

@kaze/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

The user @kaze/z resigned from #95, please stop working. Reason for job resignation: It is older than 10 days, see §8

Resigned on delay, see §8: -30 point(s) just awarded to @kaze/z

The job #95 assigned to @golyalpha/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@0crat Waiting for PR review (#103)

@0crat Waiting for PR review (#103) (here)

@golyalpha The impediment for #95 was registered successfully by @golyalpha/z

Order was finished: +30 point(s) just awarded to @golyalpha/z

The job #95 is now out of scope


Debug toolbar integration

Not really an issue but how about just advising users to include the HTMX Ajax-header extension and set hx-ext=“ajax-header” to body tag then you don’t have to change Toolbar::prepare and create a services::Toolbar function to make it work as it is supposed to?

Of course, in theory, you can definitely do it with the mentioned extension, but the reason to do it the way it is done now was to differentiate an AJAX request from an HTMX request.
In the variant proposed by you, $this->request->isAJAX() would return true every time even for an HTMX request. And that was something I was hoping to avoid.


[Enterprise; GPO] Updater notifications GPO: Improve behavior on new major releases

Yesterday I had the idea that we can allow suspending major release toasts for e.g. 8 weeks (=2 minor releases). But therefore we need to convert the GH release date string to a DateTime object. (And I don't know how to do this in C++.) - But this can be an improvement for later.
Originally posted by @htcfreek in https://github.com/microsoft/PowerToys/pull/24221#issuecomment-1442079018

There is  a new settings that makes this issue obsolete.


Adding image URI attribute to AWS Executors

When using container-based executors, users often need a greater degree of customization than is possible through PipDeps or BashDeps alone.  For this reason, we allow users to customize the image used by Covalent tasks in container-based executors.  While the Azure Batch and GCP Batch plugins provide a constructor parameter container_image_uri, the AWS plugins are a little older and so they rely on an environment variable, which is used globally for all jobs using those plugins.  This issue is dedicated to updating the AWS plugins, both adding this new constructor parameter to the AWSExecutor (see AgnostiqHQ/covalent-aws-plugins) and removing the environment variable.
This issue is a part of Hacktoberfest.  Closing this issue will earn you 1 point.

@wjcunningham7 I would like to work on this issue. Can it be assigned to me?

Hi @i-am-SnehaChauhan ! Glad to hear that! Please feel free to open a PR for this, assignment of the issue is not a requirement 😄 !

Please let us know if you have any questions here.

@i-am-SnehaChauhan bumping, to let us know if you're blocked on this. Thanks!

Hey @kessler-frost Actually, I am currently in the midst of my midterm exams. Could you please give me 3-5 days? I will complete this and submit my pull request as soon as possible.


Refactor User Dashboard Settings to Redux.

Description
Remove prop drilling & utilize global state management.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Change Status

[x] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] There are no merge conflicts

Great job refactoring your components to use redux


Remove master/worker check, always render CNI config

This is needed to support adding kubelet to kubernetes-master.

LGTM :+1:


Too many requests and DeepL blocked my IP

Hi Vincent,
Indeed you build a great tool in python and very friendly to use! Thank you.
I have encountered a problem lately when translating text multiple times using Python. After about 3-5 translations, my requests to the API get rejected. On some occasions, I receive an error code 400. Meanwhile, I have also noticed that the DeepL app on my Mac displays the same information and prevents me from translating anything within the app.
I want to assure you that I have not been sending an excessive number of requests. I was wondering if you are aware of this issue and if there is a solution available. I would greatly appreciate any assistance you can provide.
Bikman

I'm guessing the problem might be the para id. Randomly generating a number between a range might not be a proper way..

I'm guessing the problem might be the para id. Randomly generating a number between a range might not be a proper way..

That's exactly what the official app does.

So it can be solved now? I am still afraid to use this package. I need a steady version.

So it can be solved now? I am still afraid to use this package. I need a steady version.

What I want to tell you is that there cannot be a steady version because this is freeloading DeepL service, and you haven't paid. If you try to frequently request using the DeepL client, your IP will still be banned.

So it can be solved now? I am still afraid to use this package. I need a steady version.

What I want to tell you is that there cannot be a steady version because this is freeloading DeepL service, and you haven't paid. If you try to frequently request using the DeepL client, your IP will still be banned.

If I use it in a speech translate software, is it ok? not that frequent.

Well, I have not try it second time, but after 24~48 hours, the DeepL app works again. So feel free to try this package, the risk is no DeepL in 2 days. Please let us know your results😹

Well, I have not try it second time, but after 24~48 hours, the DeepL app works again. So feel free to try this package, the risk is no DeepL in 2 days. Please let us know your results😹

It's usually not blocked for that long, a couple hours at most.

I have test the request. i tried to send 10 requests, every request will wait 2s, when I send 3 request, it will crash and said my ip is block. But it doesn't. When I restart the test, it is the same I could only send about 3 requests.

Looks like the problem is still here, although everything works with DeepLX. Can we reopen the issue?

please close the case. problem no long exist
Kind regards, Bikman Wei Sent from iPhone.
oifj34f34f @.***>于2024年5月10日 周五13:36写道：

Looks like the problem is still here, although everything works with
DeepLX https://github.com/OwO-Network/DeepLX. Can we reopen the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/OwO-Network/PyDeepLX/issues/13#issuecomment-2104454711,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD7RRGYI4JV4D6EO6DRCNCLZBSWMDAVCNFSM6AAAAAA7KSTCLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGQ2TINZRGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Black window after switching to another workspace and back (bspwm)

Describe the bug
Running the project from orbtk-template and then switching to another workspace causes the window to turn black until it is focused again.
To Reproduce
Steps to reproduce the behavior:

Run orbtk-template  binary
On bspwm (perhaps tiling wms or any wm as well) switch to another workspace
Switch back
See that the window is now black
Refocus the window
Watch it display normally again

Expected behavior
I expect the window to not become completely black when switching between workspaces
Desktop (please complete the following information):

OS: Void Linux
WM: bspwm (no compositor such as picom/compton)

Thank you for the report. I will check it.

same on i3wm

same on i3wm

Same on windows, and it can be reproduced simply by minimizing then normalizing. I found more:

The debug build's "black time" is longer than release build's.
When minimized, it occupies less memory than normalized, but other lib(s?) does not (exactly, Druid).
So... it seems obvious that some codes optimized the background occupancy. Maybe you can make it optional to meet some specific needs.
I like this project, "add oil"~

(thanks for my habit of using example to compare the output of build [--release] when I found a new UI lib)


BulkInsert Ids Behaviour different than EF Core

When inserting entities with EF Core, for  auto-generated columns e.g. Identity, EF core is using value provided if the value is non-default (e.g. '2' instead of '0' for an int PK)
BulkInsert disregards the provided values and hence the insert behaves differently, and as a result referential integrity is broken
Is there any option to ask BulkInsert to behave the same as EF Core insert in regards to dealing with non-default auto generated values?

How do you have configured identity, because regular EF insert (DB is empty prior to insert) when setting custom PK value throws:

SqlException: Cannot insert explicit value for identity column in table 'Item' when IDENTITY_INSERT is set to OFF.

Test:
[Fact]
public void RunInsertIdentity()
{
    ContextUtil.DatabaseType = SqlType.SqlServer;

    using var context = new TestContext(ContextUtil.GetOptions());
    var entities = new List<Item>();
    for (int i = 2; i < 10; i++)
    {
        var entity = new Item
        {
            ItemId = i, // 0 // when ItemId start from 2 throws exception
            Name = "name " + i,
            Description = string.Concat("info ", Guid.NewGuid().ToString().AsSpan(0, 3)),
            Quantity = i % 10,
            Price = i / (i % 5 + 1),
            TimeUpdated = DateTime.Now,
            ItemHistories = new List<ItemHistory>()
        };
        entities.Add(entity);
    }

    context.Items.AddRange(entities);
    context.SaveChanges();

    //context.BulkInsert(entities);
}


Document validation error message format in options.proto

As a part of the validation library renovation, we change the format of error messages presented with the constraint violations.
This means replacing the %s placeholders with case-specific tokens such as {value} and {other}.
We also deprecate the old msg_format fields and replace them with error_msg in order not to confuse the users with the word "format".

@armiol, PTAL.


sort/gather step fails with high interval count

Testing on a dataset with ~12k intervals: the sort/gather step at the end (to collect each genotyped interval into the final vcf) fails. It is not clear if this is a temp file issue, a memory issue, or just a problem with the way we handle very large inputs to bcf concat.
Probably the solution is multiple rounds of merging, which we can investigate. For now, posting this issue in case other people have problems with datasets with >10k intervals to merge.

Possible solution:

refactor concat step to create a temp vcf file, using the -a and -d options and a file of files, but not doing the sort
sort in a second step with high memory


Abstract Constructor is breaking on Class decorators

Bug Report

🔎 Search Terms
abstract constructor decorator
🕗 Version & Regression Information
4.2.0-dev.20210113

This is a bug tied to newly released functionality

⏯ Playground Link
Playground link with relevant code
💻 Code
type Class<T = any> = abstract new (...args: any[]) => T;

function Injectable() {
  return function <T>(target: Class<T>) {
    return target;
  }
}

@Injectable()
class TestInjectable {

}

🙁 Actual behavior
Actual behavior is that TestInjectable is failing decoration with the error:
Unable to resolve signature of class decorator when called as an expression.
  Type 'Class<TestInjectable>' is not assignable to type 'typeof TestInjectable'.
    Cannot assign an abstract constructor type to a non-abstract constructor type.(1238)

🙂 Expected behavior
Given the blog post comment of:
Adding the abstract modifier to a construct signature signals that you can pass in abstract constructors. It doesn’t stop you from passing in other classes/constructor functions that are “concrete” – it really just signals that there’s no intent to run the constructor directly, so it’s safe to pass in either class type.
I'm expecting the Class alias to properly support both abstract and concrete classes, but that doesn't seem to be the case.

As a follow up, I'm also not able to get (new (...args: any[]) => T) | (abstract new (...args: any[]) => T) to work in the scenario above.  It seems the abstract behavior is overriding everything else.

As a follow up, I'm also not able to get (new (...args: any[]) => T) | (abstract new (...args: any[]) => T) to work in the scenario above.  It seems the abstract behavior is overriding everything else.

@rbuckton what's the desired behavior here?

@rbuckton what's the desired behavior here?

The issue is that target isn't generic with respect to the entire construct signature, but rather is only generic with respect to the instance type. The decorator type has the type <T>(target: Class<T>) => Class<T>. If we expand out the type alias, what you actually have is this:
<T>(target: abstract new (...args: any[]) => T) => abstract new (...args: any[]) => T

What this signature implies is that you input at least an abstract class and always receive an abstract class in return. When we apply class decorators, we ensure that the return type is always assignable to the original class (to try to avoid decorators that could easily confuse our type system). Based on this signature, we're trying to assign an abstract new (...args: any[]) => TestInjectable to a typeof TestInjectable, which is an error because typeof TestInjectable is not abstract.
What you actually want is to make target generic and use Class<{}> as the base constraint so that we infer typeof TestInjectable for the type parameter:
type Class<T = any> = abstract new (...args: any[]) => T;

function Injectable() {
  return function <TClass extends Class>(target: TClass): TClass {
    return target;
  }
}

@Injectable()
class TestInjectable {
}

@Injectable()
abstract class TestInjectableAbstract {
}

Playground link.
This is not a bug but is the intended and correct behavior.

The issue is that target isn't generic with respect to the entire construct signature, but rather is only generic with respect to the instance type. The decorator type has the type <T>(target: Class<T>) => Class<T>. If we expand out the type alias, what you actually have is this:
<T>(target: abstract new (...args: any[]) => T) => abstract new (...args: any[]) => T

What this signature implies is that you input at least an abstract class and always receive an abstract class in return. When we apply class decorators, we ensure that the return type is always assignable to the original class (to try to avoid decorators that could easily confuse our type system). Based on this signature, we're trying to assign an abstract new (...args: any[]) => TestInjectable to a typeof TestInjectable, which is an error because typeof TestInjectable is not abstract.
What you actually want is to make target generic and use Class<{}> as the base constraint so that we infer typeof TestInjectable for the type parameter:
type Class<T = any> = abstract new (...args: any[]) => T;

function Injectable() {
  return function <TClass extends Class>(target: TClass): TClass {
    return target;
  }
}

@Injectable()
class TestInjectable {
}

@Injectable()
abstract class TestInjectableAbstract {
}

Playground link.
This is not a bug but is the intended and correct behavior.

To clarify the behavior, here's a trimmed down example of what's happening above:
declare function Injectable<T>(target: abstract new (...args: any[]) => T): abstract new (...args: any[]) => T;

class TestInjectable {}

// error
const TestInjectable2: typeof TestInjectable = Injectable(TestInjectable);

Playground link
We report the same error here we do for the example, because abstract new (...args: any[]) => TestInjectable isn't assignable to typeof TestInjectable.
And the same change I recommended makes the error go away:
declare function Injectable<TClass extends abstract new (...args: any[]) => any>(target: TClass): TClass;

class TestInjectable {}

const TestInjectable2: typeof TestInjectable = Injectable(TestInjectable);

Playground link
Which shows that this behaves just like our other assignability relationships.

To clarify the behavior, here's a trimmed down example of what's happening above:
declare function Injectable<T>(target: abstract new (...args: any[]) => T): abstract new (...args: any[]) => T;

class TestInjectable {}

// error
const TestInjectable2: typeof TestInjectable = Injectable(TestInjectable);

Playground link
We report the same error here we do for the example, because abstract new (...args: any[]) => TestInjectable isn't assignable to typeof TestInjectable.
And the same change I recommended makes the error go away:
declare function Injectable<TClass extends abstract new (...args: any[]) => any>(target: TClass): TClass;

class TestInjectable {}

const TestInjectable2: typeof TestInjectable = Injectable(TestInjectable);

Playground link
Which shows that this behaves just like our other assignability relationships.

@rbuckton Thanks for the explanation.

@rbuckton Thanks for the explanation.

In 4.1.x this would work:
abstract class MyAbstract<T extends {} = any> {

}

type Foo<T extends MyAbstract> = typeof MyAbstract & { new(): T };

interface IMyImpl {

}

class MyImpl extends MyAbstract<IMyImpl> {

}

export interface Bar extends Foo<MyImpl> {

}

However in 4.2.x it gives an error:
Type 'Bar' is not assignable to type 'new () => MyImpl'.     Cannot assign an abstract constructor type to a non-abstract constructor type.
What is the reason that in 4.2.x I can no longer have an interface that extends and abstract class? I know that sounds odd to extend an abstract class with an interface, but I have some code this was working in previously, but now in does not. Just want to know the change that caused it.


GetCasted Exception ,I cannot solve it !

GetCasted Exception ,I cannot solve it !
Exception:[A]System.Collections.Generic.List1[DataPlamtformCommon.Models.Floor] cannot be cast to [B]System.Collections.Generic.List1[DataPlamtformCommon.Models.Floor]. Type A originates from 'System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.11\System.Private.CoreLib.dll'. Type B originates from 'System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' in the context 'Default' at location 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.11\System.Private.CoreLib.dll'.
StackTrace:   at CacheManager.Core.Internal.BaseCache1.GetCasted[TOut](Object value)    at ServiceCore.Extensions.CacheManagerExt.GetFromCache[T](ICacheManager1 basicCache, String key) in E:\Develop\GeneralCloudPlatform\ServiceCore\Extensions\CacheManagerExt.cs:line 118

I use it in asp.net core 2.0!
it trow exception when I use redis cache ,but i use dictionarycache it is ok!

The error might be misleading, looks more like a de-serialization issue with your Floor object.
Could you do a simple Get, that might give a better idea.


Refactor / optimize contrib/Dockerfile.test

relates to https://github.com/containerd/containerd/pull/5700
Various changes to the Dockerfile.test. See individual commits for details:

install-critools: make sure DESTDIR exists

Dockerfile.test: split dev stage, and optimize order

Dockerfile.test: skip curl, gcc, git and make install
These are already installed by default in the golang image.

Dockerfile.test: split dev stage, and optimize order
This makes the following changes:

The containerd/config.toml, and docker-entrypoint.sh only occasionally change,
so copy them before copying the source code to allow them to be cached.
The cri-in-userns stage does not need files from proto3, so do not copy them
The dev environment does need the file from the proto3 stage, so copy them there.
Change the order of stages. Our CI uses podman build which (I think) does not
skips stages that are not used for the specified target (like BuildKit does).
So I moved stages that are not used for the cri-in-userns after that stage.

Dockerfile.test: standard directory to collect build aftifacts
This allows for easier copying artifacts from stages, by just copying
the directory content to the stage where it's used. These stages are
not used to be run individually so do not have to be "runnable".
Each stage is "responsible" for colllecting all aftifacts in the directory,
so that "consumer" stages do not have to be aware of what needs to be copied.

Dockerfile.test: build cni in a separate stage
Building cni only requires the install script, and the go.mod (to determin
the version to install). Moving it to a separate stage prevents it from
being rebuilt if unrelated changes were made in the codebase.

Dockerfile.test: build critools in a separate stage
Building critools only requires the install script and the critools-version
file (to determin the version to build). Moving it to a separate stage
prevents rebuilding it if unrelated changes are made in the code.

Dockerfile.test: clean up apt indexes after installing
Not critical for intermediate stages, but a minor optimization to
reduce the image cache. Ideally, this would use cache-mounts for this,
but those may not be supported by podman, so taking the traditional
approach.

Dockerfile.test: add GOLANG_IMAGE build arg to allow overriding
This allows the base image itself to be overridden with an alternative image.

@AkihiroSuda PTAL


Sui doc content issue or request

Under A collaborative approach to transaction submission section in the sui docs here, Proof of Stake link is actually pointing to Proof of Work instead of Proof of Stake. Is that correct?

is this issue still open ?

Sorry, I pushed an update the day you filed it and neglected to resolve. This is updated/fixed.


[Language Text] Update Readme about gated preview features

Add a language to the readme that highlights that the following two features are still in gated preview:

Abstractive Summarization
Dynamic Classification

The issue has been resolved


upd: Update minimum version to 14

Hi @cristipetra, thanks for your contribution! We've made quite a few changes before spotting your PR, apologies for that. But part of the changes is that the minimum version has been bumped to iOS 14 in any case.
I'll keep a closer eye on notifications for contributions like this one so that they are merged in time going forwards!


Unable to train model on multiple GPUs using MirroredStrategy in TF2.0

I have two Tesla T4 GPUs from Google. I am using this example in order to train it on multiple GPUs with defined the model inside tf.distribute.MirroredStrategy() as described here. The model trains without tf.distribute.MirroredStrategy() on single GPU normally but not when I want to train it on multiple GPUs. You can find the error log below.
Another dummy example program in the docs for using MirroredStrategy() is here. On executing this, it trains and utilises both GPUs. Between these two examples, I noticed one thing which is the use of padded_batch and batch. It works fine in the latter case. I also have a model of mine where I am using padded_batch. This model also can not be trained and although the error there is a bit different.
Please suggest any ways to get rid of this problem. THANK YOU!

Train on None steps
Epoch 1/10
W0718 14:21:33.186410<PHONE_NUMBER>37056 cross_device_ops.py:764] Efficient allreduce is not supported for 1 IndexedSlices
W0718 14:21:38.304410<PHONE_NUMBER>37056 cross_device_ops.py:764] Efficient allreduce is not supported for 1 IndexedSlices
2019-07-18 14:21:39.456127: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] implementation_selector failed: Invalid argument: Invalid format of input node name: replica_1/sequential/bidirectional/StatefulPartitionedCall_replica_1/StatefulPartitionedCall_8 Expected: {forward_node_name}:{index}
2019-07-18 14:21:40.179202: W tensorflow/core/grappler/optimizers/implementation_selector.cc:199] Skipping optimization due to error while loading function libraries: Invalid argument: Functions '__inference___backward_standard_lstm_356864_357366' and '__inference___backward_standard_lstm_356864_357366_specialized_for_StatefulPartitionedCall_1_at___inference_distributed_function_360209' both implement 'lstm_3542e53d-8ce9-47ba-b422-dc9202236064' but their signatures do not match.
2019-07-18 14:21:40.669817: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1483] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set.  If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU.  To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
2019-07-18 14:21:40.752732: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10.0
2019-07-18 14:21:51.150641: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:111] Filling up shuffle buffer (this may take a while): 17050 of 50000
2019-07-18 14:22:00.643784: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:162] Shuffle buffer filled.
2019-07-18 14:22:00.664615: W tensorflow/core/framework/op_kernel.cc:1546] OP_REQUIRES failed at partitioned_function_ops.cc:113 : Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
2019-07-18 14:22:00.664706: W tensorflow/core/common_runtime/base_collective_executor.cc:216] BaseCollectiveExecutor::StartAbort Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
[[{{node replica_1/sequential/bidirectional/StatefulPartitionedCall}}]]
[[metrics/accuracy/div_no_nan/ReadVariableOp_1/_50]]
2019-07-18 14:22:00.664771: W tensorflow/core/common_runtime/base_collective_executor.cc:216] BaseCollectiveExecutor::StartAbort Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
[[{{node replica_1/sequential/bidirectional/StatefulPartitionedCall}}]]
[[replica_1/metrics/accuracy/AssignAddVariableOp_1/_41]]
2019-07-18 14:22:00.665117: W tensorflow/core/framework/op_kernel.cc:1546] OP_REQUIRES failed at partitioned_function_ops.cc:113 : Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_100 , and the dst node is while_0_RetVal
2019-07-18 14:22:00.665167: W tensorflow/core/common_runtime/base_collective_executor.cc:216] BaseCollectiveExecutor::StartAbort Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
[[{{node replica_1/sequential/bidirectional/StatefulPartitionedCall}}]]
2019-07-18 14:22:00.666533: W tensorflow/core/framework/op_kernel.cc:1546] OP_REQUIRES failed at partitioned_function_ops.cc:113 : Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:0 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_101 , and the dst node is while_1_RetVal
2019-07-18 14:22:00.679274: W tensorflow/core/framework/op_kernel.cc:1546] OP_REQUIRES failed at partitioned_function_ops.cc:113 : Invalid argument: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:0 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_100 , and the dst node is while_0_RetVal
Traceback (most recent call last):
File "colab.py", line 94, in
model.fit(train_data, epochs=10, validation_data=test_data)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/keras/engine/training.py", line 643, in fit
use_multiprocessing=use_multiprocessing)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/keras/engine/training_distributed.py", line 681, in fit
steps_name='steps_per_epoch')
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 294, in model_iteration
batch_outs = f(actual_inputs)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/keras/distribute/distributed_training_utils.py", line 813, in execution_function
return [out.numpy() for out in distributed_function(input_fn)]
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/def_function.py", line 428, in call
return self._stateless_fn(*args, **kwds)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/function.py", line 1335, in call
return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/function.py", line 589, in _filtered_call
(t for t in nest.flatten((args, kwargs), expand_composites=True)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/function.py", line 671, in _call_flat
outputs = self._inference_function.call(ctx, args)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/function.py", line 445, in call
ctx=ctx)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow/python/eager/execute.py", line 67, in quick_execute
six.raise_from(core._status_to_exception(e.code, message), None)
File "/home/rishabh/.local/lib/python2.7/site-packages/six.py", line 737, in raise_from
raise value
tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
(0) Invalid argument:  Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
[[node replica_1/sequential/bidirectional/StatefulPartitionedCall (defined at usr/lib/python2.7/threading.py:801) ]]
[[metrics/accuracy/div_no_nan/ReadVariableOp_1/_50]]
(1) Invalid argument:  Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:GPU:1 vs /job:localhost/replica:0/task:0/device:CPU:0. The edge src node is while_22/exit/_102 , and the dst node is while_2_RetVal
[[node replica_1/sequential/bidirectional/StatefulPartitionedCall (defined at usr/lib/python2.7/threading.py:801) ]]
0 successful operations.
1 derived errors ignored. [Op:__inference_distributed_function_360209]
Function call stack:
distributed_function -> distributed_function

@rishabhsahrawat ,
In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here and also mention the TF version being used. Thanks!

@anush-o thank you for your questions.
I am using TF2.0 as I mentioned it in the Title.
I am using the exact same code as this example provided by TF except before the model definition I added 2 lines for the multiple GPU support. The lines are
mirrored_strategy = tf.distribute.MirroredStrategy()
with mirrored_strategy.scope(): ...
This is my code file with in txt format (could not upload .py file here.)
colab.txt

This has been fixed in the latest nightly, can you try with 2.0 nightly and see if it's still failing? (same as https://github.com/tensorflow/tensorflow/issues/30513)

@guptapriya Hi Priya, thank you for your helpful response. After updating TF to latest 2.0 nightly from here, it starts training on both GPUs however once the first epoch is finished it throws following error-

File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 710, in fit
use_multiprocessing=use_multiprocessing)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_distributed.py", line 680, in fit
steps_name='steps_per_epoch')
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 436, in model_iteration
steps_name='validation_steps')
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 174, in model_iteration
steps_per_epoch)
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 490, in _get_num_samples_or_steps
'steps_per_epoch')
File "/home/rishabh/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 425, in check_num_samples
if hasattr(ins[0], 'shape'):
TypeError: 'function' object has no attribute 'getitem'

Do you know where the problem could be?. I also tried training another program of my own, which also arises the same problem.

Can you try setting validation_steps in fit and see if that helps? This is still a bug and we will look into it.

thank you for your reply. I tried your suggestion and now validation data can also be used in model.fit function. Since, validation_steps require number of batches, and lets' say length of test data is (5000) not completely divisible by the batch size (64) so in this case it will skip the last data (of length 8) that doesn't make any batch. Now my question is if there is a way to also include that or should I wait for the bug to be fixed. Sorry, if the question is too naive.

Hi - great to know it worked for you. Once we do fix the bug, you should be able to run the validation until the end. In the meantime, perhaps you can try rounding up instead of rounding down when calculating the number of steps and see if that works?
BTW, would you mind filing a separate bug for the error you saw in https://github.com/tensorflow/tensorflow/issues/30843#issuecomment-514534349? Will help us track it. Thanks

Actually ignore the new bug part, i found a similar bug here : https://github.com/tensorflow/tensorflow/issues/28797

Hi Priya, @guptapriya thank you for your response again. I tried using the rounded up value and it worked. I thought it only takes integer values as input. :D

Glad to know it worked! Thanks for testing out 2.0!


update monitor to target '' instead of azure-

And update the default stages into include the parameter passthrough.
@rakshith91

/check-enforcer override


Uses the wrong working directory

My package.json file is located at C:\Users\Me\Websites\Templates\core, which I'll refer to here as my Correct Working Directory (CWD). Inside the package.json I have:
  "eslintConfig": {
    "extends": [
      "plugin:react/recommended",
      "MY_CUSTOM_CONFIG"
    ]
  },

I have also installed eslint-plugin-react within CWD.
There seems to be a bug with vscode-eslint (according to ESLint here) as instead of looking for the module in CWD, it looks for it in C:\Users\Me\Websites, as per this error output message:
[Error - 9:18:22 am] Error: Error while loading rule 'react/display-name': Cannot find module 'react' from 'C:\Users\Me\Websites'
Occurred while linting C:\Users\Me\Websites\Templates\core\src\index.tsx

I have confirmed that the module exists where it should in C:\Users\Me\Websites\Templates\core\node_modules\eslint-plugin-react
This only occurs for the eslint-plugin-react module (and the eslint-plugin-jsx-a11y module, which I have since removed). It's able to find the other modules I have installed.
Versions

"eslint": "^5.16.0"
"eslint-plugin-react": "^7.14.2"
vscode-eslint: 1.9.0

Everything is installed locally.
I can also confirm that this issue doesn't occur when using the ESLint CLI. It's strictly an issue with the vscode ESLint extension.

@TidyIQ can you provide me with a GitHub repository I can clone that demos this.
Which directory is the workspace folder you open. You might need to set the eslint.workingDirectories if things are in sub folders since the plugin seems to be loaded relatively.

I'm having the same issue. It seems to be looking for the "react" module in the parent directory instead of the project root directory. Extremely frustrating
Error: Error while loading rule 'react/no-typos': Cannot find module 'react' from '/Users/davidsoards/projects/sandbox'
my project directory is located inside sandbox/
why is it doing this?
This should be reopened.

Have you lately upgraded to ESLint 6.0. You might want to look at https://github.com/microsoft/vscode-eslint/issues/696

update no, but it was a brand new repo, so yes it was on v6.0. Thanks!


Use smaller image for generating thumbnails for SMK

Description

Images linked in the image_urls for the SMK provider are all ~2MB. These are large enough to overload our thumbnail service. Some of these requests timeout, such that the frontend falls back to downloading the entire full image. The result is unacceptable load times.
We should update the API to detect the SMK provider and modify the URL used for thumbnail generation.
image_url that we receive has the form: https://iip.smk.dk/iiif/jp2/KKSgb5100_34.TIF.jp2/full/!2048,/0/default.jpg Note the2048.
The modified URL should be identical, except for a reduced filesize: https://iip.smk.dk/iiif/jp2/KKSgb5100_34.TIF.jp2/full/!400,/0/default.jpg
Additional context

This change should be a temporary quick-fix that will allow us to re-enable the SMK provider, so we can make these images available again as soon as possible.
In the longer term, https://github.com/WordPress/openverse-catalog/issues/698 tracks updating the provider to provide links to smaller files for the purpose of thumbnail generation.
Resolution

[ ] 🙋 I would be interested in resolving this bug.

Hey @zackkrida is this issue still open? I would like to contribute to this issue.

@Hussain0520 that would be fantastic. Yes, this issue is still open. This would essentially be a 'hotfix' to our API /thumbs endpoint that checks when the provider is smk and rewrites the image url to use the 512 width instead of the 2048.
I assume we want to do this work here: https://github.com/WordPress/openverse-api/blob/6b7e963419d4894260934046c5421f9b932de743/api/catalog/api/views/image_views.py#L107 but @stacimc or @krysal can confirm.
Please visit our #openverse channel in the Make WP slack if you need any real-time help, otherwise you can leave thoughts here or on your PR. Thank you!

@Hussain0520 are you working on this ticket? This is a high priority ticket so we would appreciate if you could let us know if you would not be able to work on that.


Docker Image for sfpowerscripts

Start publishing a docker image on every update to sfpowerscripts, which include all the required dependencies, so that it could be used in the build/release pipelines

Docker images are available from Release 20 and we recommend everyone to use it.


Specify interface

It is possible to specify which interface should be used for downloading?
aria2 documentation:
--interface=
Bind sockets to given interface. You can specify interface name, IP address and host name. Possible Values: interface, IP address, host name

For reference:
https://aria2.github.io/manual/en/html/aria2c.html#cmdoption--interface
I'm really new to GNU/Linux and not sure about what interface means. Does that means, for example, let aria2 download through LAN rather than WiFi?

Exactly, I hve multiple interfaces (devices) and I want to select another than the default.

its no working for me

this solution working right:  https://askubuntu.com/a/330128

Hi.
About the aria2 --interface option:
This will work on my system and return the ip address of my VPN (tun11):
curl --interface "tun11" https://ifconfig.co
on the other hand, this will return the ip address of my default router connection (no VPN)
aria2c --download-result=full  --interface=tun11  https://ifconfig.co
So the question is: why would curl work effortlessly and aria2c won't?
thank you.
Michele

@Mikii67 I think you should create issue at https://github.com/aria2/aria2

Done now. Thanks for pointing that out.


🐛 Bug Report: Scaffolder no longer passing secrets when creating tasks

📜 Description
When creating a new Scaffolder Task through the UI, secrets are not being sent to POST /api/scaffolder/v2/tasks.
I believe this is specific to the latest release of @backstage/plugin-scaffolder and @backstage/plugin-scaffolder-react.
I upgraded the Backstage yarn plugin to the latest release yesterday (v1.34.0) to get the fix for Windows path resolution. Upgrading the yarn plugin and running yarn install resulted in most of the @backstage/* packages being upgraded (this might be another issue?) even though backstage.json is still pinned to 1.33.3.
I also tried upgrading to Backstage v1.34.0 thinking I was in a weird state of being partially upgraded. The issue still persisted after fully upgrading to v1.34.0.
👍 Expected behavior
Secrets collected through the template parameters will be forwarded to the created task.
👎 Actual Behavior with Screenshots
secrets: {} is sent in the request body regardless of which secrets are collected by the template.
👟 Reproduction steps
In an environment with the following dependencies:
@backstage/plugin-scaffolder v1.27.2
@backstage/plugin-scaffolder-react v1.14.2
@backstage/plugin-scaffolder-common v1.5.8
Create and execute the following template:
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  namespace: default
  tags:
    - github
  name: test-template
  title: Test
  description: >
    Test Scaffolder Template
spec:
  owner: group:default/test
  type: service
  parameters:
    - title: Service Metadata
      description: Information related to the repository
      type: object
      required:
        - repoUrl
      properties:
        repoUrl:
          title: Repository Location
          type: string
          ui:field: RepoUrlPicker
          ui:options:
            requestUserCredentials:
              secretsKey: USER_OAUTH_TOKEN
            allowedHosts:
              - github.com

  steps:
    - action: debug:log
      name: List all inputs
      input:
        message: |
          RepoUrl: ${{ parameters.repoUrl }}

Inspect the network request for POST /api/scaffolder/v2/tasks and notice secrets: {} is missing the USER_OAUTH_TOKEN secret set by the RepoUrlPicker.
📃 Provide the context for the Bug.
No response
🖥 Your Environment
Backstage v1.33.3
@backstage/plugin-scaffolder v1.27.2
@backstage/plugin-scaffolder-react v1.14.2
@backstage/plugin-scaffolder-common v1.5.8
@yarnpkg/backstage-plugin v1.34.0
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

Is it possible that you have duplicate packages?
Can you try running yarn dedupe and try again?

Exactly the same problem on our side after upgrading to 1.34.0 (from 1.33.5).
Yarn dedupe doesn't help: still the same error !

@benjdlambert, I've confirmed it is not an issue with duplicate package versions. yarn dedupe has no effect and I'm able to reproduce the issue forcing the resolution of the packages in the root package.json:
  "resolutions": {
    "@backstage/plugin-scaffolder": "1.27.2",
    "@backstage/plugin-scaffolder-common": "1.5.8",
    "@backstage/plugin-scaffolder-react": "1.14.2"
  },

@koalaty-code @famibo woops! I found the issue, will get a fix up and a patch out today.


Fix typo in symlink variable name

This has already been implemented: https://github.com/DefectDojo/django-DefectDojo/pull/8736
It is just waiting for the merge to master which should happen today or tomorrow.


Bug on husky control from kinetic

You have this line on the launch file from control.launch in kinetic-devel. It looks like a mistake..
<arg name="kinect_enabled" default="$(optenv HUSKY_UR5_ENABLED false)"/>`

Thanks!  Fixed in e58246decd57d6b670b6c0ce9f3c5b4ca7d4d470.


Remember window position

I think an option to remember last window position would be very useful if implemented.

Added in ce696f1b2ef04c4f86d6e17087197b739abd1b5f


question: access rest api behind auth

A clear and concise description of what you want to accomplish.

I got an application with an rest endpoint. I can login through  the ui and access the app. But I have not managed to do this via curl.
We use keycloak as the oauth plugin. With keycloak there are different tokens id and access token and I have not managed to get the right calls to get through the auth portal.

@axi92 , please provide your config and specify which route handles the rest endpoint.

@axi92 , when you curl to your API, you would need providing the token acquired via authentication portal. What is the curl command you are using?

Yes the problem is how do I get the token from the auth portal?
I used this
export TKN=$(curl -X POST 'https://keycloak.evva.com/auth/realms/master/protocol/openid-connect/token' \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'username=USERNAME' \
 -d 'password=PASSWORD' \
 -d 'grant_type=password' \
 -d 'client_id=caddy-security-portal' | jq -r '.access_token')

Yes the problem is how do I get the token from the auth portal?

@axi92 , you do it like this https://authp.github.io/docs/authenticate/misc#authenticate

@axi92 , please search the docs on how to enable accepting bearer token.
Once you authenticate to the portal and get the token, you pass that token in “ -H 'Authorization: Bearer: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Mzg3MzgyMjEsImp0aSI6IlN6d2JiOXI5eG5NeVlHUE5IbGZHeklQVlc5VHVLY1VlcndMbmNHR1BtIiwiaWF0IjoxNjM4NzM0NjIxLCJpc3MiOiJodHRwczovL2F1dGgubXlmaW9zZ2F0ZXdheS5jb206ODQ0My9sb2dpbiIsIm5iZiI6MTYzODczNDU2MTAwMCwic3ViIjoid2ViYWRtaW4iLCJlbWFpbCI6IndlYmFkbWluQGxvY2FsZG9tYWluLmxvY2FsIiwicm9sZXMiOlsiYXV0aHAvYWRtaW4iLCJhdXRocC91c2VyIl0sIm9yaWdpbiI6ImxvY2FsIiwiYWRkciI6IjEwLjAuMi4yIn0.QuSld2zKYtQX5gPIUlg7glRb7GXuieXm7ALxBTRd2dxCK4T-cZN-2KiK376Z1sxSFf3P3PA-ycrcazjdU5XETQ' “ header when making calls to your API.

@axi92 , wait … the things I mentioned would not work with OAuth. Let me think and I will let you know how to go about it.

@axi92 , I am ready to get back to this. The gist is that I will be taking id_token sent by OAuth provider and injecting it into a cookie accessible only by the auth portal. Please see https://github.com/authp/authp.github.io/issues/28
Then, I will be able to retrieve it from SPA using the following URL parameters, e.g. https://auth.myfiosgateway.com:8443/whoami?format=json&id_token=true. The reply would contain JSON document with id_token field populated with the token received from OAuth provider.
Tested it with AWS Cognito and it works. My guess is that it would work with keycloak too.

Sorry to revive this topic, but I'm in a similar situation here, and can't seem to understand exacly how to use the feature described in https://github.com/authp/authp.github.io/issues/28
The briefly elaborate what I want to do:
My config is pretty basic, as described in the docs:
{
	order authenticate before respond
	order authorize before basicauth

	security {
		oauth identity provider google {
			realm google
			driver google
			client_id XX
			client_secret XX
			scopes openid email profile
			enable id_token cookie
		}

		authentication portal myportal-xx.com {
			crypto default token lifetime 3600
			crypto key sign-verify {env.JWT_SHARED_KEY}
			enable identity provider google
			cookie domain xx.com

			transform user {
				match realm google
				action add role authp/user
			}

			transform user {
				match realm google
				match email<EMAIL_ADDRESS>				action add role authp/admin
			}
		}

		authorization policy mypolicy-xx.com {
			set auth url https://auth.xx.com/oauth2/google/authorization-code-callback
			crypto key verify {env.JWT_SHARED_KEY}
			allow roles authp/admin authp/user
			validate bearer header
			inject headers with claims
		}

}

auth.xx.com {
	authenticate with myportal-xx.com
}

xx.com {
    authorize with mypolicy-xx.com

    file_server * {
        root /web-data/
    }
    log {
        format console
    }
}

The auth is working fine, but now I would like to programmatically find a way to curl some pages behind this auth. for example:
curl -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" https://xx.com/overview.json

I assumed I could use use the access token generated via gcloud auth print-access-token for this, but as you described above, I can't use this procedure with OAuth, and can't seem to understand how should I adjust my curl command to get my access_token from google to work with this feature in https://github.com/authp/authp.github.io/issues/28. Can you help me out?

I assumed I could use use the access token generated via gcloud auth print-access-token for this, but as you described above

@lucasbaile , at the moment this feature only works with local identity store.
curl -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" https://xx.com/overview.json

The $TOKEN should be the token issued by auth portal. It should work.

@lucasbaile , also, you issue is slightly different from the one originally asked here. It is best if you open a new issue.

hi the link to the issue below is currently broken. is there another link for the same information? thank you for this useful project.
https://github.com/authp/authp.github.io/issues/28

@mgmorcos , look for the issue in authcrunch/authcrunc.github.io repo. I recently migrated it.


feat: add cairo trace

TITLE
Description
Description of the pull request changes and motivation.
Type of change
Please delete options that are not relevant.

[ ] New feature
[ ] Bug fix
[ ] Optimization

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

[ ] This change is an Optimization

[ ] Benchmarks added/run

Codecov Report

Merging #251 (8775c53) into main (ae10473) will decrease coverage by 1.01%.
The diff coverage is 72.35%.

@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
- Coverage   96.19%   95.18%   -1.01%
==========================================
  Files          83       84       +1
  Lines        9438     9584     +146
==========================================
+ Hits         9079     9123      +44
- Misses        359      461     +102

Impacted Files
Coverage Δ

proving_system/stark/src/cairo_vm/errors.rs
0.00% <ø> (ø)

...oving_system/stark/src/cairo_vm/execution_trace.rs
0.00% <0.00%> (ø)

...g_system/stark/src/cairo_vm/instruction_offsets.rs
78.33% <45.45%> (-21.67%)
:arrow_down:

...ing_system/stark/src/cairo_vm/instruction_flags.rs
85.09% <73.09%> (-12.68%)
:arrow_down:

proving_system/stark/src/cairo_vm/cairo_mem.rs
96.59% <100.00%> (+1.78%)
:arrow_up:

proving_system/stark/src/cairo_vm/cairo_trace.rs
99.04% <100.00%> (+0.66%)
:arrow_up:

... and 7 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Question About Pod can not add annotation automatic

Question
if workload use Deployment or StatefulSet, annotation elasticgpu.io/assumed: "true" and  elasticgpu.io/container-xxx: "0" can add into pod yaml.
But , use Pod, annotation can not add.

I met the same question. And I added the two lines of annotations in my 'test.yaml'. And the pod has been estalished correctly.

Could you please help, add that two lines to the Deployment?


.NET November 2021 Update - .NET 5.0.12 and .NET Core 3.1.21

Release Notes
5.0.12
3.1.21
Please report any issues you find either by responding to this issue, creating a new issue or creating a new issue in one of the following repos:

dotnet/aspnetcore - for ASP.NET Core questions
dotnet/efcore - for Entity Framework Core questions
dotnet/sdk - for CLI tools and questions
dotnet/runtime - for runtime, API, or installer issues and questions
dotnet/winforms - for WinForms issues
dotnet/wpf - for WPF issues
nuget/home - for NuGet questions and issues

Status of availability of SDK on Microsoft's Linux feeds:

Distro
5.0.12
3.1.21

Ubuntu 16.04
✅
✅

Ubuntu 18.04
✅
✅

Ubuntu 20.04
✅
✅

Ubuntu 20.10
✅
✅

Ubuntu 21.04
✅
✅

Centos 7
✅
✅

Centos 8
✅
✅

Debian 9
✅
✅

Debian 10
✅
✅

Debian 11
✅
✅

Fedora 33
✅
✅

Fedora 34
✅
✅

OpenSUSE 15
✅
✅

SLES 12
✅
✅

SLES15
✅
✅

Note: This list refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
Known Issues
If there are any issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.

Has anything changed with the package install on centos? Our new hosts that get 3.1.21 do not have a symlink in /usr/bin/dotnet whereas our older hosts with 3.1.20 do have that symlink

I came here with the same question left by scrouchman-livedrive.  I have found no mention of this in the release, but the symlink has moved to /usr/local/bin/dotnet.

``
Uploading core-6.0.0.zip…

Encountered an issue with self-contained publish with rhel.6-x64 RID. There are no 3.1.21 versions for Microsoft.NETCore.App.Runtime.rhel.6-x64 and Microsoft.NETCore.App.Host.rhel.6-x64 packages and it cause build failure:
error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.rhel.6-x64 with version (= 3.1.21)
error NU1102:   - Found 32 version(s) in NuGet.org [ Nearest version: 3.1.20 ]
error NU1102: Unable to find package Microsoft.NETCore.App.Host.rhel.6-x64 with version (= 3.1.21)
error NU1102:   - Found 34 version(s) in NuGet.org [ Nearest version: 3.1.20 ]

As mentioned above installing VS2022 has broken the build even in VS2019 - so not really side-by-side then.
Error is:
Unable to find package Microsoft.NETCore.App.Runtime.rhel.6-x64 with version (= 3.1.21)
Is this package version going to be released onto Nuget?

Closing this issue in favor of new issue https://github.com/dotnet/core/issues/703

Closing this issue in favor of new issue #703

Issue 703 appears to be an old an unrelated issue?

Closing this issue in favor of new issue #703

Issue 703 appears to be an old an unrelated issue?

You are correct, the correct issue is updated to https://github.com/dotnet/core/issues/7036


Fix -> TypeError: webpackJsonp is not a function

monster

@Arlington1985 yes. Whatsapp upgraded the version of webpack.

I also confirm this fix works. Could someone merge it?


cache_dir uses upload_tmp_dir when set

Sometimes the system cache directory is inaccessible (cf. open_basedir) or otherwise undesirable. Developers often make this known by setting the upload_tmp_dir. This PR should resolve any errors encountered when using this library while open_basedir is set.
See: http://stackoverflow.com/a/7511767

Travis CI failure seems to be related to #9

Thanks!


Support for "Fee On Transfer" tokens

Is SDK support pairs with FOT tokens, or should I remake methods on my own?

Unfortunately not, if you try to use Pair.getOutputAmount the calculation would be wrong by the fee on transfer.
I tried calculating a trade with a Fee on Transfer token with the sdk and compared it with a result on Tenderly. I created a Pair using the SDK:
const chainId = 1
const CULT = new Token(chainId, "0xf0f9D895aCa5c8678f706FB8216fa22957685A13", 18)
const WETH = WETH9[chainId]
const pairAddress = "0x5281E311734869C64ca60eF047fd87759397EFe6"
const pairContract = new ethers.Contract(pairAddress, uniswapV2poolABI, wallet)

async function createSDKPair() {

    const reserves = await pairContract["getReserves"]()
    let wethAmount = CurrencyAmount.fromRawAmount(WETH, reserves[0])
    let cultAmount = CurrencyAmount.fromRawAmount(CULT, reserves[1])
    const fotPair = new Pair(wethAmount, cultAmount)

    return fotPair
}

I then queried the output amount of a swap and also swapped the corresponding amount on a Tenderly testnet:
async function compareSDKWithOnChainResult() {

    const sdkPair = await createSDKPair()

    const tradeAmount = CurrencyAmount.fromRawAmount(WETH, ethers.utils.parseEther("1.0"))

    const sdkOutput = sdkPair.getOutputAmount(tradeAmount)[0]
    console.log("Output from SDK: " + sdkOutput.toSignificant(18))

    let wethContract = new ethers.Contract(WETH.address, erc20abi, wallet )
    const routerContractAddress = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
    let routerContract = new ethers.Contract(routerContractAddress, uniswapV2RouterABI, wallet)
    await wethContract["approve"](routerContractAddress, ethers.utils.parseEther("1.0"))

    let res = await routerContract["swapExactTokensForTokensSupportingFeeOnTransferTokens"](ethers.utils.parseEther("1.0"), 1, [WETH.address, CULT.address], wallet.address, Date.now() + 60000, {gasLimit: 10000000})
}

The output here was 367043830.509396967
Comparing that with the actual swap:

We see that 0.4% of the output has been transferred to the DAO. Please note that the SDK accounts for the decimals of the token, Tenderly doesn't.
The calculation of the SDK is correct but it doesn't account for the fee that happens after the exchange.

@Florian-S-A-W Thanks a lot for the explanation and code examples


Automatic error report from queryverse/VegaLite.jl

[err]
Repo: queryverse/VegaLite.jl
Run URL: https://github.com/queryverse/VegaLite.jl/actions/runs/53919731
Image ID: sha256:c1de64041c24378782f977f8c051c806431663701d702ce1c418b956bbbb8591
Stacktrace:
Traceback (most recent call last):
  File "/root/tagbot/action/__main__.py", line 73, in <module>
    repo.handle_release_branch(version)
  File "/root/tagbot/action/repo.py", line 336, in handle_release_branch
    self._create_release_branch_pr(version, branch)
  File "/root/tagbot/action/repo.py", line 98, in _create_release_branch_pr
    self._repo.create_pull(
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1308, in create_pull
    return self.__create_pull_1(*args, **kwds)
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1331, in __create_pull_1
    return self.__create_pull(title=title, body=body, base=base, head=head)
  File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1341, in __create_pull
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "PullRequest", "code": "custom", "message": "No commits between master and release-2.0.1"}], "documentation_url": "https://developer.github.com/v3/pulls/#create-a-pull-request"}

Looks like we need to check that the release branch hasn't already been merged.

Should be fixed now.


Fix #152510

This PR fixes #152510, adds path suggestions for angled brackets in markdown.

Looks like pathCompletions.ts needs to be formatted. Also make sure to run the unit tests since once of them was failing previously

Sorry but I've merged #153158 which fixes this. I felt getting this PR into good shape was a mergable state would require a lot more back and forth


<EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>

Hi! 👋 Firstly, thanks for your work on this project! 🙂
When using this package in a project together with<EMAIL_ADDRESS>I get this peer dependency warning:
warning "dripsy > @dripsy/core ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>
Looking further into this, it looks like more recent versions of @expo/html-elements no longer has any peer dependencies. I tried modifying the dependencies for dripsy to use an up-to-date version and the warning went away:
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index aae8edb..96305fd 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -80,7 +80,7 @@
     "typescript": "^4.4.3"
   },
   "dependencies": {
-    "@expo/html-elements": "^0.0.1",
+    "@expo/html-elements": "^0.2.0",
     "@react-native-community/hooks": "^2.6.0",
     "@theme-ui/css": "^0.4.0-rc.1",
     "stable-hash": "^0.0.2",

I could act like the beloved dependabot by making this change and running the linter/tests and creating a PR, but when I tried doing so there were lots of linting issues before making any edits. This, combined with the test coverage, means that I don't feel comfortable judging if this change would break anything.
It seems to work just fine for my use case, but I would really appreciate at least a second pair of eyes on this 😄

Can you try upgrading to 3.7.x for both dripsy and the gradient?

Looks good, thank you! 🙌


[MATLAB] Add MATLAB arrow.tabular.RecordBatch class

Describe the enhancement requested
Now that the MATLAB interface supports some basic arrow.array.Array types, it would be helpful to start building out the tabular types (i.e. RecordBatch and Table) in parallel.
To start, we could create a basic implementation for arrow.tabular.RecordBatch (name subject to change).
After that, we could add arrow.tabular.Table, which users could construct from multiple RecordBatch objects.
Component(s)
MATLAB

take


what is the best place to conform AVAudioPlayerDelegate?

if AudioMessagePresenter conform AVAudioPlayerDelegate
// MARK: AVAudioPlayerDelegate
extension AudioMessagePresenter: AVAudioPlayerDelegate {
    func audioPlayerDecodeErrorDidOccur(player: AVAudioPlayer, error: NSError?) {
        log.debug(error)
    }

    func audioPlayerDidFinishPlaying(player: AVAudioPlayer, successfully flag: Bool) {
        log.debug("Is the audio finished?: \(flag)")
    }
}

I get the error below
AudioMessagePresenter.swift:113:1: Type 'AudioMessagePresenter<ViewModelBuilderT, InteractionHandlerT>' does not conform to protocol 'NSObjectProtocol'

if ConversationViewController conform AVAudioPlayerDelegate, it works well
Is it the right way to put it here?

Well I would place it in a collaborator of your AudioMessagePresenter


Add Russian Semantic Domains to the Russian po file for Webonary

Use the xml file, LocalizedLists-ru.xml, (lines 12443 - 129966).
File is in a zip file here, C:\Program Files\SIL\FieldWorks 9\Templates\LocalizedLists-ru.zip
This is the xml element for the list:

After Russian has been added and works for https://www.webonary.org/tsakhur/, then proceed with other languages.

Looks good.


Add option to send a message to websocket server on connect.

This adds an extra optional option to have the client send a message to the websocket server before it starts listening for messages.
This is useful for when a websocket server requires you to specify a subscription of some form in order to start receiving events.

I like the idea. It looks like the CLA check has failed, can you check on that?
http://www.elasticsearch.org/contributor-agreement/

Author hasn't signed the CLA in over two years so I'm closing the PR. If a CLA eventually gets in place please feel free to reopen.