text:
client: Replace unsafe_rpc_expose with an RpcMethods enum

...which can be either Default, Safe or Unsafe. The idea is to have the
following:

--rpc-external=false
--rpc-external=true

--rpc-methods=Default

unsafe calls denied

--rpc-methods=Safe
unsafe calls denied
unsafe calls denied

--rpc-methods=Unsafe

Since the previous unsafe-rpc-expose option was confusing.
Fixes #5710
cc @tomusdrw @xlc
I also modified the Compose file since it mentioned the now-removed flag but wasn't sure if that's the right thing to do here; lmk if I should back out the related changes.

Left out the removal of --unsafe-{rpc,ws}-external flags and only replaced --unsafe_rpc_expose with the --rpc-methods={default,safe,unsafe} enum argument.
For validator nodes, passing --{rpc,ws}-external --rpc-methods=unsafe will not error out and allow us to expose entire RPC method set externally (which IIUC was the original purpose of --unsafe-rpc-expose).

All green except gitlab-check-polkadot-companion-build:
 warning: build failed, waiting for other jobs to finish...
error[E0061]: this function takes 5 parameters but 4 parameters were supplied
   --> parachain/src/wasm_executor/mod.rs:181:17
    |
181 |       let executor = sc_executor::WasmExecutor::new(
    |  ____________________^
182 | |         sc_executor::WasmExecutionMethod::Interpreted,
183 | |         // TODO: Make sure we don't use more than 1GB: https://github.com/paritytech/polkadot/issues/699
184 | |         Some(1024),
185 | |         HostFunctions::host_functions(),
186 | |         8
187 | |     );
    | |_____^ expected 5 parameters
error[E0061]: this function takes 5 parameters but 6 parameters were supplied
   --> parachain/src/wasm_executor/mod.rs:188:21
    |
188 |     let res = executor.call_in_wasm(
    |                        ^^^^^^^^^^^^ expected 5 parameters
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0061, E0433.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `polkadot-parachain`.

Let me retrigger the CI

@Xanewok needs resolving and possibly a Polkadot companion PR submitting

@Xanework status?

Will resolve this today, sorry for the delay.
On Mon, 4 May 2020 at 14:08, Bastian Köcher notifications@github.com
wrote:

@Xanework status?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/paritytech/substrate/pull/5729#issuecomment-623425187,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXTFXOKXEQ4KA6WHYFP4A3RP2V3PANCNFSM4MNPDX4Q
.

Checks are all green and as far as I understand, this does not affect Polkadot since the changes here touch CLI mostly, which are contained already as a flattened base struct in the RunCmd.
@gnunicorn is this good to merge?

@Xanewok please do not force-push, it reverts history and makes it harder to review – just use regular merges, thus a reviewer can use the "Review only changes since you've last seen" to speed up the process. We squash-merge anyways, all merge commit are going away then.

Will do. I'm am used to rebasing on master + merging all of the commits from a feature branch and so wanted to avoid multiple merge commits but we're squashing anyway so there won't be any clutter in the first place :+1: Sorry about that.

To facilitate the review, the only bits needed resolving where import directives:

https://github.com/paritytech/substrate/pull/5729/commits/2899e92e38ad1706b39dff641387dfff86851619#diff-09e11dbb6a6e80c9aa5a56ebc6550873R67
https://github.com/paritytech/substrate/commit/2899e92e38ad1706b39dff641387dfff86851619#diff-ac6ab7083b8f4dece29162b99730dceaR30-R31

and the rest stayed the same.

The polkadot companion build is failing but it looks like it's unrelated:
   Compiling polkadot-runtime-common v0.7.33 (/builds/parity/substrate/polkadot/runtime/common)
error[E0277]: the trait bound `&polkadot_parachain::primitives::UpwardMessage: core::iter::ExactSizeIterator` is not satisfied
   --> /builds/parity/substrate/polkadot/runtime/common/src/parachains.rs:917:71
    |
917 |             upward_messages.iter().for_each(|m| RelayDispatchQueue::append(id, m));
    |                                                                                ^ the trait `core::iter::ExactSizeIterator` is not implemented for `&polkadot_parachain::primitives::UpwardMessage`
    |
    = note: required by `attestations::sp_api_hidden_includes_decl_storage::hidden_include::StorageMap::append`
error[E0308]: mismatched types
   --> /builds/parity/substrate/polkadot/runtime/common/src/parachains.rs:917:40
    |
917 |             upward_messages.iter().for_each(|m| RelayDispatchQueue::append(id, m));
    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `core::result::Result`
    |
    = note: expected unit type `()`
                    found enum `core::result::Result<(), &'static str>`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0277, E0308.

Pushed the Default variant rename to Auto.

The polkadot companion build is failing but it looks like it's unrelated:
   Compiling polkadot-runtime-common v0.7.33 (/builds/parity/substrate/polkadot/runtime/common)
error[E0277]: the trait bound `&polkadot_parachain::primitives::UpwardMessage: core::iter::ExactSizeIterator` is not satisfied
   --> /builds/parity/substrate/polkadot/runtime/common/src/parachains.rs:917:71
    |
917 |             upward_messages.iter().for_each(|m| RelayDispatchQueue::append(id, m));
    |                                                                                ^ the trait `core::iter::ExactSizeIterator` is not implemented for `&polkadot_parachain::primitives::UpwardMessage`
    |
    = note: required by `attestations::sp_api_hidden_includes_decl_storage::hidden_include::StorageMap::append`
error[E0308]: mismatched types
   --> /builds/parity/substrate/polkadot/runtime/common/src/parachains.rs:917:40
    |
917 |             upward_messages.iter().for_each(|m| RelayDispatchQueue::append(id, m));
    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `core::result::Result`
    |
    = note: expected unit type `()`
                    found enum `core::result::Result<(), &'static str>`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0277, E0308.

That is because you don't have latest Substrate master in.

authors: Xanewok bkchr gavofyork gnunicorn


text:
Logan dev

Created a series of generating functions that yield well-typed code-templates from a complete Visualization Spec.

Really excited for this, thanks for your work here @SybelBlue!

source: gharchive/pull-request

authors: SybelBlue parkerziegler

repo: parkerziegler/reviz

license: MIT

license_type: permissive

license_source: github-api


text:
Using dtreeviz with sklearn pipelines

When the following model
from sklearn.impute import KNNImputer
from sklearn.pipeline import make_pipeline
from sklearn.tree import DecisionTreeRegressor

model = make_pipeline(KNNImputer(), DecisionTreeRegressor())

is plugged into the function dtreeviz.trees.dtreeviz, this exception is raised:
ValueError: Tree model must be in (DecisionTreeRegressor, DecisionTreeClassifier, xgboost.core.Booster, but was Pipeline

Are there any plans to make sklearn's pipelines work for dtreeviz?

Hi.  well a pipeline could have 30 different elements in it... it's up to you to pull out the specific model you'd like to visualize.

Hi.  well a pipeline could have 30 different elements in it... it's up to you to pull out the specific model you'd like to visualize.

Thanks for your quick response!
In my toy model above, the decision tree is at the end and cannot be pulled out of the pipeline as it needs all prior steps (in the toy example, only the imputing, but there may be more) to be executed. An example which may highlights my point is the following:
from sklearn.impute import KNNImputer
from sklearn.pipeline import make_pipeline
from sklearn.tree import DecisionTreeRegressor
from sklearn.preprocessing import PolynomialFeatures

model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), DecisionTreeRegressor())

Here, pulling out the DecisionTreeRegressor would change the model, as  the decision tree in model operates on a totally different features space than a decision tree fitted on data without the PolynomialFeatures preprocessor before.
I'm happy to help implementing the pipeline support. I was just wondering whether there exist already plans to implement this.

Thanks for your quick response!
In my toy model above, the decision tree is at the end and cannot be pulled out of the pipeline as it needs all prior steps (in the toy example, only the imputing, but there may be more) to be executed. An example which may highlights my point is the following:
from sklearn.impute import KNNImputer
from sklearn.pipeline import make_pipeline
from sklearn.tree import DecisionTreeRegressor
from sklearn.preprocessing import PolynomialFeatures

model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), DecisionTreeRegressor())

Here, pulling out the DecisionTreeRegressor would change the model, as  the decision tree in model operates on a totally different features space than a decision tree fitted on data without the PolynomialFeatures preprocessor before.
I'm happy to help implementing the pipeline support. I was just wondering whether there exist already plans to implement this.

t = DecisionTreeRegressor()
model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), t)

t = DecisionTreeRegressor()
model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), t)

If I understand you correctly, it should work with the existing implementation. I don't understand how.
Using like that
from sklearn.impute import KNNImputer
from sklearn.pipeline import make_pipeline
from sklearn.tree import DecisionTreeRegressor
from sklearn.preprocessing import PolynomialFeatures
from sklearn.datasets import load_boston

from dtreeviz.trees import dtreeviz

t = DecisionTreeRegressor()
model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), t)

boston = load_boston()
model.fit(boston.data, boston.target)

viz = dtreeviz(
    t,
    boston.data,
    boston.target,
    target_name='price',
    feature_names=boston.feature_names)

will raise an IndexError in dtreeviz.models.shadow_decision_tree.py (probably because a feature is accessed which does not exist in boston.data as it is generated by PolynomialFeatures.
On the other hand, forwarding model itself to dtreeviz the ValueError from above is raised.

If I understand you correctly, it should work with the existing implementation. I don't understand how.
Using like that
from sklearn.impute import KNNImputer
from sklearn.pipeline import make_pipeline
from sklearn.tree import DecisionTreeRegressor
from sklearn.preprocessing import PolynomialFeatures
from sklearn.datasets import load_boston

from dtreeviz.trees import dtreeviz

t = DecisionTreeRegressor()
model = make_pipeline(KNNImputer(), PolynomialFeatures(degree=2), t)

boston = load_boston()
model.fit(boston.data, boston.target)

viz = dtreeviz(
    t,
    boston.data,
    boston.target,
    target_name='price',
    feature_names=boston.feature_names)

will raise an IndexError in dtreeviz.models.shadow_decision_tree.py (probably because a feature is accessed which does not exist in boston.data as it is generated by PolynomialFeatures.
On the other hand, forwarding model itself to dtreeviz the ValueError from above is raised.

Oh sorry. you are right. If you are changing the structure of the data then you will need to pass the data coming out of the previous element of the pipeline to dtreeviz.  That is inconvenient, but you can easily just get another variable attached to the polynomial features object. I'm not sure there's much advantage to those pipelines and so I just manually process the data.  sorry I can't be more help.

Oh sorry. you are right. If you are changing the structure of the data then you will need to pass the data coming out of the previous element of the pipeline to dtreeviz.  That is inconvenient, but you can easily just get another variable attached to the polynomial features object. I'm not sure there's much advantage to those pipelines and so I just manually process the data.  sorry I can't be more help.

@windisch I assume that sklearn Pipeline should have an API to obtained the trained dataset and the trained model.
I've made a little research, and this link may help : https://stackoverflow.com/questions/48743032/get-intermediate-data-state-in-scikit-learn-pipeline
Here is how to get the training data, using fit_transform :

The trained model can be obtained from model.named_steps.
I'm confident you will find the solution, especially if you search for links like that from stackoverflow.

@windisch I assume that sklearn Pipeline should have an API to obtained the trained dataset and the trained model.
I've made a little research, and this link may help : https://stackoverflow.com/questions/48743032/get-intermediate-data-state-in-scikit-learn-pipeline
Here is how to get the training data, using fit_transform :

The trained model can be obtained from model.named_steps.
I'm confident you will find the solution, especially if you search for links like that from stackoverflow.

@tlapusan: Thanks for your reply and your research! I have a similar workaround, however, I split the pipeline into to and then calling fit_transform only on the first part to not re-fit the tree model onto the new data. I was wondering (and that's actually the reason why I opened this feature request) whether all of this can (or should?) be done within dtreeviz internally, so that the user can just plug in his pipeline (with a decision tree model at the end). If you are interested I can try to integrate my solution into dtreeviz. What do you think?

@tlapusan: Thanks for your reply and your research! I have a similar workaround, however, I split the pipeline into to and then calling fit_transform only on the first part to not re-fit the tree model onto the new data. I was wondering (and that's actually the reason why I opened this feature request) whether all of this can (or should?) be done within dtreeviz internally, so that the user can just plug in his pipeline (with a decision tree model at the end). If you are interested I can try to integrate my solution into dtreeviz. What do you think?

@windisch definitely it's an idea we should discuss. thanks for mentioning it !
How do you think the API for dtreeviz should look to support sklearn pipelines ?
Right now, dtreeviz has support for sklearn, xgboost, pyspark (plans to add for lightgbm and catboost) and vizualisations methods are expecting arguments like these :

raw tree model, training dataset, features, etc
an implementation of ShadowDecTree, which also requires to have upfront the training dataset, features...

It could be a little difficult to include sklearn pipelines, without affecting the API... but sklearn pipeline it's a valid use case for dtreeviz (I expect that many people are in this use case like you, but you were the first one to create an issue ;) )
Another idea would be have a clear idea how we can extract the training dataset, features, raw model from Pipeline (maybe without workarounds, if it's possible...). Having this variables, we can use dtreeviz as it is... AND we could write an example in one of our notebooks.

@windisch definitely it's an idea we should discuss. thanks for mentioning it !
How do you think the API for dtreeviz should look to support sklearn pipelines ?
Right now, dtreeviz has support for sklearn, xgboost, pyspark (plans to add for lightgbm and catboost) and vizualisations methods are expecting arguments like these :

raw tree model, training dataset, features, etc
an implementation of ShadowDecTree, which also requires to have upfront the training dataset, features...

It could be a little difficult to include sklearn pipelines, without affecting the API... but sklearn pipeline it's a valid use case for dtreeviz (I expect that many people are in this use case like you, but you were the first one to create an issue ;) )
Another idea would be have a clear idea how we can extract the training dataset, features, raw model from Pipeline (maybe without workarounds, if it's possible...). Having this variables, we can use dtreeviz as it is... AND we could write an example in one of our notebooks.

Hi @tlapusan: Sounds great. I haven't put to much thought into how the API should look like, but I can dig a bit deeper into how dtreeviz handels models and data objects to eventually come up with a implementation proposal.  Can I come back to you in case of questions?

Hi @tlapusan: Sounds great. I haven't put to much thought into how the API should look like, but I can dig a bit deeper into how dtreeviz handels models and data objects to eventually come up with a implementation proposal.  Can I come back to you in case of questions?

@windisch sure, we can discuss on this topic. thanks.
please don't forget the other idea, of extracting the model, training dataset, features from Pipeline and use them in dtreeviz (as it is). For me, it sounds like a good approach :)

@windisch sure, we can discuss on this topic. thanks.
please don't forget the other idea, of extracting the model, training dataset, features from Pipeline and use them in dtreeviz (as it is). For me, it sounds like a good approach :)

@tlapusan: This is how we may can make it work. What do you think? If this goes into the right direction, I will finish this up and will open a PR the next days.

@tlapusan: This is how we may can make it work. What do you think? If this goes into the right direction, I will finish this up and will open a PR the next days.

hi @windisch, I've looked over your code, I liked that you created also unit tests 👍
My thoughts about this approach :

we still need to initialize ShadowSKDTree with x_data, y_data, features, but they are not training dataset used by the model, they are the raw datasets. (a clear example can be seen in your pytest module) This can create confusion to the API and also the initialization process can be a heavy one for ShadowSKDTree if we are dealing with big pipelines.
The ShadowSKDTree scope should be to get the model metadata through its API, not to preapare the training dataset, features, etc

Anyway, your code is valuable and other people can benefit from it :

we can create a notebook example, so people could see how to extract the needed arguments from a sklearn pipeline.
we can create a utility module in dtreeviz which could analyze the the pipeline and return the arguments needed by ShadowSKDTree.

@parrt, @windisch what do you think ?

hi @windisch, I've looked over your code, I liked that you created also unit tests 👍
My thoughts about this approach :

we still need to initialize ShadowSKDTree with x_data, y_data, features, but they are not training dataset used by the model, they are the raw datasets. (a clear example can be seen in your pytest module) This can create confusion to the API and also the initialization process can be a heavy one for ShadowSKDTree if we are dealing with big pipelines.
The ShadowSKDTree scope should be to get the model metadata through its API, not to preapare the training dataset, features, etc

Anyway, your code is valuable and other people can benefit from it :

we can create a notebook example, so people could see how to extract the needed arguments from a sklearn pipeline.
we can create a utility module in dtreeviz which could analyze the the pipeline and return the arguments needed by ShadowSKDTree.

@parrt, @windisch what do you think ?

@tlapusan: thanks for your comments. I tried to make as less changes to ShadowSKDTree as possible, and extracting all necessary information in its constructor and then pushing it upstream seemed canonical to me. But you are right, in case of big pipelines, applying the transformation-part of the pipeline might be very time intensive.
To 1): Yes, x_data and y_data are not necessarily the train datasets, but to apply  the model on them, we have to transform them first (as we would do in training, but without fitting the model).
To 2): I see your point!
To 3): I think you are right, there may be scenarios where the tree model is not the last step of the pipeline (but I think they are rare).
If I understand you correctly, than instead of having
viz = dtreeviz(
    my_pipeline,
    data_x,
    data_y,
    target_name=my_target,
    feature_names=my_feature_names)

and doing all the (may heavy) computations in the constructor of ShadowSKDTree,  you instead suggest to have something like this:
data_x_transfomed, my_feature_names_transfomed, tree_of_pipeline = some_helper(my_pipeline, data_x, data_y)

viz = dtreeviz(
    tree_of_pipeline,
    data_x_transfomed,
    data_y,
    target_name=my_target,
    feature_names= my_feature_names_transfomed)

Am I correct?  I'm fine with both ways. I can implement this helper and try to set up a notebook explaining how to use it.

@tlapusan: thanks for your comments. I tried to make as less changes to ShadowSKDTree as possible, and extracting all necessary information in its constructor and then pushing it upstream seemed canonical to me. But you are right, in case of big pipelines, applying the transformation-part of the pipeline might be very time intensive.
To 1): Yes, x_data and y_data are not necessarily the train datasets, but to apply  the model on them, we have to transform them first (as we would do in training, but without fitting the model).
To 2): I see your point!
To 3): I think you are right, there may be scenarios where the tree model is not the last step of the pipeline (but I think they are rare).
If I understand you correctly, than instead of having
viz = dtreeviz(
    my_pipeline,
    data_x,
    data_y,
    target_name=my_target,
    feature_names=my_feature_names)

and doing all the (may heavy) computations in the constructor of ShadowSKDTree,  you instead suggest to have something like this:
data_x_transfomed, my_feature_names_transfomed, tree_of_pipeline = some_helper(my_pipeline, data_x, data_y)

viz = dtreeviz(
    tree_of_pipeline,
    data_x_transfomed,
    data_y,
    target_name=my_target,
    feature_names= my_feature_names_transfomed)

Am I correct?  I'm fine with both ways. I can implement this helper and try to set up a notebook explaining how to use it.

Hi @windisch,
I'm also for some_helper version

Hi @windisch,
I'm also for some_helper version

@tlapusan: Whats the recommended place to put utitlities in dtreeviz?

@tlapusan: Whats the recommended place to put utitlities in dtreeviz?

@windisch i think we have a utils.py

@windisch i think we have a utils.py

This can me closed! Thanks for merging!

source: gharchive/issue

authors: parrt tlapusan windisch

repo: parrt/dtreeviz

license: mit

license_source: bigquery


text:
Handle numerous leaves better in leaf stats plots - no overlaps

When a tree has many leaves the x-axis ticks of the leaf stats plots can begin to overlap. One solution, illustrated below with ctree_leaf_distributions(), is to make the plot larger with the figsize parameter. However, we should probably build another solution to selectively label some leaves, or otherwise turn off the individual labels on all leaves.
See additional discussion on https://github.com/parrt/dtreeviz/pull/220

Another solution would be to have a horizontal scrolling, like explained here :  https://www.geeksforgeeks.org/python-scroll-through-plots/
Made some fast copy/paste with some scrolling code examples, but didn't work for me. Further investigation would be needed.

Another solution would be to have a horizontal scrolling

I think we should still have a printable, to a flat/non-interactive file, solution as well.

Yes definitely we want to be able to print something. If I understand they use case, we'd like to learn which leaves are the most important and to learn about information on the samples in that leaf. Why are we not then simply sorting most important on the left so that we are guaranteed to at least see that stuff. Nobody cares about the node id value per se, you only need the node id to ask questions about it later.
So another words for the graph above that giant spike at node 99 should be shifted all the way to the left.
Another possibility is to remove the tick labels from the X axis and make them sit above the bars themselves. The text could probably be rotated left 90° so it goes Down to open status left to right. That should make a bunch more room

Let me try prototyping out a solution that uses matplotlib to draw the axis ticks where it thinks they should be. Would be a maintainable solution as we're relying on matplotlib, it just may have gaps along the axis if the node_id's are not sequential.

@parrt @tlapusan see here: https://github.com/parrt/dtreeviz/pull/254

Fixed for ctree_leaf_distributions in https://github.com/parrt/dtreeviz/pull/254
@parrt should I now do the same for rtree_leaf_distributions, leaf_sizes, leaf_purity? I should probably refactor the code to be reusable, similar to _format_axes. Are there any other plots I am missing?

basically, you'd update all leaf plots?  Makes sense to me.  Probably good to refactor, yep!

authors: mepland parrt tlapusan


text:
Adapt Cloudflare Beacon

Added Cloudflare privacy-respecting analytics with commit 966a1ca. However, this is not great - the Cloudflare beacon should be loaded statically from our trusted domain instead of dynamically. Yes, CSP would prevent a downgrade attack. But still, I'm nothing if not a control freak. This also resolves uMatrix blocking it by default.
This will also require some method to detect whenever the beacon is out-of-date so it can be updated manually.

meh.

repo: partridge-tech/chris-blog


text:
[Feature] Identity-initialized QNN

In the context of barren plateau mitigation techniques, this model allows to create and initialize the weights of a QNN in a similar fashion to what proposed by Grant et al..

[ ] documentation
[ ] tests
[ ] tutorial

Thanks a lot for this! Very nice to have I think. I would suggest a little refactoring though. It is less error prone to construct blocks with specific parameters via
# variational parameter
RX(0, Parameter("theta", value=some_value))

# feature parameter
RX(0, Parameter("theta", value=some_value, trainable=False))

instead of using set_parameter. what do you think?

Thanks Niklas. Just to make sure, do you mean that all the parameter initialization can be done within the circuit and before injecting it into the QuantumModel?
If so, do we still need an IdentityQNN or a specific layer/circuit can do the work?

Regarding documentation/examples, I was thinking about adding an identity_qnn.py script in the /examples/models folder, as well as a section in the custom_models.md file in /docs/advanced_tutorials. Do you agree?

Thanks @nmheim. Just to make sure, do you mean that all the parameter initialization can be done within the circuit and before injecting it into the QuantumModel? If so, do we still need an IdentityQNN or a specific layer/circuit can do the work?

yes, exactly, the identity_block function you have now should do the trick. I can see you did it already:) another nitpick of mine: could we rename the identity_block function to something that reflects that its an ansatz which (only initially) is an identity? otherwise it could be a bit confusing, because we already have an identity block (I).

Thanks @nmheim. Just to make sure, do you mean that all the parameter initialization can be done within the circuit and before injecting it into the QuantumModel? If so, do we still need an IdentityQNN or a specific layer/circuit can do the work?

yes, exactly, the identity_block function you have now should do the trick. I can see you did it already:) another nitpick of mine: could we rename the identity_block function to something that reflects that its an ansatz which (only initially) is an identity? otherwise it could be a bit confusing, because we already have an identity block (I). Thanks a lot for all the work here!

Sure, thanks @nmheim! Do you think identity_initialized_block would do it? Maybe it's a little too verbose. The tags that I'm using are BPMA as for barren-plateau-mitigation-ansatz, so maybe bpm_something can be an alternative?

@n-toscano wouldn't identity_initialization work too? Having _block or _ansatz in the name would be more precise but as you say, verbose.

@n-toscano wouldn't identity_initialization work too? Having _block or _ansatz in the name would be more precise but as you say, verbose.

I kind of like identity_initialized_ansatz. verbose, but clear :P

One more thing: I know that qadence's hea has multiple options for the entangling technique, to make it more hardware-efficient. Is this something that we should try to include in this PR or makes sense to expand this in the future?

I think whatever interface decisions you can make based on making it similar to the hea function, the better, but for sure no need to implement all the analog options in this MR.

Thanks again for this! The code looks good to me. Before merging, can we add a test that verifies that the ansatz is doing what it is supposed to, i.e. something like:
state = rand_state(2)
assert torch.allclose(state, run(identity_initialized_ansatz(2,2), state=state))

Makes sense! Solved with the latest commit

authors: gvelikova jpmoutinho n-toscano nmheim

repo: pasqal-io/qadence


text:
Calendar size problem in small screen

(Required) Version Number: 8.0.3
Description
Previously I have no issues with this but recently the calendar frame have issue in small screen (iPhone SE & other iPhone with small screen). I thought it was because I didn't update the library. But then once updated, the problem still occur. It has no issue on bigger screen though (iPhone 11, iPhone 6s Plus)

*screenshot from iPhone SE on simulator

*screenshot from iPhone 11 on simulator
My calendar is in horizontal scroll direction and I set the calendar height to 360.
Is it possible to override the calendar width size to follow the screen size? If it is possible, where should I put the code?

I fixed the issue by setting the cellSize

repo: patchthecode/JTAppleCalendar


text:
Error while changing endDate dynamically – cellCacheSection does not exist

Hi!
First congratulation and thanks for the awesome job with this library.
Using version 7.1.4
OK,
So, I have a datePicker to select the startDate and the endDate. When the user changes either one, I'm calling reloadData() on the calendar. When I modify the startDate the calendar works as expected.
Now, when I change the endDate and call reloadData()
developerError is called in this part of the code of the collectionView numberOfItemsInSection
     public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        if calendarViewLayout.cellCache.isEmpty {return 0}
        guard let count =  calendarViewLayout.cellCache[section]?.count else {
            developerError(string: "cellCacheSection does not exist.")
            return 0
        }
        return count
    }

Any idea of what's happening? Is there a correct way of updating dynamically the calendar view?

hmm. this should not be happening.
Let me try to replicate this on my sample app.
Will respond here in a bit.

Hey I just tested this on the sample application I have, and i cannot reproduce you issue.
Do you have a zipped empty sample app that can demonstrate the issue?

Okay so I found my problem.
I had in layoutSubviews() this code
self.calendarView.ibCalendarDelegate = self
 self.calendarView.ibCalendarDataSource = self

So I figured out that that may be the problem and I changed it to
       // Set Calendar Delegates
        if self.calendarView.ibCalendarDelegate == nil && self.calendarView.ibCalendarDataSource == nil {
            self.calendarView.ibCalendarDelegate = self
            self.calendarView.ibCalendarDataSource = self
        }

And problem solved!
To give a little of context, I have this code in layoutSubviews() because I was having problems with awakeFromNib being called before one of my variables be initialized (the calendar is inside a table view cell).
Sorry for taking your time. Hope this helps someone.

Its cool.
good its fixed.

So I figured out that that may be the problem and I changed it to
       // Set Calendar Delegates
        if self.calendarView.ibCalendarDelegate == nil && self.calendarView.ibCalendarDataSource == nil {
            self.calendarView.ibCalendarDelegate = self
            self.calendarView.ibCalendarDataSource = self
        }

And problem solved!

highly appreciate for this solution, faced same issue, now it works the way i needed.
p.s. finally found out this thread after a variety of search queries to find out what i need.


text:
Fail to allocate bitmap

when running the agent everything works as expected, however once the games/iterations start reaching higher numbers (around 100-300 commonly around 200) the program closes itself and i get a "Fail to allocate bitmap" in the visual studio code debugger. is there a solution to fix this or continue the program in the event of this failure? thank you

Me too

Yes, the solution is to get more memory, see issue #7 to do this for the GPU, i also recommend instead of using microsoft visual studio, you should get an actual installation of python here.

repo: patrickloeber/snake-ai-pytorch


text:
Chart fails to load all sets after loading 0 values

How to reproduce
See code below.
Press the "load 2 sets" button and see two sets of values are plotted correctly.
Press the "load 1 set of 0 value" button and see that no sets are plotted.
Press the "load 2 sets" button again and see that only 1 set of vales are plotted.
@Composable
fun Greeting(viewModel: MyViewModel = MyViewModel()) {
Chart(
chart = columnChart(),
chartModelProducer = viewModel.producer,
modifier = Modifier
.width(500.dp)
.height(500.dp)
)
Column {
    Button(onClick = { viewModel.load1() }) {
        Text("Load 2 sets")
    }

    Button(onClick = { viewModel.load2() }) {
        Text("Load 1 set of 0 value")
    }
}

}
class MyViewModel : ViewModel() {
val producer: ChartEntryModelProducer = ChartEntryModelProducer()
fun load1() {
    producer.setEntries(
        listOf(
            listOf(
                FloatEntry(5f, 10f),
                FloatEntry(10f, 20f),
                FloatEntry(15f, 15f),
                FloatEntry(20f, 18f),
                FloatEntry(25f, 8f),
                FloatEntry(30f, 28f),
            ),
            listOf(
                FloatEntry(5f, 10f),
                FloatEntry(10f, 20f),
                FloatEntry(15f, 15f),
                FloatEntry(20f, 18f),
                FloatEntry(25f, 8f),
                FloatEntry(30f, 28f),
            )
        )
    )
}

fun load2() {
    producer.setEntries(
        listOf(
            listOf(
                FloatEntry(5f, 0f),
                FloatEntry(10f, 0f),
                FloatEntry(15f, 0f),
                FloatEntry(20f, 0f),
                FloatEntry(25f, 0f),
                FloatEntry(30f, 0f),
            )
        )
    )
}

}
@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
GraphTestTheme {
Greeting()
}
}
Observed behavior
After plotting a set of values of y 0, the multiple plot sets never recover and only 1 set are shown.
Expected behavior
Everytime we request multiple sets of data then they are show regardless of what happened previously.
Vico version(s)
Latest stable version
Android version(s)
minsdk 29, targetsdk 34
Additional information
Viso dependency is com.patrykandpatrick.vico:compose-m3:1.13.1
Bug is repoducible in the Android Studio compose preview panel.

Hello! Thanks for the report. The problem seems to be that, for a data set whose every y value is zero, ChartValues.minY and ChartValues.maxY are both zero by default. Their difference is zero, which leads to division by zero, and so things fall apart. We’ll update the logic such that the default y range is [0, 1] for such data. In the meantime, to fix the problem, you can use an AxisValuesOverrider implementation along these lines:
object : AxisValuesOverrider<ChartEntryModel> {
    override fun getMaxY(model: ChartEntryModel) = if (model.maxY != 0) model.maxY else 1f
}

For MergeMode.Stack, replace model.maxY with model.stackedPositiveY.

Thanks, just dropped that in and it worked a treat 👍

I’m glad to hear that. You’re welcome!

Vico 2.0.0 Alpha 4 introduces the improvement mentioned above.

This will be resolved in Vico 1 too—Vico 1.14.0 Alpha 1 includes the fix.

Vico 1.14.0 is rolling out. Cheers!

authors: alpriest patrickmichalik

repo: patrykandpatrick/vico


text:
Dark nav - inconsistent behavior/missing documentation

In Red Hat Cloud Services, blue underline has several different ways of implementation and there is no documentation which one is correct.
Here is no space under blue line.

Here is some space under blue line.

Which one should be used? Reading through the documentation, it is not clear either. Once its is with no margin and the second time with a margin. This is confusing and we are not being consistent. I recommend keeping the space under the blue line - everywhere.

@kybaker @mceledonia

It looks like there is no space when subnav is expanded and space when it is just a parent item.
I would be in favor of, instead of moving the blue line, moving the background highlight bottom edge up to meet the bottom of the blue line. Then leaving it how it is currently for expanded subnav. Here is a quick before/after mockup what do you think @kybaker?

@mceledonia @mcoker We opted to have the two different displays for the expanded item background one taller one when open and a shorter one when closed. It is more like having a hover or an open state. The problem is we just need to document this in a way that is more understandable. @mcoker

Can you share some visuals @kybaker to support what you mean?

authors: kybaker mceledonia mcoker terezanovotna

repo: patternfly/patternfly-next


text:
Feat(breadcrumb): Implements Breadcrumb Component

Feature: https://github.com/patternfly/patternfly-next/issues/33
This PR handles:

Basic, single line breadcrumb
Basic, single line breadcrumb without a home link
Breadcrumb with the last list item styled as Page Title

Deploy preview for pf-next ready!
Built with commit 6385a4e20db2ba073325b41343cae7be259fb31c
https://deploy-preview-819--pf-next.netlify.com

Thanks for contributing @marshmalien! I've tagged @matthewcarleton and @michael-coker to see if they can review.

@marshmalien Looks great! In Firefox the text is not vertically aligned but I am sure that is the Overpass bug.

Just one small thing... In the first example it goes "Section Home > Section Title > Section Home > Section Landing." Shouldn't the third item be labeled "Section Title?"

authors: LHinson kybaker marshmalien mcarrano patternfly-build


text:
TypeError: CaptureIO.tool_output() got an unexpected keyword argument 'log_only'

Issue
2024-06-27 12:47:51.479 Uncaught app exception
Traceback (most recent call last):
File "/home/ian/miniconda3/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/gui.py", line 543, in
status = gui_main()
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/gui.py", line 539, in gui_main
GUI()
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/gui.py", line 374, in init
self.process_chat()
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/gui.py", line 417, in process_chat
res = st.write_stream(self.coder.run_stream(prompt))
File "/home/ian/miniconda3/lib/python3.10/site-packages/streamlit/runtime/metrics_util.py", line 408, in wrapped_func
result = non_optional_func(*args, **kwargs)
File "/home/ian/miniconda3/lib/python3.10/site-packages/streamlit/elements/write.py", line 167, in write_stream
for chunk in stream:  # type: ignore
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/coders/base_coder.py", line 588, in run_stream
yield from self.send_new_user_message(user_message)
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/coders/base_coder.py", line 880, in send_new_user_message
test_errors = self.commands.cmd_test(self.test_cmd)
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/commands.py", line 544, in cmd_test
return self.cmd_run(args, True)
File "/home/ian/miniconda3/lib/python3.10/site-packages/aider/commands.py", line 582, in cmd_run
self.io.tool_output(line, log_only=True)
TypeError: CaptureIO.tool_output() got an unexpected keyword argument 'log_only'
Version and model info
Aider v0.40.6
Models: gpt-4o with diff edit format, weak model gpt-3.5-turbo
Git repo: .git with 72 files
Repo-map: using 1024 tokens

Thanks for trying aider and filing this issue. I've pushed a fix.
The change is available in the main branch. You can get it by installing the latest version from github:
python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

authors: paul-gauthier sanity

repo: paul-gauthier/aider


text:
Flutter Blue Read Characteristics on Successful Connect

How do I listen to the response from my Arduino device on a successful connection?
Once connected, my Arduino devices send a list of values in this format [1111111111111111111111111111111111234].
How can I read these values using flutter blue

After you established a connection to your device, you can do a read or notify on any characteristic of your Arduino; then parse the message out the byte stream; If you want to transfer more than 20 bytes, the message must be split into several chunks and and re-composed by your app.
You should identify the service and characteristics  and the encoding of the data; use the following application for debugging/testing purposes.
nRF Connect for Mobile


text:
Issue with jexcel filter, filter dropdown is showing id instead of name for column type dropdown

For jexcel column filters, The filter is showing ids instead of name for the dropdowns having key value pair but for filtering I want to show names in column filters. Can you please help me achieve this?

Did you have a chance to try that on the Pro distribution? I understand you have sent a question, and the major of those are already features of the Pro.

Yes I tried this on pro distribution itself but that is not working over there

Yes I did tried this on pro version itself but that didn't work.
On Wed, 7 Oct 2020, 11:34 pm Paul Hodel, notifications@github.com wrote:

Did you have a chance to try that on the Pro distribution? I understand
you have sent a question, and the major of those are already features of
the Pro.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/paulhodel/jexcel/issues/1172#issuecomment-705103619,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANKQYTRO7UECMS2ZMGEJCGTSJSUUTANCNFSM4SHWTXGQ
.

I have just tested on both distributions and both seem to be working fine. Are you working on the most recent versions?
if you wish to create a jsfiddle and send me, I am happy to take a look.

authors: dollychhabriya paulhodel

repo: paulhodel/jexcel


text:
Formula not working into dynamically added row?

How can I use formula of previous row into dynamically added row ?
If I have three row in my table, In last column is for total  and I am adding new row by press of enter key then How can i add sum formula for 4th row ?

You can drop one email to: paul@jexcel.net asking assistance on this one.

https://jsfiddle.net/paulhodel/36f1p2nz/

authors: mvkanha paulhodel


text:
misc -- parse these later

https://old.reddit.com/r/gaybrosbookclub/comments/r3fahl/the_passenger_gay_guy_stuck_on_a_failing_cruise

brainstorming ideas for next world travels project:

a poem from around the world (https://en.wikipedia.org/wiki/Thomas_Kinsella)
movie from each country

https://en.wikipedia.org/wiki/Ban_Sai_Thong

repo: paulkaefer/read-the-world


text:
Sage Docs Browser R1

@paulmasson
Have a look at:
Sage Docs Browser R1
If you are interested I can do a pull request.

I'm still considering this idea. The intention of the project is really to have individual interlinked pages for each function or operation. I'm not really sure I like seeing so much information at one time in that context.

I understand - and agree to the sense you describe.
And it's also nice to have multiple and alternative ways of
viewing/slicing/dicing that content.
So I could see a separate folder with varies viewing scripts. One script
might highlight only files updated in the last three months.  Another might
show where each function has been used in other functions.
The primary access would be through the vehicle you describe. The existence
of other viewing types would help with specialty uses as well as being a
demo of how flexible your data is when hosted on GitHub and accessible via
the GitHub API.
On Sat, Feb 6, 2016 at 1:56 PM paulmasson notifications@github.com wrote:

I'm still considering this idea. The intention of the project is really to
have individual interlinked pages for each function or operation. I'm not
really sure I like seeing so much information at one time in that context.
—
Reply to this email directly or view it on GitHub
https://github.com/paulmasson/sagemath-docs/issues/1#issuecomment-180871919
.

authors: paulmasson theo-armour

repo: paulmasson/sagemath-docs


text:
JavaScript heap out of memory Alpine Linux

Describe the bug
JavaScript heap out of memory

Versions:

Chokidar version 3.5.3
Node version v16.15.1
OS version: Alpine Linux 3.14

To Reproduce:
I create 250000 files in FILE_DIR and get the memory leak, this code just log the messages
And the memory growth over time when create more files
const test = () => {
  const watcher = chokidar.watch([
    FILE_DIR
  ], {
    awaitWriteFinish: true,
    ignored: [
      `${FILE_DIR}/*.txt`,
    ],
    persistent: true,
    ignoreInitial: true,
    usePolling: true,
  });
  watcher
    .on('all', (event, path) => {
      console.log(`File ${path} has been ${event}`);
    })
}
test();

Found that this occurs even with a much smaller number of files, particularly if a large set of them happen to change all at once (e.g. ~180 or so in my case, all of them .css and .map files in only like 4 subdirectories, including the root one). That said, I found that removing the nested css/**/*.css glob pattern alleviates the issue. Give that a shot.
You can test this by checking memory usage live as it's running. I do this by running the script in debug mode via:
NODE_OPTIONS='--inspect' node test.js

Then open Chrome DevTools, click the Node.js logo that comes up and then open the "Memory" tab. There you'll see this below. For me, it always starts out at 5MB. However, with the nested subdirectory glob pattern **/ it will bloat until the VM runs out of memory (>2GB). But if I just explicitly watch *.css in each of the 4 explicit directories, it bloats to maybe 150MB at most, hovers around 70MB but eventually falls back to like 5MB.

But if I just explicitly watch *.css in each of the 4 explicit directories, it bloats to maybe 150MB at most, hovers around 70MB but eventually falls back to like 5MB.

The * wildcard had the same effect for us. We had to get rid of all globs/wildcards for not having the effect  that the application allocates too much memory. Already 800 files at the same time exceeded the 1500MB max memory.

repo: paulmillr/chokidar


text:
How do i install the multi-monitor version?

I tried cloning and checking out the multi-monitor branch but when I ran ./betterlockscreen, I got "i3lock-color: command not found".
I also tried the fork jeffmhubbard/multilockscreen, which works well but the text is not aligned properly in the box.
Edit: text and i3lock circle are both not aligned properly with the box.
What can I do to get either of these two repos to work? :)

Hey, so for the error "i3lock-color: command not found" I can reference #266 (where I'm on it) and #268 with explanation.
Even they might be equal now, I would suggest to use next instead of multi-monitor if you want the latest (mostly working) code.

I got the next branch working thanks to you but what can I do about the alignment of the text and box?

Can you please post ./betterlockscreen -v and your screen resolution and connection type? Then I will try to reproduce it :)

[B] Betterlockscreen
Betterlockscreen: version: v4.0.0-beta1 (dunst: false, feh: true)
i3lock: version 2.13.c.4 © 2010 Michael Stapelberg, © 2015 Cassandra Fox, © 2021 Raymond Li
Version: ImageMagick 7.1.0-4 Q16 x86_64 2021-07-18 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff webp wmf x xml zip zlib
feh version 3.7.1
Compile-time switches: curl exif inotify help stat64 verscmp xinerama
Screen 0: minimum 8 x 8, current 4000 x 2560, maximum 32767 x 32767
DP-4.8 connected 1440x2560+2560+0 right (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440     59.95*+
DP-2 connected primary 2560x1440+0+560 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440     59.95 + 143.86*
Hope this helps. I am trying to display loginbox on DP-2.

Just because I forgot and sometime it's the easiest thing we forget: did you update the image-cache after update to v4.0.0-beta1?

Just tried it and still same issue but I get lot's of "convert" warnings. Could that have something to do with it?
[B] Betterlockscreen
[] Updating image cache...
[=] Detected 2 display(s) @ 4000x2560 total resolution
[=] Original image(s): macos-desert.jpg macos-desert.jpg
[=] Processing display: DP-2 (1)
[=] Resolution: 2560x1440
[] Resizing base image...
[] Rendering 'dim' effect...
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. [*] Rendering 'blur' effect... convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[] Rendering 'dimblur' effect...
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. [*] Rendering 'pixel' effect... convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[] Rendering 'dimpixel' effect...
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. [*] Rendering 'color' effect... [=] Processing display: DP-4.8 (2) [=] Resolution: 1440x2560 [*] Resizing base image... [*] Rendering 'dim' effect... convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[] Rendering 'blur' effect...
convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. [*] Rendering 'dimblur' effect... convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[] Rendering 'pixel' effect...
convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. [*] Rendering 'dimpixel' effect... convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[] Rendering 'color' effect...
[] Creating canvas: 4000x2560
[] Rendering final wallpaper images...
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/resize.png' @ warning/png.c/MagickPNGWarningHandler/1748.
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/dim.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/dim.png' @ warning/png.c/MagickPNGWarningHandler/1748.
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/blur.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/blur.png' @ warning/png.c/MagickPNGWarningHandler/1748.
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/dimblur.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/dimblur.png' @ warning/png.c/MagickPNGWarningHandler/1748.
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/pixel.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/pixel.png' @ warning/png.c/MagickPNGWarningHandler/1748.
convert: invalid profile length /home/adam/.cache/betterlockscreen/1-DP-2/dimpixel.png' @ warning/png.c/MagickPNGWarningHandler/1748. convert: invalid profile length /home/adam/.cache/betterlockscreen/2-DP-4.8/dimpixel.png' @ warning/png.c/MagickPNGWarningHandler/1748.
[*] Rendering final lockscreen images...
[+] Done

Can you try to clear (delete) the whole cache-dir ~/.cache/betterlockscreen/ and try the update command again?
Can you please post the full command you have used to update the cache?

Still same issue after using that command. I was trying to use ./betterlockscreen -u /path/to/wallpaper

Okay, then I will have to take a deeper look at it! In the meantime #266 is resolved so with beta2 you will not need to have the configuration for $i3lockcolor_bin anymore :) I would be thankful if you could try it out and give me feedback.

Just set main monitor to 1080p, unplugged second monitor, deleted cache, updated with a different wallpaper but still same issue.

Okay, thanks - what OS are you using? How have you installed ImageMagick?

I'm using Arch and I have ImageMagick 7.1.0.4-2 from the aur.

I got the next branch working thanks to you but I am still having issues with alignment of the text and box?
Any ideas?

Sorry about the quality, I wasn't sure how to screenshot the lock screen.

Im added to .Xrecources Xft.dpi:        96

So the issue was a higher DPI before? Then I could try to reproduce it :)

On Xft.dpi: 108 looks like on photo

Thanks then I will look into if we can resolve this or at least print a warning for the user 👍🏻

Np 😃

I've opened an issue for development for that, if you feel goo with that I would like to close this issue? :)

authors: SebTM SysadminLink adamstuck

repo: pavanjadhaw/betterlockscreen


text:
Quote generated HTML has an empty paragraph for the caption

I have the following source:
{
  "type": "quote",
  "data": {
    "text": "a",
    "caption": "",
    "alignment": "left"
  }
}

It produces following HTML code:

 a

It should skip the first paragraph when the caption is empty.

a

Hey, @literakl . Sorry, but the library doesn't provide a default parser function for type: "quote" . It must be a parser function defined within your project or library. So, you will need to accustom it to your needs accordingly.
Here is the list of parser functions, provided with the library.
https://github.com/pavittarx/editorjs-html#supported-block-types
Here is the source, for said parser functions.  https://github.com/pavittarx/editorjs-html/blob/master/src/transforms.js
As, you can see, the block of type: "quote" is not being handled by the library,

Trobouleshooting Information:

Check your custom parser functions.
Check the version of the library you are using.
Check within /node_modules/editorjs-html/src/transforms.js

More on custom parser functions here, https://github.com/pavittarx/editorjs-html#extend-for-custom-blocks

You were right. It was a custom parser. Would you add table and quote render to your library?
    quote: (obj) => {
      let html = `<blockquote style="text-align:${obj.data.alignment};">`;
      if (obj.data.caption != null && obj.data.caption !== '') {
        html += `<p>${obj.data.caption}</p> `;
      }
      html += `${obj.data.text} </blockquote>`;
      return html;
    },

and
    table: (obj) => {
      let rows = '', rendered = '';
      obj.data.content.map((row) => {
        let cells = '';
        row.map((cell) => {
          cells += `
${
            cell}
	\n`;
        });
        rows += `<tr>${cells}</tr>\n`;
      });
      rendered += `${'

'
      + '
\n

'}${
        rows}

\n

\n`;
      return rendered;
    },

@literakl Since, editorjs supports quote and table blocks by default. I would be more than happy to add them. To provide your changes or suggestions, please open a PR (Pull Request) with suggested changes.

Here is how you do it, if you don't know already, https://opensource.com/article/19/7/create-pull-request-github

authors: literakl pavittarx

repo: pavittarx/editorjs-html


text:
Overwrite default edit view

Link to reproduction
https://github.com/payloadcms/payload/compare/main...dkirchhof:payload:custom-edit-view-test
Describe the Bug
Hello,
I want to extend the default edit view of a collection, so first I copied the original edit view and added it to the collection admin config. While opening the edit page of the collection, everything works fine. While opening this view in a drawer, the application will crash.
It seems that the component will be rendered with different props as the original one.
Related issue: https://github.com/payloadcms/payload/issues/4900
To Reproduce
Clone the linked repo and run pnpm dev admin.
Working example:

Open the Test2 collection in the admin panel.
Create a new doc.

Not working:

Open the Test collection in the admin panel.
Create a new doc and select a Test2 doc in the relation field.
See error logs in the console.

Some missing props (like permissions) are causing errors in the DocumentControls and DocumentFields components of my custom edit view.
Payload Version
2.8.2
Adapters and Plugins
No response

@dkirchhof are you able to confirm if this is still an issue in v3?

Didn't have time to check it in payload 3. But its unlikely that there is still a need to overwrite the view in payload 3.

authors: dkirchhof jacobsfletch

repo: payloadcms/payload


text:
chore: update drizzle-orm beta 0.30.9-d939ec2

Running CI test on new beta release. DO NOT MERGE!

This could also be left as draft if you want to prevent a merge.

authors: DanRibbens denolfe


text:
Manual recurring payments not working with WooCommerce Subscriptions

Describe the bug
When the gateway plugin is activated with WooCommerce Subscriptions, the customer is unable to use payment methods supporting manual renewals, e.g. online banking payments. This bug is caused by the insufficient logic in the ProviderForm.php file. It uses a helper method from \Paytrail\WooCommercePaymentGateway\Helper::getIsSubscriptionsEnabled() to determine whether to render other than credit card payment methods. If the plugin is enabled, no other payment methods are rendered on the form. This check should take into account the manual recurring payments option in WooCommerce Subscriptions.
Steps to Reproduce

Install WooCommerce Subscriptions.
Install Paytrail For WooCommerce.
Enable manual recurring payments in WooCommerce Subscriptions settings.
Go to the checkout page in the front-end with a subscription product in the cart.
See only the card payment option in the provider selection form.

Expected behaviour
If manual recurring payments are enabled, all payment methods should be available in the provider selection form. If the end-user selects a method other than credit card, the subscription orders should be set to be renewed manually. If the credit card option is selected, the automatically scheduled token payment process should be activated.
To do this, add a check for the manual recurring payments option for the provider form and display all methods if the option is enabled.

Here's a link to the setting guide:
https://woocommerce.com/document/subscriptions/store-manager-guide/#renewal-settings

At least the newest versions of WooCommerce Subscrptions provide a helper method for checking the setting:
https://github.com/Automattic/woocommerce-subscriptions-core/blob/c87beae8bb1996e67f6c8ed16d212048c4df6155/includes/wcs-renewal-functions.php#L161

@villesiltala We actually had support for manual recurring payments in the past, but it caused problems to certain merchants, so we decided to stop supporting it.
However, we are now planning on adding an option to the module settings which would enable merchants to use this functionality if they so choose.
I will let you know when it's available.

@loueranta-paytrail thanks for the reply! In this case, the merchant does not have credit card payments enabled and thus automatically recurring payments are not available. Allowing users to manually renew their subscriptions has been the solution for the shop.

Any updates on this? This missing feature prevents us from using the new official Paytrail plugin version for various customers. We are still relying on a forked version of the old Checkout Finland implementation. This situation is not optimal, but until the official plugin starts supporting manual renewals and stops forcing credit card payments as the only payment option for WooCommerce Subscription orders, we are force to use forked versions.
Could you give us some schedule, when this feature will be implemented? If this is not on the roadmap anymore, please let us know, and we can start looking for alternative payment gateways. Thanks!

@villesiltala This was fixed in the latest release (1.3.0)

authors: loueranta-paytrail villesiltala

repo: paytrail/paytrail-for-woocommerce


text:
🛑 Departamento is down

In 4d27600, Departamento (http://cca.unb.br/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Departamento is back up in e0e42ed after 52 minutes.


text:
🛑 Departamento is down

In d387c7f, Departamento (http://cca.unb.br/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Departamento is back up in 6fc0431 after 14 minutes.


text:
Modular Multiplicative Inverse

Do the checklist before filing the issue:

[ ] Do you have Node.js and all the relevant dev-dependencies installed?
[ ] Is this a bug fix?
[x] Is this an enhancement?
[x] Is this a feature request?

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

In many competitive coding questions it is required to get modulo multiplicative inverse of your answer with some other number, many a times, it's prime - 10^9+7.
So, an added functionality to find modulo multiplicative inverse of two numbers.
Maybe a separate function, for when the numbers are prime, coprime, and have factors.
Links-
Modular Multiplicative Inverse GFG

[Function: M.modInverse(a, b)]
Validation:

check for gcd(a, b) = 1 else return an error indicating that a & b aren't relatively prime!
check for argument type

Category: Mathematical Utilities

@pbiswas101 For this we need to implement a power function with modulo M in  O(log n) time.    So, we have to build it as another function of  MathBall. Is it okay to make an issue on Power function?
.

@Indrajit1997 Alright, you can raise an issue discussing its implementation as M.pow(a, b, m) with the last parameter being optional! So, that it can also be used as M.pow(a, b)

@pbiswas101 For this we need to implement a power function with modulo M in O(log n) time. So, we have to build it as another function of MathBall. Is it okay to make an issue on Power function?

The modular multiplicative inverse can be implemented using Extended Euclid Theorem, which doesn't require any power function with modulo M.
Additionally, here are a few points for implementing modulo multiplicative inverse -

First need to check whether the numbers are relatively prime or not, ie. having GCD 1.
If GCD is 1, proceed to find the modular multiplicative inverse using Extended Euclid Theorem, which won't require any modulo power function.
If GCD is anything other than 1, return 0, as 0 can never be a modulo multiplicative inverse of a number.

Example Output -
M.modInv(10,460) = 0;    /* 10,460 not relatively prime, so return 0 */
M.modInv(3,26) = 9;        /* 3,26 relatively prime, so return modulo multiplicative inverse */

Complexity for Extended Euclid as well as Fermat is both - O(Log m)
Validation -

Should be a function
Should return 0 for relatively not prime numbers
Should work for integers, both positive and negative
Should return errors for anyother combination, except integers

PS: Add more validations, if any

Can I work on this ?

@devRD You're assigned!


text:
Add queue hash

Fixes #312 by adding queue hash.

@pcfens hopefully this is simple enough addition to be merged and release new version, thanks

repo: pcfens/puppet-filebeat


text:
Decommissioning a C* node fails

Decommission of a node fails:
ccm create test -i 127.0.0. -v 2.1.11
ccm populate -n 2
ccm start --wait-for-binary-proto
ccm node2 decommission

ccmlib.node.NodetoolError: Nodetool command '/Users/jorge/.ccm/repository/2.0.17/bin/nodetool -h localhost -p 7200 decommission' failed; exit status: 1;
Exception in thread "main" java.io.IOError: java.io.IOException: Thread signal failed
	at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:746)
	at org.apache.cassandra.service.StorageService$5.run(StorageService.java:3004)
	at org.apache.cassandra.service.StorageService.unbootstrap(StorageService.java:3073)
	at org.apache.cassandra.service.StorageService.decommission(StorageService.java:3010)

The node correctly leaves the ring, though. Cassandra log:
INFO [Thread-2] 2016-01-29 15:34:15,359 ThriftServer.java (line 135) Listening for thrift clients...
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:16,351 StorageService.java (line 981) LEAVING: sleeping 30000 ms for batch
processing and pending range setup
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,352 StorageService.java (line 981) LEAVING: replaying batch log and streaming data to other nodes
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,360 StreamResultFuture.java (line 87) [Stream #71a1e410-c695-11e5-9a65-130aecf8e504] Executing streaming plan for Unbootstrap
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,360 StorageService.java (line 981) LEAVING: streaming hints to other nodes
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,366 StreamResultFuture.java (line 87) [Stream #71a31c90-c695-11e5-9a65-130aecf8e504] Executing streaming plan for Hints
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,366 StreamResultFuture.java (line 91) [Stream #71a31c90-c695-11e5-9a65-130aecf8e504] Beginning stream session with /127.0.0.1
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,366 StreamSession.java (line 203) [Stream #71a31c90-c695-11e5-9a65-130aecf8e504] Session does not have any tasks.
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,367 StreamResultFuture.java (line 186) [Stream #71a31c90-c695-11e5-9a65-130aecf8e504] Session with /127.0.0.1 is complete
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,369 StreamResultFuture.java (line 220) [Stream #71a31c90-c695-11e5-9a65-130aecf8e504] All sessions completed
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,370 ColumnFamilyStore.java (line 808) Enqueuing flush of Memtable-local@1236339041(50/500 serialized/live bytes, 2 ops)
 INFO [FlushWriter:1] 2016-01-29 15:34:46,370 Memtable.java (line 362) Writing Memtable-local@1236339041(50/500 serialized/live bytes, 2 ops)
INFO [FlushWriter:1] 2016-01-29 15:34:46,377 Memtable.java (line 402) Completed flushing /Users/jorge/.ccm/test/node2/data0/system/local/system-local-jb-6-Data.db (77 bytes) for commitlog position ReplayPosition(segmentId=1454078046635, position=96724)
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,378 StorageService.java (line 1795) Removing tokens [0] for /127.0.0.2
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:34:46,381 StorageService.java (line 3021) Announcing that I have left the ring for 30000ms
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:35:16,382 ThriftServer.java (line 141) Stop listening to thrift clients
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:35:16,393 Server.java (line 184) Stop listening for CQL clients
 WARN [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:35:16,393 Gossiper.java (line 1439) No local state or state is in silent shutdown, not announcing shutdown
 INFO [RMI TCP Connection(4)-127.0.0.1] 2016-01-29 15:35:16,394 MessagingService.java (line 731) Waiting for messaging service to quiesce
 INFO [ACCEPT-/127.0.0.2] 2016-01-29 15:35:16,394 MessagingService.java (line 1001) MessagingService has terminated the accept() thread

Under OS X with C* 2.0, 2.1 and 2.2. Tested on Windows for C* 2.0
cc @landim

Tested on Windows for C* 2.0

Just to confirm, you get the same result on Windows?
I've run this on Ubuntu and did not see this error:
+ ccm create test -i 127.0.0. -v 2.1.11
Current cluster is now: test
+ ccm populate -n 2
+ ccm start --wait-for-binary-proto
+ ccm node2 decommission

It happened in windows too. The decommission cmd do not stops the node, it continues running.

On Windows the behaviour is different, with C* 2.1 it works as expected.
With C* 2.0, the ccm node2 decommission command exits with 0 but the node does not start shutdown.

Just to note that fixing it for Windows (with C* 2.0) is a higher priority for me, as it's going to be used for C# driver CI.

All CCM does here is call nodetool decommission. I can confirm that just running C*, I still see the nodes fail to stop on the listed operating systems after a decom. I think you are seeing a C* bug, not a CCM problem. Open an apache jira for C*.

authors: jorgebay landim mambocab ptnapoleon

repo: pcmanus/ccm


text:
Slovenian translations

Added Slovenian translations and rebased commits that were connected with translations. Tried to rebase on top of current MASTER head, but it didn't build due to jquery-ui issue.

Wow amazing start to this @matictrebusak !! 🎉 can't thank you enough for all the nice clean work and rebasing on top.
We just fixed the build errors in master so I'll go ahead and merge this

authors: matictrebusak pcottle

repo: pcottle/learnGitBranching


text:
Error when trying to install the version firestore-pdf-generator@0.14.1

{    "ResourceType": "gcp-types/cloudfunctions-v1:projects.locations.functions",    "ResourceErrorCode": "400",    "ResourceErrorMessage": {       "code": 400,       "details": [          {             "@type": "type.googleapis.com/google.rpc.BadRequest",             "fieldViolations": [                {                   "field": "function",                   "description": "Invalid JSON payload received. Unknown name \"availableMemoryMB\" at 'function': Cannot find field."                }             ]          }       ],       "message": "Invalid JSON payload received. Unknown name \"availableMemoryMB\" at 'function': Cannot find field.",       "status": "INVALID_ARGUMENT",       "statusMessage": "Bad Request",       "requestPath": "https://cloudfunctions.googleapis.com/v1/projects/.../functions",       "httpMethod": "POST"    } }

what is the solution i am also facing same issue

when will the new version will be live on firebase extension ?? or is there way to manually change when can i expect to get this working

I'm sorry it is causing any annoyance with your workflow.
At the moment the only solution would be to install a previous version like 0.14.0, you need to make sure you set the memory size of the function to 1024MB while installing the extension.
I'm waiting for a reply from Firebase team on this question: https://stackoverflow.com/questions/77269318/to-set-a-minimum-default-value-for-the-memory-of-a-firebase-extension-function and as soon as they provide an answer I will update the extension.
If I don't get an answer there in 2 days I will try to contact Firebase team directly, I hope we can resolve this issue in less than 5 days.
My understanding is that it has happened because of a change in Firebase API which wasn't communicated with extension developers. After all Firebase extension is still in beta stage and this kind of backward incompatible changes in the API are expected.

I think this issue is resolved in the latest rc:

https://console.firebase.google.com/project/extensions-test-65de3/extensions/install?ref=pdfplum%2Ffirestore-pdf-generator@0.14.2-rc.2
https://console.firebase.google.com/project/extensions-test-65de3/extensions/install?ref=pdfplum%2Fhttp-pdf-generator@0.14.2-rc.2

Please check it and if it's good we'll publish version 0.14.2

Yes, this has resolved the issue. Thanks.

Thanks for testing it! I just published version 0.14.2, usually it takes 1 or 2 days for Firebase team to review new versions.

authors: chethan9 sassanh webthurwa

repo: pdfplum/pdfplum


text:
Attuale sito

C'entra un piffero con questo sviluppo, quindi se ritenete, bruciate pure la issue
Il fatto è che essendo uscito su Twitch e essendo che la pagina del post non è aggiornata, il sito attuale non si è ancora accorto che la puntat, l'episod, l'even ... insomma quel coso lì è uscito.

Se ne accorgerà quando verrà pubblicato ufficialmente sul Post.

Severo ma giusto.

authors: agofa pdonadeo

repo: pdonadeo/e-uscito-joypad


text:
vue cli 安装 babel-eslint 后导致异步 import() 中的插值表达式 ${} 报错

问题描述
TypeError: Cannot read property 'range' of null
版本
@vue/cli: 4.5.6
babel-eslint: 10.1.0
.eslintrc.js
module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: [
    'plugin:vue/essential',
    '@vue/standard'
  ],
  parserOptions: {
    ecmaFeatures: {
      legacyDecorators: true
    },
    parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
  }
}

问题已解决:

首先将 babel-eslint 卸载
再安装 @babel/core 和 @babel/eslint-parser

卸载 babel-eslint
npm uninstall babel-eslint

# or

yarn remove babel-eslint

安装 @babel/core 和 @babel/eslint-parser
npm install eslint @babel/core @babel/eslint-parser --save-dev
# or
yarn add eslint @babel/core @babel/eslint-parser -D

完成 🎉

问题已解决:

首先将 babel-eslint 卸载
再安装 @babel/core 和 @babel/eslint-parser

卸载 babel-eslint
npm uninstall babel-eslint

# or

yarn remove babel-eslint

安装 @babel/core 和 @babel/eslint-parser
npm install eslint @babel/core @babel/eslint-parser --save-dev
# or
yarn add eslint @babel/core @babel/eslint-parser -D

完成 🎉

补充下，.eslintrc.js 中的 parser 也要改成: parser: '@babel/eslint-parser'

repo: pdsuwwz/vue-element-admin


text:
⚠ Hartman Foundation has degraded performance

In 2133f49, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 3920 ms

Resolved: Hartman Foundation performance has improved in 4e93c68.

Resolved: Hartman Foundation performance has improved in 4e93c68.

repo: pearanalytics/uptime


text:
Impresso Normal

Boa tarde, existem planos para incluir o Impresso Normal nos serviços disponíveis do módulo? Obrigado

Acho q o webservice de cotação não atende esse serviço.
Mas, assim como a Carta, vc pode cadastrar o serviço de Impresso manualmente, através do arquivo config.xml

authors: rafaelpatro tambourine-man

repo: pedro-teixeira/correios


text:
Recent commit breaks router composition, backward compatibility

#19 (merged on July 18) makes it impossible to combine routers, e.g.
auth.js:
export default router(
    post( "/auth/request-token", requestToken ),
    ...
);

root.js:
import auth from "./auth";

export default router(
    get( "/hello", helo ),
    auth
);

This used to work, we had to fork and revert to keep our app working.

Closed on release v3.0.0

authors: agurtovoy pedronauck

repo: pedronauck/micro-router


text:
ORI Loss

How to minimize ORI loss. 38 epochs run and still the result of orientation not good..

你好解决了吗，我的ORI损失也是很难降下来

Still Better but not good,, i increased the epochs and changed the loss
function.
On Fri, 20 Dec 2024 at 08:54, zxx009 @.***> wrote:

你好解决了吗，我的ORI损失也是很难降下来
—
Reply to this email directly, view it on GitHub
https://github.com/pedropro/UrsoNet/issues/5#issuecomment-2556235375,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY4SN3TVDF7T5J6XJBINLUD2GOIIVAVCNFSM6AAAAABT6KNRX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJWGIZTKMZXGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Still Better but not good,, i increased the epochs and changed the loss function

Thank you very much for your reply, in your question you mentioned the change in the loss function can you tell me exactly how to modify it? Of course I will try to increase the training epoch

repo: pedropro/UrsoNet


text:
🛑 Beyond.pl is down

In 1167541, Beyond.pl (http://www.beyond.pl) was down:

HTTP code: 403
Response time: 483 ms

Resolved: Beyond.pl is back up in 109072c after 19 minutes.

repo: pejotes/upptime


text:
🛑 Beyond.pl is down

In 55c8d05, Beyond.pl (http://www.beyond.pl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beyond.pl is back up in 7abce57.


text:
🛑 GR-Server-Fibercorp is down

In 95511b2, GR-Server-Fibercorp ($API_SEF) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GR-Server-Fibercorp is back up in a9048f8 after 6 minutes.


text:
Can u replace all WidgetsBinding.instance! to WidgetsBinding.instance

Can u replace all WidgetsBinding.instance! to WidgetsBinding.instance

Pls resolve this issue soon with upgrading your flutter version to greater than 3

Up, pls update need to upgrade to flutter version 3 up, right now had to pause the migration

Please help update this flutter project to flutter version 3 up , I have stuck to update project too, thank you

Yeah, please help to update it. Waiting...

https://github.com/peng8350/flutter_pulltorefresh/issues/603

authors: Kimsoer LucPham VNAPNIC ianvillamia yasin1376 yogithesymbian


text:
Endpoint crashed exit code: 101

The previous version of the endpoint can run normally, but latest version of compiled endpoint will crash when game starts.
I think it's a rust problem but I can't solve it. Could you please help me find a solution to this problem?

It seems to be MSC related problem.
MSC(script/mahjong_soul.js) is updated in last commit.
Did you update the script in tempermonkey?

Apparently I mistyped some lines in js when I modify the link. My bad, the issue is resolved after I replaced js. Sorry to be disturbing you with this trivial matter.


text:
[ENGOPS-2667] Removing custom antcontrib target

@lgrill-pentaho @lucboudreau

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f engine/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f engine/build.xml jacoco-integration checkstyle publish-local
ant -Dtestreports.dir=bin/reports/unit-test -f dbdialog/build.xml clean-all resolve jacoco && ant -Dtestreports.dir=bin/reports/integration-test -f dbdialog/build.xml jacoco-integration checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  dbdialog/build.xml
  engine/build.xml

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.auth.core.impl.DefaultAuthenticationConsumerFactory

Branch Change: -7.14%:small_red_triangle_down:
Complexity Change: -7.69%:small_red_triangle_down:

org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change:  + .39%
Complexity Change:  + .51%
Instruction Change:  + .08%

org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change:  + 1.01%
Complexity Change:  + 1.06%
Instruction Change:  + .17%

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change:  + .66%
Complexity Change:  + .93%
Instruction Change:  + .13%

org.pentaho.di.trans.step.StepMeta

Instruction Change: -.19%:small_red_triangle_down:
Line Change: -.27%:small_red_triangle_down:

org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change:  + 8.70%
Complexity Change:  + 3.08%
Instruction Change:  + .75%
Line Change:  + .89%

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Instruction Change:  + .09%

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change:  + .11%

org.pentaho.di.trans.steps.excelwriter.ExcelWriterStepMeta

Branch Change: -1.28%:small_red_triangle_down:
Complexity Change: -.78%:small_red_triangle_down:
Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1.04%:small_red_triangle_down:
Complexity Change: -1.05%:small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change:  + .06%

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change: -.14%:small_red_triangle_down:

org.pentaho.di.trans.steps.tableoutput.TableOutputMeta

Branch Change: -.91%:small_red_triangle_down:
Complexity Change: -.82%:small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -.53%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change:  + .18%

org.pentaho.di.www.TransformationMap

Branch Change:  + 3.41%
Complexity Change:  + 3.08%
Instruction Change:  + .94%
Line Change:  + 1.54%

authors: abaskakau wingman-pentaho

repo: pentaho/pentaho-kettle


text:
PDI-18996 resolution

This patch will resolve the connection leak problem with IBM MQ

:white_check_mark: Build finished in 44m 25s
Build command:
mvn clean verify -B -e -Daudit -amd

:ok_hand: All tests passed!
Tests run: 5002, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 45m 22s
Build command:
mvn clean verify -B -e -Daudit -amd

:ok_hand: All tests passed!
Tests run: 5002, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message

:white_check_mark: Build finished in 45m 52s
Build command:
mvn clean verify -B -e -Daudit -amd

:ok_hand: All tests passed!
Tests run: 5002, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message

:x: Build failed in 3h 11m 2s
Build command:
mvn clean verify -B -e -Daudit -amd

:exclamation: No tests found!
Errors:
Filtered log (click to expand)

script returned exit code 1

:information_source:  This is an automatic message

:x: Build failed in 2h 31m 38s
Build command:
mvn clean verify -B -e -Daudit -amd

:exclamation: No tests found!
Errors:
Filtered log (click to expand)

script returned exit code 1

:information_source:  This is an automatic message

:x: Build failed in 5m 3s
Build command:
mvn clean verify -B -e -Daudit -amd -Djs.no.sandbox

:exclamation: No tests found!
:information_source:  This is an automatic message

authors: buildguy ihepda


text:
Allow users to preview transaction visibility as the public or as the receiver

🚨 Roughly 900 line changes are from tests
Background
In the transaction approval popup, we want to show the user what the transaction will look like to A) the recipient, and B) the public. That way, a user will know — before sending the transaction — what others will see once the transaction is submitted.
This PR accomplishes that by using a new "translator" pattern for translating different types of objects into each other — for example, translating a TransactionView from a sender's perspective into a TransactionView from a recipient's perspective.
The result:
https://github.com/penumbra-zone/web/assets/1121544/a7a35a3a-f108-42a3-9647-4ed2cc1ed89f
In this PR

Create a new ViewTabs component underneath the TransactionApproval component that allows the user to switch between "Your View"/"Receiver's View" (if applicable)/"Public View".

Because of this, and because of the new hooks/etc. I created, I also moved the TransactionApproval component into its own directory.

Create a new translators directory in the types package to translate e.g., the sender's view of a transaction to the public's view. This is the bulk of the work in this PR.

At the moment, this only contains *View -> *View translators, but it can have any kind of translators we want in the future.
If reviewers have design feedback on my approach here, I'd love to hear it. This was what took the most experimenting and back-and-forth. I tried imperative helpers, lenses, and translator classes/interfaces, but this approach feels the most natural and readable.

Refactor classifyTransaction() to return a machine-readable TransactionClassification, rather than a human-readable label.

Create a getTransactionClassificationLabel() function for the original functionality.

Closes #376
Remaining todos

[x] Rewrite translators to optionally take a ctx object, rather than using HOFs for curried values.
[x] Fix scroll bar issue.
[ ] Use a data loader for translated transaction views, rather than the useTransctionViews() hook.

@grod220 OK, ready for re-review.

This commit fixes the scrollbar in the popup. It's now flush to the right, and the approve/deny buttons no longer overlap the JSON view.
This commit replaces HOFs in the translators with the optional use of a second ctx argument.
This commit addresses your comment about using a loader, rather than a hook, for asynchronously compiling the sender/receiver/public transaction views. Note that I ended up not being able to use a loader: loaders can't use hooks since they're not part of the component lifecycle, so I couldn't access the transaction view in state via useStore. And calling useStore.getState() directly didn't work either, because the Zustand state wasn't yet populated when the loader was called. Instead, I moved the compilation of the three views into the tx-msg-handler.ts file, which is where there's a function for handling a transaction approval message from the extension to the popup. Since, as of #393, the transaction views are stored as JSON-stringified strings, I still had to keep the useTransactionViews hook (which I renamed to useTransactionViewSwitcher) to deserialize those strings to objects and memoize the results. But it's a lot easier to reason about now, and is totally synchronous.

Can we make sure this lands in the next published extension version?

Amazing!!

authors: hdevalence jessepinho

repo: penumbra-zone/web


text:
Add St John the Baptist day for Catalonian calendar

Adds missing public holiday for Catalonian calendar, see here for reference: https://www.timeanddate.com/holidays/spain/sant-joan

[x] Tests with a significant number of years to be tested for your calendar.
[x] Changelog amended with a mention describing your changes. Note Please do NOT change the version number here. It's the project maintainers' duty.

Another source, the Barcelona City Council site showing that June 24th is a public holiday in Catalonia region: https://ajuntament.barcelona.cat/calendarifestius/en/

Planning to merge this and make a bugfix release today. Stay tuned!

version 15.2.0 was released and publish on PyPI, happy upgrading!

https://pypi.org/project/workalendar/15.2.0/
https://github.com/peopledoc/workalendar/releases/tag/15.2.0

authors: KidkArolis brunobord lozlow

repo: peopledoc/workalendar


text:
TTL not working in any version

I see my cronHistory file size growing continuously - even in older Meteor 1.1 applications even though collectionTTL was left at 172,000 (2 days).
I updated to the latest version on a local Meteor 1.3 copy of the app and set collectionTTL to 90 for testing. It is still NOT being honored - even if I remove the index by hand as suggested:
db.cronHistory.dropIndex({startedAt: 1}) and restart the local app.
Any ideas how to debug and fix this?
Current config is:
`SyncedCron.config({
// Log job run details to console
log: false,
// Use a custom logger function (defaults to Meteor's logging package)
//logger: null

// Name of collection to use for synchronisation and logging
collectionName: 'cronHistory',

// Default to using localTime
utc: false,

/*
  TTL in seconds for history records in collection to expire
  NOTE: Unset to remove expiry but ensure you remove the index from
  mongo by hand

  ALSO: SyncedCron can't use the `_ensureIndex` command to modify
  the TTL index. The best way to modify the default value of
  `collectionTTL` is to remove the index by hand (in the mongo shell
  run `db.cronHistory.dropIndex({startedAt: 1})`) and re-run your
  project. SyncedCron will recreate the index with the updated TTL.
*/
collectionTTL: 90

});`

Please try Meteor reset to start from a fresh db and try again from there, sometimes I get these odd issues and have to reset my db. Not a great answer I know but it got me through the issue and paid...

setting it to 90 wont work because minimum is 300 as per the code. late message though. setting ttl doesnt work though!!

@amanagarwal2189 have you updated the index and rebuild the db? This is a required step. Please double check the code.

So I realized that none of my config options are getting set. This makes me think whether I am setting SyncedCron.config at the correct place.
Currently, SyncedCron.config() is called in one of the methods which are invoked during the startup of meteor application. Is there any other way to do it?

repo: percolatestudio/meteor-synced-cron


text:
K8SPS-417: Enable PROXY protocol

CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are the manifests (crd/bundle) regenerated if needed?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PS version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
failure

gr-demand-backup
passed

gr-demand-backup-haproxy
failure

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
passed

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
failure

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/d17d2f8a230a8c3a6fb0761117478fda96b8a180
image: perconalab/percona-server-mysql-operator:PR-523-d17d2f8

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
failure

gr-demand-backup
passed

gr-demand-backup-haproxy
passed

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
passed

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
failure

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/192de7c31c71775a4f8f94e427e41540390989c7
image: perconalab/percona-server-mysql-operator:PR-523-192de7c

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-demand-backup
passed

gr-demand-backup-haproxy
passed

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
passed

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
failure

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/184f3729488ba0ec586a3294627c784aedef1a29
image: perconalab/percona-server-mysql-operator:PR-523-184f372

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
failure

gr-demand-backup
passed

gr-demand-backup-haproxy
failure

gr-haproxy
passed

gr-ignore-annotations
failure

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
failure

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/f00253ee61f9ea45480da9393fba9fbd3be97d6f
image: perconalab/percona-server-mysql-operator:PR-523-f00253e

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-demand-backup
passed

gr-demand-backup-haproxy
passed

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
failure

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/f00253ee61f9ea45480da9393fba9fbd3be97d6f
image: perconalab/percona-server-mysql-operator:PR-523-f00253e

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-demand-backup
passed

gr-demand-backup-haproxy
passed

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
failure

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/f00253ee61f9ea45480da9393fba9fbd3be97d6f
image: perconalab/percona-server-mysql-operator:PR-523-f00253e

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-demand-backup
passed

gr-demand-backup-haproxy
passed

gr-haproxy
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-recreate
passed

gr-scaling
passed

gr-self-healing
passed

gr-tls-cert-manager
passed

gr-users
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

operator-self-healing
passed

recreate
passed

scaling
passed

service-per-pod
passed

sidecars
passed

smart-update
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 30 out of 30

commit: https://github.com/percona/percona-server-mysql-operator/pull/523/commits/f00253ee61f9ea45480da9393fba9fbd3be97d6f
image: perconalab/percona-server-mysql-operator:PR-523-f00253e

authors: JNKPercona egegunes

repo: percona/percona-server-mysql-operator


text:
Control TimeInputId format

Bump go to 1.19
Bump slack-go to v0.11.3, so no need to link with external fork to use socket mode handler as it is now part of the slack-go
Add validation for TimeInputID field and display error in view

Codecov Report
Base: 34.25% // Head: 34.25% // No change to project coverage :thumbsup:

Coverage data is based on head (f9f5a72) compared to base (ba6ce1d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage   34.25%   34.25%
=======================================
  Files          24       24
  Lines         905      905
=======================================
  Hits          310      310
  Misses        563      563
  Partials       32       32

Flag
Coverage Δ

unittests
34.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter migaes

repo: perkbox/cloud-access-bot