firestore querying nil fails if attribute does not exist

Client
Firestore
Describe Your Environment
local development
Expected Behavior
when querying for documents where attribute does not exist, this should work:
.Where(<attribute we're looking for>, "==", nil)
Actual Behavior
Requires that the attribute exists but is set to null

Could you point to the documentation for that property? Or, are you seeing this behavior in other languages?

@schmidt-sebastian, what is the right behavior here?

Nil/Null are special field values in Firestore that are distinct from "field is not set". You can only query for fields that are explicitly set to nil.
Note that there is a work-around that might help here. You can use orderBy to only return documents that have an explicit value for a given field, no matter what the value is. While this is the opposite of what you are asking for, it might solve your problem nonetheless.

Closing since this seems to be working as intended.


stream_thread.o:(.rodata._ZTVN6Stream4TaskI17PDownloadImageReqEE[_ZTVN6Stream4TaskI17PDownloadImageReqEE]+0x10): undefined reference to `Stream::Task::doTask()'

https://blog.csdn.net/baidu_15952103/article/details/109109110


Add FAQ to documentation

At least provides guidance on some issues raised in issue #3

Looks great! Better to have an FAQ than not.


rocblas -> hipblas changes for ROCm

Fixes https://github.com/microsoft/DeepSpeed/issues/4989
In addition to this PR, below changes are required to build below extensions successfully. Please note that not all unit tests for these extensions will pass with this PR. More details on the unit test results are below. These unit tests are skipped in CI anyway, so they will not break the CI.

transformer_inference

quantizer

random_ltd

https://github.com/pytorch/pytorch/pull/121030

https://github.com/microsoft/DeepSpeed/pull/5402

Unit test results (rocm/pytorch:rocm6.1_ubuntu20.04_py3.9_pytorch_2.1.2):
transformer_inference:
pytest --color=yes --durations=0 --verbose -s -m "inference_ops" -rF -n 4 unit/ops/transformer/inference
Before this PR:
==== 674 failed, 622 skipped, 8 warnings, 1728 errors in 123.66s (0:02:03) =====
After this PR:
========== 555 failed, 983 passed, 1486 skipped, 8 warnings in 14.35s ==========
quantizer:
pytest --color=yes --durations=0 --verbose -s -m "inference_ops" -rF -n 4 unit/ops/quantizer
Before this PR:
==== 244 failed, 8 warnings in 48.02s ====
After this PR:
===== 187 failed, 57 passed, 8 warnings in 14.74s ====
I could not find random_ltd related unit tests to run.

@rraminen Formatting checks failed with trailing whitespace error: https://github.com/microsoft/DeepSpeed/actions/runs/9115455800/job/25064328013?pr=5401#step:5:60
Should be a straightforward one, can you please check?

Verified the extension builds in the following cases
rocm/pytorch:rocm6.1_ubuntu20.04_py3.9_pytorch_1.13.1
rocm/pytorch:rocm5.7_ubuntu20.04_py3.9_pytorch_2.0.1
rocm/pytorch:rocm6.1_ubuntu20.04_py3.9_pytorch_2.1.2


Bloxstrap is not working

One day I tried to open Bloxstrap but it didn't open for some reason, BUT the regular Roblox client was working, F.I.X I.T

https://github.com/pizzaboxer/bloxstrap/wiki/Roblox-crashes-or-does-not-launch

Today I had the same problem, I was formerly using Vulkan renderer, but I switched to Dx11 and it works. Try it as said according to the doc.
Normally, it didn't happen, but somehow it did today.

I had a similar problem, I fixed it by turning off the option to hide the app entirely.

Issue has been awaiting clarification for over a month, closing as stale. If you have anything further to add, just respond and I'll reopen.


Just have it continue playing whether your finger is on it or not.

@johnnycrich @esalling23 This is still an issue.  Don't let the game pause if you remove your finger.


Preview shows up, but code Typing is impossible

Hi, i am new at coding and MS Studio.
can't get a preview to run. The MS Preview works, but after activating I can't type any code. Only 2-3 characters and suddenly the keyboard focus i gone. Cursor is gone as well. If i click back in it reappears and so forth...
I googled a lot, but could not solve it. I am working on an Intel Mac.

Same here. The preview tab steals the focus very frequently, making it impossible to keep working in any other tab.

Seems to be a duplicate of #160.

Seems to be a duplicate of #160.

Yup! This issue will be tracked there.


chore(main): release rhtap-ui 0.0.1

:robot: I have created a release beep boop
0.0.1 (2023-09-29)
Notes - This is the first release so added features and bug fixes manually for past 1 month as part of release notes. This will get better for the next release when we start to follow conventional commit messages.
Features

Improve application overview screen
Support creation of build and deployment secrets
add list view for ReleaseStrategy
add list view for ReleasePlanAdmission
add Release plan list page
Snapshot Pipeline Runs Tab
Enable auth flow for private repo
Add Deployments tab to the Component Details page
use RemoteSecret for partner task secrets
Add component details page
Add snapshot details page
Add secrets list page and delete action
Upgrade to PF version 5
show pac build errors

Bug Fixes

Update computation of deployed application status
Fix integration name validation issue
fix application name auto suggestion when git url has extra spaces
Fix component details when no container image
fix back and cancel action for git import form
Fix for build node widths in application lifecycle graph
Fix the broken style issue on local setup
select first failed logs tab by default
Fix for recent commits rows disappearing on scroll
fix delete modal redirection issue
Fix broken styles on overview page
fix vulnerability column not loading issue
fix cacheKey not updating issue

:robot: Release is at https://github.com/openshift/hac-dev/releases/tag/rhtap-ui-v0.0.1 :sunflower:


Driver update

Hi, I'm trying to update to latest driver for Intel SOF audio - please can you help? Portal has zero purchased license links and I'm stuck on 1.0.2 which crashes on almost every sleep. Thanks.

Log into the portal at https://coolstar.org/chromebook/driverlicense/ and download the latest driver from your existing account

Thanks, I've been through that but there is no link in there. I changed the SSD so need to reset the license as well. I cannot message on Patreon without a current subscription so hence why I'm coming over here. If you could so that it would be much appreciated. My registered SOF Intel audio driver email is (without dashes<EMAIL_ADDRESS>:

Hi, I'm trying to update to latest driver for Intel SOF audio - please can you help? Portal has zero purchased license links and I'm stuck on 1.0.2 which crashes on almost every sleep. Thanks.

I have locally built release here, very welcome if you donate

Where exactly?

Where exactly?
I can receive money within French and Australia like Wise or Postal.


POST data in JSON format

So that I could successfully POST the battery_reserve_percent setting for my Powerwall 2, I needed to modify the library to post data in JSON format.

Added a class to allow energy monitoring and control of a Powerwall 2.

A bit late, but thanks!


Validation is failing intermittently

On my page validation is failing intermittently. I have found that "frmCtrl.autoValidateFormOptions.disabled" is getting true sometimes due to which validation process is not getting triggered.
Found this condition in source file.
                    if (frmElement === undefined || (frmCtrl !== undefined && frmCtrl.autoValidateFormOptions.disabled)) {
                        return frmElement !== undefined;
                    }

Could someone help

Could you do a reproducing plunker so I have something to debug?

Not really sure how to progress this as I have not seen this behaviour or can reproduce it.  Waiting for a plunker that reproduces it....

Closing as no reproducing plunker provided so no way to debug.  Feel free to re-open when one is provided


wasabiwallet: <IP_ADDRESS> -> 2.0.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/zkSNACKs/WalletWasabi/releases.
meta.description for wasabiwallet is: Privacy focused Bitcoin wallet
meta.homepage for wasabiwallet is: https://wasabiwallet.io/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.3 with grep in /nix/store/qk6k734zsq90gs4p0552c78lszp09i7s-wasabiwallet-2.0.3
found 2.0.3 in filename of file in /nix/store/qk6k734zsq90gs4p0552c78lszp09i7s-wasabiwallet-2.0.3

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
wasabiwallet

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qk6k734zsq90gs4p0552c78lszp09i7s-wasabiwallet-2.0.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A wasabiwallet https://github.com/r-ryantm/nixpkgs/archive/1e54b37c8d88b6edd543177a895cb01a241c734a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qk6k734zsq90gs4p0552c78lszp09i7s-wasabiwallet-2.0.3
ls -la /nix/store/qk6k734zsq90gs4p0552c78lszp09i7s-wasabiwallet-2.0.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

wasabiwallet

Maintainer pings
cc @mmahut for testing.

Result of nixpkgs-review pr 224597 run on x86_64-linux 1

1 package built:

wasabiwallet


Fix: Excluded slf4j dependency from com.ning.async-http-client as it …

…conflicts with the log4j dependency

Thanks


Propagate BUILD_ID env var to jenkins children

Green enough: https://grpc-testing.appspot.com/view/Pull requests/job/gRPC_pull_requests/5388/


Update snapshot scheduling instructions

There was a small change to the console, and it took me a while to figure out how to do this again, so update the instructions so I'll know next time (if they don't change it again!!)

Oh, oops: I could have included this with #423.  I'd forgotten I'd opened that earlier today.  Worrying…

This PR now subsumes #423 "Use [?] callout links for dictionary definitions".  I'm expecting to add some additional changes to the instructions presently, so I'm marking it as draft until those are ready.


Video play frame not entering Full Screen when icon clicked

I am using Rocket.Chat v2.15.3 on a Win10pro computer.

[x] I have tested with the latest version
[x] I can simulate the issue easily

Current Behavior

The play in fullscreen icon on the mp4 file viewer does nothing....
The Sound icon only allows muting, no slider for volume level on mouse hover....

Expected Behavior
The video should play in full screen when I click on the icon
The sound icon should bring up a slider that lets you adjust volume on a mouse hover

Just point the error can be reproducible in Linux and MacOS

YouTube and other video embeds seem to do the same thing. No full-screen:'(.

Seems to be working in develop branch.


Unit tests to ensure that Python & CLI give same results

Since most functions in isovar can be called either directly or via a commandline script, it's worth adding tests for equivalence of results for all the "levels" (allele reads, variant reads, variant sequences, translations, protein sequences).

Now that I'm running tests using commandline args as inputs then this should be less of a concern.


Added detection of input IDL file type. Fixed crash if output directo…

This PR addresses two things I found in sprc_generator:
(1) Some redundancy in specifying the input IDL file type
(2) Crash if output directory doesn't exist
Currently, srpc_generator requires an argument for the IDL type. This PR is a starting point to automatically detect the file type without requiring the user to specify. It checks for "syntax = proto", a known string near the top of all protobuf IDL files. If there is more time, a better solution would be to use getopt_long or optargs to have position-independent command line arguments.
Also, the code assumes that the output directory exists. However, it will crash (segfault) if the output directory isn't valid. This PR also adds code to check for the existence of the output directory. Perhaps a further improvement could be made to create the output directory for the user in this case, should the directory not exist?
Feel free to reject or modify the changes - this was just a starting point based on my experience running the application.

Thank you for this two modification. You are more considerable than I used to be.
The redundancy of specifying the parameters of the input IDL file type was my carelessness, and your modification is more reasonable.
In order to support the original usage, I will submit a change later, which is also compatible with the original usage.  I would ask for your review when I commit.
Moreover, you are very welcome to make Pull Request to the main project sogou/srpc.


Pose estimation refactor

Start phasing out most of data.py and geo.py
Disables estimated pose validity checking (temporarily), so may let large outlier estimates through that will trigger failsafes if using mock GPS node in SITL simulation

Will update the ROS decorators introduced recently and do another pass at this with the improved decorators.


timeout not applied when performing client.search()

Hello. Even though I set the timeout to say 6000, I see timeout error, saying Operation 'Search' timed out after 60 seconds"
# client = QdrantClient(prefer_grpc=True, timeout=6000)`

---------------------------------------------------------------------------
_InactiveRpcError                         Traceback (most recent call last)
Cell In[20], line 1
----> 1 df = searched.compute()

File ~/miniforge3/lib/python3.10/site-packages/dask/base.py:342, in DaskMethodsMixin.compute(self, **kwargs)
    318 def compute(self, **kwargs):
    319     """Compute this dask collection
    320
    321     This turns a lazy Dask collection into its in-memory equivalent.
   (...)
    340     dask.compute
    341     """
--> 342     (result,) = compute(self, traverse=False, **kwargs)
    343     return result

File ~/miniforge3/lib/python3.10/site-packages/dask/base.py:628, in compute(traverse, optimize_graph, scheduler, get, *args, **kwargs)
    625     postcomputes.append(x.__dask_postcompute__())
    627 with shorten_traceback():
--> 628     results = schedule(dsk, keys, **kwargs)
    630 return repack([f(r, *a) for r, (f, a) in zip(results, postcomputes)])

Cell In[18], line 15, in search(rows, limit)
      9 text, query_vector = (
     10     row[0],
     11     get_dense_arr(make_sparse_array(row[1], row[2])),
     12 )
     14 # search
---> 15 search_result = client_.search(
     16     collection_name=COLLECTION_NAME,
     17     search_params=models.SearchParams(hnsw_ef=128, exact=False),
     18     query_vector=query_vector,
     19     limit=limit,
     20 )
     22 # save
     23 for sr in search_result:

File ~/miniforge3/lib/python3.10/site-packages/qdrant_client/qdrant_client.py:310, in QdrantClient.search(self, collection_name, query_vector, query_filter, search_params, limit, offset, with_payload, with_vectors, score_threshold, append_payload, consistency, **kwargs)
    244 """Search for closest vectors in collection taking into account filtering conditions
    245
    246 Args:
   (...)
    306     List of found close points with similarity scores.
    307 """
    308 assert len(kwargs) == 0, f"Unknown arguments: {list(kwargs.keys())}"
--> 310 return self._client.search(
    311     collection_name=collection_name,
    312     query_vector=query_vector,
    313     query_filter=query_filter,
    314     search_params=search_params,
    315     limit=limit,
    316     offset=offset,
    317     with_payload=with_payload,
    318     with_vectors=with_vectors,
    319     score_threshold=score_threshold,
    320     append_payload=append_payload,
    321     consistency=consistency,
    322     **kwargs,
    323 )

File ~/miniforge3/lib/python3.10/site-packages/qdrant_client/qdrant_remote.py:421, in QdrantRemote.search(self, collection_name, query_vector, query_filter, search_params, limit, offset, with_payload, with_vectors, score_threshold, append_payload, consistency, **kwargs)
    418     if isinstance(consistency, get_args_subscribed(models.ReadConsistency)):
    419         consistency = RestToGrpc.convert_read_consistency(consistency)
--> 421     res: grpc.SearchResponse = self.grpc_points.Search(
    422         grpc.SearchPoints(
    423             collection_name=collection_name,
    424             vector=vector,
    425             vector_name=vector_name,
    426             filter=query_filter,
    427             limit=limit,
    428             offset=offset,
    429             with_vectors=with_vectors,
    430             with_payload=with_payload,
    431             params=search_params,
    432             score_threshold=score_threshold,
    433             read_consistency=consistency,
    434         ),
    435         timeout=self._timeout,
    436     )
    438     return [GrpcToRest.convert_scored_point(hit) for hit in res.result]
    440 else:

File ~/miniforge3/lib/python3.10/site-packages/grpc/_channel.py:1161, in _UnaryUnaryMultiCallable.__call__(self, request, timeout, metadata, credentials, wait_for_ready, compression)
   1146 def __call__(
   1147     self,
   1148     request: Any,
   (...)
   1153     compression: Optional[grpc.Compression] = None,
   1154 ) -> Any:
   1155     (
   1156         state,
   1157         call,
   1158     ) = self._blocking(
   1159         request, timeout, metadata, credentials, wait_for_ready, compression
   1160     )
-> 1161     return _end_unary_response_blocking(state, call, False, None)

File ~/miniforge3/lib/python3.10/site-packages/grpc/_channel.py:1004, in _end_unary_response_blocking(state, call, with_call, deadline)
   1002         return state.response
   1003 else:
-> 1004     raise _InactiveRpcError(state)

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.INTERNAL
	details = "Service internal error: 1 of 1 shards failed with: Timeout error: Operation 'Search' timed out after 60 seconds"
	debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Service internal error: 1 of 1 shards failed with: Timeout error: Operation \'Search\' timed out after 60 seconds", grpc_status:13, created_time:"2023-09-10T15:41:28.826548235+09:00"}"
>

Hi @kyoungrok0517,
those are 2 different types of timeouts.
The one you are configuring in client is network connection timeout.
But the one you observing is internal search execution timeout.
There is a way to configure qdrant to execute queries longer than 60 seconds, but it is not really recommended to do, as this long-executing queries may affect the performance of other queries.
Also, it is likely, that this long executing is caused by sub-optimal configuration of the collecton.
Please make sure you are using proper indexes and, is you are using disk-based deployments, you have fast enough disks to work with.

I see. Thanks for the support!
On Sep 10, 2023 6:59 PM +0900, Andrey Vasnetsov @.***>, wrote:

Hi @kyoungrok0517,
those are 2 different types of timeouts.
The one you are configuring in client is network connection timeout.
But the one you observing is internal search execution timeout.
There is a way to configure qdrant to execute queries longer than 60 seconds, but it is not really recommended to do, as this long-executing queries may affect the performance of other queries.
Also, it is likely, that this long executing is caused by sub-optimal configuration of the collecton.
Please make sure you are using proper indexes and, is you are using disk-based deployments, you have fast enough disks to work with.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Misaligned radio button

Hi!
My RadioButton currently looks like this, when (i suppose) both parts should overlap.

Currently using<EMAIL_ADDRESS>

Turns out I messed with the index.js file trying to get it to with with typescript and missed the 'new' box property. My bad.


remove skipped properties from serialized state

What problem is this solving
Pinia has the ability to skip the hydration of certain properties with skipHydrate(). However, there is currently no way to remove skipped properties from the serialized state.
Proposed solution
Pinia could provide a function filterSkipped that would go over pinia.state.value and remove the skipped properties.
Describe alternatives you've considered
No response

What are you really trying to do? You shouldn't need to remove any properties from the serialized state. If that's the case, they probably shouldn't be in the state in the first place


Revert "Revert using any instead of interface{}"

Since we now use an up to date version of go consistently across all the closed-source code, using interface{} instead of any should not be a problem anymore.

lgtm since tests have passed


Allow handsfree to run in the background (eg. electron)

When I tried to use this library using electron, it only worked when the window wasn't hidden.
The reason seems to be that it is using the requestAnimationFrame method.
I would be nice to have a "force-loop" option, to force it to run in the background eg. using the setInterval method.

Oh thank you for this issue! I've been thinking about this a lot recently as well and the best way to approach this, but I wonder if you'll still run into issues with setInterval? Some quick research shows that the problem might just be that electron/browsers throttle inactive contexts and my feeling is that even if I switch to setInterval it will still get throttled.
I haven't used Electron yet, but if your setup/requirements allow maybe you could try disabling backgroundThrottling which is enabled by default: https://www.electronjs.org/docs/api/browser-window#page-visibility
I'll look into providing a "force-loop" option with setInterval, that's a great idea! I have started on a way to forcefully run the loop yourself with [handsfree.runPlugins()](https://handsfree.js.org/ref/method/runPlugins.html) which I use heavily in browser extensions, but you would still need to create your own setInterval loop which I suspect will still get throttled.
Let me know if that helps and if not I'll look into this more!

Thank you so much for your reply.

maybe you could try disabling backgroundThrottling

This works great!  (I tried to find such an option but couldn't) 🚀

but I wonder if you'll still run into issues with setInterval

I adjusted the code using the setInterval method and it worked in general but it was almost impossible to reload the electron window. So your guess that this method would lead to issues seems to be true.

I have started on a way to forcefully run the loop yourself with handsfree.runPlugins()

Very interesting! I will take a look at this. Maybe this is even better than the backgroundThrottling option.
Good job so far. You can close this issue imo👍


@W-13969523: Integrate Active data scripts with PWA Kit

Description

Types of Changes

[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

Removing a public function or component or prop
Adding a required argument to a function
Changing the data type of a function parameter or return value
Adding a new peer dependency to package.json

Changes

Added Active Data Javascript files, updated component app index.jsx to include calls to Active Data Javascript which makes OCAPI call to Active Data Controller
https://salesforce.quip.com/Ar7lADMMF0MC

How to Test-Drive This PR

Prod Realm: https://active-data-bdpx-prd.mobify-storefront.com/
Demo Realm: https://active-data-production.mobify-storefront.com/

Checklists

General

[ ] Changes are covered by test cases
[ ] CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance
You must check off all items in one of the follow two lists:

[ ] There are no changes to UI

or...

[ ] Changes were tested with a Screen Reader (iOS VoiceOver or Android Talkback) and had no issues
[ ] Changes comply with WCAG 2.0 guidelines levels A and AA
[ ] Changes to common UI patterns and interactions comply with WAI-ARIA best practices

Localization

[ ] Changes include a UI text update in the Retail React App (which requires translation)

@aravalsfdc please add a detailed PR description, all Pull Requests need one.
Also, please provide detailed steps for testing this so that people viewing the PR later can validate the work.

@bfeister I have added Quip doc link mentioning the required details in the Changes section of this PR. Let me know if that works.

Created new PR to resolve signed commit issue.
https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1555


Email summary of scanner

Adding cla: yes label, as the PR author is a googler at the time of this PR was created.


Fix uptest

Description of your changes

Use package type configuration in e2e GH workflow
Make release deletion hook more reliable

I have:

[x] Read and followed Upbound's contribution process.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested
Uptest invocation will follow below

/test-examples

We must merge this one to main to make the reusable workflow respect the new configuration.
We have seen this behaviour before https://github.com/upbound/platform-ref-aws/pull/99#issuecomment-1482004770


Get New/Unseen/Unread Messages+PrivateChannels?

Is there any way to get unseen/unread/new messages+PrivateChannels? That way when a bot comes online it can deal with all the messages it received while it was offline/away? I looked into Pagination Action but I don't think my answer is there, or in the channel section.
The only thing I could think of was to get all messages after a certain message in that channel... but there is still no way of knowing if a cached private channel is new or not?
Please forgive my lack of knowledge on the JDA, I only started yesterday. But I can't find anything on this specific topic.

Thank you for your amazing help...


[5.10] Fix duplicated diagnostic issue

Cherrypick of #733

Explanation: Fix duplicated diagnostic issue
Scope: Fix a potential index out of range crash in DefaultDiagnosticConsoleFormatter
GitHub Issue: #729
Risk: Low
Testing: See func testDuplicatedDiagnosticForExtensionFile() in MarkupReferenceResolverTests.swift
Reviewer: @d-ronnqvist

@swift-ci please test


Adding kubectl plugin

I have already started working on this feature and if anyone wants to add functionalities they can ping here

@gaurangkudale  Shall I also join with you !

@Meyazhagan Yeah sure!

@gaurangkudale I also want to work with you on this feature

@gaurangkudale Hello can I also work with you guys

Hi @dwertent,
I am working on the kubectl plugin and I have questions listed below:

For which sub-commands in kubectl should I add the support? Can you please provide suggestions?
Which sub-command functionalities should I add? Can you please mention any specific requirements of sub-command
i.e any specific sub-command which will improve the kubescape or you are planning to add (Any Suggestions would help me)?

@gaurangkudale can i join with you guys please

@gaurangkudale shall I join to you bro please

@gaurangkudale  i'm intrested in this topic . i would to know what kind  of plugins you want add to kubectl..?

@gaurangkudale Hi Gaurang; do you have a draft PR you can share?

There is a plugin :)


Incorrect YAML structure in microbosh.yml': Found duplicate key 'address'

Error to run the comand: bosh micro deployment microbosh/microbosh.yml
Incorrect YAML structure in `/Users/mariamoralesmunoz/bosh-workspace/deployments/microboshes/deployments/microbosh/microbosh.yml': Found duplicate key 'address'
Can you help me, please?
---
name: microbosh

logging:
level: DEBUG

network:
type: dynamic
vip: <IP_ADDRESS>    #Change this to the allocated IP address from Step 2

resources:
persistent_disk: 20000
cloud_properties:
instance_type: m1.small
availability_zone: us-east-1a

cloud:
plugin: aws
properties:
aws:
access_key_id: ---
secret_access_key: ---
default_key_name: bosh
default_security_groups: ["bosh"]
ec2_private_key: ~/.ssh/bosh
ec2_endpoint: ec2.us-east-1.amazonaws.com
region: us-east-1

apply_spec:
agent:
blobstore:
address: <IP_ADDRESS>    #Change this to the allocated IP address from Step 2
nats:
address: <IP_ADDRESS>    #Change this to the allocated IP address from Step 2
properties:
aws_registry:
address: <IP_ADDRESS>    #Change this to the allocated IP address from Step 2

bosh-init is the replacement for bosh micro. manifest above will not work with bosh-init.

So what should I do?
2015-10-16 18:56 GMT+02:00 Dmitriy Kalinin<EMAIL_ADDRESS>
bosh-init is the replacement for bosh micro. manifest above will not work
with bosh-init.
—
Reply to this email directly or view it on GitHub
https://github.com/cloudfoundry/bosh-init/issues/51#issuecomment-148769606
.

--

You can try following http://bosh.io/docs/init-aws.html to install BOSH on AWS.

Thanks you so much. I will try it
El lunes, 2 de noviembre de 2015, Dmitriy Kalinin<EMAIL_ADDRESS>escribió:

You can try following http://bosh.io/docs/init-aws.html to install BOSH
on AWS.
—
Reply to this email directly or view it on GitHub
https://github.com/cloudfoundry/bosh-init/issues/51#issuecomment-152951379
.

--

Thanks you so much, I try it.
2015-11-02 9:35 GMT+01:00 Dmitriy Kalinin<EMAIL_ADDRESS>
You can try following http://bosh.io/docs/init-aws.html to install BOSH
on AWS.
—
Reply to this email directly or view it on GitHub
https://github.com/cloudfoundry/bosh-init/issues/51#issuecomment-152951379
.

--


Fix file parameter in az ml workspace update

The parameter accepts -f of --file
Documentation:
--file -f                           : Local path to the YAML file containing the Azure ML
workspace specification. The YAML reference docs for
workspace can be found at: https://aka.ms/ml-
cli-v2-workspace-yaml-reference.

@jhirono
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


[core] Expose project copyright and description as flags in release auto-config

Follow up to #918
Properties to be added:

copyright
description
inceptionYear
stereotype
authors

Released in v1.3.0 -> https://github.com/jreleaser/jreleaser/releases/tag/v1.3.0


Add support for Zotero's Date property

Followed same approach as https://github.com/dvanoni/notero/pull/35
Tested locally and confirmed to be working
Went with a text type for the date instead of a date type because Zotero itself doesn't store that property as a date

For example, my test entries (journal articles) included dates of 2022-05
It makes the most sense for users to use a formula column on the Notion side to parse the date strings

I went ahead and applied that small change. Thanks again for the contribution!

@dvanoni - sorry, didn't see your prior comment until now. Thanks for merging!


Us053 remove loaded sample

Works alongside:
https://github.com/ONSdigital/ras-party/pull/131
https://github.com/ONSdigital/rm-collection-exercise-service/pull/60
This PR enables an internal user to unlink a sample from a collection exercise
Note - Changes are still being made to party so endpoints may change

 US053: INT- Remove a loaded sample (13)

Codecov Report

Merging #159 into master will increase coverage by 0.34%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #159      +/-   ##
==========================================
+ Coverage   95.53%   95.88%   +0.34%
==========================================
  Files          35       35
  Lines        1680     1725      +45
==========================================
+ Hits         1605     1654      +49
+ Misses         75       71       -4

Impacted Files
Coverage Δ

...onse_operations_ui/controllers/party_controller.py
96.19% <100%> (+0.44%)
:arrow_up:

response_operations_ui/forms.py
99.15% <100%> (+0.02%)
:arrow_up:

...esponse_operations_ui/views/collection_exercise.py
97.53% <100%> (+0.26%)
:arrow_up:

..._ui/controllers/collection_exercise_controllers.py
91.89% <100%> (+4.89%)
:arrow_up:

Continue to review full report at Codecov.

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


Invalid type owner for DynamicMethod

Hi have similar issue of issue https://github.com/RSuter/NSwag/issues/877, stacktrace is:
[ArgumentException:]    NSwag.AspNet.Owin.Middlewares.<GenerateSwaggerAsync>d__9.MoveNext() +339    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58    System.Runtime.CompilerServices.TaskAwaiter1.GetResult() +28    NSwag.AspNet.Owin.Middlewares.<Invoke>d__8.MoveNext() +594 [AggregateException:]    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +26    Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.Rethrow() +33    Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result) +155    Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.EndProcessRequest(IAsyncResult result) +34    System.Web.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar) +152    System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +125
Library version:
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
<package id="NJsonSchema" version="9.13.27" targetFramework="net46" />
<package id="NSwag.AspNet.Owin" version="12.0.18" targetFramework="net46" />
<package id="NSwag.Core" version="12.0.18" targetFramework="net46" />
<package id="NSwag.SwaggerGeneration" version="12.0.18" targetFramework="net46" />
<package id="NSwag.SwaggerGeneration.WebApi" version="12.0.18" targetFramework="net46" />

Thanks

Can you provide a sample project to repro this?

Hi, having dozens of Controller, trying to reproduce a minimal version and publishing on GitHub. In some days will ask for your help. Thanks for now.

Hi, unfortunately, I'm using third-party dlls overriding ApiController. For those dll I don't have the source code. You can close the issue, can't help you reproducing that.


Fix empty line in the builtin previewer

Whenever the file ends with newline, the builtin previewer was adding an
empty line at the end of the file. That's a side effect splitting and
rejoining the lines with \n. Basically, when we split a\nb\nc\n we get
{'a', 'b', 'c', ''}, then nvim_buf_set_lines treats each item in the
table as a line, and inserts an empty line at the end.
We do need to account for files that don't end with a new line though,
hence the check.
I don't have a way to test the \r\n logic locally, no Windows hosts
around, but it should work too.
Before:

(line 23 doesn't really exist, file only has 22 lines: https://github.com/fsouza/dotfiles/blob/main/.github/dependabot.yml)
After:

It was annoying me too and I was going to fix it, you just saved me some time, ty! :-)
Btw, no need to worry about windows, nvim-fzf doesn't support windows and I have no intentions of installing this privacy abusing OS to create an equivalent windows RPC interface to fzf.


Updated linux files for microsoft's jan 2024 psu

@jmjaffe37 GH Action checks seem to be failing...

@karianna, this is expected since our new version is not live yet. Once it is, the links used to download and test our installers will be up and running. At that point, I will mark this PR as "ready for review" and hopefully another GHA check will run.

Is someone able to set the GHA checks to rerun?
@karianna @gdams

/merge

/approve

@karianna I think you still have to add your approval before this merges successfully 😅

/approve


Potential redundancy in run_classifier.py example script

https://github.com/huggingface/pytorch-pretrained-BERT/blob/7cc35c31040d8bdfcadc274c087d6a73c2036210/examples/run_classifier.py#L641-L642
Here we are calling the model twice. I understand that the model returns different things depending on the presence of label_ids, but this could actually be quite expensive. I think we can change the if label is not None branch in the model code below to return two items instead, but I'm not sure if it will break things elsewhere.
https://github.com/huggingface/pytorch-pretrained-BERT/blob/7cc35c31040d8bdfcadc274c087d6a73c2036210/pytorch_pretrained_bert/modeling.py#L969-L979

I agree with you, this part of the API could be improved.
The BERT model is now used in several third-party libraries like AllenNLP and FLAIR so we have to be careful not to make any breaking change on this model.
We could add a flag to get full output maybe.

Mind if I submit a PR adding a flag that allows getting the full output in the case of if labels is not None?

I'm ok to welcome a PR on that indeed so but there is one issue with flags in forward() call and multi-GPU you may or may not be aware of, and we need to think about:
All the inputs to the forward() call are split across GPUs so having a non-batched input like a flag break DataParallel for multi-gpu.
So maybe we need to add a general flag in the models which can be set. Maybe you can try to draft a PR and we check it behave well on the examples then.

Hmm, okay, I was not aware of that. I think adding it as a property on the model itself is arguably an unnecessary over-complication for a simple matter. Returning a tuple value is much cleaner and the user can always discard the information that they don't care. Although I do understand the concern of backward compatibility. So I won't do this PR and will let you guys make the decision between the two options. Personally I lean more towards the API-breaking option.


Can't work with rollup-plugin-node-globals

I made rollup-plugin-babel and rollup-plugin-node-globals work together in my program. But it seems it didn't work well..
$ NODE_ENV=development rollup -c -w
bundling...
⚠   'url' is imported by node_modules/node-fetch/index.js, but could not be resolved – treating it as an external dependency
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency

⚠   'http' is imported by node_modules/node-fetch/index.js, but could not be resolved – treating it as an external dependency
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency

⚠   'https' is imported by node_modules/node-fetch/index.js, but could not be resolved – treating it as an external dependency
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency

⚠   'zlib' is imported by node_modules/node-fetch/index.js, but could not be resolved – treating it as an external dependency
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency

⚠   'stream' is imported by node_modules/node-fetch/index.js, but could not be resolved – treating it as an external dependency
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
.....

here is my example:  https://github.com/alwaysonlinetxm/rollup_issue.git
run yarn install & yarn run start, and you will find the  rollup-plugin-node-globals won't work(actually
the rollup-plugin-babel won't work too).

my own mistake. I have found what happened.. Forget it.

@alwaysonlinetxm please, what's the solution?
It's my setup faulty? because I'm getting those errors too?
Do I need to install something? Thanks in advance

@matheo It seems the problem is the order of plugins. maybe you should adjust the order of your plugins.


Moved bundle-collapser to devDependencies

Released in 1.0.3.
Updated unexpected to<EMAIL_ADDRESS>Released unexpected 9.2.1

Remember that unexpected-dom also uses a version of array-changes with the bug.

Updated in<EMAIL_ADDRESS>


Add command to check solc autodetected version

Component
Forge
Describe the feature you would like
Foundry has a config which is auto detect solc version. It defaults to true and when you type forge build, it detects the appropriate newest allowed version and uses that.
I propose you add a "forge detect-sol" command which spits out the detected version.
Additional context
No response

hey @mattsse! I would like to try this, but I need help with how to get the compile version if I have the root of the project?

@kamuik16 Just to clarify, this feature is already built in, just not exposed as a command. So ideally you'd just find where this happens in the code.
I have no Rust experience and would take a while to learn this project's structure, which is why I didn't come up with a PR straight away.

@kamuik16 Just to clarify, this feature is already built in, just not exposed as a command. So ideally you'd just find where this happens in the code.
I have no Rust experience and would take a while to learn this project's structure, which is why I didn't come up with a PR straight away.

I was asking for that function only, the project is pretty large.

it's likely we need some helpers for this type
https://github.com/foundry-rs/compilers/blob/ce808f4a81d953b571b5dd823a74fdc3260c1441/src/resolver/mod.rs#L462-L468
the way this is used during the compilation step is:
https://github.com/foundry-rs/compilers/blob/ce808f4a81d953b571b5dd823a74fdc3260c1441/src/compile/project.rs#L138-L147
but for this command we'd need to do this ourselves: resolve the project's graph, then the versions and print them

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have experience with JavaScript and Python, along with a solid understanding of Solidity. My background in open-source projects equips me to effectively implement features and contribute to documentation. I can leverage my skills to enhance the Foundry toolset, ensuring clear communication and functionality for developers.
How I plan on tackling this issue
I would start by reviewing the existing Foundry codebase to understand how the solc version detection is implemented. Then, I would create a new command, forge detect-sol, that retrieves and displays the detected solc version. After implementing the feature, I would write tests to ensure its functionality and verify that it works seamlessly with the existing command structure.


Math.floor operation on MeasureOutput for Java and C#

I just wanted to check if this behavior was by-design before I made any PR.  In react-native-windows, we have to do Math.Ceiling on all of our measure function outputs because casting from float/double to int always does a floor operation:
https://github.com/facebook/yoga/blob/master/csharp/Facebook.Yoga/MeasureOutput.cs#L16
https://github.com/facebook/yoga/blob/master/java/com/facebook/yoga/YogaMeasureOutput.java#L18
I imagine this isn't a problem for react-native on Android because they don't encounter fractional pixel dimensions?

Nice catch! ButI think you should not use any rounding logic as those values are treated as float in the c part.
For Java you should instead use:
  public static long make(float width, float height) {
    return make(Float.floatToIntBits(width), Float.floatToIntBits(height));
  }

In C#:
        public static long Make(double width, double height)
        {
            int widthInt = BitConverter.ToInt32(BitConverter.GetBytes((float)width), 0);
            int heightInt = BitConverter.ToInt32(BitConverter.GetBytes((float)height), 0);
            return Make((widthInt , heightInt);
        }

As this is a little cumbersome on C# maybe its better to use directly a struct with two floats (see YGSize)
This additionally prevents us from a bug if we calculate a size bigger than 16777216 as this would overflow into the exponent part.

@emilsjolander Java still needs to be changed/fixed.

@woehrl01 putting up a diff now (internally). Thanks for noticing!

@woehrl01 putting up an internal diff for java now. thanks!

https://github.com/facebook/yoga/commit/352f592767b148747da2d5822f0f4de17eb7b9c2


Build Ant from source

Issue description
We currently use the upstream-provided Ant builds.
Ant provides bootstrap tooling for building itself,
so building Ant from scratch is feasible.
See also: https://bootstrappable.org
Technical details
The upstream bootstrap.sh script:
https://github.com/apache/ant/blob/master/bootstrap.sh

If we want a fully-featured version of Ant, we'll need to package all of these dependencies:

[ ] jakarta-regexp
[ ] jakarta-oro
[ ] junit
[ ] netrexx
[ ] commons-logging
[ ] log4j
[ ] commons-net
[ ] bcel
[ ] jakarta.mail
[ ] jdepend
[ ] resolver
[ ] jsch
[ ] JAI
[ ] xz-java

(I excluded the ones which solely provided a script task.)

These are vendored in Ant's source code release tarball by default, but the ideal would be to build everything from source via Nixpkgs.


CVODE_BDF and ARKODE Segfault initializing large ODE systems

I was trying to run forward sensitivity analysis on a stiff ODE with ~400 variables and ~20000 parameters with CVODE_BDF and it kept crashing. As far as I've been able to tell it seems that CVODE_BDF and ARKODE run into memory errors initializing sufficiently large ODEs, the cutoff I was finding was around Ny=4000000. This doesn't seem to be a problem for CVODE_Adams.
using DifferentialEquations
using Sundials
f(u,p,t) = -u
Ny = 100000000
u0 = ones(Ny);
tspan = (0.0,1.0);
prob = ODEProblem(f,u0,tspan)
inte = init(prob,Sundials.CVODE_BDF());

gives the error:
julia(37667,0x7fff9686f380) malloc: *** mach_vm_map(size=80000000000000000) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

signal (11): Segmentation fault: 11
in expression starting at REPL[9]:1
SUNMatGetID at /Users/mattjohnson/.julia/artifacts/1f5473a691591a5b598ac8ea2e56a1b17591ed82/lib/./libsundials_sunmatrixdense.3.dylib (unknown line)
SUNLinSol_Dense at /Users/mattjohnson/.julia/artifacts/1f5473a691591a5b598ac8ea2e56a1b17591ed82/lib/libsundials_sunlinsoldense.3.2.0.dylib (unknown line)
SUNLinSol_Dense at /Users/mattjohnson/.julia/packages/Sundials/LzbrB/src/API/sunlinsol.jl:65 [inlined]
SUNLinSol_Dense at /Users/mattjohnson/.julia/packages/Sundials/LzbrB/src/API/sunlinsol.jl:70
#__init#35 at /Users/mattjohnson/.julia/packages/Sundials/LzbrB/src/common_interface/solve.jl:170
__init at /Users/mattjohnson/.julia/packages/Sundials/LzbrB/src/common_interface/solve.jl:42
__init at /Users/mattjohnson/.julia/packages/Sundials/LzbrB/src/common_interface/solve.jl:42 [inlined]
#init_call#446 at /Users/mattjohnson/.julia/packages/DiffEqBase/FfKvH/src/solve.jl:14 [inlined]
init_call at /Users/mattjohnson/.julia/packages/DiffEqBase/FfKvH/src/solve.jl:13 [inlined]
#init#447 at /Users/mattjohnson/.julia/packages/DiffEqBase/FfKvH/src/solve.jl:33 [inlined]
init at /Users/mattjohnson/.julia/packages/DiffEqBase/FfKvH/src/solve.jl:21
unknown function (ip: 0x19cbebb18)
jl_apply at /Users/sabae/buildbot/worker/package_macos64/build/src/./julia.h:1631 [inlined]
do_call at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:328
eval_body at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:0
jl_interpret_toplevel_thunk_callback at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:888
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x10d0f238f)
unknown function (ip: 0x1)
jl_interpret_toplevel_thunk at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:897
jl_toplevel_eval_flex at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:814
jl_toplevel_eval_flex at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:764
jl_toplevel_eval_flex at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:764
jl_toplevel_eval at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:823 [inlined]
jl_toplevel_eval_in at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:843
eval at ./boot.jl:330
eval_user_input at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:86
macro expansion at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:118 [inlined]
#26 at ./task.jl:333
jl_apply at /Users/sabae/buildbot/worker/package_macos64/build/src/./julia.h:1631 [inlined]
start_task at /Users/sabae/buildbot/worker/package_macos64/build/src/task.c:659
Allocations: 80513850 (Pool: 80501334; Big: 12516); GC: 53
Segmentation fault: 11

It's creating a 4000000x4000000 matrix, while something for non-stiff equations doesn't use the matrix so it's just making a few 4000000 length vectors.

In context, CVODE_BDF requires 128 TBs here (https://www.wolframalpha.com/input/?i=4000000x4000000+x+64+bits) while methods which are not implicit utilize 32 mbs (https://www.wolframalpha.com/input/?i=4000000+x+64+bits).
You can get around this by using CVODE_BDF(linear_solver=:GMRES)

Awesome!  Thanks!  Sorry I thought CVODE_Adams was implicit for some reason. I knew I'd solved these equations before with other softwares.

CVODE_Adams is "almost explicit", in that it doesn't use the Jacobian and uses functional iteration. It does this because its stability region is already too small for stiff ODEs, so there's no reason to use a Newton method. CVODE_BDF uses a Newton method though, which requires either the Jacobian matrix or a matrix-free method like GMRES.


Throw exception when reflection fails (function references in Kotlin 1.6)

Hello,
Does this change mean we can no longer use the POST("/new", PostController::new) syntax? When I do I get an INTERNAL_SERVER_ERROR message with no further details.
Many thanks.


Update server mods as of Feb, 2022

Several mods have updates with major changes as well as bugfixes.
Notable changes:

Improvements on APercy vehicles
Draconis new major update with new machanics and bugfixes

Full list of updated mods:

kartcar@10587
trike@11084
hidroplane@11294
motorboat@10996
demoiselle@11065
mapserver@10938
skinsdb@11044
draconis@11235
water_life@10254
mesecons@11304
lumberjack@11039
xdecor@10178
mtimer@9958
regrowing_fruits@10631
nether@11303
unified_inventory@10829
3d_armor@11131
bonemeal@10585
dmobs@11181
ethereal@11207
farming@10944
itemframes@10483
mob_horse@11324
mobs@11107
mobs_animal@10737
mobs_monster@10752
mobs_npc@10750
protector@11106
basic_materials@10975
currency@10265
homedecor_modpack@11314
home_workshop_modpack@9914
signs_lib@11166

Draconis update may break some items. I'll delay it for a bit until we have a fix for some aliases.

Working to get Draconis update as part of Feb 2022 release.


Actifity Error

So I get an actifity error under "others".
But can't find more infos about this error.
Any help?
    await launchImageLibrary(
      {
        mediaType: 'photo',
        includeBase64: false,
      },
      async (response) => {
        if (response.errorCode) {
          console.log('res', response);
          alert(response.errorMessage);
          return;
        }```

exact version your using?

Provide requested details to further diagnose and fix any issue.


Response Caching Middleware — Config Cache-Control max-age per Content-Type

How, with Response Caching in Middleware, can we configure:

Cache-Control 's max-age per Content-Type?
Override cache policy by Location?

With Microsoft.AspNetCore.Builder.StaticFileOptions, we can use if/else/switch, but how to do the same thing with Microsoft.Net.Http.Headers.CacheControlHeaderValue()

@JunTaoLuo

We don't currently have any functionality like StaticFileOptions's OnPrepareResponse where you can directly modify the response that's being sent by the middleware. This feature is tracked in https://github.com/aspnet/Home/issues/2618.
However, you can achieve a similar effect by setting the Vary header to "Content-Type, Location" and storing multiple responses. See https://docs.microsoft.com/en-us/aspnet/core/performance/caching/middleware?view=aspnetcore-2.1#http-headers-used-by-response-caching-middleware for an explanation.

@JunTaoLuo

However, you can achieve a similar effect by setting the Vary header to "Content-Type, Location" and storing multiple responses.

Similar effect? Can you show me how to store multiple responses with different MaxAge?

Ah, I mis-spoke. The Vary header will only allow the storing of multiple responses for different values of Request headers. However, in your scenario, you want to set different max-age based on the Content-Type of the Response right? That's not possible at the moment and the feature in the previous link would need to be implemented to enable this. The same goes for Location. The functionality of the response cache middleware is currently very limited so you may need to set the appropriate headers and rely on the caching performed by the browser and intermediaries like proxies.


jdk 16, 17 --illegal-access change, JEP 396 Strongly Encapsulate JDK Internals by Default

jdk16, 17 change the default of --illegal-access= from permit to deny.
JEP 396: Strongly Encapsulate JDK Internals by Default https://github.com/eclipse/openj9/issues/11240
See https://ci.eclipse.org/openj9/job/Grinder/1300/tapResults/ - extended.system (the sanity.system tests passed).
MiniMix_5min_0
LT  18:26:20.938 - Test failed
LT    Failure num.  = 1
LT    Test number   = 2974
LT    Test details  = 'Mauve[gnu.testlet.java.lang.reflect.AccessibleObject.accessible]'
LT    Suite number  = 0
LT    Thread number = 0
LT  >>> Captured test output >>>
LT  PASS: gnu.testlet.java.lang.reflect.AccessibleObject.accessible (number 0)
LT  java.lang.reflect.InaccessibleObjectException: Unable to make protected java.lang.ClassLoader() accessible: module java.base does not "opens java.lang" to unnamed module @20c80e7
LT  	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
LT  	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
LT  	at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:188)
LT  	at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:181)
LT  	at gnu.testlet.java.lang.reflect.AccessibleObject.accessible.test(accessible.java:43)
LT  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
LT  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
LT  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
LT  	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
LT  	at net.adoptopenjdk.loadTest.adaptors.MauveAdaptor.executeTest(MauveAdaptor.java:74)
LT  	at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
LT  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
LT  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
LT  	at java.base/java.lang.Thread.run(Thread.java:853)
LT  FAIL: gnu.testlet.java.lang.reflect.AccessibleObject.accessible: java.lang.reflect.InaccessibleObjectException: Unable to make protected java.lang.ClassLoader() accessible: module java.base does not "opens java.lang" to unnamed module @20c80e7 (number 0)

HCRLateAttachWorkload_previewEnabled_0 also failed on this jdk17 build, but perhaps related to using a preview feature rather than --illegal-access

Ah, HCRLateAttachWorkload_previewEnabled_0 needs a newer version of ASM which understands jdk17.

Updating ASM to the latest 9.0 fixes the HCRLateAttachWorkload_previewEnabled_0  test on JDk 16 (test run in internal Grinder/12786).
ASM updated to 9.0 in the PRs of https://github.com/AdoptOpenJDK/openjdk-tests/issues/2125

Not sure jdk16 was ever broken wrt ASM. The failure I got is with jdk17, I don't think there is any ASM version that supports that yet. This is fine, we can accept the failure for a short time, or exclude the test if it's causing triage problems.

I see. However, the ASM we were using was not being updated for a while. These PRs update ASM to the latest version--which can't hurt.

Hi @karianna - https://github.com/AdoptOpenJDK/openjdk-tests/issues/2125 doesn't solve this issue. It's only related. Re-opening it.

See also https://github.com/eclipse/openj9/issues/11607

See also https://github.com/eclipse/openj9/issues/11607

HCRLateAttachWorkload_previewEnabled_0 has been fixed for 17 and up: ( e.g. https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk17_j9_extended.system_ppc64_aix/49). This issue can be closed.


Fixes to clarify dev mode

This PR adds some language to the developer docs to clarify how "dev mode" works for testing plugins. Specifically, it makes clear that:

Dev mode plugins are loaded from the local GOPATH
Only one plugin may be used in dev mode at a time
When a dev mode plugin is enabled, Traefik will shut down after 30 minutes

Dev mode plugins are loaded from the local GOPATH

It's wrong: the GOPATH from Go is not used, the dev plugins can use any path as gopath.

I think that @PCM2 was speaking about the goPath set in the static config.

I understand because I know how it works but only few people will understand that.
I prefer to not use the word (in uppercase) GOPATH or the term "local" to describe the plugin behavior.

I prefer to not use the word (in uppercase) GOPATH or the term "local" to describe the plugin behavior.

OK, understood on "GOPATH" but you invented the spelling "GoPath," which no one will understand, either. Can we say you need to "specify a path to a Go workspace"?
Why do you not like "local"? I think this will be the #1 factor that will be important to people using dev mode -- that the plugin is loaded from the local machine (local to Traefik) rather than from GitHub.

Why do you not like "local"?

Because my local GOPATH is the GOPATH, yes I'm a Go dev :smile:

Can we say you need to "specify a path to a Go workspace"?

Yes and we can add: "The Go workspace is the equivalent of the concept of GOPATH for a local Go environment dedicated to plugins. It can be the local GOPATH or any directory."

See if this change does it for you.


QRCode for exports

Hi there,
Just tried it on the MRMCD fahrplan and I found out that it misses a QRCode option for links for instance to export it on a android app.
Is it possible to add one ? Thank you.

Hmm, can you provide an example of what you are looking for? What would the QR codes link to? Which Android app are we talking about?

For instance with giggity I can enter the XML or JSON (I don't remember) URL ( like https://cfp.mrmcd.net/2017/schedule.json ) via QRCode and then I have the schedule synced on my phone.

I'd merge a PR that adds a QR code link to the drop down menu next to the JSON/XML link :)


Remove bulldog code from sovrin-client; should be in its own repo.

@lovesh can you please merge this PR


Refactor link previews

Moves preview content as part of the original message
Renders toggle button text with CSS so it's not selectable and not copyable
Toggle button only appears after getting preview content, not instantly

This will fix #1173

Fixes auto opening previews in history and page reloads
Fix image previews broken by one of the previous PRs
Add more tests

Fix image previews broken by one of the previous PRs

Putting this here for the record: it would be really really really great if you could make this its own PR so we could merge that ASAP. I don't think I'll have time to review this this week or for v2.3.3.
Thanks!

@astorije Addressed your comments.

Okay fixed, should be good to go.

For the record, when it comes to code coverage, what this PR does:
Before:
Statements   : 20.65% ( 741/3589 )
Branches     : 11.67% ( 196/1680 )
Functions    : 22.42% ( 115/513 )
Lines        : 23.95% ( 735/3069 )

After:
Statements   : 20.93% ( 752/3593 )
Branches     : 12.75% ( 215/1686 )
Functions    : 22.52% ( 116/515 )
Lines        : 24.25% ( 745/3072 )

I was actually expecting more based on the tests in this PR, but I'll take it!


Add device_id to users & solutions + mismatch check

resolves #73

Tested-by: Kostiantyn Kostiuk<EMAIL_ADDRESS>


Fix typo: worfklow -> workflow

@andresnava : Thanks for your contribution to the Azure documentation! The author, @georgewallace, has been notified to review your proposed change.

@andresnava Thanks for the contribution. Everything looks good. #sign-off


Use function token colour for async token

after

Are you using Sublime Babel JS syntax? Your "before" colors look different than I'd expect (in particular now() call should be yellow).

No, but I was already wondering if there is something different in the colours in my setup. I just reinstalled VS Code and also deleted all settings.
I am using Windows 10, in case that would make a difference.
Here is the display after reinstall, default Dark+ theme and no extensions:

Here with Subliminal:

Now I get it, I overlooked the part about Sublime syntax. I will look at my PRs again. :)

This makes no difference with Sublime syntax.


Project activity

Hello! We're wondering whether we should use this package. Is it officially maintained ? Supposed to work with latest Sylius versions ?

Hi there !
We are still working on releasing our first PayPlug x Sylius. It is not ready yet, we are waiting on some improvements regarding Sylius refund plugin.
In its first version, the plugin will work with Sylius 1.7. We will work in 1.8 compatibility in a few month.
Regards,
PayPlug Team.


Add listen command

Music search via (iTunes/Rdio/Spotify)

I'm closing this... all the music apis limit to song samples, except for soundclound which ain't worth it.


Added a cache version number, to reset cache as needed

Added an option to reset the cache to combat caching an outdated library in conda.
We came across an issue with the forks using a different version of sphinx to master, this was down to master using a cached conda build. Github caches expire automatically after 7 days of not writing to them, but do not provide an explicit way to empty a cache, so by providing a cache_number we can reset the cache as required if this problem should ever arise again in the future.

Sorry, my earlier thought to use github secrets as a method to avoid needing in-repo changes to reset the cache won't work as secrets aren't available to workflows running on PRs from forks.
However, I can't think of a better alternative way to do it. An option would be to go ahead with this change for now and create an issue to handle the problem in a neater way later.


rqt_image_view: 1.1.0-1 in 'foxy/distribution.yaml' [bloom]

Increasing version of package(s) in repository rqt_image_view to 1.1.0-1:

upstream repository: https://github.com/ros-visualization/rqt_image_view.git
release repository: https://github.com/ros2-gbp/rqt_image_view-release.git
distro file: foxy/distribution.yaml
bloom version: 0.9.7
previous version for package: 1.0.4-1

rqt_image_view
* fix segfault on topic change (#40 <https://github.com/ros-visualization/rqt_image_view/issues/40>)
* fix ImportError in image_publisher script (#39 <https://github.com/ros-visualization/rqt_image_view/issues/39>)
* update include directives for image_transport to avoid deprecation warning (#34 <https://github.com/ros-visualization/rqt_image_view/issues/34>)

Holding for the upcoming Foxy sync


feat(signalling-server): change tarijs to use libp2p web and relay through seed nodes

Problem
Deploying a separate signaling server to facilitate web connections is probably an anti-pattern and a centralising force.
We should be able to leverage libp2p to facilitate ICE connections.
This is a solved problem so we should investigate how it's achieved elsewhere.
Proposal 1
TODO: investigate and understand how this problem is solved and implement this.
Implement libp2p webtransport on validator nodes and/or indexers to allow them to facilitate connections.
Use the following high-level scenario as a guideline:

Given a Tari network NETWORK_1
Given a tari-enabled wallet (walletd, metamask snap etc) WALLET_1
Given a tari-enabled website (tari.js) WEB_1
Given WEB_1 establishes an ICE connection to a random member of NETWORK_1
When WEB_1 wants to connect to WALLET_1, it provides ICE details (this could be an URL or some other approach)
Then WALLET_1 uses the ICE details to establish a connection to WEB_1
And WEB_1 can interact with WALLET_1

ICE details may include:

The tari node (network address may be simplest) that must be used to facilitate the connection
Permissions

Related links:

https://www.wikiwand.com/en/Interactive_Connectivity_Establishment
https://docs.libp2p.io/concepts/transports/webtransport/
https://blog.libp2p.io/2022-12-19-libp2p-webtransport/

Closing this because we've gone another direction


chore: add MIT license

although deprecated, there are projects that use this that could benefit from the clarity of a license

Need confirmation from all copyright holders: @jprichardson @dcousens

I'm in favor.

My contributions were assumed to MIT licensed 💛
That said, if someone is using this, they should probably update their project...

thanks guys! could someone please publish a patch?

@jprichardson would need to do that.


[WIP] Allow upgrades from 1.6 & 1.7 in a same version

This PR follows #73.
It brings code from the branch 1.6, in order to allow these upgrades in a single version:

[x] From 1.7 to 1.7
[x] From 1.6 to 1.7
[x] From 1.6 to 1.6

Merged with #73


Send a TEARDOWN command to the Source

Hi Devs,
I was testing the sourceOnDemand by setting up two rtsp-simple-server. My test shows that the server does not send a TEARDOWN Command to the source.
I would like to request if the server can send a TEARDOWN command to the source before the source is stopped.
Also would it be possible to do the same if the program is interrupted by Ctrl C on windows.
Thank you,
Best Regards,

Hello, since the RTSP specification prescribes to send the TEARDOWN to the server when a session ends, this can be classified as bug and will be solved as soon as possible.

Hello, this is fixed in master and will be added to the next release.

added in v0.9.12


Installation error (conda)

Hi, according to the conda installation process, I made an error at "conda env create -f autohic.yaml". The error is as follows:
Executing transaction: | b'By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html\n'                                                                                done
Ran pip subprocess with arguments:
['/public3/home/scb9766/.conda/envs/autohic/bin/python', '-m', 'pip', 'install', '-U', '-r', '/public3/home/scb9766/soft/AutoHiC/condaenv.4p1kidx4.requirements.txt']
Pip subprocess output:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting addict==2.4.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting charset-normalizer==3.1.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/33/97/9967fb2d364a9da38557e4af323abcd58cc05bdd8f77e9fd5ae4882772cc/charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 kB 2.3 MB/s eta 0:00:00
Collecting click==8.1.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
Collecting colorama==0.4.6
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting filelock==3.12.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ad/73/b094a662ae05cdc4ec95bc54e434e307986a5de5960166b8161b7c1373ee/filelock-3.12.0-py3-none-any.whl (10 kB)
Collecting fsspec==2023.5.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ec/4e/397b234a369df06ec782666fcdf9791d125ca6de48729814b381af8c6c03/fsspec-2023.5.0-py3-none-any.whl (160 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.1/160.1 kB 2.3 MB/s eta 0:00:00
Collecting hic-straw==1.3.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8e/ec/431c76970f8973ea5937a9b5f2d1689a641b3fe6475246a32451274fa2dd/hic-straw-1.3.1.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Pip subprocess error:
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/init.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  ERROR: Exception:
  Traceback (most recent call last):
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
      yield
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
      data = self._fp_read(amt) if not fp_closed else b""
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
      return self._fp.read(amt) if amt is not None else self._fp.read()
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read
      data = self.__fp.read(amt)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/http/client.py", line 463, in read
      n = self.readinto(b)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/http/client.py", line 507, in readinto
      n = self.fp.readinto(b)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/socket.py", line 704, in readinto
      return self._sock.recv_into(b)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/ssl.py", line 1242, in recv_into
      return self.read(nbytes, buffer)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/ssl.py", line 1100, in read
      return self._sslobj.read(len, buffer)
  socket.timeout: The read operation timed out

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
      status = run_func(*args)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
      return func(self, options, args)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/commands/wheel.py", line 170, in run
      requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
      result = self._result = resolver.resolve(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
      state = resolution.resolve(requirements, max_rounds=max_rounds)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
      self._add_to_criteria(self.state.criteria, r, parent=None)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
      if not criterion.candidates:
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
      return bool(self._sequence)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
      return any(self)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
      return (c for c in iterator if id(c) not in self._incompatible_ids)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
      candidate = func()
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
      self._link_candidate_cache[link] = LinkCandidate(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
      super().__init__(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
      self.dist = self._prepare()
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
      dist = self._prepare_distribution()
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
      return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
      return self._prepare_linked_requirement(req, parallel_builds)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 536, in _prepare_linked_requirement
      local_file = unpack_url(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 166, in unpack_url
      file = get_http_url(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 107, in get_http_url
      from_path, content_type = download(link, temp_dir.path)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/network/download.py", line 147, in __call__
      for chunk in chunks:
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
      for chunk in response.raw.stream(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
      data = self.read(amt=amt, decode_content=decode_content)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 587, in read
      raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/contextlib.py", line 137, in __exit__
      self.gen.throw(typ, value, traceback)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
      raise ReadTimeoutError(self._pool, None, "Read timed out.")
  pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
  Traceback (most recent call last):
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warn
      subprocess.check_call(cmd)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/public3/home/scb9766/.conda/envs/autohic/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp1ttb4jhq', '--quiet', 'pybind11>=2.4']' returned non-zero exit status 2.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-xzo_gzll/hic-straw_ed8afd254b414e379963ae13223f25ac/setup.py", line 106, in <module>
      setup(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/__init__.py", line 106, in setup
      _install_setup_requires(attrs)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/__init__.py", line 79, in _install_setup_requires
      _fetch_build_eggs(dist)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/__init__.py", line 84, in _fetch_build_eggs
      dist.fetch_build_eggs(dist.setup_requires)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/dist.py", line 917, in fetch_build_eggs
      return _fetch_build_eggs(self, requires)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pkg_resources/__init__.py", line 827, in resolve
      dist = self._resolve_dist(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pkg_resources/__init__.py", line 863, in _resolve_dist
      dist = best[req.key] = env.best_match(
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1133, in best_match
      return self.obtain(req, installer)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1145, in obtain
      return installer(requirement)
    File "/public3/home/scb9766/.conda/envs/autohic/lib/python3.9/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warn
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['/public3/home/scb9766/.conda/envs/autohic/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp1ttb4jhq', '--quiet', 'pybind11>=2.4']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
CondaEnvException: Pip failed

This appears to be an installation error, and we recommend running it with Docker first. I cannot determine what went wrong from the error information you have provided so far. Can you provide a more detailed error log, including the platform you are using, to help me troubleshoot. Thank you very much.
In my experience, this may be due to a missing system library file. You can check the output carefully to see if there is an XX is not found

Thanks. Docker is work.


add equivalent characterization for P84

It's an interesting result that in a locally Hausdorff space each point belongs to some Hausdorff dense open subspace.
I don't think it can be considered an equivalent "definition" though, as it is an a priori strictly stronger condition that the usual definition, and more of a property.  But we could still mention it.  How about removing the word "Equivalently" and changing the text to something like:
"In a {P84} space, each point belongs to some {P3} dense open subspace"?

Does a3fc7f9 sound better to you?


Fix issue

Fix issue
Signed-off-by: Chong Gao<EMAIL_ADDRESS>

Tested the functionalities and passed.


Missing git init.templatedir causes deadlock on registry index

cargo version: cargo 1.26.0 (0e7c5a931 2018-04-06)
My git config init.templatedir points to a non existent directory.
In a cargo project directory running cargo build first fails with the following:
$ cargo build -vv
error: could not find '/home/oliver/.git_templates/' to stat: No such file or directory; class=Os (2); code=NotFound (-3)

Rerunning the same command will then block forever trying to acquire a lock on the registry index
$ cargo build -vv
    Blocking waiting for file lock on the registry index

This can be resolved only by manually deleting the index.
Failing because of the missing directory is fine (though I am curious as to why it needs it), but I think any locks should then be cleared up.

Hm are you sure there's not another Cargo process running in the background? The locks used by Cargo are in theory guaranteed by the OS to get released whenever the process terminates

I'm 99.9% sure there is no other cargo process running. I used pgrep to look for other cargo processes as my initial thought was that somehow the first cargo build was still running.
I'm on Ubuntu 18.04.

Could you provide instructions to reproduce this?

Hmm, I can't seem to recreate it now :(
Perhaps it was because it was the first time I was using cargo on a new machine. Let me try and spin up a VM and re-create it.

I can recreate it on a brand new VM, i.e. never successfully run a cargo build before, these are the steps I took:

Set git init.templatedir to something that does not exist: git config --global init.templatedir qwertyuiop
Install rust: curl https://sh.rustup.rs -sSf | sh
Setup shell: source $HOME/.cargo/env
Clone an existing crate: git clone https://github.com/olivernn/bump.git
Try and build: cd $CRATE && cargo build

I don't think there is anything special about that crate...
Interestingly I couldn't recreate by creating a new crate, that worked as expected.

So, trying with a different crate, toml-rs I wasn't able to re-create. I got an error about the missing directory but no deadlock on subsequent tries. However, I was able to re-create with ripgrep. The difference is I think the presence of the Cargo.lock file in the repository.

Ok thanks for the info! I've also been able to recreate it with this Dockerfile:
FROM ubuntu:18.04

RUN apt-get update -y && apt-get install -y \
  git \
  curl \
  gcc
RUN curl https://sh.rustup.rs | sh -s -- -y
ENV PATH=/root/.cargo/bin:$PATH
RUN git config --global init.templatedir qwertyuiop
RUN git clone https://github.com/olivernn/bump.git
WORKDIR /bump
ENV RUST_LOG cargo=trace
RUN cargo build; cargo build

Looking at the strace looks it looks like Cargo is recursively locking the registry. The first lock succeeds and the second lock fails, spooky! I'm not actually sure why that's happening and would need to investigate.

Managed to track it down!
https://github.com/rust-lang/cargo/pull/5570

Bug seems to persist.


Airlock processor - function app based - Base

PR for issue #1946
What is being addressed
Adding the Airlock processor, an Azure Function App based orchestrator for the airlock component.
In this PR, the AL processor is wired to a SB queue as input and EG topic as output, gets a message and sends one back (as PoC).
This commit contains all the IaC changes to deploy this new component
Next phase: adding the relevant Functions (with logic)

/test-extended

/test

/test-extended

/test-extended

/test-extended


prevents log.[level] {nil} from emitting anything to logging backends

fixes #11997

Could you please add a note about this to the API docs?

Happy to see your first PR here, btw. 😄


template api authorization check

Restricting "puDomainTemplate" api
Provide specific authorization check for the template being applied:
authorize ("update", "{name}:template.{template}");

@tatyano I looked at this request but that's not possible for the putDomainTemplate API
resource DomainTemplate PUT "/domain/{name}/template"
For the put operation, the only component in the URI is the name of the domain so the authorization check can only include components from the URI.
So we can update the authorization check to be:
authorize ("update", "{name}:template");

but nothing more specific.
For the delete operation, we have the URI as:
resource DomainTemplate DELETE "/domain/{name}/template/{template}"
so we can update the authorization check to be:
authorize ("delete", "{name}:template.{template}");

@havetisyan Thank you for your consideration.
For the delete operation, the idea sounds perfect.
For the put operation, Is it possible for you to change the interface like below?
resource DomainTemplate PUT "/domain/{name}/template/{templateName}"

If it's not , the idea you wrote seems to be the best.
Thank you,
Chris

Chris, we can't change the existing api for backward compatibility reasons but I think we should be able to add a new endpoint with specifying the template name and during next api revision (e.g. v2) remove the old one. I'll look into this.

Thank you for this update. PutDomainTemplateExt is exactly the style what we wanted.


log_prior -> log_prior_density

As discussed

I thought we agreed on log_prior_pdf?

I thought we agreed on log_prior_pdf?
Checked with @jameshensman who suggested log_prior_density.


Update to Jekyll 3.3

Are there plans to update to the latest Jekyll version?

Only really updating if it is required for gh pages.  Feel free to submit a PR though if it works with the current version of gh pages and the latest Jekyll.


What is the font in the screenshot?

Close after answer, Thanks!

May be Inconsolata.

The font is Roboto Mono. It's patched to allow git symbols.


yarpdataplayer - variable sample rate data playing too fast

I have 2 sets of data recorded by yarpdatadumper (so, from two YARP ports).
One of them is from /icub/head/state:o. The other one comes from an Oculus Rift and contains just x,y,z orientation data. Both datasets were recorded using both Tx and Rx timestamps.
Both data sets are supposed to be ~30 seconds long.
I need to replay these datasets through yarpdataplayer. Upon playing them with yarpdataplayer, the /icub/head/state:o data have a steady 10ms sample rate and they indeed last for 30 seconds.
However, the oculus data set has a variable sample rate and they last for much less than 30 seconds (20-23 seconds).
My questions are:

Why is this happening? (checking the timestamps of the oculus data, they are indeed 30 seconds long). Is it a limitation of yarpdataplayer when dealing with variable rate data or the error is on my side?
is there a way to fix it?

The dataset (115KB in size, compressed) can be found here
Edit: I forgot to mention that I am using the Qt version of yarpdataplayer.

@kt10aan thanks for the post and the datasets, will have a look at it asap and get back to you.

@kt10aan I have made modifications to the yarpdatasetplayer that now follows the exact length and synchronisation stored within the acquisition logs. I also added a time taken column that accounts for the elapsed time. I tried it on your dataset and all seems fine.

thanks for the quick fix @vtikha. I ran the updated yarpdataplayer and I still have some issues:

Starting the yarpdataplayer i get in the console:

The part icub_state, should last for: 30.005729 with 2978 frames
The part oculus_output, should last for: 30.002716 with 3595 frames

which is correct, as I mentioned that the two datasets are 30secs long.
However, when running the dataset, both of them last for approximately 28seconds (according to the Time Taken column).
Is it an issue of wrongly calculating the Time Taken or is there still a bug in the actual replay of the dataset?

When the two datasets start playing, the /icub/head/state one starts a few seconds after the /oculus/orientation one. As a result, the /oculus/orientation dataset finishes a few seconds ahead of the /icub/head/state one. Both datasets have the same initial timestamp and final timestamp so theoretically they should start and finish together.

You can find a screen recording of it here
Thanks!

@kt10aan just a quick comment.
Your dataset contains both tx and rx time stamps in the two streams, where the former stamps are lagged of ~3.84 s each other, whereas the latter are in sync. I think tx stamps are selected by default, but you can choose them by means of --withExtraTimeCol command line option. Hence, can you do the test again with --withExtraTimeCol 2?

More on this.
I've performed the following test:

Replayed the dataset with --withExtraTimeCol 2
Attached a yarpdatadumper to /icub/head/state:o

The outcome is that on the dumped data the timing is retained, that is the acquisition lasted 30 s, while on the GUI the time taken column actually showed a different overall lapse.

@kt10aan can you confirm this?

@kt10aan they start a few seconds after but this is how your dataset had been recorded. @pattacini is right, you have to select the correct timestamp. Thanks @pattacini for the quick yarpdatadumper test: after chatting with him, the replay is actually correct, time wise and data wise, but I must have done something not quite right with the time taken display, it is probably a mis-synchronisation with the updating of the display and the data. Anyway, it was just a temporary debugging column, and will probably remove it as yarpdataplayer already displays percentages.

I replayed the datasets with --withExtraTimeCol 2 and attached a yarpdatadumper to /icub/head/state:o.
Indeed, the datasets are now being replayed in a synchronous manner, and the timing on the dumped data is retained (30 s).
So I assume that the Tx column is not selected by default.
Thanks @pattacini, @vtikha for your help!

@kt10aan 👍
The data are always played in sync. Simply, according to tx time stamps, one of the two acquisition started afterwards, or most likely, the two clock sources were not in sync.


[Don't merge - needs more testing] Update validator setup docs

note needs more testing with recent changes, will squash and rebase when complete.
Updating validator setup instructions and minor fixes to the setup.sh script as well as fixing the path in the Makefile. Moving validator setup documentation from the wiki to markdown in the documentation/open-libra/validator.md.
Motivation
Keeping the documentation in the repo as markdown allows it to be in version control and allows other contributors to make PRs to update the documentation. In the future, we could consider using mkdocs or something similar for documentation and hosting them on a website.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.roamingrabbit seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Taken more or less from: https://github.com/OLSF/libra/wiki/Validator-Onboarding-Guide:-Hard-Mode

@roamingrabbit In master I've created ./ol/documentation for our own docs, separate from upstream. So if you don't mind shuffling these around, I can get this PR merged.


Initializing and shutting down the logging system should be async

The idea is to be able to compose an application as a future. The initialization and shutdown of the logging system should be provided as async futures that can be rolled into an application.

This is now provided by oysterpack_core::actor::app::App::run(). As part of the App actor system startup, the log system is initialized with an async logger. The async logger forwards the log records to the oysterpack_core::actor::logger::Logger actor, which runs in a dedicated arbiter, i.e., thread.


contents: write

maybe https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request

@github-actions approve me


Simplify getting IoT endpoint address command

Instead of JSON
{
    "endpointAddress": "xxxxx.amazonaws.com"
}

it will return just xxxxx.amazonaws.com

@vladgolubev that's great! Thank you.


Update iotnxp.md

Docs Build status updates of commit 1318fc5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/learn-about-hardware/iotnxp.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[sw/testing] organize chip-level test code - part 1

This addresses the items in #7976 under "Summary of Desired Changes to sw/device/lib/testing".

@timothytrippel scoring PR 8K, nice!

@vogelpi I think English Breakfast is failing again b/c of the patching. Captured this as an issue (#8007) and will look into it as a part of overhauling the on-device test framework, but could you take a look for me to get this fixed for now (when you have a chance)? Thanks!

Hey @timothytrippel , thanks for pinging me. I did adjust the patch file and force-pushed to your branch. Since there were some changes on master recently, I had to do a rebase, too.  CI should run through now.

Hey @timothytrippel , thanks for pinging me. I did adjust the patch file and force-pushed to your branch. Since there were some changes on master recently, I had to do a rebase, too. CI should run through now.

Thanks @vogelpi !


Customise final summary text

What is the context of this PR?
Final summary page needs the following to be customisable using the submission definition in the schemas: Title, Warning, Declaration, Submit button
How to review
You can use the test_summary_with_submission_text.json to test this change
Checklist

[ ] New static content marked up for translation
[ ] Newly defined schema content included in eq-translations repo

 Make Final summary customisable (S)

A few minor comments, we should also extend test_summary_context.py to cover these new scenarios.

@LJBabbage  Found it a difficult to add a test for this, maybe because the code I added is in the handler, not in the contexts? Not sure we usually add tests for the handlers

@LJBabbage Found it a difficult to add a test for this, maybe because the code I added is in the handler, not in the contexts? Not sure we usually add tests for the handlers

Sorry Rhys I didn't notice until I have just looked again, you have put the extra code in the handler, when it should be in the context (QuestionnaireSummaryContext) This then makes it easier to test as well