can't get resizing work

heyho 🦚✨
i am just starting with pts, so my question might be a little strange. but maybe it will help someone in the future as well. also, this is not bug-related. i just need some help. thank you.

so, i have an array of percentage-based x and y position pairs. something like [[15, 36], [22, 59], [55, 47], [45, 36], [35, 47]], where the first point is at 15% on the x axis and 36% on the y axis of the space. i wrote a little function to convert my array into Pts. i bet this is not the most elegant solution, but it works fine. my function looks like this:
function getPath(points, space) {

    let pts = [];
    let size  = space.width / 100;

    points.forEach(xy => {

        pts.push(new Pt(size * xy[0], size * xy[1]));
    });

    return pts;
}

to make my line move, i created noise points from my returned array of Pts. this also works fine. ueeey.
space.add({

    start: function() {

        line = getPath(pts, space);
        noiseLine = Create.noisePts(line, 0, 0.5);
    },

    animate: function() {

        form.scope(this); // i am using the svg canvas

        // generate noise in line
        let nps = noiseLine.map((p) => {

            p.step(0, 0.0025);
            return p.$add(p.noise2D() * space.center.y / 5 * multiplier, p.noise2D() * space.center.y / 3);
        });

        form.strokeOnly('#78809E', 2).line(Curve.bspline(nps, 20));
    }
});

now, to my problem. when resizing the browser window, the space is resizing (resize: true on setup), but not the points inside of it. i tried various solutions, but i could only make it work with a repaint of the whole noise line which results in a jump because the new line looks different than the one before.
it took me days already to get to here, so it would be super lovely to get some help with this. maybe also with general improvement of my code.
thank you so much!
jaro
🗻

Hi @jaro-io -- try adding a resize(bound, evt) callback into your player, and use the bound value to recalculate the positions. See the source code in these demos:
https://ptsjs.org/demo/edit/?name=canvasspace.resize
https://ptsjs.org/demo/?name=svgform.scope
Something like this should work (though I haven't tested it).
let scales = [[0.15, 0.36], [0.22, 0.59], [0.55, 0.47], ...];
...
space.add({
  animate: ...,
  resize: function (bound, evt) {
    let line = scales.map( s => bound.size.$multiply( scales ) );
    let noiseLine = ...
  }
})

Hope this helps. Please feel free to open issues if you get stuck :)

Oops, made an error in the code above. Just edited.

@williamngan thank you so much for all your help. i deeply appreciate that. first of all, using map() and $multiply() works like a charm. so thank your for this tip already. its a lot shorter than what i did.

but about resizing: i still get the same results as before. the lines do adapt to the new canvas size, but generating the noise values again and again with every resized pixel is causing weird jumps. i actually would just like to see my animation scale up or down accordingly.
to illustrate my problem, i created another pen to play around with and a little video to show whats happening.
https://codepen.io/jaro_io/pen/BaLZGBP
https://user-images.githubusercontent.com/20298313/102688067-88548c00-41f4-11eb-85a1-b97e109688b5.mp4
again, thank you for standing by!
🍃 🦘

I see what you're trying to achieve now. In this case, you may not need the resize callback. It can be as straightforward as creating noise from your original points first, and then multiplying them with space.size. Snippet:
start: function() {
  noise = Create.noisePts(points, 0, 0.5);
},

animate: function() {
  ...
  let nps = noise.map((p) => {
    p.step(0, 0.004);
    let np = p.$add(0, p.noise2D() * space.center.y / 3);
    return space.size.$multiply( np ).$multiply(0.01);
  });

Btw, if you define your initial percentage as 0.35 etc instead of 35 etc, then you can remove the $multiply(0.01) operation too.

@williamngan wow, beautiful. that did the trick! thank you so so much!


Add github flow for merging into feature/user-profile

closed since we are updating the EB Node.js environment to 16.x and feature/user-profile is stagnant, feel free to reopen.


Remove SNX from supported tokens

SNX uses a custom bridge with non-standard semantics and is not compatible with Rosetta

Discussed with @dneilroth offline. Merging.


util: log slow GRPC calls

Describe what this PR does
Fixes https://github.com/ceph/ceph-csi/issues/4839
This PR adds logs for slow GRPC calls. It does so by implementing a grpc middleware where it checks if the call's handler finishes after its context deadline, in which case a "slow call" message is logged.
The time duration is passed in through a new MiddlewareServerOptionConfig struct -- a couple of functions needed to be modified to accept a new arg.
User-facing changes:

New cmdline arg: --logslowopinterval
New Helm chart value logSlowOperationInterval

Logs with this PR included:
I0917 15:11:29.233484       1 utils.go:266] ID: 22 Req-ID: pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4 GRPC call: /csi.v1.Controller/CreateVolume
I0917 15:11:29.235487       1 utils.go:267] ID: 22 Req-ID: pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4 GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
I0917 15:11:29.236381       1 rbd_util.go:1339] ID: 22 Req-ID: pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4 setting disableInUseChecks: false image features: [layering] mounter: rbd
I0917 15:11:32.236436       1 utils.go:298] ID: 22 Req-ID: pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4 Still processing GRPC call /csi.v1.Controller/CreateVolume (3s)
I0917 15:11:32.237029       1 utils.go:300] ID: 22 Req-ID: pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4 Slow GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-a0e79396-1008-4c6b-b18b-b21ffeeb10f4","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}

Is there anything that requires special attention
Do you have any questions?
Is the change backward compatible?
Are there concerns around backward compatibility?
Provide any external context for the change, if any.
For example:

Kubernetes links that explain why the change is required
CSI spec related changes/catch-up that necessitates this patch
golang related practices that necessitates this change

Related issues
Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.
Fixes: #issue_number
Future concerns
List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.
Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow
guidelines in the developer
guide.
[ ] Reviewed the developer guide on Submitting a Pull
Request
[ ] Pending release
notes
updated with breaking and/or notable changes for the next major release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

/retest ci/centos/<job-name>: retest the <job-name> after unrelated
failure (please report the failure too!)

@nixpanic, actually I like @Madhu-1's idea about waiting for context timeout. It's what's happening after, when a call is retried while the older call is still in flight -- this is what I wanted to log and to have a better visibility over.
I0918 15:33:48.756232       1 utils.go:298] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Still processing GRPC call /csi.v1.Controller/CreateVolume (45s)
I0918 15:33:48.756658       1 utils.go:300] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Slow GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
I0918 15:34:03.756752       1 utils.go:298] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Still processing GRPC call /csi.v1.Controller/CreateVolume (1m0s)
I0918 15:34:03.758209       1 utils.go:300] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Slow GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
I0918 15:34:04.270362       1 utils.go:266] ID: 27 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 GRPC call: /csi.v1.Controller/CreateVolume
I0918 15:34:04.270850       1 utils.go:267] ID: 27 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
I0918 15:34:04.274015       1 rbd_util.go:1339] ID: 27 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 setting disableInUseChecks: false image features: [layering] mounter: rbd
I0918 15:34:11.608149       1 utils.go:266] ID: 28 GRPC call: /csi.v1.Identity/Probe
I0918 15:34:11.608281       1 utils.go:267] ID: 28 GRPC request: {}
I0918 15:34:11.608368       1 utils.go:273] ID: 28 GRPC response: {}
I0918 15:34:18.756588       1 utils.go:298] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Still processing GRPC call /csi.v1.Controller/CreateVolume (1m15s)
I0918 15:34:18.757242       1 utils.go:300] ID: 25 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Slow GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}
I0918 15:34:19.271399       1 utils.go:298] ID: 27 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Still processing GRPC call /csi.v1.Controller/CreateVolume (15s)
I0918 15:34:19.272034       1 utils.go:300] ID: 27 Req-ID: pvc-aa8d7385-d6ae-4403-973d-3f26901003d5 Slow GRPC request: {"capacity_range":{"required_bytes":1048576},"name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","parameters":{"clusterID":"micro-osd","csi.storage.k8s.io/pv/name":"pvc-aa8d7385-d6ae-4403-973d-3f26901003d5","csi.storage.k8s.io/pvc/name":"rbd-pvc","csi.storage.k8s.io/pvc/namespace":"default","imageFeatures":"layering","pool":"rbdpool"},"secrets":"***stripped***","volume_capabilities":[{"AccessType":{"Mount":{"fs_type":"ext4"}},"access_mode":{"mode":1}}]}

Here in the log you can see this exact situation:

CreateVolume ID 25 is still in progress,
at 1-minute mark CreateVolume is retried with ID 27,
25 continues on

Normally 27 would be blocked by a try-lock but in any case it's great that we can immediately see when a call is stuck. I propose we change this PR so that the "slow call" logs start only after a call exceeds its context deadline, and we keep this enabled by default. This way we can keep an eye on runaway GRPCs.

I've made the changes described in the post above. I wonder if it makes sense to make the log interval configurable or just have it hardcoded to some sane value (30s might be ok)?

You probably should consider adding a note to PendingReleaseNotes.md so that the new feature will be included in the release notes for the next version.

Two minor issues:

The last commit misses your Signed-off-by line.
yamllint complains about the line length

./PendingReleaseNotes.md:15: MD013 Line length

Further documentation is available for these failures:
 - MD013: https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md#md013---line-length

CI is passing now, thanks! PTAL

@mergifyio queue

@mergifyio refresh

@Mergifyio queue


Parquet files not produced when repeatedly running benchmarks on the same dataset

Environment: MacOS + benchopt 1.3.1.
I am currently investigating exactly what's going on but it seems that when launching multiple solvers runs on the same datasets using:
benchopt run --max-runs N -s solver1 -d my_dataset
benchopt run --max-runs N -s solver2 -d my_dataset
benchopt run --max-runs N -s solver3 -d my_dataset
benchopt run --max-runs N -s solver4 -d my_dataset
benchopt run --max-runs N -s solver5 -d my_dataset

It ends up creating weirdly named files which might lead to not writing corresponding parquet files at all (!)
# first run
benchmark_myrepo.html => associated parquet files timestamped exist
# second run
benchmark_myrepo_..html => no parquet files
benchmark_myrepo_._1.html => no parquet files
benchmark_myrepo_._2.html => no parquet files
benchmark_myrepo_._3.html => no parquet files

However parquet files can still be retrieved opening htmls via the browser and clicking on download data.

Hello, thanks for the report.
If you can retrieve the parquet files, this means that they exist but there name is probably ..parquet or ._X.parquet. As they start with a dot, they are hidden files but you will see them if you use ls -a outputs.
It seems that something is messing up with  the --output parameter, which has this behavior of adding _X when a file exists. Most probable is that we have somewhere --ouput . Did you configure this parameter somewhere or is this the default behavior?

Yes I added the -o . option. It might be just that.

I guess it is me misreading the documentation I thought --output was a directory and not a filename.
My bad ! Closing it as it's not a bug more an incorrect use of the software.


Better mmodule location

This mainly close a undocumented issue where mmodule.location.source is wrong

:shipit:


Pickles: use Alcotest for unit test of module Plonk_curve_ops

Part of #13711

!ci-build-me

!ci-build-me


Cql exec frmwrk examples

CQL execution framework examples broken since their inception two years ago.  Incorporated minor fixes to get them running again.  Biggest changes to the framework in the past two years appears to be the introduction of the DateTime type and the executor class.  Adjusting the examples to use these went a long way towards getting them running again.

@dwwinters: I had some additional time, so I did some extra testing and addressed some of the issues we previously discussed.  Please review my changes and let me know if you see any issues.  Please also test locally since you initially had some trouble with the ctx.codeService in clinical.coffee.

@cmoesel: Pulled your changes down and they worked on my installation (Node v4.4.4).  Not sure why c3a57cf4a5acd9eb2ea145b8c7982e19c2819117 now works, when yesterday it did not.

@dwwinters : OK for me to merge then?  Or do you have further updates you want to get into the PR?

No.  I have further changes.  Still running into issues with including the FHIRHelpers library.

Closing this pull request as there's too much going on here.  Will consolidate, remove extraneous changes, and re-issue at a later date.


Issues in sub-dagws

Just found a tiny issue for all sub-dagws:
Here Peter specified source as dagw-xxx but the validator would check if the source equals to the name of the dataset folder:  dataset_name = document_file.parent.parent.name which is dagw:

Therefore we will have:
Checking dataset: dagw:  86%|████████████████████████████████████████████▉       | 19/22 [00:09<00:02,  1.46it/s]ERROR:__main__:--- Dataset dagw failed validation ------------
ERROR:__main__:Datasheet dagw does not exist.
Error reading datasheet dagw: [Errno 2] No such file or directory: '/work/github/danish-foundation-models/docs/datasheets/dagw'
Error in document file dagw-retsinformationdk.jsonl.gz: Source should be dagw, but is dagw-retsinformationdk
Error in document file dagw-ep.jsonl.gz: Source should be dagw, but is dagw-ep
Error in document file dagw-hest.jsonl.gz: Source should be dagw, but is dagw-hest

This also is the case for checking if dataset sheets exist, it would only check if dagw.md exists.
So I guess we have to seperate each of the sub-dagw into individual folders like:
dataset_folder
│
└── dataset_name
    │
    ├── documents
    │   └── dataset_name.jsonl.gz
    │
    └── attributes   # OPTIONAL: folder containing annotations from dataset cleaning

Originally posted by @TTTTao725 in https://github.com/centre-for-humanities-computing/danish-foundation-models/issues/266#issuecomment-2126897520

@TTTTao725 yes I would suggest that we do that

great! will do.

Also, there is a typo here:
datasheet_path = datasheets_path / dataset_path.name
should be:
datasheet_path = datasheets_path / f'{dataset_path.name}.md'
already fixed it here.


GA date for SQL triggering of Azure function

Hi - Is there any definite timeline for GA release of SQL Triggering of Azure function ?

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

ID: 4ae29079-5afb-aae0-cf91-05a255f56a0b
Version Independent ID: 9edf22a4-9bc7-e425-895e-ca88a08a01bb
Content: Azure SQL trigger for Functions
Content Source: articles/azure-functions/functions-bindings-azure-sql-trigger.md
Service: azure-functions
GitHub Login: @JetterMcTedder
Microsoft Alias: bspendolini

@SandipSeal
Could you please elaborate the query for better understanding. So, we can assist you further and
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

@SandipSeal Thanks for quick responses.
@mike-urnun-msft please review it.

We will make an announcement when this goes GA.

Hi @SandipSeal - Thanks again for your feedback. We typically don't share any timeframe for the upcoming release of products/services and features on public channels. That said, sometimes we're able to share a rough timeframe that's subject to change. For such inquiries, feel free to post on the MS Q&A channel instead.
Since we didn't determine any faulty steps/changes to this doc upon reviewing your feedback, we will now proceed to close this thread for now. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Filter dependencies to only include those from a given package

I want to be able to output only direct dependencies, ie no transitive dependencies. This PR adds the flag --only-from like so:
pip-compile pyproject.toml --only-from="my-project (pyproject.toml)"

which will yield a requirements.txt file with only dependencies that were directly listed in the toml.
If this is interesting, I can add tests and/or refactor as desired. If not, I can just close this, that's fine too.
Contributor checklist

[ ] Included tests for the changes. (not yet)
[x] PR title is short, clear, and ready to be included in the user-facing changelog.

Maintainer checklist

[ ] Verified one of these labels is present: backwards incompatible, feature, enhancement, deprecation, bug, dependency, docs or skip-changelog as they determine changelog listing.
[ ] Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

@nvie thoughts? Interesting, not interesting?

What’s the use case for this?

@dakl Vincent isn't really active in the project these days so I wouldn't bug him with notifications.
On the interest point, I would like to echo Hugo's questions about the use-case. So far, the motivation here is unclear.
P.S. It often helps to have either tests with the intended use or any other kind of demonstration of the problem you're trying to solve. Currently, it feels like you might be jumping to what you decided the solution is. And maybe you've done some thinking in your head but it's important to communicate this to the rest of us. Transparency is helpful. Please, include us in that process. When you explain such things, it's easier to "sell" the idea to whoever is going to review the PR or use the feature in the future.

@WhyNotHugo @webknjaz Thanks for your replies! Sorry for not writing about the use case.
I'm working in machine learning and many project start out with an exploratory phase, where we explore various ways of training a model, and run some training jobs to see if it seems promising at solving the task at hand. In this case, we have a set of requirements, let's say pytorch, tensorflow and lightning (usually more, let's say ≈10-20 packages that we depend directly on).
ML-heavy packages are a bit odd with their dependences, such that the list of packages depends heavily on the system where they are installed. For example, on macos, tensorflow installs tensorflow-macos so a tool like pip-compile (and poetry, pipenv etc) will add tensorflow-macos since it's a transitive dependency. When on a linux machine with a GPU, several CUDA-related python packages are installed, and listed as transitive dependencies. Therefore, the resulting requirements.txt will depend on the hardware where it is created, and won't be compatible with other hardware.
For us, in this exploratory phase, this causes unnecessary annoyance. In this phase, we'd like to be able to use pip-compile to compile a list of pinned dependences (that are mutually compatible according to their requested versions). We'd like to ignore the transitive dependencies in the final list of dependences, so in the case above, we'd only have
pytorch==2.1.0
lightning==1.3.4
tensorflow==2.15.1

and no transitive dependencies. This will then make the requirements file work on both macos and linux (with and without GPU) since transitive dependencies will be determined at install time.
Later, when a project is more mature, we typically create more extensive locks with shas (ex with pipenv/poetry), but in the exploratory phase, I'd like more strucure than manual pinning, but less structure than a complete pip freeze. This addition (that I here call --only-from would allow me to do that), with pip-compile pyproject.toml --only-from="my-project (pyproject.toml)".
It's a middle ground that I haven't been able to find any tool that covers - pinning versions but excluding transitive dependencies. Could be a USP for pip-tools :D

And of course I can/will add tests. I just want to know if you think this is interesting at all first, so I don't "waste" time writing tests for a feature that you consider out of scope for pip-tools anyway 😝

@WhyNotHugo @webknjaz is this interesting at all? I'm 100% fine with finishing up this work if you think it's an interesting use case to support. If not, I'm also fine with closing this.

Hey @dakl, does using --pip-args=--no-deps cover this?
(https://pip-tools.rtfd.io/en/stable/#forwarding-options-to-pip)


First draft for the SNI routing tutorial

This is a rough draft. Please let me know what needs clarification, fixes etc.

Looks great! I'll merge it and add it to the index doc.

It's available from http://proxy.dockerflow.com/sni-routing/


Update version on npm

I just had added this to a new project npm still has an outdated version without my latest fix.  Do you mind updating the npm version?
Thanks!

Published 0.1.3. Sorry for the delay!


Conversion from collation utf8mb4_0900_ai_ci into utf8_general_ci impossible for parameter

Describe the bug
Running a Github pipeline to register a repository that contains emojis on some of its pull request comments (and probably in other fields) the pipeline fails with the following error:
Error 3988: Conversion from collation utf8mb4_0900_ai_ci into utf8_general_ci impossible for parameter

To Reproduce
Steps to reproduce the behavior:

Go to 'Pipelines > Create Pipeline Run'
Click on 'Create Pipeline Run'
Scroll down to until 'Github' is shown in Data Providers list
Toggle on GitHub Data provider
Enter repository owner and name for a repository that contains emojis on some of its comments, titles, etc.
Click on 'Run Pipeline'
Wait for the Pipeline to run, in our case it fails at 20%.

Expected behavior
Github scan succeeds with no errors.
Screenshots

Additional context
Similar errors are shown in the lake container logs:
time="2022-06-03 10:51:01" level=error msg=" [task service] task failed%!(EXTRA *errors.SubTaskError=Error 3988: Conversion from collation utf8mb4_0900_ai_ci into utf8_general_ci impossible for parameter)"
time="2022-06-03 10:51:01" level=error msg=" [pipeline service] [pipeline #21] run tasks failed: %!w(*errors.errorString=&{Error 3988: Conversion from collation utf8mb4_0900_ai_ci into utf8_general_ci impossible for parameter})"

We think it might be related to the emojis  as the log also contains those. Probably is related to the charset used in the Database or some of its tables or fields.
Please let us know if further information is required.
Many thanks!
Regards.

@klesh @warren830 Can you look at this bug?

@marcemv90 This is wield, I tried many times, it works well.

@marcemv90 can you provide the repo you met the problem?

😅

😅
also tried this one

Hi @warren830 👋 ,
I can't provide the repository where that bug was found as it is a private repository from my company. Emojis becoming the cause of the error was our first thought, but we are not sures about that. That was something that simply made sense for us, but we have no further mechanisms to dig deeper.
What is something that I do can provide are the tags of the docker images that we are using, maybe that's helpful for your for troubleshooting, or maybe it is something that is already fixed in a higher version or something similar.

Lake: mericodev/lake:20220523
ConfigUI: We are using a Docker image built by us because there hasn't been a non-test release since #2238. But it is based on mericodev/config-ui:20220523.
Database: We are running a MySQL in AWS RDS. Engine version 8.0.27

Hope it can shed some light to help identifying the root cause.
Please let me know if I provide something else that might be helpful as well, like enabling debug traces and upload the logs of a failed scan, or something like that.
Regards!

I think the problem might be caused by AWS RDS. What's the collation of your db?

Hello @warren830 , see following:
use lake;
SELECT @@character_set_database, @@collation_database;

Also our connection string is set to the following, in case it could be helpful:
mysql://user:pass@devlake.xxxxxxxxx.eu-west-1.rds.amazonaws.com:3306/lake?charset=utf8mb4&parseTime=True
Thanks for your time!
Regards.

Thanks!

Hello @warren830 , see following:
use lake;
SELECT @@character_set_database, @@collation_database;

Also our connection string is set to the following, in case it could be helpful:
mysql://user:pass@devlake.xxxxxxxxx.eu-west-1.rds.amazonaws.com:3306/lake?charset=utf8mb4&parseTime=True
Thanks for your time!
Regards.

This is so strange, we are using the same character set and collation:

Can you check which task returned error?

Hi @warren830, the task is using the Github plugin, not sure if that the information that you need. Let me know if I can provide further details.

Hi, @marcemv90, what was the name of the failing subtask?
Can you isolate the specific "emoji" that causing the problem?
Thanks in advanced.

Hey @marcemv90 , have you found out which specific emojis cause this problem?

Hello @klesh , @Startrekzky , sorry for the delayed response, I've been trying to reproduce the error, but I've been completely unable. I will let you know if it arises again, so I can provide further details.
Sorry.

@marcemv90 Hi Marcelo, were you able to reproduce the issue?


Itly.load context and validation options

Hey Ampli team!
I'm migrating from an Itly runtime and use this guide.
Unfortunately, I can't find any way to implement already exising in our code context option and itly.page method.
Could you give me please some reference how I can upgrade them? Thanks in advance!

The same for itly.validation option:

I got some answers in another place, I leave it here for those who have encountered similar questions.
The context parameter is no longer supported in Ampli.
This was originally based on per Source Templates which is a feature that has since been deprecated.
However, if you would like to add additional data on each Event you can do so by creating a Middleware like below that will set "contextProp=true" on all Events.

https://www.docs.developers.amplitude.com/data/ampli/middleware/

 export const contextMiddleware:Middleware = (payload, next) => {
   payload.event.event_properties = {
     ...payload.event.event_properties,
     contextProp: true,
   };
   next(payload);
 };

The validation parameter is also no longer supported in Ampli. This flag previously enabled/disabled local schema validation in the SDK. The new Ampli SDKs no longer do local schema validation and instead rely on backend validation on our servers which can be viewed in the Event "sparklines" in the Events page in Data.
The itly.page method has actually been deprecated in favor of event-based analytics. I believe you’re using Segment, so if you still need the page call for Segment (or something else downstream), you can leverage Middleware to check for your page event and forward using the underlying Segment.

Thanks @OleksiiFomazov for sharing the answers here. I also made a ticket to add this information to our SDK migration documentation.


Using ARKit location together with custom ARSCNView

I would like to use experimental ARKit location method, but it seems that it takes camera resource and I can't create custom scene with ARSCNView. Is there a way to use the same session to improve indoor location accuracy and e.g. draw objects etc.?

Hi @kasperekt !
It takes camera resource, but not hides it. In your ARSCNView you should just use the arSession  provided by the EILIndoorLocationManager.

Yes. That was sufficient. Thank you.


Update exception message seen for parameterless context constructor

Emphasizes that generic DbContextOptions should be used.
See #5076

:shipit:


Network Trace - Better text or grouping to explain field mapping in outage configuration

We need some text to explain what this section is doing.

Ideas:

Make this a group
Title with Save Summary Options
Add a description:  Select a field to store a summary of the output parameters and select the output parameter.  Currently only the count of items is supported.

@MikeMillerGIS We will implement this and will be delivered in the next release

verified


"latest" branch does not support Arbitrary uid feature

The "latest" branch of this project does not work  on a secured cluster when the container is launched with an arbitrary uid. This is typically the case on an Openshift cluster. It seems you forgot to add a piece of code that handled this feature on your latest branch.
Your "master" branch does well integrate this feature
You need to add the "add_uid" function inside the "startup.py" file and call it at the very beginning of the main function:
The end of the startup.py file should read:
def add_uid():
    logging.info("Adding uid to /etc/passwd")
    with open('/etc/passwd','a') as passwd_file:
        passwd_file.write('mendix:x:{uid}:{gid}:mendix user:/opt/mendix/build:/sbin/nologin\n'.format(uid=os.getuid(),gid=os.getgid()))

if __name__ == '__main__':
    logging.info(get_welcome_header())
    add_uid()
    export_db_endpoint()
    export_vcap_variables()
    export_industrial_edge_config_variable()
    export_k8s_instance()
    check_logfilter()

    export_encoded_cacertificates()
    call_buildpack_startup()

@deviarchscs, that code is no longer necessary, since /etc/passwd is automatically patched by OpenShift 4: https://cloud.redhat.com/blog/a-guide-to-openshift-and-uids

By default, OpenShift 4.x appends the effective UID into /etc/passwd of the Container during the creation of the Pod.

Note: This was a manual step when deploying applications to OCP 3.x, that required the UID to exist in the passwd file of the Container.

Using OpenShift's built-in features prevents apps from modifying /etc/passwd and potentially causing a security issue.

Have you tried the https://github.com/mendix/docker-mendix-buildpack/pull/181 feature branch?

@deviarchscs , did you have a chance to try the feature branch to see if it fixes your problem?


Add Green Man Gaming

Wasn't sure whether the URL should be this page instead:
https://greenmangaming.zendesk.com/hc/en-us/articles/360006712732-Account-Deletion-Deactivation-FAQ
It dosn't actually explain how to delete your account, whereas the privacy policy does have that information quite clearly under "Data Handling and Your Choices".

Sounded very fair to me, thanks for your contribution!


Model getting unloaded from memory every time prompt is sent

What is the issue?
With this latest version of Ollama, every time a prompt is sent to the model, the model gets unloaded from memory and needs to be reinitialised. Leading to much longer time-to-first-token responses. It's the same for every model that I've tested.
Here's what is looks like in the current version 0.2.0 docker container

This is what it used to be in the previous version 0.1.47 docker container

Here's the docker compose config that I'm using
services:
  ollama:
    image: ollama/ollama:0.2.0
    container_name: ollama
    volumes:
      - ollama:/root/.ollama
    tty: true
    restart: unless-stopped
    environment:
      - OLLAMA_FLASH_ATTENTION=0
      - OLLAMA_KEEP_ALIVE=10m
      - OLLAMA_NUM_PARALLEL=1
      - OLLAMA_MAX_LOADED_MODELS=1
    networks:
      - llms

  open-webui:
    build:
      context: .
      args:
        OLLAMA_BASE_URL: '/ollama'
      dockerfile: Dockerfile
    image: ghcr.io/open-webui/open-webui:latest
    container_name: open-webui
    volumes:
      - open-webui:/app/backend/data
    depends_on:
      - ollama
    ports:
      - ${OPEN_WEBUI_PORT-3000}:8080
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
      - WEBUI_SECRET_KEY=
    extra_hosts:
      - host.docker.internal:host-gateway
    restart: unless-stopped
    networks:
      - llms

volumes:
  ollama: {}
  open-webui: {}

networks:
  llms:
    external: true

OS
Docker
GPU
Nvidia
CPU
Intel
Ollama version
0.2.0

Hi @vjsyong sorry this is happening. A few questions:

Is this with Docker Desktop?
Do you have the logs handy from the container? That might give the reason for the reload. Would it be possible to use -e OLLAMA_DEBUG=1 as well so we have more info on why? (note, this will have prompt info so start a clean container)

Thanks so much - we'll get this fixed

same issuse found.
After updating to v 0.2, each time i send request the model will reload anyway.
waiting to solve.

Hi @vjsyong sorry this is happening. A few questions:

Is this with Docker Desktop?
Do you have the logs handy from the container? That might give the reason for the reload. Would it be possible to use -e OLLAMA_DEBUG=1 as well so we have more info on why? (note, this will have prompt info so start a clean container)

Thanks so much - we'll get this fixed

Thanks for the prompt response!
This is running docker on a ubuntu remote server. I will upload the logs later on.

I am using docker on rocm. I am having the same issue.

Here's the logs
https://pastebin.com/Pk3CK7LN
Also I realised that I mixed up the docker compose I linked in this issue. Looks like someone else also encountered this issue in  #5542
Specifically. This only occurs with OLLAMA_NUM_PARALLEL > 1
I incorrectly specified that it was equal to one in my original post. I was using an older docker compose YAML file. I will edit it to the one I actually used when this issue came up

Here's the logs
https://pastebin.com/Pk3CK7LN
Also I realised that I mixed up the docker compose I linked in this issue. Looks like someone else also encountered this issue in #5542
Specifically. This only occurs with OLLAMA_NUM_PARALLEL > 1
I incorrectly specified that it was equal to one in my original post. I was using an older docker compose YAML file. I will edit it to the one I actually used when this issue came up

i have retested.  it`s ture ,  this issue will not occure when OLLAMA_NUM_PARALLEL =1

Working on a fix - sorry folks!

Fixed in https://github.com/ollama/ollama/releases/tag/v0.2.1

This issue isn't resolved yet, there's something wrong with scheduler checks which force closes runner after "context for request finished" and when next request comes in it goes to runner.needsReload(ctx, pending) which should return false if runner is already loaded and in memory with NUM_PARALLEL is > 1 .
It has to do something with Runner options check & Normalize the NumCtx for parallelism which are changed with parallel requests / runners somewhere outside the context. My guess is because when first time runner loads it loads with greater numParallel value and then on second pass at L132 it gets resettled to prevent crashing.
Hope this helps debug these issues further. Referencing #4165 as it is related. Docs should reflect 'experimental' env flags which would suggest that settings might not work until they are stable enough.

I emphasize that this problem also happens to me.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_6cc0f157-205e-4d8d-b8ae-0e03b09e9502/pull/1 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-target_6cc0f157-205e-4d8d-b8ae-0e03b09e9502.git

Docs Build status updates of commit 9458801:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-BuildPermissionInsufficientError] Your repository https://github.com/VSC-Service-Account/docs-archive-test-source has enabled Docs Build service account. It seems that at least one of the account, e2ebd3, does not have Read permission to the repo. Please ask your repo admin to grant correct permission to service accounts (refer to this document: https://review.docs.microsoft.com/en-us/engineering/projects/ops/engdocs/how-to-grant-service-account-permission-in-your-repository?branch=master) and then retry the build.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Truncated source field in error dialog cannot be expanded

Does this issue occur when all extensions are disabled?: Yes/No (Didn't check, but it doesn't seem extension related).

VS Code Version: 1.67.1
OS Version: macOS 12.3.1

Steps to Reproduce:

Open up a Python file, with a missing formatter.
An error dialog appears offering alternate formatters.
The source of the error, "Source: Python (..." is truncated and cannot be expanded.
In this instance, I'm assuming it's telling me which version of Python on my machine is throwing the error, but I can't tell.

Expected behaviour:

The dialog outside of the buttons/actons has hover states and a click state, and even changes cursor to the "hand" icon to suggest some sort of interaction - I found myself clicking on it hoping it would expand and show the complete source string.

(Ping for @daviddossett and @misolori 😉 )

Working on gardening leave, @clocky? 😉
This is always a challenge when notifications use lots of buttons. But even so the inline treatment makes this all but inevitable. FWIW you can hover to view the whole string in lieu of a better solution.

Not sure where this could be relocated to have more horizontal room in the current notification design. The obvious risk here is adding a bunch of vertical height to each notification. It's worth exploring at some point though.

(I'll have you know I'm officially between jobs, like an actor. 🕶)
The main thing with the current approach is that there's an affordance with the mouseover state that something should happen if you click on the notification, but nothing does. My assumption (read: hope) was that it was going to expand the notification vertically. Something like the below:
Default state:

Expanded state:

I agree the tooltip unblocks this specific scenario I was having though.


🐛 Control flow is panicking

Environment information
Main

What happened?
Our Ecosystem CI detected a panic on the following file. The panics arise from the Control Flow Graph.
I managed to reduce the bug to the following code:
if (xs) {}
for (const y of ys) {
  () => {
    for (const z of zs) {
      break;
    }
  };
}

Here is the reported panic:
Biome encountered an unexpected error

This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue:

Source Location: /home/conaclos/project/biome/crates/biome_control_flow/src/lib.rs:35:21
Thread Name: biome::worker_1
Message: index out of bounds: the len is 4 but the index is 5

index.js internalError/panic  INTERNAL  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ processing panicked: index out of bounds: the len is 4 but the index is 5

  ⚠ This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.

Expected result
Biome should not panic
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

Strangely, I can no longer reproduce the bug. Closing.


Kernel Explainer and Class Activation Map

Hi, this is a question for my curiosity.
I have recently used SHAP Kernel Explainer on the result of my CNN, and I saw it quite similar to the class activation map. I'm curious about the similarity and difference of them. Could you please clarify that for me? Thank you!

Well the class activation map from my understanding just averages the last convolutional channels in a global max pooling network weighted by their impact on the output of a class. If the values in the convolutional channels were SHAP values then this would be the right way to combine them to get SHAP values for a specific class. The values in the last convolution layers are not of course SHAP values, they are just the activations, but I suppose if they are mean centered then then they might behave similarly.

Thank you for clarification!


File names in 03_COP22_Simulations_Prep.R

@baboyma "^Spectrum extract .*.xlsx$" file is not shared in the Google drive. Does it have a different name in the folder you shared
https://github.com/baboyma/dp-naija/blob/main/Scripts/03_COP22_Simulations_Prep.R

File was loaded into google drive folder.


feat: impl WriteExt for &mut BytesMut

Closes #147 147

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


pip does not install the last version of the code

Hi,
When I try to run :
iris = Table("dbo", "iris", [     Float("sepal length (cm)", 4, 8),     Float("sepal width (cm)", 2, 5),     Float("petal length (cm)", 1, 7),     Float("petal width (cm)", 0, 3) ], 150)
from the script here https://github.com/opendifferentialprivacy/smartnoise-sdk#script, I get:
AttributeError: 'DataFrame' object has no attribute 'm_tables'
I have also errors with the following lines.
I guess that when I run pip install, I do not get the last version of your code.

Hi, thanks for reporting this.  It looks like the sample was not updated, since execute_private_query now returns a Dataframe, so there is no need to convert the result to a DataFrame after the call to execute_private query.  Can you check that the following runs (just replacing that line with df = rowset):
`import sklearn.datasets
import pandas as pd
from opendp.smartnoise.sql import execute_private_query, PandasReader
from opendp.smartnoise.metadata import CollectionMetadata
from opendp.smartnoise.metadata.collection import Table, Float
sklearn_dataset = sklearn.datasets.load_iris()
sklearn_df = pd.DataFrame(data=sklearn_dataset.data, columns=sklearn_dataset.feature_names)
iris = Table("dbo", "iris", [
Float("sepal length (cm)", 4, 8),
Float("sepal width (cm)", 2, 5),
Float("petal length (cm)", 1, 7),
Float("petal width (cm)", 0, 3)
], 150)
schema = CollectionMetadata([iris], "csv")
reader = PandasReader(sklearn_df, schema)
rs = reader.execute('SELECT AVG("petal width (cm)") FROM dbo.iris')
rowset = execute_private_query(reader, schema, 0.3, 'SELECT AVG("petal width (cm)") FROM dbo.iris')
df = rowset
with pd.option_context('display.max_rows', None, 'display.max_columns', 3): print(df)`

Hi thanks for your answer. No it doesn't work.
I have an error when I run
iris = Table("dbo", "iris", [     Float("sepal length (cm)", 4, 8),     Float("sepal width (cm)", 2, 5),     Float("petal length (cm)", 1, 7),     Float("petal width (cm)", 0, 3) ], 150)
I get :
`TypeError                                 Traceback (most recent call last)
 in
----> 1 iris = Table("dbo", "iris", [
2     Float("sepal length (cm)", 4, 8),
3     Float("sepal width (cm)", 2, 5),
4     Float("petal length (cm)", 1, 7),
5     Float("petal width (cm)", 0, 3)
/usr/local/lib/python3.8/site-packages/opendp/smartnoise/metadata/collection.py in init(self, schema, name, rowcount, columns, row_privacy, max_ids, sample_max_ids, rows_exact)
73         self.sample_max_ids = sample_max_ids
74         self.rows_exact = rows_exact
---> 75         self.m_columns = dict([(c.name, c) for c in columns])
76         self.compare = None
77     def getitem(self, colname):
TypeError: 'int' object is not iterable`
But when I run
iris = Table("dbo", "iris", 150, [     Float("sepal length (cm)", 4, 8),     Float("sepal width (cm)", 2, 5),     Float("petal length (cm)", 1, 7),     Float("petal width (cm)", 0, 3) ])
It works

OK, that definitely looks like you have an older version.  Can you try pip show opendp-smartnoise?  It should show version 0.1.1.  If you have an older version, you can upgrade with pip install --upgrade opendp-smartnoise.
You can also uninstall (with pip uninstall opendp-smartnoise) and then reinstall.

I have Version: 0.1.1 even when I upgrade it but since I work on Google Colab it should install the last version

This error reproduces in Colab for me.  It looks like a problem with out wheel file.  I'll update when we verify and fix.

I m facing the same issue when I follow the pip install . I tried checking out git to overwrite the site-package/folders. I was able to get rid of it but ended in a sql syntax error for all basic queries being modified by smartnoise.
Is some mismatch in version causing this?
pandasql.sqldf.PandaSQLException: (sqlite3.OperationalError) near "(": syntax error
[SQL: SELECT COUNT ( DISTINCT primary_key ) AS keycount, SUM ( petal_width__0_cm_1_ ) AS sum_petal_width__0_cm_1_, COUNT ( petal_width__0_cm_1_ ) AS count_petal_width__0_cm_1_ FROM ( SELECT *, ROW_NUMBER ( ) OVER ( PARTITION BY primary_key ORDER BY RANDOM ( ) ) AS row_num FROM ( SELECT primary_key AS primary_key, CASE WHEN petal_width__0_cm_1_ < 0 THEN 0 WHEN petal_width__0_cm_1_ > 3 THEN 3 ELSE  petal_width__0_cm_1_ END AS petal_width__0_cm_1_ FROM df_for_diffpriv1234 ) AS clamped ) AS per_key_random WHERE per_key_random.row_num <= 1]
(Background on this error at: http://sqlalche.me/e/13/e3q8)

I m facing the same issue when I follow the pip install . I tried checking out git to overwrite the site-package/folders. I was able to get rid of it but ended in a sql syntax error for all basic queries being modified by smartnoise.
Is some mismatch in version causing this?
pandasql.sqldf.PandaSQLException: (sqlite3.OperationalError) near "(": syntax error
[SQL: SELECT COUNT ( DISTINCT primary_key ) AS keycount, SUM ( petal_width__0_cm_1_ ) AS sum_petal_width__0_cm_1_, COUNT ( petal_width__0_cm_1_ ) AS count_petal_width__0_cm_1_ FROM ( SELECT *, ROW_NUMBER ( ) OVER ( PARTITION BY primary_key ORDER BY RANDOM ( ) ) AS row_num FROM ( SELECT primary_key AS primary_key, CASE WHEN petal_width__0_cm_1_ < 0 THEN 0 WHEN petal_width__0_cm_1_ > 3 THEN 3 ELSE  petal_width__0_cm_1_ END AS petal_width__0_cm_1_ FROM df_for_diffpriv1234 ) AS clamped ) AS per_key_random WHERE per_key_random.row_num <= 1]
(Background on this error at: http://sqlalche.me/e/13/e3q8)

Keeping the other thread alive for the sqlite issue. closing this one since we updated the package on pypi

Keeping the other thread alive for the sqlite issue. closing this one since we updated the package on pypi


Multiple monitors full support

The root width / height is calculated and applied just considering the first monitor. This cause some strange behavior while moving window by keyboard in the second monitor

Now a second monitor at right of the first is supported. No configurations or new dependencies


Initial commit of serverspec test harness

This is a start towards #101. Opening up for initial review, with some caveats -

Not been developed/tested yet on Digitalocean
Not been developed/tested yet on AWS

Outstanding questions/thinking

Should we run serverspecs by default, or have them off and allow them to be run by toggling some variable?
tests/properties.yml references the hostnames > specs we need to test. Our hostnames are not consistent across providers (vagrant/do/aws) - we either need to make them consistent, or handle it otherwise
We probably need to increase the test coverage (but this could be done afterwards)
On vagrant the slave test fails (the slave service is not running correctly - this is a bug in the vagrant provisioning) - created #172
On vagrant the master test fails to see the marathon service - I believe this is because there are 2 startup scripts for marathon (one via upstart and one via init.d) and it was looking at the init.d one, which was stopped - so we might need to alter that test or use the init.d startup script - both appear to work fine (I manually started up with both scripts and they both worked)

think serverspecs should be a variable and we use tags like alberto mentioned above. fixed marathon spec by running it under upstart.

#172 is fixed now, so is the marathon service. So just need to fix the tags


forcing the eventType to be PageAction. If you use the directives of …

…angulartics on href the eventType will be click. New Relic is not accept that as valid.

I have not heard back on the documentation from our new relic rep yet.

@gampleman I think I have made all the changes you requested.


Failure when security group doesn't include cidr range

Description :
When testing against a security group that only includes rules with a source_security_group_id (rather than a cidr range), the following stacktrace is generated:
Traceback (most recent call last):
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/radish/stepmodel.py", line 120, in run
              self.definition_func(self, **kwargs)  # pylint: disable=not-callable
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/terraform_compliance/steps/steps.py", line 385, in it_condition_have_proto_protocol_and_port_port_for_cidr
              check_sg_rules(plan_data=security_group['values'], security_group=looking_for, condition=condition)
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/terraform_compliance/common/helper.py", line 62, in check_sg_rules
              condition=condition)
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/terraform_compliance/common/helper.py", line 138, in validate_sg_rule
              network_intersection = is_ip_in_cidr(given_network, defined_network_list)
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/terraform_compliance/common/helper.py", line 43, in is_ip_in_cidr
              if check_if_cidr(ip_cidr) and check_if_cidr(ip_network) and IPNetwork(ip_cidr) in IPNetwork(ip_network):
            File "/Users/michaelw/Virtualenvs/terraform_012/lib/python3.7/site-packages/terraform_compliance/common/helper.py", line 33, in check_if_cidr
              matches = re.match(regex, value)
            File "/Users/michaelw/.pyenv/versions/3.7.5/lib/python3.7/re.py", line 173, in match
              return _compile(pattern, flags).match(string)
          TypeError: expected string or bytes-like object

To Reproduce
1.
resource "aws_security_group" "efs" {
  name        = "test-efs"
  description = "Test EFS Security Group"
  vpc_id      = "vpc-cc963da9"

}

resource "aws_security_group_rule" "efs_allow_all_outbound" {
  type              = "egress"
  from_port         = 0
  to_port           = 0
  protocol          = "-1"
  cidr_blocks       = ["<IP_ADDRESS>/0"]
  security_group_id = aws_security_group.efs.id
}

resource "aws_security_group_rule" "efs_access" {

  type                     = "ingress"
  description              = "access to EFS"
  from_port                = 2049
  to_port                  = 2049
  protocol                 = "tcp"
  source_security_group_id = "sg-0143f76c834026ebd"
  security_group_id        = aws_security_group.efs.id
}

terraform-compliance -f compliance -p output.plan.json --with-traceback
Python Package
See above

Feature: Security Groups should be used to protect services/instances (Standard)
  In order to improve security
  As engineers
  We'll use Security Groups as a Perimeter Defence

  Scenario Outline: Avoid Well-known insecure protocol exposure on Public Network for ingress traffic (AWS Standard)
    Given I have AWS Security Group defined
  	When it contains ingress
    Then it must not have <proto> protocol and port <portNumber> for <IP_ADDRESS>/0

  Examples:
| ProtocolName | proto | portNumber |
| Telnet       | tcp   | 23         |

Expected behavior :
Rule passes as the port isn't open to <IP_ADDRESS>/0.
Tested versions :

1.0.58

Terraform v0.12.17
provider.aws v2.45.0

Python 3.7.5

Additional context
Possible fix is to add a check that ip_network is not None at line 43 (function is_ip_in_cidr) of terraform_compliance/common/helper.py such as:
def is_ip_in_cidr(ip_cidr, cidr):
    for ip_network in cidr:
        if not ip_network:
            continue
...

Thanks for the issue :tada:
It looks like this will be the first patch version of 1.1.0 which is just released. Currently the problem occurs due to inexistence of cidr_blocks. Since reading the security group data that is referred within aws_security_group_rule.efs_access in your example could be impossible, I will just make a change where it will skip that resource if there is no cidr_blocks data defined.

Can you please have a try with 1.1.1 release ?

Closing the issue due to inactivity. Please do not hesitate to open a new issue if the problem still persists.
Thanks!


Local graphQL endpoint for UI development

Raised by community member in discord
IS: When developing a UI, the current flow seems to be to deploy the smart contract to Berkeley, and interact via Auro with the deployed contract. This is an awful DX because developing the UI often goes hand in hand with developing / fixing the contract itself. The implied flow seems to be frequent redeployments / refunding, which can't be right.
SHOULD: It's easy to spin up an environment which simulates production, entirely locally. In particular, should include a local graphQL endpoint that Auro can talk with.

I think the easiest way to do this that’s guaranteed to be compatible with Mina is to create some new small ocaml executable that shares the graphql logic. A lot is functored already but we’d probably need to functor a little more to fully make it work. And/or add a flag to the main Mina binary that runs the graphql server but disconnects it from actually doing anything dangerous

Can we close this with Lightnet available now? :D

Can we close this with Lightnet available now? :D

I think so @MartinMinkov unless anyone else thinks otherwise.

Definitely!


Build and Push tutor+docker

Please, use matrix(https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs) to

Please, use matrix[1] to make parametrized builds for multiple versions

https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs


How to retrieve the selection range/CFI from "onselectionchange"?

Hey there. Thanks for developing this library.
I am very interested in replicating some Annotation features from Foliate into the foliate-js demo, so I can read books on my Android device.
The first step is obviously to be able to retrieve the selection from the document and get the CFI range. I have added the following to the Reader.onLoad():
doc.addEventListener('selectionchange', this.#onselect.bind(this))
//Where onselect is:
#onselect(range) {
        let selection = window.getSelection()
        console.log("Selection", selection)
        console.log("Range", range)
}

But neither the selection nor range seem to give me specific enough targets to work with.
Hope you can help me.

The book is rendered in an iframe, so you need to use something like event.currentTarget.defaultView.getSelection().


Issue with hostname / ip in inventory

I tried to bootstrap a cluster with an inventory that contains an IP for the only server in the inventory. When I started the deployment process, I saw that the server setup was skipped completely whilst the agents were started (of course whilst not being able to contact the master). I found the reason in line https://github.com/k3s-io/k3s-ansible/blob/master/roles/k3s/server/tasks/main.yml#L3 where the hostname is checked against the entry in the inventory. This does not work in case the ip is provided in the inventory? Changing it to
  when: ansible_all_ipv4_addresses[0] == groups['server'][0]
gives me server, but I see that this is not the ideal solution.
Am I missing a piece here or should the handling be made more robust for the server setup?!
Thanks for the great work!

Just fixed with 3b9982013a6209845f8caf7580b22df947c64903

Thanks, that was quick!


File not found errors for instrumentation and pattern

When trying out the examples, I noticed that when the instrumentation or pattern file is misspelled, the error message was not very useful. In the parse methods, the file is attempted to be opened with File::open(p)?;, but that error doesn't print out the path that wasn't found.
I'm new to rust, but my suggestion would be to add if !p.is_file() {             return Err(FileDoesNotExistError(p.into()));         } before the call to File::open(p)?, which let's us use the FileDoesNotExists error that's already defined in error.rs.

cargo run -- --pattern ./assets/patterns/standard --instrumentation ./assets/instrumentations/lindrum --samples ./assets/samples/linndrum --tempo 140 --repeat
Error: IOError(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })
error: process didn't exit successfully: target\debug\rudiments.exe --pattern ./assets/patterns/standard --instrumentation ./assets/instrumentations/lindrum --samples ./assets/samples/linndrum --tempo 140 --repeat (exit code: 1)

Using custom Error enum as suggested, output becomes:

Error: FileDoesNotExistError("./assets/instrumentations/lindrum")
error: process didn't exit successfully: target\debug\rudiments.exe --pattern ./assets/patterns/standard --instrumentation ./assets/instrumentations/lindrum --samples ./assets/samples/linndrum --tempo 140 --repeat (exit code: 1)

Closed by https://github.com/jonasrmichel/rudiments/pull/2.


Placeholder for cameras locations on maps (with their specs) is missing

The creation of a workflow to collect, process and display the data on the map is needed here.
As long as we don't have the real data, let's create the function and placeholder in order to incorporate the real data later.

thinking one step ahead, nice!

Oops, just saw that I had missed this issue!
I was wondering if we could not reuse the information box in the upper right of the map to display essential data about the camera and then, reveal more if the user clicks on the marker?
Let me explain a bit better:
If the user simply hovers the marker, we could display for instance the name of the camera (which basically corresponds to the infrastructure on which it is located for now), its coordinates and its status (alert or not) in the information box here:

And then, once users know that they have found the camera they were looking for, they can click on the marker to get more information in a separate object (last alert, orientation, possibly last captured image...).
Just an idea but let me know what you think of this 😊

I'm note very good at UX but it's an interesting suggestion @pechouc.
As the data will maybe take a few second to display and will take place with the popup, your idea might solve this UX issue.
Will push this in my PR ;)


[FEAT] Add fastfetch to winget

Before requesting a new feature

A lot of features are not enabled by default. Please try fastfetch --list-modules and fastfetch -c all.jsonc to see if it has been supported
Fastfetch supports Command module, which can be used to grab output from a custom shell script. Please check if it fits your needs

// ~/.config/fastfetch/fastfetch.jsonc
{
    "modules": [
        {
            "type": "command",
            "text": "/path/to/your/script",
            "key": "Feature Title"
        }
    ]
}

Wanted features:
Include fastfetch in winget source so that Windows users can install fastfetch with winget install fastfetch or something similar.
Motivation:
Winget is the offical command line package manager released by Microsoft. It is easy to use and pre-installed in new versions of Windows. As some users may not have scoop installed and prefer to use winget instead, it will be more convenient if it is possible to directly install fastfetch with winget.

https://github.com/microsoft/winget-pkgs/blob/master/manifests/f/Fastfetch-cli/Fastfetch/2.13.1/Fastfetch-cli.Fastfetch.installer.yaml


Publish is a manual action, not a github event

As promised, a fix when #50 inevitably wasn't quite right :)

Just republished 0.30.1, but it still does not seem to work?


New 'Calendar Heat' map

Hi Argo,
I would like to display a heat-map to a calendar control to do things such as show booking times etc....  see the picture below:

this project does something similar heatmap

@pomeara it looks not complex. what's can I do for you?

it looks like a nice new control to add to bb


Add trusted subtitle uploader option

@Diaoul this is a initial idea as discussed here: https://github.com/Diaoul/subliminal/pull/694#issuecomment-250394866

Adds new param "-t" to only download from trusted subtitle uploaders
Added for OpenSubtitles and LegendasTV
Added tests

If trusted mode is "disabled" then current max score will still be 359
If trusted mode is "enabled" then max score will be 459
I choose 100 for trusted so it can be easier to "read" scores
Sure I can change it
At least to me i would like to only download from trusted uploaders
But I see that some users may want not-trusted uploaders so the trusted option could be like trusted_only,  prefer_trusted so:
trusted_only : only download from trusted
prefer_trusted: will download sub if matches score even if not trusted sub available

@Diaoul how to proceed then?

I don't have the answer to this question. I think we need to differentiate how a subtitle matches a video and what user would prefer. The compute_score function is becoming a sort of mix between the two which is not a good thing.


Set default-pathname-defaults sensibly in tutorial/example.lisp

The suggested changes should mean that anyone else who clones cl-cairo2 can just run "make" in the tutorial directory. The second patch just ignores the automatically generated files.

Can we rename WRAP-SURFACE to something like CREATE-SURFACE-FROM-FOREIGN or similar for consistency?  Also EXPAND-{FROM,TO}-FOREIGN for type translators.  thanks,

Pulled a tutorial patch from another source, but if you merge, prefer yours.  thanks,

Sorry for the spam from the following pushes: I didn't realise they get added to the pull request. I'm going to close this, and merge the changes from your end and rename wrap-surface as you suggest. Then I'll make a pull request on a feature branch so that it doesn't get polluted. Bleurgh.
Thanks for the feedback!

Erk. Ignore the new-surface-with-check question: I've just re-read the code and see that that's exactly what it does. I'll make a new pull request with the tidied up version soon.

Just following up to make everyone 100% aware, the license has changed to BOOST (BSD-variant).  All previous contributors have given approval, but if you do not and I have merged your contribution, please let me know so it can be reversed.  Thanks,


[Feature Request]: Upgrade to v1.7  kfp-tekton

Feature description
This issue tracks all issues required to upgrade to kfp-tekton 1.7
Issues:

https://github.com/opendatahub-io/data-science-pipelines/issues/116
https://github.com/opendatahub-io/data-science-pipelines-operator/issues/242
https://github.com/opendatahub-io/data-science-pipelines-operator/issues/241
https://github.com/opendatahub-io/data-science-pipelines-operator/issues/240

Note
1.7 Requires tekton 0.47. This is introduced in OCP Pipeline 1.11. The earliest OCP adoption for this is 4.12. Which means We have to wait until OCP EOL's 4.11 before proceeding with this change.
Some additional commits that may need to be backported for 1.7 from upstream:

https://github.com/opendatahub-io/data-science-pipelines/pull/125 (only need substitution commit, not ee3cf4a)
https://github.com/kubeflow/kfp-tekton/pull/1259

References:
[1] https://docs.openshift.com/container-platform/4.13/cicd/pipelines/op-release-notes.html
[2] https://github.com/kubeflow/kfp-tekton/tree/v1.6.6/sdk#project-prerequisites
[3] https://access.redhat.com/support/policy/updates/openshift#dates

We need to do #120 first, and this will also depend on getting to a minimum supported openshift version that supports OpenShift Pipelines Operator with a sufficient Tekton engine (may not even be released yet).  This will likely be on hold for a while until then.

Migrated to Jira: https://issues.redhat.com/browse/RHOAIENG-1614


Add jQuery 3.6.4, remove 3.6.2

@Rick-Anderson to publish - thanks!

Fixes https://github.com/dotnet/AspNetCore.Docs/issues/28616

@ChrisSfanos  thanks for the mention. Changes will be live in 10 minutes or less.


Investigate "missing" releases for HsapDv and MmusDv

HsapDv and MmusDv are being updated, but there have been no official releases since 2020.
CELLxGENE dataset schema requires:

Ontology
OBO Prefix
Release
Download

Human Developmental Stages
HsapDv
2020-03-10
hsapdv.owl

Mouse Developmental Stages
MmusDv
2020-03-10
mmusdv.owl

2020-03-10 is the same version available on EBI OLS.
@jahilton noted a recent response to a Lattice inquiry indicating that a valid term in the 2020 release is now obsolete.
There are ongoing updates in https://github.com/obophenotype/developmental-stage-ontologies/tree/master/src/hsapdv but it does not seem to follow the regular release cadence of other ontologies.

We need to assess whether there's an impact on the development stage filters.

Reached out to Frédéric Bastian & got a quick response...

Confirmed that the latest versions live here:

https://github.com/obophenotype/developmental-stage-ontologies/tree/master/src/hsapdv/
https://github.com/obophenotype/developmental-stage-ontologies/tree/master/src/mmusdv/

Was surprised that purl does not link to the latest version & is going to contact OBO Foundry
Noted that a formal release is complicated due to the repo hosting ~20 ontologies (dev stages of various organisms). They are currently exploring splitting each ontology into its own repo.

Looking at just the HsapDv updates - did a comparison here
Some deprecated terms have terms available with slightly larger ranges, making them easy migrations, but other deprecated terms would need to be reinvestigated or they'd be migrated to a much larger range.

Related note on UX filtering hierarchy from @jahilton:
While I’m looking at it, I’ll even toss out a proposal for filters after the bump…
(taking in to account the deprecated terms and several current terms with 0s in our data for very granular terms)

prenatal stage [HsapDv:0000045]

embryonic stage [HsapDv:0000002]
fetal stage [HsapDv:0000037]

postnatal stage [HsapDv:0010000]

pediatric stage (0-15y) [HsapDv:0000264]

newborn stage (0-28d) [HsapDv:0000262]
infant stage (28d-1y) [HsapDv:0000261]
child stage (1-5y) [HsapDv:0000265]
juvenile stage (5-15y) [HsapDv:0000271]

adult stage (15y+) [HsapDv:0000258]

young adult stage (15-40y) [HsapDv:0000266]
middle aged stage (40-60y) [HsapDv:0000267]
late adult stage (60y+) [HsapDv:0000227]

prenatal [MmusDv:0000042]

embryonic [MmusDv:0000002]
fetal [MmusDv:0000031]

postnatal stage [MmusDv:0000092]

immature (0-6w) [MmusDv:0000043]
mature (6w+) [MmusDv:0000110]

prime adult (6w-18m) [MmusDv:0000136]
young adult (6w-10m) [MmusDv:0000153]
middle aged (10-18m) [MmusDv:0000135]

late adult (18m+) [MmusDv:0000134]

We have started organizing the data in the corpus that are using now-deprecated terms
On the lattice/dev-ont-migration branch there are 2 files:

automigrate_terms.json - a deprecated-to-new term mapping for the terms that we feel can be automigrated (the new term range includes the full deprecated term range and the range expands minimally as to not justify full re-curation)
donor_updates.json - per Collection per donor_id mapping of new terms. We will continue to add to this as we dig through existing corpus and as new submissions come in

When the time comes, migrate.py should be able to read in the metadata from these
Will update here once we have addressed existing metadata

We have assessed all existing metadata in CELLxGENE - private & public and annotated the donors with deprecated dev_stage terms to updated dev_stage terms. We'll soon be pushing those mappings to the files in the branch noted above.
We have also added a step in the curation QA to check for newly submitted donors that will need similar mapping.

Incorporated into #884 for a cleaner copy.


Disable password autofill entirely with configuration flag

Feature Description
Gitea should expose a configuration flag like PASSWORD_AUTOFILL in the security section to prevent autofilling of password fields throughout the application.  This means that every input[type="password"] element will receive or modify its autocomplete attribute to be "off".
While an extreme security measure and not an issue with Gitea itself, it is sometimes required by companies, as all passwords saved by the browser can be leaked if the computer is compromised, or if the computer is shared by multiple people.
Screenshots
No response

It doesn't work .......... Chrome does bad on this problem.
There are a lot of comments here: https://github.com/go-gitea/gitea/blob/main/templates/base/disable_form_autofill.tmpl
If the  autocomplete=off works for you, welcome to share your experience.

In a situation where this is being required by the company. Hopefully this gains some traction.

Thanks for opening this ticket, as @wxiaoguang this isn't really achievable via front end. I suggest you look into group policies to disable. I'll close this now.


fix(utils/observable): update to use actions type in the reducers

Ref #2235
Ref 97e41a55d05644b6684c6cb165b65b115bd416eb
Why

closes:
Check off the following:

[x] Confirm that I checked changes to branch which I am merging into.

I have validated included files
My code does not generate new linting warnings
My PR is not a duplicate, check existing pr`s

[x] Confirm that the I have completed the self-review checklist.

[x] Confirm that my changes meet our code of conduct.

@odinr Can you have a look at this. Looks like your PR #2235 broke the build.


[5.8]Router::match() has been despreted at lumen

addRoute is ok

Thanks, but 5.8 is closed for all but security fixes.

so,how can I get this change by composer.json?

@GrahamCampbell 5.8 doesn't even get security fixes anymore: https://laravel.com/docs/7.x/releases#support-policy


Not working in Edge

The demo pages are not rendered.
Console has an error:

Unable to get property 'cssText' of undefined or null reference: webcomponents-lite.js (5,42707)

Some extra info:

The problem is not related to latest work, I have checked out first commits and still happens.
It does not happen when running any visual example, but in demos. So it could be related to some changes in helpers.

It happens the same in vaadin-button. Actually the problem is in the https://github.com/vaadin/elements-demo-resources common.html inport


Optimize reading handshake request and response JSON

Handshake request and response JSON is loaded into a JObject when read.
Could save cycles and allocations by reading JSON with JsonTextReader like JSON protocol now does.

Yes!

Also NegotiationResponse


Bug in DateTime operations

Adding one day to a DateTime return incorrect information. The code to reproduce:
`void main() {
DateTime dt = DateTime.now();
DateTime debut = DateTime(dt.year, dt.month, dt.day, 22, 0);
for (int i=0; i<10; i++) {
debut = debut.add(Duration(days:1));
print("$debut");
}
}`
The result obtained:
2023-03-23 22:00:00.000 2023-03-24 22:00:00.000 2023-03-25 22:00:00.000 2023-03-26 23:00:00.000 2023-03-27 23:00:00.000 2023-03-28 23:00:00.000 2023-03-29 23:00:00.000 2023-03-30 23:00:00.000 2023-03-31 23:00:00.000 2023-04-01 23:00:00.000

Please read the documentation: https://api.dart.dev/stable/2.19.5/dart-core/DateTime/add.html
final today = DateTime.now();
final fiftyDaysFromNow = today.add(const Duration(days: 50));

Notice that the duration being added is actually 50 * 24 * 60 * 60 seconds. If the resulting DateTime has a different daylight saving offset than this, then the result won't have the same time-of-day as this, and may not even hit the calendar date 50 days later.
Be careful when working with dates in local time.

In short, what your code is doing is adding 24 hours to the debut date but since debut is based on localtime, it is getting hit by DST (Daylight Saving Time) which makes one of the day to have another length than 24 hours.
In general, you should work with DateTime objects in DST which is not affected by DST.

Duplicate of: https://github.com/dart-lang/sdk/issues/37449


Analyze 538 ELO model performance

[ ] Download / format CSV data with 538 history of MLB data
[ ] Ascertain who the favorite was for each game and whether the favorite won
[ ] Plot the fraction of games that the favorite has won over the history of baseball
[ ] Do the probabilities generated by the ELO model actually bear out with real baseball data

Raw data csv file:

https://projects.fivethirtyeight.com/mlb-api/mlb_elo.csv

Background information on ELO rating

https://en.wikipedia.org/wiki/Elo_rating_system


Question about timing on Blob Storage @azure/storage-blob

I'm using @azure/storage-blob, uploading 5 very short files, then listing them. I use iterators and await and I think I'm doing it correctly but when I go to list the 5 files, it doesn't work unless I have a timer waiting for a few seconds.
I want to be able to upload then list immediately but get all the uploaded files. There must be some sort of async/timing step I'm missing.
The source code is here and my timer is commented out.
If you leave the timer commented out, it doesn't list any files. If you add the timer back in, it lists the files correctly.
What should I be doing?

I believe the issue is due to the use of forEach in your upload code:
  files.forEach(async (file) => {
    console.log(`\t\t${currentItem++} - ${file.fileName}`);
    await (
      await containerClient
        .getBlobClient(file.fileName)
        .beginCopyFromURL(file.url)
    ).pollUntilDone();
  })

forEach will return as soon as the callback function returns for each element in files. Note that internally, forEach does not await the callback function. So what's happening is that the callback function returns a promise (since it is async), and then forEach returns before those promises actually resolve.
To fix this, you can use a regular for loop like this:
for (const file of files) {
    console.log(`\t\t${currentItem++} - ${file.fileName}`);
    await (
      await containerClient
        .getBlobClient(file.fileName)
        .beginCopyFromURL(file.url)
    ).pollUntilDone();
}

Thank you for your help - I think I have what I need.


Mod crashes without modmenu.

When minecraft is started with this mod, it checks the code for modmenu api classes; and if it cannot find those then the game normally should just continue without it.
However instead of continuing, it crashes instead by saying that it cannot find anything.

https://pastebin.com/raw/tR1TeQvS - crash-report file in case it's needed.

Perhaps make a fix to this one if capable or is it impossible?

I'll push a fix tonight

Late response but: Thanks for reminding me that a fix is being pushed soon.

43 "nights" latter, and this has been fixed in v1.0.1


fix(ci): fix release names

No need to specify the release and tag names, otherwise they'll have refs/tags/ prefix
Don't mark releases as drafts or prereleases

Codecov Report
Base: 53.87% // Head: 14.51% // Decreases project coverage by -39.36% :warning:

Coverage data is based on head (f24dd59) compared to base (85ff4a9).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #525       +/-   ##
===========================================
- Coverage   53.87%   14.51%   -39.36%
===========================================
  Files          50       50
  Lines        3900     3900
===========================================
- Hits         2101      566     -1535
- Misses       1539     3262     +1723
+ Partials      260       72      -188

Flag
Coverage Δ

integration-test
12.78% <ø> (-46.08%)
:arrow_down:

unit-test
3.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

After I shuffled stuff around in https://github.com/Kong/kubernetes-testing-framework/commit/2bbe4667b958ff9448275cd47704ba66a67d813f I kept it and didn't notice it wasn't necessary anymore hence remove it in here.


Unit/integration tests with Jest + Testing Libary

What feature would you like to have?
We probably should have some unit/integration tests which use Jest + Testing Library. Relying on Cypress for most tests will be too slow, and will not test the internals of the app.
What problem will this feature solve?
Increased confidence in the app.
Do you want to help make the feature?
Yes
Is there anything else we need to know?
No response

Follow this guide when the time comes.


KAFKA-1400: Fix link in num.standby.replicas section

Replace broken link with link to State restoration during workload rebalance. Fixes KSTREAMS-1400: AK docs: broken link in section on num.standby.replicas.

@joel-hamill PTAL

Huh, turns out the link was correct in this repo.


Add page tracking to documentation pages

Describe the Issue
Add site tracking functionality to the github pages feature of MRTK to track visitor count for each individual page.
Feature Area
Site tracking
Existing Doc Link
If this is about something in an existing document, please provide link
Additional context
https://webapps.stackexchange.com/questions/103618/analytics-on-github-pages

MRTK should still have page analytics

Now that documentation is hosted on docs.microsoft.com, we collect visitor count date.


Does it make sense to optimize Gaussian Process hyperparameters during active learning?

Hi,
In the active learning for regression example, we have used gaussian processes. While the sklearn version seems to keep its length scale and noise parameters static ( maybe i am doing something wrong), other implementations allow for modifying these using gradient descent ( for e.g. gpytorch).
Under batch learning circumstances we would have the whole train set , and tuning the hyperparameters to maximize log likelihood makes sense, but does it also make sense to do so while performing active learning, and having datasets of really small sizes?

Hi!
I have absolutely zero knowledge regarding this question :) I don't want to state something which is false so I rather not give any advice here. Instead, I'll keep this issue open, hoping that someone will know the answer.

ok thanks.
On Mon, Nov 9, 2020 at 12:16 PM Tivadar Danka<EMAIL_ADDRESS>wrote:

Hi!
I have absolutely zero knowledge regarding this question :) I don't want
to state something which is false so I rather not give any advice here.
Instead, I'll keep this issue open, hoping that someone will know the
answer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/modAL-python/modAL/issues/107#issuecomment-723798942,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABR2NXP6F7H7AGX53USWGXTSO6F4LANCNFSM4TG4F4ZA
.


Add get relationship and get related tests

This PR adds tests for get_relationship and get_related tests.
I also updated model file and then changed one get_collection test so that it will pass with new model change.
Overall coverage is at 65% with the serializer.py file at 68%.

👍 to merge, but see my comment above.


Audit/System Logging of docker API calls

This should be all set. 6f6265e  adds system logging. 6379a57 adds audit logging on top.

This has been sent upstream.


newsfeed, calendar: Standardize user-agent.

Add node and MagicMirror version.

If you can fix the conflict, I can merge it. :)

Done!


ChatGPTUnofficialProxyAPI GPT-4

Describe the feature
Greetings,
I have openaI API access but chatgpt-4 is not available for me yet, at the same time I have a plus chatgpt account with Chatgpt 4 accesss. can i use the ChatGPTUnofficialProxyAPI to  access the chatgpt 4 ( knowing that the limit is about 25 msgs every 3 hours).
Looking forward to hearing a response.

yes you can use gpt4,just past the parameter like this    model: 'gpt-4'

@trentluo The model: gpt-4 does not exist"

const uapi = new ChatGPTUnofficialProxyAPI({
accessToken:"xxxxxxxxxx",
apiReverseProxyUrl: "https://ai.fakeopen.com/api/conversation",
completionParams: {
model: 'gpt-4',
temperature: 0.2,
}
});
it does not work, still show gpt3.5 model, I also want to know how to make it supprot gpt-4, looks dont have place to input puid

@trentluo The model: gpt-4 does not exist"

I have the same prob :/

Same here
I have access to ChatGPT 4 and wanted to use ChatGPTUnofficialProxyAPI with it :(

This project is undergoing a major revamp; closing out old issues as part of the prep process.
The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.


ui-react-starter: doens't compile

Having went through the setup guidelines and picking react starter, running npm run watch results in an error:
Built at: 02/02/2021 9:37:48 AM
              Asset       Size  Chunks             Chunk Names
   icons/icon_D.png  568 bytes          [emitted]
<EMAIL_ADDRESS> 1.01 KiB          [emitted]
   icons/icon_N.png  535 bytes          [emitted]
<EMAIL_ADDRESS>995 bytes          [emitted]
         index.html  186 bytes          [emitted]
           index.js   2.47 MiB    main  [emitted]  main
            main.js  897 bytes          [emitted]
      manifest.json   1.76 KiB          [emitted]
Entrypoint main = index.js
[./node_modules/css-loader/dist/cjs.js!./src/styles.css] 563 bytes {main} [built]
[./src/controllers/CommandController.jsx] 365 bytes {main} [built] [failed] [1 error]
[./src/controllers/PanelController.jsx] 364 bytes {main} [built] [failed] [1 error]
[./src/index.jsx] 1.61 KiB {main} [built]
[./src/panels/Demos.jsx] 272 bytes {main} [built]
[./src/panels/MoreDemos.jsx] 546 bytes {main} [built]
[./src/styles.css] 520 bytes {main} [built]
[os] external "os" 42 bytes {main} [built]
[uxp] external "uxp" 42 bytes {main} [built]
    + 21 hidden modules

ERROR in ./src/controllers/PanelController.jsx 4:2
Module parse failed: Unexpected character '#' (4:2)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| import ReactDOM from "react-dom";
| export class PanelController {
>   #id = null;
|   #root = null;
|   #attachment = null;
 @ ./src/index.jsx 4:0-68 22:28-43 38:32-47

ERROR in ./src/components/ColorPicker.jsx 5:2
Module parse failed: Unexpected character '#' (5:2)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| import "./ColorPicker.css";
| export class ColorPicker extends React.Component {
>   #sldR;
|   #sldG;
|   #sldB;
 @ ./src/panels/Demos.jsx 2:0-60 5:99-110
 @ ./src/index.jsx

ERROR in ./src/controllers/CommandController.jsx 8:2
Module parse failed: Unexpected character '#' (8:2)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| import ReactDOM from "react-dom";
| export class CommandController {
>   #id = null;
|   #root = null;
|   #Component = null;
 @ ./src/index.jsx 5:0-72 10:28-45
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR<EMAIL_ADDRESS>build: `webpack --mode development`
npm ERR! Exit status 2

Also maybe you can share what is this syntax? I haven't seen anything like that before
#id = nullk
#root = null
#Component = null
#dialogOpts = {}

If someone picks up #6 we may just want to close this issue in favor of having a modern functional example.

@aviral243 let's make sure the new sample compiles with both yarn and npm.


500 Internal Server Error

Hi, I'm having issues using the Intervention Image library. It works on my localhost, but when i try using it on my server, it throws a 500 Internal Server Error. I suspect that I am missing some kind of php module or something, but i'm not sure. (It's an amazon EC2 server)
It's failing on this line:
$image = Image::make($file)->encode('jpg', 90);
$file is a base64 encoded image file. It's throwing a 500, but no error message of any kind.

Well, check the server logs. You should be able to get a full strack trace of what exactly is failing. This error is vary vague. Maybe you don't even have Imagick or GD enabled...


[BUG] Snorlax settings crashes/freeze if phone is locked.

While making these issues on github my phone locked after checking the current settings in the module.
Turns out it messes up if the phone locks. Would a pokeflute help?

Yea, v 1.4.0 will fix the issue... thanks you
Heres the fix commited
https://github.com/igoticecream/Snorlax/commit/2e8175e1dabf508a46ff8e47f60e6590e592f80b#diff-77884299e536aad81635e9d7d135f9edL61


Test/Support gRPC xDS

gRPC has added native support for xDS. We should figure out if they can work with Pilot, add tests if possible, etc.

Done, as part of pilot/pkg/networking/grpcgen


Too many files

Relevant Gradle config:
implementation 'com.github.bright:slf4android:0.1.5'

I am trying to log to a file, and in my activity I have this:
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    FileLogHandlerConfiguration fileHandler = LoggerConfiguration.fileLogHandler(this);
    fileHandler.setFullFilePathPattern(new File(getApplicationInfo().dataDir, "activity.g.%u" +".log").getAbsolutePath());
    LoggerConfiguration.configuration().addHandlerToRootLogger(fileHandler);
}

And each time I enter the activity (without exiting the app, just going to another activity in it) it creates a new file. After entering two time to the activity I have
activity.0.0.log
activity.0.1.log

Is this expected behavior? Can I configure it to have only one (rotated) file?

 Create a global instance of this variable to avoid this. Best put in your application class.


Incorrect losses_q

losses_q is supposed to be all losses on query set across all tasks. But it is defined as below. That's all the losses on query set for all the update_step for task i, not all the task.
losses_q = [0 for _ in range(self.update_step + 1)]
Is this an error?

losses_q is supposed to be all losses on query set across all tasks. But it is defined as below. That's all the losses on query set for all the update_step for task i, not all the task.
losses_q = [0 for _ in range(self.update_step + 1)]
Is this an error?

so, you are suggesting losses_q = [0 for _ in range(self.update_step*task_num + 1)]  to accumulate all query loss?

No it is not an error.          +=.           [-1]


Constify more API

Most of these changes are related to methods that use OBJ_cmp() or OBJ_dup().

+1

Can this be merged? @richsalz @levitte

i approve but it's your decision :)
If you do, I would close internal MR's 1129 and 986.

Merged

Done’t forget: If you do, I would close internal MR's 1129 and 986.
--
Senior Architect, Akamai Technologies
IM<EMAIL_ADDRESS>Twitter: RichSalz
From: Richard Levitte<EMAIL_ADDRESS>Sent: Thursday, August 04, 2016 11:04 AM
To: openssl/openssl
Cc: Salz, Rich; Mention
Subject: Re: [openssl/openssl] Constify more API (#1376)
Closed #1376https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openssl_openssl_pull_1376&d=DQMCaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=4LM0GbR0h9Fvx86FtsKI-w&m=yrXiN-JCM6NznYSMyb4MfWfjgRu9nZ1jL_HvUe3-CiY&s=hpw45RIzCodmeYrvJciCOWRoF4fmCALdfo7Vws3XwHc&e=.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openssl_openssl_pull_1376-23event-2D745414232&d=DQMCaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=4LM0GbR0h9Fvx86FtsKI-w&m=yrXiN-JCM6NznYSMyb4MfWfjgRu9nZ1jL_HvUe3-CiY&s=Y7ezW-mbnhC9Ecu-AP2VYn8oqQYoKXyZgJEs8l59xzQ&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AG-5FilJQzd5ycFcyU33Bo5cGI6zXGb88qks5qcf9pgaJpZM4JaTTG&d=DQMCaQ&c=96ZbZZcaMF4w0F4jpN6LZg&r=4LM0GbR0h9Fvx86FtsKI-w&m=yrXiN-JCM6NznYSMyb4MfWfjgRu9nZ1jL_HvUe3-CiY&s=iZeZtjQEpS_2bTsXklAMdl8xxuOqa1HHzJUBnFgKzJE&e=.


GW2PAO crashed after resuming from sleep mode

I'm not yet sure what caused it exactly. I resumed my laptop, and that's when the program crashed. The offending code is on line 335 of the WvWController: https://github.com/SamHurne/gw2pao/blob/master/GW2PAO/Controllers/WvWController.cs#L335
The exception said that the latestObjectivesData collection did not contain any matching elements.

I have not been able to reproduce this for several months (pretty much since I switched to using Prism for bootstrapping the application). I'm going to go ahead and close this for now. If it reappears, we can reopen the issue.

FWIW, I see a crash message each time I resume from sleep using the latest build (3.5.5744.31293).  I'm running windows 7 Pro.
It's a minor trouble, since I have to launch GW2 anyway.  Mentioning it only because I see this on the issue list.


Error at login page.

Not able to figure out the error at login.

The problem is that UniTime is not able to connect to the database:
java.sql.SQLException: Access denied for user 'timetable'@'localhost' (using password: YES)

You can try to connect to the database as the timetable user using mysql tool with the following options (also trying to use the same port and protocol as the UniTime application):
mysql --user=timetable --password=unitime --port=3306 --host=localhost --protocol=TCP timetable

If you are able to connect to mysql with "mysql -utimetable -punitime timetable" but not with "mysql --user=timetable --password=unitime --port=3306 --host=localhost --protocol=TCP timetable", the problem could be that TCP/IP networking is disabled.
This assumes that you have created the timetable database (using schema.sql) and populated it either with blank-data.sql or wobegon-data.sql, and that you are using the default credentials (username timetable, password unitime).
That said, if you need to change the database connection properties, including the connection credentials, you can put the new properties in the catalina.properties file (typically something like /etc/tomcat9/catalina.properties), or you can put them to a separate unitime custom properties file. In the second case, you just need to put one line in the catalina.properties pointing to the unitime custom properties file, for example:
tmtbl.custom.properties=/etc/tomcat9/unitime.properties

and put the connection properties in the /etc/tomcat9/unitime.properties. For example:
connection.url=jdbc:mysql://localhost:3306/timetable?serverTimezone=Europe/Prague&useSSL=false&allowPublicKeyRetrieval=true
connection.driver_class=com.mysql.cj.jdbc.Driver
connection.username=timetable
connection.password=FIXME
default_schema=timetable
dialect=org.hibernate.dialect.MySQLInnoDBDialect
tmtbl.uniqueid.generator=org.hibernate.id.TableHiLoGenerator

More details are available at help.unitime.org/installation#customization.

Thank you @tomas-muller .
Issue got resolved.

Is there any error in the Tomcat log?
Also, what version of UniTime are you using? If it is 4.1, could you update it to the latest 4.7 or 4.8 and try again?

Yes, there is error in Tomcat log.
Currently i am using 4.1_bld231 version. If I am updating to lastest version then i am not able to see the login page i get 404 not found error at login page.
Also the lastest versions are not getting compatible with MySQL JDBC connector .

Why are you creating a new issue with the same question?
Following up in issue #175.

The issue #174 showed up as closed so i created the new issue.


Training leverage slowly with very deep polynet

We train very deep poly net with 10 GPUs and 30-batch-size. It leverages very slowly (almost no leverage).
Is there any solution?

There are several tricks list in paper may help,

initialization by insertion: firstly train a relatively shallow model, say normal Inception ResNet, and then use it to initialise very deep poly net. You can find detail from figure 9 of paper
choose small residual scale, 0.3 is the default residual scale, but you can use smaller value to get better  convergency rate.
synchronize batch normalization: if you use 10 GPU and total 30 batch size, which means there is only 3 samples in a GPU, this is too small, you can apply synchronize batch normalization to get larger batch size
about stochastic paths: this strategy is used overcome overfitting, in the early stage of training, this is not necessarily.

Thanks for answering.
I want to train the normal Inception ResNet, and make some changes in polynet.
As I don't have python caffe scripts on polynet for simple operation. Can you offer me one?
Thanks a lot!


Accept a list on server.crontab for minute/hour/day

https://github.com/Fizzadar/pyinfra/commit/662c5c162fe2d5aeec6395b06b99c68a8d93a934


Compatibility with Bronze mod

Basically, if the mod detects the presence of Bronze (MR) installed, it would provide also the correspondent set of tools for that metal as well.
According to the author:

This means that the bronze sword is halfway between iron and diamond in terms of damage, though the diamond sword has far greater durability.
The bronze axe on the other hand is on par with iron and diamond axes in terms of damage, but has slightly better durability than iron, while having far less than diamond.

can i provide a texture?

Basically, if the mod detects the presence of Bronze (MR) installed, it would provide also the correspondent set of tools for that metal as well.

Good idea - I was also already thinking about integrations with other mods, but in a more "general" way.
For older versions, I wanted to see whether the OreDictionary has some, e.g., "ingotBronze" entry and if that's the case, enable the corresponding weapon(s) and recipes.
For newer versions, I wanted to achieve something similar, but with tags instead.
Should be doable, but requires quite some effort.

can i provide a texture?

Of couse you can :)
However, please take your time, since I don't know when this might/will be done!

I have done some minor work to show how to easily integrate Bronze into BWM: Legacy: https://github.com/ThexXTURBOXx/bronze/commit/217d0039e5d417cc967454175198c2bedd315252
Currently, it only adds a boomerang entity, but the rest can be integrated the exact same way :)
One thing to note: I was stupid and had all the item attributes private...
So, mod creators need to wait for the next version of BWM: Legacy in order to properly integrate their mod (affects only this cosmetic change)
When the next version (probably only a minor release this time) is released, I will notify the mod author.
You can also already do it now, if you want. Then, she/they can already work on this while I fix up this mod.
If you do contact her, please include a link to this very comment here as well, so that as much information as possible is given.

Pingging @Khazoda to let her be aware

Pingging @Khazoda to let her be aware

The redesign for Bronze Battle Axe

I think I will move this issue to a more appropriate repository :)