Is it reasonable to add other models to construct QFilter except CrossEncoder ?

Such as BM25Search or others,
I see in load_train function of TrainRetriever use score to filter sample,
I think some experiments conclusions  about use different QFilter
to train retriever should be take in consideration.

And i find a method to normalize the bm25 score to make it like CrossEncoder score in :
https://stats.stackexchange.com/questions/171589/normalised-score-for-bm25
it says:
Normalize each score, by dividing it with the sum of all scores (of say the top 10 results). Looking at score for the first hit, it now means: "Are there lots of other hits that also match this query?". If there are, the number will be low, else it will be high.

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

I think this will require the QGenModel be more controllable,
Such as below paper use Controlled Adversarial Text Generation to improve the model robustness.
https://www.aclweb.org/anthology/2020.emnlp-main.417.pdf
i think this may also works in IR domain

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

I think this will require the QGenModel be more controllable,
Such as below paper use Controlled Adversarial Text Generation to improve the model robustness.
https://www.aclweb.org/anthology/2020.emnlp-main.417.pdf
i think this may also works in IR domain

And the attribute will be the main entity that you can extract from document

And i think you should also release the training code of your t5-small, similar with
https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45?gi=e50463b54caf

And i think you should also release the training code of your t5-small, similar with
https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45?gi=e50463b54caf

It use triples as input, but you seems use full document, this is the difference between controllable and
non-controllable generation.

And i think you should also release the training code of your t5-small, similar with
https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45?gi=e50463b54caf

It use triples as input, but you seems use full document, this is the difference between controllable and
non-controllable generation.

With the help of some entity relation extraction toolkit, can make your case into controllable

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

One of model you can use handwriting query and query generated mixture is GAN
And GAN may be a general solution to make the benchmark to be dynamic with
the help of QGenModel

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

One of model you can use handwriting query and query generated mixture is GAN
And GAN may be a general solution to make the benchmark to be dynamic with
the help of QGenModel

And if you can train the Dense-Encoder in a GAN-Bert manner, that will merge the QGenModel
and QFilter into one GAN construction, where QGenModel to the generator and QFilter to the
discriminator

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

One of model you can use handwriting query and query generated mixture is GAN
And GAN may be a general solution to make the benchmark to be dynamic with
the help of QGenModel

And if you can train the Dense-Encoder in a GAN-Bert manner, that will merge the QGenModel
and QFilter into one GAN construction, where QGenModel to the generator and QFilter to the
discriminator

This will be straightforward if you use CrossEncoder as discriminator (with label class num as 2) and
t5-small as generator, and combined them into GAN-Bert construction in
https://github.com/crux82/ganbert

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

No, we don't use a t5-small model, It was mentioned in the example only as a substitute. Now we have our models up on huggingface, so you can use them (BeIR/query-gen-msmarco-t5-large and BeIR/query-gen-msmarco-t5-base).
We use nucleus-sampling for the generation of questions. We find this to perform well and produce diverse questions. Different number of questions can be generated for a paragraph (let's say 1 or 3), but the optimal combination varies with each dataset. This is also the case with filtration. I must say, we are experimenting with various questions and an optimal threshold value. I would suggest starting by generating 1/3 questions using nucleus sampling and filter using a threshold of either greater than 0.5 or 0.9.

And i think you should also release the training code of your t5-small, similar with
https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45?gi=e50463b54caf

Yes, I plan to release them soon. It's in progress. The BEIR GitHub repo is still under development.
You can follow also here regarding the training of QGen here as well https://github.com/UKPLab/sentence-transformers/tree/master/examples/unsupervised_learning/query_generation.

You use a trained question generator (t5-small) in
https://github.com/UKPLab/beir/blob/a65531f69adb600799b7cee85f06af8cc607d956/examples/filtration/query_gen_filter_and_train.py
to generate questions.
When come to real problem, that have a dataset with query document.
Dose the query generated by a generator like t5-small (filter by a QFilter )will help to improve final
performance to IR model , that the query part is the mixture of handwriting query and query generated ?
If so,
Can you provide a dataset mixture function (give a good ratio suggestion about generate samples) with the help of the query filter method (i know in your case, you use score threshold)
to improve the final performance of IR model ?
This will make the benchmark more dynamic.

One of model you can use handwriting query and query generated mixture is GAN
And GAN may be a general solution to make the benchmark to be dynamic with
the help of QGenModel

I am not familiar with GAN architecture, thanks for the pointer. I will read it myself. Our motivation was to keep each module separate (Generation, Filtration, and Retrieval). Hence we chose this architecture, to keep it simple and easy to use. If the performance of GANBERT is dominant over existent methods and code is easy to use and understand, I could plan to add it to the repo. Thanks for the pointer.

Closing the Issue due to no recent activity!


BUG: Cannot assign to read only property 'name' of object 'ServerError

typescript: 3.6.3
nodejs: 10.16.0
my code

export class ServerError extends CustomError {
  expose: boolean

  status: number

  constructor(status: number, message: ErrorMessage = '') {
    super(message)
    this.status = status
    this.expose = true

    // Cannot assign to read only property 'name' of object 'ServerError'
    this.name = 'ServerError'
  }
}

Hi, this is a really a bug: it's a nodejs feature ;)
As the message states very clearly:
'name' is a read only property
of Error, extended by CustomError , extended by ServerError.
You can re-define name property by using
Object.defineProperty(this, 'name', {value: 'ServerError'});

instead of
this.name = 'ServerError'

thanks

yep, done https://github.com/adriengibrat/ts-custom-error/commit/f8ffe49fa0213fc5b29d7c261a4e2cae37ebc0fa

I still get this in a browser environment

Could you tell wich browser?

I was getting:
Uncaught TypeError: Cannot redefine property: name
    at Object.defineProperty (<anonymous>)
    at defineProperty (define-property.js:4)
    at new FooError (errors.ts:21)

and after looking at what defineProperty was, I realize that this is passing through core-js so it's not using the native definition.
It's possible that allowing redefinition is against the spec and this could break at any time?

https://www.ecma-international.org/ecma-262/6.0/#sec-error.prototype.name
Not really explicit in the spec but Error.name is read-only in some old/strict implementations.
I try to know which ones, so the name and version of the browser would be a great start!

Apologies, this was in Chrome 78.0.3904.108

https://codepen.io/adriengibrat/pen/yLyBVdO
with Chrome version 78.0.3904.108


Snark coordinator fails service 20 workers

Snark coordinator has hard time serving RPCs to snark workers.
Servicing worker RPCs causes lot of long async cycles and scheduler starvation.

#13550 addresses this


SwapFee used in SpotPrice calculation

@Thunnini why does the spot price calculation include the swapfee?  I don't believe this is standard when describing spot price of AMMs.
https://github.com/osmosis-labs/osmosis/blob/a003c11e7e47db398a4bbdc5dc0a453e227d5c47/x/gamm/keeper/math.go#L23

Closed by https://github.com/osmosis-labs/osmosis/commit/4a5ed584f8361eef9387594d496bd4f364e5d169


MoneyRange implementation

We're using this library in a couple of projects, and have hit upon the need for a monetary range a number of times. While we can work around this, it's much cleaner using a MoneyRange value object.
I'm aware this is slightly extending the scope of this library, so it perhaps doesn't belong here and should be in a separate library, but it's been a useful addition for us.
Examples
$range = MoneyRange::GBP(100, 1000);

$range->contains(Money::GBP(200)); // returns true
$range->midPoint(); // returns Money::GBP(500)
$range->lessThan(Money::GBP(2000)); // returns true
$range->lessThan(MoneyRange::GBP(2000, 3000)); // returns true
$range->multiply(2); // returns MoneyRange::GBP(200, 2000)

I'd welcome feedback on this!

I don't know if this should be part of this library. For now I tagged it for milestone 4.1.0. We will decide then to merge this or not. Thank you for sharing this idea and code.

have hit upon the need for a monetary range a number of times

Could you explain the use-case? It helps to accept the PR.


[Question] Is the project unmaintained ?

The project seems stuck since 2 years.
This raises a few questions :
Is it still alive ?
Are their any plans to update fonts to their latests versions ?
How to contribute ?
Should we fork ?
Is there another project thatmade this one obsolete ?
Anyway thanks for the good job 👍🏻

I'm sorry, not much time.
I updated icons to latest version and published new version 1.5.0.
Demo page: https://leshak.github.io/svelte-icons-pack/#/


Trying to replicate the examples using the size prop and nothing is displayed to the screen

I am trying to replicate the examples on the repo with the following code:
class StartScreen extends Component {
  render() {
    return (
      <Container>
        <Content>
            <Grid>
                <Row size={75} style={{ backgroundColor: '#D954D7' }} />
                <Row size={25} style={{ backgroundColor: '#D93735' }} />
            </Grid>
        </Content>
      </Container>
    );
  }
}

export default StartScreen;

The above code returns a blank screen. I know it's probably a misunderstanding on my side as to how the size prop works.
The following renders to screen:
class StartScreen extends Component {
  render() {
    return (
      <Container>
        <Content>
            <Grid>
                <Row style={{ backgroundColor: '#D954D7', height: 200 }} />
                <Row style={{ backgroundColor: '#D93735', height: 200 }} />
            </Grid>
        </Content>
      </Container>
    );
  }
}

Ok just saw the answer in the docs:
"NOTE:  component uses . This is required by  and  elements of Easy-Grid to have a defined height."
Taking out the Content Tag allows you to not specify height.
class StartScreen extends Component {
  render() {
    return (
      <Container>
            <Grid>
                <Row style={{ backgroundColor: '#D954D7', height: 200 }} />
                <Row style={{ backgroundColor: '#D93735', height: 200 }} />
            </Grid>
      </Container>
    );
  }
}


Unable to navigate menus with arrow keys

On Windows with Skia I have a menu on AS.
I can press ALT to have the main menu item selected, but using arrow keys you cant open any submenu or select them.

Is this still an issue?

This should now be fixed.


Clicking on a user's role who is not active and making them active fires an error

If you click on a user's role who is not active and try to make them active outside of the "edit a role" flow, it fires the error in turquoise in the image below.

https://github.com/airbnb/caravel/pull/1138 fixed this


PickPhothoAsync always returns file with jpg extension.

Bug
Version Number of Plugin: 2.3.0
Device Tested On: Bq Edison 3G
Simulator Tested On:
Expected Behavior
Pick a png file and return a file with png extension
Actual Behavior
Always returns the file with jpg extension
Steps to reproduce the Behavior
Use PickPhotoAsync, select PNG file and display file.path
var file = await CrossMedia.Current.PickPhotoAsync ();
System.Diagnostics.Debug.WriteLine(file.path);

The image looks alright though?
I think it is hardcoded to .mp4 and .jpg though. Should be easy to work around and check to see if the file name is png get png or whatever it is. Will put in backlog.

The image looks alright inside the app but If I use it in PDF with a bitmap object, for example, the image doesn't print in PDF.
I thought validate the image format and only support JPG and BMP after PickPhotoAsync.
Thanks!

@jamesmontemagno is this bug fixed yet? Where can I get correct file extension

If it is still open then it hasn't been fixed.
I re-compress everything as a .jpg so it makes sense. It isn't a file picker, this is supposed to be used to be used for photo picking.
I will investigate, but it is pretty low priority.

@jamesmontemagno  Is the re-compression done by default? becaues I faced error while sending the image to a REST Api service because I am sending a png file with jpg extension.
Is using image as byte array and sending to service with jpg extension a solution?

Check out: <IP_ADDRESS>-beta
I now use the file name + extension instead of a name based on time.

@jamesmontemagno  Thanks for your support :)

Please test out with your use case and report back.

@jamesmontemagno  Checked my use case in 3 devices and emulator, its working fine now. Thanks for your time and support!

Hi @jamesmontemagno
I currently using ver 2.6.2. The file always return .jpg extension when I tried to attach .png file. Is there any method to get the file extension only using this media plugin?
Expected Behavior
Pick a png file and return a file with png extension
Actual Behavior
Always returns the file with jpg extension
Steps to reproduce the Behavior
Use PickPhotoAsync, select PNG file and display file.path
var file = await CrossMedia.Current.PickPhotoAsync ();
System.Diagnostics.Debug.WriteLine(file.path);


[BUG] Unable to fit SupervisedTimeSeriesForest

Describe the bug
Unable to fit SupervisedTimeSeriesForest with X_train of shape (3900,1), y_train of shape (3900,).
To Reproduce
from sktime.classification.interval_based import SupervisedTimeSeriesForest
tsf = SupervisedTimeSeriesForest()
tsf.fit(X_train, y_train)

results in ValueError: Found array with 0 feature(s) (shape=(3900, 0)) while a minimum of 1 is required.
with X_train.shape, y_train.shape equal to  ((3900, 1), (3900,))
Note that this works well:
from sktime.classification.interval_based import TimeSeriesForestClassifier
tsf = TimeSeriesForestClassifier()
tsf.fit(X_train, y_train)

Expected behavior
No error raised.
Versions

System:
    python: 3.9.7 (default, Sep 10 2021, 14:59:43)  [GCC 11.2.0]
executable: /bin/python3
   machine: Linux-5.13.0-40-generic-x86_64-with-glibc2.34
Python dependencies:
pip: 22.0.3
setuptools: 58.3.0
sklearn: 1.0
sktime: 0.11.3
statsmodels: 0.13.2
numpy: 1.21.3
scipy: 1.5.2
pandas: 1.3.4
matplotlib: 3.4.3
joblib: 1.1.0
numba: 0.55.1
pmdarima: None
tsfresh: None

This problem drives me crazy.. Thanks for your help!

This does not look right - in time series classification, you want to pass multiple labelled time series.
(3900, 1) means 3900 time series of length 1? Not much of a series...
Or is this a single time series of length 3900? Then, you need more than one.
Can you perhaps explain what you are trying to do?

Oh I sorry for the missunderstanding. Here is how I import my data from many csv files which are in subfolders:
import importlib
from os import listdir
from os.path import isfile, join, exists
from datetime import datetime
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
def import_data(signal):
    data_path = "../data_training/"
    categories = listdir(data_path)
    excluded_fault = []
    X = pd.DataFrame()
    Y = []
    for cat in categories:
        if (not (cat in excluded_fault)):
            tmp = join(data_path, cat)
            files = [f for f in listdir(tmp) if isfile(join(tmp, f))]
            for i in range(len(files)):
                file = files[i]
                data = np.genfromtxt(join(tmp, file), delimiter=',')
                # here I select the column containing the time series I want as input
                if (signal == "i"):
                    d = {signal: [pd.Series(data[1,:], copy=False)]}
                if (signal == "w"):
                    d = {signal: [pd.Series(data[2,:], copy=False)]}
                if (signal == "x"):
                    d = {signal: [pd.Series(data[3,:], copy=False)]}
                df_tmp = pd.DataFrame(data=d)
                X = pd.concat([X, df_tmp], ignore_index = True)
                Y.append(cat)
    return (X,np.array(Y))

X, Y = import_data("i")
X_train, X_test, y_train, y_test =  train_test_split(X, Y)
from sktime.classification.interval_based import SupervisedTimeSeriesForest
tsf = SupervisedTimeSeriesForest()
tsf.fit(X_train, y_train)

So as you can understand X is univariate and contains 3900 time series. (I had no problem with X multivariate with I, w, X as time series).
Here is the error output I get (I tested it also inside a python script):

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/tmp/ipykernel_135020/4153831867.py in
      1 from sktime.classification.interval_based import SupervisedTimeSeriesForest
      2 tsf = SupervisedTimeSeriesForest()
----> 3 tsf.fit(X_train, y_train)
~/.local/lib/python3.9/site-packages/sktime/classification/base.py in fit(self, X, y)
169         for index, class_val in enumerate(self.classes_):
170             self._class_dictionary[class_val] = index
--> 171         self.fit(X, y)
172         self.fit_time = int(round(time.time() * 1000)) - start
173         # this should happen last
~/.local/lib/python3.9/site-packages/sktime/classification/interval_based/_stsf.py in _fit(self, X, y)
152                 )
153
--> 154         fit = Parallel(n_jobs=self._threads_to_use)(
155             delayed(self._fit_estimator)(
156                 X,
~/.local/lib/python3.9/site-packages/joblib/parallel.py in call(self, iterable)
1041             # remaining jobs.
1042             self._iterating = False
-> 1043             if self.dispatch_one_batch(iterator):
1044                 self._iterating = self._original_iterator is not None
1045
~/.local/lib/python3.9/site-packages/joblib/parallel.py in dispatch_one_batch(self, iterator)
859                 return False
860             else:
--> 861                 self._dispatch(tasks)
862                 return True
863
~/.local/lib/python3.9/site-packages/joblib/parallel.py in _dispatch(self, batch)
777         with self._lock:
778             job_idx = len(self._jobs)
--> 779             job = self._backend.apply_async(batch, callback=cb)
780             # A job can complete so quickly than its callback is
781             # called before we get here, causing self._jobs to
~/.local/lib/python3.9/site-packages/joblib/_parallel_backends.py in apply_async(self, func, callback)
206     def apply_async(self, func, callback=None):
207         """Schedule a func to be run"""
--> 208         result = ImmediateResult(func)
209         if callback:
210             callback(result)
~/.local/lib/python3.9/site-packages/joblib/_parallel_backends.py in init(self, batch)
570         # Don't delay the application, to avoid keeping the input
571         # arguments in memory
--> 572         self.results = batch()
573
574     def get(self):
~/.local/lib/python3.9/site-packages/joblib/parallel.py in call(self)
260         # change the default number of processes to -1
261         with parallel_backend(self._backend, n_jobs=self._n_jobs):
--> 262             return [func(*args, **kwargs)
263                     for func, args, kwargs in self.items]
264
~/.local/lib/python3.9/site-packages/joblib/parallel.py in (.0)
260         # change the default number of processes to -1
261         with parallel_backend(self._backend, n_jobs=self._n_jobs):
--> 262             return [func(*args, **kwargs)
263                     for func, args, kwargs in self.items]
264
~/.local/lib/python3.9/site-packages/sktime/classification/interval_based/_stsf.py in _fit_estimator(self, X, X_p, X_d, y, balance_cases, idx)
386
387         return [
--> 388             estimator.fit(transformed_x, y[bag]),
389             [intervals, intervals_p, intervals_d],
390         ]
~/.local/lib/python3.9/site-packages/sklearn/tree/_classes.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
935         """
936
--> 937         super().fit(
938             X,
939             y,
~/.local/lib/python3.9/site-packages/sklearn/tree/_classes.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
163             check_X_params = dict(dtype=DTYPE, accept_sparse="csc")
164             check_y_params = dict(ensure_2d=False, dtype=None)
--> 165             X, y = self._validate_data(
166                 X, y, validate_separately=(check_X_params, check_y_params)
167             )
~/.local/lib/python3.9/site-packages/sklearn/base.py in _validate_data(self, X, y, reset, validate_separately, **check_params)
567                 # :(
568                 check_X_params, check_y_params = validate_separately
--> 569                 X = check_array(X, **check_X_params)
570                 y = check_array(y, **check_y_params)
571             else:
~/.local/lib/python3.9/site-packages/sklearn/utils/validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, estimator)
804         n_features = array.shape[1]
805         if n_features < ensure_min_features:
--> 806             raise ValueError(
807                 "Found array with %d feature(s) (shape=%s) while"
808                 " a minimum of %d is required%s."
ValueError: Found array with 0 feature(s) (shape=(3900, 0)) while a minimum of 1 is required.

ok, I think we need a concrete example to run (without your files but with some fake data) - would you be able to produce that for debugging? I don´t understand 100% the precise data format, so some code that runs by itself, without loading anything etc, would be appreciated.

I have shared a zip file here.
This contains a part of the data I have as input, and the notebook I used to debug without success.

hi @cedced19, any luck with this? I suggest you format the data separately to file, ideally into .ts format but it will work fine if you format it into a 2D numpy array and pass that to fit. If you have equal length univariate classification problem, storing the data in 2D numpy is much easier. I tried to recreate the above with this code (intentionally like the above without the file loading).
from sktime.utils._testing.panel import _make_panel_X
from sktime.classification.interval_based import SupervisedTimeSeriesForest
from sktime.classification.interval_based import TimeSeriesForestClassifier
tsf1 = SupervisedTimeSeriesForest()
X = pd.DataFrame()
for i in range(40):
    data = np.arange(40).reshape(2, 20)
    d = {"i": [pd.Series(data[1,:], copy=False)]}
    df_tmp = pd.DataFrame(data=d)
    X = pd.concat([X, df_tmp], ignore_index = True)
tsf1.fit(X, trainY)
p=tsf1.predict(X)
print(" Shape of one series = ",X.iloc[0][0].shape," type = ", type(X.iloc[0][0]))
print("Built successfullym train preds = ",p)

Hi @TonyBagnall ! Thank you for the answer !
I will check later your solution.
What I have done until that moment is using ColumnEnsembleClassifier:
stc = ShapeletTransformClassifier(
                estimator=RotationForest(n_estimators=50),
                n_shapelet_samples=100,
                max_shapelets=75,
                batch_size=20,
                n_jobs=-1)
            estimators = [("STC " + str(signal_num), stc, [signal_num])]
            classifier = ColumnEnsembleClassifier(estimators=estimators)

This is not the best way, and I think I have to learn a little bit about array types (but in my case it is not too bad to import all the signals, as I was doing some experimental research on that).

ah is it a multivariate problem? If so, and your time series are all the same length, the easiest way to use our classifiers is to get the data into a 3 dimensional numpy array of dimensions (numberOfCases, numberOfChannels, seriesLength). Alternatively, just write the data into ts format, where each row is a case, there are examples in the data directory, BasicMotions is a simple multivariate equal length problem.

Yes and no.
Actually it is a multivariate problem, but I wanted to see if I get better result with one variable, or with which variable I get the best results.
In my answer from 23.09, I just extract one variable.
I definitively have to check ts files. Thank you for your tips.


Python: .Net: Cannot get ai service without passing base class

Describe the bug
I would like to be able to retrieve an ai service, but the service is not returned. Looking at the source code, this is because the check is hardcoded to the base class, rather than checking for subclasses.
To Reproduce
Steps to reproduce the behavior:
import semantic_kernel as sk

kernel = sk.Kernel()
kernel.add_chat_service("azure_gpt35_chat_completion", AzureChatCompletion(deployment_name=OPENAI_DEPLOYMENT_NAME, endpoint=OPENAI_ENDPOINT, api_key=OPENAI_API_KEY))

kernel.get_ai_service(AzureChatCompletion, service_id='azure_gpt35_chat_completion')
# Raises ValueError

Expected behavior
The service is returned
Additional context
it would be even better to be able to get the service only passing the id, it is already clunky having to pass the type

This is complete as of #5077. We've introduced an AI Service Selector class, and you can get the service via kernel.get_service(service_id).


Adldap configuration not found in Lumen

Lumen Version: 6.3.2
Adldap2-Laravel Version: latest?
PHP Version: 7.3.17
LDAP Type: ActiveDirectory

Description:
Following what sparse Lumen installation directions I could find, namely issue #643, when attempting to execute a route with the parameter (AdldapInterface $ldap), I get the following message,
Adldap configuration could not be found. Try re-publishing using 'php artisan vendor:publish'.
I do have config/ldap.php and config/ldap_auth.php in place and filled out.
Please let me know what other info you may need

Update: I tried php artisan config:clear as shown in #682 and got the message
In AdldapAuthServiceProvider.php line 38:

  Call to undefined function Adldap\Laravel\config_path()


Patch files - PPRM block

I have started to decode the PPRM block, and have located the patch volume, but don't know what any of the other bits/bytes might represent... any suggestions?
https://github.com/mungewell/zoom-zt2/blob/master/decode_preset.py#L56

The bits before the patch volume are reported as unknown key and (at least for the GCE-3) there is little variation.
simon@thevoid:/media/simon/OS/Users/simon/Documents/ZoomFW/GCE-3_v1.20_Win_E/unzipped/.rsrc/1041/BIN/extract_zptc$ cat *.dump | grep -e "PPRM" -A 5 | grep "unknown" | sort | uniq -c
    168                 unknown = 12816
     25                 unknown = 17185
      5                 unknown = 21554
      2                 unknown = 25923

And in binary...
>>> "{0:029b}".format(12816)
'00000000000000011001000010000'
>>> "{0:029b}".format(17185)
'00000000000000100001100100001'
>>> "{0:029b}".format(21554)
'00000000000000101010000110010'
>>> "{0:029b}".format(25923)
'00000000000000110010101000011'

Looking at those with '25923', there are 2 patches.
52992.zptc.dump:                unknown = 25923 => u'StringGt  '
53728.zptc.dump:                unknown = 25923 => u'Rezo Cln  '

Hi @mungewell
I am tied up next week - broke me Burny LP55s (dropped) and was patching it back together.
Anyhow next weekend I will try to catch up with what you are doing.
My approach would be to write out the known patch params, then see which ones are missing. See if varying them modifies that area. But I guess you are already doing this?
What I notice from the older G5 is one could set pedal parameters. We believe the PRME is the PaRMeter in English right? The JSON we generate tells us what parameters there are? So wouldnt the PPRM have the PaRMater Midi values??
So would we expect any hidden stuff in there (other than maybe a checksum?).
Like I said on the older pedals one can set, in the patch, what the control in pedal will control. And the expression pedal - the G1XFour etc is more verbose than the earlier pedals. For example the description (which I havent found a sysex for - dont think I have). You hinted it is possible to load patches between eachother on the newer pedals? So maybe there is more info in the PPRM block?

I made progress in writing patches to pedal types that they didn't come from... actual when padded to the correct size they pedal accepts and corrects some things.
https://github.com/mungewell/zoom-zt2/issues/40
You mentioned G1XFour, and now mine is back in reach I tried a few tests on that...
# output commands to read all patches from pedal

for patch in range(10,60):
    print("python3 ../../zoomzt2.py -p %d patch%d.ztpc" % (patch, patch))

And then..
$ python3 grab_all.py > grab_all.sh
$ bash grab_all.sh
$ find . -name '*.ztpc' -exec bash -c "python3 ../../decode_preset.py -d {} > {}.dump" \;
$ cat *.dump | grep -e "PPRM" -A 5 | grep "unknown" | sort | uniq -c
     15                 unknown = 0
      8
    unknown = 1
      2                 unknown = 1074
      1                 unknown = 12816
      2                 unknown = 17185
      4                 unknown = 2
      9                 unknown = 3
      9                 unknown = 4

>>> "{0:029b}".format(1074)
'00000000000000000010000110010'
>>> "{0:029b}".format(12816)
'00000000000000011001000010000'
>>> "{0:029b}".format(17185)
'00000000000000100001100100001'

Will dig into whether there is a noticable commonality of the patches with the same lower bits for unknown.

Didn't see any parameter/feature of the patch which would explain these bits, however I did note that they are automatically reset (to their 'normal' value) if I deliberately change and then reload the adjusted patch. ie they mean something to the pedal, they aren't just unused values.
$ python3 ../../decode_preset.py -d test.ztpc | grep -A 10 "PPRM"
    PPRM = Container:
        length = 12
        autorev = b'\x00\x00\x002\x00\x00\x00\x00\x00\x00\x00\x00' (total 12)
        reversed = Container:
            control = Container:
                punknown = 0
                volume = 100
                pad = 0
            unknown = b'\x00\x00\x00\x00\x00\x00\x00' (total 7)
$ python3 ../../zoomzt2.py -P 50 test.ztpc
$ python3 ../../zoomzt2.py -p 50 test2.ztpc
$ python3 ../../decode_preset.py -d test2.ztpc | grep -A 10 "PPRM"
    PPRM = Container:
        length = 12
        autorev = b'\x00\x0c\x842\x00\x00\x00\x00\x00\x00\x00\x00' (total 12)
        reversed = Container:
            control = Container:
                punknown = 12816 <------------ reset to previous value
                volume = 100
                pad = 0
            unknown = b'\x00\x00\x00\x00\x00\x00\x00' (total 7)

I don't think that they are a checksum, as they do not change if the name or order of effects are changed within the patch.

Very kindy. So PPRM is parameter block for an FX.
I wonder - if you make a patch with say 5 identical FX do these values remain same in each FX?
I was going to suggest changing FX order in a patch with different FX  but like we know the PPRM is per FX.
We don't have any FX where the version has been updated? And are the unknown bits the same regardless of patch? IE if it can be seen to be constant then it's some sort of signature or fixed attribute (I guess).

Just for clarity the PPRM block is NOT for individual effects, it is overall setting for the patch ('.ztpc' file). We know it contains the patch volume (different from individual effect's volume).

On the question of ZD2 effects which have changed/have different versions. I made a list of the ones offered via GL...
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/master.txt
I can run through all the ones I have extracted from FW images to see if there's any which are different from the above...

Thanks for the clarification. I guess you have some candidates.
0x02000051 : Gt GEQ (v1.10), 0xab2c491e83f2e755bbf05dd35017286d0x02000053 : Gt GEQ 7 (v1.10), 0x2ee248d8194055c6adaeeeef113c4b520x02000054 : Gt GEQ 7 (v1.10), 0x47afd7dbfc1cfc309f455dba1f36207a0x02000060 : St Gt GEQ (v1.10), 0x149879b7fb183f6df9f67aae90fc63820x02000061 : St Gt GEQ (v1.10),
I wonder if they generate different PPRM when put in a patch (inplace of eachother)

These two... are actually the 2screen (G3n/etc) and 1screen versions (G1Four/etc).
0x02000050 : Gt GEQ (v1.10), 0x46d90b7a39c68c95d256a07e4a57ba13
0x02000051 : Gt GEQ (v1.10), 0xab2c491e83f2e755bbf05dd35017286d

They have different filenames and 2screen versions are blocked on the G1Four with GUARD.ZT2. Don't know what happens if you bypass that protection...
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/G3n/unzipped/list_sorted.txt#L15
https://github.com/mungewell/zoom-zt2/blob/master/zoom_fx/G1 FOUR/unzipped/list_sorted.txt#L15
I'll be looking for ZD2 with exactly the same ID and different (embedded) version numbers.

Wow, there were way more that I expected - for example:
0x01000010 : Comp (v1.10), 0x4fa7a52bc19e7e5152c11284bc7e23ad
0x01000010 : Comp (v1.20), 0xef9f226550c8ff0456043fa32b144f96
0x01000010 : Comp (v1.30), 0xed47bb3a16fb16d537c4a1e105520a47
0x01000010 : Comp (v1.40), 0x734b3be53622c6d6930775fca9089301

uniq.txt

Another interesting observation, if I upload a complete set of patches and then download again all the 'punkown' values (in PPRM) are low numbers (ie <=4).
When I edit/save a patch on the pedal, then then number becomes high. Note I have auto-save turned off. For example 'MonkeyRCT' starts as 1, but becomes 17185 ('00000000000000100001100100001')

Figured out a few more bits - the lower 3 bits are the slot which is currently being edited, these can only be read as 'download current patch' as placing pedal in PC mode clears any unsaved changes.
This also only reports correctly if the pedal is 'edit' phase, where the individual parameters of the effect are shown on the screen. This may be different for the larger pedals.
I've checked in the changes to allow this, command is like... slots labelled 0 through 4 on G1Four.
$ python3 ../../zoomzt2.py -c test.ztpc
$ python3 ~/zoom-zt2-sdw-github/decode_preset.py -d test.ztpc | grep "slot"
                slot = 0

Still have more bits to identify in PPRM, but haven't figured what makes them change.

is there some new code I should pull to play along? I have the G3n and G5n so could see if anything changes.

I added some stuff to repo in:
https://github.com/mungewell/zoom-zt2/blob/master/decode_preset.py
The is a --pad command line to set the size/padding when saving changed files with --output. If you use the --dump command then there is additional information decoded from the files.
Things to check:
'target' - ie which pedal this patch came from.
'pslot' - from the PPRM block, I think this only applies when read 'current patch' (possibly with auto-save turned off).
Still don't know what the unknowns are.....


NullCount doesn't increase when indexing

The following example doesn't increase the NullCount correctly in a column.
PrimitiveColumn intColumn = new PrimitiveColumn("Int", 5);
intColumn[2] - null;
Assert.True(1, intColumn.NullCount)
This occurs because we have to differentiate between initialized but unset values and set, pre-existing values.

Will be fixed with https://github.com/dotnet/corefxlab/pull/2770.


Add rails 8  support

What are you trying to accomplish?
Add rails 8 appraisal and ci to matrix and move sprockets to be depended on for older versions

@joelhawksley I have left this out of the changelog as its more of a thing for developers on the project

@joelhawksley sorry I only see you also had a pr for this now, I have however fixed the issues that caused your pr to fail, if you don't mind taking a look

@camertron I have added propshaft at last, it does however come with less features by design, like for instance I can not set a custom host as far as I know so those tests are omitted on new rails versions

@camertron @Spone @joelhawksley @BlakeWilliams  anyone had a chance to review this, it is quite important

Thanks @joelhawksley for the additions


Replace mimalloc patch with stubs

Should be easier to maintain these stubs than having a source patch. Still will try to upstream the patch for exporting the libc alloc functions on wasi

Will later delete the stubs if https://github.com/microsoft/mimalloc/pull/667 goes in


Fixed horizontal overflow on mobile screens

Fixed row padding in sponsor section by adding container wrapper.

Thanks Qingzhuo, I really should do some more testing on mobile devices


unpin holoviews in requirements.txt?

Would it be possible to unpin holoviews? We're finding that using xrviz is making downstream package management at this time?
https://github.com/intake/xrviz/blob/e39c38a9004e445f52d611724f582c5b39c0da46/requirements.txt#L2
cc @scottyhq

@hdsingh , is there any reason to keep this pin?

This specific version was added about 2 weeks ago to get correct lon/lat values on the hover. The latest version of holoviews doesn't show correct values. Everything else works fine with the latest version.

https://github.com/pyviz/holoviews/issues/3891

This needs to be reopened.

This has been resolved in #48.


Address #6: polyval

Slightly different from my original proposal. There are a few pieces worth highlighting.
First, I think the most idiomatic Rust approach would actually be to drop the n argument as well as s, and let the size of the p argument imply the order of the polynomial. The reason I didn't take this further step is that keeping n requires fewer changes, and leaves the code a closer parallel to its C++ and Java counterparts. I figure we can always choose to reconsider later, perhaps if and when we focus on performance. The performance implications are likely minor, and I'm not sure which approach they favor.
Second, while keeping n, it's somewhat tempting to change it to usize, since its support for the negative special case doesn't appear to be used in any of Karney's code that I've examined or logged. It's certainly not used in any of our current geodesic functionality. It may be used in geoid, magnetic model, or projection special cases that aren't hit by any of the scenarios I've run in my instrumented C++. My current guess is that it's not actually used and was only added for completeness. Anyway, I left it signed for now, but changed it from i64 to isize since we ultimately need to cast it to usize for use as an array index, and any value too large for i32 would strongly hint that we're already off the rails. The largest n I've seen in instrumented scenarios is 29.
Third, I went with a slightly different polyval implementation than my original proposal. I felt that my new version is slightly more clear that it never tries to cast a negative n to usize (though both should actually be safe), and that it might give the optimizer more of a hint that we don't care about the i value except for accessing an element of p (though I suspect it would recognize that anyway).
Fourth, I tried to keep changes to polyval's callers minimal in most cases, but there were two I couldn't resist: Both _C3f and _C4f were using floating point values to represent array indices. I switched these to usize, also tweaking the types of some variables they interact with.
Finally, these changes should be behavior-neutral. I think they'll help me with arcdirect troubleshooting because polyval is called extensively in some sections of code used to calculate Geodesic member variables that end up with suspect values, and these changes will make it easier for me to compare the C++ and Rust code for these sections. However, they don't do anything to resolve the arcdirect problems themselves.
I'd be happy to revise my approach if you'd prefer something different for any of these various items.

[ ] I agree to follow the project's code of conduct.
[ ] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

bors r+
All SGTM, thanks!


New York City Police Department Midtown South Precinct Calls for Services

Someone has requested help on a data project:
Submission notes
Looking for Calls for Services in NYC, NY.
Location
New York City Police Department Midtown South Precinct - NY
Requirements
Calls for Services
How to help
Leave a comment if you'd like to help. Do you have ideas, questions, or need any more information to get started?

Duplicate of #23


bind=ALT,RETURN,exec,alacritty closes hyprland

Distro: Nobara release 36
Kernel: 5.18.18-201.fsync.fc36.x86_64
GPU: Radeon Vega 6
It didn't crash hyprland, only closed it since coredumpctl didn't provide anything. I've done a git bisect and this is the faulty commit cc3f0ff9e7906bff60a041fc5556e7c5cbd71df5.
logfile
config

Nobara again. I will throw it into the "nobara" basket. The only thing I've heard about this distro is in the crash reports.


Bug 2168480: Correct the link for Virtualization dashboard

📝 Description
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2168480
Correct the link for Virtualization dashboard present in VM's Metrics tab, so it redirects to Observe -> Dashboards
with "KubeVirt / Infrastructure Resources / Top Consumers" selected in the Dashboard drop down.
🎥 Screenshots
When clicking on Virtualization dashboard:

Before:
Clicking on Virtualization dashboard leads to the following unexpected page:

After:
Clicking on Virtualization dashboard leads us to the correct page:

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review


fix: add unique id to app created page

Fixes #252
State seems to be persisted in browsers history, we fix that by using a unique URI for every app that has been created.

Did you try passing { state: null } after we go to /apps on having lastEventAt here? I can't reproduce even the actual issue

@im-adithya @reneaaron I found how to consistently reproduce the issue:

Create a new app and do at least one NWC event for it
Delete the app
Create a new app

Step 3. Will lead to this bug.
The pubkey is different for each app, but SQLITE is reusing app IDs rather than properly auto-incrementing.
We fetch events by pubkey from the API, but internally we query by app ID.
And for some reason when we delete apps, the request_events are not deleted.
So this PR does actually not fix the issue, and there's nothing wrong with the routing (which passes different state each time)

For some reason the foreign key on delete constraint is not working
sqlite> .schema request_events
CREATE TABLE IF NOT EXISTS "request_events" (`id` integer,`app_id` integer null,`nostr_id` text UNIQUE,`state` text,`created_at` datetime,`updated_at` datetime, method TEXT, content_data TEXT,PRIMARY KEY (`id`),CONSTRAINT `fk_request_events_app` FOREIGN KEY (`app_id`) REFERENCES `apps`(`id`) ON DELETE CASCADE);
CREATE UNIQUE INDEX `idx_request_events_nostr_id` ON `request_events`(`nostr_id`);
CREATE INDEX `idx_request_events_app_id` ON `request_events`(`app_id`);
CREATE INDEX idx_request_events_app_id_and_id ON request_events(app_id, id);
CREATE INDEX `idx_request_events_method` ON `request_events`(`method`);


This patch allows to load SAML metadata according to the browser language

Not being a JAVA developer, I do not know if this patch conforms to your development rules.
See #2735

This is perfect. Thank you.

Do not worry about "making mistakes": https://apereo.github.io/cas/developer/Contributor-Guidelines.html#be-not-afraid
Would you be interested in issuing the same changeset to the master branch?

Yes, I'll try to submit this to the master branch in few days.
Can I include  your changes (issues #2735, #2740) in branch 5.1.x too ?

Sure. You're welcome to backport any and all changes you deem appropriate that remove pain :)

Great !

Also, if it helps there is this guide: https://apereo.github.io/2017/07/05/cas-contribution-guide/


activeClassName with class and className for Link

I find something interseting in the Link Component with the activeClassName
  <Link href="/" activeClassName="active" className="className"/>

if the match route it will give the  only the "className" class but if i change it to this
  <Link href="/" activeClassName="active" class="className"/>

then it will give the  "className" and "active" as its class.
Is this intended?

This is intended. preact-router is designed for use with Preact, which means it expects a class prop, not className.

@developit according to your comment, it is possible and allowed to use both class and className in Preact. In my own case, I'm using className everywhere just because I have separate projects on React and don't want to have issues memorizing the proper syntax when switching between them.
Why just don't support both? And following this logic, the active class should be named activeClass, not activeClassName then.

@evenfrost TBH you're right, there's not really a good reason for preact-router should take a stance on this. I've opened #386 that implements both your suggestions (className support as well as activeClass). Thanks for the nudge!


[0.2] ci: Remove tests with rust < 1.63

Since the increase to MSRV in 1, we no longer need to test with old
versions of Rust.

Includes https://github.com/rust-lang/libc/pull/4048 and https://github.com/rust-lang/libc/pull/4050 just so I can get this going without conflicts.


Update macOS M1 install instructions in README

With the release of stardist arm64 wheels, as well as numba and llvmlite wheels for arm64, the install process on macOS M1 is fairly straightforward.
IMO it's time to update the Apple Silicon (macOS M1) instructions to reflect the current simplest path and Apple recommendations:

arm64 conda (miniforge/mambaforge) for tensorflow-deps
tensorflow-macos, tensorflow-metal via pip
stardist via pip

I can confirm on my M1 with miniforge3 conda the following JustWorks (with no cached packages):
conda create -y -n stardist-env python=3.9
conda activate stardist-env
conda install -c apple tensorflow-deps
pip install tensorflow-macos tensorflow-metal
pip install stardist

Of course, using mamba also works and is faster.
Edit: If you think it's important, can gate the tensorflow version to a specific preferred version. So far, every release has worked perfectly for me, including the current 2.9

BTW, on a lark, I tested just doing pip install tensorflow-macos, without using the apple conda channel for depends.
It worked! It was much slower, obviously, and grpcio needed building, but it did work.
For now I would stick with Apple's instructions—not sure if there is some special sauce, like Accelerate support, in the dependencies or not.

Interesting, thanks!
Btw, you could test how much improvement metal would give you e.g. by the following:
import numpy as np
from stardist.models import StarDist2D
from timeit import default_timer
import pandas as pd
import platform
import tensorflow as tf

is_gpu = tf.test.is_gpu_available()

model = StarDist2D.from_pretrained('2D_demo')

def bench(model, n_size=1024, niter=5):
    print(n_size)
    x = np.zeros((n_size,)*2, np.float32)
    t = default_timer()
    for _ in range(niter):
        model.predict(x)
    t = (default_timer() - t) /niter
    print(f'time to predict on shape {x.shape}: {1000*t:.2f} ms')
    return dict(platform=platform.system(), gpu=is_gpu, shape=x.shape, time=t)

ns = 2**np.arange(8,12)

df = pd.DataFrame.from_records(bench(model, n_size=n) for n in ns)

print(df)

For me (with metal)

platform
gpu
tfversion
shape
time

0
Darwin
True
2.9.1
(256, 256)
0.0801365

1
Darwin
True
2.9.1
(512, 512)
0.0676265

2
Darwin
True
2.9.1
(1024, 1024)
0.0764893

3
Darwin
True
2.9.1
(2048, 2048)
0.224359

with metal (macOS 12.3.1, M1, python 3.9, TF 2.9.1)
platform   gpu         shape      time
0   Darwin  True    (256, 256)  0.072636
1   Darwin  True    (512, 512)  0.085084
2   Darwin  True  (1024, 1024)  0.168996
3   Darwin  True  (2048, 2048)  0.572740

without metal:
platform    gpu         shape      time
0   Darwin  False    (256, 256)  0.068399
1   Darwin  False    (512, 512)  0.141844
2   Darwin  False  (1024, 1024)  0.434232
3   Darwin  False  (2048, 2048)  1.676797

So about 3x speedup.
Also, I'm guessing you have a newer M1Pro with 2x the GPU cores compared to my OG M1.


in some cases does not set escapeHTML to true by default

Hello,
I'm using your library in an application I'm writing. In the app, I have a large array of message objects, one key of which is a ReactMarkdown component, that sits in state. I don't want to re-render every single markdown component each time the array changes, so I'm rendering them beforehand on initial download like so:
for (const message of messages) {
    message.markdown = parseMarkdown(message.comment)
}

function parseMarkdown(markdown) {
  const options = {
    source: markdown,
    linkTarget: '_blank',
  };
  return new ReactMarkdown(options);
}

This works great, and now I only render each message one time. However, I noticed that it seems to ignore the default escapeHTML setting when I do this, and it actually renders HTML by default and even allows javascript handlers to be rendered and such.
Here's a minimal reproduction:
https://github.com/ExtraHash/react_markdown_bug_reprod/blob/master/src/App.js
import ReactMarkdown from 'react-markdown';

function parseMarkdown(markdown) {
  const options = {
    source: markdown,
    linkTarget: '_blank',
  };
  return new ReactMarkdown(options);
}

const xssString = `<form onsubmit="alert('hello')">
<input type="submit">
</form>`;

function App() {
  return (
    parseMarkdown(xssString)
  );
}

export default App;

Setting escapeHTML to true explicitly makes it perform as expected, escaping HTML.
Is this just my usage error? I know it's not conventional to actually call new on a react component, but it does seem to work fine.

I don't want to re-render every single markdown component each time the array changes

React has solutions for this, a mix of https://reactjs.org/docs/lists-and-keys.html#keys and/or https://reactjs.org/docs/react-api.html#reactmemo should prevent unnecessary rerenders.

However, I noticed that it seems to ignore the default escapeHTML setting when I do this

When you bypass https://reactjs.org/docs/react-api.html#createelement, you bypass prop type checking and defaults.
escapeHTML: trueis set in defaultProps
https://github.com/rexxars/react-markdown/blob/2d991aa1097e95064f0209fc6d3a15b6300c07c7/src/react-markdown.js#L82-L92


Add the nice-select2 library in the account form

as a developer
I need to add the library in the project to build the dropdown select in account form
What it is now
The project use the native select, which opens a popup and do not follow the design specifications
What it should be
the select needs to be a dropdown menu and follow the design specification
Acceptance criteria
a dropdown select following the design specification and functional
#19
Continues on this issue
#66
Continues on this issue
#59
Continues on this issue

Closed because don't fit the current project specification


[COEX-395]: prima-elm-extra - CI

https://prima-assicurazioni-spa.myjetbrains.com/youtrack/issue/COEX-395
umami PR: https://github.com/primait/umami/pull/2415

need to merge umami PR first so drone is not required


CU-85zrynwb8_Solve-Backend-Code-Smells

Fetch modifications from master branch

Task linked: CU-85zrynwb8 Solve Backend Code Smells


Voucher Number for both type shows same RV5

Issue Fixed @EasyBizCare
You can check this issue with new organization


Use std library for byteorder.

This is (part of) an attempt to help bringing the ldap3 crate more up-to-date with the rest of the rust community.
The external byteorder crate is no longer needed, since std integer types provides to_be_bytes() and similar methods since rustc 1.32.

Thanks for the PR, and sorry for the delay. As you see, recent changes have scrambled the diffs. If you're still interested, could you try reworking the PR against the new code? I see that you've been changing the internals of integer encoding, and I'm always apprehensive about touching that code, although I know it's ancient and ripe for a rewrite.


helm-locker TLS handshake timeout - failed to update lock

INFO[48281] applied cattle-monitoring-system/rancher-monitoring
E0415 08:42:35.218052    4898 leaderelection.go:367] Failed to update lock: Put "https://ronhead2.qa.rancher.space/k8s/clusters/c-k56pq/api/v1/namespaces/cattle-helm-system/configmaps/helm-locker-lock": net/http: TLS handshake timeout
Saw this this morning.

This seems like an ephemeral error that may not be consistently reproducible, but I will try to reproduce it if I have time before release!
I would consider this a low-priority issue though unless it can be consistently reproduced in a given setup; it may also have to do with the nature of testing via a binary on your local machine as opposed to a Helm chart deployment.

Closed in favor of https://github.com/rancher/helm-locker/issues/5


feat: add python 3.10 support

Summary
Update substratools Docker image to the new one using new Ubuntu LTS (22.04) and supporting Python 3.10.
Companion PR

https://github.com/Substra/substra/pull/316
https://github.com/Substra/substra-tools/pull/68
https://github.com/Substra/substrafl/pull/49
https://github.com/Substra/substra-tests/pull/230

Thanks for the PR!

Could you please add that we now support Python 3.10 here --> https://docs.substra.org/en/latest/substrafl_doc/substrafl_overview.html?highlight=3.9#installation
Did you manage to test that at least one the three examples work in Docker mode to validate the new DockerFiles? (sorry I won't have time to test if before I am OFF).

Don't forget Romain's comment before merging

Thanks for the PR!
* Could you please add that we now support Python 3.10 here --> https://docs.substra.org/en/latest/substrafl_doc/substrafl_overview.html?highlight=3.9#installation

* Did you manage to test that at least one the three examples work in Docker mode to validate the new DockerFiles? (sorry I won't have time to test if before I am OFF).

Tested against 3 examples:

titanic
sklearn_fedavg
torch_fedavg


version command for mobile

@Oscar-Pepper I think you can safely close this PR, @zancas merged the solution in both repos... Thanks though.


Question: limits based on plans?

Hey Aldeed
Thanks for sharing the package, I was wondering if you ever needed to introduce limits based on plan for example free plan can add 5 rss feeds while pro plan has limit of 15 rss feeds.
If you did how did you organise it? Extend the plan object with extra function checks? I'm having manual checks at the methods for now. Love to get some ideas maybe there is a package for it? Couldn't find any.
Thank you

This package only handles figuring out what plan the user is on based on outside subscriptions. Not the limit or feature switch logic. So yes, you should be doing your own check in the method, checking if AppPlans.has('pro') when they try to add a feed and their feed count is already 5 or more.


updated todo list

Thanks! I can pretty much get rid of the todolist since I changed it to use GitHub issues instead. Still will merge.


:feet: When filter vms by host, make the host selection options instead of free text input

Issue:
When filtering vms by host, a user need to write the name of the host using free text, we should allow easier way to select between hosts.
When filter vms by host, make the host drop-down or type-ahead input instead of free text input
Sub tasks:

Make host selector use options - vmware provider
Make host selector use options - ovirt provider

addressed by #1274 and #1275


libjxl fails to compile on armv7

hey everyone,
I got these build errors when compiling libjxl on armv7:
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10974:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_f32(float32_t*, float32x4_t)’: target specific option mismatch
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10974:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_f32(float32_t*, float32x4_t)’: target specific option mismatch
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10974:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_f32(float32_t*, float32x4_t)’: target specific option mismatch
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10974:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_f32(float32_t*, float32x4_t)’: target specific option mismatch
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10974:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_f32(float32_t*, float32x4_t)’: target specific option mismatch
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/10.4.0/include/arm_neon.h:10995:1: error: inlining failed in call to ‘always_inline’ ‘void vst1q_u32(uint32_t*, uint32x4_t)’: target specific option mismatch

I tried to export -DJPEGXL_FORCE_NEON=ON , without success.
I'm forced to use system highway with neon enabled, as it won't compile without neon optimizations. I checked out and compiled it at the exact same commit you're using ( https://github.com/google/highway/tree/22e3d7276f4157d4a47586ba9fd91dd6303f441a )
anything else I can try to config, or is this a bug?
Environment

OS: Linux x86_64 host, armv7a target
Compiler version: gcc-10.4.0
CPU type: x86_64 host, armv7a target

What happens if you use -DHWY_CMAKE_ARM7=ON ?

I think this is the option I have to pass along to system highway, but I gave it a try anyway:
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/src/Transform_inl.h:158:26: error: ‘float16x4_t’ was not declared in this scope; did you mean ‘bfloat16x4_t’?
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/src/Transform_inl.h:158:12: error: ‘vcvt_f32_f16’ was not declared in this scope; did you mean ‘vcvt_f32_bf16’?
/var/tmp/portage/media-libs/libjxl-9999/work/libjxl-9999/third_party/skcms/src/Transform_inl.h:187:17: error: ‘vcvt_f16_f32’ was not declared in this scope; did you mean ‘vcvt_bf16_f32’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:342:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:342:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:346:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:346:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:443:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:443:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:447:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:447:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:544:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:544:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:548:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:548:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:624:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:624:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:687:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:687:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:728:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:728:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:728:45: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:728:57: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:750:15: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:750:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:750:45: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:750:57: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:870:56: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:870:68: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:871:46: error: request for member ‘raw’ in ‘v’, which is of non-class type ‘int’
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:980:19: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:980:31: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:980:54: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:980:69: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:982:17: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:982:29: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2698:16: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2698:28: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2698:41: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2698:56: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2699:42: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/shared-inl.h:200:7: error: ‘int’ is not a class, struct, or union type
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2702:17: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2702:29: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2702:47: error: no matching function for call to ‘LoadU(const int&, const short unsigned int* const&)’
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2874:28: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2874:40: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2874:50: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2874:65: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2875:21: error: ‘float16_t’ has not been declared
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:2878:39: error: request for member ‘raw’ in ‘v’, which is of non-class type ‘int’
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3034:46: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3034:58: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3035:63: error: request for member ‘raw’ in ‘v’, which is of non-class type ‘const int’
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3035:40: error: ‘vreinterpret_f16_u16’ was not declared in this scope; did you mean ‘vreinterpret_bf16_u16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3035:27: error: ‘vcvt_f32_f16’ was not declared in this scope; did you mean ‘vcvt_f32_bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3040:49: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3040:61: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3041:63: error: request for member ‘raw’ in ‘v’, which is of non-class type ‘const int’
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3041:40: error: there are no arguments to ‘vreinterpret_f16_u16’ that depend on a template parameter, so a declaration of ‘vreinterpret_f16_u16’ must be available [-fpermissive]
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3162:16: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3162:28: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3162:46: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3162:55: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3164:17: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3164:29: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3164:52: error: ‘vcvt_f16_f32’ was not declared in this scope; did you mean ‘vcvt_bf16_f32’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3164:31: error: ‘vreinterpret_u16_f16’ was not declared in this scope; did you mean ‘vreinterpret_u16_bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3167:16: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3167:28: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3167:44: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3167:59: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3169:9: error: ‘float16x4_t’ does not name a type; did you mean ‘bfloat16x4_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3170:17: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3170:29: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3170:52: error: ‘f16’ was not declared in this scope
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/ops/arm_neon-inl.h:3170:31: error: there are no arguments to ‘vreinterpret_u16_f16’ that depend on a template parameter, so a declaration of ‘vreinterpret_u16_f16’ must be available [-fpermissive]
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:259:19: error: ‘__fp16’ does not name a type; did you mean ‘__bf16’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:18: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:480:27: error: template argument 1 is invalid
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:502:18: error: ‘float16_t’ does not name a type; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:25: error: ‘float16_t’ was not declared in this scope; did you mean ‘bfloat16_t’?
/usr/armv7a-unknown-linux-gnueabihf/usr/include/hwy/base.h:602:16: error: template-id ‘IsSigned<<expression error> >’ for ‘constexpr bool hwy::IsSigned()’ does not match any template declaration

full build log: libjxl.log.gz

The error seems to be that we are using __fp16 although it is not supported by the compiler.
The code governing this decision is #if ((HWY_ARCH_ARM_A64 || (__ARM_FP & 2)) && HWY_COMPILER_GCC).
HWY_COMPILER_GCC can be expected to be true, but the others shouldn't be. Here's a (failed) repro with what HWY_ARCH_ARM_A64 expands to: https://gcc.godbolt.org/z/oPTf5W8Wz
As expected, __fp16 is not used there. Any ideas whether/why the above #if evaluates to true?

fixed in: https://github.com/google/highway/commit/dc63f813c465f3bf95cb5b98f01aeed28b81173c
Can you please cherry pick the fix into your internal highway, or update the internal highway to include this commit?
thank you

thanks, lets watch the fireworks!

@novomesk do care to pull in the fix for highway-1.0.1-r1 and highway-1.0.3? Both versions with and without neon are fixed now with this fix.

@stefson Do you mean that with the patch, the -DHWY_CMAKE_ARM7=$(usex cpu_flags_arm_neon) will be not needed? Or it is still good to keep?

No you shall absolutly keep the neon option, but without neon is now unbroken. And, more important, libjxl now compiles against the fixed system highway, on armv7.

@stefson I prefer that you prepare the PR for Gentoo, because I do not have Gentoo with arm, I can't test it.
I suggest to leave 1.0.1 as it is and add the patch only to the new highway-1.0.3-r1.ebuild


Adding images

Two separate commits here for easier code review:

Cleanup of relevant files
Adding image support based on first name and last name

Mihail, I went through this carefully as I was trying to learn the rules you use as I will try to use them as well. It seems as you prefer

deep rather than wide statements
No space around import {} brackets
single quotes '
=== vs ==
const whenever possible

I will try to work the way you worked with making cleanup changes first and then the code changes. However, for the current changes made under duress and pressure, I will delay the cleanup.

I basically tried to export/import our internal conventions into my IDE and ended up with the cleanup. It's not 100% matching our internal style guides, but pretty close. HTML is not formatted quite the way I want (needs a 4-space line indent rather than 2 on attributes/properties), but I don't want to tinker too much with it right now.
Yes those are few of the rules, #2-5 match up with our internal conventions and avoiding long lines is a good practice for better readability. A long line forces reader to read almost completely from left to right to find what you're looking for, but by limiting to only a couple of "concepts" on a single line allows to more quickly "visually parse" the logic, plus it makes it easier to diff changes in PR across multiple lines v.s. one long line, and easier to see history of who changed which line last.

Scrapping this PR, having too much trouble resolving the merge conflicts and it's faster to just do a clean change from scratch.


chore: Update dependabot limits

https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#open-pull-requests-limit

To avoid missing some major updates like it happened with blog.. gatsby from 2 to 4


Allow vmapping all_to_all and implement a (slow) CPU and GPU translation

This allows pmapping vmapped computations that use all_to_all or
pswapaxes inside. It also includes a very slow CPU and GPU translation
rule that might be useful for debugging programs locally, since XLA only
implements the AllToAll collective on TPUs.
Fixes #4141.

Bump on this.


mitmproxy in 'transparent' mode fails to get host name using 'showhost' option

Problem Description
https://github.com/mitmproxy/mitmproxy/issues/4739
I am using mitmdump in transparent mode, but all the host names are displayed by IP address, so when I used the showhost option, the host names are displayed for some hosts but not for Instagram app on Android.
This is probably because the Host header is not present.
We need an alternative.
<IP_ADDRESS>:55042 <- tcp <- <IP_ADDRESS>:443
<IP_ADDRESS>:55042 <- tcp <- <IP_ADDRESS>:443
<IP_ADDRESS>:55042 -> tcp -> <IP_ADDRESS>:443
<IP_ADDRESS>:55042 -> tcp -> <IP_ADDRESS>:443
<IP_ADDRESS>:55042 -> tcp -> <IP_ADDRESS>:443
<IP_ADDRESS>:55042 <- tcp <- <IP_ADDRESS>:443
<IP_ADDRESS>:55042 <- tcp <- <IP_ADDRESS>:443

Steps to reproduce the behavior:

Start Mitmproxy in transparent mode.
Send a request that is missing the Host header.

System Information
Mitmproxy: 10.4.2
Python:    3.10.15
OpenSSL:   OpenSSL 3.3.2 3 Sep 2024
Platform:  Linux-6.8.0-45-generic-x86_64-with-glibc2.39

The operating environment redirects access from OpenVPN using NAT in iptables.
Client -> OpenVPN -> Mitmdump -> Server

If there is no host header and no TLS SNI, where should mitmproxy take the host name from?

Could there be no alternative?
I can't think of any other place where the host name is written in the request information.
If not, does Wireguard have the same problem?
Do I have to connect directly to the proxy?

All transparent modes have this problem, including WireGuard. If we get no host header and no SNI, the best thing we could maybe do is guess based on DNS lookups. But we really don't want to guess, because that can be super deceiving.

There may be no Host header but an Origin header. In that case, can you handle it?

www.instagram.com has no Host header and does not show requests
However, even though the Host and Origin headers are not present in x.com, the request appears.
What does this mean? Is the technology called SNI related?


Removed repetitive transparency assignment from secondary and tertiary button classes

Fix #494
The buttons have a transparent background assigned by the .pf-c-button class. I removed the extra background transparency assignment from the secondary and tertiary styles, now they inherit the background transparency from the .pf-c-button class.

Deploy preview for pf-next ready!
Built with commit 369304185b27f4a42dbf5ddccabdf5c8a3f5fd02
https://deploy-preview-624--pf-next.netlify.com


UI tweaks

Fix some spelling to make 'Analyse' consistent across BoneJ (using the 'z' spelling for Ignacio's original AnalyzeSkeleton, but Analyse for BoneJ's wrapper).

Use the imagej.net/plugins/bonej URL format as far as possible for user docs.

Add Help buttons to plugins' dialogs, which point to imagej.net/plugins/bonej sections.

Partially addresses #295

Close this for now - Help buttons in IJ2 enforce a dialog pop-up even when in headless / scripting mode.


Allow custom ExecutorService to be supplied to the Loader

I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks!

Internal review has suggested taking Executor instead of ExecutorService, and therefore avoiding shutting down an externally-provided ExecutorService. I've made this change.


[9.x] Ability to disable route scope bindings

Per the docs:

When using a custom keyed implicit binding as a nested route parameter, Laravel will automatically scope the query to retrieve the nested model by its parent using conventions to guess the relationship name on the parent

The problem is that there are situations where the models are unrelated, but we would still prefer to use a custom key.
Consider an eCommerce app with the route stores/{seller}/{category:slug}; a seller store can be browsed by category, but the$seller->categories relationship does not exist, because categories are shared amongst all sellers.
I came across another completely different use case here.
The two workarounds i've found are:

define a custom route parameter like categoryForStore and have that query remove the parent/child scope
pass the scope_bindings attribute manually like Route::get('foo', ['uses' => ..., 'scope_bindings' => false] (UPDATE - actually providing a false value to scope_bindings only started working with this PR due to the change to this if statement: https://github.com/laravel/framework/pull/44528/files#diff-614b34c8eaac77de1d4faf100a7133e526cfe1350ce4f02e9f60c24a88179c77L49)

This PR provides a more fluent withoutScopeBindings() method which disables child parameter scoping logic. It does this by setting scope_bindings to false in the route $action array, and then checking whether scope bindings has been disabled in the ImplicitRouteBinding class.
This shouldn't break anything, because scope_bindings can only be set using ->scopeBindings() on the route, so by internally checking whether it is set first, we can ascertain whether the user is explicitly wanting to modify the behaviour of scope bindings.
With this change, the store route above can now be defined as:
Route::get('stores/{seller}/{category:slug}', ShowStoreComponent::class)
    ->name('stores.show')
    ->withoutScopeBindings();

I also believe I fixed a bug, which was a reference to scoping instead of scope_bindings in an integration test; I couldn't find any reference to a scoping attribute anywhere in routing.

I like the fluent addition. And I think there is more good and no harm on this addition.
But, from the current alternatives you listed as a justification, there are other already clean options you might not be aware of.
If Category is always routable by its slug field, you can add this method to the Category class:
public function getRouteKeyName()
{
    return 'slug';
}

Then in the routes you want to have scoped binding, you can keep using {category:slug}. But for routes you don't want it you can just use {category} and it will use the slug field by default, while not scoping it to any parent model.
reference: https://laravel.com/docs/9.x/routing#customizing-the-key
Another one, similar to your first bullet item, is to use explicit binding.
I am listing it here due to the final part of the item, where you say "...and have that query remove the parent/child scope". This statement didn't make it clear to me if you were referring to explicit binding, please apologize if I misunderstood it.
Add this to the beginning of  your RouteServiceProvider@boot method:
Route::model('categoryBySlug', fn($value) => Category::firstWhere('slug', $value));

Then, just for completeness, you can use the {categoryBySlug} route parameter and have this custom resolution logic applied.
reference: https://laravel.com/docs/9.x/routing#explicit-binding

thanks @rodrigopedra, I did consider both of those options and still felt this addition is more useful overall.

public function getRouteKeyName()
{
    return 'slug';
}

I find hardcoding this in the model to be limiting / requiring other workarounds downstream. For example, a web app would typically want to use slug, whereas the API would typically want to use id.

Route::model('categoryBySlug', fn($value) => Category::firstWhere('slug', $value));

I agree this is pretty easy, but it is not as easy / obvious as specifying a custom key in the route. The other annoyance (unless i'm missing something) is that public function __construct(Category $category) now must be public function __construct(Category $categoryBySlug).

The other annoyance (unless i'm missing something) is that public function __construct(Category $category) now must be public function __construct(Category $categoryBySlug)

Indeed, parameter name should match when using explicit binding, which is an annoyance.


Fix wrong week calculations due to dayjs bug

Description
Replaces usage of dayjs objectSupport with ISO strings due to the dayjs timezone library not properly converting the timezones with objects.
See this comment for more details.
Steps to verify/test this change:
Run locally. Switch system time zone to UTC. Switch system date & time to check edge cases (start & end of week, start & end of finals week, fall quarter).
Final Checks:

[ ] Verify successful deployment
[ ] Delete branch

(optional)

[ ] Write tests
[ ] Write documentation

I used day.js rather than the JavaScript Date class since JavaScript's Date class lacks proper time zone support. There is no good way to construct Dates in a certain time zone, convert between time zones, or get/adjust the day of the week in another time zone. I discovered existing JavaScript classes/methods such as Intl but none of them seemed to do exactly what I needed. I thought it would be as easy to implement my own solution as adding/subtracting 8 hours to go between PST and UTC but then I discovered issues such as daylight savings time which starts/ends on a different date every year so it seemed like the better solution to use an existing library rather than implement my own solution or messy workaround.


Can we have pictures and images in the tutorial?

The page such as https://docs.microsoft.com/en-us/sql/integration-services/lesson-1-2-adding-and-configuring-a-flat-file-connection-manager?view=sql-server-2017 and https://docs.microsoft.com/en-us/sql/integration-services/lesson-1-6-adding-and-configuring-the-lookup-transformations?view=sql-server-2017 can be better understand with pictures in them. I have actually tried to capture and upload the pictures to the media folder, but I have no enough permission to do so. Maybe the content owner should consider that.
This is more like a request than an issue.

@rothja Hi Jason, Janine Zhang is nominally the owner of these docs/integration-services/ articles, but your team might be the only team that will consider making these kinds of documentation enhancements (such as Add Screenshot Images)?  Or ask Janine.
Each of these articles is popular, with lots of pageviews.
If due to your team's heavy workload, your team does not have the resources to make these enhancements, then please briefly mention that and then close this Issue #2654 .
Thanks. G
cc: @janinezhang

While your request is reasonable, for existing SSIS customers this document does provide sufficient steps to follow, and I don't have bandwidth to enhance this doc.

@chanmmn This Issue #2654 suggests a documentation enhancement, by the addition of screenshots.
This is a reasonable idea. However, there are reasons why we sometimes need to avoid screenshots or minimize our use of screenshots. Screenshots go out of date, and maintaining them all may not be plausible given the huge amount of work we already have.
For now, we have decided not to add screenshots to this article.
I am now Closing this Issue. The @ notification mechanism continues to work even after an item is Closed, in case further communication is needed.
Thank you for submitting this Issue. We hope to hear from you again.
cc: @janinezhang


[Map] DM-ArroganceBETA

Hash: 63d7b1552fdc513390245cc530711fbb6063cc92
Current name: DM-ArroganceBETA
According to the readme, the author is {S.o.W}DeathMask

Updated


Improve slide-toggle text label

Bug, feature request, or proposal:
Proposal
What is the expected behavior?
The text of the slide-toggle should wrap or be ellipsed like md-checkbox.
What is the current behavior?
The label push de content out of its parent.
What are the steps to reproduce?
Demo: http://plnkr.co/edit/MZ3fzeJKCyBvGIBphl2P?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular/material: 2.0.0-beta.6-0aaeb69
Is there anything else we should know?
¿Remove white-space: nowrap?

I think there was a reason why we didn't do that. I will try to figure out why.

The reason I didn't add the text ellipsis to the slide-toggle was that the label of the slide-toggle does have a dynamic width (and therefore the ellipsis couldn't work properly)
There are workarounds for flexbox containers to properly show a text ellipsis.
.mat-slide-toggle-label {
  flex: 1;

  * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@jelbourn Do you think we should do something like that? I feel like it's not good to reach out of the components view (with the CSS selector)

Why does it have a dynamic width?

Because the slide-toggle adjusts its with depending on the content (specified from the user)
This seems to be an issue with FlexBox elements (while it works with inline block for example)

Seems that as of PR #6674 this is the intended behaviour for both mat-checkbox and mat-slide-toggle. Is there an "official" way to enable text wrapping or ellipsising for these components?