Dash streams (.mpd) are not accepted

What version of Music Assistant has the issue?
2022.8.0b2
The problem
Streaming using .mpd extension is not accepted
How to reproduce
Call service:
 service: media_player.play_media data:   media_content_id: https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/nonuk/dash_low/aks/bbc_world_service.mpd   media_content_type: channel target:   entity_id: media_player.mass_my_player
Relevant log output
Logger: homeassistant.components.cast.media_player
Source: components/cast/media_player.py:395
Integration: Google Cast (documentation, issues)
First occurred: 09:52:47 (4 occurrences)
Last logged: 09:53:40
Failed to cast media http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-mp3-a/vpid/bbc_world_service/format/pls.pls. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Additional information
No response
What version of Home Assistant Core are your running
2022.8.0b6
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)

Awesome, will test and confirm.

any update? I tried calling this bbc url..
http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/uk/dash_full/ak/bbc_radio_two.mpd
and
https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/uk/dash_full/ak/bbc_radio_two.mpd
and both fail.
2023-02-02 22:50:17.911 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140252969918352] Error handling message: Unknown error (unknown_error) from <IP_ADDRESS> (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 OPR/<IP_ADDRESS>) Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/music_assistant/helpers/tags.py", line 232, in parse_tags raise InvalidDataError(error["string"]) music_assistant.models.errors.InvalidDataError: Invalid data found when processing input The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py", line 217, in play_media media_item = await self.mass.music.get_item_by_uri(item) File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music.py", line 231, in get_item_by_uri return await self.get_item( File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music.py", line 252, in get_item return await self.get_provider(ProviderType.URL).parse_item(item_id) File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/url/url.py", line 91, in parse_item item_id, url, media_info = await self._get_media_info( File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/url/url.py", line 152, in _get_media_info media_info = await parse_tags(url) File "/usr/local/lib/python3.10/site-packages/music_assistant/helpers/tags.py", line 235, in parse_tags raise InvalidDataError( music_assistant.models.errors.InvalidDataError: Unable to retrieve info for https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/uk/dash_full/ak/bbc_radio_two.mpd: Invalid data found when processing input The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 646, in handle_execute_script await script_obj.async_run(msg.get("variables"), context=context) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run await asyncio.shield(run.async_run()) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step await service_task File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 681, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 721, in _handle_entity_call await result File "/config/custom_components/mass/media_player.py", line 429, in async_play_media await self.player.active_queue.play_media(media_id, queue_opt) File "/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py", line 220, in play_media raise MediaNotFoundError(f"Invalid uri: {item}") from err music_assistant.models.errors.MediaNotFoundError: Invalid uri: https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/uk/dash_full/ak/bbc_radio_two.mpd

I have tried a bunch of different BBC sounds urls.. and none seem to work.
the mp3 versions (which are being phased out in 2023) work.
but the new stream simply do not work.
this is an example of an m3u8 file downloaded from a link:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=50880,CODECS="mp4a.40.5"
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_two/bbc_radio_two.isml/bbc_radio_two-audio%3D48000.norewind.m3u8
if I insert the link in the m3u8 (the next m3u8)
I get a new file containing:
#EXTM3U
#EXT-X-VERSION:3
Created with Unified Streaming Platform(version=1.8.4)
#EXT-X-MEDIA-SEQUENCE:261891269
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:6
#USP-X-TIMESTAMP-MAP:MPEGTS=1529897888,LOCAL=2023-02-11T08:28:35.200000Z
#EXT-X-PROGRAM-DATE-TIME:2023-02-11T08:28:35.200000Z
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891269.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891270.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891271.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891272.ts
#EXTINF:6.4, no desc
bbc_radio_two-audio=48000-261891273.ts

have opened a new issue instead of continuing here.


chore(ci): Update renku actions to v1.2.1

Automated changes by create-pull-request GitHub action

Superseded by https://github.com/SwissDataScienceCenter/renku-notebooks/pull/1309


prevent move object outside

Added option in SpriteGestureController (default on).
In the demo app, you can freely move Image but Text and Gif only in view boundaries

Nice feature!


Add completed files for all tutorials

Get started

[x] Build a local blockchain: Not applicable. Two vanilla template files.
[x] Simulate a network: Not applicable. Vanilla node template file.
[ ] Add trusted nodes: Custom chain spec?
[ ] Authorize specific nodes:
[ ] Monitor node metrics
[ ] Upgrade a running network:

Work with pallets

[ ] Add a pallet to the runtime:
[ ] Configure the contracts pallet:
[ ] Use macros in a custom pallet
[ ] Specify the origin for a call
[ ] Publish custom pallets

Collectibles workshop
Develop smart contracts

[ ] Prepare your first contract
[ ] Develop a smart contract
[ ] Use maps for storing values
[ ] Build a token contract

Connect relay and parachains

[ ] Prepare a local relay chain
[ ] Connect a local parachain
[ ] Acquire a testnet slot

Integrate with tools

[ ] Integrate a light client node
[ ] Explore sidecar endpoints
[ ] Access EVM accounts

It would be nice to add a link to completed/working code for the tutorials (where applicable).


Ability to not-animate titles on startup, when titleRotateAngle is set to something other than default

Hello! So I set the titleRotateAngle to 90. Is there a feature to cancel the animation that bounces the titles until their final position?

Yes, there is a property for that.
wheel.initTitleRotate = true;
May I use this site in World wide wheel section? :smile:

That'd be awsome! I will deploy to github in upcoming days and let you know.
Thanks for the wheel.initTitleRotate = true; it worked perfectly. I'll close the issue.


update documentation, add preflight check success output

What
Describe what the change is solving
How
Describe the solution
Breaking Changes
Are there any breaking changes in this PR?

Current dependencies on/for this PR:

main

PR #279   👈

This comment was auto-generated by Graphite.


Can't upload sketch after using Lilygo as a USB keyboard and mouse emulation

I have uploaded a sketch that transforms my lilygo ESP32-S3 in a USB keyboard and mouse emulator
The sketch works, but I can't upload a new sketch as the serial port is then disabled.
How can I erase the sketch or upload a new sketch ?
Is it possible to have serial port and USB keyboard and mouse emulator at the same time ?
(It's possible with an ardunion leonardo)
#include "USB.h"
#include "USBHIDKeyboard.h"
#include "USBHIDMouse.h"
USBHIDKeyboard Keyboard;
USBHIDMouse Mouse;
uint8_t buf[200];
void setup() {
// open the serial port:
Serial.begin(115200);
// initialize control over the keyboard:
Keyboard.begin();
Mouse.begin();
USB.begin();
Keyboard._onGetDescriptor(buf);
}
void loop() {
// check for incoming serial data:
if (Serial.available() > 0) {
// read incoming serial data:
char inChar = Serial.read();
Serial.print(inChar);
// Type the next ASCII value from what you received:
Keyboard.press(inChar);
Keyboard.releaseAll();

}
Mouse.move(20, 20, 0, 0);
Keyboard.press('Q');
Keyboard.releaseAll();
delay(3000);
}

I have uploaded a sketch that transforms my lilygo ESP32-S3 in a USB keyboard and mouse emulator The sketch works, but I can't upload a new sketch as the serial port is then disabled. How can I erase the sketch or upload a new sketch ? Is it possible to have serial port and USB keyboard and mouse emulator at the same time ? (It's possible with an ardunion leonardo)
#include "USB.h" #include "USBHIDKeyboard.h" #include "USBHIDMouse.h"
USBHIDKeyboard Keyboard; USBHIDMouse Mouse; uint8_t buf[200]; void setup() { // open the serial port: Serial.begin(115200); // initialize control over the keyboard: Keyboard.begin(); Mouse.begin(); USB.begin(); Keyboard._onGetDescriptor(buf); }
void loop() { // check for incoming serial data: if (Serial.available() > 0) {
// read incoming serial data:
char inChar = Serial.read();
Serial.print(inChar);
// Type the next ASCII value from what you received:
Keyboard.press(inChar);
Keyboard.releaseAll();

} Mouse.move(20, 20, 0, 0); Keyboard.press('Q'); Keyboard.releaseAll(); delay(3000); }

Hello @francoisnicolas did you find a way to let T-Dongle comunicate with a PC has a keyboard or WebUSB ?
I'm also looking for a simple demo to set communication between the device and a webpage


Clarify script loading documentation

Small change to highlight you should be looking in the "File Paths" section of the sidebar, as above.

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

Thanks!


Train HTC,it repeat a error :lonly batches of spatial targets supported (non-empty 3D tensors) but get targets of size :[1,124,92,3],Semantic segmentation dataset I used is stuff_annotations_trainval2017

Thank you for your answer.How do I remove duplicate labels

Hello ,Can the powerful mmdetection achieve feature map visualization


NIFI-7501 Generateflowfile tag and description

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
In NIFI-7501 it was established that people using GenerateFlowFile should sometimes be using DuplicateFlowFile as well to avoid IO bottlenecks blocking load testing. As such the description of GenerateFlowFile was updated. Furthermore, to be consistent with DuplicateFlowFile the load tag was added.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
NIFI-7501

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

I see the MacOS check fail on something related to ListenSMTP, which should be completely unrelated to my change. (And I saw others also failing at this point).
If I need to do anything please let me know.


can't connect to another node

following code demonstrates how I try to connect a specific node, however i cannot achieve this.
      const config = new AptosConfig({
        network: Network.MAINNET, // ?
        fullnode: nodeUrl,
      });
      const aptosClient = new Aptos(config);

I've tried https://fullnode.mainnet.aptoslabs.com/, https://fullnode.testnet.aptoslabs.com/, but couldn't get a response from node. My questions are:

How should I connect to a custom node?
Which port should I connect, is it 8080?
Do i need to specify network type as mainnet if i've already gave fullnode url?

thanks, dante

Hi @dev-dantealighieri, first to use https://fullnode.mainnet.aptoslabs.com/ or https://fullnode.testnet.aptoslabs.com/ needs to append v1 at the end, so should use it like that https://fullnode.mainnet.aptoslabs.com/v1.
Note that when using Network.MAINNET or Network.TESTNET the sdk uses those endpoints by default so you dont need to define as a custom node.
If you want to use a custom node, for example https://my.custom.node.com/, you have configured it correctly
const config = new AptosConfig({
  network: Network.MAINNET,
  fullnode:"https://my.custom.node.com/",
});
const aptosClient = new Aptos(config);

Doing that, the sdk would use the custom node when doing fullnode requests, but for all other requests (indexer/faucet) the sdk would use mainnet endpoint

for example if my node ip is <IP_ADDRESS>, how should i connect? which port should i use?

depends how you configured your server/node. You can use aptos cli to run a local network (which runs on http://localhost:8080/v1)

Is nodeip:8080/v1 a custom node that runs locally? are you sure this is the endpoint the node expects you to hit?


Suggestion: output .LinkTitle in breadcrumb instead of .Title

This is not really an issue, rather a suggestion
I believe it would make more sense to use .LinkTitle instead of .Title to output text in the breadcrumb (in both ancestor.html and index.html).
It would make the breacrumb content shorter (usually linktitle defines shorter titles in the front matter), and identical to the menu content, so that navigation would look more consistent.
You might prefer to implement a configuration setting to allow specifying which front matter entry to use for the breadcrumb.
Or not to change anything.

Make sense.


Don't inject an unnecessary title into the BookmarksView

This should have been removed when the tags were removed from the UI.

Fixed as part of 598641cfbdf06738312d8bfef01d00f802ed612a.


Optimize the IR compiler

Currently the IR compiler is pure Python and it takes a long time for most EdgeQL queries, most likely in edgeql/compiler/func.py. Investigate and implement ways to make it faster.

An aggregation of edb/server/compiler/compiler.py:_compile_ql_query() calls over all unit tests shows that:

compile_ast_to_ir takes 80% of time
from that, 42% is just compile_BinOp

This is the first thing I'll be looking at optimizing. Interestingly, there is a lot of time spent in those as well:

edb/schema/types.py:derive_subtype takes 25% of the cumulative time
edb/common/ast/base.py:_check_type takes 18% of the cumulative time and the longest "per call"

The cast distance calculation that was suspected as taking a lot of time, is not that expensive alone (although it still clocks at 10.5% of the cumulative time). I'll look into it while investigating compile_BinOp.
In terms of code structure, we're creating a ton of AST objects (over 2 mil in my sampling) which I'll look into decreasing. edb/common/ast/base.py:__init__ also does a lot of work (cumulative time clocking at 18% which I suspect is due to type checking that I already covered above).
We're calling a lot of __hash__ functions (50 mil calls during my sampling), out of which UUID.__hash__ is dominant at 47 mil calls (taking 22.5 seconds in total). Maybe we can decrease that.
Raw data: https://gist.github.com/ambv/7b9e6b72d923ec9845c549e8fc47e6eb

Thanks! A few questions:

What was the query you profiled? Did you profile more than one?
Ideally we need to profile like 10 queries of various complexity and features. Use edb inittestdb to generate test databases and then you can profile some queries from our tests.
Can you share the test script you used to generate this?

For example, the high cost of compile_BinOp could also be explained if the benchmark query was SELECT a + b. Moreover, since operators in EdgeQL are compiled in the same way we compile function calls, the high cost of compiling them is explained by the same complex quadratic algorithm we use for our multiple dispatch.

We're calling a lot of hash functions (50 mil calls during my sampling), out of which UUID.hash is dominant at 47 mil calls (taking 22.5 seconds in total). Maybe we can decrease that.

Interesting. We can probably use our own UUID implementation from https://github.com/MagicStack/py-pgproto/blob/master/uuid.pyx.  We can add a custom __hash__ implementation that would cache the computed hash to make it as fast as possible.

This is an aggregate from all tests. I specifically didn't want a single query because it would likely not be representative. This is an average of 17k queries.

This is an aggregate from all tests. I specifically didn't want a single query because it would likely not be representative. This is an average of 17k queries.

Wow, that's quite interesting! Not sure about the "not representative" part though. I don't think that our test queries are representative of real world kind of queries that users will benchmark EdgeDB with or use. Specifically, a lot of unit test queries test a particular feature like one function call or a binary operator multiple times over and over again; most queries are simple on purpose to isolate a specific feature.  Also make sure we don't profile DDL queries -- they go through completely different code paths and we aren't interested in optimizing them at all right now. Only SELECT / INSERT and UPDATE are interesting; I'd start with only SELECT to keep the results simple.
It would be interesting to benchmark queries from this blog post: https://edgedb.com/blog/edgedb-1-0-alpha-1. They are closer to queries we expect people to use with EdgeDB extensively. And we will use them in our alpha 2 blog post.
Could you take a look at them too?  You can use the schema from this repo https://github.com/edgedb/webapp-bench; the queries are here: https://github.com/edgedb/webapp-bench/blob/master/_edgedb/queries_async.py.

Running on the webapp benchmarks, we have a related but different picture:

compiling AST to IR takes 78% of the time
compiling IR to SQL takes 21% of the time

In IR compilation, compiling view shapes in set takes half of this time. This will be what I'll be investigating next. But first, runtime type checking is 14.9% of the time spent which is why making it configurable looks like the lowest hanging fruit to me.
In SQL compilation, almost all time is spent in edb/pgsql/compiler/shapecomp.py:compile_shape, out of which the call to compile_OperatorCall is 20% so I'll be looking at that next.
As I mentioned in the meeting yesterday, I was surprised to see 33k AST objects created for just 25 queries. I'll be looking into figuring out whether we really need 1.3k objects per query. 64% of those are created in IR compilation, the remainder in SQL compilation. Similarly, there's quite a lot of ordered sets (45k), pathids (25.6k), and structs (22.8k).
Here's an aggregation of edgedb_json_async and edgedb_repack_sync after running all three queries get_movie(), get_person(), get_user(): https://gist.github.com/ambv/9b124e868910950b051f625fff263dc3

Current state of things for edb.server.compiler.compiler._compile

INSERT statements from the benchmark: http://langa.pl/random/graphs/compile-bench-inserts-2019-11-27.svg
SELECT statements from the benchmark: http://langa.pl/random/graphs/compile-bench-selects-2019-11-27.svg
all queries in tests: http://langa.pl/random/graphs/compile-tests-2019-11-27.svg

SELECTs are an aggregation of edgedb_json_async and edgedb_repack_sync as in the comment above.
These show all phases and it's pretty clear we can shave a lot simply by replacing pickle with something faster. Then we'll hunt further optimizations.

Closing this one.


Implement more color selection methods in ColorView

We still need to implement named color selection (and more options for color selection in general) in the ColorView.

Also, we need to fix HCT slider syncing and use a conic gradient for hue.

A history of recently selected colors would also be helpful.

We need to first fix our HCT gradient handling and implement conic gradients.

Added efficient rendering for non-RGB gradients in 426b4b376

(and a4ac4976ee0c592700aa59bf8549a1c6f8f93068).


kustomize vs wave?

Saw your lightning talk, wondering what this does compared to kustomize's generator functionality? Thanks for speaking!

kustomize does not seem to have a way to handle redeploying on secrets changes? I haven't seen how kustomize's configmapGenerator works - it may perform better than this projects approach?
I'm just browsing - and trying to see what way to myself :)

The purpose of Wave is to ensure Pods consuming a ConfigMap always run with the current version of that config, regardless of how or why they changed, even at runtime (e.g. by another process).
The ConfigMapGenerator in kustomize runs as part of a kustomization, i.e. at deploy-time (or earlier).
If your deployment flow ensures that each time a ConfigMap is updated all consuming software is also updated, then you may not need Wave at all.


Feature request: Kinesis Data Firehose event data class

Use case
Kinesis Firehose supports data transformation via Lambda. The event is a standard format, documented here.
Ref: Kinesis Data Transformation
Example event from aws-lambda-go sdk
Solution/User Experience
Add KinesisFirehoseEvent data class for handling events of this type.
Alternative solutions
N/A

Acknowledgment

[X] This feature request meets Lambda Powertools Tenets
[X] Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript

Thank yo so much for opening this! We will be reviewing your PR very soon :)


added a virtual garden planner

issue number: #2247
Virtual garden planner

@iamrahulmahato pls check my pr


Define heuristics for identifiers and the way that downstream tools should handle them

This is following up https://github.com/JabRef/jabref/pull/7946#issuecomment-902502107 and following comments.
We define heuristics for how to fill fields in other formats based on the existing information in CFF.
Example: BibTeX DOI should be filled from which key in CFF?

What is the value of cff-version?
(See linked comment for examples of further steps in decision tree).

The approach I took in cffconvert takes into account

the cff-version
what data was supplied by the user
what fields can be supported in the target format

Because the number of different behaviors can get out of hand pretty quickly, I implemented this using something like a lookup table / state map, in which you first summarize the state of available data as a key, for example like so (original here):
from cffconvert.behavior_shared.apalike_author_shared import ApalikeAuthorShared as Shared

class ApalikeAuthor(Shared):

    def as_string(self):
        key = ''.join([
            self._has_given_name(),
            self._has_family_name(),
            self._has_alias(),
            self._has_name()
        ])
        return self._behaviors[key]()

As an example, a key with value GFAN could mean that the author properties given-names, family-names, alias, and name have all been defined by the user, a key with value G_AN could mean the family-names have been omitted, etc. Each possible value of key is then mapped to a function that only implements the behavior required, thus avoiding the need for any code branching in the function (admittedly at the cost of having many functions). Here is an example of what that looks like for constructing an author from data in cff-version 1.2.0 for apalike output (original here):
from cffconvert.behavior_shared.abstract_author_shared import AbstractAuthorShared

class ApalikeAuthorShared(AbstractAuthorShared):

    def __init__(self, author):
        super().__init__(author)
        self._behaviors = {
            'GFAN': self._from_given_and_last,
            'GFA_': self._from_given_and_last,
            'GF_N': self._from_given_and_last,
            'GF__': self._from_given_and_last,
            'G_AN': self._from_given,
            'G_A_': self._from_given,
            'G__N': self._from_given,
            'G___': self._from_given,
            '_FAN': self._from_last,
            '_FA_': self._from_last,
            '_F_N': self._from_last,
            '_F__': self._from_last,
            '__AN': self._from_alias,
            '__A_': self._from_alias,
            '___N': self._from_name,
            '____': ApalikeAuthorShared._from_thin_air
        }

To me these kinds of tables/mappings are a good way to be explicit and exhaustive about what the expected behavior should be, given the available information. Additionally, I think we should strive to have different tooling adhere as much as possible to whatever heuristics we decide on, so that users can have the most consistent experience across all CFF related tooling.


Allow constraint of resize axis

Thanks for the useful component.
I had the same requirement as #209.  This change seems to do the trick for me, in the same kind of way as it already restricts dragging.

Isn't it easier to just use the handles prop and define the handles that you want to enable? See also this story on Storybook.

I wanted the handles on the corners, where they would be more visible than in the middle.

You can provide your own CSS to style handles and to set your desired position. Sorry, but it doesn't feel right to me to add a new prop for something that can be easily achieved with the current functionality.

It seems uglier to me to say that I should take the middle handle and style it so that it appears on the left.  And I'm not sure how I could style it so that it appears on both the left and the right, which is what I want in my case.
But it's your code, and I'm grateful for it, and you're under no obligation to take the PR.  Thanks for the useful library.

I'm not sure I understand what you're saying. I think that an example can explain better than 1000 words. Will something like this https://codesandbox.io/s/condescending-bush-1q6l8?file=/src/App.vue work for you?

Thanks for taking the time to do a fiddle, that's kind.
What you've done works perfectly in terms of function.  But I have several requirements:

The resizing function is secondary.  I want it to be available but I don't want or need it to be prominent - either in terms of size or position.
I am using it on a Leaflet map, and I don't want to cover the attribution.
I am concerned about mobile so I don't want to lose a significant proportion of screen space to the handles
My user base already use corner handles in another scenario, but there aren't any centre handles.  They aren't very IT literate, so they may not recognise a central handle at all, especially if it's different.

Here's what my PR allows me (red circles highlight the handles).  I can have some handles there for people who want them, but they are not as prominent as a central dragger would be.

These are specific requirements to me.  But I think the position of the handle and the function of the handle are two separate concepts.

I just changed the sandbox, based on your requirements. I still think that you can achieve what you want with the existing functionality and a bit of CSS. Take a look and let me know.

I want to be able to constrain the resize to just one axis.  Your preview fiddle achieved that, by using just the middle handle.
But this fiddle has both handles, so the resize is not constrained to a single axis.  That means I can resize the div to be wider than its parent, which I want to avoid.
You can play with the version with the PR here: https://www.ilovefreegle.org/explore

Ah ok, now I get it. I just updated the sandbox accordingly. If a single handle is ok you can style the bottom-middle handle and set its position to the bottom-right corner. Just like GitHub does for the reply textarea. Two handle in this case I don't think it's possible, unless you go with some CSS trickery. But I think that one of the examples in the sandbox can still work for you.

The lower one behaves as I would like - but I want two handles.  Sorry :-).
Anyway, you've spent enough time on this.  I'll use my fork, and you can come back to this if other people want similar function.
Thanks for your help.


How to use operator ?

I've tried rx-simple-store with angular4 and it work very well, except one thing, I cannot get rxjs operators to work with the store class.
import { Component } from '@angular/core'
import { AppStore } from './store'
import 'rxjs/add/operator/map'

@Component({
  selector: 'app',
  template: 'app component',
})
export class AppComponent {
  constructor(private store: AppStore) {
    this.store
      .map(x => x.item)
      .subscribe(x => {
        console.log(x)
      })
  }
}

this will raise an error:
Property 'map' does not exist on type 'AppStore'

The installed version is ^0.3.0
Please advice,
Thanks

update
I managed to make it work, but with a little tricky import.
This seem to be an issue with yarn package manager.
I installed via npm install rx-simple-store --save  and import RxStore from rx-simple-store/lib/store
import { RxStore } from 'rx-simple-store/lib/store'

And it worked as expect. But it's not working with yarn.
$ yarn --version
0.27.5

$ npm --version
4.1.2

Hi @ball6847,
that's a strange behavior. I just created a new project, added rx-simple-store and copied over the example from the README.md. Then I added a simple
todoStore.do(console.log).subscribe();

and imported the operator from rxjs/add/operator/do.
It worked as expected.
I'm using yarn 1.2.1, but it should not matter, since it's all compiled via typescript anyways.
You could try to remove node_modules and do a yarn cache clean && yarn.


Updated README.md

Updated the links in documentation

Thanks for the improvement!

@nbbeeken Thanks for considering my PR looking forward to making much more significant improvements.


Local mode is not implemented

Hello,
I'm trying to use the localMode option but, looking at the source code, it appears to no longer be implemented in the latest version. Is that code available somewhere?

Local mode was deleted a while ago. You have two options now.

Use the new behavior that was written (https://github.com/paulirish/infinite-scroll/blob/master/behaviors/local.js), documentation for which is coming soon but is really easy to figure out if you look at the code
Revert to old version (https://github.com/paulirish/infinite-scroll/commit/955fd8a4aac44b61cb2e42e176d375253553da1a)

Hi Luke,
Thanks for this. I found that local.js, but am having trouble getting it to work - I've posted a comment on the pull request: https://github.com/paulirish/infinite-scroll/pull/106
I'm sure I'm just doing something stupid, but any help would be greatly appreciated.
Thanks
Lee

Closing as implemented as behaviour, help given in pull request.
Cheers


python dependency version conflict using attrs between r2d2 v3 web server and eccodes 1.5.0

Describe the bug
attrs==23.2.0 is listed as required for the r2d2 server components.
attrs==21.4.0 (as the py-attrs/21.4.0 module) is required by py-eccodes/1.5.0 as part of /Users/eric2/spack-stack-1.7.0/envs/skylab-7.0.0/install/apple-clang/15.0.0/py-attrs-21.4.0-i47jwy7/lib/python3.10/site-packages, for example.
If py-attrs/21.4.0 is loaded, the following error occurs and the local r2d2 server will not start.
(venv) JCSDAeric2-MBP:server eric2$ module load  py-attrs/21.4.0
(venv) JCSDAeric2-MBP:server eric2$ python3 app.py
Traceback (most recent call last):
  File "/Users/eric2/jedi/jedi-bundle/r2d2/server/app.py", line 5, in <module>
    from flasgger import Swagger, swag_from
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/flasgger/__init__.py", line 9, in <module>
    from jsonschema import ValidationError  # noqa
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/jsonschema/_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/jsonschema/exceptions.py", line 15, in <module>
    from referencing.exceptions import Unresolvable as _Unresolvable
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/referencing/__init__.py", line 4, in <module>
    from referencing._core import Anchor, Registry, Resource, Specification
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/referencing/_core.py", line 87, in <module>
    class Specification(Generic[D]):
  File "/Users/eric2/jedi/venv/lib/python3.10/site-packages/referencing/_core.py", line 113, in Specification
    ] = field(alias="anchors_in")
TypeError: field() got an unexpected keyword argument 'alias'

If py-attrs/21.4.0 is unloaded and the pip-installed attrs==23.2.0 is used, the following successful result occurs and the r2d2 server will start.
(venv) JCSDAeric2-MBP:server eric2$ module unload py-attrs
Lmod Warning:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The following dependent module(s) are not currently loaded: py-attrs/21.4.0 (required by: py-eccodes/1.5.0)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(venv) JCSDAeric2-MBP:server eric2$ python3 app.py
 * Serving Flask app 'app'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (<IP_ADDRESS>)
 * Running on http://<IP_ADDRESS>:5000/
 * Running on http://<IP_ADDRESS>:5000/
Press CTRL+C to quit

To Reproduce
See above.
Expected behavior
This conflict should not occur and the server will start using the correct library.
System:
MacOS Sonoma with Python 3.10.13 from spack-stack.

Is there any reason we need to be using Python from spack-stack? This feels like an opportunity to divorce the r2d2 core implementation from skylab dependencies since they will be running on separate platforms. The r2d2 client can continue being coupled to skylab dependencies.
As an interim solution, the r2d2 library can continue to use spack-stack dependencies and all the version-conflicting dependencies will go into the server core, but once we migrate to full client/server setup it won't matter.
@ericlingerfelt, Thoughts?

Hi @eap, In my Skylab working environment, which includes R2D2 and EWOK, I always utilize the spack-stack python for the jedi-bundle build and my virtual environment. My installation of R2D2 and EWOK are inside the jedi-bundle directory. I only do this since that is what has always worked and that is what is recommended by our documentation. The purpose of spack-stack is to provide these python dependencies consistently across platforms for all users.
For now, users can simply unload the py-attrs/21.4.0 module.

Let's be clear that r2d2-client will be using spack-stack and there are many reasons why Python and packages are built by and provided by spack. It's in fact one of the main benefits of spack that it provides a single, consistent environment for compiled packages, python packages, and hybrid packages.
The r2d2 server implementation will almost certainly not be using spack - it's a simple setup that users do not need to know anything about, just the INFRA admins. So this PR is a fix for what is currently a problem that will help us until the r2d2 REST implementation is in place.

Sounds good, @eap and @climbfuji. Thanks!


[Easy] Rename usd_gno to usd_6810e776880c02933d47db1b9fc05908e5386b96

They changed the token symbol name to token addresses (presumably to avoid duplicates).

Cool, thanks!


Add initial TypeScript script

To quickly parse and verify no blocks with duplicate IDs are defined.

Merged in https://github.com/wei2912/planwithus-logic/commit/e345983de0b58fcd8b6c4697364ae3008b0d94be after doing some rebasing.

Merged in https://github.com/wei2912/planwithus-lib/commit/01c728bb14929189bb8e1f636f3b4bb10700bddb.


Fails if empty file?

Hi,
Seems to never return if pointed at an empty file?
Cheers
Tim

Hmm, yeah, should probably result in a blank string or null.

Sorry... and the same behaviour if the line is empty too?

Working on this now. Planning on having empty files call callback(null, null) (since there's no data, then the result should probably be either null or an empty Buffer).
I was thinking that files with just newlines should do callback(null, Buffer.from('')), but I'm having trouble actually implementing that.
Do you have any opinions on what behavior(s) should occur for either empty files or files with just newlines?

Hi,
Thanks for looking into this, very much appreciated.
For the empty-file case... calling callback(null, null)  would work great for us,
And the same for a file contaiing just new lines.
Thanks for all your help.
Tim

Published fix in 1.0.3.


/app/cmd/acmesolver/acmesolver: exec format error"

Describe the bug
Using cert-manager in order to be able to have certs available for every app deployed.
when trying to deploy app, epinio push-n 12factor, still received non secure connectivity on url.
Looking at pods in the relevant 'workspace' namespace, there was a pod called "acme-xxx " ( or something like that ), that had an error "exec /app/cmd/acmesolver/acmesolver: exec format error" - this was due to cert-manager version being 1.7.2
Updated cert-manager to 1.7.3 and subsequently to 1.8 and the app url resolved correctly with cert. . furthemore cert-manager 1.7 is eol -  https://cert-manager.io/docs/installation/supported-releases/
The above is for info, and perhaps doc should also reflect requirement when using letsencrypt-production ClusterIssuer
Cluster (please complete the following information):

Provider:  RKE2
Options: [e.g. number of nodes, storageclasses, loadbalancer if customised]
Kubernetes Version: v1.23.7

Desktop/CLI (please complete the following information):

OS: Linux,
Epinio Version: 1.0.0
Epinio Install Options:  Loadbalancer provided by haproxy(outside cluster ) to serve worker nodes

We are still using 1.7.1 in our development scripts: https://github.com/epinio/epinio/blob/4d05cce028b5899e720502a74268bf1814447fcb/Makefile#L184 and it's working but should definitely document a working, supported, cert-manager version.

Versions since 1.7.1 (we are using in dev)
cert-manager/cert-manager                  	v1.9.0       	v1.9.0     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.8.2       	v1.8.2     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.8.1       	v1.8.1     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.8.0       	v1.8.0     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.7.3       	v1.7.3     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.7.2       	v1.7.2     	A Helm chart for cert-manager
cert-manager/cert-manager                  	v1.7.1       	v1.7.1     	A Helm chart for cert-manager

https://cert-manager.io/docs/installation/supported-releases/

Version
Released
EOL
Kubernetes

1.7
Jan 26, 2021
Jul 22, 2022
1.18 → 1.23

1.8
Apr 05, 2022
Release of 1.10
1.19 → 1.24

1.9
Jul 22, 2022
Release of 1.11
1.20 → 1.24

1.7 is now EOL for 3 days. 1.9 was released just 3 days ago.
1.8 looks to be a good middle.
All of them look to be the kube versions we are working with.

Update to 1.8.2 looks good for CI and public cloud CI. PR to review. Documentation to do.


Button within table expanding row when expandableRowsOnClick is true

When expandableRowsOnClick is set to true and an action button is within table (e.g. Edit, Copy, Delete). These buttons are also triggering the row to be expanded. Is it possible to not have certain elements within a table expand the column?
e.g. do not expand row, if icons are clicked. only if outside icons are clicked, expand row.

isRowSelectable
function

Enable/disable selection on certain rows with custom function. Returns true if not provided. function(dataIndex: number, selectedRows: object(lookup: {dataindex: boolean}, data: arrayOfObjects: {index, dataIndex})) => boolean.

Name
Type
Default
Description

onRowClick
function

Callback function that triggers when a row is clicked. function(rowData: string[], rowMeta: { dataIndex: number, rowIndex: number }) => void

--
--
--
--

const options = {
        ...
        onRowClick: null,
}

This'll only happen if the event bubbles up to the row. You can prevent that in the event handlers of your action buttons (I believe you call preventDefault() on the event inside of its click handler).


Unwrap badly wrapped tokens before a XCS

Closes: #4728
What is the purpose of the change
With this change users can send IBC tokens from other chains directly to the XCS contract and the unwrapping will be handled for them.
Brief Changelog

Added pre-swap unwrapping.

Testing and Verifying

Added a test verifying the success case. More tests need to be added for the potential failures

Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
How is the feature or change documented? (not applicable   /   specification (x/<module>/spec/)  /  Osmosis docs repo   /   not documented)

I see what you mean about splitting into a separate function. That may mean we end up with some code repetition, but would probably be easier to follow. I'll merge this for now try to split it in the next PR


Temporarily disable docset generation

Description
The in-memory disk option didn't yield performance gains, and the cache isn't working as expected (and generally can't be trusted to deliver the functionality we were using it for), so this temporarily disables the docset generation until we can find out how to speed it up or run it on a dedicated shard in a more robust manner.
Related Issues
https://github.com/flutter/flutter/issues/60646
Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I signed the [CLA].
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change

[x] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change. If not, delete the remainder of this section.

FYI @fkorotkov


Add Carthage compatibility

Hi,
Looks like I got a little over-enthusiastic with #57 because "swifter" doesn't work with Carthage yet.
But fear no more for I have added just that!

I created 2 targets: one for iOS and one for Mac
I renamed the existing targets used for the sample applications

I also made sure everything worked as expected...
...with Cocoapods:
$ pod spec lint
 -> Swifter (1.0.2)
Analyzed 1 podspec.
Swifter.podspec passed validation.

...with Carthage:
$ carthage build --no-skip-current
*** xcodebuild output can be found in /var/folders/tk/cw93k7v928qf21kppt47d_380000gn/T/carthage-xcodebuild.zNl0Je.log
*** Building scheme "SwifterMac" in Swifter.xcodeproj
*** Building scheme "SwifteriOS" in Swifter.xcodeproj

Let me know what you think! :smile:

:+1:


Add link to packages in openSUSE build service

Feel free to correct my lousy English :-)

Codecov Report

Merging #14439 (9fb63ed) into master (91e59a6) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #14439      +/-   ##
==========================================
- Coverage   41.76%   41.76%   -0.01%
==========================================
  Files         748      748
  Lines       80103    80103
==========================================
- Hits        33458    33453       -5
- Misses      41123    41126       +3
- Partials     5522     5524       +2

Impacted Files
Coverage Δ

modules/util/timer.go
42.85% <0.00%> (-42.86%)
:arrow_down:

modules/queue/unique_queue_disk_channel.go
53.84% <0.00%> (-1.54%)
:arrow_down:

modules/queue/workerpool.go
58.77% <0.00%> (-1.23%)
:arrow_down:

services/pull/pull.go
42.15% <0.00%> (-0.50%)
:arrow_down:

models/gpg_key.go
53.90% <0.00%> (+0.57%)
:arrow_up:

modules/log/event.go
59.90% <0.00%> (+0.94%)
: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 9872b8d...9fb63ed. Read the comment docs.

Codecov Report

Merging #14439 (9fb63ed) into master (91e59a6) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #14439      +/-   ##
==========================================
- Coverage   41.76%   41.76%   -0.01%
==========================================
  Files         748      748
  Lines       80103    80103
==========================================
- Hits        33458    33453       -5
- Misses      41123    41126       +3
- Partials     5522     5524       +2

Impacted Files
Coverage Δ

modules/util/timer.go
42.85% <0.00%> (-42.86%)
:arrow_down:

modules/queue/unique_queue_disk_channel.go
53.84% <0.00%> (-1.54%)
:arrow_down:

modules/queue/workerpool.go
58.77% <0.00%> (-1.23%)
:arrow_down:

services/pull/pull.go
42.15% <0.00%> (-0.50%)
:arrow_down:

models/gpg_key.go
53.90% <0.00%> (+0.57%)
:arrow_up:

modules/log/event.go
59.90% <0.00%> (+0.94%)
: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 9872b8d...9fb63ed. Read the comment docs.


Add patch support for scim user endpoint

PR Checklist

[x] A description of the changes is added to the description of this PR.
[x] If there is a related issue, make sure it is linked to this PR.
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added or modified a feature, documentation in docs is updated

Description of changes

Added patch endpoint  to handle user removal
Marks the user status as disabled in uc db when removed
Reenable  the user status to enable when the user is added back

Attaching the screenshots for all the scenarios

add_user_uc_db.pdf
This PR closes #423

[user_disabled_in_uc_Db.pdf](https://github.com/user-attachments/files/17093493/user_disabled_in_uc_Db.pdf)
[user_status_enabled_bak_in_db.pdf](https://github.com/user-attachments/files/17093494/user_status_enabled_bak_in_db.pdf)

@creechy  Requesting your review on this PR


clean up application-localhost.properties file

Ticket Link
Ticket 1478
List of squashed commits

Commit 1:clean up application-localhost.properties file

Test Checklist

[x] Unit Tests Passed:
[x] Jasmine Tests Passed:
[x] General Visual Inspection:

Not sure about this. The UI uses CAS to authenticate. Did these settings move to elsewhere?
So only the API side will stop using CAS?

Looks good. I think the Jira asked for the CAS properties to be removed, which is okay because these values are already in the default properties file.


[Icon] Replace variant skip_config with a smarter mechansim

In order to skip the configure stage in the build process one can set +skip_config.
This alters the spack spec of the builds.
One could replace the variant with a permanent variant that check for files created in the end of configure-stage and skip configure in case they are present.

How would you override that mechanism in case you want to reconfigure?

How about spack build-env <spec> -- make in the build folder, won't that achieve the same thing?

A make distclean will do the job.

Did not look into build-env. I was looking for a solution with the current workflow

It's even simpler, I think. It's sufficient to configure ICON once and then only call make. ICON doesn't need a build-env. This works perfectly fine, we (MeteoSwiss' ICON-22 team) use it all the time:
spack dev-build -u configure ...
make -j 8

This does not work for our testing. We want to run on compute nodes for builds, but need to be on login nodes to launch test.
Using a variant to skip config does not work, because spack tries to rebuild, because the spec changed with the variant.


Submission for paper

Hello, when and where do I submit the workshop paper?

Thanks!

Hi @dlwlgus53, just wanted to mention that the call for papers has been announced here: https://dstc11.dstc.community/calls/call-for-dstc11-workshop-papers


EFCore should use parameterized Queries to leverage Caching

I'm working in .Net Core 2.1, creating an application which uses multitennacy. I'm applying default filters to my context.  However, entityframework is not properly leveraging parameteritized queries.
I have a configuration options being passed to my context to apply constraints which look like so:
    public class ContextAuthorizationOptions : DbAuthorizationOptions<AstootContext>
    {
        protected IUserAuthenticationManager _userManager;
        protected int _userId => this._userManager.GetUserId();

        public ContextAuthorizationOptions(IUserAuthenticationManager authenticationManager, IValidatorProvider validatorProvider)
            : base(validatorProvider)
        {
            this._userManager = authenticationManager;

            ConstraintOptions.SetConstraint<Message>(x => x.Conversation.ConversationSubscriptions
                                             .Select(cs => cs.UserId)
                                             .Any(userId => userId == this._userId));
        }
    }

As  you can see my query uses a property to store the userId value.  My context takes in the constraint options ad applies them OnModels creating like so:
    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        var constraintOptions = this._authorizationOptions.ConstraintOptions;
        constraintOptions.ApplyStaticConstraint(modelBuilder);
        base.OnModelCreating(modelBuilder);
    }

My Model options look like so:
    protected List<Action<ModelBuilder>> _constraints = new List<Action<ModelBuilder>>();

    public void SetConstraint<T>(Expression<Func<T, bool>> constraint)
        where T: class
    {
        this._constraints.Add(m => m.Entity<T>().HasQueryFilter(constraint));
    }

    public void ApplyStaticConstraint(ModelBuilder modelBuilder)
    {
        foreach(var applyConstraint in this._constraints)
        {
            applyConstraint(modelBuilder);
        }
    }

Since my filters are using properties I would expect this to generate a parameterized query yet when dumping to messages table to list it generates this SQL
    SELECT [x].[Id], [x].[ConversationId], [x].[Created], [x].[MessageText], [x].[SenderUserId]
    FROM [Messages] AS [x]
    INNER JOIN [Conversations] AS [x.Conversation] ON [x].[ConversationId] = [x.Conversation].[Id]
    WHERE EXISTS (
        SELECT 1
        FROM [ConversationSubscriptions] AS [cs]
        WHERE ([cs].[UserId] = 2005) AND ([x.Conversation].[Id] = [cs].[ConversationId]))

How can I modify my implementation so EntityFramework Core can leverage query caching?

this._userId in your filter has no connection with DbContext. The value cannot be changed in anyway hence you don't see a parameter. Make sure that the property used in the filter is connected to your DbContext in some way and EF will be able to pick it up for parametrization automatically.
Things like this var constraintOptions = this._authorizationOptions.ConstraintOptions creates closure variables. After doing such assignments, even if you modify this._authorizationOptions you cannot change value of constraintOptions.
Have a look at patterns of defining filters inside this file https://github.com/aspnet/EntityFrameworkCore/blob/dev/src/EFCore.Specification.Tests/TestModels/QueryFilterFuncletizationContext.cs

Thanks, that should solve everything


Should this work for radio buttons?

I noticed that radio buttons are not updated.
Is this a missing feature?

This sounds like a bug. Are you able to provide a test case on apex.oracle.com which we could look at to see what your setup looks like?

Thanks for your quick reply!
Not a bug in the plugin, more likely an Oracle bug.
We have defined an OUT-parameter of type char. Oracle adds spaces to a length of 4000 to the out parameter.
I am not sure if this an oracle feature or a bug ;-)
We will change our outparams to varchar2.


[docs] "Platform" parameter values on deliver is not up to date

The docs for deliver still list the valid platform values as "mac" and "ios" and whether these should be symbols or strings is not defined. However, in usage the tool requires a string and says the valid values are "ios, appletvos, or osx". The docs should be updated to reflect this.

A parameter might have several conditional values associated with it. The following rules determine which value is fetched from the Remote Config Server, and which value is used in a given app instance at a particular point in time..

@joshdholtz What is your take on the supported os values that are shown in documentation of actions http://docs.fastlane.tools/actions/?
Should those values be similar as in platform options?
Currently only ios, android, mac are supported in the documentation:
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/fastlane/lib/assets/Actions.md.erb#L40
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/fastlane/lib/assets/ActionDetails.md.erb#L22
There are actions which according to the docs support ios, mac, but from the is_supported method we can see that other values  should also be supported:
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb#L111-L113
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/fastlane/lib/fastlane/actions/install_xcode_plugin.rb#L76
(This is the only place in code with :caros)
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/fastlane/lib/fastlane/actions/download_dsyms.rb#L338
Mapping from platform names to ConnectAPI platforms for comparison:
https://github.com/fastlane/fastlane/blob/66a4bb17bf6f3c0f3222b5c296926e5b58dd2b4e/spaceship/lib/spaceship/connect_api.rb#L79-L96


Add readonly ref readonly example

Summary
The only 2 instances of readonly ref readonly being shown in examples are ref fields:

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/low-level-struct-improvements
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/ref-struct

This PR adds an example talking about readonly ref readonly methods, with the first readonly meaning readonly instance members instead of readonly ref fields like in the other 2 examples.

Internal previews

📄 File
🔗 Preview link

docs/csharp/language-reference/keywords/readonly.md
readonly (C# Reference)

@BillWagner Applied all suggested changes. Thanks for the quick review!


Add new auth method - Use json_key file of GCP's service account

Notice this pull-request depends on #5
I implemented new auth method that enable to use JSON key of GCP's service account.
pull-request #5 added support for LocalFile class. This allows us to embed authentication information in config file.
However, creating base64 of .p12 file is really annoying.
supporting new auth method is useful for upper case.
Usage
out:
  type: gcs
  auth_method: json_key
  json_keyfile: /path/to/json_keyfile.json

or
out:
  type: gcs
  auth_method: json_key
  json_keyfile:
    content: |
      {
          "private_key_id": "123456789",
          "private_key": "-----BEGIN PRIVATE KEY-----\nABCDEF",
          "client_email": "..."
      }

@sakama This PR has conflicts after merge #5. Can you resolve?

Sorry I created new pull-request #7


ffimageloading:CachedImage not found in xmlns clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms

Hey @daniel-luberda ,
I suddenly got error  ffimageloading:CachedImage not found in xmlns clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms , Everything was fine until last week, but my app suddenly crushed with that error. The Error only occur in iOS, in Android it works just fine. I don't use any transformation, just use it for loading image.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
             x:Class="Smart.Views.LoginPage">
	<RelativeLayout>
        <ffimageloading:CachedImage Source="bg.png" Aspect="AspectFill"
            RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width}"
            RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height}"/>
 </RelativeLayout>
</ContentPage>

Thx in advance

I don't know, it may a lot of things, like:

Try to remove all bin/obj directories in all projects, then clean & rebuild
Try to disable Xamarin linker or reference CachedImage somewhere in code (not only in XAML)
Make sure you added packages in all projects, shared & platform specific

Also try the newest 2.2.23 package (it fixed some issues too). Please reopen if you'll still experience it.

hi, i have the same error. i use the 2.2.24 version.
how can i fix?

hi, i have the same error with version 2.2.24 on ios.
How cani fix?

https://github.com/luberda-molinet/FFImageLoading/issues/786#issuecomment-340394428

I just tried but, always the same problem

Make a reproduction then and I'll try to help.

hello, i did some tests.
I tried to remove the plugin and install it again, but now I do not work on android:
                     <forms:CachedImage Aspect="Fill" HorizontalOptions="Fill" VerticalOptions="Fill"
							            DownsampleHeight="100" DownsampleUseDipUnits="false"
							            Source="{Binding ico_mobile}"/>

on ios i set  Xamarin linker  = Don't Link but not work :(

hello, i did some tests.
I tried to remove the plugin and install it again, but now I do not work on android

             xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
......
                               <forms:CachedImage Aspect="Fill" HorizontalOptions="Fill" VerticalOptions="Fill"
							            DownsampleHeight="100" DownsampleUseDipUnits="false"
							            Source="{Binding ico_mobile}"/>

and on ios the same error

this is what I did, I removed CachedImageRenderer.Init() in AppDelegate, then rebuild the project, add it back, rebuild again. I don't know why, but somehow it works for me.

I am still having this issue.
But only when I reference it in XAML. The xmlns doesn't throw any error, only when I try to use it.
Also, when I start typing <ffim.. it gives me intellisense, but at this point ffimageloading: it doesn't find anything else, so it won't let me use CachedImage.
I cleaned, rebuilt, deleted obj/bin....no luck.


Calibration keys in theoryforge_MFLike

The keys of the calibration parameters in TheoryForge_MFLike._get_calibrated_spectra should be single-letter strings to match the syslib_mflike.Calibration_alm class. This causes the mflike tests to fail.
On my fork, I tested it with the single-letter key (lines 248 and 254) and it works fine.

That is true. There have been several updates in mflike that should be ported in soliket. I think the current version of soliket is coherent with version 0.9.0 of LAT_MFLike, while we are now at version 0.9.5 in LAT_MFLike

@sgiardie how big are the changes? Will be able to do them as a small job or will it be a bit of iteration? Otherwise we should pin the required version of syslib.

Yes I think we can correct the bugs quickly. I can take care of that if you prefer

Yes please! 🙏

Probably when you make the change you should also update the correct requirement for syslib version.

There have been also two other modifications in LAT_MFLike unrelated to bugs in mflike/syslibrary, i.e. we have removed any hard coded foreground params and pulled them in the yaml and introduced the possibility for some systematics parameters not to be sampled. Do we want to add also these modifications in soliket?


AttributeError: 'NoneType' object has no attribute 'items'

sendJesseReportToDiscord.py", line 55, in sendJesseReportToDiscord
for key, value in report.portfolio_metrics().items():
AttributeError: 'NoneType' object has no attribute 'items'

in the case that there are no trades, it still tries to reference them.


nosuchimagehash: No such image: busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f

This is problem caused by hyperd, related with https://github.com/hyperhq/hyperd/issues/613.

Fixed by https://github.com/hyperhq/hyperd/pull/624.


[ignition-math6] Add new port 🤖

What does your PR fix?

This PR adds a new port for the new major  version of the ignition-math library.

Which triplets are supported/not supported?

All tested triplet should be supported

Does your PR follow the maintainer guide?

I hope.

As discussed in https://github.com/microsoft/vcpkg/pull/7781, different major version of ignition robotics libraries (https://ignitionrobotics.org/) can be installed side by side, so each new major version is added as a new port.
In particular, ignition-math6 is a dependency for Gazebo 11 (http://gazebosim.org/blog/gazebo11) and for Ignition Robotics Citadel (that contains Ignition Gazebo 3, see https://www.openrobotics.org/blog/2019/12/11/ignition-citadel-released).
To fix the build on arm64-windows, this PR also bumps the ignition-cmake2 version to 2.2.0, that contains a fix for arm64-windows (https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-cmake/pull-requests/168/page/1).

The Linux CI is failing on the libqcow port with this error:
-- Note: libqcow only supports dynamic library linkage. Building dynamic library.
-- Downloading https://github.com/libyal/libqcow/releases/download/20191221/libqcow-alpha-20191221.tar.gz...
-- Downloading https://github.com/libyal/libqcow/releases/download/20191221/libqcow-alpha-20191221.tar.gz... Failed. Status: 22;"HTTP response code said error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message):

      Failed to download file.
      If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
      variables to "https://user:password@your-proxy-ip-address:port/".
      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  ports/libqcow/portfile.cmake:8 (vcpkg_download_distfile)
  scripts/ports.cmake:90 (include)

That I guess it is both unrelated and a network flake.

LGTM now, thanks for this PR @traversaro.

Hey, this looks great! Thanks @traversaro


Command arguments as django 1.10 way

Fix #28.
I am testing it in my project and need more tests here.

Fixing this in #31


Extension to a general Alg Trainer?

Hi Tao,
I have added 2x2 support and added EG-1 as an example. If you want to extend this to a general alg trainer you can merge this. Other features I could add is some kind of alg import system. I haven't coded vanilla JavaScript in a while but I could also do some design work.

Nice work! Making it a general algtrainer would be really cool. I did want to do this, but as you've probably seen already, my js isn't that great and I wasn't really sure how to go about adding these features.
An alg import system would be amazing, I've had some requests already from people to make a trainer for various other subsets already, so it would nice if they could just add them themselves (and with their own algs).
The design at the moment certainly isn't that great. I'm thinking about looking at https://github.com/Roman-/zbll-trainer, to see how he programmed the algorithm selector, because it would pretty much be the ideal design, for me personally.
Anyway, thanks for doing work on this, and I hope my js isn't too bad. I'd be interested in knowing if I made any serious mistakes, as I'm honestly still quite new to this.


Automator: update istio/client-go@master dependency in istio/istio@master

Generated by Automator - 2024-08-16T05:03:55+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-basic-arm64_istio
d6f83bf738c22389e0fff2135247e61e7c19cf2d
link
unknown
/test integ-basic-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

/retest


QueryErrorResetBoundary not reset after throwing error in component with useSuspenseQuery

Describe the bug
When throwing an error from a useSuspenseQuery like described here resetting the QueryErrorResetBoundary does not reset the error in useSuspenseQuery.
This happens when the error occurs on a subsequent fetch. It works as expected, if the error occurs while fetching data initially.
Your minimal, reproducible example
https://stackblitz.com/edit/github-vmd3m2?file=src%2Fcomponents%2FProjects.jsx
Steps to reproduce

Click on "Show Projects"
Click on "Refresh"
Click on "Try again"
The ErrorBoundary fallback is still shown

Expected behavior
After 3. the Suspense fallback should be shown and after a short while the project list should be shown.
How often does this bug happen?
Everytime
Screenshots or Videos
https://github.com/TanStack/query/assets/28823153/4712012b-a42a-4735-959c-27067d517b13
No response
Platform

OS: MacOS 14.4.1
Browser: Chrome 124.0.6367.209

Tanstack Query adapter
react-query
TanStack Query version
5.37.1
TypeScript version
No response
Additional context
No response

I think there is one render cycle in between where we are still in error state. I need to look into this. A quick workaround would be:
-if (error) {
+if (error && !isFetching) {
  throw error;
}


added screenshots

added new screenshots

The file docs/user/tutorial/images/docs.jpg has been added, but it's not used anywhere.

@evildmp fixed it

@genti94 this branch still has conflicts, could you please resolve them first?

@vxsx resolved them

thanks

@genti94 can you have a look at:
sphinx.errors.SphinxWarning: /home/travis/build/divio/django-cms/docs/user/tutorial/page_settings.rst

@mkoistinen can we turn off all CI checks on this branch, for the moment?

Thanks, all merged.


some tokens not recognized as equal in plot_collection

Currently https://cdminix.me/phones/examples/plots/ shows the phones in english and german - but it seems like some phones are not recognized to be shared between those two languages. Maybe this is some kind of float equality issue?

cannot reproduce this in 0.0.4, please reopen if anyone comes across this problem again


Add HPA to Pub/Sub example

This will be used in upcoming HPA external metrics tutorial. Adding sleep to simulate processing time is needed, so it's easy to generate load that a single instance can't handle and trigger autoscaling.

Just repushed gcr.io/google-samples/pubsub-sample:v1, PTAL.


Set up itch page, build/deploy

Will need to be an embedded web player thing of some kind. Maybe CI automation? Probably only if it's easy to set up.

https://knexer.itch.io/sporonauts
Needs some resolution settings changes, but can do that later once we know what we want screen size wise.


Running linclust on NFS

Hi,
I'm running linclust on a cloud instance with network file systems. I'm wondering which --db-load-mode should I use to alleviate the I/O bottleneck of NFS.
--db-load-mode INT              Database preload mode 0: auto, 1: fread, 2: mmap, 3: mmap+touch [0]

Thanks

--db-load-mode won't help in this case. The parameter handles loading of precomputed indices of (search) databases. Normally, we don't use precomputed indices for clustering.
Ideally the tmp folder should be on a local drive, that's the only optimization you can reasonably do.


Fix push tests by adding user.name and user.email to the commit

The push tests, when running on in automation, were failing because the commit message didn't have the user.name or user.email set when running on the lab machines.

Change the token environment variable to GIT_TOKEN
Add GIT_COMMIT_OWNER and GIT_COMMIT_EMAIL as environment variables to the server in tests.yml
If neither of the environment variables in step 2 are set, check git for these values. If those aren't set, I'm probably going to have to prompt the user to enter them. That is still to be decided and part of this PR.

Right now, this PR is to unblock the failures that are happening when running tools - test-proxy - tests pipeline.

@scbedd I ran the tools - test-proxy - tests pipeline against the refs/merge and look, everything now passes.


Bug Fix: app not rendering properly on android tablets

What does this PR?
In this PR, device info is got at app startup and if device is android tablet then it is locked in the orientation in which app was launched. This fixes the issue of inappropriate layout on android tablets due to msicalculation of dimensions due to change in layout/orientation after app startup. It was the qucikest and easy fix for now to handle issue which was affecting some devices
Issue number
fixes #2449

###Before
https://user-images.githubusercontent.com/48380998/194771409-85d63240-363f-4eb5-b2e6-b8aa1e9db409.mp4

After
https://user-images.githubusercontent.com/48380998/194771508-7cce4f5f-898e-4de5-a8c7-e6af4589fb5d.mp4

After
Monosnap.screencast.2022-10-09.22-42-22.mp4

seems the trick we discussed actually worked...:D Have you tried launching in portrait mode as just to verify that part is also working as expected.

yes prtrait is also working and this trick is only applied to android tablets, all rest of devices would follow previous method