[Feature Request]:

Is your feature request related to a problem? Please describe.
how to use autogen with aws bedrock models?
Describe the solution you'd like
as of now autogen  support with url_base request, instead of this we need to directly send request to aws bedrock model
Additional context
No response

I have added for the anthropic models available through bedrock.
You can pull from here until the merge is done to main branch.
Below is the example usage
import autogen
config_list = [
{
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"aws_access_key":accessKey,
"aws_secret_key":secretKey,
"aws_session_token":sessionTok,
"aws_region":"us-east-1",
"api_type": "anthropic",
}
]
assistant = autogen.AssistantAgent("assistant", llm_config={"config_list": config_list})


Feature/httpsing

PLS TO REVIEW

ngrok is included for easier https
redirects to https on current domain during screenshare

The only question is, how to fix this?

:+1:

I've been working on this project and i have never seen that error message Jeff. What were you trying to do?

LGTM

@ruffrey you can't fix that :) you just have to have faith that it does work on github pages, it might be an idea to output the chrome store url if we get that message, so you can manually go and install it... not that it would help, because you have to add the ngrok domain to the extension's manifest file

I vote to output the chrome webstore url in the error message.

@chadxz I was on an ngrok subdomain. Can we *.ngrok.com the extension URL or something?

oh dang @danjenkins
(missed your comment)

probably so
On Fri, Mar 27, 2015 at 2:55 PM, Jeff H. Parrish<EMAIL_ADDRESS>wrote:

@chadxz https://github.com/chadxz I was on an ngrok subdomain. Can we *.
ngrok.com the extension URL or something?
—
Reply to this email directly or view it on GitHub
https://github.com/respoke/web-examples/pull/10#issuecomment-87071153.

Hmmm.... that seems kinda risky..... but what risk....

Who can edit the chrome web store package?

I can edit it, i'm just about to pop out, so I'll do this once I'm back

I'll wait to merge it until steve gives the verbal OK, at minimum.

Looks good to me. Commit at will.


How to use docker image?

At a guess, I assumed that the docker image would have license_finder CLI in its path:
$ docker run -ti licensefinder/license_finder license_finder
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"license_finder\": executable file not found in $PATH".

What is the way that works for using the docker image?

We actually normally mount our local workspace to the docker container and run /bin/bash --login. Then we cd into the directory in which we want licenses found, and run the license_finder cli.
docker run -v ~/workspace/:/workspace/ -it licensefinder/license_finder /bin/bash --login
cd /workspace/licensefinderable-project
license_finder

Out of curiosity, what would you expect the behaviour to be if you ran the CLI directly like you did?

@drnic We just released version 3.0.4. With this release, we also added a wrapper script (dlf) that helps run license_finder in docker. It mounts your current working directory as /scan in the docker image.  There's a bit more info in README.md, but you should essentially be able to run dlf "bundle install && license_finder report"

Out of curiosity, what would you expect the behaviour to be if you ran the CLI directly like you did?

I would expect that, the license_finder binary is executed in the /scan directory. So I could run the license analysis just like:
docker run -v /path/to/my/project:/scan licensefinder/license_finder


Pagelet Response isn't updating the view.

The pagelet is being generated and when I click on the link it sends out the Asynchronous request, it just doesn't wrap the response with PageletRails.pageletArrived so the HTML content isn't being updated.

@jubeless have you included javascript file?


chore: update bedrock client retrieval and aoss index creation

This PR contains two refactors:

Updates how the bedrock client is retrieved to use the boto3 library per the documentation here.
Updates aoss indexing to OpenSearchVectorSearch from langchain_community vectorstores as defined here.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

LGTM, one question: did you try with both AOSS and provisioned cluster ?

LGTM, one question: did you try with both AOSS and provisioned cluster ?

Answer is yes


403 ERROR

Got 403 ERROR. Does it seem that this has been blocked forever?
P.S. It was working fine and I was able to book an appointment 1 hour ago.

yes, this has stopped working. getting this issue-
++++++++++++++++++++++
Unable to Create OTP

ERROR: The request could not be satisfied

403 ERROR
The request could not be satisfied.

Request blocked.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.

If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: UMQFkijztlNRnHr0ohMJ9wGSXzgwl7op1FvOzIyd5N3JcOM8VoLQjQ==

Press any key to continue . . .

Oh well.. I guess the party is over

would it stilll work via the unix route?

Probably not. It might be related to secret key in the generate OTP endpoint. So far I could get away with a hardcoded value.
https://github.com/pallupz/covid-vaccine-booking/blob/65470fc132c3cbd2099b1a38ced3f654c65d6cb4/src/utils.py#L413

anyway to bypass this by using the OTP generated from mobile phone/ cowin website ? i know that the same passwd remains valid for an extended period of time..

so if we login thru the cowin website and generate the password but use it from yr platform.. ?

Nope that's not working either

So this is probably not related to the key

Hmm. have they changed the APIs and hence would require an equivalent change in yr code as well.
I tried to generate an OTP from the Cowin s own website directly and was able to do so.
https://apisetu.gov.in/public/marketplace/api/cowin/cowin-public-v2#/User Authentication APIs/generateOTP

@sixfooter that api doesn't work. Check on the cowin website the api they use is the same as the one in the script

It might be worth extracting out just the check_calendar functionality since that api doesn't need otp verification. @pallupz what do you think?

@kashishgrover Sure but there are plenty of web-based solutions for those.
The main idea here was that people can get notified and book an appointment from a single window. In calendar monitoring, by the time we get a notification, then attempt to login to the portal, wait for OTP, select the beneficiary and everything else, slots would be filled.

@sixfooter I dont think that's the issue here.

If anyone figures this out, please do let me know

Not sure if the rate limiter banner described on the banner is new https://apisetu.gov.in/public/marketplace/api/cowin/cowin-public-v2
A discussion has started here https://github.com/cowinapi/developer.cowin/issues/19

@kashishgrover Sure but there are plenty of web-based solutions for those.
The main idea here was that people can get notified and book an appointment from a single window. In calendar monitoring, by the time we get a notification, then attempt to login to the portal, wait for OTP, select the beneficiary and everything else, slots would be filled.

Agreed, IMO this was too good to be true anyway...

About this: https://github.com/cowinapi/developer.cowin/issues/19#issuecomment-832821755
I tried adding the header info too. Dint work for me.

Looks like their API endpoints have changed to:
/v2/auth/generateOTP
and
/v2/auth/confirmOTP
respectively now. Although plugging the same in my Rust implementation (WIP) didn't help...

Yea. I'm building it again now.

Does this work on macOS?
https://github.com/cowinapi/developer.cowin/issues/19#issuecomment-832825274

And we are back!

@pallupz  - the pincode flow is working but the state/district option isn't - possibly a minor bug, can you please have a look.

That is weird. They both use the same header.

Found the bug. Will patch soon

is there any update over this ?

@pallupz  what was the issue?

To get the state and districts, earlier we dint need to pass a header. Now we have to.

It should be working now @franklingeofrancis

@vinayd2 many thanks for the discussion link

wonderful work @pallupz .!

script stops working after the session ends and it requires a new otp with the following error:
Token is INVALID.
Try for a new Token? (y/n): y
Try for OTP with mobile number XXXXXXXXXX? (y/n) : y
generate_token_OTP() missing 1 required positional argument: 'request_header'
Exiting Script

oh

exe file still not working

Can you expose it as Open APIs so that we can create UI Interface. And great work @pallupz

@bitshiftr the issue has been fixed

@mvmilanjain what error are you getting? I dont have the faintest idea on how to "expose it as Open APIs"

@pallupz Please check above image

@pallupz I facing this issue while generating OTP. In first call only.

@mvmilanjain Looks like duplicate of #17

I downloaded the modified script and ran it, but it failed again after the 1st session with the same error...

at which stage?

@bitshiftr Could  you try now?

with the latest version

will try and report back

@pallupz How can i use generateMobileOtp api from postman?

@mvmilanjain you can see the details in this function: https://github.com/pallupz/covid-vaccine-booking/blob/774b6bf6aa21b8f694bbfbfdc9a2d0a255b86d6a/src/utils.py#L413
PS: Code quality is shit

still facing the same issue:
generate_token_OTP() missing 1 required positional argument: 'request_header'
Exiting Script

Are you running exe or python?

Try python, it is working for me. EXE should work too. Will check tomorrow

python - downloading zip every time you asked me to test

It did work here. See the timestamp

strange.. I am on a mac, but that shouldn't make a difference.. sorry about the dumb question, but you committed the change and pushed it, right?

I did. The exe creation is set on GitHub Actions. So I always push.

so strange.. I downloaded the latest zip and ran it.. will try tomorrow morning again.. btw, thanks much for doing this - really appreciate your gesture during the crazy time we are going through

Also, if you look at the code, generate_token_OTP function is always called with two params.

this is super strange - in the file I downloaded, the code says:
tryOTP = input('Try for a new Token? (y/n): ')
if tryOTP.lower() == 'y':
if mobile:
tryOTP = input(f"Try for OTP with mobile number {mobile}? (y/n) : ")
if tryOTP.lower() == 'y':
token = generate_token_OTP(mobile)
token_valid = True
else:
token_valid = False
print("Exiting")
else:
mobile = input(f"Enter 10 digit mobile number for new OTP generation? : ")
token = generate_token_OTP(mobile)
token_valid = True
as you can see it's missing the 2nd param

just realized what's going on - the main branch is updated but the auto book branch is still 14 hours behind. Can you please merge the changes - thanks!

yea, my bad - just use the main branch

no worries, thanks for confirming.. last request - if you can add the ability to choose vaccine type, that would resolve my biggest requirement :)


fix(persisted-scope): fix patterns usage (fix #25)

PR Draft for fixing #25(explanation)
Current change breaks old .persistent-scope files deserialization.
Can be fixed by moving the pattern conversion in deserialization.
Using metadata with Tauri v1.
Suggestion for Tauri v2
Could be easier/cleaner if FsScopeEvent gave the "type" of allowed path(i.e : file, directory, recursive directory).
Might want to make a PR in Tauri itself.
As a Rust/Tauri neophyte, there must be a better way to handle that mutex/remove it.
Might be fixable when if we reuse the old serialization method if we move the pattern conversion in deserialization.
Any suggestions are welcome

We can't merge it as long as it depends on a git version of tauri (and it would be ideal if we can implemented it in a way that does not need a tauri update to not break apps that can't upgrade tauri for some reason - that part is not a requirement)


[HUDI-7207] Sequentially delete complete instant files in archival to prevent inconsistency during data reads

This PR is more about discussing with everyone how to fix the existing issues.
Assuming there are 4 instants in a Hudi table that need to be archived, with timestamps in ascending order (as they have been sorted after obtaining instantToArchive): these are 1.deltacommit, 2.deltacommit, 3.deltacommit, and 4.deltacommit, corresponding to the files a.parquet, b.parquet, c.parquet, and d.parquet, respectively.
In the archiving code, the deletion of instants is handled by the following code snippet:
if (!completedInstants.isEmpty()) {
    context.foreach(
        completedInstants,
        instant -> activeTimeline.deleteInstantFileIfExists(instant),
        Math.min(completedInstants.size(), config.getArchiveDeleteParallelism())
    );
}

Different instants are distributed across different threads for execution. For instance, in Spark with a parallelism of 2, they would be distributed as 1 and 2, and 3 and 4. Consequently, there may be scenarios where instant 3 is deleted before instant 2. If instants 1 and 3 are deleted while 2 and 4 are not yet deleted, a query request obtaining visibleCommitsAndCompactionTimeline at this point would find a timeline with instants 2, 4, and so on.
During a query, this would result in the data under c.parquet, corresponding to instant 3, becoming completely invisible. I believe this is a very problematic situation, as users could unknowingly retrieve incorrect data.
Here are a few potential solutions I've considered:
1.Prohibit concurrent deletion of completed files. While this would ensure the order of deletions, it could significantly impact performance, which is not an optimal solution. Serially deleting instants may be slower, but as there are usually few to remove, it is an acceptable stopgap. The change can be undone when a superior solution is found.
2.Implement a solution similar to a marker file, recording which instants are in the process of being deleted, and then remove these instants directly from the timeline during reads.
3.Based on the second solution, incorporate archiving by adding archive instants to the timeline, allowing for direct retrieval of pending archives during data reads. Here I have a question: why don't previous archives have corresponding instant action?
Change Logs
delete complete instants serially.
Impact
None
Risk level (write none, low medium or high below)
Low
Documentation Update
None
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

We encountered a similar issue internally. I think a viz will better help users understand this issue here:

Explanation
There are 2 jobs that were technically running concurrently, 1 writing to BR, the other writing to CL.
BR started and ended right before CL started.
BR start: 2024-04-16 12:22:42.348
BR end: 2024-04-16 12:26:13.996
CL start: 2024-04-16 12:26:20.836
CL end: 2024-04-1612:28:02.426
The HoodieSparkCOW table was initialised at around 2024-04-16 12:26:27, right when BR was performing a an archival.
The archival was not performed in order, causing holes (non-contiguity) in the timeline  while org.apache.hudi.client.SparkRDDWriteClient#doInitTable is being performed at 2024-04-16 12:26:27
The smallest instant<PHONE_NUMBER>2036275 was only deleted at 2024-04-16 12:26:28.378.
This causes the executors to be initialised with a metaclient that had the same holes/gaps in the timeline as the table is SerDe to the executors.
When running #getLatestBaseFilesBeforeOrOn during tagging and when fetching smallest basefiles, org.apache.hudi.common.model.HoodieFileGroup#getAllBaseFiles -> org.apache.hudi.common.model.HoodieFileGroup#getAllFileSlices -> org.apache.hudi.common.model.HoodieFileGroup#isFileSliceCommitted -> org.apache.hudi.common.table.timeline.HoodieDefaultTimeline#containsOrBeforeTimelineStarts requires a contiguous timeline to determine if a fileslice is valid.
public boolean containsOrBeforeTimelineStarts(String instant) {
 return instants.stream().anyMatch(s -> s.getTimestamp().equals(instant)) || isBeforeTimelineStarts(instant);
}

Due to the non-contiguity of the timeline where<PHONE_NUMBER>2629902 is missing from the timeline, bb1ffcb0-46f8-4a91-aeb3-f1ff6987b4c2-0_15-20-4932_20240414122629902.parquet is no longer a valid fileslice, which is why it was not listed as a candidate file for tagging, causing a record to be updated to be inserted again into another parquet file, hence causing a duplicate key issue.


A few Android externs

Some files had "\r" as line ending. That's why the diff is weird in some places.


Operation not allowed during spreadsheet import

Describe the bug
Uploading a spreadsheet to staging raises this error and doesn't seem to update the project information.

This is possibly due to the fact that ingest tries to update the project right after creating the submission which is then in the pending uneditable status
spreadsheet used here
To Reproduce
Steps to reproduce the behaviour:

Go to staging
Upload the spreadsheet to an existing project ticking the update project box
Wait
See error

Expected behaviour
I expect the spreadsheet to be uploaded correctly and to update the project information
Environment

[ ] prod
[x] staging
[ ] dev

Browser

[ ] Chrome
[ ] Safari
[ ] IE
[x] Firefox

I think we should mention here that this error occurs on the dev but not on the staging

https://api.ingest.dev.archive.data.humancellatlas.org/submissionEnvelopes/637c3ee347c4220149185387/commitGraphInvalidEvent

https://api.ingest.dev.archive.data.humancellatlas.org/submissionEnvelopes/637c3ee347c4220149185387/commitGraphInvalidEvent
Resource not found!

What we've tested (on dev):
update project from spreadsheet flow:

new project (blank, ignore validation)
upload spreadsheet, update project
project is updated, marked as valid, submission is imported, only invalid due to missing files
test passed

New project flow:

new project, fill out project form
upload spreadsheet, DO NOT update project
submission is imported, only invalid due to missing files
test passed

I re-produced this error on the 'staging' but for the new projects (not for already existed)
A new project might be with the filled-out fields or not (the error will be in any case)

It makes sense to reproduce this locally. @Mil-m to ask help from @MightyAx

What is the status here? @Mil-m ?

Hi @gabsie
Is it Ok if I'll update it today evening or tomorrow morning?

For this moment ->
need to fix the 'import a spreadsheet' request in Postman to receive a successful import (it will not guarantee that there will be any logs about the current error, possibly we will have to look at the logs inside docker containers)

@MightyAx and @Mil-m to discuss this today

@Mil-m and @MightyAx to talk when available

@Mil-m and @MightyAx to talk when available

How to reproduce this error locally:

launch ingest-core (with 2 docker containers)
launch ingest-broker
(don't forget to delete the submission for the current project)
use script to import the submission

the error is here:
SecurityAspetcs.java ->
if (!isAllowed) {
throw exceptionClass.getDeclaredConstructor().newInstance();
}
(we can receive this exception in the 'run' mode but not in the 'debug' mode)

Some new developments with this bug:
on dev it happens occasionally, with some relation, to the duration of the wait between project creation and spreadsheet upload.
If the duration is short - the problem happens always, and is noticeable in the ui and in the logs also when doing a programmatic submission.
When we wait a long time, over a minute or so, the problem is less like to happen. Sometimes it shows in the ui "submission not editable", sometimes it does not show the error in the ui, but the project metadata is not updated, evident by validation errors in the ui as well as an ERROR for the PATCH to project in the logs.
Let's discuss some ideas.

Milena and Alexie to discuss this today

Ideas
In ingest-client importer:

poll for submission_url .editable True

Then patch project

or in ingest-core

change this check allowed statement to isSystemEditable

Preference towards changes in ingest-client importer rather than core

The change should be polling for isEditable on the submission, then run self.submitter.update_entity(project)

Error found, fix attempted, and now error is no longer reproducible after following initial steps.
Error has now been fixed.

This was not unit tested, and failed unit tests.
I've opened a new PR which moved the polling functionality into the ingest_api class, making it easier to unit test.

Also, I think the polling feature as written would always hit the cache without checking the source.
I've fixed that in PR#65

Red Herring Error: No Such Table
There was an integration test error
An error occurred importing the file. no such table: responses

From memory I think this error occurs because the underlying sqllite gets reset (possibly due to threading) and requests-cache doesn’t just re-init, it throws this error.
I’ve seen this intermittently since we introduced requests-cache
But when I re-ran the test I got a different error, it's possible the no such table: responses error is only masking other errors, hence why it is intermittent.

Actual Error
On repeating the test the 'actual' error is revealed
Fixing it
New broker PR #49 fixing the integration tests on dev, deployment to staging in progress

Staging integration tests
The first bulk upload still suffered the no such table issue,
Restarting the integration tests succeeds.
Perhaps the no such table issue only effects the first bulk import each time the broker restarts?

@Mil-m the staging environment is ready for your testing.

@MightyAx I don't see any problems on dev (uploaded 2 spreadsheets for new projects). Should I check the same on staging also? Or should I check something else there?

yes, please test on the staging environment.

@MightyAx Don't see any problems on staging also:
staging ->
https://staging.contribute.data.humancellatlas.org/submissions/detail?uuid=b090143f-6d5d-4d8c-a63a-244a986a88f4&project=9dcc88af-b50f-47c8-a93a-f0ef1e4cef3d
https://staging.contribute.data.humancellatlas.org/submissions/detail?uuid=e672e0d6-2eaa-4e95-ba08-a2ee01008174&project=dff56200-4091-48e8-8174-fe6a479be8da
dev ->
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=613496e3-4b71-4c8c-831b-39674ee4cd15&project=a2013e2d-2bfd-4589-bf02-4e7f5ab479c3
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=9760f3fd-8ddb-46f0-9e68-8477f1c488c5&project=60a9551f-880b-4937-b8db-10f12ed2b40a

@Mil-m to test if this is reproducible (seems fixed)

Everything looks fine
https://staging.contribute.data.humancellatlas.org/submissions/detail?uuid=4f9754c1-4b7c-4942-a031-7baf8bfcc696&project=dff56200-4091-48e8-8174-fe6a479be8da

Everything looks fine
https://staging.contribute.data.humancellatlas.org/submissions/detail?uuid=4f9754c1-4b7c-4942-a031-7baf8bfcc696&project=dff56200-4091-48e8-8174-fe6a479be8da

Everything looks fine


How to reduce tracing overhead when sampler not tracing

Requirement - what kind of business use case are you trying to solve?

I'd like to leave tracing ON at all times and then use the remoteSampler to collect a few traces (or more on demand). If I never create a Tracer, then the overhead with the noop trace is about 400 nsec. However, even if I set the sampling probability to 0, I still pay an over head of 1200 nsec (which remains the same even if my sampling probability is 1). Looks like we pay the entire tracing overhead even if nothing is reported. Is there a way to pay the lower overhead if the sample decides that a particular span is not going to be sampled/reported? Like inject a noop span if the probability suggests that this span should not be reported?
Problem - what in Jaeger blocks you from solving the requirement?

With the higher overhead, we need to rethink how to enable tracing.
Proposal - what do you suggest to solve the problem or improve the existing situation?

Inject a noop span if the trace will not be collectedd.
Any open questions to address

Although this would apply to all tracer languages, are you using a particular language for testing performance?
Usually the generation of ids can take time - so it would be good to avoid generating the unique span ids if we know the trace isn't being sampled. However some samplers use the trace id to determine if should be sampled - so would atleast (currently) still need to generate the trace id.
If using the Java client, it would be good if you could do a local build, and make the generation of a child span id dependent on whether the trace is sampled?
For services that initiate a trace it may not make a big difference, but potentially for subsequent services the overhead may be far less.


Support AVX512FP16 instruction set

Support AVX512FP16 instruction set.
ref: https://github.com/klauspost/cpuid/commit/6903d4066801

Hi @zchee thanks for the PR! It does seem that we never originally put a Makefile build dependency between the cpu/cpu.go file and the generated *.s files. When a new X86Feature bit flag is introduced—AVX512FP16 in this case—it will change the values of the subsequent flags due to the use of iota. This is fine, but we need to regenerate the *.s files as they use the same bit flags during build time.


Fix 404

Happened to click on this and it 404ed.  I did a quick search and I think I found the same content under a different URL.

Thanks for maintaining the repo. The examples are nice, but some others are down right now.

Yeah, most of the time my Heroku instances are down I guess. If there are any permanent 404s we should definitely address it.


How to use metal-petal in Mac OS

Checklist

[ O ] I've read the README
[ O ] I've searched for existing GitHub issues

AppKit
Xcode 14.2
IOS 16.3
IPhone X
minimum deploy target IOS 13, Mac OS 10.15
Very thanks for Metal-Petal.
I adapt metal-petal to my IOS app and it's very well work
And, I install metal-petal framework to my Mac OS app  using SPM and cocoapods
But, MTIImageView is not recognized in  my app.
How to use metal-petal in my Mac App ?
Thanks for you effort.

MTIImageView is not available on macOS currently. You can create a CGImage from a MTIImage then use a NSImageView to display that image.

Very Thanks for your reply. I will adapt it to my app

You can use the PixelBufferPoolBackedImageRenderer from the example project to get a CGImage along with a CVPixelBuffer from a MTIImage. It's more efficient by utilizing a CVPixelBufferPool.


istio virtual service added

In some cases we have to use Istio instead of Ingress.
For this I added the VirtualService to helm chart.

Thanks for the PR.
Currently the value "istio.enabled" is not evaluated and the VirtualService rendered every time.
Please add a if clause around the VirtualService similar to the "hpa" template to only render it if enabled.

And another change - the ".Values.istio.host" field should be an array to list multiple names (e.g. different external/internal names) similar to the ingress template.
And please add the default "labels" and "annotations" to the VirtualService too (same as ingress again).


dropdown menu's text is invisible when navbar is stick to top

Greeting,
Nice template for bootstrap rookies!
I notice that when navbar is stick to top, the text is white and the background is transparent. But the background color of navbar's dropdown menu is white too, which makes the text invisible.
I fixed it up with the default color-schema used in other places of the template.

I haven't modified clear-blog.min.css yet because I am not familiar with it.

I will look for a solution to this one, thanks!


Fix URL validation to allow for kubernetes types

allow for a dot in the URN's module part

fixes #384

We have a good indication from the codegen. Not that much.
A mitigation strategy would be to unify the Pulumi model in a common module, for things like type tokens and urn's, but we'd have to carefully think it through first. The benefit would be that we already know from codegen what kind of exceptions are there in all schemas in the registry. The downside would be the coupling and more moving parts.


Fix ValueError when type_field isn't hashable

But why?

We allow user to configure some service via yaml and parse it using marshmallow, user inputs messed up causing exceptions.

Looks good, thank you!


"Invalid space provided"

I'm trying to reproduce the results of the paper, but as a local job instead of using SLURM. But when I'm trying to do the pretraining it gives me:
[research] Replay Buffer not distributed. Alloc-ing in __init__

Followed by this message:
File "/home/ml2022/David/few-shot-preference-rl/research/utils/utils.py", line 210, in np_dataset_alloc
raise ValueError("Invalid space provided")  # ValueError: Invalid space provided

The input I'm trying to give to the script is as follows:
python tools/run_local.py --entry-point scripts/metaworld/collect_policy_dataset.py --cpus 8 --gpus 1 --valid-gpus 1 --arguments benchmark=ml10 tasks-per-env=25 cross-env-ep=10 within-env-ep=25 expert-ep=15 random-ep=2 epsilon=0.1 num-workers=10 noise-type=gaussian path=datasets/mw
What should I do in order to get the local job to work? Is there something wrong with the input parameters?

same issue

I checked the type of space, it is gymnasium.spaces.box.Box. I suppose this should be similar to gym.spaces.Box, so I just modified a little bit to avoid the asserted error.

Hi!
I'm not 100% sure what this issue is. However, note that the code was developed 3+ yrs ago, and so was intended for gym==0.23.1 not gymnasium.

Closing due to inactivity.


Decrease players per traitor

About the PR
Necessitated by latejoin tators #9783, making tators much more plentiful. Changed CVars setting players per traitor to 7, max traitors to 9 (maxpop 65 / 7 ≈ 9).  Previously, there could be as much as 12 traitors in a 65-player game, a good 1/5 of the crew. Hopefully will increase round lengths and let crewmates do their jobs fairly consistently again.
Changelog

:cl: Anthemic

tweak: Decreased traitor count. Hail NanoTrasen!

@Elijahrane pointed out that more than 65 people can play in a round; people die or leave. Reverted max traitor count change


ops: upgrade vite

This upgrades vite and our @urbit/vite-plugin-urbit so that we don't have problems loading desk.js and session.js also vite is now just faster.
Tested locally using npm run dev
PR Checklist

[ ] Includes changes to desk files
[X] Describes how you tested the PR locally (test ship vs livenet)
[ ] If a new feature, includes automated tests
[ ] Comments added anywhere logic may be confusing without context

I merged develop into this branch to see what the e2e tests would do, and it's failing on the post note with markdown test for some reason

Yeah, failing locally for me as well. Seems to consistently be "Target closed" issues in Tests 1 and 3.
will investigate..

3 looks like something changed without how imports are done I'll check on that. 1 seemed like it wasn't ready yet because a subsequent run passed


Azure Resource Manager

It would be useful to add exceptions for Azure Resource Manager so we can use a Storage Account behind a firewall to deploy Linked templates.  Whilst I can add an exception for my hosted build agent to upload ARM Templates.  Azure Resource Manager can't then access the Linked Templates in Storage because the IP isn't whitelisted.  The problem is that the Azure Resource Manager IP Ranges don't appear to be whitelisted and if it is in the Microsoft Datacenter IP Ranges, as i suspect they are, then there are > 100 ip address / ranges.  This is > than the 100 rules allowed by the Storage Firewall.

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

ID: 2632af75-7664-b79b-ac5b-c7c17e6a609a
Version Independent ID: 6ecf71b6-77c4-3ab6-8ec9-353ea407d70f
Content: Configure Azure Storage firewalls and virtual networks
Content Source: articles/storage/common/storage-network-security.md
Service: storage
Sub-service: common
GitHub Login: @tamram
Microsoft Alias: tamram

@michaelspinks
Thanks for the feedback! We are currently investigating and will update you shortly.
#37308  Relates issue opened by the same user

@michaelspinks Sorry for the late response. It's currently in the works to add ARM as an exception in the Storage Firewall, unfortunately we do not have an ETA, an announcement via blog would be made once this feature becomes available.

@michaelspinks Sorry for the late response. It's currently in the works to add ARM as an exception in the Storage Firewall, unfortunately we do not have an ETA, an announcement via blog would be made once this feature becomes available.

@AdamS-MSFT I don't suppose there has been any movement on this has there?

It has been more than 3 years. This issue needs to be addressed ASAP. We have a policy to require firewall on each storage account. Whenever we need to store nested ARM templates in a storage account we have to request exceptions. This is tedius and hurts our security posture.

@rajcheval @michaelspinks - Please reach out to Azure Support if you believe that your scenario requires more than 100 firewall rules. You can submit a support ticket via the Azure portal.

Thanks @tamram but whilst that is a workaround, it isn't a long term solution as this issue from 2019 demonstrates.  If Microsoft were to add ARM as an exception in the Storage Firewall that would be preferable.

+1 please keen to see this happen, creating automation accounts and it need a raw public URL for bicep


[Enhancemnent] Support date_add function for trino parser

Fixes #issue
#14825
we need to implent milliseconds_add, quarters_add function in starrocks， so we can mapping all time unit supported by trino date_add function (https://trino.io/docs/current/functions/datetime.html?highlight=date_add#date_add)
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[x] 3.0
[ ] 2.5
[ ] 2.4

@Mergifyio backport branch-3.0

@Mergifyio backport branch-3.1


Macropad

Ready to submit your project? Nice job! Hopefully you've read the submission guidelines. If not, make sure to read them first.
If you're unsure about the format, make sure to check out the Orpheuspad example and follow the format there.
If this PR isn't a submission, that's okay too! If there's anything about this PR template that seems confusing, let me know in #hackpad on the slack!

Hey! Looks pretty good, but the case needs some work. Theres no hole for the port!

Hey, the case doesn't actually require a hole for the port, as there is no plate.
Its hard to explain in words so i've attached a few screenshots below of what im aiming for with the case


Remove [v4l2]/blacklist from Ubuntu and Gazebo.conf

All our .conf files have the following information:
[v4l2]
blacklist=video10

For Gazebo and Ubuntu this is just garbage as video10 device node does not exist.
Suggest remove it from both those docs.

Done in https://github.com/intel/camera-streaming-daemon/pull/136


python311Packages.gitignore-parser: 0.1.3 -> 0.1.4

Diff: https://github.com/mherrmann/gitignore_parser/compare/refs/tags/v0.1.3...v0.1.4
Changelog: https://github.com/mherrmann/gitignore_parser/releases/tag/v0.1.4
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 240806 run on aarch64-darwin 1

6 packages built:

python310Packages.gitignore-parser
python310Packages.gitignore-parser.dist
python311Packages.gitignore-parser
python311Packages.gitignore-parser.dist
tell-me-your-secrets
tell-me-your-secrets.dist

Result of nixpkgs-review pr 240806 run on aarch64-linux 1

6 packages built:

python310Packages.gitignore-parser
python310Packages.gitignore-parser.dist
python311Packages.gitignore-parser
python311Packages.gitignore-parser.dist
tell-me-your-secrets
tell-me-your-secrets.dist


Add the new lib-http 3.0 Beta to lib-nextjs-proxy

Gives error java.lang.IllegalArgumentException: unsupported URI http:/localhost:3000/

Ok, we'll skip it for now then - can you give feedback to SRY about this issue?

Tell that to the developer running our SDK :-)

I'm not sure I get the joke...
http://localhost:3000/ would be correct.

Ah, did not see the single slash, @pmi?


Support HTTP 1

This PR adds support for HTTP 1. Or rather, it bumps the compat entry but requires someone familiar with HTTP to carefully check whether HTTP 1 is actually supported or something in the code base has to be checked. It seems that unfortunately there are no actual tests, so one must not rely on CI tests passing successfully.
This updated was missed by the CompatHelper action since it was disabled due to inactivity: https://github.com/JuliaHealth/EHRAuthentication.jl/actions/workflows/CompatHelper.yml

@DilumAluthge @andreasnoack Could you also re-enable the CompatHelper action?


Update to ESLint 4

Removals

Deprecated ESLint rules.

Changes

Upgrades to ESLint 4 and adds new ESLint 3/4 rules.

Testing

gulp lint && gulp build && gulp test:acceptance

Notes

Majority of code changes are autofix changes, such as indentation.
The multiline-comment-style I wasn't totally set on, but it's an autofix rule so is easy to switch around.
globals needs a value other than null, so commented it out.

@ans Would you call out the major rule changes that people writing JS would probably want to know as they write new JS? Things like not needing 'use strict'; in modules.

@Scotchester Removing use strict from modules and using const and let are the biggies. The rest are very esoteric best practices and gotchas, like using the wrong quotes for template strings.

@jimmynotjim Addressed your comments.

For documentation purposes: If you wish to see use strict being added despite it's removal from source files here, create a module that only has console.log("hello world!") and run it through webpack. It'll end up as:
! function(t) {
    function e(r) {
        if (n[r]) return n[r].exports;
        var o = n[r] = {
            i: r,
            l: !1,
            exports: {}
        };
        return t[r].call(o.exports, o, o.exports, e), o.l = !0, o.exports
    }
    var n = {};
    e.m = t, e.c = n, e.d = function(t, n, r) {
        e.o(t, n) || Object.defineProperty(t, n, {
            configurable: !1,
            enumerable: !0,
            get: r
        })
    }, e.n = function(t) {
        var n = t && t.__esModule ? function() {
            return t.default
        } : function() {
            return t
        };
        return e.d(n, "a", n), n
    }, e.o = function(t, e) {
        return Object.prototype.hasOwnProperty.call(t, e)
    }, e.p = "", e(e.s = 0)
}([function(t, e, n) {
    t.exports = n(1)
}, function(t, e, n) {
    "use strict";
    console.log("hello world!")
}]);


Confused about iterating through json objects

If I have:
{
  "england": {
    "name": "euro",
    "value": 57.99
  },
  "mexico": {
    "name": "peso",
    "value": 31.99
  },
  "us": {
    "name": "USD",
    "value": 42.99
  }
}

And I want to iterate through each, how would I do so?
My attempt so far has been similar to the following:
std::ifstream input_file( const string file_path );
nlohmann::json currencies_json;
currencies_json << input_file;
input_file.close();

unordered_map <string, currency_class> currencies;
for ( const auto currency_json: currencies_json ) {
    currency_class new_currency;

    new_currency[ "country" ] = ???
    new_currency[ "name" ] = ???
    new_currency[ "value"] = ???

    currencies[ country ] = new_currency;
}

I've tried it a a few ways including - for example - creating a string for new_currency[ "country" ] first and then storing it in it like new_currency[ "country" ] = my_string, but I get errors such as:
no member named 'key' in 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, double, std::allocator>'

or
[....]:1073:20: error: 'm_it' is a private member of 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>,
      bool, long long, double, std::allocator>::const_iterator'
           result.m_it.object_iterator = m_value.object->find(key);
                   ^
[...]:89:32: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, double,
      std::allocator>::find' requested here
                const auto iterator = currencies.find("country");
                                             ^
[...]/build/dependencies/json-prefix/src/json/src/json.hpp:3007:96: note: declared private here
        internal_iterator<typename array_t::const_iterator, typename object_t::const_iterator> m_it;

Could you provide some guidance? I'd really appreciate it!

Here is an extended example.

Dear @DanTheColoradan
Thanks for reporting. I'll check your issue once I'm back from holidays (next week).
All the best
Niels

Duplicate of #43 .

Thanks! I'll fix it as soon as possible.

@nlohmann No rush, we have a workaround. Enjoy the holidays :P

Thanks @gnzlbg! And I agree @nlohmann, the workaround is pretty simple so enjoy your vacation :) A new season is upon us.

This issue should have been closed by https://github.com/nlohmann/json/commit/bb2671df11a33006869212a436766736eb4c4204.

All iterators have now member functions key() to retrieve the key for objects and value() to retrieve the value. This should fix the mentioned issue.

Awesome. Thank you!


Request body broken

Not sure if I'm missing something simple or not.
When I send a POST request that has two or more parameters the request is rejected.
The request body for a successful request usually looks like this:
{ email<EMAIL_ADDRESS>password: 'xxxxxx' }
but instead I get this:
{ '{"email":"w@k.co","password":"xxxxxx"}': '' }
If I have only one parameter it works fine.
Using in a react native app made with the infinitered/ignite generator.

It looks like it's arriving as a key.  That's super strange.
Are you able to share the line of code that's making the request with me?

From Api.js in the Ignite app:
const userLogin = (emailAdr, pwd) => api.post('/user/user_login', {email: emailAdr, password: pwd})
    headers: {       'Cache-Control': 'no-cache',       'Content-Type': 'application/x-www-form-urlencoded'     },
From the APITestingScreen.js file:
const endpoints = [   { label: 'User Login', endpoint: 'userLogin', args<EMAIL_ADDRESS>'xxxxxx'] } ]

Ah.  Ok.
You're using x-www-form-urlencoded as a Content-Type header.
apisauce uses axios as the library to make the request.  It has this feature where it "stringifies" your data when it sees that header.
The reason why is that format is expecting a string and not a JSON object.
So, you have a couple of options.

You can convert your JSON object into form encoded format.
Remove that header and see if the server supports accepting application/json
If not supported, change the server to support that format (if it's Rails, it's easy).

Removed the Content-Type header and it worked straight away.
Thanks for your help!


enh(css) major CSS highlighting improvements

Should close #2232

The scss stuff isn't quite as nice... but I did port over a few things to make it a llittle nicer.
Long term if these built on top of each other that might be nice.


Correctly upload and create jobs for ACDC EventBased

Fixing 3 things:

Fix for MC from scratch
Fixes when there is input dataset with EventBased (note: one cannot run the original workflow in EventBased and run ACDC in LumiBased, vice-versa. It only works if the same job splitting is kept.
Do not create ACDC docs for cleanup and logcollect jobs

Don't merge yet. I need to run some LumiBased wfs just to make sure it does not brake anything.

Just found out that this line
https://github.com/dmwm/WMCore/pull/5831/files#diff-92e2c20e60f6397a2a6930a7d09717a4R60
breaks this patch when there is input dataset and the same file in different acdc docs.
Maybe there is no need at all to call that method (the location is available in the acdc doc 'locations').
I'll fix this patch this weekend or on Monday, don't merge please.

Just updated the patch, hopefully the last change. I basically isolated acdc job creation to that specific method.
Since it touches base code, I'll run some integration workflows over the night.

Ok, it passes all my tests. @ticoann please review. If it's ok, I'll push it right away to the production agents.

Alan, this is just for agent update, right?

That's right, we do not need to update central services. BTW, it fixes #5767
If it's ok, then I'll create a master version tomorrow.


Regression in 3678 - allocation of pending segment fails in some cases

After the introduction of https://github.com/druid-io/druid/pull/3678 the Kafka Indexing task can reset offset automatically without supervisor knowing about it.
Lets say the supervisor assigned some partition to a task to consume and the task reset the offset because the offset was not present in Kafka. It may very well happen that the fetched event falls in the next time interval and not in the same time interval as last pending allocated segment for this sequence. Since, the metadata like lastSegmentIds is restored when the Appenderator starts therefore when the task asks overlord to allocate a pending segment for this event, the overlord will get the last pending allocated segment which is not the correct segment and the interval check at https://github.com/druid-io/druid/blob/master/server/src/main/java/io/druid/metadata/IndexerSQLMetadataStorageCoordinator.java#L423 will fail.
I was wondering how necessary is this interval check ? If the interval does not match can we just continue and allocate segment for next interval ? I think the check is present there to prevent from this kind of allocations but is it harmful ? Another option is to pass in some special flag to overlord to indicate that automatic reset has happened and thus don't be so strict about interval checks.
@dclim @gianm

@pjain1 do you have replicas or not?
That sanity check is helpful for double checking that replicas are in sync. Two different Kafka tasks that are replicas of each other need to make the exact same decisions based on the Kafka topic, or else replicas can drift and cause inconsistencies. #3678 appears to break this assumption, since it's possible for two replicas to make different decisions about whether and when to reset their offsets. That decision should be made by the supervisor, not by the task. That should be fixed since it means the option from #3678 isn't safe to use with replicas.
You might be running into that or you might be running into something else. If it looks like something else, do you have some more details about what series of events caused the problem you're seeing?

@gianm We do not have any replicas.
I looked more into it and my previous diagnosis is not exactly correct so please ignore that. Here's what I have observed.
Task failed to get a new segment id, it did not ingest anything failed on first event (after reset) -
2016-12-02T21:59:50,132 INFO [task-runner-0-priority-0] io.druid.segment.realtime.appenderator.FiniteAppenderatorDriver - Restored metadata[null].
2016-12-02T21:59:50,136 INFO [task-runner-0-priority-0] io.druid.indexing.kafka.KafkaIndexTask - Seeking partition[24] to offset[12,835,490,176].
...
...
2016-12-02T21:59:50,308 INFO [task-runner-0-priority-0] org.apache.kafka.clients.consumer.internals.Fetcher - Fetch offset<PHONE_NUMBER>6 is out of range, resetting offset
2016-12-02T21:59:50,309 WARN [task-runner-0-priority-0] io.druid.indexing.kafka.KafkaIndexTask - OffsetOutOfRangeException with message [Offsets out of range with no configured reset policy for partitions: {mx-
cluster-production-metrics-24=12835490176}]
Dec 02, 2016 9:59:50 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider to GuiceManagedComponentProvider with the scope "Singleton"
2016-12-02T21:59:50,317 WARN [task-runner-0-priority-0] io.druid.indexing.kafka.KafkaIndexTask - Resetting consumer offset to [latest] for partition [24]
2016-12-02T21:59:50,318 WARN [task-runner-0-priority-0] io.druid.indexing.kafka.KafkaIndexTask - Consumer is now at offset [14090209678]
2016-12-02T21:59:50,744 INFO [task-runner-0-priority-0] io.druid.indexing.common.actions.RemoteTaskActionClient - Performing action for task[index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik]: SegmentAllo
cateAction{dataSource='v2_metrics_cluster', timestamp=2016-12-02T21:59:48.606Z, queryGranularity=DurationGranularity{length=60000, origin=0}, preferredSegmentGranularity=HOUR, sequenceName='index_kafka_v2_metrics_cluster_06ef3c335c14bfd_24', previousSegmentId='null'}
2016-12-02T21:59:50,763 INFO [task-runner-0-priority-0] io.druid.indexing.common.actions.RemoteTaskActionClient - Submitting action for task[index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik] to overlord[/druid/indexer/v1/action]: SegmentAllocateAction{dataSource='v2_metrics_cluster', timestamp=2016-12-02T21:59:48.606Z, queryGranularity=DurationGranularity{length=60000, origin=0}, preferredSegmentGranularity=HOUR, sequenceName='index_kafka_v2_metrics_cluster_06ef3c335c14bfd_24', previousSegmentId='null'}

2016-12-02T21:59:51,701 ERROR [task-runner-0-priority-0] io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running task[KafkaIndexTask{id=index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik,
 type=index_kafka, dataSource=v2_metrics_cluster}]
io.druid.java.util.common.ISE: Could not allocate segment for row with timestamp[2016-12-02T21:59:48.606Z]
        at io.druid.indexing.kafka.KafkaIndexTask.run(KafkaIndexTask.java:434) ~[druid-kafka-indexing-service-0.9.3-1479913717-13c75d6-1087.jar:0.9.3-1479913717-13c75d6-1087]
        at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:436) [druid-indexing-service-0.9.3-1479913717-13c75d6-1087.jar:0.9.3-1479913717-13c75d6-108
7]
        at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:408) [druid-indexing-service-0.9.3-1479913717-13c75d6-1087.jar:0.9.3-1479913717-13c75d6-108
7]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_60]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_60]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
2016-12-02T21:59:51,707 INFO [task-runner-0-priority-0] io.druid.indexing.overlord.TaskRunnerUtils - Task [index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik] status changed to [FAILED].
2016-12-02T21:59:51,711 INFO [task-runner-0-priority-0] io.druid.indexing.worker.executor.ExecutorLifecycle - Task completed with status: {
  "id" : "index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik",
  "status" : "FAILED",
  "duration" : 1757
}

Overlord logs -
2016-12-02T21:59:51,594 INFO [qtp40910225-116] io.druid.indexing.common.actions.LocalTaskActionClient - Performing action for task[index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik]: SegmentAllocateAction{dataSource='v2_metrics_cluster', timestamp=2016-12-02T21:59:48.606Z, queryGranularity=DurationGranularity{length=60000, origin=0}, preferredSegmentGranularity=HOUR, sequenceName='index_kafka_v2_metrics_cluster_06ef3c335c14bfd_24', previousSegmentId='null'}
2016-12-02T21:59:51,602 INFO [qtp40910225-116] io.druid.indexing.overlord.TaskLockbox - Added task[index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik] to TaskLock[index_kafka_v2_metrics_cluster]
2016-12-02T21:59:51,602 INFO [qtp40910225-116] io.druid.indexing.overlord.MetadataTaskStorage - Adding lock on interval[2016-12-02T21:00:00.000Z/2016-12-02T22:00:00.000Z] version[2016-12-02T21:00:00.244Z] for task: index_kafka_v2_metrics_cluster_06ef3c335c14bfd_elbapfik
2016-12-02T21:59:51,618 WARN [qtp40910225-116] io.druid.metadata.IndexerSQLMetadataStorageCoordinator - Cannot use existing pending segment [v2_metrics_cluster_2016-11-29T17:00:00.000Z_2016-11-29T18:00:00.000Z_2016-11-29T17:00:00.207Z_59] for sequence[index_kafka_v2_metrics_cluster_06ef3c335c14bfd_24] (previous = []) in DB, does not match requested interval[2016-12-02T21:00:00.000Z/2016-12-02T22:00:00.000Z]

I can see in the database that there are pending segments in this sequence
{
	"data":
	[
		{
			"id": "v2_metrics_cluster_2016-11-29T17:00:00.000Z_2016-11-29T18:00:00.000Z_2016-11-29T17:00:00.207Z_59",
			"dataSource": "v2_metrics_cluster",
			"created_date": "2016-11-29T17:51:40.375Z",
			"start": "2016-11-29T17:00:00.000Z",
			"end": "2016-11-29T18:00:00.000Z",
			"sequence_name": "index_kafka_v2_metrics_cluster_06ef3c335c14bfd_24",
			"sequence_prev_id": "",
			"sequence_name_prev_id_sha1": "1BF32CA26D5F48710C00EF8CDC96F650BA0AF936",
			"payload": "BLOB"
		}
	]
}

If the task would have asked to allocate segment with previousSegmentId as v2_metrics_cluster_2016-11-29T17:00:00.000Z_2016-11-29T18:00:00.000Z_2016-11-29T17:00:00.207Z_59 instead of null then it would have been fine and I think that's how it normally works.


Cannot retrieve cookies from Edge

Describe the bug
When attempting to retrieve cookies from Edge, the script has an error because the path contains a .. that is not parsed correctly.
It seems like the script is attempting to access the local app data folder by using the roaming app data path and then backtracking one step (AppData\\Roaming\\..\\Local), instead of direct access (AppData\\Local).
To Reproduce

Start script
Select Edit auth.json file
Select Edge
The script will terminate with error

Expected behavior
The script should retrieve cookies from Edge without errors
Screenshots/Logs
Traceback
Desktop:

OS: Windows 11 Pro 22621.2428
Browser: Edge 118.0.2088.46
installed with pip, Python 3.10.12

This would be better placed in the browser cookie repo
https://github.com/borisbabic/browser_cookie3
I have not change any of the paths in the module from the defaults


Demo not working

I'm using Chrome latest (stable) on x64 Linux
For me it's always showing 0 loss no matter what settings I choose.
Screencast:
https://pictshare.net/65ey05el4k.mp4

Thanks for taking the time to help figure out the issue. Can you post your system specs? I cannot reproduce the error in chrome on x64 Ubuntu.

Sure.

Browser: Google Chrome Version 65.0.3325.181 (Official Build) (64-Bit)
OS: Debian Buster (4.16.0-1-amd64 #1 SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux)
Gui: xfce4
GPU: nvidia GTX 970 (official drivers + cuda) - also gaming on this machine so drivers definitely OK
RAM: 16gb DDR3 (non-ecc)
CPU: Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz

WebGL demos are also working on my machine

Thank you. This is great feedback on some potential hurdles of using this library reliably across systems.  Can you run the following demo and look at the console: https://storage.googleapis.com/tfjs-examples/mnist-core/dist/index.html
It is a simple example direct from the official repo that will help pinpoint what exactly is breaking.

It seems like you found a genuine issue with TensorFlow.js. Please submit an issue on the official repo with what you provided me: https://github.com/tensorflow/tfjs. Thanks for contributing to open source development!

Nothing I can do, but I will keep this issue open to make people aware.


[CopyPropagation] Hoist end_borrows over users of copies.

Enable hoisting end_borrow instructions in a few more cases.  In the following
%borrow = begin_borrow %val for some %val and %copy = copy_value %borrow.
(1) Hoist over and rewrite copies of the borrow.
copy_value %borrow
end_borrow %borrow

->
end_borrow %borrow
copy_value %val

(2) Hoist over applies that use the copy but don't use the borrow.
apply %fn(..., %copy, ...) //here neither %borrow nor a derived value into which ownership was forwarded appears in the ellipses
end_borrow %borrow

(3) Hoist over borrows of the copy:
begin_borrow %copy
end_borrow %borrow

(4) Hoist over copies of the copy:
copy_value %copy
end_borrow %borrow

Thanks to (1), some copy_value instructions are rewritten.  Update CopyPropagation to handle this properly by waiting to examine copy_value instructions until after ShrinkBorrowScope runs.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - f59d007fdbec8f61b33f3436a598c6da49ad7450

Build failed
Swift Test Linux Platform
Git Sha - f59d007fdbec8f61b33f3436a598c6da49ad7450

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - d51086e15bbb35e03852aa3d075f0398c0399bd3

Build failed
Swift Test Linux Platform
Git Sha - d51086e15bbb35e03852aa3d075f0398c0399bd3

@swift-ci please test

@swift-ci please test source compatibility


Produce  run  at first without  "bus.post()"  invoked

At the beginning of program  the method with @Produce will run by itself , not once sometimes.
what is it to do?

Produce never runs as a result of an event being posted. It runs when a
subscriber is registered for that event type to provide an initial value
for that event.
On Thu, Oct 29, 2015, 6:40 AM hellosad<EMAIL_ADDRESS>wrote:

At the beginning of program the method with @Produce
https://github.com/Produce will run by itself , not once sometimes.
what is it to do?
—
Reply to this email directly or view it on GitHub
https://github.com/square/otto/issues/172.


Redesign index-storage interactions

[ ] Index-related classes should not be coupled with storages too tightly.
[ ] Index-related classes should not call any factories or storages:
1. Storages should consume updates directly or via presenters.
2. Factories should be invoked by storages when they don't have data or it is outdated.

Examples of improper classes interaction:
ResourceIndexRepo depends on MetadataStorage
class ResourceIndexRepo(
    private val foldersRepo: FoldersRepo,
    //todo any storage should be attached next to index, not into it
    private val metadataStorageRepo: MetadataStorageRepo,
    private val messageFlow: MutableSharedFlow<Message>,
...

PlainIndex during index updates processing invokes GeneralMetadataFactory:
    private suspend fun handleUpdate(update: UpdatedResourcesId) {
        update.deleted.forEach { ... }
        val added = ...
        ...

        //todo MetadataStorage must manage Metadata for resources
        // the same as TagStorage manages their tags
                GeneralMetadataFactory.compute(path, resource)
                    .onFailure {
                        Log.e(
                                RESOURCES_INDEX,
                                "Could not detect kind for " +
                                        path.absolutePathString()
                            )
                        messageFlow.emit(Message.KindDetectFailed(path))
                    }
                    .map { metadata ->
                        resource.metadata = metadata
                        resource
                    }
...

ResourceIndexRepo during initial index loading invokes GeneralMetadataFactory:
    internal suspend fun providePlainIndex(
        root: Path
    ): PlainIndex = provideMutex.withLock {
        ...
        //todo MetadataStorage must manage Metadata for resources
        // the same as TagStorage manages all tags
                GeneralMetadataFactory.compute(path, resource)
                    .map { metadata ->
                        resource.metadata = metadata
                        resource
                    }

This also causes some problems:
data class Resource(
    val id: ResourceId,
    val name: String,
    val extension: String,
    val modified: FileTime,
    var metadata: Metadata?, //todo: get rid of it
) {

It's better to completely decouple Resource from Metadata.
Metadata should be retrieved from MetadataStorage, same as Tags are retrieved from TagsStorage.

Solved in #52


[5.5] Blade Extension Class Support

A simple blade extension system to laravel/framework which allows a Blade extension class to be defined and registered in the container. This will also allow you to inject services from the container easily.
I mentioned it in laravel/internals#682
Basically this allows you to group related Blade directives in a class and through tagging the Laravel framework could register all the blade directives and conditionals automatically. Registered providers could then tag an extension and Laravel would wire it up in blade.
Here's a basic example of what an extension class might look like:
<?php

namespace App\Blade;

use Illuminate\Contracts\View\BladeExtension;

/**
 * Example blade extension class for grouping extensions
 */
class ExampleBladeExtension implements BladeExtension
{
    public function getDirectives()
    {
        return [
            'truncate' => [$this, 'truncate']
        ];
    }

    public function getConditionals()
    {
        return [
            'prod' => [$this, 'isProduction']
        ];
    }

    public function isProduction()
    {
        return app()->environment('production');
    }

    /**
     * @see https://zaengle.com/blog/exploring-laravels-custom-blade-directives
     */
    public function truncate($expression)
    {
        list($string, $length) = explode(',',str_replace(['(',')',' '], '', $expression));

        return "<?php echo e(strlen({$string}) > {$length} ? substr({$string},0,{$length}).'...' : {$string}); ?>";
    }
}

You can create it with php artisan make:blade ExampleBladeExtension.
Here's how you'd wire it up in your provider:
// Service container available to extensions
$this->app->bind(ExampleExtension::class, function ($app) {
    return new ExampleExtension($app['foo']);
});

$this->app->tag([ExampleExtension::class], 'blade.extension');

Hmm, don't think I want to include this for now.


Add stream bulk walk

Add streaming version of bulk walk

Could you correct merge conflicts before I merge this?

Fixed


fix "config is undefined" when working with volumeSlider using keyboard

Coverage remained the same at 74.487% when pulling 19699405c3f1edd9e6e4115c535de1593c43b3ef on igorko:master into 30cb7062e49a4e2429df86242e9d5ef45159c917 on mediaelement:master.


Update format.md

Escaped all * that should have been escaped.
(forgot to make the PR 🤦♂)

Ah, thanks


Event object remains as default

I've copied and pasted the code and everything is working great, up until I click a calendar (ie, Google Calendar). It doesn't matter what I try, it always opens the calendar with the same default information:
    event: {
      title: 'Sample Event',
      description: 'This is the sample event provided as an example only',
      location: 'Portland, OR',
      startTime: '2016-09-16T20:15:00-04:00',
      endTime: '2016-09-16T21:45:00-04:00'
    }

I've tried this on incognito mode, so suggests it isn't a caching problem. Does anyone know what I should try?

 I was importing:
import AddToCalendar from 'react-add-to-calendar';
When I should have been importing the component.


Can't use generator with complexe package name in proto files

Let's assume the following proto file:
syntax = "proto3";

package ArmoniK.api.grpc.v1.submitter;

service Submitter{
	rpc CancelSession (Session) returns (Empty);
}

message Session {
	string id = 1;
}

message Empty {}

The generator will not work because it wil generate this:
Observable<GrpcEvent<thisProto.ArmoniK.api.grpc.v1.submitter.Empty>>

instead of this
Observable<GrpcEvent<thisProto.Empty>>

hi @esoubiran-aneo
could you please share the version of protoc?

Yes, it's version 3 @smnbbrv !
syntax = "proto3";

I think it's in this package ? @smnbbrv
"grpc-tools": "^1.11.2"

But I use Windows ! I will try the linux command to see if there is a difference

Yes, this is using protoc 3.6.1 on Ubuntu (lubprotoc 3.6.1)
cancelSession: (
    requestData: thisProto.ArmoniK.api.grpc.v1.Session,
    requestMetadata = new GrpcMetadata()
  ): Observable<GrpcEvent<thisProto.ArmoniK.api.grpc.v1.Empty>> => {
    return this.handler.handle({
      type: GrpcCallType.unary,
      client: this.client,
      path: '/ArmoniK.api.grpc.v1.Submitter/CancelSession',
      requestData,
      requestMetadata,
      requestClass: thisProto.ArmoniK.api.grpc.v1.Session,
      responseClass: thisProto.ArmoniK.api.grpc.v1.Empty
    });
  }

with this package: package ArmoniK.api.grpc.v1;

I guess this is an issue and it should be fixed on a lib side. However, according to the google protobuf styleguide

Package names should be in lowercase. Package names should have unique names based on the project name, and possibly based on the path of the file containing the protocol buffer type definitions.

Please use the lowercase names only for packages and the issue won't appear.

 It seems to work now that package name is "armonik.api.grpc.v1" !

you are welcome! I'm glad it worked out!
Please leave the issue open, when there is time to deal with it, it's gonna be fixed


Add Simple-GCN to the library

Description
The recent Simple-GCN algorithm looks quite promising; we should add it to the library and experiment with it.
See this implementation in spektral for reference.
Done Checklist (Development)\

[ ] Produced code for required functionality
[ ] Unit test coverage
[ ] Demo
[ ] Branch and Pull Request pass unit tests on CI
[ ] Peer Code Review Performed
[ ] Code well commented
[ ] Documentation in repo
[ ] CHANGELOG.md updated

As the first author of this paper, I want to first thank you for creating a great project here and considering including Simple Graph Convolution as an example. I am happy to chat if you have questions and our repo is at https://github.com/Tiiiger/SGC.
One notable feature for SGC is that you can precompute the propagation steps. There are usually two ways to implement this feature:

Just precompute the propagation and store the resulting features, as in https://github.com/Tiiiger/SGC/blob/master/citation.py#L32
Use a cached variable to store the resulting features on the model (perhaps more elegant), as in
https://github.com/dmlc/dgl/blob/master/examples/pytorch/sgc/sgc.py#L40

Hi @Tiiiger
thanks for your suggestions. I'll take them into account when I implement your method within the next couple of weeks and I will definitely be in touch if I need your help.
Regards,
P.


Standardizing Cronitor Libraries

Hi @jordan0day
Cronitor would like to start taking responsibility for fostering the development of open-source client libraries. Our Github account would host the clients and take a more active roll in the development of all clients. We'd like to start with Ruby, Python, Java, PHP, Elixir, Javascript, and Bash - https://cronitor.io/docs/open-source-libraries - as well as open-source our own Go client.
Our goal is to help standardize documentation, nomenclature, feature development, and testing, as well as keeping the APIs current, and, in some cases, adding or consolidating Ping and Monitor APIs.
Ideally, we'd like to transfer ownership of existing libraries for continuity.  We'll clearly note original client authors on the README. And any maintainers who would like to continue contributing to the projects will continue to have maintainer access. Would you be interested in helping us do this for the Elixir Ping API client?

Sure thing, that'd be fine with me.

Thanks! I just sent you an invite to our organization. Would you mind sending that transfer one more time?


Help implementation on TypeScript

I am implementing the library with TypeScript, but I have an error that I am not able to solve

my code example

import React, { Component } from 'react';
import GridLayout from 'react-grid-layout';

class Grid extends Component<any, any>  {
    constructor(props: any) {
        super(props)

        this.state = {

        }
    }

    componentDidMount() {

    }

    render() {

        let layout = [
            { i: 'a', x: 0, y: 0, w: 1, h: 2, static: true },
            { i: 'b', x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 },
            { i: 'c', x: 4, y: 0, w: 1, h: 2 }
        ];

        return (

                <GridLayout className="layout" layout={layout} cols={12} rowHeight={30} width={1200}>`

a

b

c

                </GridLayout>

        )
    }
}

export default Grid;

my library versions:
"typescript": "^3.9.3"
"react-grid-layout": "^0.18.3",
"react": "^16.13.1",

I think you should avoid having typescript compiling the files in the node_modules folder.
You should change the settings in your tsconfig.json.
Try the solutions referenced here: https://stackoverflow.com/questions/51634361/how-to-force-tsc-to-ignore-node-modules-folder


feat: Add C++ to languages

Fixes #4
Adding C++ to languages list fixes my issue :)

ltgm. I will release a new version later. Thanks you.


agents:add parameter validation when setting options

PR Checklist

[x] Read the Contributing documentation.
[x] Read the Code of conduct documentation.
[x] Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
[x] Describes the source of new concepts.
[x] References existing implementations as appropriate.
[ ] Contains test coverage for new functions.
[x] Passes all golangci-lint checks.

fixes #1039

Ensure that maxIterations is a positive integer.
Ensure that the errorHandler is not nil before assigning it. This prevents potential nil pointer dereference errors later in the code.s


TextField won't respond in some cases simply by adding swiperefresh 0.21.3-beta

Describe the bug
TextField and Buttons (and presumably many other things that respond to click events) fail (not responding) after you click any empty place in a Column.
To avoid confusions, I know the following code does not contain anything relevant to accompanist, but the bug will only occur when swiperefresh:0.21.3-beta is added into your dependency (and not using it at all!):
    implementation "com.google.accompanist:accompanist-swiperefresh:0.21.3-beta"

As bizarre as that might sound, since it is only happening when I am using this library, I am submitting the bug report here.
To Reproduce
Steps to reproduce the behavior:

Code

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            var text by remember { mutableStateOf("initial")}
            Column(modifier = Modifier.fillMaxSize()) {
                BasicTextField(
                    value = text,
                    onValueChange = { text = it }
                )
            }
        }
    }
}

Click on any empty place first (i.e. anywhere but the textfield)

Click on the text field

Nothing happens

Expected behavior
TextField and buttons should respond and work properly
Environment:

Accompanist version: 0.21.3-beta
Jetpack Compose release version: 1.1.0-beta03
Android Studio Build: Arctic Fox 2020.3.1 Patch 3 Build #AI-203.7717.56.2031.7784292
Kotlin version: 1.5.31
Android OS version: 11

Additional context

It works until you click on any empty place
It works without that Modifier.fillMaxSize()
0.20.2 works fine

I think this is an issue with Jetpack Compose 1.1.0-beta03.  Here's a link to their issue tracker where someone else reported the same problem: https://issuetracker.google.com/issues/207222640

@travissmithihr I think you are right! Thank you for pointing me to that ticket. I think it is indeed the problem with Compose 1.1.0-beta3.
I tried again and it seems that 1.1.0-beta3 alone without accompanist could trigger this issue (although not sure why it worked earlier). And when I tested with 1.0.5 + 0.21.3-beta, it is apparently because of transitive dependency making it use 1.1.0-beta3 rather than 1.0.5 even though I explicitly specify the latter.
Closing due to not an issue with accompanist.


Feature: order of additionalPrinterColumns

Unless I've missed it, it is not possible to influence the order of @PrinterColumns in the CRD. It seems to be ordered alphabetically.
I have two printer columns .status.milestone and .status.error, and I would like them printed in that order. However, right now error comes first.
I can work around this by manually swapping the entries in the CRD, and it's only cosmetic anyway, but it would be nice to have.

Hi,
CRD generation is done by https://github.com/fabric8io/kubernetes-client. PrinterColumn ordering was made consistent by https://github.com/fabric8io/kubernetes-client/issues/3153. If you need fine-grained control, you should open an issue there.

Opened an issue over on the client.

Thank you!


Sample file to test in same directory

A simple extension to make deployment easier.I tested it in my system .

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind api-change
/kind bug
/kind cleanup
kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
This PR creates shell script to make deployment of clusters much easier.
Which issue(s) this PR fixes:

Fixes #4
Special notes for your reviewer:
This can be modified and will be updated if required.Since it passes the tests, this can be approved.
Release note:

Could we merge this into PR #139? #139 requires a manifests file for deployment


Reverse ENS lookup

Overview
Many dapps show your ENS name when connecting a wallet. Safe could benefit from this as well, to more easily identify Safes and contacts.
Goals

Make it easier to find the right Safe, owner, contact etc
Help validated inputted addresses by displaying a human-readable name
Reduce the reliance on the locally stored address book

Requirements

Add a function to lookup an ENS domain from the address hash
Display the ENS Name as a default owner name when adding or creating a safe

Screens
Safe creation

Do we have a related issue for mobile? This is something that our clients should probably align on.
We discussed this in the past too, probably makes sense to revisit the discussions from that point: https://docs.google.com/document/d/1UTqBIpyHlWVFk-iY3uQ4dDcu-gvSigki0FOilJCD_r0/edit

@rmeissner so far we simply added a method in the Core SDK.
Given the nuances discussed in the doc you linked, we'd like to use it in one single place in the UI:

as a placeholder for owner names in Safe creation/adding

This is unobtrusive and should break anything. Users will be able to still enter a custom name for each owner.

Looking at the screenshot I would probably remove the tld :D (e.g. franco for franco.eth)


Write documentation

Learn about the simulator and write documentation about it in source code and readme. Follow guidelines on documentation from wiki.

Tasks:

[ ] Add readmes to top level folders
[ ] Refactor top level readme

Tasks:

[ ] Add readmes to top level folders
[ ] Refactor top level readme

This was sort of? done, but closing since the uuv_simulator wiki is very extensive, and we are moving away from the "vortex custom uuv simulator" baked-in sim..


MuJoCo for  rope drived

Hi,
I'm a student and I'm trying to use MuJoCo for  rope drived.
I'm looking for some help .
I want the block to move at the same speed as the cylinder falls, and the cylinder to stop after the block stops.
But this rope will extend, causing me to be unable to achieve this effect.
In short, I hope that s2 can function as a pulley and the rope cannot be extended. I want to know how to achieve this.
Thank you so much
Here is a model which explains my question:

minimal XML
<mujoco>
    <option gravity="0 0 -9.81" />
    <default>
        <site type="sphere" rgba="1 0 0 1" size="0.01"/>
    </default>

    <worldbody>
        <light diffuse=".5 .5 .5" pos="0 0 3" dir="0 0 -1" />
        <geom name="floor" pos="0 0 -0.5" size="0 0 1" type="plane" />

        <body name="weight" pos="0 0 .5">
            <geom type="cylinder" size="0.1 0.1" mass="1" rgba="0 .9 0 1"/>
            <joint name="w" type="slide" pos="0 0 .5" axis= "0 0 1" limited="false"/>
            <site name="s1" pos="0 0 .1"/>
        </body>

        <site name="s2" pos="0 0 1"/>

        <body name="slide" pos="0 .5 1">
            <geom type="box" size=".05 .05 .05" mass="1" rgba="0 0 .9 1"/>
            <joint name="s" type="slide" pos="0 0 0" axis= "0 1 0" limited="true" range="-0.5 0" />
            <site name="s3" pos="0 -0.05 0"/>
        </body>
    </worldbody>

    <tendon>
        <spatial name="tendon" width="0.005" damping="1" stiffness="0">
            <site site="s1"/>
            <site site="s2"/>
            <site site="s3"/>
        </spatial>
    </tendon>
</mujoco>

Here is a screenshot / video, illustrating my question:
https://github.com/google-deepmind/mujoco/assets/148617991/cc80154f-fb33-4df1-8a6a-266db23bb521

Hi,
I think I solved part of the problem, but now there is a new problem: how to solve the problem of rope threading through the
mold.
Here is a model which explains my question:
<mujoco>
    <compiler autolimits="true"/>

    <default>
        <site type="sphere" rgba="1 0 0 1" size="0.01"/>
    </default>

    <worldbody>
        <light diffuse=".5 .5 .5" pos="0 0 3" dir="0 0 -1" />
        <geom name="floor" pos="0 0 -0.5" size="0 0 1" type="plane" />

        <body name="weight" pos="0 0 .5">
            <geom type="cylinder" size="0.1 0.1" mass="1" rgba="0 .9 0 1"/>
            <joint name="w" type="slide" pos="0 0 .5" axis= "0 0 1" limited="false"/>
            <site name="s1" pos="0 0 .1"/>
        </body>

        <body name="pulley" pos="0 0 1" zaxis="1 0 0" >
            <geom name="pulley" type="cylinder" size="0.1 0.01" mass="1" rgba="0 .9 0 1"/>
        </body>

        <site name="s2" pos="0 -.1 1.1"/>

        <body name="slide" pos="0 .5 1">
            <geom type="box" size=".05 .05 .05" mass="1" rgba="0 0 .9 1"/>
            <joint name="s" type="slide" pos="0 0 0" axis= "0 1 0" limited="true" range="-0.5 0" />
            <site name="s3" pos="0 -0.05 0"/>
        </body>
    </worldbody>

    <tendon>
        <spatial name="rope" range="0 1" stiffness="0">
          <site site="s1"/>
          <geom geom="pulley" sidesite="s2"/>
          <site site="s3"/>
        </spatial>
      </tendon>

</mujoco>

https://github.com/google-deepmind/mujoco/assets/148617991/a02fd5c9-bbb3-4c4e-8f9a-492d9b907331

I have solved this problem in another question #1317. Thank you very much for the author's answer.


python310Packages.openai: 0.28.1 -> 1.1.0

Description of changes
Update to latest version.
This is basically a total rewrite, so likely lots of breaking changes for packages that depend on it. Not sure how best to handle that.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 265946 run on aarch64-darwin 1

4 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist
khoj
khoj.dist

10 packages failed to build:

openai-full
openai-full.dist
pentestgpt
pentestgpt.dist
python310Packages.langchain
python310Packages.langchain.dist
python310Packages.minichain
python310Packages.minichain.dist
python311Packages.langchain
python311Packages.langchain.dist

21 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
open-interpreter
open-interpreter.dist
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
python310Packages.guidance
python310Packages.guidance.dist
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

Result of nixpkgs-review pr 265946 run on aarch64-linux 1

2 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist

7 packages failed to build:

home-assistant-component-tests.openai_conversation
pentestgpt
pentestgpt.dist
python310Packages.langchain
python310Packages.langchain.dist
python311Packages.langchain
python311Packages.langchain.dist

25 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
khoj
khoj.dist
openai (python311Packages.openai)
openai-full
openai-full.dist
openai.dist (python311Packages.openai.dist)
python310Packages.guidance
python310Packages.guidance.dist
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.minichain
python310Packages.minichain.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

Result of nixpkgs-review pr 265946 run on x86_64-darwin 1

4 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist
khoj
khoj.dist

10 packages failed to build:

openai-full
openai-full.dist
pentestgpt
pentestgpt.dist
python310Packages.langchain
python310Packages.langchain.dist
python310Packages.minichain
python310Packages.minichain.dist
python311Packages.langchain
python311Packages.langchain.dist

21 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
open-interpreter
open-interpreter.dist
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
python310Packages.guidance
python310Packages.guidance.dist
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

Result of nixpkgs-review pr 265946 at 4544e9e9 run on x86_64-linux 1

1 package marked as broken and skipped:

chatgpt-retrieval-plugin

4 packages failed to build:

home-assistant-component-tests.openai_conversation
pentestgpt
python310Packages.langchain
python311Packages.langchain

14 packages built successfully:

chatblade
checkov
imaginer
khoj
open-interpreter
openai (python311Packages.openai)
openai-full
python310Packages.guidance
python310Packages.litellm
python310Packages.minichain
python310Packages.openai
python311Packages.guidance
python311Packages.litellm
shell-genie

It seems that langchain is currently working on supporting openai's new API. e.g. https://github.com/langchain-ai/langchain/pull/12969
Since the development is fast, I think it will be done within a few days.

Please don't merge before the branch-off.

Result of nixpkgs-review pr 265946 run on aarch64-darwin 1

2 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist

17 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
open-interpreter
open-interpreter.dist
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

Result of nixpkgs-review pr 265946 run on aarch64-linux 1

18 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist
khoj
khoj.dist
openai-full
openai-full.dist
pentestgpt
pentestgpt.dist
python310Packages.guidance
python310Packages.guidance.dist
python310Packages.langchain
python310Packages.langchain.dist
python310Packages.minichain
python310Packages.minichain.dist
python311Packages.guidance
python311Packages.guidance.dist
python311Packages.langchain
python311Packages.langchain.dist

1 package failed to build:

home-assistant-component-tests.openai_conversation

15 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

Result of nixpkgs-review pr 265946 run on x86_64-darwin 1

2 packages marked as broken and skipped:

chatgpt-retrieval-plugin
chatgpt-retrieval-plugin.dist

17 packages built:

chatblade
chatblade.dist
checkov
checkov.dist
imaginer
open-interpreter
open-interpreter.dist
openai (python311Packages.openai)
openai.dist (python311Packages.openai.dist)
python310Packages.litellm
python310Packages.litellm.dist
python310Packages.openai
python310Packages.openai.dist
python311Packages.litellm
python311Packages.litellm.dist
shell-genie
shell-genie.dist

OpenAI Api docs now no longer show 0.x compatible examples, is there a quick way to upgrade to latest version, if this PR have a blocker?


node 18 - Bridge Api is broken

Running node18 the adapter does throw these lines:
nodeJS versions up to node17 do work with the same settings for the bridge API.
2022-04-20 22:42:39.640  - info: host.chet instance system.adapter.nuki-extended.0 started with pid 3156
2022-04-20 22:42:41.984  - info: nuki-extended.0 (3156) starting. Version 2.4.0 in /opt/iobroker/node_modules/iobroker.nuki-extended, node: v18.0.0, js-controller: 4.0.23
2022-04-20 22:42:43.255  - warn: nuki-extended.0 (3156) No bridges are sufficiently defined! Name, IP or token missing or all bridges deactivated!
2022-04-20 22:43:24.685  - warn: nuki-extended.0 (3156) Error triggering action via Nuki Bridge API: No Nuki Hex ID given!
2022-04-20 22:43:35.853  - warn: nuki-extended.0 (3156) Error triggering action via Nuki Bridge API: No Nuki Hex ID given!
2022-04-20 22:44:34.523  - info: host.chet stopInstance system.adapter.nuki-extended.0 (force=false, process=true)
2022-04-20 22:44:34.532  - info: nuki-extended.0 (3156) Got terminate signal TERMINATE_YOURSELF
2022-04-20 22:44:34.534  - info: nuki-extended.0 (3156) Adapter stopped und unloaded.
2022-04-20 22:44:34.536  - info: nuki-extended.0 (3156) terminating
2022-04-20 22:44:34.537  - info: nuki-extended.0 (3156) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2022-04-20 22:44:34.549  - info: host.chet stopInstance system.adapter.nuki-extended.0 send kill signal
2022-04-20 22:44:35.130  - info: host.chet instance system.adapter.nuki-extended.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2022-04-20 22:44:37.676  - info: host.chet instance system.adapter.nuki-extended.0 started with pid 3186
2022-04-20 22:44:40.003  - info: nuki-extended.0 (3186) starting. Version 2.4.0 in /opt/iobroker/node_modules/iobroker.nuki-extended, node: v18.0.0, js-controller: 4.0.23
2022-04-20 22:44:41.098  - warn: nuki-extended.0 (3186) No bridges are sufficiently defined! Name, IP or token missing or all bridges deactivated!

I think it may be related to changes in iface.family in Node.js 18:
https://github.com/bnielsen1965/mdns-server/pull/8

Issue will be solved with patched upstream version 1.1.6 of node module 'ip'
See commit
https://github.com/jaiswarvipin/node-ip/commit/5d53c5a35d59f8c82ee56978973ce4e43285ae30

Please update dependency for ip to 2.0.0.

@Apollon77 Lieb guck... :-D

So ip 1.1.6 is not enough??

Not sure. 2.0.0. has hints to 'node 18 compatibility' in the change logs.

next verison

I confirm: v2.5.0 is up and running with vanilla nodeJS 18.2.0


Query cleanup: Avoid static parameters

What's wrong with static parameters?

Passing them in the visitors which need them rather than making them public seemed conservative for now.


Can Add or make more attractive UI

Accessible Features: Ensure all elements are accessible for users with disabilities.
Interactive Elements: Add features like image carousels and hover effects on buttons for engagement.

Accessible Features: Ensure all elements are accessible for users with disabilities.
Interactive Elements: Add features like image carousels and hover effects on buttons for engagement.

I'm interested to resolve this issue please assign it to me

@akashkumar241203 yeah akashkumar... i can see your interest in contributing to the project.. but right now, someone else is working on this.. if they are not able to complete this issue... i will assign it to you..


[WIP] bpf: modularize lib/fib.h

This commit has further modularized fib.h, making it possible to perform a fib lookup independently from a redirect. As a result of this refactor, two new functions have been created: fib_lookup_v4 and fib_lookup_v6.
This is a WIP PR which will not merge.
Opening to get an initial view on the split refactor.
This work ties into an SRv6 related fix and will be ultimately incorporated into a PR which includes SRv6 fix.

/ci-verifier

/ci-e2e

Verifier is complaining about misaligned stack access when we get to here. That's where we re-write the l2 addresses from the fib lookup params into the sk_buff.
:thinking:
             	; fib_params->l.ipv4_dst	= ip4->daddr;
            	3093: (63) *(u32 *)(r10 -40) = r2
            	3094: (b7) r2 = 14099
            	; case  6: __it_mob(d, s, 16); __it_mob(d, s, 32);
            	3095: (6b) *(u16 *)(r10 -10) = r2
            	3096: (18) r2 = 0xefbeadde
            	; case  6: __it_mob(d, s, 16); __it_mob(d, s, 32);
            	3098: (63) *(u32 *)(r10 -20) = r2
            	3099: (b7) r2 = 924006163
            	; case  6: __it_mob(d, s, 16); __it_mob(d, s, 32);
            	3100: (63) *(u32 *)(r10 -14) = r2
            	misaligned stack access off (0x0; 0x0)+0+-14 size 4
            	processed 695 insns (limit 1000000) max_states_per_insn 0 total_states 44 peak_states 44 mark_read 21

Oh wait I was wrong.
The verifier was upset because in two mock_fib_lookup memcpy was being use directly, and assuming fib_params were 16 byte aligned.
Once I swapped these to build to:
long mock_fib_lookup(__maybe_unused void *ctx, struct bpf_fib_lookup *params,
		     __maybe_unused int plen, __maybe_unused __u32 flags)
{
	__bpf_memcpy_builtin(params->smac, fib_smac, ETH_ALEN);
	__bpf_memcpy_builtin(params->dmac, fib_dmac, ETH_ALEN);
	return 0;
}

unit tests began to pass. pushing change now.

Oh wait I was wrong.
The verifier was upset because in two mock_fib_lookup memcpy was being use directly, and assuming fib_params were 16 byte aligned.
Once I swapped these to build to:
long mock_fib_lookup(__maybe_unused void *ctx, struct bpf_fib_lookup *params,
		     __maybe_unused int plen, __maybe_unused __u32 flags)
{
	__bpf_memcpy_builtin(params->smac, fib_smac, ETH_ALEN);
	__bpf_memcpy_builtin(params->dmac, fib_dmac, ETH_ALEN);
	return 0;
}

unit tests began to pass. pushing change now.

lol, unit test failed on this:
-- FAIL: TestBPF (34.19s)
    --- FAIL: TestBPF/tc_nodeport_l3_dev.o (1.86s)
        bpf_test.go:231: Failed to map addr=<IP_ADDRESS> to identity
        bpf_test.go:231: Attempting local delivery for container id 233 from seclabel 2
        bpf_test.go:231: Failed to map addr.p4=[::0:2] to identity
        bpf_test.go:231: Attempting local delivery for container id 233 from seclabel 2
        bpf_test.go:268: error while interpolating using source files: cparser parse file: new parser: lex next: /home/runner/work/cilium/cilium/bpf/lib/fib.h:48:45: invalid input text "`fib_params`, as..."

Which is part of a comment string ? O_o.
Just made checkpatch happy and re-pushed, maybe I had some odd formatting.

/ci-verifier

/ci-e2e

/test

/ci-l4lb

Hmm tests look mostly good, but I dont like that nat64 tests in "Cilium L4LB XDP" are failing.
The nat64 code calls the plain "fib_redirect" which is altered.


[Bug] TransactionCoordinatorClientImpl.start() hangs forever

Search before asking

[X] I searched in the issues and found nothing similar.

Version
Pulsar Java Client 2.10.0
Pulsar 2.10.0
Minimal reproduce step
Enable the transaction in Pulsar 2.10.0 docker. Create a PulsarClient. Then we may see the TransactionCoordinatorClientImpl.start() hangs and block the whole process.
What did you expect to see?
TransactionCoordinatorClientImpl.start() shouldn't wait for a long time.
What did you see instead?
TransactionCoordinatorClientImpl.start() block the execution and nothing has showed.

Anything else?
The jstack file.
195.log
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

Another jstack file.
210.log

@congbobo184 Can you help me find out the real cause.

The detailed test log is here: mvn-1.log.

Hi @syhily
TransactionCoordinator loadBalance base on partition topic persistent://pulsar/system/transaction_coordinator_assign , so when starting transaction client, make sure that partition topic persistent://pulsar/system/transaction_coordinator_assign has been created. Otherwise persistent://pulsar/system/transaction_coordinator_assign will be automatically created as Non-partition topic, Pulsar Transaction dnot support Non-partition persistent://pulsar/system/transaction_coordinator_assign

I don't think the end user should care about these system topic design. This should be a system topic initialization issue.

@syhily  What users should care about is whether the transaction is fully enabled, rather than using it when it is not fully enabled, isn't it? If there are no other issues, I will close this issue

@congbobo184 I think we should provide clear information while the transaction coordinator does not enable it on the broker side. It will help users to understand the problem quickly.

https://github.com/apache/pulsar/pull/18276 fix this problem, so close this issue


iOS: Camera not destroyed even after this.qrScanner.destroy() is called

Hi,
In ios platform the camera doesn't get destroyed even after  this.qrScanner.destroy() is called.
I am calling the destroy function at 3 places in my page:

After scanning is done.
On ionViewWillLeave
On tapping back button in my page

Following is my implementation:
async destroyQRScaner() {
    await this.qrScanner.destroy().then(data => {
      console.log('Successfully destroyed QR Scanner: ', data)
    })
    .catch(err => {
      console.log('Failed to destroy QR Scanner: ', err)
    });
  }

startScanner() {
    this.qrScanner.prepare()
      .then(async (status: QRScannerStatus) => {
        if (status.authorized) {
          // start scanning
          const scanSub = this.qrScanner.scan().subscribe(async (text: string) => {
            this.qrString = text;
                await this.destroyQRScaner(); // 1
                scanSub.unsubscribe();
                await this.showPinVerificationScreen()
              }
            }
            catch (errorResponse) {
              this.global.presentErrorAlert(errorResponse);
            }
          });
          this.qrScanner.show().then()
        }
        else if (status.denied) {
          // camera permission was permanently denied
          this.qrScanner.openSettings();
        }
        else {
          // permission was denied, but not permanently. You can ask for permission again at a later time.
        }
      })
      .catch((e: any) => console.log('Error is', e));
  }

async ionViewWillLeave() {
    await this.destroyQRScaner(); // 2.
}

async back() {
    await this.destroyQRScaner(); // 3.
    this.navCtrl.pop();
    this.observe.unsubscribe();
}

Output:

Successfully destroyed QR Scanner:  [object Object]

Please suggest if something is missing in the implementation.
Note:

This is happening only in ios platform.
$ ionic info

Ionic:
Ionic CLI                     : 5.2.8 (/usr/local/lib/node_modules/ionic)
Ionic Framework               : @ionic/angular 4.11.1
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics    : 7.3.9
@angular/cli                  : 7.3.9
@ionic/angular-toolkit        : 1.5.1
Cordova:
Cordova CLI       : 8.0.0
Cordova Platforms : android 7.0.0, ios 4.5.5
Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 15 other plugins)
Utility:
cordova-res : 0.8.1
native-run  : 0.2.8 (update available: 0.2.9)
System:
NodeJS : v10.16.3 (/usr/local/bin/node)
npm    : 6.13.0
OS     : macOS Mojave
Xcode  : Xcode 10.2.1 Build version 10E1001

Thanks.

@monica18p did you find a solution, i have the same issue?

I have the same problem