text:
Design 2nd degree transformer, and related composition patterns for kernel learners and distance learners

As discussed in #5

Implemented here?
https://github.com/goastler/sktime-kernels/blob/master/sktime/transformers/kernels.py
Looks nice, @goastler !

ok, based on discussion on slack, here's a generic design and how it should interact with pipeline composition and tuning

slightly modified from #5 since decided to not use xpandas
Part 3. Pairwise transformer aka degree 2 transformer.
should be a class with parameters, attributes, methods.
Does not use abstract base class. Inherit from sklearn.BaseEstimator, or transformer
Parameters - private variables. Correspond to "hyper-parameters" to be set or tuned. Like in supervised estimator.
Attributes - private variables. Correspond to "model parameters" set by the fit method. Not to be set by the user or via an interface.
Constructor _ _ init _ _
arguments: all parameters, explicitly, with sensible default setting.
behavior: Sets self.parameters to the values provided.
public method fit
arguments:
X - a pandas data frame. no default.
optimal argument:
sample_weight - a vector of weights, equal length to X.
behavior:
fits model and stores it in attribute variables. May access but not modify parameters.
public method transform
arguments:
X - an pandas data frame. no default. Column headers and types should be the same as of fit's X argument
Xnew - a pandas data frame. no default. Column headers and types should be the same as of fit's X argument
optimal argument:
sample_weight - a vector of weights, equal length to X.
behavior:
Returns an named 3D array K. First dimension is indexed by rows of X. Second dimension is indexed by rows of Xnew. Third dimension is indexed, with transformed columns having headers defined by the transformer.
May access attributes and hyper-parameters. May not modify attributes and hyper-parameters.
public method get_params
arguments:
deep - a boolean indicating whether parameters of nested estimators should be returned
behaviour:
returns string -> value dictionary of parameters, following the sklearn naming convention (nested estimators' parameters by < estimatorname >__< parametername >, returned if and only if deep = true)
public method set_params
arguments:
string -> value dictionary of parameters, following the sklearn naming convention (nested estimators' parameters by < estimatorname >__< parametername >)
behaviour:
sets parameters, and nested parameters if provided, to the values as defined by the dictionary mapping

The counterpart of this, in composition is a "distance method", or "kernel method".
Part II: kernel/distance methods
params etc are all the same as in the estimator design (as above)
public method fit_deg2
arguments:
K - a matrix or xarray of size (N x N), e.g., a kernel or distance matrix. no default.
optimal argument:
sample_weight - a vector of weights, length N.
behavior:
fits model and stores it in attribute variables. May access but not modify parameters.
public method pred_deg2
kappa - a matrix or xarray of size (N x Nnew), e.g., a cross-kernel or cross-distance matrix. no default.
optimal argument:
sample_weight - a vector of weights, length Nnew.
behavior:
returns model predictions, a data frame or vector of length Nnew

Composition pattern 1: pipeline
this would be realized by a class that inherits from estimator and behaves like whatever is at its end, usually a supervised kernel learner. I explain the below for the supervised learning case, the other cases are analogous (by dispatch)
Class pipeline_deg2
private variable trafo
private variable estim
Constructor _ _ init _ _
arguments: an instance of a descendant of transformer_deg2, and and instance of an appropriate descendant of estimator (plus mixin). estim needs to be a kernel/distance learner
behavior: stores the transformer as self.trafo and estimator as self.estim
public method fit
arguments:
X - a pandas data frame. no default.
y - a pandas data frame, of equal length. no default.
optional argument:
sample_weight - a vector of weights, equal length to X.
behavior:
trafo.fit(X)
K = trafo.transform(X)
estim.fit_deg2(K,y)
public method predict
arguments:
Xnew - a pandas data frame.
optional argument:
sample_weight - a vector of weights, equal length to Xnew.
behavior:
returns estim.pred_deg2(trafo.transform(Xnew))

Composition pattern 2: tuning
the composition
pipeline_deg2(mykernel(params),mysupkernellearner(moreparams))
is a supervised learner, with get_params/set_params accessing a joint parameter set - some coming from the kernel, some coming from the kernel learner.
This can now be passed to vanilla GridSearchCV, that is
GridSearchCV(pipeline_deg2(mykernel(params),mysupkernellearner(moreparams)), tuneparams)
being a tuned kernel learner that behaves like a supervised learner, e.g., classifier or regressor.

Composition pattern 3: kernel/distance learner composition
Factoring out the kernel as an object in its own right enables composition of such objects in their own right, such as:

multiple kernel learning
self-tuning kernels/distances
kernel reduction, i.e., building a kernel for sequences/series from a kernel for primitives, such as done in the string kernels, time warping kernels, etc

The generic pattern for such reduction is the compositional one:
myMKL([kernel1trafo(),kernel2trafo(), ..., kernelNtrafo()])
could be the degree 2 transformer that is the kernel mixture of the N component kernels and automatically fits the mixture parameters on the training data
Or, myDynamicTimeWarpingKernel(PrimitiveKernel(params),moreparams), and so on.

Minor comment: as composition operations become more complex, especially when used multiple times. Any opinions about operator overloading for pipeline/composite construction?

looking at @goastler's code, I think it's actually smart to combine the more heavy 2nd degree transformers with kernel functions and the current construction (or even a factory) pattern that makes transformers out of kernel functions (which already exists within @goastler's code).
I.e., have a class Kernel (aka "KernelFromKernelFunction") which is a 2nd degree transformer and which you construct with a kernel function. Of course not all 2nd degree transformers are of this type, but vanilla kernels will be.

Interesting. Tell me more about it
(continuing from #388 here since there it's off-topic)

@moradisten, many time series (classification) methods rely on a distance or kernel, in the way that it's a composite of the choice of kernel/distance and the method that computes distance/kernel matrices.
Therefore kernels and distances are natural encapsulation and abstraction points in the sense of a template pattern.
A concrete distance method would be a composite, following the sklearn estimator composition formalism.
Having a way to construct a method in the way Knn(MyFavouriteDistance(param1 = 2), k=4) with components all estimators would be great.

Seems pretty interesting. In fact, My research was focused on DTW distance
measure, but I wanted to explore more distance measures like WDTW, DDTW o
LCSS. So, that would be interesting to research and implement. But, I'd
have to study sklearn a little bit more so I can understand the composition
formalisms
El vie., 4 sept. 2020 a las 16:09, fkiraly (notifications@github.com)
escribió:

Interesting. Tell me more about it
(continuing from #388
https://github.com/alan-turing-institute/sktime/issues/388 here since
there it's off-topic)
@moradisten https://github.com/moradisten, many time series
(classification) methods rely on a distance or kernel, in the way that it's
a composite of the choice of kernel/distance and the method that computes
distance/kernel matrices.
Therefore kernels and distances are natural encapsulation and abstraction
points in the sense of a template pattern.
A concrete distance method would be a composite, following the sklearn
estimator composition formalism.
Having a way to construct a method in the way Knn(MyFavouriteDistance(param1
= 2), k=4) with components all estimators would be great.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alan-turing-institute/sktime/issues/52#issuecomment-687168589,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEHQFDUO33GMR6RPINNC4DSEDYH5ANCNFSM4HLIAZIQ
.

But, I'd
have to study sklearn a little bit more so I can understand the composition
formalisms

For learning, I recommend:

implement some "simple" estimators, e.g., your favourite proximty forest, and make a pull request
study how composition works in sklearn, in particular BaseEstimator and why you can see parameters of components of a pipeline via get_params
understand the gaussian_process module in sklearn, particularly how the Kernel class and its children work

Alright, perfect. I'll see what I can do :)
El sáb., 5 sept. 2020 a las 18:24, fkiraly (notifications@github.com)
escribió:

But, I'd
have to study sklearn a little bit more so I can understand the composition
formalisms
For learning, I recommend:

implement some "simple" estimators, e.g., your favourite proximty
forest, and make a pull request
study how composition works in sklearn, in particular BaseEstimator
and why you can see parameters of components of a pipeline via
get_params
understand the gaussian_process module in sklearn, particularly how
the Kernel class and its children work

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alan-turing-institute/sktime/issues/52#issuecomment-687632060,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEHQFGFLJ4WYEY7JAM5E43SEJQ2VANCNFSM4HLIAZIQ
.

@moradisten, great, let us know if/when/once you are interested to work on this.

Sure, I can start now that I'm on vacation right now. I just want to know
how you work and the steps you follow so that I we can have good
synchronization :)
El lun., 7 sept. 2020 a las 18:01, fkiraly (notifications@github.com)
escribió:

@moradisten https://github.com/moradisten, great, let us know
if/when/once you are interested to work on this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alan-turing-institute/sktime/issues/52#issuecomment-688410814,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEHQFA7EK6VCYAKHSQDWUTSET7XDANCNFSM4HLIAZIQ
.

authors: fkiraly mloning moradisten

repo: alan-turing-institute/sktime


text:
[ENH] add missing fit parameters to statsmodels Holt-Winters exponential smoothing interface

This PR adds parameters of statsmodels.tsa.holtwinters in fit as loopthrough to sktime's ExponentialSmoothing interface.
So far, only the constructor parameters were accessible, not the parameters in fit.
Solves #1845.

when pip installing sktime 0.9.0 I still don't see the new params in ExponentialSmoothing
`Downloading sktime-0.9.0-cp38-cp38-macosx_10_15_x86_64.whl
class ExponentialSmoothing(_StatsModelsAdapter):
    """Holt-Winters exponential smoothing forecaster.

    Default settings use simple exponential smoothing without trend and
    seasonality components.

    Parameters
    ----------
    trend : {"add", "mul", "additive", "multiplicative", None}, default=None
        Type of trend component.
    damped_trend : bool, default=False
        Should the trend component be damped.
    seasonal : {"add", "mul", "additive", "multiplicative", None}, default=None
        Type of seasonal component.Takes one of
    sp : int or None, default=None
        The number of seasonal periods to consider.
    initial_level : float or None, default=None
        The alpha value of the simple exponential smoothing, if the value
        is set then this value will be used as the value.
    initial_trend : float or None, default=None
        The beta value of the Holt's trend method, if the value is
        set then this value will be used as the value.
    initial_seasonal : float or None, default=None
        The gamma value of the holt winters seasonal method, if the value
        is set then this value will be used as the value.
    use_boxcox : {True, False, 'log', float}, default=None
        Should the Box-Cox transform be applied to the data first?
        If 'log' then apply the log. If float then use lambda equal to float.
    initialization_method:{'estimated','heuristic','legacy-heuristic','known',None},
        default='estimated'
        Method for initialize the recursions.
        If 'known' initialization is used, then `initial_level` must be
        passed, as well as `initial_trend` and `initial_seasonal` if
        applicable.
        'heuristic' uses a heuristic based on the data to estimate initial
        level, trend, and seasonal state. 'estimated' uses the same heuristic
        as initial guesses, but then estimates the initial states as part of
        the fitting process.```

when pip installing sktime 0.9.0 I still don't see the new params in ExponentialSmoothing
`Downloading sktime-0.9.0-cp38-cp38-macosx_10_15_x86_64.whl

@atsangarides, it's not in 0.9.0, only in the current development branch.
As such, it is scheduled to appear in the next MINOR release (0.10.0 probably), but won't ever be in 0.9.0.
You can use it right now if you follow the install guide for the most recent development version
https://www.sktime.org/en/stable/installation.html
of course there's always a higher risk for bugs compared to the release.

when pip installing sktime 0.9.0 I still don't see the new params in ExponentialSmoothing
`Downloading sktime-0.9.0-cp38-cp38-macosx_10_15_x86_64.whl

@atsangarides, it's not in 0.9.0, only in the current development branch. As such, it is scheduled to appear in the next MINOR release (0.10.0 probably, sometime in the next weeks), but won't ever be in 0.9.0.
You can use it right now if you follow the install guide for the most recent development version https://www.sktime.org/en/stable/installation.html of course there's always a higher risk for bugs compared to the release.

ah, how silly of me! apologies, and thanks for the quick response!

source: gharchive/pull-request

authors: atsangarides fkiraly

license_type: permissive

license_source: github-api


text:
[ENH] option to keep column names in Lag

This PR adds a parameter keep_column_names (default=False) to the Lag transformer, which enables Lag to return the same column names in transform as in the input. This is for avoiding to produce column names lag_x__varname1, lag_x__varname2, etc, if only one lag x is input.
The default is False and not True according to the reasoning in the recent https://github.com/alan-turing-institute/sktime/pull/3261 which made the defaults consistent.
The use case for not having too long variable names is in cases where we lag twice, or the lagging happens internally in another estimator, such as the reduction prototypes: https://github.com/alan-turing-institute/sktime/pull/3333
FYI, what do you think, @KishManani?

Looks good to me!

authors: KishManani fkiraly


text:
No devices

I have a Electrolux washer and a Electrolux dryer but the integration reports that there are "no devices or entities":

Washer model: EW8F8669Q9
Dryer model: EW9H869E9
I see that the dryer is in the "supported list" but the washer is not. I have enabled debug logging, and have been looking for the log, but must admit I cannot find it, yet.

Log:
Logger: homeassistant.config_entries
Source: config_entries.py:586
First occurred: 11:25:20 PM (1 occurrences)
Last logged: 11:25:20 PM
Error setting up entry torbjorn.nesheim@mac.com for electrolux_status
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/electrolux_status/init.py", line 46, in async_setup_entry
if not await coordinator.async_login():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/electrolux_status/coordinator.py", line 39, in async_login
raise ex
File "/config/custom_components/electrolux_status/coordinator.py", line 32, in async_login
token = await self.api.get_user_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyelectroluxocp/oneAppApi.py", line 128, in get_user_token
token = await self._api_client.exchange_login_user(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyelectroluxocp/oneAppApiClient.py", line 142, in exchange_login_user
response.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1070, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 429, message='', url=URL('https://api.eu.ocp.electrolux.one/one-account-authorization/api/v1/token')

This error originated from a custom integration.
Logger: custom_components.electrolux_status
Source: custom_components/electrolux_status/coordinator.py:38
integration: Electrolux Care Integration V2 (documentation, issues)
First occurred: 11:25:20 PM (1 occurrences)
Last logged: 11:25:20 PM
Could not log in to ElectroluxStatus, 429, message='', url=URL('https://api.eu.ocp.electrolux.one/one-account-authorization/api/v1/token')

source: gharchive/issue

license: MIT


text:
Having trouble building the application once I clone Git Repository.

Hello I get the following output in the console when I right click the build.xml and "Run As" Ant Build:
Buildfile: C:\Users\Saad\git\java-repl\build.xml
build:
update:
clean:
[java] Downloading http://jarjar.googlecode.com/files/jarjar-1.1.jar
[java] Failed to download http://jarjar.googlecode.com/files/jarjar-1.1.jar (java.io.FileNotFoundException: http://jarjar.googlecode.com/files/jarjar-1.1.jar)
BUILD FAILED
C:\Users\Saad\git\java-repl\build.xml:192: The following error occurred while executing this line:
C:\Users\Saad\git\java-repl\build.xml:68: The following error occurred while executing this line:
C:\Users\Saad\git\java-repl\build\shavenmaven.xml:23: Java returned: 1
Total time: 612 milliseconds
Can anyone help point me in the right direction. I am using Windows 10 with a new install of Eclipse Neon. I know the instruction say to run "$ ant" but I'm not sure how to run that in Eclipse.

I think I resolved this issue by removing the old location of the "jarjar-1.1.jar" location by looking at a post in the Pull Requests where lines were changed:
-http://jarjar.googlecode.com/files/jarjar-1.1.jar
+https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jarjar/jarjar-1.1.jar
That's great but now I am getting this issue where I think the manual.zip file under /lib is not able to be accessed. I downloaded the Archive utility for Eclipse but it still only opens in Explorer.exe on my machine and throws the error and the build fails...
Buildfile: C:\Users\Saad\git\java-repl\build.xml
build:
update:
clean:
compile:
BUILD FAILED
C:\Users\Saad\git\java-repl\build.xml:195: The following error occurred while executing this line:
C:\Users\Saad\git\java-repl\build.xml:98: Execute failed: java.io.IOException: Cannot run program "unzip": CreateProcess error=2, The system cannot find the file specified
Total time: 656 milliseconds

windows doesn't have the unzip.exe by default.  I grabbed one off the google and placed it somewhere already denoted in the system PATH variable, and off it went.  At least, until it refused to accept my additional packages I tried to import by default, because I have no real idea how to do what I want and suck at this, but I did get it to move past the unzip command.

Thanks for the workaround @XEROenvy.
Here it is in a single command:
index dcbf914..dca8bec 100644
--- a/build/build.dependencies
+++ b/build/build.dependencies
@@ -2,7 +2,7 @@ mvn:org.hamcrest:hamcrest-core:jar:1.3
 mvn:org.hamcrest:hamcrest-library:jar:1.3
 mvn:junit:junit-dep:jar:4.8.2

-http://jarjar.googlecode.com/files/jarjar-1.1.jar
+https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jarjar/jarjar-1.1.jar

' | git apply

JarJar issue is now resolved.

authors: XEROenvy albertlatacz attheveryend cmantas

repo: albertlatacz/java-repl

license_source: bigquery


text:
Fix setValueForPosition if value is not object or array

Fixes https://github.com/aldeed/simple-schema-js/issues/227.

Thanks @dovydaskukalis. Merged and released in 0.1.4

authors: aldeed dovydaskukalis

repo: aldeed/node-mongo-object

license: mit


text:
🛑 Metasearch is down

In 09b5c97, Metasearch (https://ss.alefvanoon.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Metasearch is back up in 3e8be74.

repo: alefvanoon/Status


text:
🛑 Teddit is down

In cf01046, Teddit (https://teddit.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 1514 ms

Resolved: Teddit is back up in 1fa04e4.


text:
🛑 Bandwidth Hero is down

In 72c0e40, Bandwidth Hero (https://bh.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 112 ms

Resolved: Bandwidth Hero is back up in 9f5bd53.


text:
🛑 Piped-API is down

In e60ed9b, Piped-API (https://piped-api.alefvanoon.xyz/trending?region=US) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Piped-API is back up in 89d0e82.


text:
Fix SnowflakesLayer intermittent crash on gate noise size of 0.

Found that SnowFlakesLayer will occasionally crash as a result of the gate_noise size being zero (ultimately deriving from a value sampled from flake_size). The fix in this PR is to force a minimum size of (1, 1) for the gate_noise.
The following code reproduces the issue:
import imgaug as ia

snow = ia.augmenters.weather.Snowflakes(
  flake_size=(0.5, 1),
  speed=(0.003, 0.03)
)

image = ia.quokka(size=(512, 512))

for i in range(1000):
    image_aug = snow.augment_image(image)
print("done")

The error output is:
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-1-29d7554150ca> in <module>
      9
     10 for i in range(1000):
---> 11     image_aug = snow.augment_image(image)
     12 print("done")

/workspace/code/imgaug/imgaug/augmenters/meta.py in augment_image(self, image, hooks)
    712             "Expected image to have shape (height, width, [channels]), "
    713             "got shape %s." % (image.shape,))
--> 714         return self.augment_images([image], hooks=hooks)[0]
    715
    716     def augment_images(self, images, parents=None, hooks=None):

/workspace/code/imgaug/imgaug/augmenters/meta.py in augment_images(self, images, parents, hooks)
    778             UnnormalizedBatch(images=images),
    779             parents=parents,
--> 780             hooks=hooks
    781         ).images_aug
    782

/workspace/code/imgaug/imgaug/augmenters/meta.py in augment_batch(self, batch, parents, hooks)
    598                     random_state=self.random_state,
    599                     parents=parents if parents is not None else [],
--> 600                     hooks=hooks)
    601
    602         # revert augmentables being set to None for non-activated augmenters

/workspace/code/imgaug/imgaug/augmenters/meta.py in _augment_batch(self, batch, random_state, parents, hooks)
   3295                         batch_sub,
   3296                         parents=parents + [self],
-> 3297                         hooks=hooks
   3298                     )
   3299                     batch = batch.invert_subselect_rows_by_indices_(active,

/workspace/code/imgaug/imgaug/augmenters/meta.py in augment_batch(self, batch, parents, hooks)
    598                     random_state=self.random_state,
    599                     parents=parents if parents is not None else [],
--> 600                     hooks=hooks)
    601
    602         # revert augmentables being set to None for non-activated augmenters

/workspace/code/imgaug/imgaug/augmenters/weather.py in _augment_batch(self, batch, random_state, parents, hooks)
    832         rss = random_state.duplicate(len(images))
    833         for i, (image, rs) in enumerate(zip(images, rss)):
--> 834             batch.images[i] = self.draw_on_image(image, rs)
    835         return batch
    836

/workspace/code/imgaug/imgaug/augmenters/weather.py in draw_on_image(self, image, random_state)
    881         noise = self._gate(noise, gate_noise, self.gate_noise_size, rss[1])
    882         noise = ia.imresize_single_image(noise, (height, width),
--> 883                                          interpolation="cubic")
    884
    885         # apply a bit of gaussian blur and then motion blur according to

/workspace/code/imgaug/imgaug/imgaug.py in imresize_single_image(image, sizes, interpolation)
   1600
   1601     rs = imresize_many_images(
-> 1602         image[np.newaxis, :, :, :], sizes, interpolation=interpolation)
   1603     if grayscale:
   1604         return rs[0, :, :, 0]

/workspace/code/imgaug/imgaug/imgaug.py in imresize_many_images(images, sizes, interpolation)
   1458         "width and/or number of channels of zero. "
   1459         "Observed shapes were: %s." % (
-> 1460             str([image.shape for image in images]),))
   1461
   1462     ip = interpolation

AssertionError: Cannot resize images, because at least one image has a height and/or width and/or number of channels of zero. Observed shapes were: [(0, 0, 1)].

Merged this patch. Thanks for fixing this!

Is there a new release coming soon? I'm currently using a modified copy of imgaug, which is painful when provisioning new machines... :P

Probably soon-ish, I hope within the next two weeks or so.

authors: OliverColeman aleju

repo: aleju/imgaug


text:
Cache and Promse.all

Cache does not work properly, Promise.all() results are undefined and only last one from Promise.all is actually a correct value.

Time to time it works well, sometime You will revived 3 times undefined.
https://codesandbox.io/s/charming-feynman-hxxws
Just change routing, and checked consol logs
All values should be an cached objects, without any undefined.

Interesting. Okay, I will have a look as soon as possible.

Found a fix. Stay tuned

should work in v1.0

authors: alex-cory bartoszgolebiowski

repo: alex-cory/use-http


text:
Resolve column indexes at plan stage

No issue to close
Description

initial restructure to resolve column existence on query planning phase
added ast cargo module
changed Scalar::Binary representation
updated expression evaluation in insert queries
dynamic expression evaluation works only in update queries

Client output
'yes'::boolean cast works again

Pull Request Test Coverage Report for Build 248648728

495 of 774 (63.95%)  changed or added relevant lines in 12 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.06%) to 85.568%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/binary/src/lib.rs
111
115
96.52%

src/query_planner/src/planner/insert.rs
39
45
86.67%

src/ast/src/values.rs
89
101
88.12%

src/ast/src/scalar.rs
27
66
40.91%

src/sql_engine/src/dml/insert.rs
66
106
62.26%

src/ast/src/lib.rs
16
66
24.24%

src/sql_engine/src/dml/update.rs
106
234
45.3%

Files with Coverage Reduction
New Missed Lines
%

src/sql_model/src/sql_types.rs
4
90.0%

Totals

Change from base Build 247538260:
-1.06%

Covered Lines:
6777

Relevant Lines:
7920

💛  - Coveralls

authors: alex-dukhno coveralls

repo: alex-dukhno/database


text:
Support threads and automatic history sync

Threading information is captured, but only basic formatting is done, at
the moment. More thought is needed for the best way of presenting
matches in threaded conversations.
Also improved the gitignore to not include venv files, and removed CRLF
endings in the source files.

Something I'm thinking about, which would be affected by threads, is showing context around the matched entries. ie: showing the X entries before/after the machines lines, or X minutes. Similar to diff context lines. But you want to group the answers by thread, and present it in a way which makes sense to the viewer

In addition to some miscellaneous improvements, this now will use channel.history to automatically fetch gaps in the history. This will work when a channel is added, to pull in any history, but also if the server goes offline. The RTC interface will lose any messages sent while offline, but channel.history will fill the gap.

Hi!
Looks great! I will test it a bit and come back to you.

no, but there should have been a GROUP BY.
please review my latest push.
Thanks
On 31 Jul. 2017 11:18 pm, "Alexander Shpak" notifications@github.com
wrote:

@alex-shpak commented on this pull request.
In archivebot.py
https://github.com/alex-shpak/slack-archive-bot/pull/1#discussion_r130349317
:

message = '\n'.join(map(lambda s: '> %s' % s, line['message'].split('\n')))  # add > before each line

username = get_user_name(line['user'])
timestamp = get_timestamp(line['timestamp'])
if line['thread_timestamp'] is not None:

   thread_timestamp = get_timestamp(line['thread_timestamp'])

   return '*<@%s> <#%s> <!date^%s^{date_short} {time_secs}|date>* <!date^%s^{date_short} {time_secs}|date>*\n %s %s)' % (username, line['channel'], timestamp, thread_timestamp, line['thread_title'], message)

else:

   return '*<@%s> <#%s> <!date^%s^{date_short} {time_secs}|date>*\n%s)' % (username, line['channel'], timestamp, message)

+def update_channel_history(conn):

"""
For each channel we have previously received, check if there are any later messages
which we missed
"""
channels_map = dict(record for record in conn.execute("SELECT channel, MAX(timestamp) as latest_timestamp FROM messages"))

Shouldn't it be DISTINCT(channel)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alex-shpak/slack-archive-bot/pull/1#pullrequestreview-53213682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOcEl2ny02Jkwt8QIInablmYNLa1XMaks5sTdQpgaJpZM4Onfd6
.

authors: alex-shpak nicois

repo: alex-shpak/slack-archive-bot


text:
Question: is there a way to translate the map?

Hi there,
is there a way to get translated maps?
There exists this package: https://github.com/mapbox/mapbox-gl-language.
And it works with the standard mapbox-gl lib:
import mapboxgl from 'mapbox-gl';
import MapboxLanguage from '@mapbox/mapbox-gl-language';

const map = new mapboxgl.Map({
      container: 'map',
      style: 'mapbox://styles/mapbox/streets-v9',
      center: MAP_DEFAULT_LOCATION,
      zoom: MAP_DEFAULT_ZOOM,
    });
map.addControl(new MapboxLanguage())

So is there a way to access the map and add the control some how?
Thanks for helping out!

Hi! This is a duplicate of https://github.com/alex3165/react-mapbox-gl/issues/605, please see the answer there.

authors: bumbus mklopets


text:
alexa smart screen sdk with SSL enabled not working

Briefly summarize your issue:
i have build smart screen sdk on Ubuntu 18.04. SDK versions are smart screen sdk -> 2.2.1 and avs sdk -> 1.20.1. while building SS-SDK, i enabled the SSL with -DDISABLE_WEBSOCKET_SSL=OFF flag. i generated the keys and certs with method given in code base(https://github.com/alexa/alexa-smart-screen-sdk/blob/v2.2.1/modules/GUI/config/certificates/generate.sh). i kept the keys in directory where i ran the sampleApp and given those paths in SmartSmartSDKConfig.json file. when i run the sample app, i don't see the index.html page showing content. it is stuck at "Configuring Device..". Any configuration need to done in GUI components for SSL? and in generate.sh, client cert and keys are genered. How to use them?. i have attached the SmartScreenSDKConfig.json and logs with debug9. i also attached the sample certificate and keys what i generated.
What is the expected behavior?
index.html need to establish a connection and get the content
What behavior are you observing?
html file stuck at "Configuring Device..". In inspect of browser, seen that trying for wss connection.
Provide the steps to reproduce the issue, if applicable:
Build the SS-SDK  with -DDISABLE_WEBSOCKET_SSL=OFF. Generate the keys with specified script. Give path for keys and cert in SmartScreenSDKConfig.json. provide the json while running sampleApp.
Tell us about your environment:
Ubuntu->18.04
smart screen sdk->2.2.1
apl core -> 1.3.3
firefox-> 81.0
What version of the AVS Device SDK are you using?
  1.20.1

Tell us what hardware you're using:

[ ] Desktop / Laptop

Tell us about your OS (Type & version):

[ ] Linux

Have you tried the same use case with AVS Device SDK SampleApp?

[ ] The issue is not applicable to the AVS Device SDK SampleApp.
issueWithSSL_Enable.zip

Please make sure you are following the steps below for enabling ssl:

certificate variables in the SmartScreenSDKConfig.json needs to have full path of the certificates

"websocketCertificateAuthority":"<sdk_directory>/modules/GUI/config/certificates/ca.cert",
"websocketCertificate":"<sdk_directory>/modules/GUI/config/certificates/server.chain",
"websocketPrivateKey":"<sdk_directory>/modules/GUI/config/certificates/server.key"

add certificates to Firefox by following steps below:

In Firefox go to Preferences.
In the left panel, choose Privacy & Security.
Go to Security → Certificates, and click View Certificates.
Under Your Certificates, import client.p12.
Under Authorities, import ca.cert.
Navigate to https://localhost:8933
Select your certificate when prompted

In addition, please refer to security requirements page to get more information: https://developer.amazon.com/en-US/docs/alexa/alexa-smart-screen-sdk/security-requirements.html

Thanks for quick response. it is working after adding client.p12 which i missed.

@zsubas , After adding certificates in chrome browser like above mentioned. it stuck at configuring Device... But same certificates and same build is working fine in firefox. In chrome console, Error message seen,  "WebSocket connection to 'wss://localhost:8933/' failed: WebSocket opening handshake was canceled. i have attached the debug9 logs and screenshot of chrome console.

websocket_ssl.zip

Is it possible to ensure that your certificates are valid? It is a little strange that it works on Firefox but not Chrome.

same certificates i have used in Firefox and it is working fine. i am attaching the certificates which are used for testing. These certificates are generated with generate.sh script provided in alexa smart screen sdk git [ https://github.com/alexa/alexa-smart-screen-sdk/blob/v2.2.1/modules/GUI/config/certificates/generate.sh ]. Is there any specific changes for chrome browser.
cert_amazon.zip

Hello @Jagadish-Bommisetty - Could you please try the following troubleshooting steps:

Ensure that you have used absolute paths when pointing to the certificates  in your SmartScreenSDKConfig.json file
Verify that a dialog pops up on chrome asking you to trust the MMSDK_Client_Cert when you navigate to: https://localhost:8933
In your chromium browser, navigate to Settings -> Advanced->Privacy and Security -> Manage Certificates and select Authorities. Here you should see a certificate by org-Amazon. Please make sure that this cert does not show UNTRUSTED. If it does, Trust the cert and try again

Please let us know if this resolves your issues.

@vkarpuram it is working. In Manage certificates -> your certificates, still showing UNTRUSTED.

Hello @Jagadish-Bommisetty,
That's great to hear. However I highly recommend using your own trusted certificates for your production code. This is just a sample implementation.
Please reach out if you face any additional issues.

authors: Jagadish-Bommisetty lynx-arul vkarpuram zsubas

repo: alexa/alexa-smart-screen-sdk


text:
Alias as Item Name on all queries

Describe the bug
Alias from Stats, Gauge, Time Series and every plugin brings "Host":"Item" names
Expected behavior
Only show "Item" name as on v7.5
Screenshots
If applicable, add screenshots to help explain your problem.
Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

8.4.1
5.0.20
4.2.5

I'd like to have all my queries (stats, gauge, time series graphics, etc) to show aliases with "Item" name.
I have several dashboards with lot of querries and I can't just use a setalias($__zbx_item_name) for each one. It will take so much time.
Is there such a script or a fix to make this version compatible in this regard?
Thanks in advance.

The best regex I found to set the correct alias name is (?<=:.)[\s\S]*
So I'd like a tip to how could I set this regex on every dashboard / panels I have.
Thanks

Hi! In latest Grafana versions there's a labels string in a metric name. So since plugin includes host as a label, maybe it makes sense to remove default host prefix.

I think it's the same reason as #1444. So fixed and will be available in the next release.

Great news and great job!

Hi!
I updated grafana 7.3.6 to grafana 8.5.13 and zbx plugin 4.2.10
but now every zabbix item has host prefix
before

now

and that breaks many overrides, transforms and etc. And I have more than 1000 dashboards
Issue seems to me still actual, and if not, can you please tell what to do to get expected behavior without manually puting setAlias($__zbx_item) on every zbx panel?
Thanks!

authors: alexanderzobnin cdaher78 rrz

repo: alexanderzobnin/grafana-zabbix


text:
Item names show the zabbix key/request instead of just the hostname.

Describe the bug
The data in the legends now show something like:
(HOST-NAME-HERE) {host="HOST-NAME-HERE", item="Interface vmxnet3 Ethernet Adapter(Ethernet0): Bits received", item_key="net.if.in["vmxnet3 Ethernet Adapter"]"} Min: 4.72 Mb/s Max: 92.8 Mb/s Current: 73.0 Mb/s
This is when using: SetAlias(($__zbx_host_name))
Expected behavior
Usually, this would just display: (HOST-NAME-HERE) Min: 4.72 Mb/s Max: 92.8 Mb/s Current: 73.0 Mb/s
Screenshots
If applicable, add screenshots to help explain your problem.

Network data
If it's related to metric data visualization would be great to get the raw query and response for the network request (check this in browser dev tools network tab, there you can see metric requests, please include the request body and request response)
Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

8.4.4
6.0.4
4.2.7

I've found out that for some reason I've got to faff around with Overrides, to get it to display how I want, rather than it being by default before....
Is this a change in Grafana's default behaviour?
Thanks,
Matt

I think it's fixed in latest version of plugin, so try to upgrade.


text:
Backend: implement alerting query(Part 1)

Issue https://github.com/alexanderzobnin/grafana-zabbix/issues/801
Implemented part of the alerting query issue to get data from Zabbix and parse the query by fetching groups, hosts, apps, and items.
Initially parsed the query to get the filters for groups, hosts, apps, and items and later fetched the data from the Zabbix data source for all groups, hosts, apps, and items and filtered those bypassing them into regex filter.

Any estimate on reviewing the backend PRs?

Closed this PR, will open a new one with initial alerting in a working state.


text:
Use HA profile defined formats

Resolves: https://github.com/alexarch21/history-explorer-card/issues/221

Sadly the history explorer card has been declared end of life and won't be developed anymore. So I will have to close this PR without resolution. This repository will be archived and set to read-only shortly.
See this post on the HA forum for more information:
https://community.home-assistant.io/t/new-interactive-history-explorer-custom-card/369450/978


text:
Update sbt to 1.6.1

Updates org.scala-sbt:sbt from 1.4.9 to 1.6.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Applied Scalafix Migrations

org.scala-sbt:sbt:1.5.0

https://gist.githubusercontent.com/eed3si9n/57e83f5330592d968ce49f0d5030d4d5/raw/7f576f16a90e432baa49911c9a66204c354947bb/Sbt0_13BuildSyntax.scala
Documentation: https://eed3si9n.com/syntactic-scalafix-rule-for-unified-slash-syntax

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt" } ]

labels: library-update, early-semver-minor, semver-spec-minor, scalafix-migrations, commit-count:n:2

Superseded by #246.

repo: alexarchambault/scalacheck-shapeless


text:
🛑 Secret Website 3 is down

In a63ee70, Secret Website 3 ($SECRET_WEBSITE_3) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Website 3 is back up in 6564699.

repo: alexchapar/status-page


text:
⚠ Secret Website 3 has degraded performance

In cdfc390, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 9712 ms

Resolved: Secret Website 3 performance has improved in 0a6d479.


text:
⚠ Secret Website 3 has degraded performance

In 50800a4, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3180 ms

Resolved: Secret Website 3 performance has improved in 35007af.


text:
Update visjs version

How can i update visjs version used in vue2vis?

You can fork the project or wait for a couple of days while I find some time to do it.

I'm closing this as it was fix by aa14d55

authors: alexcode gretschann


text:
Error message for #[async] on a for

Consider
let (tx, rx) = mpsc::channel(1);
let process_bootstrap = async_block! {
    let msg = create_msg();
    #[async]
    for foo in rx {
        let msg = msg.clone();
        sink = await!(sink.send((msg, foo)))?;
    }
   Ok(())
};

Where the sink has io::Error as Error type, and rx obviously has () as Error type. This gives the very unhelpful message:
error[E0277]: the trait bound `std::io::Error: std::convert::From<()>` is not satisfied
   --> src/net/server.rs:142:33
    |
142 |           let process_bootstrap = async_block! {
    |  _________________________________^
143 | |             let msg = create_msg()
144 | |             #[async]
145 | |             for foo in rx {
...   |
150 | |             Ok(())
151 | |         };
    | |_________^ the trait `std::convert::From<()>` is not implemented for `std::io::Error`
    |

where the arrows point just around the block. Is it somehow possible to let the error actually point to the #[async] for loop?

Secondly, note that
#[async]
for foo in rx.map_err(|_| -> io::Error { unreachable!() }) {
}

works perfectly, but is quite painful to write. But that's not the real issue here, I guess :-)

repo: alexcrichton/futures-await


text:
include doesn't support UNC paths on Windows

let cc = gcc::Config::new();
cc.include(std::fs::canonicalize("."));

Doesn't add absolute path of "." as the include dir (tested on Win10, MSVC). This is because Rust's canonicalize() makes a UNC path such as \\?\C:\Foo.
Stripping the \\?\ prefix seems to solve the problem, but I don't know enough about UNC paths to know whether that's a good solution.
I use fs::canonicalize() as the easiest way to get absolute paths in build scripts of link/-sys dependencies to reliably pass the paths in env vars for other packages to consume, and it works well on Unix.

Is this a bug with gcc-rs? Or is this a bug with cl.exe not accepting these paths? Do you have an error message?

cl.exe doesn't support UNC paths (-IC:\foo works as expected, -I\\?\C:\foo doesn't find includes)
So strictly speaking that's a bug in cl.exe, but I'm betting on gcc-rs to hide deficiencies of MSVC for me :)

I've released a crate that normalizes paths in a compatible way: https://gitlab.com/kornelski/dunce
It would be nice if that was built into the include() function here.

I'm going to close this since it sounds like it was a bug in cl.exe, and I'd prefer to not add too much normalization to this crate.

authors: alexcrichton pornel

repo: alexcrichton/gcc-rs


text:
Command Line Option Not Supported In All Versions Of Gcc

I get this error:
c++: error: unrecognized command line option ‘-stdlib=libstdc++’
When I try to compile c++ code from my rust build script with .cpp(true)
It appears as though -stdlib=libstdc++ is not an accepted parameter by my version of gcc.

cc @TimNN, upon re-reading #39 I'm thinking the best option is to just not pass -stdlib by default (and instead rely on the compiler default). You mentioned that this can cause link errors on OSX though, so I'm wondering if you can elaborate on that?

The problem was that gcc-rs was unconditionally instructing cargo to link the rust code to libstdc++ when compiling with .ccp(true). Original code.
On OS X the default compiler is clang, which however links to libc++ thus resulting in linking errors.
As such the cpp_stdlib option was added. It allows choosing which stdlib to use and if one is choosen, it will force the compiler to use this library (using the -stdlib= flag) and instructs cargo to link the rust code to this library.
@OxyDeadbeef which OS / compiler version are you using?
For the moment you can work around the problem by manually creating a Config and setting config.cpp_stdlib(None). You will then have to manually link to libstdc++ by writing println!("cargo:rustc-link-lib=stdc++"); in your build.rs file.

Alright I did some digging and might have been a little careless when testing my original pull request:
OS X provides a g++ in /usr/bin, which is just a wrapper around clang and thus supports -stdlib= and I have installed a 'real' g++ in /usr/local/bin (which I usually have before /usr/bin in my path). For some reason while testing the code I have was using the OS X provided g++ and thus everything worked.
Proposed solution: Change cpp_stdlib to not automatically specify the -stdlib= flag (but keep detecting the stdlib to use based on the OS and instructing cargo to link to it) and add another option (or modify cpp_stdlib to take a second parameter) along the lines of force_cpp_stdlib_usage, which, if set, would pass the -stdlib flag to the compiler.

@TimNN I am using Fedora 22 & gcc 5.1.1

Fixed in #44 (no longer passing -stdlib by default)

authors: OxyDeadbeef TimNN alexcrichton


text:
How to build python distroless images for linux/arm/v7 ?

Hi @alexdmoss,
First of all thanks for sharing this repo, very useful.
I need to built images for arch=linux/arm/v7.
I am running containerized workloads on a raspberry pi 4.
 Kernel Version: 5.10.103-v7l+
 Operating System: Raspbian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 3.749GiB

Could you point me where to start ?
I checked Google's distroless repo and noticed they have cc-debian11 for arm. But for some reason they don't publish for python3-debian11.

Hello @fabito, you're right, Google doesn't build Distroless arm/v7 images for Java and Python.
I contributed many updates to this image https://gitlab.com/al3xos/distroless-python/-/merge_requests/2 but no one requested arm/v7 you would have to build that Google image yourself ;)
Your Raspbian is very old, 3 years ago it has been renamed to Raspberry Pi OS, and a 64-bit version is available since 1.5 years for the Pi 3B and newer, the easiest way would be to just update your OS to the current version.
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit

authors: fabito reneleonhardt

repo: alexdmoss/distroless-python


text:
add skupper

Description
Add skupper CLI
Motivation and Context

[X] I have raised an issue to propose this change, which has been given a label of design/approved by a maintainer (required)

Fix #969
How Has This Been Tested?
make e2e
=== RUN   Test_CheckTools/Download_of_skupper
=== PAUSE Test_CheckTools/Download_of_skupper
=== CONT  Test_CheckTools/Download_of_skupper
    --- PASS: Test_CheckTools/Download_of_skupper (0.57s)

hack/test-tool.sh skupper
+ ./arkade get skupper --arch arm64 --os darwin --quiet
+ file /Users/cris/.arkade/bin/skupper
/Users/cris/.arkade/bin/skupper: Mach-O 64-bit executable arm64
+ rm /Users/cris/.arkade/bin/skupper
+ echo

+ ./arkade get skupper --arch x86_64 --os darwin --quiet
+ file /Users/cris/.arkade/bin/skupper
/Users/cris/.arkade/bin/skupper: Mach-O 64-bit executable x86_64
+ rm /Users/cris/.arkade/bin/skupper
+ echo

+ ./arkade get skupper --arch x86_64 --os linux --quiet
+ file /Users/cris/.arkade/bin/skupper
/Users/cris/.arkade/bin/skupper: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=FMOZ3Cz5gBuYmWNBIr1h/YbfiH7MsoD_R7sBk8mO5/sQmBo1QNevjUCRyseo7e/doYyxsFn2STVMNSSnXjL, with debug_info, not stripped
+ rm /Users/cris/.arkade/bin/skupper
+ echo

+ ./arkade get skupper --arch aarch64 --os linux --quiet
+ file /Users/cris/.arkade/bin/skupper
/Users/cris/.arkade/bin/skupper: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=tozEh6CQt-s3s9u8f4NK/CvJvxQdw7Hwn5Xr7hHrL/kQN92-Mq1sW9ZWdNhYVA/6oIBUTky6x8ds15AIGhf, with debug_info, not stripped
+ rm /Users/cris/.arkade/bin/skupper
+ echo

+ ./arkade get skupper --arch x86_64 --os mingw --quiet
+ file /Users/cris/.arkade/bin/skupper.exe
/Users/cris/.arkade/bin/skupper.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
+ rm /Users/cris/.arkade/bin/skupper.exe
+ echo

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Documentation

[X] I have updated the list of tools in README.md if (required) with ./arkade get --format markdown
[ ] I have updated the list of apps in README.md if (required) with ./arkade install --help

Checklist:

[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I've read the CONTRIBUTION guide
[X] I have signed-off my commits with git commit -s

[X] I have tested this on arm, or have added code to prevent deployment

Thanks for the PR @tuxtof

You are welcome @alexellis always a pleasure 🤗

authors: alexellis tuxtof

repo: alexellis/arkade


text:
What about use-cases other than the click delay?

Saw the deprecation notice, and I have a question about it.
My use-case actually was not to eliminate the click delay, but to distinguish a tap from touchstart, which might also be the beginning of a scroll. In https://github.com/davidtheclark/react-aria-menubutton I use it to detect taps outside the open menu (the menu closes when you tap outside it): that's important because if the menu is long enough that you have to scroll to see some items on it, I don't want to close it because you started to scroll.
So I'm wondering: Do you know of some better way to handle this than using tap.js or something like it?

Feel free to take what code you need for your own use. I don't think it's worth maintaining this library just for edge cases like this, considering how little code there is.

Sure, was just wondering if you already had an alternative in mind. Thanks!

Technically there's also no reason why you can't do this with a regular click event now, especially as most browsers are no longer imposing a delay. You can easily enough tell where the event target is to determine if the menu should be closed or not.

I will revisit the code and see if that will work. I don't remember the details about why I felt I couldn't do that before.

authors: alexgibson davidtheclark


text:
change calendar locale string to en-US

Changed the calendar date field to show in English inline with other texts in the app
Tests passed with npm test

Thanks!! LGTM 🚀


text:
Any way to drop entire table?

Great looking project, would love a way to remove all rows of a table or drop the table completely.

As of now, deleting the entire file is not yet available but will be implemented in future versions. For now, you can just manually iterate through all the rows and delete them iteratively.

Hi there. Apology for late update. The feature is now added in version
v0.13.1

authors: alexiusacademia stuible

repo: alexiusacademia/electron-db


text:
avd_progress_indeterminate_circular : java.lang.RuntimeException: Unknown interpolator name: x

Hello,
When using the circular spinner in our app we get this exception on release builds only (minified) :
It works fine in debug.
11-21 17:12:00.974 21480 21480 D AndroidRuntime: Shutting down VM
11-21 17:12:05.250 20401 20401 E AndroidRuntime: FATAL EXCEPTION: main
11-21 17:12:05.250 20401 20401 E AndroidRuntime: Process: package_id, PID: 20401
11-21 17:12:05.250 20401 20401 E AndroidRuntime: android.content.res.Resources$NotFoundException: Drawable package_id:drawable/avd_progress_indeterminate_circular with resource ID #0x7f020069
11-21 17:12:05.250 20401 20401 E AndroidRuntime: Caused by: java.lang.RuntimeException: Unknown interpolator name: x
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.view.animation.AnimationUtils.createInterpolatorFromXml(AnimationUtils.java:397)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.view.animation.AnimationUtils.loadInterpolator(AnimationUtils.java:338)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:1053)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.loadObjectAnimator(AnimatorInflater.java:1007)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:663)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:676)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:638)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:126)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState$PendingAnimator.newInstance(AnimatedVectorDrawable.java:808)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState.inflatePendingAnimators(AnimatedVectorDrawable.java:784)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.graphics.drawable.AnimatedVectorDrawable.applyTheme(AnimatedVectorDrawable.java:613)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:580)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.content.res.Resources.getDrawable(Resources.java:771)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.support.v4.content.res.ResourcesCompat.getDrawable(ResourcesCompat.java:76)
11-21 17:12:05.250 20401 20401 E AndroidRuntime: 	at android.support.graphics.drawable.AnimatedVectorDrawableCompat.create(AnimatedVectorDrawableCompat.java:210)

I am starting to loose faith in Android animated vector drawables ;)
Our build is using Gradle 3.0 but we deactivated aapt2.

Don't lose faith in AVDs! Lose faith in aapt2 instead. :P
To be clear, does this happen in this sample app? Or does it happen in some other repo you have?

Are you still seeing this issue?

@alexjlockwood thanks for the follow up. The crash happened in our app on release build (proguard/shrink). Since then we removed the avd_progress_indeterminate_circular and used a circular ProgressBar.

authors: alexjlockwood eboudrant

repo: alexjlockwood/adp-delightful-details


text:
Get Contact with Filter (LIKE Query)

I didn't find any document about filtering contact with LIKE keyword, like the content resolver has. Is it filterable ?

Hi @nauhalf. This is not something that is currently supported.
I am asuming that you are refering to the Contacts#CONTENT_FILTER_URI, is that correct?

Like this

I am just chipping in as I recently started following this repo and have high hopes of it :)
Some content resolvers have limits on params. For example LIMIT is not allowed but not sure about LIKE.
Also, there might be performance issues if user has too many contacts. Some people have thousands of contacts.
I would prefer CONTENT_FILTER_URI being used as it seems to be the official way.

+1 for the CONTENT_FILTER_URI approach. If someone really wants/needs to manipulate SQL queries they still have the ContentProviders API to their disposal.
AFAIK such URIs tend to be highly optimised according to the docs, so doing multiple queries shouldn't be expensive.
I think that something like:
            combine(
                contactStore.fetchContacts(PhoneLookup(PhoneNumber(keyword))),
                contactStore.fetchContacts(NameLookup(keyword)) // <- not supported right now
            ) { fromPhones, fromNames ->
                // do any processing to the results you like
                fromNames + fromNames
            }.collect { results ->
                println("Contacts matching $keyword were = $results")
            }

would work well for @nauhalf  's case.

Quick update on this. I am planning of having this shipped this weekend with v0.2.0

Name lookup is now available in 0.2.0
https://github.com/alexstyl/contactstore/releases/tag/0.2.0

authors: NLLAPPS alexstyl nauhalf

repo: alexstyl/contactstore


text:
TinyHttpServer should cancel HttpListener on Stop

Currently when you call server.Stop it still listening to the port because HttpListener of TinyHttpServer never gets cancelled/stopped.

Hi @d-dizhevsky , if you are interested in the followup from this application, take a look at https://github.com/WireMock-Net/WireMock.Net which has a fix for this issue and has also more functionality available.

authors: StefH d-dizhevsky


text:
Inspector does not show anything

Hi Arnaud,
I just tried to enable the inspector, and no elements are shown with the 0.6.0-20191104 snapshot.
The objects are still highlighted in the mapping rules.
Kind regards,
Dennis

Hi,
Yes, i saw it.
i'll fix it after migration in typescript

Hi Dennis @bijwaard,
Can you try the lastest version, plz,
Many change, but not visual, migrate to typescript, new engine of graph.
Log scale is available, new design of rules
BR
Arnaud

Fixed in last 0.6.0

Hi Arnaud,
Thanks for the update, everything still seems to be working, and the inspector is back, thanks!
I can now configure the logarithmic scale, no visual change yet indeed;-)
The inspector doesn't show something usable for me in the label/name column yet, because of my placeholders, see also ticket #50.
Kind regards,
Dennis

Cool,
Thx for your feeback

authors: algenty bijwaard

repo: algenty/grafana-flowcharting


text:
sendTimeout warning/error on flutter Web

I'm running algoliasearch 1.22.0 on Flutter Web and keep getting the following error:
[🔔 Dio] sendTimeout cannot be used without a request body to send on Web
[🔔 Dio] _StackTrace (../dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 843:28                                          get current
....
This is the Repository where the Algolia is configured:
class UsersSearchRepository {
const UsersSearchRepository(this._algoliaSearchClient);
final SearchClient _algoliaSearchClient;
Future<List> search(String inputSearchText) async {
final queryHits = SearchParamsObject(
query: inputSearchText,
);
/
final responseHits = await _algoliaSearchClient.searchSingleIndex(
indexName: 'app_users_collection',
searchParams: queryHits,
);
return responseHits.hits.map((searchHit) {
return AppUser.fromMap(searchHit.toJson());
}).toList();
}
}
Initialized below:
@Riverpod(keepAlive: true)
UsersSearchRepository usersSearchRepository(UsersSearchRepositoryRef ref) {
final algoliaSearch = SearchClient(
appId: 'Foo',
apiKey: 'Bar,
);
return UsersSearchRepository(algoliaSearch);
}

The same exception happens to me too.
algolia_helper_flutter: 1.1.0

authors: Martin-QPT ilmarfreitas

repo: algolia/algoliasearch-client-dart


text:
Can't build typescript nodejs app when algoliasearch is included

I have been able to install the npm module and also wrote code for the functions. But I keep getting this when i try to run my code/build with tsc. Not sure if this is a bug

Algolia version - 4.4.0
Typescript version - 3.3.3

So it turns out I had to upgrade my typescript version. I upgraded to 4.0.2 and this error disappeared. Cheers

repo: algolia/algoliasearch-client-javascript


text:
chore: release

This pull request prepares the following release:

Repository
Branch
Update

instantsearch
chore/release-1698335948126
minor

Release Summary
This is going to be published with the following command:
yarn lerna publish from-package --yes
Merging Instructions
When merging this pull request, you need to Squash and merge and make sure that the title starts with chore: release.

See details
After that, a commit chore: release will be added and you or your CI can run shipjs trigger to trigger the release based on the commit.

This pull request is automatically generated by Ship.js.

Releasing on Monday.

repo: algolia/instantsearch


text:
docx file mimetype being returned as bytes causing get_preview_builder to throw exception

Wondering if this is just me or not..
in PreviewBuilderFactory.get_file_mimetype:
str_, encoding = mimetypes_storage.guess_type(first_path, strict=False) returns (None, None) for a docx file.
So then https://github.com/algoo/preview-generator/blob/develop/preview_generator/preview/builder_factory.py#L67-L69
returns the mimetype in bytes, causing get_preview_builder to fail.
I found that not calling MimeTypes() here https://github.com/algoo/preview-generator/blob/develop/preview_generator/extension.py fixes it.
Thinking it could be issues with my version of mimetype, or magic? Using Python 3.7.5

Resolved.. turns out the issue was an old version of python-magic..

repo: algoo/preview-generator


text:
[BUG] NullPointException

    private void video() {
        new VideoPicker.Builder(PublishActivity.this)
                .mode(VideoPicker.Mode.GALLERY)
                .directory(VideoPicker.Directory.DEFAULT)
                .extension(VideoPicker.Extension.MP4)
                .enableDebuggingMode(true)
                .build();
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == ImagePicker.IMAGE_PICKER_REQUEST_CODE && resultCode == RESULT_OK) {
            List<String> mPaths = (List<String>) data.getSerializableExtra(ImagePicker.EXTRA_IMAGE_PATH);
            File imageFile = new File(mPaths.get(0));
            if (imageFile.exists()) {
                mediaGridAdapter.incrementRefresh(new MediaModel(SCHEME + mPaths.get(0), MediaModel.MediaType.IMAGE, imageFile));
            }
        } else if (requestCode == VideoPicker.VIDEO_PICKER_REQUEST_CODE && resultCode == RESULT_OK) {
            List<String> mPaths = (List<String>) data.getSerializableExtra(VideoPicker.EXTRA_VIDEO_PATH);
            File videoFile = new File(mPaths.get(0));
            if (videoFile.exists()) {
                publishMediaList.add(new MediaModel(SCHEME + mPaths.get(0), MediaModel.MediaType.VIDEO, videoFile));
            }
        }
    }

I have to use the default folder properties 。
Image is OK, but video crash 。

What's the android version that you are using? and what type of device? is it Samsung or emulator?


text:
اضافه کردن درگاه paystar

سلام وقت بخیر اگر میشه درگاه paystarرو به کتابخونتون اضافه کنید  اگر اطلاعاتی در مورد این درگاه خواستین من براتون میفرستم  باتشکر

سلام و عرض ادب
تنها چالش پیش رو برای اضافه کردن این درگاه پرداخت، نداشتن MERCHANT_CODE معتبر برای تست میباشد (در این درگاه GATEWAY_ID گفته میشود)
اگر یک GATEWAY_ID معتبر برای تست وجود داشته باشه به سرعت اضافه میشه به کتابخونه.

repo: ali-zahedi/az-iranian-bank-gateways


text:
Contact Details
320613249@qq.com
What happened?
A bug happened!
运行环境: win10
固件版本: v2.2.

0
Version
rel_3.3.0 (Main)
What soultions are you seeing the problem on?
No response
Relevant log output
PowerShell 7.2.5
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS F:\ailiyun\test_demo> "C:\ProgramData\aos\miniconda3\condabin\conda.bat" activate C:\ProgramData\aos\miniconda3,set PATH=C:\ProgramData\aos\miniconda3;C:\ProgramData\aos\miniconda3\Scripts;C:\ProgramData\aos\miniconda3\Library\bin;%PATH%&python -m serial.tools.miniterm COM6 115200 --raw
ParserError:
Line |
   1 |  "C:\ProgramData\aos\miniconda3\condabin\conda.bat" activate C:\Progra …
     |                                                     ~~~~~~~~
     | Unexpected token 'activate' in expression or statement.

我们先看看

所以是这个问题7月份就有了，现在还这样

authors: Virace YiluMao emo666

repo: alibaba/AliOS-Things


text:
java.lang.IllegalAccessError: Method 'void  Android 5.0 不兼容？

少部分5.0和5.1机型报错,4.x没有报错,是兼容问题
java.lang.IllegalAccessError: Method 'void com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF.getOrderTrackInfo()' is inaccessible to class 'com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF' (declaration of 'com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF' appears in /data/data/com.dwl.uh/files/apatch/1.5_45_20160303_cancleorderTest_07.apatch)
at com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF.getOrderDetailSuccess(OrderDetailActivity.java:526)
at com.dwl.uh.manager.presenter.OrderDetailPresenter$1.onSuccess(OrderDetailPresenter.java:46)
at com.dwl.uh.manager.model.impl.OrderDetailModelImpl$1.onResponse(OrderDetailModelImpl.java:22)
at com.dwl.uh.manager.model.impl.OrderDetailModelImpl$1.onResponse(OrderDetailModelImpl.java:1)
at com.dwl.uh.net.GsonRequest.deliverResponse(GsonRequest.java:93)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5275)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)

java.lang.IllegalAccessError问题解决了吗？4.4.4版本不崩溃 ， 未替换成功 5.1.1版本崩溃

没有

同样的问题啊。

6.0替换成功，退出后再进来走一遍流程就会报 method inaccessible ，杀掉进程再进来是好的

现在有人解决了吗

看看这篇文章  http://www.jianshu.com/p/58fc4c2cb65a

repo: alibaba/AndFix


text:
Mechanisms to support asynchronous training protocol in FL

As the title said.
Some ideas can be borrowed from asynchronous SGD, including but not limited to:

Timeout strategy
oversampling
staleness toleration
variances toleration

A simulator can also be provided for running asynchronous FL standalone.

Any ideas and discussions of asynchronous FL are welcome :)

repo: alibaba/FederatedScope


text:
We need functionality similar to asio::dispatch

Search before asking

[x] I searched the issues and found no similar issues.

What happened + What you expected to happen
asio::dispatch可以让协程将自己调度到指定的executor中，用户在实现相同逻辑时可以减少一些不必要的封装和抽象。
Reproduction way
Anything else
Are you willing to submit a PR?

[x] Yes I am willing to submit a PR!

Closed with https://github.com/alibaba/async_simple/pull/315


text:
FastJsonHttpMessageConverter 的编码问题

最近使用了新版本的包（1.2.35），替换了原来的 FastJsonHttpMessageConverter4 ，替换后发现 converter.setDefaultCharset(Charset.forName("UTF-8")) 这句代码不起作用了，controller 返回的 json 中文字符串依然是乱码，于是进  FastJsonHttpMessageConverter 看了下，发现了如下代码：
    if(headers.getContentType() == null) {
        if(contentType == null || contentType.isWildcardType() || contentType.isWildcardSubtype()) {
            contentType = this.getDefaultContentType(t);
        }

        if(contentType != null) {
            headers.setContentType(contentType);
        }
    }

这里并没有采用 AbstractHttpMessageConverter 的 addDefaultHeaders(...) 方法来添加 contentType，而是使用了如上代码，可是这里在给 headers 添加 contentType 时并没有使用 defaultCharset 来指定编码，因此返回的 json 数据会乱码，目前的解决办法就是自定义 mediaType 给 supportedType，希望能够改善下。

不指定的话默认会使用FastJsonConfig 里边的charset ，默认是UTF-8。 不太确定你的使用场景， 可以提供一个能跑的单元测试吗

FastJsonConfig 里面的 charset 是针对 json 序列化时候使用的，我的意思是通过 response 写到浏览器时的 headers 中的 content-type 的编码

升级到最新的 1.2.36 版本尝试一下呢。 估计这个问题已经被解决了。

看了下新版的 FastJsonHttpMessageConverter, 发现是解决了这个问题，没有重写 write 方法，而是调用了 AbstractHttpMessageConverter 里的，谢谢啦

repo: alibaba/fastjson


text:
[FEATURE]添加对java.awt.Color类型的序列化和反序列化支持

请描述您的需求或者改进建议
对您想要需求或建议的清晰简洁的描述。
1.x版本是支持的，在2.0.50版本中反序列化出来的rgb全是0
希望实现类似于如下效果：
String colorStr = JSONObject.toJSONString(Color.BLUE); //{"r":0,"g":0,"b":255,"alpha":255}
Color color = JSONObject.parseObject(colorStr, Color.class);//java.awt.Color[r=0,g=0,b=255]
请描述你建议的实现方案
对您想要需求或建议的实现方案的详细描述。
略
描述您考虑过的替代方案
对您考虑过的任何替代解决方案或功能的描述。
略
附加信息
如果你还有其他需要提供的信息，可以在这里填写（可以提供截图、视频等）。
略

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.51-SNAPSHOT/
问题已修复，请帮忙用2.0.51-SNAPSHOT版本验证下

https://github.com/alibaba/fastjson2/releases/tag/2.0.51
问题已修复，请用新版本

authors: kenanor wenshao


text:
please install Freeline first的错误

在as2.2.3下安装了freeline插件，点击运行，就出现"please install Freeline first"，无法运行！谢谢

@zzxb README里写的很清楚了...finally的最后一步你没有做gradlew initFreeline -Pmirror...
也麻烦提问下先搜下相关的issue，已经有人提问过了...

authors: lomanyong zzxb

repo: alibaba/freeline


text:
Freeline构造失败

gradle版本：2.2.3
构建仓库：maven
buildscript {
repositories {
mavenCentral()
// jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
// classpath 'com.antfortune.freeline:gradle:0.8.5'
}
}
allprojects {
repositories {
mavenCentral()
// // maven { url 'http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/' }
}

tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}
}

附上我的build.gradle，放开jcenter()，点Re-download，无论翻墙与否，完全无效。
错误信息：
Error:Unable to find method 'org.gradle.api.tasks.Sync.getInputs()Lorg/gradle/api/internal/TaskInputsInternal;'.
Possible causes for this unexpected error include:

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

@LiuzxGeek 这基本跟 Freeline 无关呀....可以 Google 一下错误信息，有很多可能对你有帮助的解答在 StackOverflow 或者国内的博客上...比如：http://blog.csdn.net/ouyang_peng/article/details/52027668

@LiuzxGeek Gradle并没有2.2.3的版本，你这里提供的信息不正确。
你的2.2.3的版本应该是指的'com.android.tools.build:gradle'这一插件吧。你的Gradle的版本是？

authors: LiuzxGeek lomanyong msdx


text:
feature: UpdateContainerResources of CRI Manager

Signed-off-by: Starnop starnop@163.com

Ⅰ. Describe what this PR did
add feature: UpdateContainerResources of CRI Manager
Ⅱ. Does this pull request fix one issue?

None
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
# pouch run -d -m 20m --name cri-update-test registry.hub.docker.com/library/nginx:latest
WARNING: Current Kernel does not support memory swap, discard --memory-swap
bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5

# cat /sys/fs/cgroup/memory/default/bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5/memory.limit_in_bytes
20971520

# crictl update --memory 31457280 bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5
DEBU[0000] UpdateContainerResourcesRequest: &UpdateContainerResourcesRequest{ContainerId:bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5,Linux:&LinuxContainerResources{CpuPeriod:0,CpuQuota:0,CpuShares:0,MemoryLimitInBytes:31457280,OomScoreAdj:0,CpusetCpus:,CpusetMems:,},}
DEBU[0000] UpdateContainerResourcesResponse: &UpdateContainerResourcesResponse{}
bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5

# cat /sys/fs/cgroup/memory/default/bd6c5b9de4874f6703961ed543a9056a9762279433c6cad0fd8b63f42f636ff5/memory.limit_in_bytes
31457280

Ⅴ. Special notes for reviews

Codecov Report

Merging #1511 into master will decrease coverage by 2.88%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1511      +/-   ##
==========================================
- Coverage   40.56%   37.68%   -2.89%
==========================================
  Files         254      252       -2
  Lines       16535    17786    +1251
==========================================
- Hits         6708     6703       -5
- Misses       8965    10215    +1250
- Partials      862      868       +6

Impacted Files
Coverage Δ

cri/v1alpha1/cri.go
0% <0%> (ø)
:arrow_up:

cri/v1alpha1/cri_utils.go
28.28% <0%> (-0.97%)
:arrow_down:

client/network_connect.go
0% <0%> (-100%)
:arrow_down:

client/container_exec.go
0% <0%> (-80%)
:arrow_down:

daemon/mgr/network.go
51.42% <0%> (-18.01%)
:arrow_down:

daemon/mgr/container_types.go
61.16% <0%> (-16.62%)
:arrow_down:

daemon/mgr/spec_mount.go
54.54% <0%> (-15.67%)
:arrow_down:

daemon/mgr/container.go
34.72% <0%> (-14.57%)
:arrow_down:

daemon/mgr/spec.go
40% <0%> (-14.55%)
:arrow_down:

pkg/utils/utils.go
71.7% <0%> (-13.57%)
:arrow_down:

... and 12 more

@allencloud  Thank you for your patient guidance. Everything mentioned above  has been resolved.

LGTM

authors: Starnop allencloud codecov-io

repo: alibaba/pouch


text:
optimize e2e build

fix github e2e action save log file error.
local build requires k8sClient, so delete e2e local build test and add lite build test.

/test image

repo: alibaba/sealer


text:
spring-cloud-alibaba-dependencies 2.3.3 cannot  be compatible with springcloud Hoxton.SR8 perfectly

我们鼓励使用英文，如果不能直接使用，可以使用翻译软件，您仍旧可以保留中文原文。
We recommend using English. If you are non-native English speaker, you can use the translation software.
Which Component
eg. Nacos ,Dubbo
Describe the bug
<spring-boot-admin.version>2.3.0</spring-boot-admin.version>
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
<spring-cloud.version>Hoxton.SR8</spring-cloud.version>
<spring-cloud-alibaba.version>2.2.3.RELEASE</spring-cloud-alibaba.version>
I have a service  that can't regist at nacos, but others suceeded.
Dubbo version 2.7.8-release,Nacos version 1.3.2

I also encountered a similar situation. I have two consumers and five providers, but only the providers can be started, and all consumers can't start it. The port is already binded. After observing the configuration of the provider, we configed dubbo.protocol.port= -1. In Dubbo 2.7.6, consumers do not need to configure, but in Dubbo 2.7.8, they need to configure.

Please chek you spring-cloud-alibaba.version
https://docs.spring.io/spring-cloud/docs/Hoxton.SR8/reference/html/
spring-cloud-alibaba.version is in line with spring-boot.version

authors: CoooderSan LJC8888888888 zjpjohn

repo: alibaba/spring-cloud-alibaba


text:
int.dpool.sina.com.cn shutdown should i report to here?

http://int.dpool.sina.com.cn/
404 Not Found
The requested URL was not found on this server. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
URL:	http://int.dpool.sina.com.cn/
Server:	iz2zedvddod8c7o5psqg31z
Date:	2018/06/13 11:11:38
Powered by Tengine

It's a wrong address to report this issue. It should be related to Sina.com, not Taobao.com.
BTW, I'm also trying to find an answer for this one and getting here~

authors: Oldsooh liwengithub

repo: alibaba/tengine


text:
tengine 记录POST 数据报："The pipe" was incomplete: 65536 of 140665

通过tengine 记录 POST 数据报错 相关nginx 配置:
server {
listen       80  backlog=20480;
server_name  c.xxx.com
client_body_buffer_size 128k;
location = /m1.htm{
    lua_need_request_body on;
    root /data/webroot/www/beibei;
    #access_log /logs/click/bbappv1.log click;
    access_log "pipe:/usr/sbin/cronolog -p30min /data/10-10-111-37.%s" click;
    content_by_lua "ngx.exit(ngx.HTTP_OK)";
}

}
具体报错信息：
2018/09/10 20:55:34 [alert] 26143#0: *33275607570 write() to "The pipe" was incomplete: 65536 of 110509 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:35 [alert] 26127#0: *33275611755 write() to "The pipe" was incomplete: 54925 of 75405 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:37 [alert] 26144#0: *33275621339 write() to "The pipe" was incomplete: 65536 of 75996 while logging request, client: 11.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:38 [alert] 26146#0: *33275622079 write() to "The pipe" was incomplete: 65536 of 104438 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:38 [alert] 26143#0: *33275624581 write() to "The pipe" was incomplete: 65536 of 89734 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:41 [alert] 26144#0: *33275633751 write() to "The pipe" was incomplete: 65536 of 66415 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:41 [alert] 26143#0: *33275634504 write() to "The pipe" was incomplete: 65536 of 67036 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:41 [alert] 26130#0: *33275635201 write() to "The pipe" was incomplete: 65536 of 69098 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:42 [alert] 26116#0: *33275637272 write() to "The pipe" was incomplete: 65536 of 69983 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:43 [alert] 26118#0: *33275641762 write() to "The pipe" was incomplete: 65536 of 104337 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:49 [alert] 26127#0: *33275664618 write() to "The pipe" was incomplete: 65536 of 73073 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:51 [alert] 26146#0: *33275669435 write() to "The pipe" was incomplete: 65536 of 316774 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:51 [alert] 26135#0: *33275669969 write() to "The pipe" was incomplete: 65536 of 118549 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:53 [alert] 26115#0: *33275678436 write() to "The pipe" was incomplete: 65536 of 71883 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
2018/09/10 20:55:56 [alert] 26130#0: *33275688373 write() to "The pipe" was incomplete: 65536 of 152103 while logging request, client: 1.1.1.1, server: c.xxx.com, request: "POST /m1.htm HTTP/1.1", host: "c.xxx.com"
是否要调整某些配置参数？

通过管道pipe方式记录日志，每条日志是有大小限制的。
maxsize = pipe size * PIPE_BUFFERS   一般是4k * 16 即单行日志最大64k，超过的部分就会被截断。

那有办法修改参数解决吗？

可以不通过pipe的方式记录日志，然后通过设置access_log的buffer大小来控制，详细请参考 http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log

可以不通过pipe的方式记录日志，然后通过设置access_log的buffer大小来控制，详细请参考 http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log

这个pipe_buffer是通过哪个内核参数调整的呢？

很久以前看到是在源代码里硬编码的, 不过不了解新版本的情况

authors: ArnoYe cfsego jjzhang789 wangfakang


text:
Switch Marks from HashMap to an array

Since there are only 26 possible marks, it's possible to implement with a simple array, and it ends up being much faster.
100k random insertions:
HashMap: ~0.125s
Array: ~0.043s
With add_line after each random insertion:
HashMap: ~3.139s
Array: ~0.121s
100k add_line's on an empty container:
HashMap: ~0.466s
Array: ~0.069s
I also changed the refereces to usize to be usize. IIUC usize is the same size as pointers, so there's no benefit.

use std::collections::{VecDeque, HashMap}; slipped into the merge. HashMap isn't required.

repo: alicemaz/rust-ed


text:
Style hotfix

Put box-sizing on everything. That's my own crutch but seemed to fix some oddities, like the creative commons positioning on mobile. Change if needed.
Not sure why the wrapping flexbox on header was causing problems.

Current coverage is 15.09% (diff: 100%)

Merging #17 into master will not change coverage

@@             master        #17   diff @@
==========================================
  Files            18         18
  Lines           159        159
  Methods          62         62
  Messages          0          0
  Branches         47         47
==========================================
  Hits             24         24
  Misses          135        135
  Partials          0          0

Powered by Codecov. Last update 154a529...0b8a0bb

authors: codecov-io jvoros

repo: aliemteam/aliemcards


text:
Implement token revocation endpoint

RFC 7009: OAuth 2.0 Token Revocation
https://datatracker.ietf.org/doc/html/rfc7009

Codecov Report

Merging #84 (aa72462) into master (c1f3a87) will decrease coverage by 0.68%.
The diff coverage is 70.58%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   98.55%   97.87%   -0.68%
==========================================
  Files          15       15
  Lines         691      707      +16
  Branches      106      110       +4
==========================================
+ Hits          681      692      +11
- Misses          4        6       +2
- Partials        6        9       +3

Impacted Files
Coverage Δ

aioauth/types.py
100.00% <ø> (ø)

aioauth/server.py
95.30% <64.28%> (-3.22%)
:arrow_down:

aioauth/errors.py
100.00% <100.00%> (ø)

aioauth/storage.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hi there @aliev, it seems like this didn't get included in the most recent release v1.5.4, was that intentional? Do you know when this feature might get released? Thanks, Shawn

Hi, @shawn-monadical
Sorry for the late reply; I had a tough week. Give me some time after the weekend, and I will review all possible options regarding the release. I’ll also try to answer your questions in Discussions.

No worries @aliev, hope you're feeling better and of course thank you for your work on this excellent project. It's been a big help for me.

@shawn-monadical I released v1.6.0. Could you check, please?

Thanks @aliev, it seems the token revocation endpoint and the new OIDC classes are included in the latest release, exactly what I needed!

authors: aliev codecov-commenter mgorven shawn-monadical

repo: aliev/aioauth


text:
Append script/noscript as first child

Google has in their documentation that their script should be as close to the top of the head tag  and the noscript should be the first thing in the body tag.
It is just being appended, so if there were any pre-existing elements this would append them in non-ideal locations. It would be good to be a little bit more defensive about making sure it is appending it as the first element in head/body. If something comes in later and inserts as first there is nothing you can do, but it should not stop this library from doing things as best it can.
There's various ways to accomplish this. Here's a SO link for setting elements as the first child.

do you mean it should use an insertBefore on the first index element of header and body?
https://github.com/alinemorelli/react-gtm/blob/master/src/TagManager.js#L42

Yes, basically just replace those two appendChild calls.

Isn't noscript basically useless since its never going to trigger, because if user has javascript disabled react won't even run?
If this module would support server-side rendering, then it would be useful.

Thank you for the report, fixed in the version 2.0.4.

authors: alinemorelli david-soyez nikopavlica thaithco thaithcock

repo: alinemorelli/react-gtm


text:
Closing when is typed space in the another extract choice section

extract-file-names.bat batch script
When it is typed space  in the another extract choice section, the instance is closed.

This issue was resolved using the reaction of to close after press space+enter using it as a special comand to end the program anytime.

repo: alisonclayton/batch-scripts


text:
Does the Sima code assume that the TP_num and the number of NVSwitches are consistent across all machines when initializing NCCL?

As shown in the figure, during initialization, MockNcclGroup calculates TP_num and NVSwitch. Does MockNcclGroup assume that TP_num and the number of NVSwitches are consistent? For example, if tp_size=4 and gpus_per_node=8, then TP_num=2. Based on the code, it seems to assume that each machine also has 2 NVSwitches in this case. Is my understanding correct? Thank you for clarifying.

Yes，in order to support the scenario where multiple TP groups use NVLS within a single machine, we assume that the number of NVswitches within a single machine is consistent with the number of TP groups within that machine. The number of NVswitches within a single machine in the network topology can be set through the -nsps parameter in the file astra-sim-alibabacloud/inputs/topo/gen_HPN_7.0_topo_mulgpus_one_link.py.

authors: HUNMrsen jackmygreat

repo: aliyun/SimAI


text:
SignURL能对文件夹生成一个签名，然后访问文件夹下所有文件不？

一个文件夹下有许多的文件，想对文件夹生成一个URL签名。然后通过这个URL签名访问这个文件夹下所有的文件。
用以下代码实现不了
# 想用一个URL签名访问 images 文件夹下所有的文件
signedURL, _ := bucket.SignURL("images/", oss.HTTPGet, 60)

请问有其他方法不？

现在不行，可以先将文件夹的object遍历出来，然后对每个object单独进行签名

现在不行，可以先将文件夹的object遍历出来，然后对每个object单独进行签名

authors: atiasn wangtaowei

repo: aliyun/aliyun-oss-go-sdk


text:
Upgrade pip cache

Fixes #48

This option did not work as intended - superseded by #50

repo: allaffa/GCNN


text:
Update rtlamr2mqtt.py

Fixing unbalanced paranthesis on line 439

Thank you