Cant uninstall HACC

Description

It isnt possible to uninstall HACC
Environment
<What version of HACC are you running?>
<What environment is it? Hass.io on a Raspberry Pi 3B+? AMD64 Docker on Alpine 3.10?>
Hassio on RPI4
Steps to Reproduce

List out the
Steps to take to
Reproduce the issue

please see
https://community.home-assistant.io/t/hacc-home-assistant-command-center/134843/184?u=mariusthvdb
19-09-18 08:00:09 INFO (SyncWorker_2) [hassio.docker.interface] Remove image qjake/hacc-hassio-armv7 with latest and
19-09-18 08:00:09 WARNING (SyncWorker_2) [hassio.docker.interface] Can't remove image qjake/hacc-hassio-armv7: 400 Client Error: Bad Request ("invalid reference format")

```## Screenshots

<Paste or upload screenshots here.>

This is a known issue, waiting on this thread for a fix: https://github.com/home-assistant/hassio/issues/1280

Keeping open.

why was this closed??
bug is still alive and kicking on 101.2, as I have also reported on https://github.com/home-assistant/hassio/issues/1280

@Mariusthvdb The stale bot is a bit aggressive. I'll check the settings.
If you add a comment on a stale issue, it will "refresh" it, so to speak.

this is still an issue, so please keep open

Keep open.

As of Feb 7, I identified and fixed this issue. It will be released with v1.0 (or, tentatively being called "v1.1" now since there has been a lot of beta testing with "v1.0" already).
Closing as fixed!

Unfortunately I ran into the same problem. After I installed the addon HACC 0.6 I noticed that I could beter install the beta 1.019.
Uninstalling the addon results in an error. I tried to delete the container in portainer, update Home assistant and reboot the host as @Mariusthvdb mentioned in https://github.com/home-assistant/supervisor/issues/1280#issuecomment-558605230 suggested.
Unfortunately that didn't help.  Is there a way how i can remove the addon?

@nelbs You'll have to wait for a newer version (e.g. 1.0) to come out. The issue was in the addon configuration, and that is only fixed in the newer images that we have not released officially yet.
I want to say that someone else found a workaround for how to remove it but I'm not sure where or how exactly.


Note about workaround for kubernetes#34566

This change is

cc @luxas @lukemarsden

Happy to merge but:
a) Seems like the "> " indentation doesn't work: http://deploy-preview-1431.kubernetes-io-vnext-staging.netlify.com/docs/getting-started-guides/kubeadm/
b) This could be in a Virtualbox section (we will soon end up with notes for different envs anyway)

I should have Linux Foundation CLA now also.

LGTM

We will have to move this into a special docs for VirtualBox users, there
are too many things to talk about...
On Tue, 11 Oct 2016 at 22:01 Casey Davenport<EMAIL_ADDRESS>wrote:

@caseydavenport commented on this pull request.
In docs/getting-started-guides/kubeadm.md
https://github.com/kubernetes/kubernetes.github.io/pull/1431#pullrequestreview-3763866
:

@@ -254,3 +254,9 @@ Please note: kubeadm is a work in progress and these limitations will be addre

There is not yet an easy way to generate a kubeconfig file which can be used to authenticate to the cluster remotely with kubectl on, for example, your workstation.
Workaround: copy the kubelet's kubeconfig from the master: use scp root@<master>:/etc/kubernetes/admin.conf . and then e.g. kubectl --kubeconfig ./admin.conf get nodes from your workstation.

+1. If you are using VirtualBox (directly or via Vagrant), you will need to ensure that hostname -i returns a routable IP address (i.e. one on the second network interface, not the first one).

By default, it doesn't do this and kubelet ends-up using first non-loopback network interface, which is usually NATed.
Workaround: Modify /etc/hosts, take a look at this [Vagrantfile][ubuntu-vagrantfile] for how you this can be achieved.

s/for how you this can be/for how this can be
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/kubernetes.github.io/pull/1431#pullrequestreview-3763866,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPWS2By5t4sDNdi2HIBJmctIttpzsF5ks5qy_kPgaJpZM4KUCHI
.


ci: trigger release on branch

:tada: This PR is included in version 0.13.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


after updated to the latest version, VS Code not recognizing a git repo workspace

VSCode Version:
OS Version: win10

Steps to Reproduce:

Bracket Pair Colorizer unable to work too

Does this issue occur when all extensions are disabled?: Yes/No

VS Code not recognizing a git repo workspace，and yet VS Code shows: "This workspace isn't yet under git source control."

What does git status return from that directory?

I have the same problem and I don't know if I should open another issue so I'm commenting here.
git status returns from integrated terminal (I'm using cmd, not powershell)
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

today，i dont know why but it works again~~


Appbar Collapse not working

Hi,
I'm trying to use Metro 4.3.4 and also using the Nav-View and Appbar that I got from the Pandora template.
It seems the Collapse menu where you can click the Username and it will drop down another menu (Profile, Sign Out, etc) is not working.
Clicking the username does nothing.
Is it perhaps something to do with Pandora still using Metro 4.2.x and with Metro 4.3.x it's different now?
I tried to replicate the issue at codepen.
https://codepen.io/fugaku/pen/WNbEeNx ?

Thank you. I updated Pandora to using with latest (4.3.5) version of Metro 4. Also, Pandora now works correctly with Metro 4 (4.3.4)


QiskitError: 'Sum of amplitudes-squared does not equal one.' in QEOM when two qubit reduction is set True

Information

Qiskit Nature version: 0.2.0
Python version: 3.8.8
Operating system: macOS 11.4 Big Sur

What is the current behavior?
Error message: QiskitError: 'Sum of amplitudes-squared does not equal one.'
---------------------------------------------------------------------------
QiskitError                               Traceback (most recent call last)
<ipython-input-6-a9e19ed18bca> in <module>
      6 vqe_ground_state_solver = GroundStateEigensolver(qubit_converter=converter, solver=algorithm)
      7 qeom_excited_state_solver = QEOM(ground_state_solver=vqe_ground_state_solver)
----> 8 qeom_results = qeom_excited_state_solver.solve(problem=problem)
      9
     10 ######## Write your code between these lines

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit_nature/algorithms/excited_states_solvers/qeom.py in solve(self, problem, aux_operators)
    110
    111         # 3. Evaluate eom operators
--> 112         measurement_results = self._gsc.evaluate_operators(
    113             groundstate_result.eigenstates[0], matrix_operators_dict
    114         )

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit_nature/algorithms/ground_state_solvers/ground_state_eigensolver.py in evaluate_operators(self, state, operators)
    164                     results[name] = None
    165                 else:
--> 166                     results[name] = self._eval_op(state, op, quantum_instance, expectation)
    167         else:
    168             if operators is None:

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit_nature/algorithms/ground_state_solvers/ground_state_eigensolver.py in _eval_op(self, state, op, quantum_instance, expectation)
    187                 if expectation is not None:
    188                     exp = expectation.convert(exp)
--> 189                 result = sampler.convert(exp).eval()
    190             except ValueError:
    191                 # TODO make this cleaner. The reason for it being here is that some quantum

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/opflow/converters/circuit_sampler.py in convert(self, operator, params)
    174
    175             # convert to circuit and reduce
--> 176             operator_dicts_replaced = operator.to_circuit_op()
    177             self._reduced_op_cache = operator_dicts_replaced.reduce()
    178

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/opflow/list_ops/list_op.py in to_circuit_op(self)
    558             ).reduce()
    559         return self.__class__(
--> 560             [
    561                 op.to_circuit_op() if not isinstance(op, OperatorStateFn) else op
    562                 for op in self.oplist

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/opflow/list_ops/list_op.py in <listcomp>(.0)
    559         return self.__class__(
    560             [
--> 561                 op.to_circuit_op() if not isinstance(op, OperatorStateFn) else op
    562                 for op in self.oplist
    563             ],

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/opflow/state_fns/vector_state_fn.py in to_circuit_op(self)
    162         from .circuit_state_fn import CircuitStateFn
    163
--> 164         csfn = CircuitStateFn.from_vector(self.primitive.data) * self.coeff
    165         return csfn.adjoint() if self.is_measurement else csfn
    166

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/opflow/state_fns/circuit_state_fn.py in from_vector(statevector)
    124         normalization_coeff = np.linalg.norm(statevector)
    125         normalized_sv = statevector / normalization_coeff
--> 126         return CircuitStateFn(Initialize(normalized_sv), coeff=normalization_coeff)
    127
    128     def primitive_strings(self) -> Set[str]:

/usr/local/anaconda3/envs/oled-new/lib/python3.8/site-packages/qiskit/extensions/quantum_initializer/initializer.py in __init__(self, params, num_qubits)
     90             # Check if probabilities (amplitudes squared) sum to 1
     91             if not math.isclose(sum(np.absolute(params) ** 2), 1.0, abs_tol=_EPS):
---> 92                 raise QiskitError("Sum of amplitudes-squared does not equal one.")
     93
     94             num_qubits = int(num_qubits)

QiskitError: 'Sum of amplitudes-squared does not equal one.'

Steps to reproduce the problem
Add these code after the example code in the README.
from qiskit_nature.algorithms import QEOM
from qiskit_nature.algorithms import GroundStateEigensolver

vqe_ground_state_solver = GroundStateEigensolver(qubit_converter=converter, solver=algorithm)
qeom_excited_state_solver = QEOM(ground_state_solver=vqe_ground_state_solver)
qeom_results = qeom_excited_state_solver.solve(problem=problem)

print(qeom_results)

What is the expected behavior?
Returns ElectronicStructureResult. This is the result when two_qubit_reduction is set to False in QubitConverter:
=== GROUND STATE ENERGY ===

* Electronic ground state energy (Hartree): -1.857107039335
  - computed part:      -1.857107039335
~ Nuclear repulsion energy (Hartree): 0.719968994449
> Total ground state energy (Hartree): -1.137138044886

=== EXCITED STATE ENERGIES ===

  1:
* Electronic excited state energy (Hartree): -1.244589346215
> Total excited state energy (Hartree): -0.524620351766
  2:
* Electronic excited state energy (Hartree): -0.882883155693
> Total excited state energy (Hartree): -0.162914161244
  3:
* Electronic excited state energy (Hartree): -0.225098418795
> Total excited state energy (Hartree): 0.494870575654

=== MEASURED OBSERVABLES ===

  0:  # Particles: 2.000 S: 0.000 S^2: 0.000 M: 0.000

=== DIPOLE MOMENTS ===

~ Nuclear dipole moment (a.u.): [0.0  0.0  1.3889487]

  0:
  * Electronic dipole moment (a.u.): [0.0  0.0  1.40580143]
    - computed part:      [0.0  0.0  1.40580143]
  > Dipole moment (a.u.): [0.0  0.0  -0.01685273]  Total: 0.01685273
                 (debye): [0.0  0.0  -0.04283535]  Total: 0.04283535

Suggested solutions

Here's the gist of a notebook reproducing the error: https://gist.github.com/HuangJunye/cce1a2c2f6a04cc865eeb54170288acb

This issue boils down to a mismatching qubit operator of the ground state Hamiltonian and the hopping operators. All of these are checked for their commutativity. QEOM appears to rely on using the untapered qubit op here. However, the hopping operators are actually already being mapped+reduced+tapered. This causes a mismatch.
The question is now whether the reliance on using the untapered operator is actually required or whether using convert_match instead of map on the line linked above is sufficient. It appears to fix this particular bug but it will still cause problems when using z2symmetry_reduction="auto" (in which case a straight forward test appears to run into the same issue as #342).
If QEOM needs to perform tapering manually then the internal Z2Symmetry which is being used inside of TwoQubitReduction needs to be made available in QubitConverter.z2symmetries (which is where QEOM gets the symmetry information from).

Here is a "partial fix" which changes map -> convert_match and adds two unittests for QEOM:

one with two-qubit reduction (which works with this applied patch)
one with automatic Z2Symmetries (which runs into #134

diff --git a/qiskit_nature/algorithms/excited_states_solvers/qeom.py b/qiskit_nature/algorithms/excited_states_solvers/qeom.py
index d0987c189..8b98c0252 100644
--- a/qiskit_nature/algorithms/excited_states_solvers/qeom.py
+++ b/qiskit_nature/algorithms/excited_states_solvers/qeom.py
@@ -105,7 +105,7 @@ class QEOM(ExcitedStatesSolver):
         groundstate_result = self._gsc.solve(problem)

         # 2. Prepare the excitation operators
-        self._untapered_qubit_op_main = self._gsc._qubit_converter.map(problem.second_q_ops()[0])
+        self._untapered_qubit_op_main = self._gsc._qubit_converter.convert_match(problem.second_q_ops()[0])
         matrix_operators_dict, size = self._prepare_matrix_operators(problem)

         # 3. Evaluate eom operators
diff --git a/test/algorithms/excited_state_solvers/test_excited_states_solvers.py b/test/algorithms/excited_state_solvers/test_excited_states_solvers.py
index f1eac8f7e..34c5e859b 100644
--- a/test/algorithms/excited_state_solvers/test_excited_states_solvers.py
+++ b/test/algorithms/excited_state_solvers/test_excited_states_solvers.py
@@ -21,7 +21,7 @@ from qiskit.algorithms import NumPyMinimumEigensolver, NumPyEigensolver

 from qiskit_nature.drivers import UnitsType
 from qiskit_nature.drivers.second_quantization import PySCFDriver
-from qiskit_nature.mappers.second_quantization import JordanWignerMapper
+from qiskit_nature.mappers.second_quantization import JordanWignerMapper, ParityMapper
 from qiskit_nature.converters.second_quantization import QubitConverter
 from qiskit_nature.problems.second_quantization import ElectronicStructureProblem
 from qiskit_nature.algorithms import (
@@ -85,6 +85,28 @@ class TestNumericalQEOMESCCalculation(QiskitNatureTestCase):
         for idx, energy in enumerate(self.reference_energies):
             self.assertAlmostEqual(results.computed_energies[idx], energy, places=4)

+    def test_vqe_mes_2q(self):
+        """Test VQEUCCSDFactory with QEOM and 2-qubit reduction"""
+        converter = QubitConverter(ParityMapper(), two_qubit_reduction=True)
+        solver = VQEUCCFactory(self.quantum_instance)
+        gsc = GroundStateEigensolver(converter, solver)
+        esc = QEOM(gsc, "sd")
+        results = esc.solve(self.electronic_structure_problem)
+
+        for idx, energy in enumerate(self.reference_energies):
+            self.assertAlmostEqual(results.computed_energies[idx], energy, places=4)
+
+    def test_vqe_mes_z2(self):
+        """Test VQEUCCSDFactory with QEOM and Z2Symmetries"""
+        converter = QubitConverter(ParityMapper(), two_qubit_reduction=True, z2symmetry_reduction="auto")
+        solver = VQEUCCFactory(self.quantum_instance)
+        gsc = GroundStateEigensolver(converter, solver)
+        esc = QEOM(gsc, "sd")
+        results = esc.solve(self.electronic_structure_problem)
+
+        for idx, energy in enumerate(self.reference_energies):
+            self.assertAlmostEqual(results.computed_energies[idx], energy, places=4)
+
     def test_numpy_factory(self):
         """Test NumPyEigenSolverFactory with ExcitedStatesEigensolver"""


fix(hexonet registrar module): fixed client area missing tab for DNS management

:tada: This PR is included in version 3.2.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support for atomic primitive types in 0.8

Version 0.7 supported derivation of traits for atomic primitive types, such as AtomicU16. In 0.8 there seems no support for them, so the code below cannot be compiled:
use std::sync::atomic::AtomicU16;

use rkyv::{Archive, Deserialize, Serialize};

#[derive(Archive, Deserialize, Serialize, Debug)]
struct Test {
    atomicu16: AtomicU16,
}

What is the recommended way to deal with atomic values?

Use AtomicLoad for serializing and deserializing atomic values. Using AtomicLoad will archive atomics as their non-atomic counterparts; #527 has a write-up detailing why rkyv no longer supports interior mutability in the archived forms of types.

Thanks.


Android editor build error in etcpak on armv7 with NDK r23

Godot version
4.0.dev (26dd4746a1a979132ef81c4674d3ea558a77710a)
System information
Fedora 36, compiling for Android armv7 with NDK r23
Issue description
Following #61691, it seems Android editor builds are failing in master due to an error in the etcpak dependency with some NEON intrinsics:
thirdparty/etcpak/ProcessRGB.cpp:3259:16: error: argument value 4 is outside the valid range
        return vdupq_lane_s16( vget_low_s16( multipliers ), ClampConstant( Lane, 0, 4 ) );
               ^                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.9/include/arm_neon.h:5979:14: note: expanded from macro 'vdupq_lane_s16'
  __ret_24 = splatq_lane_s16(__s0_24, __p1_24); \
             ^                        ~~~~~~~
/root/sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.9/include/arm_neon.h:829:23: note: expanded from macro 'splatq_lane_s16'
  __ret = (int16x8_t) __builtin_neon_splatq_lane_v((int8x8_t)__s0, __p1, 1); \
                      ^                                            ~~~~
thirdparty/etcpak/ProcessRGB.cpp:3723:46: note: in instantiation of function template specialization 'WidenMultiplier_EAC_NEON<8>' requested here
    uint8x8_t recVals[16] = { EAC_APPLY_16X( EAC_RECONSTRUCT_VALUE ) };
                                             ^

I've had to fix similar issues in the past (https://github.com/wolfpld/etcpak/issues/25), seems like my fixes worked for NDK r21 but not for NDK r23 or some of our build config changes. CC @madmiraal
Steps to reproduce

scons p=android tools=yes target=release_debug android_arch=armv7

Minimal reproduction project
No response

Googling a bit gives https://reviews.llvm.org/D74619 which sounds like a change in Clang to do better validation of input to these intrinsics. So this probably just needs clamping between 0 and 3 instead of 0 and 4 upstream, I'll test and PR.


Can you provide the evaluation result for KITTI dataset?

Thanks very much for providing the pytorch-reimplementation of PSMnet.
Do you reproduce the result of original paper or match the result of the original code? Can you provide the evaluation result for KITTI dataset ?

I didn't train the model on Scene Flow dataset so the performance on KITTI is slightly lower than the result of the original paper. The 3px error of my training model is 3.466 which has been mentioned on the README.

Thanks for your response !


Missing predefined IO for raw JSON values

Somethimes there is a need to extract raw value from object tree, e.g. if value structure is irrelevant or variable. This can be accomplished by storing a field of type rapidjson::Value, which can hold any JSON value.
However, this does not compile:
#include <json_dto/pub.hpp>

struct Test {
    rapidjson::Value test;

    template <typename IO>
    void json_io(IO &io) {
        io & json_dto::mandatory("test", test);
    }
};

static void test() {
    Test t;
    json_dto::to_json(t);
}

failing with
error: ‘class rapidjson::GenericValue<rapidjson::UTF8<> >’ has no member named ‘json_io’
It would be useful to have such predefined reader/writer.

Thanks for reporting.
I hope I can add support for that feature at the beginning of the next week.

Nevermind, rapidjson::Document can be serialized just fine.
Moreover, it is an only possible option, since rapidjson::Value depends on allocator and can cause segmentation faults if used alone (that is what I found after debugging SIGSEGV's :))


how avoid to show the bot username?

how avoid, when I reply to someone whatsapp user (within matrix), to show in whatsapp this ugly code <@my-bot:matrix.org>?
To Reproduce
Steps to reproduce the behavior:

replay to someone in whatsapp group within (bridged) matrix
your answer appears prefixed with an ugly <@my-bot:matrix.org>

Expected behavior
Only my nick should appear (as happen when a post something)
Environment (please complete the following information):

OS: KDE Neon (Linux)
Matterbridge version: 1.2

Additional context
Please add your configuration file  (be sure to exclude or anonymize private data (tokens/passwords))
RemoteNickFormat="<{NICK}>"
ReplaceNicks=[ ["<@my-bot:matrix.org>","[myname]"] ]
NoHomeServerSuffix=true

I'm using the same bridge, matrix <-> whatsapp, with
RemoteNickFormat="MyNameIsNick via Element.io/Matrix/WhateverYouWant: \r\n \r\n"
in the [whatsapp.mywhatsapp]-part (as in https://github.com/42wim/matterbridge/wiki/Section-WhatsApp-(basic))
The  \r\n \r\n-part is to create a line-break and make things (in my opinion) look better.
No ReplaceNicks- or NoHomeServerSuffix-line is used.

I'm using the same bridge, matrix <-> whatsapp, with
RemoteNickFormat="MyNameIsNick via Element.io/Matrix/WhateverYouWant: \r\n \r\n"
in the [whatsapp.mywhatsapp]-part (as in https://github.com/42wim/matterbridge/wiki/Section-WhatsApp-(basic))
The  \r\n \r\n-part is to create a line-break and make things (in my opinion) look better.
No ReplaceNicks- or NoHomeServerSuffix-line is used.

No, doesn't work. When I replay, appears always this annoying <@my-bot:matrix.org>

please add your complete config file (be sure to exclude or anonymize private data (tokens/passwords))

Here you are:
`[matrix.mymatrix]
#Server is your homeserver (eg https://matrix.org)
Server="https://matrix.org"
#login/pass of your bot.
#Use a dedicated user for this and not your own!
#Messages sent from this user will not be relayed to avoid loops.
Login="my-bot"
Password="[mypsw]"
#RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
RemoteNickFormat="<{NICK}>"
#ReplaceNicks=[ ["<@duns-bot:matrix.org>","Francesco"] ]
PrefixMessagesWithNick=false
StripNick=true
UseUserName=true
#Whether to send the homeserver suffix. eg ":matrix.org" in @username:matrix.org
#to other bridges, or only send "username".(true only sends username)
#OPTIONAL (default false)
NoHomeServerSuffix=true
[whatsapp.main]
#Number you will use as a relay bot. Tip: Get some disposable sim card, don't rely on
#your own number.
Number="+[mynumber]"
#First time that you login you will need to scan QR code, then credentials will be saved in
#a session file.
#If you won't set SessionFile then you will need to scan QR code on every restart.
#optional (by default the session is stored only in memory, till restarting matterbridge)
SessionFile="session-[number].gob"
#If your terminal is white we need to invert QR code in order for it to be scanned properly
#optional (default false)
QrOnWhiteTerminal=false
#Messages will be seen by other WhatsApp contacts as coming from the bridge. Original nick will be part of the message.
#RemoteNickFormat=" "
RemoteNickFormat="<{NICK}>"
#name1n
[[gateway]]
name="name1n"
enable=true
[[gateway.inout]]
account="whatsapp.main"
<EMAIL_ADDRESS>[[gateway.inout]]
account="matrix.mymatrix"
channel="#[name1]:matrix.org"
#[name2n]
[[gateway]]
name="[name2n]"
enable=true
[[gateway.inout]]
account="whatsapp.main"
<EMAIL_ADDRESS>[[gateway.inout]]
account="matrix.mymatrix"
channel="#[name2]:matrix.org"
#SdC Terzi
[[gateway]]
name="name3n"
enable=true
[[gateway.inout]]
account="whatsapp.main"
<EMAIL_ADDRESS>[[gateway.inout]]
account="matrix.mymatrix"
channel="#[name3]:matrix.org"
#coro
[[gateway]]
name="[name4n]"
enable=true
[[gateway.inout]]
account="whatsapp.main"
<EMAIL_ADDRESS>[[gateway.inout]]
account="matrix.mymatrix"
channel="#[name4]:matrix.org"
#dottorandi
[[gateway]]
name="name5n"
enable=true
[[gateway.inout]]
account="whatsapp.main"
<EMAIL_ADDRESS>[[gateway.inout]]
account="matrix.mymatrix"
channel="#[name5]:matrix.org"
`

Can you please upgrade to latest version ?
Matterbridge 1.2 is very old

Today I upgraded to the 1.22 release. But I was inaccurate: I said 1.2, but in fact it was the 1.21.

#ReplaceNicks=[ ["<@duns-bot:matrix.org>","Francesco"] ]

Did you copy-paste the configuration file? ReplaceNicks is commented out here...

#ReplaceNicks=[ ["<@duns-bot:matrix.org>","Francesco"] ]

Did you copy-paste the configuration file? ReplaceNicks is commented out here...

Thanks, I will try

Did this work?

Did this work?

Unfortunately no :(

I suggest you create a new config. This should get you going, paste it in a new matterbridge.toml file:
[matrix.mymatrix]
Server="https://matrix.org"
Login="USERNAME BOT"
Password="PASSWORD BOT"
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
NoHomeServerSuffix=true

[whatsapp.mywhatsapp]
Number="YOUR PHONE NUMBER"
SessionFile="session-48111222333.gob"
QrOnWhiteTerminal=false

[[gateway]]
name="matrix <-> whatsapp"
enable=true

[[gateway.inout]]
account="matrix.mymatrix"
channel="YOUR ROOM"

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="YOUR JID CODE"

This should eliminate the ugly codes in whatsapp, yet keep them in Matrix so that you know from whom the messages sent to you come.
Let me know if this doesn't work.

the above example code still showing
> <@botname:homeserver.org>
here comes the content I quoted

The following fixed that for me (matrix section in config):
ReplaceMessages=[ ["<@botname:homeserver.org>",""] ]


to_char should support lowercase template unit

Although it's not well documented, some units in lowercase are also acceptable and the same as its uppercase in PostgreSQL, e.g.:
postgres=# select to_char('2022/10/22 00:00:00'::Timestamp, 'YYYY');
 to_char
---------
 2022
(1 row)

postgres=# select to_char('2022/10/22 00:00:00'::Timestamp, 'yyyy');
 to_char
---------
 2022
(1 row)

postgres=# select to_char('2022/10/22 00:00:00'::Timestamp, 'dd');
 to_char
---------
 22
(1 row)

postgres=# select to_char('2022/10/22 00:00:00'::Timestamp, 'DD');
 to_char
---------
 22
(1 row)

Please note that it doesn't mean it's case-insensitive, for the below examples:
postgres=# select to_char('2022/10/21 00:00:00'::Timestamp, 'Dd');
 to_char
---------
 66
(1 row)

'Dd' will be treated as two D s instead of DD, so the lowercase units should be treated as different patterns.
Also, please note that not all patterns have the same behaviors between upper and lower cases, e.g., MON, Mon, and mon are different.

#5032


Feature request: use rescript binary from ancestor node_modules

Thanks for creating this tool. I am really enjoying ReScript so far.
I am programming ReScript on my tiny chromebook, and replicating the large rescript node package in each package is taking up a lot of space.
To address this, I installed rescript in ~/node_modules. Building and running works fine! The binaries are detected and the output .js files go in the right place.
Only problem is, the language server does not find node_modules/.bin/rescript. My suggestion is to change findNodeBuildOfProjectRoot to look up the directory stack:
export let findNodeBuildOfProjectRoot = (
  projectRootPath: p.DocumentUri
): null | { buildPath: p.DocumentUri; isReScript: boolean } => {
  while (true) {
    let rescriptNodePath = path.join(projectRootPath, c.rescriptNodePartialPath);
    let bsbNodePath = path.join(projectRootPath, c.bsbNodePartialPath);

    if (fs.existsSync(rescriptNodePath)) {
      return { buildPath: rescriptNodePath, isReScript: true };
    } else if (fs.existsSync(bsbNodePath)) {
      return { buildPath: bsbNodePath, isReScript: false };
    } else {
      let parent = path.dirname(projectRootPath);
      if (fs.existsSync(parent) && parent != projectRootPath) {
        projectRootPath = parent;
      }
      else {
        return null;
      }
    }
  }
};

I tried making this change and it seems to work fine (with vim-rescript).

Same problem when trying to use rescript in deno project. I installed rescript package globally but the extension can't find it, so I have to install the rescript package in the local directory.
I think it would be better to provide an option to let users customize their path of the rescript module. Something like rescript.path: "~/node_modules/rescript"

Thanks for the report! We also think this might be a good candidate for being configurable in the extension. We're going to work on the basic infra needed for configuration (it's slightly complicated because of the language client<->server relationship), but once that's done, this sounds like a good thing to build.

Update: The foundations needed for this are now ready in the repo. This would be a good first issue for someone interested in contributing (ping @carere).
https://github.com/rescript-lang/rescript-vscode/commit/8d6000dd3caa7cd8cb9df30878582c5e2303606d this commit adds a setting to the extension. As long as the setting is nested under the scope rescript.settings it'll be automatically forwarded and synced to the server. You'll just need to update the extensionConfiguration interface to include the relevant type for the new setting.
Should be fairly straight forward, I hope.


Account in PENDING_STATE state

My account has been in PENDING_STATE for several hours and the latest_txid apparently hasn't been broadcasted.
That txid is about a lease for a channel that hasn't been opened (yet?) and whose purchased field value is false
Also, recently deposited funds are missing.
{
	"accounts": [
		{
			"trader_key": "03ec72c6c0ab9aa6d63e76fe1d650f0b2518395b10cef6b2381b3d93a41601a600",
			"outpoint": "3cf6f7569097bfc0a53992aee575726d2536eaddf9955581f8d7af90f4a5c080:1",
			"value": 1001008,
			"available_balance": 421373,
			"expiration_height": 708527,
			"state": "PENDING_BATCH",
			"latest_txid": "3cf6f7569097bfc0a53992aee575726d2536eaddf9955581f8d7af90f4a5c080"
		}
	]
}

{
	"leases": [
		{
			"channel_point": "3cf6f7569097bfc0a53992aee575726d2536eaddf9955581f8d7af90f4a5c080:2",
			"channel_amt_sat": 1000000,
			"channel_duration_blocks": 2016,
			"channel_lease_expiry": 0,
			"channel_node_key": "03789e3087822b0e5d94c6e5f452131a174d4da580c6a355d9434be6e8f7469438",
			"channel_node_tier": "TIER_0",
			"premium_sat": 2175,
			"clearing_rate_price": 1079,
			"order_fixed_rate": 992,
			"execution_fee_sat": 1001,
			"chain_fee_sat": 166,
			"order_nonce": "6ba4dfe6799e77624c82bd8ec874ce2eff6130cf7096f282437e38ab1e112048",
			"matched_order_nonce": "a384d0f2bf15a97ff1f644cc01dfe8117dff5782cce5f3cc10a7c16cce3816a9",
			"purchased": false,
			"self_chan_balance": 0,
			"sidecar_channel": false
		}
	],
	"total_amt_earned_sat": 2175,
	"total_amt_paid_sat": 1167
}

pool version 0.5.1-alpha commit=v0.5.1-alpha
lncli version 0.13.3-beta commit=v0.13.3-beta
thanks!

We're you a part of a recent batch? The batch execution transaction just may not have been confirmed yet.

The account shows as STATE_OPEN on the server with the value of 2'200'000 sats. So it seems like a batch didn't go through with your orders but your account state got out of sync. Did you try restarting the poold node?

yes, I tried yesterday: I restarted both poold and lnd.
if there's anything I can try or information I could provide, please let me know.
thanks for investigating so far!


Add Basic Features to Customize Syntax High Lighting

Basic implementation of syntax highlighting with custom color settings

Testing 1.1.0-rc1

That's neat!
Maybe you should add specific syntax coloration for NBTs.
For example, I changed namespaces color to green, but it's also showing up for NBT keys:

It would be great also to add specific color syntax for reference literals and tagged literals (like minecraft:test and #minecraft:test respectively).
Also respecting paths in values (minecraft:test/test), and maybe NBT/States (minecraft:stone{value:1}, minecraft:stone[value=1]).

That's neat! Maybe you should add specific syntax coloration for NBTs. For example, I changed namespaces color to green, but it's also showing up for NBT keys:

I've noticed this before.
But since IntelliJ's syntax parser is based on the JFlex syntax and regular expressions don't support look-ahead matching, I haven't found a suitable way to differentiate between NAMESPACE and NBT_KEY at this point, so I can't currently implement this feature. For example:
There is a command give @s minecraft:command_block{owner:jaffe2718,date:"2023/09/08"}
It's easy to understand that:
 minecraft:    # <namespace>
 owner:         # <nbt_key>
 date:            # <nbt_key>

So the look-ahead pattern of regular expressions handles this issue: (?<=[,{])[a-zA-Z_][a-zA-Z_0-9]*: -> <nbt_key>
The matching result is owner: and date:.
Unfortunately, patterns like (? <=[,{]) is not supported in JFlex and will fail to compile.
Maybe we can report this issue to the developers of JFlex and wait for update.
And this:

It would be great also to add specific color syntax for reference literals and tagged literals (like minecraft:test and #minecraft:test respectively). Also respecting paths in values (minecraft:test/test), and maybe NBT/States (minecraft:stone{value:1}, minecraft:stone[value=1]).

I can hard to agree with this idea, because these arguments are composite types of data, not indivisible atomic data.
For example, #minecraft:test can be seen as a structure of the type <symbol><namespace><element>.
Also #minecraft:stone{value:1} can be seen as <namespace><element><nbt>, and <nbt> is also composite data with <nbt_key>:<nbt_data>.
For the convenience of syntactic structure parsing and code-completion functionality, the arguments inside the command must be parsed to indivisible atomic arguments. I think my plugin allows users to read the structure of the NBT more clearly, and uniformly marking the NBT with yellow highlighting like Minecraft Vanilla's command input bar is rather bad.

Okay, I see, then I agree with you.
JFlex is a really hard library to use, I've tried before to create a plugin for a language that has a very particular syntax (Overwatch Scripts), but I didn't succeed after many days of trying. I'm even impressed by the fact that you've done it with Minecraft functions!
Then another request I might ask is that if it is possible to have different syntax coloring for subcommands and elements? I don't think that it's possible with your current code, but it may help a lot the readability if both tokens were colored differently.
Or also if you could create a separate color for ^  and ~ inside number-like tokens, it's something I tried to do when trying the new update you sent.
I'm maybe asking too much, and say it if it's the case, it's just that I'm someone who likes to have a looooot of features in my IDE, and I have thousands of ideas at any second on how to improve something, and I'm giving some to people whenever I can.

Anyway, thank you for your suggestion.
I will keep this milestone and keep an eye on JFlex updates. If JFlex updates regular expression lookahead matching, I will update this feature.
From this perspective, the task of basically implementing custom syntax highlighting has been completed. For further optimization progress, please visit #4 .


Tracking Issue: split out IBC subcrates

We want to split the current ibc-types crate into subcrates with a coherent dependency graph. At a high level, the plan is to create subcrates like ibc-types-core-client, ibc-types-lightclients-tendermint, etc, which can depend on each other, and then to re-export their contents in a unified ibc-types "parent" crate that can depend on all of them. The ibc-types "parent" crate can also define alternate versions of some message types, e.g., with explicit enumerations of different client types, so that it's not necessary to type-erase all of the client state to avoid circular dependencies involving external clients.
Suggested priority list (subject to evolution):

[x] ibc-types-core-client
[x] ibc-types-core-connection
[x] #18
[x] #14
[ ] ???

We've completed this, including the above tracked tasks and several more.


Support fractional time

http://en.wikipedia.org/wiki/ISO_8601#Times

Fixed in a708d03f83. Note that while this adds support for parsing decimal time parts, it does not add any additional precision to the returned iso8601:datetime/0 tuple. The decimal part is essentially applied as a rounded offset in seconds; as a result, the returned value still has a resolution of seconds at best.


[failure-summary] Allowed to fail job summaries are more explicit

What does this PR do?

Allowed to fail / not allowed to fail summaries were too similar, updated title with an emoji to better distinguish between them.
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Minor Fixes and Improvements

Abstract code
Fix hot reloading

:tada: This PR is included in version 1.2.48 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


One query overrides the last (rather than adding to it...)

Whenever I change the search query in one of the SearchEnabledComponents I've added to dev (in my fork), it replaces the entire query, rather than adding to or amending the current one.
For example: If I create a text query of “something" using the SearchBox component you made, but then try to refine it with a disjunctiveFacet of “type: this” using another HOC-wrapped component, the facet applies a filter of “type: that"; but removes the original text query.
Is this because the current query isn’t being shared across all Components, or because the instance of “helper” in each component is considered different, and thus creates it’s own query?
I've noticed that when I inspect the helper prop in each of my components, helper.state doesn't reflect the current state, and instead reflects the initial, default state. Logging helper.state in the .on('change') in the Provider does output the correct state. Could this be the root of the issue? Do I need to a way to force that update down to all the SECs?
I've put together a demo in my fork of the project.

Not to worry. I solved it by passing the helper Context within Provider from the components state. Changes in context don't force children to update, but changes in state do.
See below:
`import React, {Component, PropTypes as T, Children} from 'react';
import AlgoliaSearchHelper from 'algoliasearch-helper';
import Algoliasearch from 'algoliasearch';
import bindAll from 'lodash/bindAll';
export const contextType = {
helper: T.object.isRequired,
results: T.object
};
export default class Provider extends Component {
static propTypes = {
credentials: T.shape({
applicationID: T.string.isRequired,
key: T.string.isRequired
}),
config: T.shape({
index: T.string.isRequired,
facets: T.arrayOf(T.string),
disjunctiveFacets: T.arrayOf(T.string)
})
}
static childContextTypes = contextType;
constructor(props) {
super(props);
this.state = {
lastSearchResults: {},
helper: {},
};
}
componentDidMount() {
if (this.helper !== this.state.helper) {
this.setState({helper: this.helper});
}
this.helper.search();
}
getChildContext(){
const client = Algoliasearch(this.props.credentials.applicationID, this.props.credentials.key);
const helper = this.helper = bindAll(AlgoliaSearchHelper(client, this.props.config.index, { facets: this.props.config.facets, disjunctiveFacets: this.props.config.disjunctiveFacets,}  ));
helper.on('result', (res) => {
  this.setState({lastSearchResults: res});
});

helper.on('change', () => {
  this.setState({helper: helper});
});

return {
  helper: this.state.helper,
  results: this.state.lastSearchResults,
};

}
render() {
return Children.only(this.props.children);
}
};
`


Improvements to the perf viewer

Increase number of results to 20.
See newer results at the end of the graph, not start.
Make point radius show standard deviation to scale.
Try not to draw datasets over each other.
Invert light colours to make them darker.

LGTM


Show how to change default "per page" pagination value

[ ] Changes have been thoroughly tested to not break existing functionality.
[x] New functionality has been documented or existing documentation has been updated to reflect changes.
[ ] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Thanks

https://filamentphp.com/docs/3.x/tables/advanced#global-settings

https://filamentphp.com/docs/3.x/tables/advanced#global-settings

thx very very much!!!!


Incompatibility with CookingForBlockheads

Issue Description:
When running CraftTweaker (latest version 3.0.20) and CookingForBlockheads (latest version 4.2.35), CFB causes CT to crash out and shut down the server
This has also been posted to Cooking For Blockheads github here: https://github.com/blay09/CookingForBlockheads/issues/200
What happens:
Server fails to start and closes down. No crash report is generated, however a crash report is posted in the fml-server-latest.log file
fml-server-latest.log.txt
What you expected to happen:
Server to load and run like normal
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
scripts.zip
Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
minetweaker.log.txt

Affected Versions (Do not use "latest"):

Minecraft: 1.10.2
Forge: 2239
Crafttweaker: 3.0.20

Your most recent log file where the issue was present:
[pastebin/gist/etc link here]
fml-server-latest.log.txt

I've isolated the relevant info and pasted it here. Looking at your minetweaker.log file it seems that one of the scripts you have (shapelessrecipes.zs) is adding an invalid recipe. Either way, this is fixed in the next episode of Cooking For Blockheads, and is not an issue with this mod.


Add ImGui viewports and docking

ImGui fonts does not dynamically scale with resolution. Example: fonts look fine on 1080p monitors, but they look tiny on 4k.

The framebuffer's size does not scale with the docked window's size. An event on scaling the buffer size must be implemented.

Texture has low resolution when the imgui window is scaled up.


meta-dts-distro/recipes-dts: Add checks for readable and flashable regions

@TomaszAIR changes await your review


feat(button): size enum on Button component

Provide a size enum to eventually replace the small and big boolean props on Button
re #187

Warnings

:warning:
This PR does not include changes to storybook, even though it affects component code.

  Generated by :no_entry_sign: dangerJS against 589ec5e88904d962d48ef255b0fb7cca67c8ec92

Let's also update all of Button.stories.tsx to make sure we only show examples with size (and none with deprecated props).
🤔 Is it worth also adding tests for "ignore deprecated big/small props if size exist"? In other words if someone uses size that's what we follow first (even if big/small passed down).

I've added a commit that does both of these

updated PR title (since it generates our changelog) to note that this work also adds deprecationWarning util


Fix format buffer size

Fixed ncdump -p10 to work properly.
It could not be specified to be longer than the current format string.

Good catch. If memory serves, there is a lot of memory shenanigans
in ncdump like this. But, given its age, that is not surprising.


Game Crashes after clicking the preset command button

The game crashed after clicking the preset command button on changing game modes, (ex: /gamemode survival) and the original game mode and target game mode do not affect this problem, it all crashes.
MacBook Pro 14" M1 Pro 16GB
6GB Ram Allocated
Minecraft 1.19.2
Forge 1.19.2-43.1.1
ItemZoom 2.7.0
MineMenu 1.19.1-1.11.1
WorldEdit 7.2.12
Optifine 1.19.2
Just Enough Items <IP_ADDRESS>6
Crash Report Attached
crash-2022-08-31_09.33.32-client.txt

Single Player Mode, Cheat Activated, Click Action-Command Send
Just tested, all commands crash under the same circumstance

Same here. Tried all 1.19 versions - no difference

Same here.

Oh, no sorry, I missed that part. I'm actually using a standard windows
machine.
нд, 22 січ. 2023 р. о 11:52 Girafi @.***> пише:

Same here.
—
Reply to this email directly, view it on GitHub
https://github.com/GirafiStudios/MineMenu/issues/137#issuecomment-1399442678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHXLINWUDUCEQ7VI3NUH7ELWTT7PJANCNFSM6AAAAAAQBRTXTU
.
You are receiving this because you commented.Message ID:
@.***>

Yeah I'm having this issue as well with MineMenu with 1.19.2 on windows 10 with a an i5-9600K and GTX 1660 Video card (so no I'm not on a M1 or M2 mac)
Kinda sucks because its handy to have around to change gamemodes and do some very common WorldEdit stuff on 1.19.2

Should be fixed in the Minecraft 1.19.4 release of MineMenu :)


F#2879 fix extract behavior

Description
I've changed code of both extract and countpattern togather.
I gathered the common code, the split rule and replace rule too.
Related Issue : #2879
How Has This Been Tested?
Ran all test cases in src/test/java/app/metatron/discovery/domain/dataprep.
Need additional checks?
Yes, I didn't test by UI.
I'll do that on testbed, too.
Types of changes

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

Checklist:

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have added tests to cover my changes.

deploy to 1

I found a bug on countpattern. Please wait for patch.


MM-36068 Update avatars and reply count correctly for unfollowed threads

Summary
Update avatars and reply count correctly for unfollowed threads.
Ticket Link
https://mattermost.atlassian.net/browse/MM-36068
Release Note
NONE

Couldn't find any tests that could be easily extended to cover this case. I think it's something that would be suited to a cypress test rather than a jest or snapshot test but I don't think those have been set up yet for CRT (something we should definitely do).

@jgilliam17 can you give this another quick test? Particularly around following, then un-following a thread to see if the reply count/avatars still update correctly. Also please try unfollowing a thread in the global view to make sure that still works ok.


Development to staging

Codecov Report
Base: 95.06% // Head: 94.35% // Decreases project coverage by -0.70% :warning:

Coverage data is based on head (d382e1e) compared to base (5de3fc2).
Patch coverage: 84.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           staging      #18      +/-   ##
===========================================
- Coverage    95.06%   94.35%   -0.71%
===========================================
  Files            9        9
  Lines          486      496      +10
===========================================
+ Hits           462      468       +6
- Misses          24       28       +4

Impacted Files
Coverage Δ

src/services/user_service.py
80.41% <69.23%> (-3.11%)
:arrow_down:

src/services/inventory_service.py
96.32% <100.00%> (+0.08%)
:arrow_up:

src/utils/mongo.py
100.00% <100.00%> (ø)

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.


How to get 'collapse' targeted div outside the scrolbar?

I'm using 'bootstrap datatable'. In table there is edit button, on click edit button showing 'colapse' div which is displaying inside scrollbar. I want to show colapse div outside the table scrollbar. How to do this?

This is a documented limitation of responsive tables; see http://getbootstrap.com/css/#callout-tables-responsive-overflow
Please direct how-to questions to StackOverflow. Thanks!


Bug fix in amqp_client.js

We came across an issue while testing out your library on Azure. Adding this check fixed it. Keep up the great work on this library!
Current (line 353):
if (self._pendingSends[linkName].length > 0) {
attach();
}
Fixed:
if (self._pendingSends[linkName] && self._pendingSends[linkName].length > 0) {
attach();
}

@footmarks-skylar doh, we caught that in like 4 other locations it seems ;) Thanks for the fix! By the way, have you been using the master branch (i.e. v2.0.0)?

Nope I forked off at 1.0.3. What's been updated since?

@footmarks-skylar a whole bunch, primarily that its promisified-by-default, improved code coverage, a few changes in public api (recieve => createReceiver), and some other bugs. I'm working on integrating message disposition currently. I don't have access to the npm registry so I can't publish a fix for e.g. 1.0.4, but I'll merge your fix into 2.0.0 presently, and we can wait for @noodlefrenzy to get back to make a decision on a 1.0.4 release.

No need. Just apply this to 2 and I'll move up.

@footmarks-skylar great, would love more people giving feedback on the 2.0.0 stuff :)

fixed in a9953e1e37c09951ea7111dd2d87937df188aa11


Update baseline markdowns with some of the "structural" changes to support automation and "substantive" change efforts

🗣 Description
Updating the baseline markdown files with some of the identified  "structural" changes to serve as a starting point for the team to start on "substantive" changes and in support of the automation of the markdown files to json (issue #209). Following changes include:

REMOVE All Numbering from “Introductions”, “Assumptions”, and “Baseline” sections of the markdown.
ADD New baseline versioning schema to each policy.
ADD “Last Modified” section below “Rationale” Section.
UPDATE Group Name to remove "SHALL" and "SHOULD" language.
UPDATE all relative references (e.g., "see above policies”) with new policy IDs.
updated all policy IDs for exchange from MS.EXCHANGE to MS.EXO
Updated the markdown file name exchange.md to exo.md

💭 Motivation and context
This change is required to support testing of Issue #209 and is in support of creating a "starting point" for the issues associated with the "substantive" changes for each M365 product. Many of the updates also support partially resolving the "Markdown document alignment issues"  opened for each product.
🧪 Testing
Changes can be tested by confirming script used in Issue #209 is supported. Markdown files are not corrupt and open as expected.
✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR.

✅ Pre-merge checklist

[ ] Revert dependencies to default branches.
[ ] Finalize version.

✅ Post-merge checklist

[ ] Create a release.

An updated/new PR has been approved and merged into emerald - that merged pr has all the structural changes and review suggestions. Closing this pr without merge.


Ansible Tower: Last refresh date not displayed

After refresh of Ansible Tower, "Last refresh date" column is empty. Data is missing in DB:
# select name,last_refresh_error, last_refresh_date from ext_management_systems;                                       name                 | last_refresh_error | last_refresh_date  -------------------------------------+--------------------+-------------------  ansiblepktest Configuration Manager |                    |
This was tested on ManageIQ which was cloned today.

@bdunne This is set as part of the normal Refresher base, so perhaps that's not using the shared code?

I can't reproduce this issue at d82f610deb021045048570b9b15aebcb6c1c7e56.
Steps:

Queue up a refresh using the UI
In rails console...

ManageIQ::Providers::AnsibleTower::ConfigurationManager.first.update_attributes(:last_refresh_date => nil) # To ensure there isn't one

##### Process the refresh from the queue #####

ManageIQ::Providers::AnsibleTower::ConfigurationManager.first.last_refresh_date
=> Wed, 24 Feb 2016 22:24:45 UTC +00:00

@patchkez Can you please retest with the above SHA or newer?

@bdunne - I tried Tower refresh on new appliance with master from 25th of Feb (last commit 5e7f49c19496940713af7dfdccb07b69b9b39b64). I still cannot see last_refresh_(state|error) populated in DB:
Rails console output:
irb(main):008:0> p1.refresh_ems
  ExtManagementSystem Load (0.7ms)  SELECT "ext_management_systems".* FROM "ext_management_systems" WHERE "ext_management_systems"."provider_id" = $1  [["provider_id", 6]]
  ExtManagementSystem Inst Including Associations (339.0ms - 1rows)
  MiqQueue Load (1.1ms)  SELECT  "miq_queue".*  Let me know.

@patchkez The #refresh_ems call on the provider through rails console only queues a refresh.  It does not wait for the refresh to complete.  Once the refresh is complete you should see the last_refresh_date populated on the configuration_manager.  Also, it should show in the UI.


getting "json: unsupported type: func() (io.ReadCloser, error)" on DeleteHook

As the title says, I get json: unsupported type: func() (io.ReadCloser, error) as part of the response (not the error) of the DeleteHook function.
So here is a fragment of my code:
	response, err := git.Repositories.DeleteHook(ctx, m.gitWebhook.Spec.RepositoryOwner, m.gitWebhook.Spec.RepositoryName, *hook.ID)
	log.V(1).Info("DeleteHook", "response", response, "err", err)

the output is:
[manager] 1.6689558493826857e+09	DEBUG	DeleteHook	{"controller": "gitwebhook", "controllerGroup": "redhatcop.redhat.io", "controllerKind": "GitWebhook", "GitWebhook": {"name":"gitwebhook-github","namespace":"test-gitwebhook-github"}, "namespace": "test-gitwebhook-github", "name": "gitwebhook-github", "reconcileID": "a9d29c20-49e0-490c-8dc9-25a17e2947f9", "responseError": "json: unsupported type: func() (io.ReadCloser, error)", "err": null}

the same client works with the other hook related functions. Looking around it seems that this error is due to not setting the content type correctly in the headers. I'm testing with the latest version and against the public instance of github.
Thanks for the help.

Thanks for the report, @raffaelespazzoli !
It might help to use https://github.com/gmlewis/go-httpdebug to debug this.

this is what I got:
[manager]   https://api.github.com/repos/raffaelespazzoli/helloworld-tonic/hooks/389245677 \
[manager]   -H 'Accept: application/vnd.github.v3+json' \
[manager]   -H 'Authorization: <REDACTED>' \
[manager]   -H 'User-Agent: go-github/v48.0.0'
[manager] 1.6689576382338324e+09	DEBUG	DeleteHook	{"controller": "gitwebhook", "controllerGroup": "redhatcop.redhat.io", "controllerKind": "GitWebhook", "GitWebhook": {"name":"gitwebhook-github","namespace":"test-gitwebhook-github"}, "namespace": "test-gitwebhook-github", "name": "gitwebhook-github", "reconcileID": "e5f04e83-79f6-4181-9bd1-256868fdce7f", "responseError": "json: unsupported type: func() (io.ReadCloser, error)", "err": null}

looks good to me and yet the error...

What do you get when you call directly with curl?

is there a way for this library to print the curl command, it looks like so, but the above is all I get...

That is exactly what the other repo is doing.
There was a discussion that it would be better to keep that helper function outside of this repo.

yeah that's what I meant the other repo, anyway it gives me enough to build the curl command.

when  execute with curl, I get the following:
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/webhooks/repos#delete-a-repository-webhook"}

ok, so I had some issue in my code. everything works now. that weird response message remains unexplained, but the delete actually works. closing....


TLS patches for watchOS and tvOS

This is dependent on:

[x] https://github.com/kornelski/rust-security-framework/pull/190
[x] https://github.com/sfackler/rust-native-tls/pull/285

There is a possibility that a target_os = "watchos" needs to be added to corefoundation-sys

Superseded by #89.


Webapp

This PR introduces a brand new way for visualizing deep learning predictions through a Flask web application.
The application is quite simple, as no real focus has been done on formatting web pages. However, it provides a first complete picture of the project results.
In order to make the Flask app happen, some symbolic link must be designed:

deeposlandia/static/shapes that points on shape image folder (the folder that contains a images and a labels subrepositories), for demo purpose.
deeposlandia/static/mapillary that points on mapillary image folder for demo purpose (see previous point).
deeposlandia/static/predicted_images that points to a server-side temporary folder to store predicted images (labelled versions of tested images).
deeposlandia/static/sample_image that points to images repository within the deeposlandia project, so as to display example images at web page first visits.

This PR fixes issue #55 .

I agree regarding the symbolic link point. I will add a dedicated issue to keep it in our mind.


Automated cherry pick of #8707: qcloud redis secgroup sync fix & qcloud add renew& auto_renew

Cherry pick of #8707 on release/3.5.
#8707: qcloud redis secgroup sync fix & qcloud add renew& auto_renew

Codecov Report

Merging #8708 (7876955) into release/3.5 (e3fe6c4) will increase coverage by 11.95%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           release/3.5    #8708       +/-   ##
================================================
+ Coverage         6.03%   17.99%   +11.95%
================================================
  Files              795       84      -711
  Lines           124282     8853   -115429
================================================
- Hits              7503     1593     -5910
+ Misses          116114     7091   -109023
+ Partials           665      169      -496

Flag
Coverage Δ

aFlag
17.99% <ø> (+11.95%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/mcclient/options/dnszonecache.go

pkg/multicloud/aws/loadbalancercert.go

pkg/compute/models/snapshotpolicydisks.go

pkg/compute/models/zones.go

pkg/monitor/alerting/reader.go

pkg/compute/models/purge.go

pkg/cloudcommon/db/caller.go

pkg/compute/models/networkschedtags.go

pkg/cloudcommon/db/paging.go

pkg/multicloud/aws/network.go

... and 652 more

Continue to review full report at Codecov.

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

/lgtm
/approve


Unable to install because of problem with preinstall script

11877 error<EMAIL_ADDRESS>preinstall: bundle
11877 error Exit status 127
11878 error Failed at the<EMAIL_ADDRESS>preinstall script.
11878 error This is most likely a problem with the grunt-scss-lint package,
11878 error not with npm itself.
11878 error Tell the author that this fails on your system:
11878 error     bundle
11878 error You can get their info via:
11878 error     npm owner ls grunt-scss-lint

So do you have bundle installed?

is bundle necessary? We used your scss linter before without installing bundle.
You're talking about this one right (https://docs.npmjs.com/cli/bundle) ?
Thanks for the quick response!

Hmm, it shouldn't be, but it is preferred (http://bundler.io/). Pushed v0.3.6 just now.

great, thanks for the update!


Add support for HTTP cookies

This is based on initial work by @awaterme in #345, which was closed due to inactivity. I'm happy to take over and try to get this merged as we have the same need as Andreas.
This is the same code as #345, but I've addressed the comments about documentation and squashed all the commits. If you prefer that I leave Andreas as the author of the squashed commit, I can also do that (my intent is not to steal any credits, so please tell me what's best). Or @awaterme, if you actually want to continue working on your PR, happy to help you then.
This enables for sources that require cookies to manage session (for example rate-limiting clients based on number of sessions opened).

Hi Julien,
I'm very glad somebody picked up the issue again. Please go ahead  and don't worry about my credits.
Best regards,
Andreas

Thanks for picking this up again.
Just found 2 minor issues, which you may want to adress. Else this is looking good!

Thanks for the reviews. I've added a test for the http client behavior of Set-Cookie. I'll just add another one in test_conf_loader checking that the config parameter is correctly passed from config file to http client.

A feature like this should have at least a small system test to assure that it does work now and more importantly in the future.

I've added a system test to test_wms and two unit test to test_client.py (to check that enabling/disabling the functionality has the correct behavior).
Is it the kind of tests you were expecting or should I do it differently ?

@weskamm I've fixed the tests - sorry for pushing something broken.
As far as test structure go, are you referring to the assert_cookie / assert_no_cookie functions ? I've done it that way (passing a helper to the mock request setup) because that's the only way I found to access the request from the mock server side. But if there is a better way, I'd be happy to do it.

I was hoping that someone else could answer to that question, but i think its ok. Thanks!

I was hoping that someone else could answer to that question, but i think its ok. Thanks!


R package for CNV calling from Illumina idats

One possibility is to create an R package.
Like this one:  http://bioconductor.org/packages/release/bioc/html/crlmm.html
Or possibly using lower level functions in this:  https://bioconductor.org/packages/release/bioc/html/illuminaio.html
We should make sure existing packages don't already do what we want, though.

From: Eric Karlins<EMAIL_ADDRESS>Reply-To: NCBI-Hackathons/Global_Screening_Arrays<EMAIL_ADDRESS>Date: Monday, March 20, 2017 at 11:01 AM
To: NCBI-Hackathons/Global_Screening_Arrays<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [NCBI-Hackathons/Global_Screening_Arrays] R package for CNV calling from Illumina idats (#4)
One possibility is to create an R package.
Like this one: http://bioconductor.org/packages/release/bioc/html/crlmm.html
Or possibly using lower level functions in this: https://bioconductor.org/packages/release/bioc/html/illuminaio.html
We should make sure existing packages don't already do what we want, though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

See Issue #7, which discusses an R approach using the package "gsrc".
https://cran.r-project.org/web/packages/gsrc/index.html


[Direct Feeds] [App] Adding Direct Card Feed: Selecting feed type

This is part of the Third party workspace feeds V2 (direct connections) project.
Implement changes from this section of the design doc.

Hello, Im Artem from Callstack and would like to help with this issue!

Noting for any BZ assigned later on, @allgandalf is being paid lumpsum for this project. No payment needed here!

Hey, this one will start after 50446 PR is raised
ETA is this week


Nested complex properties are validated even thoug I didn't use SetValidator

FluentValidation.AspNetCore version
11.2.1
FluentValidation version
11.2.1
ASP.NET version
.NET 6
Summary
According to documentation the complex properties nested within the class I am validating will be validated automatically with one of these two configs:

Using the (deprecated) config:
services.AddFluentValidationAutoValidation(config =>
{
 config.ImplicitlyValidateChildProperties = true;
});

Using SetValidator: RuleFor(n => n.MyNestedProperty).SetValidator(new MyNestedPropertyValidator());

I didn't use neither of these configurations, but my complex property is still being validated.
When I put a breakpoint in a validator of a nested complex property, it is being executed when I send the request.
Looking at the example in Steps To Reproduce, the SomeDataValidator is being created, even though I did not configure it.
If I do configure it with SetValidator, the class is being created twice.
Steps to Reproduce
Here's my setup:
// DTOs
public sealed record MyRequest(string Name, SomeData Data);

public sealed record SomeData(string Data1, int Data2);

// Validators
public class MyRequestValidator : AbstractValidator<MyRequest>
{
   public MyRequestValidator()
   {
      RuleFor(n => n.Name).NotEmpty();
      RuleFor(n => n.Data).NotNull();
   }
}

public class SomeDataValidator : AbstractValidator<SomeData>
{
   public SomeDataValidator()
   {
      RuleFor(n => n.Data1).NotEmpty();
   }
}

// Dependency Injection in Startup.cs
services.AddValidatorsFromAssemblyContaining<MyRequestValidator>();
services.AddFluentValidationAutoValidation(options =>
    { options.DisableDataAnnotationsValidation = true; });

You haven't provided enough information to be able to reproduce a problem. Please provide a small, standalone, runnable sample project that reproduces the issue.
Please also provide a full stack trace that shows where the child validator is being called from.

You haven't provided enough information to be able to reproduce a problem. Please provide a small, standalone, runnable sample project that reproduces the issue.
Please also provide a full stack trace that shows where the child validator is being called from.

Sure, I'll create some example later today.

@JeremySkinner, here's the sample that you asked for: https://github.com/marcinjahn/fluent-validation-nested-properties-issue-sample.
Here's the stack dump. It was copied while the execution was at the nested property constructor:
new CharacteristicsValidator()at /home/marcin/tmp/fluentnestedtest/Validators.cs:line 8
RuntimeConstructorInfo.Invoke()
CallSiteRuntimeResolver.VisitConstructor()
CallSiteVisitor<RuntimeResolverContext, __Canon>.VisitCallSiteMain()
CallSiteRuntimeResolver.VisitCache()
CallSiteRuntimeResolver.VisitScopeCache()
CallSiteVisitor<RuntimeResolverContext, object>.VisitCallSite()
CallSiteRuntimeResolver.Resolve()
DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0()
ServiceProvider.GetService()
ServiceProviderEngineScope.GetService()
ServiceProviderValidatorFactory.CreateInstance()at /Users/jskinner/code/FluentValidation/src/FluentValidation.DependencyInjectionExtensions/ServiceProviderValidatorFactory.cs:line 33
ValidatorFactoryBase.GetValidator()
FluentValidationModelValidator.Validate()
ValidationVisitor.ValidateNode()
ValidationVisitor.VisitComplexType() [2]
ValidationVisitor.VisitImplementation() [2]
ValidationVisitor.Visit() [2]
ValidationVisitor.VisitChildren()
ValidationVisitor.VisitComplexType() [1]
ValidationVisitor.VisitImplementation() [1]
ValidationVisitor.Visit() [1]
ValidationVisitor.Validate()
FluentValidationVisitor.<>n__1()
FluentValidationVisitor.<>c__DisplayClass2_0.<Validate>g__BaseValidate|0()
FluentValidationVisitor.ValidateInternal()
FluentValidationVisitor.Validate()
ObjectModelValidator.Validate()
ParameterBinder.EnforceBindRequiredAndValidate()
ParameterBinder.<BindModelAsync>d__8.MoveNext()
AsyncMethodBuilderCore.Start<Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.<BindModelAsync>d__8>()
AsyncValueTaskMethodBuilder<ModelBindingResult>.Start<Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.<BindModelAsync>d__8>()
ParameterBinder.BindModelAsync()
ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
AsyncMethodBuilderCore.Start<Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d>()
AsyncTaskMethodBuilder.Start<Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d>()
ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<CreateBinderDelegate>g__Bind|0()
ControllerActionInvoker.BindArgumentsAsync()
ControllerActionInvoker.Next()
ControllerActionInvoker.InvokeInnerFilterAsync()
ResourceInvoker.Next()
ResourceInvoker.InvokeFilterPipelineAsync()
ResourceInvoker.InvokeAsync()
ControllerRequestDelegateFactory.<>c__DisplayClass10_0.<CreateRequestDelegate>b__0()
EndpointMiddleware.Invoke()
EndpointRoutingMiddleware.Invoke()
DeveloperExceptionPageMiddleware.<Invoke>d__9.MoveNext()
AsyncMethodBuilderCore.Start<Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__9>()
AsyncTaskMethodBuilder.Start<Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__9>()
DeveloperExceptionPageMiddleware.Invoke()
HostFilteringMiddleware.Invoke()
HostingApplication.ProcessRequestAsync()
HttpProtocol.<ProcessRequests>d__223<HostingApplication.Context>.MoveNext()
AsyncTaskMethodBuilder<VoidTaskResult>.AsyncStateMachineBox<HttpProtocol.<ProcessRequests>d__223<HostingApplication.Context>>.ExecutionContextCallback()
ExecutionContext.RunInternal() [4]
AsyncTaskMethodBuilder<VoidTaskResult>.AsyncStateMachineBox<HttpProtocol.<ProcessRequests>d__223<HostingApplication.Context>>.MoveNext()
AsyncTaskMethodBuilder<VoidTaskResult>.AsyncStateMachineBox<HttpProtocol.<ProcessRequests>d__223<HostingApplication.Context>>.MoveNext()
AwaitTaskContinuation.RunOrScheduleAction() [2]
Task.RunContinuations() [2]
Task.FinishContinuations() [2]
Task<ReadResult>.TrySetResult()
AsyncTaskMethodBuilder<ReadResult>.SetExistingTaskResult()
AsyncValueTaskMethodBuilder<ReadResult>.SetResult()
StreamPipeReader.<<ReadAsync>g__Core|36_0>d.MoveNext()
AsyncTaskMethodBuilder<ReadResult>.AsyncStateMachineBox<StreamPipeReader.<<ReadAsync>g__Core|36_0>d>.ExecutionContextCallback()
ExecutionContext.RunInternal() [3]
AsyncTaskMethodBuilder<ReadResult>.AsyncStateMachineBox<StreamPipeReader.<<ReadAsync>g__Core|36_0>d>.MoveNext()
AsyncTaskMethodBuilder<ReadResult>.AsyncStateMachineBox<StreamPipeReader.<<ReadAsync>g__Core|36_0>d>.MoveNext()
AwaitTaskContinuation.RunOrScheduleAction() [1]
Task.RunContinuations() [1]
Task.FinishContinuations() [1]
Task<int>.TrySetResult()
AsyncTaskMethodBuilder<int>.SetExistingTaskResult()
AsyncValueTaskMethodBuilder<int>.SetResult()
SslStream.<ReadAsyncInternal>d__188<AsyncReadWriteAdapter>.MoveNext()
AsyncTaskMethodBuilder<int>.AsyncStateMachineBox<SslStream.<ReadAsyncInternal>d__188<AsyncReadWriteAdapter>>.ExecutionContextCallback()
ExecutionContext.RunInternal() [2]
AsyncTaskMethodBuilder<int>.AsyncStateMachineBox<SslStream.<ReadAsyncInternal>d__188<AsyncReadWriteAdapter>>.MoveNext()
AsyncTaskMethodBuilder<int>.AsyncStateMachineBox<SslStream.<ReadAsyncInternal>d__188<AsyncReadWriteAdapter>>.MoveNext()
ThreadPool.<>c.<.cctor>b__86_0()
ManualResetValueTaskSourceCore<int>.SignalCompletion()
PoolingAsyncValueTaskMethodBuilder<int>.SetResult()
DuplexPipeStream.<ReadAsyncInternal>d__27.MoveNext()
PoolingAsyncValueTaskMethodBuilder<int>.StateMachineBox<DuplexPipeStream.<ReadAsyncInternal>d__27>.ExecutionContextCallback()
ExecutionContext.RunInternal() [1]
PoolingAsyncValueTaskMethodBuilder<int>.StateMachineBox<DuplexPipeStream.<ReadAsyncInternal>d__27>.MoveNext()
PoolingAsyncValueTaskMethodBuilder<int>.StateMachineBox<DuplexPipeStream.<ReadAsyncInternal>d__27>.System.Threading.IThreadPoolWorkItem.Execute()
ThreadPoolWorkQueue.Dispatch()
PortableThreadPool.WorkerThread.WorkerThreadStart()
Thread.StartCallback()
[Native to Managed Transition]

Thanks for the extra details, I'll see if I can find out what's going on.

Reading the readme I understood that by default nested complex properties are not being validated.

Yes you're correct - if you're not calling SetValidator then I wouldn't expect the nested property to be validated.

Right, I see what's happening - the problem occurs because you're using records rather than regular classes.
Inside our model validator, we do some checks on the ModelMetadata type, checking whether it's of type Type or of type Property (see here)
However, in the case of records because the child property is defined inline on the record's parameter, the model metadata comes in as type Parameter instead, which we currently don't handle.
TL;DR: FluentValidation.AspNetCore doesn't correctly handle parameters of record type constructors, which is leading to the issue you're seeing. I'll try and get a fix done for this, but the work around for now would be to use a regular class definition instead.

I believe I have a fix in #8, I probably won't have availability to get a new pushed out today, but I'll aim to do so tomorrow.

Oh cool, that makes sense. Thanks for such a quick response!

I've pushed out 11.2.2 with this fix


Adapt to recent PRs

Questions
Answers

Description?
Autoupgrade PR for recent PRs - https://github.com/PrestaShop/PrestaShop/pull/37236/ and https://github.com/PrestaShop/PrestaShop/pull/36873/ and added a comment about https://github.com/PrestaShop/PrestaShop/pull/35843/ (in dev branch)

Type?

BC breaks?
no

Deprecations?
no

Fixed ticket?

Sponsor company

How to test?

How to test

Upgrade from 8.1 to 9.0
Open phpmyadmin
See that:

A) meta_keywords columns is removed from all tables.
B) There is PS_DEFAULT_LANGUAGE_URL_PREFIX record in ps_configuration.
C) There is PS_SEPARATOR_FILE_MANAGER_SQL record in ps_configuration.

No need to test anything else, not in the scope of this PR

@Hlavtox PR https://github.com/PrestaShop/autoupgrade/pull/1010 will fix CI

@M0rgan01 Ok I will rebase after it's merged. :-)

@M0rgan01 Ready to go, tests should be green. :-)

@AureRita You are rebasing to wrong branch, this PR targets 6.x

Yes Indeed, sorry didn't see that this parameter change


Support inspecting the files that result from a task being run.

This is a part of a solution to #22. The idea is that if there's a page function named bio_page, you could access bio_page.files and get something useful. This involves actually wrapping the function with something, which invokes a bigger questions of what exactly is that object. I think it should probably be something called a task that's really just the same thing as the commands I currently have (but having to expose commands to the user makes me want to change the name because it doesn't seem to really fit). So this issue seems to be made up of the following:

Rename the command class (there's only one now) to task.
Wrap the page and pipeline functions in said task and allow it to be callable so that we don't break the expectation that this decorated thing is still intrinsically the same.
Add files attribute and populate it after the task completes.

It strikes me that if I want to allow splitting up a build into multiple processes, this could be tricky... I'd have to ensure that any nodes that are a part of a path (with at least two nodes in it) in the dependency tree are always in the same subprocess... Or at least only fork after the shared dependency has been satisfied. I could actually get what I want anyways with a liberal use of properties... Or I could have a get_task function that you can pass in a decorated function for (or a name) and get this object...

So I did that rename, but I haven't really figured out if I want the decorator to actually swap out the functions with a task (that'll essentially be a singleton), or if I want to have a function like get_task that either takes in a function or name and returns a task somehow associated with the current build. If I use a function, it will feel a little more reasonable if there are multiple builds that are possible within a processes lifetime. At the moment, this isn't possible. We just spin up a new process each time.
A function will also be easier to mock out for unit tests.
I'm trying to imagine a case down the road when spinning up a new process won't be reasonable. A very large Python project would take awhile merely to bring up, and if there's some initialization logic it would have to be done every time. Same thing with any teardown stuff. Initialization could be improved by serializing state and restoring it, but it would be better if it could just not be repeated. This could be done by allowing users to say "these functions don't need to be run again if they've run and the code hasn't changed". This could get complicated, but could also be a command line option that very performance-conscious users can activate after knowing the caveats.

Here's some reasonable looking code in my post-some-beers mind:
import phial

cats = []

@phial.pipeline("css/*")
def css(source):
    return source

@phial.pipeline("js/*")
def js(source):
    return source | phial.concat("concat.js")

@phial.page("cats/*")
def bio_page(source_file):
    template = open("bio_template.htm").read()
    frontmatter, content = phial.parse_frontmatter(source_file)

    # HACK(brownhead): #22 aims to find a better solution to this.
    cats.append({"target": source_file.name, "name": frontmatter["name"]})

    output = template.format(content=content.read(), **frontmatter)
    return phial.file(
        name=source_file.name,
        content=output,
        metadata={"target": source_file.name, "name": frontmatter["name"]})

@phial.page(requires=bio_page)
def main_page():
    bio_task = phial.get_task(bio_page)
    cat_links = [i.metadata for i in bio_task.files]

    sorted_cats = sorted(cat_links, key=lambda link: link["name"])
    links = "".join(['
{name}
'.format(**i) for i in sorted_cats])

    template = open("main_template.htm").read()
    return phial.file(name="index.htm", content=template.format(links=links))

Still looks reasonable the morning after. I'll take a wack at implementing it.

Sweet, not too bad. Hardest part was debugging some weird import shinanigans.


Resizes the window with an always open drawer raises error

Bug type
Component, Other
Component name
MudDrawer
What happened?
When I added a drawer to the page and set it to be default open, it works as I expected. The problem starts when I tried to resize the window horizontally so that MudBlazor will automatically close the drawer since there is not enough space left on the screen, the drawer closes, but there is a black mask on the window preventing anything from being clicked. It produces an error message in the console (this error is raised on a Bolero application, on Blazor projects it may look different).
Expected behavior
The drawer closes without any error.
Reproduction link
https://try.mudblazor.com/snippet/QkGGYPcjoLGVYAAp
Reproduction steps

Shrink the code area in TryMudblazor to open the drawer (it was set to be open, but because of the size of the preview area it won't open until a resize gives enough space).
Expand the code area to force the drawer to close. The preview area will have a black mask on it, preventing any actions.

Relevant log output
Uncaught (in promise) Error: System.MissingMethodException: Method not found: object Microsoft.JSInterop.Infrastructure.DotNetInvocationResult.get_Result()
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
   at Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.BeginInvokeDotNet(String callId, String assemblyNameOrDotNetObjectId, String methodIdentifier, String argsJson)
    _convert_exception_for_method_call http://localhost:5000/_framework/dotnet.6.0.1.xo5qa70873.js:1
    _handle_exception_for_call http://localhost:5000/_framework/dotnet.6.0.1.xo5qa70873.js:1
    managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet https://mono-wasm.invalid/managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet:20
    beginInvokeDotNetFromJS http://localhost:5000/_framework/blazor.webassembly.js:1
    h http://localhost:5000/_framework/blazor.webassembly.js:1
    invokeMethodAsync http://localhost:5000/_framework/blazor.webassembly.js:1
    resizeHandler http://localhost:5000/_content/MudBlazor/MudBlazor.min.js:1
    setTimeout handler*throttleResizeHandler http://localhost:5000/_content/MudBlazor/MudBlazor.min.js:1
    listenForResize http://localhost:5000/_content/MudBlazor/MudBlazor.min.js:1
    listenForResize http://localhost:5000/_content/MudBlazor/MudBlazor.min.js:1
    i http://localhost:5000/_framework/blazor.webassembly.js:1
    beginInvokeJSFromDotNet http://localhost:5000/_framework/blazor.webassembly.js:1
    w http://localhost:5000/_framework/blazor.webassembly.js:1
    _mono_wasm_invoke_js_blazor http://localhost:5000/_framework/dotnet.6.0.1.xo5qa70873.js:1
    _mono_wasm_invoke_method http://localhost:5000/_framework/dotnet.6.0.1.xo5qa70873.js:1
    managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS https://mono-wasm.invalid/managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:16
    endInvokeJSFromDotNet http://localhost:5000/_framework/blazor.webassembly.js:1
    beginInvokeJSFromDotNet http://localhost:5000/_framework/blazor.webassembly.js:1
    promise callback*beginInvokeJSFromDotNet http://localhost:5000/_framework/blazor.webassembly.js:1
    w http://localhost:5000/_framework/blazor.webassembly.js:1
    _mono_wasm_invoke_js_blazor http://localhost:5000/_framework/dotnet.6.0.1.xo5qa70873.js:1
dotnet.6.0.1.xo5qa70873.js:1:179475

Version (bug)
6.0.2
Version (working)
No response
What browsers are you seeing the problem on?
Firefox
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Is there any update on this?

Hello?

I ran into this issue today.  It seems that setting Open="true" on an auto closing drawer is not a good idea.  If you use @bind-Open instead then it works e.g.:  https://try.mudblazor.com/snippet/QkQwaKOPcIRrHOoK

I ran into this issue today. It seems that setting Open="true" on an auto closing drawer is not a good idea. If you use @bind-Open instead then it works e.g.: https://try.mudblazor.com/snippet/QkQwaKOPcIRrHOoK

well unfortunately I uses this in a Bolero (F#) project, so @bind-Open isn't a option, I am not sure how Bolero processes binding under the hood (its view is essentially a function, each time the model updates it will be called again and rerendered).
So, what should I try?

Hi.

https://try.mudblazor.com/snippet/QkGGYPcjoLGVYAAp

Shrink the code area in TryMudblazor to open the drawer (it was set to be open, but because of the size of the preview area it won't open until a resize gives enough space).
Expand the code area to force the drawer to close. The preview area will have a black mask on it, preventing any actions.

I tried this link and the steps, I don't experience any errors in MudBlazor 6.7.0, I guess it was fixed. Closing, let me know if I'm wrong and I will reopen the issue.


error [caliper] [cli-launch-master]

Unexpected error during benchmark execution: Error: Invalid "mychannel" channel configuration: child "chaincodes" fails because ["chaincodes" is required]. "contracts" is not allowed
Context

When I try to start the Benchmark by running
npx caliper launch master     --caliper-bind-sut fabric:1.4.1     --caliper-workspace .     --caliper-benchconfig benchmarks/scenario/simple/config.yaml     --caliper-networkconfig networks/fabric/v1/v1.4.1/2org1peergoleveldb/fabric-go.yaml
Context

Your Environment

Version used:
0.3.1/0.3.0
Environment name and version (e.g. Chrome 39, node.js 5.4):
Nodejs 10.19, NPM 6.14
Operating System and version (desktop or mobile):
Ubuntu 20.04
Link to your project:

@casm3 The contracts terminology is introduced by the upcoming v0.4.0 release, please checkout the v0.3.2 tag of the repository to match the Caliper version you're using. If the issue still persists, let us know.


FB User is being logged out everytime after quitting/closing the app.

Let me know, If I can get help from localStorage () function?

Thank you for your mail.
I resolved it.
Thanks & Regards
Sikandar Khan Muhammed
Cheif Technical Officer - Innovare IT Solutions Pvt Ltd     :
itsinnovare.com http://www.itsinnovare.com
Co-Founder & Entrepreneur - Hamari Mitti Vidyalay         :
hamarimitti.org http://www.hamarimitti.org
Computer Science & Engineering                                     :   RGUKT
TG IIIT Basar
http://www.facebook.com/phoenix.haroz
http://in.linkedin.com/pub/sikandar-khan/5b/a19/763/
+919491486951
On Mon, Oct 26, 2015 at 9:27 AM, Parse Community Bot <
<EMAIL_ADDRESS>wrote:

Thank you for your feedback. We prioritize issues that have clear and
concise repro steps. Please see our Bug Reporting Guidelines
http://../blob/master/CONTRIBUTING.md#bugs about what information
should be added to this issue.
Please try the latest SDK. Our release notes http://../releases have
details about what issues were fixed in each release.
In addition, you might find the following resources helpful:

Documentation: https://www.parse.com/docs
Google Groups:
https://groups.google.com/forum/#!forum/parse-developers
Stack Overflow: http://stackoverflow.com/tags/parse.com

—
Reply to this email directly or view it on GitHub
https://github.com/ParsePlatform/Parse-SDK-JS/issues/66#issuecomment-151018382
.


MultipartUpload doesn't seem to work with KMS Encryption

Problem description
Trying to do a MultipartUpload doesn't seem to work when using a KMS key.

"errorMessage": "the bucket 'BUCKET' does not exist, or is forbidden for access (ClientError('An error occurred (KMS.NotFoundException) when calling the CreateMultipartUpload operation: Invalid keyId ['))",

Steps/code to reproduce the problem
The code used was this:
config = boto3.session.Config(signature_version='s3v4')

with smart_open.open(url, 'r', transport_params={
                'session':                      SESSION,
                'resource_kwargs': {
                    'config':                   config
                },
                'multipart_upload_kwargs': {
                    'ServerSideEncryption':     'aws:kms',
                    'SSEKMSKeyId':              KEY_id
                }
            })

works for a normal upload only.

Have you tried doing a multipart upload directly, without using smart_open?

@mpenkov  Not yet, as it would imply a considerable code change that I'd like to avoid. But are you saying smart_open doesn't work with KMS Encryption and MultipartUpload? If so I guess I'll have no other option.

I can't definitively say either way. On one hand, it isn't something we tested for at all (the boto3 feature set is huge, so we don't test everything). On the other hand, smart_open is a relatively thin layer over boto3, so in theory we should support pretty much everything that boto3 does.
I'm not suggesting that you change your code base, I'm suggesting you try implementing a test project (separate from your code base) that performs a multipart upload to the bucket in question directly via boto3. It should only take a dozen or so lines.
Once you get that test project working, we'll be able to figure out the gap between what smart_open provides now and what it needs to provide.

I did the test project and this works in boto3:
def create(self, bucket, key, kms_id):
    mpu = self.s3_client.create_multipart_upload(Bucket=bucket, Key=key, ServerSideEncryption='aws:kms', SSEKMSKeyId=kms_id)
    mpu_id = mpu["UploadId"]
    return mpu_id

def upload(self, mpu_id, bucket, key, kms_id):
    parts = []
    uploaded_bytes = 0
    self.s3_client.download_file(bucket, key, '/tmp/' + key)
    with open('/tmp/' + key, "r") as f:
        i = 1
        while True:
            data = f.read(PART_SIZE)
            if not len(data):
                break
            part = self.s3_client.upload_part(
                Body=data, Bucket=bucket, Key=key, UploadId=mpu_id, PartNumber=i)
            parts.append({"PartNumber": i, "ETag": part["ETag"]})
            uploaded_bytes += len(data)
            print("{0}: {1} uploaded".format(i, uploaded_bytes))
            i += 1
    return parts

def complete(self, bucket, key, mpu_id, parts):
    result = self.s3_client.complete_multipart_upload(
        Bucket=bucket,
        Key=key,
        UploadId=mpu_id,
        MultipartUpload={"Parts": parts})
    return result

def main(event, context):
            mpu_id = create(bucket, key, kms_id)
            parts = upload(mpu_id, bucket, key, kms_id)
            print(complete(bucket, key, mpu_id, parts))

What version of smart_open are you using?

@mpenkov 2.0, but we can update it if needed.

I did a new test project with smart_open 3.0 and it seems to work. I'll get back to you after testing it on the actual project:
def main(event, context):
    session = boto3.Session()
    config = boto3.session.Config(signature_version='s3v4')

    with smart_open.open(outputFileUrl, 'w', transport_params={
        'session': session,
                'resource_kwargs': {
                    'config': config
                },
                'multipart_upload_kwargs': {
                    'ServerSideEncryption': 'aws:kms',
                    'SSEKMSKeyId': KMS_ID
                }
            }
        ) as outputFile:
        with smart_open.open(inputFileurl, 'r', transport_params={
                'session': session,
                'resource_kwargs': {
                    'config': config
                },
                'multipart_upload_kwargs': {
                    'ServerSideEncryption': 'aws:kms',
                    'SSEKMSKeyId': KMS_ID
                }
            }
        ) as file:
            chunkCount = 0
            for chunk in iter(functools.partial(file.read, SIZE), ''):
                outputFile.write(chunk)
                print('chunk', chunk)

        print('Created file with url', outputFileUrl)```

@mpenkov Everything works after the update. Sorry about wasting your time.