Support environments on rlberry?

Currently, rlberry supports some environments, but we would like to add other environments developed by the SCOOL group to the repository. This raises the question of whether we should have environments as part of rlberry or not. An alternative would be to create another repository (like an RL Baselines Zoo for rlberry) in which we would put code for the environments (and possibly other things such as default hyperparameters).
I think it would be cleaner to separate the two repositories so that we can keep rlberry concise. In that case, we would still need to:

Decide what things will go into this new repository (trained agents, default hyperparameters, etc..)
Give the new repository a name
Create issues to remove what isn't needed here

Since one of the principles of the library is to help people design their agents, and environments are a key part of algorithmic design, I think it is important to keep environments in rlberry, but not all environments.
For instance, grid worlds (continuous or discrete) are very useful to debug agents, and I think that environments for debugging/analysis of agents should not only be kept, but developed.
However, I think that application-specific environments (as some that are developed by the team to simulate crops, for instance) should be kept in another repository, because their purpose is to solve a specific applied problem, rather than helping people to debug/develop general agents.
To summarize:

I suggest to keep and develop simple environments for debugging;
and to put application-specific environments (and that are more complex) in another repository.

Some other points that are useful in rlberry environments:

rlberry provides tools for users to easily render their own 2D environments (rlberry.rendering, which we can extend to 3D), and visualization is very useful for debugging;
rlberry provides an interface for environments that represent a generative model, that is, with a method sample(state, action) to collect a transition from any (state, action) pair; in addition to a step(action) that only takes an action. Some RL algorithms require a generative model, and might be implemented in rlberry, so we need to keep this environment interface in the library anyway.


Failure to parse one ini file renders the application useless

If one RP1210 driver ini file is bad, no drivers are read and it's not possible to use the application.  Exception handling should account for a bad ini file

Linked issues: https://drive.google.com/open?id=0BzIQ48EeW5tTcUNTQzdQWFJlc0U
and
https://drive.google.com/open?id=0BzIQ48EeW5tTZWZodGFzd0hxM1U


Removed aria-checked attribute, $ sign from alert message

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] 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:

[ ] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

Please write test cases for this change

Done!

The spec.js file needs to renamed to cy.js file


APIF-2714: Switch from confluent-log4j to reload4j  (5.4.x)

Cherry-pick of https://github.com/confluentinc/rest-utils/commit/151d97f34ed2467446e7e0b1c640fb6e8fec7e0a.

Downstream check failed on following repos:
secret-registry-5.4.x
schema-registry-5.4.x
kafka-rest-5.4.x
kafka-connect-replicator-5.4.x
ksql-5.4.x
confluent-security-plugins-5.4.x
metadata-service-5.4.x
blueway-5.4.x
confluent-cloud-plugins-5.4.x

Downstream repos need to migrate individually. Merging this PR.


Masking with GroundingDinoSAMSegment not working properly on Mac

I've set up a workflow to get the mask for the floor in a room, and given GroundingDino the prompt "floor" but it don't seem to do the masking correctly at all. I have tried this on two separate Mac's, both being M1 Macs. I've confirmed that this don't happen on PC.

I've also tried changing the threshold, and if I run it on the default "0.3" I get the following error:
Error occurred when executing GroundingDinoSAMSegment (segment anything):

cannot unpack non-iterable NoneType object

File "/Users/Alexander/Documents/AI/ComfyUI3/ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Alexander/Documents/AI/ComfyUI3/ComfyUI/execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Alexander/Documents/AI/ComfyUI3/ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Alexander/Documents/AI/ComfyUI3/ComfyUI/custom_nodes/comfyui_segment_anything/node.py", line 305, in main
(images, masks) = sam_segment(

Please let me know how to fix this, highly dependent on it working locally.

Some better error checking would be nice throughout the node. I will try to add some more and submit a PR. For instance, if you try to detect something that the model does not find in the image, you will get an error, rather than just an empty mask.

@ttulttul do you maybe want to join my try to push this repo to dinov2
i would setup a new fork where we can try this. but yesterday i accedently deleted the whole project ^sic
so i should start all over again. but on the other hand we can declutter this code.
@minifisk your threshold is very low
imagine it is the "box_threshold" of the detector. so it will try to detect every kind of floor, maybe rising the threshold will help
i will put a PR later today where i have renamed this value and also added device selector and also multimask
automasking will happen later

@ttulttul do you maybe want to join my try to push this repo to dinov2 i would setup a new fork where we can try this. but yesterday i accedently deleted the whole project ^sic so i should start all over again. but on the other hand we can declutter this code.

Sounds good! Send me your fork.

@ttulttul
Daniel's Segment Anything fork: https://github.com/dnl13/comfyui_segment_anything
Dinov2 WIP implementation: https://github.com/dnl13/ComfyUI-dnl13-seg

Hi Alessandro,
I've started following Daniel's fork and I'll see where I can contribute
there. Thank you!
On Sun, Nov 12, 2023 at 1:18 AM Alessandro Perilli @.***>
wrote:

@ttulttul https://github.com/ttulttul
Daniel's Segment Anything fork:
https://github.com/dnl13/comfyui_segment_anything
Dinov2 WIP implementation: https://github.com/dnl13/ComfyUI-dnl13-seg
—
Reply to this email directly, view it on GitHub
https://github.com/storyicon/comfyui_segment_anything/issues/14#issuecomment-1807067017,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGQHRMZNKK4OJHTZHDMBB3YECH67AVCNFSM6AAAAAA7DPG7LSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGA3DOMBRG4
.
You are receiving this because you were mentioned.Message ID:
@.***>


Bump arrow to 6.1.0

Using released arrow/parquet crates. One step closer to the delta-rs release.
Unfortunately datafusion has no release for 6.1 yet

datafusion 6 release should hopefully be out in a week or so.


Error: Can't find npm module Did you forget to call 'Npm.depends' in package.js within the 'npm-container' package?

Hi,
Been battling with this for many hours, I have tried uninstalling/installing everything again etc but nothing helps:S
My packages.json:
{
"instagram-node": "0.5.2"
}
server.js:
var insta = Meteor.npmRequire('instagram-api');
and I get this error everytime:
W20151004-19:53:26.673(2)? (STDERR) Error: Can't find npm module 'instagram-api'. Did you forget to call 'Npm.depends' in package.js within the 'npm-container' package?
W20151004-19:53:26.673(2)? (STDERR)     at Object.Npm.require (/Users/villem1/instaPrint/instaPrint2/.meteor/local/build/programs/server/boot.js:175:17)
W20151004-19:53:26.674(2)? (STDERR)     at Object.Meteor.npmRequire (packages/npm-container/index.js:2:1)
W20151004-19:53:26.674(2)? (STDERR)     at server/server.js:2:23
W20151004-19:53:26.674(2)? (STDERR)     at /Users/villem1/instaPrint/instaPrint2/.meteor/local/build/programs/server/app/server/server.js:19:4
W20151004-19:53:26.674(2)? (STDERR)     at /Users/villem1/instaPrint/instaPrint2/.meteor/local/build/programs/server/boot.js:242:10
W20151004-19:53:26.674(2)? (STDERR)     at Array.forEach (native)
W20151004-19:53:26.674(2)? (STDERR)     at Function..each..forEach (/Users/villem1/.meteor/packages/meteor-tool/.<IP_ADDRESS>sd3e7j++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151004-19:53:26.674(2)? (STDERR)     at /Users/villem1/instaPrint/instaPrint2/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8

nevermind, found the typo...


Write tests for streaming_merge

Is your feature request related to a problem or challenge?
With #6874, physical_plan::merge::streaming_merge is now public.
Without some care, the change may be lost in some future refactoring (e.g. if the code is moved to another module, for example, that is not pub).
Describe the solution you'd like
Write a test, perhaps as an example of how to use this API, in: https://github.com/apache/arrow-datafusion/tree/main/datafusion-examples/examples
Might be able to adapt some of the existing code in https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/fuzz_cases/merge_fuzz.rs or https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/benches/sort.rs
Describe alternatives you've considered
No response
Additional context
No response

Yea, it is good to add test for public API.


[BUG] Error with something

Describe the bug (描述)
图片copy失败
Additional context (附加信息)
error = Error Domain=NSCocoaErrorDomain Code=516 "“IMG_0031.JPG” couldn’t be copied to “.image” because an item with the same name already exists."

请依照模板详细描述问题。Ref: #28


[Sql] Change the abbreviation from Xa to XA

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.Sql


New implementation of _group_interchangeable_qubits  can create duplicate keys in returned Tuple

Description of the issue
https://github.com/quantumlib/Cirq/pull/4941 modified the implementation of _group_interchangeable_qubits, but in doing so inadvertently made a breaking change in how the returning Tuple is constructed.
The example code below shows how the constructed tuple would return ((0, frozenset({cirq.LineQubit(0), cirq.LineQubit(1), cirq.LineQubit(3)})), (2, frozenset({cirq.LineQubit(2)}))) with previous implementation.
Now it returns  ((0, frozenset({cirq.LineQubit(0), cirq.LineQubit(1)})), (2,frozenset({cirq.LineQubit(2)})), (0, frozenset({cirq.LineQubit(3)}))).
The second tuple has 2 keys that are 0.
How to reproduce the issue
import itertools
from typing import Tuple, FrozenSet, Union, cast, Dict, List

import cirq
from cirq.ops import gate_features

class MyGate(cirq.Gate, cirq.InterchangeableQubitsGate):
    def __init__(self, num_qubits) -> None:
        self._num_qubits = num_qubits

    def num_qubits(self) -> int:
        return self._num_qubits

    def qubit_index_to_equivalence_group_key(self, index: int) -> int:
        if index % 2 == 0:
            return index
        return 0

class OldGroupInterchangeableQubitsGateOperation(cirq.GateOperation):
    def _group_interchangeable_qubits(
        self,
    ) -> Tuple[Union["cirq.Qid", Tuple[int, FrozenSet["cirq.Qid"]]], ...]:

        if not isinstance(self.gate, gate_features.InterchangeableQubitsGate):
            return self.qubits

        groups: Dict[int, List["cirq.Qid"]] = {}
        for i, q in enumerate(self.qubits):
            k = self.gate.qubit_index_to_equivalence_group_key(i)
            if k not in groups:
                groups[k] = []
            groups[k].append(q)
        returned_tuple = tuple(sorted((k, frozenset(v)) for k, v in groups.items()))
        print(returned_tuple)
        return returned_tuple

class NewGroupInterchangeableQubitsGateOperation(cirq.GateOperation):
    def _group_interchangeable_qubits(
        self,
    ) -> Tuple[Union["cirq.Qid", Tuple[int, FrozenSet["cirq.Qid"]]], ...]:
        if not isinstance(self.gate, gate_features.InterchangeableQubitsGate):
            return self.qubits
        else:

            def make_key(i_q: Tuple[int, "cirq.Qid"]) -> int:
                return cast(
                    gate_features.InterchangeableQubitsGate, self.gate
                ).qubit_index_to_equivalence_group_key(i_q[0])

            returned_tuple = tuple(
                (k, frozenset(g for _, g in kg))
                for k, kg in itertools.groupby(enumerate(self.qubits), make_key)
            )
            print(returned_tuple)
            return returned_tuple

qubits = cirq.LineQubit.range(4)
gate = MyGate(4)

print("Old group Tuples")
# prints
# ((0, frozenset({cirq.LineQubit(0), cirq.LineQubit(1), cirq.LineQubit(3)})), (2, frozenset({cirq.LineQubit(2)})))
# ((0, frozenset({cirq.LineQubit(0), cirq.LineQubit(2), cirq.LineQubit(3)})), (2, frozenset({cirq.LineQubit(1)})))
OldGroupInterchangeableQubitsGateOperation(
    gate, [qubits[0], qubits[1], qubits[2], qubits[3]]
) == OldGroupInterchangeableQubitsGateOperation(
    gate, [qubits[3], qubits[2], qubits[1], qubits[0]]
)

print("New group Tuples")
# prints
# ((0, frozenset({cirq.LineQubit(0), cirq.LineQubit(1)})), (2, frozenset({cirq.LineQubit(2)})), (0, frozenset({cirq.LineQubit(3)})))
# ((0, frozenset({cirq.LineQubit(2), cirq.LineQubit(3)})), (2, frozenset({cirq.LineQubit(1)})), (0, frozenset({cirq.LineQubit(0)})))
NewGroupInterchangeableQubitsGateOperation(
    gate, [qubits[0], qubits[1], qubits[2], qubits[3]]
) == NewGroupInterchangeableQubitsGateOperation(
    gate, [qubits[3], qubits[2], qubits[1], qubits[0]]
)

Cirq version
0.14.0

Discussion from sync meeting: Lets try and get this back into a state where you can only have one key, and also add tests.

Hey @Ashalynd , your pythonic implementation creates duplicate keys and I can't seem to find a way to get around that besides merging tuples with duplicate keys at the end. Doing this is rather complex so i'm thinking of reverting that code back to the non-pythonic version unless you have a better idea.

Oh boy, that was a silly oversight on my side: https://docs.python.org/3/library/itertools.html#itertools.groupby
TL/DR for posterity: the stuff grouped by groupby had to be sorted prior to grouping. My bad for forgetting about it :-(


Call only one watch callback at a time, in order.

This fixes a race condition (that I believe only happens in testing at the moment, but I'm fixing it generally).

I updated this pull request, and added some passing around of the unique_lock, so we can assert that it is owned (this just makes me feel better).

Here is an example of the race condition I'm trying to fix:
https://travis-ci.org/google/certificate-transparency/builds/46762140

LGTM


Re-order List View fields

Hi,
Open this pull request to fix the issue https://github.com/oscarmlage/django-cruds-adminlte/issues/82.

Thanks! I'm going to review it


Move "open in new tab" SVG from HTML to CSS

Describe the bug
SVG is currently embedded in the HTML and needs to be removed.
Expected behavior
The links should still open in a new tab, and the icon should be present.  Use CSS and a class to insert expected behavior, not .md or .html

The first task would be to identify all candidate links in the HTML/Markdown.  We'd want to remove the inline SVG image and ensure the hyperlink anchor tag had a class specifically for this purpose (ex. class="externalLink").
Second, we'd identify CSS that's on all or most pages, put it on all pages, and add a selector that appends the SVG to all anchor tags with that class.
Third, we'd do the same with JavaScript and target an onclick event handler that would ensure the link opens in a new tab when clicked on.
Those three tasks, when used in combination, would replicate the current functionality while at the same time ensuring that all downstream consumers of the Markdown/HTML documentation do not inherit that functionality.

Slack on 9/1:
Joe Pearson  27 minutes ago
The first task would be to identify all candidate links in the HTML/Markdown.  We'd want to remove the inline SVG image and ensure the hyperlink anchor tag had a class specifically for this purpose (ex. class="externalLink").
Second, we'd identify CSS that's on all or most pages, put it on all pages, and add a selector that appends the SVG to all anchor tags with that class.
Third, we'd do the same with JavaScript and target an onclick event handler that would ensure the link opens in a new tab when clicked on.
Those three tasks, when used in combination, would replicate the current functionality while at the same time ensuring that all downstream consumers of the Markdown/HTML documentation do not inherit that functionality.

@joewxboy  Can you elaborate a bit about which SVG you are mentioning?

I think that it's the SVG for this:

@Rene-Ch1 Thanks

@Sukriti-sood And if it's unclear ... IEAM (IBM Edge Application Manager) is a downstream commercial distribution based on the OH (Open Horizon) project.  We're attempting to make the IEAM-contributed documentation vendor-neutral and yet consumable by any downstream product that wants to use it.


Added ServicesCardGrid Component for the Second Theme

Signed-off-by: Abhijay Jain<EMAIL_ADDRESS>Description
Added ServicesCardGrid Component for the Second Theme
Resolves #257
Screenshots (In case of UI changes):

Desktop  View

Types of changes

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests have passed and it does not give any unexpected error for the same.

cc: @charithccmc @dinithminura


Bevy 0.12 update

Updated for bevy 0.12
The only change I did was to include the prelude to get rid of this deprecation warning:
warning: use of deprecated function `bevy::prelude::error`: use `.map(bevy_utils::error)` instead
 --> src/plugin.rs:4:9
  |
4 |         error, info, App, Camera, Commands, Component, Entity, OrthographicProjection, Plugin,
  |         ^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated function `bevy::prelude::info`: use `.map(bevy_utils::info)` instead
 --> src/plugin.rs:4:16
  |
4 |         error, info, App, Camera, Commands, Component, Entity, OrthographicProjection, Plugin,
  |                ^^^^

warning: `bevy_touch_camera` (lib) generated 2 warnings

Thanks. I've published your changes from #1 and #2 in version 0.1.2


Add application monitoring support

Purpose
Following Mozilla's Dockerflow specification, we need a way to check & monitor currently running release.
Proposal

Create a JSON version object in /app/version.json
Serve this version from the /__version__ url
Respond to /__heartbeat__ with a HTTP 200 or 5xx on error. This should check backing services like a database for connectivity.

We discussed this in  #42.


Tesla / vehicle unavailable in dashboard

Tesla Model Y bzw. vehicle wird im evcc dashboard nicht erkannt und als "unavailabe" angezeigt, connection Status "verbunden".
Im debug wird folgender Fehler ausgegeben (Auszug):
[lp-2  ] INFO 2021/12/01 15:37:41 vehicle updated: unknown -> unavailable
[lp-2  ] ERROR 2021/12/01 15:37:51 vehicle soc: vehicle not available: cannot create vehicle 'Tesla': 1 error(s) decoding:

'' has invalid keys: password, user

Ich habe bestimmt einen Fehler in der Konfig, es wäre nett wenn jemand einen Blick drauf werfen könnte.

Hardware setup:

Tesla Powerwall 2 (battery, grid, pv)
Tesla Model Y (vehicle)
2x Tinkerforge warp smart (chargers)
evcc (Docker)
mqtt (Docker)

EVCC details:
Show output of evcc -v:
evcc version 0.70 (5188ce5)

Show evcc configuration file evcc.yaml:
uri: 192.168.xxx.xx:7070 # uri for ui
interval: 10s # control cycle interval
sponsor token enables optional features (request at https://cloud.evcc.io)
sponsortoken:
log settings

log: debug
levels:
core: debug
lp-1: debug
lp-2: debug
meter definitions
name can be freely chosen and is used as reference when assigning meters to site and loadpoints
for examples see https://github.com/evcc-io/config#meters
meters:

name: battery
type: tesla
uri: https://192.168.xxx.xx/
usage: battery
password: Password123
name: grid
type: tesla
uri: https://192.168.xxx.xx/
usage: grid
password: Password123
name: pv
type: tesla
uri: https://192.168.xxx.xx/
usage: pv
password: Password123

charger definitions
name can be freely chosen and is used as reference when assigning charger to vehicle
for examples see https://github.com/evcc-io/config#chargers
chargers:

name: warp2-rechts        # Konfigurationsname der Wallbox
type: warp        # Typ der Wallbox
broker: 192.168.xxx.xx # Hostname oder Adresse des MQTT-Brokers
topic: warp2-rechts   # Der Topic-Präfix
usemeter: false    # true für WARP Charger Pro, false für Smart
timeout: 30s

name: warp2-links        # Konfigurationsname der Wallbox
type: warp        # Typ der Wallbox
broker: 192.168.xxx.xx # Hostname oder Adresse des MQTT-Brokers
topic: warp2-links   # Der Topic-Präfix
usemeter: false    # true für WARP Charger Pro, false für Smart
timeout: 30s

vehicle definitions
name can be freely chosen and is used as reference when assigning vehicle to loadpoint
for examples see https://github.com/evcc-io/config#vehicles
vehicles:

name: tesla
type: tesla
title: Model Y # title of your car
capacity: 77 # kWh
user<EMAIL_ADDRESS># your email address used on Tesla website
password: Password123 # your password used on Tesla website
vin: LRWxxxxxxxxxxxxxx # the VIN of your car (can be obtained from Tesla website)
cache: 5m

onIdentify: # set defaults when vehicle is identified
minSoC: 20 # charge to at least 20% independent of charge mode
targetSoC: 80 # limit charge to 90%
site describes the EVU connection, PV and home battery
site:
title: Home # display name for UI
meters:
grid: grid # grid meter
pv: pv # list of pv inverters/ meters
battery: battery # battery meter
prioritySoC: 80 # give home battery priority up to this soc (empty to disable)
bufferSoC: # ignore home battery discharge above soc (empty to disable)
loadpoint describes the charger, charge meter and connected vehicle
loadpoints:

title: Garage-Rechts # display name for UI
charger: warp2-rechts # charger
meters:

charge: charge # charge meter
vehicle: tesla
vehicles: # use if multiple vehicles allowed to charge on this loadpoint
- ID.3
- e-Up
mode: pv
resetOnDisconnect: true # set defaults when vehicle disconnects
soc:
# polling defines usage of the vehicle APIs
# Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
# or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
poll:
# poll mode defines under which condition the vehicle API is called:
#   charging: update vehicle ONLY when charging (this is the recommended default)
#   connected: update vehicle when connected (not only charging), interval defines how often
#   always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
mode: charging
# poll interval defines how often the vehicle API may be polled if NOT charging
interval: 60m
min: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
target: 80 # always charge to 100%
estimate: true # set true to interpolate between api updates
#onDisconnect: # set defaults when vehicle disconnects
mode: pv # switch back to pv mode
targetSoC: 80 # charge to 100%
phases: 3 # ev phases (default 3)
enable: # pv mode enable behavior
delay: 1m # threshold must be exceeded for this long
threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
disable: # pv mode disable behavior
delay: 10m # threshold must be exceeded for this long
threshold: 200 # maximum import power (W)
guardduration: 5m # switch charger contactor not more often than this (default 10m)
mincurrent: 6 # minimum charge current (default 6A)
maxcurrent: 16 # maximum charge current (default 16A)

title: Garage-Links # display name for UI
charger: warp2-links # charger
meters:

charge: charge # charge meter
vehicle: tesla
vehicles: # use if multiple vehicles allowed to charge on this loadpoint
- ID.3
- e-Up
mode: pv
resetOnDisconnect: true # set defaults when vehicle disconnects
soc:
# polling defines usage of the vehicle APIs
# Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
# or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
poll:
# poll mode defines under which condition the vehicle API is called:
#   charging: update vehicle ONLY when charging (this is the recommended default)
#   connected: update vehicle when connected (not only charging), interval defines how often
#   always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
mode: charging
# poll interval defines how often the vehicle API may be polled if NOT charging
interval: 60m
min: 0 # immediately charge to 0% regardless of mode unless "off" (disabled)
target: 80 # always charge to 100%
estimate: true # set true to interpolate between api updates
phases: 3 # ev phases (default 3)
enable: # pv mode enable behavior
delay: 1m # threshold must be exceeded for this long
threshold: 0 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
disable: # pv mode disable behavior
delay: 10m # threshold must be exceeded for this long
threshold: 200 # maximum import power (W)
guardduration: 5m # switch charger contactor not more often than this (default 10m)
mincurrent: 6 # minimum charge current (default 6A)
maxcurrent: 16 # maximum charge current (default 16A)
tariffs are the fixed or variable tariffs
cheap can be used to define a tariff rate considered cheap enough for charging
tariffs:
grid:
# # either
# type: tibber
# cheap: 20 # ct/kWh
# token: "" # access token
# homeid: "" # optional if multiple homes associated to account
# # or
# type: awattar
# cheap: 20 # ct/kWh
# region: de # optional, choose at for Austria

mqtt message broker
mqtt:
broker: 192.168.xxx.xx:1883
topic: evcc # root topic for publishing, set empty to disable
user:
password:
influx database
influx:
url: http://localhost:8086
database: evcc
user:
password:
eebus credentials
eebus:
uri: # :4712
interfaces: # limit eebus to specific network interfaces
- en0
certificate: # local signed certificate, required, can be generated via evcc eebus-cert
public: # public key
private: # private key
push messages
messaging:
events:
start: # charge start event
title: Charge started
msg: Started charging in "${mode}" mode
stop: # charge stop event
title: Charge finished
msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.
connect: # vehicle connect event
title: Car connected
msg: "Car connected at ${pvPower:%.1fk}kW PV"
disconnect: # vehicle connected event
title: Car disconnected
msg: Car disconnected after ${connectedDuration}
services:
- type: pushover
app: # app id
recipients:
- # list of recipient ids
- type: telegram
token: # bot id
chats:
- # list of chat ids
- type: email
uri: smtp://:@:/?fromAddress=&toAddresses=

Show evcc log output with --log debug:
[main  ] INFO 2021/12/01 15:37:39 evcc 0.70 (5188ce5)
[main  ] INFO 2021/12/01 15:37:39 using config file /etc/evcc.yaml
[main  ] INFO 2021/12/01 15:37:39 listening at 192.168.xxx.xx:7070
[mqtt  ] INFO 2021/12/01 15:37:39 connecting evcc-989272926 at 192.168.xxx.xx:1883
[mqtt  ] DEBUG 2021/12/01 15:37:39 192.168.xxx.xx:1883 connected
[warp  ] INFO 2021/12/01 15:37:41 connecting evcc-1340482155 at 192.168.xxx.xx:1883
[warp  ] DEBUG 2021/12/01 15:37:41 192.168.xxx.xx:1883 connected
[cache ] DEBUG 2021/12/01 15:37:41 title: Garage-Rechts
[cache ] DEBUG 2021/12/01 15:37:41 minCurrent: 6
[cache ] DEBUG 2021/12/01 15:37:41 maxCurrent: 16
[cache ] DEBUG 2021/12/01 15:37:41 phases: 3
[cache ] DEBUG 2021/12/01 15:37:41 activePhases: 3
[cache ] DEBUG 2021/12/01 15:37:41 hasVehicle: true
[cache ] DEBUG 2021/12/01 15:37:41 mode: pv
[lp-1  ] INFO 2021/12/01 15:37:41 vehicle updated: unknown -> unavailable
[cache ] DEBUG 2021/12/01 15:37:41 targetSoC: 80
[cache ] DEBUG 2021/12/01 15:37:41 minSoC: 0
[cache ] DEBUG 2021/12/01 15:37:41 vehiclePresent: true
[cache ] DEBUG 2021/12/01 15:37:41 vehicleTitle: unavailable
[cache ] DEBUG 2021/12/01 15:37:41 vehicleCapacity: 0
[cache ] DEBUG 2021/12/01 15:37:41 vehicleRange: 0
[cache ] DEBUG 2021/12/01 15:37:41 title: Garage-Links
[cache ] DEBUG 2021/12/01 15:37:41 minCurrent: 6
[cache ] DEBUG 2021/12/01 15:37:41 vehicleOdometer: 0
[cache ] DEBUG 2021/12/01 15:37:41 maxCurrent: 16
[cache ] DEBUG 2021/12/01 15:37:41 phases: 3
[cache ] DEBUG 2021/12/01 15:37:41 activePhases: 3
[cache ] DEBUG 2021/12/01 15:37:41 hasVehicle: true
[lp-2  ] INFO 2021/12/01 15:37:41 vehicle updated: unknown -> unavailable
[cache ] DEBUG 2021/12/01 15:37:41 mode: pv
[cache ] DEBUG 2021/12/01 15:37:41 targetSoC: 80
[cache ] DEBUG 2021/12/01 15:37:41 minSoC: 0
[cache ] DEBUG 2021/12/01 15:37:41 vehiclePresent: true
[cache ] DEBUG 2021/12/01 15:37:41 vehicleTitle: unavailable
[cache ] DEBUG 2021/12/01 15:37:41 vehicleCapacity: 0
[cache ] DEBUG 2021/12/01 15:37:41 vehicleRange: 0
[site  ] INFO 2021/12/01 15:37:41 site config:
[site  ] INFO 2021/12/01 15:37:41   meters:    grid ✓ pv ✓ battery ✓
[cache ] DEBUG 2021/12/01 15:37:41 siteTitle: Home
[cache ] DEBUG 2021/12/01 15:37:41 gridConfigured: true
[site  ] INFO 2021/12/01 15:37:41     grid:    power ✓ energy ✗ currents ✗
[site  ] INFO 2021/12/01 15:37:41     pv 0:    power ✓ energy ✓ currents ✗
[site  ] INFO 2021/12/01 15:37:41     battery 0: power ✓ energy ✗ currents ✗ soc ✓
[cache ] DEBUG 2021/12/01 15:37:41 vehicleOdometer: 0
[cache ] DEBUG 2021/12/01 15:37:41 pvConfigured: true
[cache ] DEBUG 2021/12/01 15:37:41 batteryConfigured: true
[cache ] DEBUG 2021/12/01 15:37:41 prioritySoC: 80
[lp-1  ] INFO 2021/12/01 15:37:41 loadpoint 1:
[lp-1  ] INFO 2021/12/01 15:37:41   mode:      pv
[lp-1  ] INFO 2021/12/01 15:37:41   charger:   power ✗ energy ✗ currents ✗ timer ✗
[lp-1  ] INFO 2021/12/01 15:37:41   meters:    charge ✗
[cache ] DEBUG 2021/12/01 15:37:41 chargeConfigured: false
[lp-1  ] INFO 2021/12/01 15:37:41   vehicles:  ✓
[lp-1  ] INFO 2021/12/01 15:37:41     car 0:   range ✗ finish ✗ status ✗ climate ✗
[lp-2  ] INFO 2021/12/01 15:37:41 loadpoint 2:
[lp-2  ] INFO 2021/12/01 15:37:41   mode:      pv
[lp-2  ] INFO 2021/12/01 15:37:41   charger:   power ✗ energy ✗ currents ✗ timer ✗
[lp-2  ] INFO 2021/12/01 15:37:41   meters:    charge ✗
[lp-2  ] INFO 2021/12/01 15:37:41   vehicles:  ✓
[lp-2  ] INFO 2021/12/01 15:37:41     car 0:   range ✗ finish ✗ status ✗ climate ✗
[cache ] DEBUG 2021/12/01 15:37:41 chargeConfigured: false
[site  ] DEBUG 2021/12/01 15:37:41 ----
[site  ] DEBUG 2021/12/01 15:37:51 pv power: 106W
[cache ] DEBUG 2021/12/01 15:37:51 pvPower: 106
[site  ] DEBUG 2021/12/01 15:37:51 grid power: 893W
[cache ] DEBUG 2021/12/01 15:37:51 gridPower: 893
[site  ] DEBUG 2021/12/01 15:37:51 battery power: -40W
[cache ] DEBUG 2021/12/01 15:37:51 batteryPower: -40
[site  ] DEBUG 2021/12/01 15:37:51 battery soc 0: 5%
[site  ] DEBUG 2021/12/01 15:37:51 giving priority to battery charging at soc: 5
[site  ] DEBUG 2021/12/01 15:37:51 site power: 893W
[lp-2  ] DEBUG 2021/12/01 15:37:51 charge power: 0W
[cache ] DEBUG 2021/12/01 15:37:51 batterySoC: 5
[cache ] DEBUG 2021/12/01 15:37:51 mode: pv
[cache ] DEBUG 2021/12/01 15:37:51 chargePower: 0
[cache ] DEBUG 2021/12/01 15:37:51 chargeCurrent: 0
[cache ] DEBUG 2021/12/01 15:37:51 chargedEnergy: 0
[lp-2  ] DEBUG 2021/12/01 15:37:51 charger status: B
[cache ] DEBUG 2021/12/01 15:37:51 chargeDuration: 0s
[cache ] DEBUG 2021/12/01 15:37:51 connectedDuration: 0s
[cache ] DEBUG 2021/12/01 15:37:51 chargeCurrent: 0
[cache ] DEBUG 2021/12/01 15:37:51 connected: true
[lp-2  ] ERROR 2021/12/01 15:37:51 vehicle soc: vehicle not available: cannot create vehicle 'Tesla': 1 error(s) decoding:

'' has invalid keys: password, user
[cache ] DEBUG 2021/12/01 15:37:51 charging: false
[cache ] DEBUG 2021/12/01 15:37:51 enabled: false
[lp-2  ] DEBUG 2021/12/01 15:37:51 target charging active for 0001-01-01 00:00:00 +0000 UTC: projected 2021-12-01 15:38:00 +0100 CET (0s remaining)
[cache ] DEBUG 2021/12/01 15:37:51 timerSet: false
[cache ] DEBUG 2021/12/01 15:37:51 timerActive: true
[cache ] DEBUG 2021/12/01 15:37:51 timerProjectedEnd: 2021-12-01 15:38:00 +0100 CET
[lp-2  ] DEBUG 2021/12/01 15:37:51 max charge current: 0A = 0A + -1.29A (893W @ 3p)
[lp-2  ] DEBUG 2021/12/01 15:37:51 reset pv enable timer: 1m0s
[lp-2  ] DEBUG 2021/12/01 15:37:51 pv enable timer: keep disabled
[lp-2  ] DEBUG 2021/12/01 15:37:51 pv max charge current: 0A
[lp-2  ] DEBUG 2021/12/01 15:37:52 charge power: 0W
[cache ] DEBUG 2021/12/01 15:37:52 homePower: 959
[cache ] DEBUG 2021/12/01 15:37:52 chargePower: 0

If using Docker:
Show output of docker run andig/evcc -v:
evcc version 0.70 (5188ce5)

has invalid keys: password, user

Da steht alles. Bitte Tokens verwenden.

has invalid keys: password, user

Da steht alles. Bitte Tokens verwenden.


fix up install instructions & number format description

Codecov Report
Patch and project coverage have no change.

Comparison is base (6be928e) 78.73% compared to head (7c6b2b8) 78.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #521   +/-   ##
=======================================
  Coverage   78.73%   78.73%
=======================================
  Files          55       55
  Lines        3381     3381
=======================================
  Hits         2662     2662
  Misses        719      719

Flag
Coverage Δ

unittests
78.73% <ø> (ø)

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

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


Showing specific aggregators and renderers in the dropdowns

Hi Nicolas,
Is it possible to specify only a few aggregators and renderers at the time of calling pivotUI?
For example, I only want to show Table and Bar Chart in the renderers dropdown, and only count, sum and average in the aggregators dropdown.
I have checked in the wiki and I have not found an example of this in use.
Thanks.
Peter.

Hi
I use jquery method but it can works like below.... But Sum or other how can  I add some of them default aggregations template to my pivotUI
---works only tpl.count if i define fix field name tpl.sum()[ field ....] works also but i dont know which field sum user will select field --------
var tpl = $.pivotUtilities.aggregatorTemplates;
...
aggregators:    {
"Count": function() { return tpl.count()() }
}
...
------------------THIS IS NOT WORK------------
aggregators: {
"Count": $.pivotUtilities.aggregators.count
, "Sum": $.pivotUtilities.aggregators.sum
, "Average": $.pivotUtilities.aggregators.average
}

@alpertandogan please create a new issues rather than commenting on something that was a closed 4 years ago :)


Keymaps (and alternative)

Thanks for this! I installed from package control but can't access keymap: "The settings file "res://Packages/
FontSizePerView/Default.sublime-keymap" could not be opened OK".
BTW: Did you see the code in #1551 thread?

@reagle Thanks for sharing, it took me a while to have access to a Mac to test. That error seems to be a result of a filesystem path inconsistency that was introduced by this plugin getting renamed to have spaces once it was merged into the Package Control channel (i.e. it was originaly FontSizePerView but is now Font Size Per View.
#2 resolves this in my testing (note that I had to quit and restart Sublime Text when installing it manually from git clone to resolve ImportErrors it was throwing in the console).
Are you able to test using the macos-fix branch and let me know if it works for you now? I added MacOS-specific instructions for manually installing in that branch's README.
Also for convenience, I added a command palette command to open the keybinding settings (Font Size Per View: Open Key Binding Settings) in addition to the menubar entry.

Yes, that seems to work, but I prefer the syntax-wide settings from @deathaxe [https://github.com/sublimehq/sublime_text/issues/1551#issuecomment-1348150261], so I'm going to keep using that.


Error detected while processing function 9_airline_toggle

environment

vim: 8.2.219
vim-airline: latest
OS: macos
Have you reproduced with a minimal vimrc: y
Loading just loading vim-airline as the only plugin in .vimrc triggers the error.
What is your airline configuration:
none
if you are using terminal:
terminal: iterm2
$TERM variable: ???
color configuration (:set t_Co?):
if you are using Neovim:
does it happen in Vim: yes happens in vim 8.2.219 and nvim v0.5.0-236-g39094b3fa

actual behavior
Nvim v0.5.0-236-g39094b3fa ERROR:

Error detected while processing function 10_airline_toggle:
line   75:
E117: Unknown function: airline#util#stl_disabled
E15: Invalid expression: !airline#util#stl_disabled(winnr())

Vim version 8.2.219 ERROR:

Error detected while processing function 9_airline_toggle:
line   75:
E117: Unknown function: airline#util#stl_disabled

expected behavior
Not to have errors on startup
screen shot (if possible)

Could you tell us your minimum configuration?

how do you reproduce? Are you sure, you have the latest version installed? sounds like same error as #2039

no answer, closing


Preload function would have to accept a  constant string parameter as input.

Preload function would have to accept a  constant string parameter as input.
const WARM_UP_STATE = "res://scenes/states/warm_up/warm_up.tscn"

func _go():
    current_state = preload(WARM_UP_STATE).instance()
    level.add_child(current_state)

res://scenes/levels/level_01/src/node2d_state_manager.gd:23  - Parse Error: expected string constant as 'preload' argument.

Not understanding what you mean.
you could just do:
WARM_UP_STATE = preload("res://scenes/states/warm_up/warm_up.tscn")
then just call it in your function
func _go():
current_state = WARM_UP_STATE.instance()
level.add_child(current_state)

That's right! But IMO it doesn't change the fact that the function should accept a constant string and WARM_UP_STATE is a constant string.

I also think it should accept constants even if it's defined in external file (lets say I have singleton with constants)

This is amusing. I was going to say something because I am loading an "empty scene" from a string constant in my project. Turns out I was using load() (which works) instead of preload() (which doesn't), making them inconsistent.

Well it's normal that load() works as it does not expect a constant. But preload() does, and apparently fails to see a const String as such.

Ah I see, I figured load() would also expect a constant.

As i see it, preload function loads the resource when the scene is constructed, for that reason needs a constant input, on the other hand load function loads the resource when it is called.

Thanks i use this as my final code.. texture = ResourceLoader.load(image_path) and it work properly


Add BUSINESS_UNITS.md

Please fill in the template as per the instructions and merge this PR. For more details, please read the email with the subject line Tracking changes required when adding Business Units. If you have any questions, please message Oscar Robinson on Slack.

Just passing by to say hi and to unwatch this repo 👋 😄


Create QR code card's image not clipped to padding

Describe the bug
The button's location in the QR code card does not depend on the image. This means that depending on screen width and font size, the background image can appear behind the button (in contrast to all other cards).

Steps to reproduce the issue
Set Font Size to small in the settings.
Expected behaviour
There card should behave like the card that opens the dispatcher screen.

Internal Tracking ID: EXPOSUREAPP-6544

@fynngodau Thanks again. Internal Tracking ID: EXPOSUREAPP-6544

Corona-Warn-App Open Source Team

@fynngodau FYI PR: https://github.com/corona-warn-app/cwa-app-android/pull/2910

Closing because 2.1 has been released and rolled out.


fix extra value in M table (2nd try)

Concisely (20 words or less) describe the issue
The recently-revised (in #307) Natural_Mortality table in Report.sso has an extra value in the output
This PR replaces #367 which accidentally was based on the MV-Tweedie-ver2 branch instead of main.
Please Link issue(s)
No issue. Just a quick fix to a minor bug (example below).
What tests have been done? Upload any model input files created for testing in a zip file, if possible.
Compiled SS3, ran a single model, confirm that the table looks correct.
What tests/review still need to be done? Who can do it, and by when is it needed (ideally)?
Usual automated tests via GitHub action.
Has any new code been documented?
If not, please add documentation before submitting the Pull Request.

[x] I have documented any new code added (or no new code was added)

Check which is true.

Failed call-build-ss3-warnings test seems unrelated to this PR.
It is discussed in https://github.com/nmfs-stock-synthesis/stock-synthesis/issues/369.


feat(preview): add send email button

Component / Package Name: jsx-email
This PR contains:

[ ] bugfix
[x] feature
[ ] refactor
[ ] documentation
[ ] other

Are tests included?

[ ] yes (bugfixes and features will not be merged without tests)
[x] no

Breaking Changes?

[ ] yes (breaking changes will not be merged unless absolutely necessary)
[x] no

Description
This PR ports the "send preview email" feature from react-email using Resend. This is really useful for testing emails in your email client by directly sending them from the preview UI.

I think this is a really important feature to have but let me know what you think.
I did not add tests because I could not find other tests for the preview app.

Hello @affanshahid,
Appreciate your pull request. Nevertheless, we're currently exploring an alternative method to incorporate this feature, steering away from a direct port from react-email.
I'll be closing this now. Feel free to connect on Discord for any questions or inquiries.

A bit premature to close this one.

@affanshahid we've got some things cooking behind the scenes, and would like to integrate your work into it. please hold tight, we're going to leave the PR open but it'll probably go a tad slower than normal for this project.

Good news; we got some info back from a provider we're going to partner with. Will drop some information on the PR here tomorrow.

hey @affanshahid we didn't forget about this. @lordelogos is working on a gist with info for the provider we're going to roll with.
the one bit of feedback I did immediately have was that I'd like to keep the "view selection" button group floated to the right. if you're cool with it, I'd like to move the Send button so it's floating over the iframe, under the top bar - similar to how the copy and download buttons are floating over the editor in the code views. I'd also like to change that from Send to using the paper-airplane icon from https://heroicons.com/. feel free to add some padding or effects to it to draw attention if you'd like to.
does that sound good?

Sounds good, I'll make the changes

Hey @affanshahid
Here's a doc containing the implementation details
https://gist.github.com/lordelogos/7845d104dc90c066d94068d210be7850
Let me know if you have any questions or need any help

@lordelogos Just a note, I had to exclude the from param in the body otherwise I get a 401. Excluding it works though and the email comes in from the email in the gist.
Also, the provided logo has a white background which looks like this:

Not sure if it would be right to alter SVG to remove the bg but if I do, it looks like this:

If I change the color to match the theme (again, not sure if a good idea), it looks like this:

Let me know which approach you would prefer.

Hey @affanshahid,
Will check out these changes.  Thank you!
(btw, personally I prefer the last option that matches the theme)

I've changed the icon, this is what the button looks like now:
https://github.com/shellscape/jsx-email/assets/17955210/58d42f1e-ed75-4748-b65d-65f7463691f5
I think we can do without the bounce animation, or at least disable it in the mobile view.

That looks fantastic! I really do love the bounce animation, but agree that we don't need it on the mobile view. Two bounces is probably enough, and probably only when the first email template is opened (not sure how hard that would be to implement). @affanshahid what are your thoughts on that approach?

Also a fan of the "pulse" CTA as well. Totally up to you https://codepen.io/saigowthamr/pen/PowdZqy / https://www.florin-pop.com/blog/2019/03/css-pulse-effect/

Yes makes sense to only run the animation once or twice. Here's a comparison of bounce vs pulse:
https://github.com/shellscape/jsx-email/assets/17955210/b9a978de-69d1-4132-b3ad-939fbdedb351
https://github.com/shellscape/jsx-email/assets/17955210/2e75fd1b-fab5-4ca5-b055-9459408dc749
Both look fine to me

I'm partial to the pulse, but I'd like to give you the final say 😄

Pulse it is 👍🏻

awesome. I'll clone your branch here and give things a run through in a bit. this is a huge win for the project!

Hey guys,
I know i'm late to the party but I'm for bounce
especially the 2 bounces at the start
@affanshahid @shellscape

@affanshahid you've got two different opinions from maintainers haha 😆 as the PR author I think it's fair for you to be the deciding vote!

I think the pulse might be more attention grabbing, so let's go with that for now.

@affanshahid had the chance to check out your branch tonight. everything worked great!
I've got one more request, if you're up for it: when the Send button is clicked, could we show an animation on the button and change the color to indicate that it's disabled while we wait for the API call to complete? And when the API call completes, change the dialog (or an overlay) to a message like "Your template was sent!" and then close the dialog?

just checked out those changes and they look awesome. thanks for adding that!

This is what it looks like now:
https://github.com/shellscape/jsx-email/assets/17955210/4baa0093-40a9-49c9-935d-605a3b417654


⚠ ClamAV has degraded performance

In 42e1a46, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 198 ms

Resolved: ClamAV performance has improved in d2a5e11.


Nothing appears

I tried to run the example but nothing appears, sometimes the screen turns black but does not display anything

I'll check it out!

Fixed it. I was using master branch of react-native-orientation instead of stable version (2.0.0).

Thank you! Love this project hope to contribute sometime, I'm trying to integrate controls with this but since I'm a beginner it's a bit tough for me bit I'll try to do it😀


Thanks. I

Train Epoch: 18 [193280/196000 (99%)] Relations accuracy: 95% | Non-relations accuracy: 100%
Train Epoch: 18 [194560/196000 (99%)] Relations accuracy: 86% | Non-relations accuracy: 100%
Train Epoch: 18 [195840/196000 (100%)] Relations accuracy: 89% | Non-relations accuracy: 100%
Test set: Relation accuracy: 89% | Non-relation accuracy: 100%
Train Epoch: 19 [192000/196000 (98%)] Relations accuracy: 94% | Non-relations accuracy: 100%
Train Epoch: 19 [193280/196000 (99%)] Relations accuracy: 80% | Non-relations accuracy: 100%
Train Epoch: 19 [194560/196000 (99%)] Relations accuracy: 89% | Non-relations accuracy: 100%
Train Epoch: 19 [195840/196000 (100%)] Relations accuracy: 91% | Non-relations accuracy: 100%
Test set: Relation accuracy: 90% | Non-relation accuracy: 99%
Train Epoch: 20 [193280/196000 (99%)] Relations accuracy: 91% | Non-relations accuracy: 100%
Train Epoch: 20 [194560/196000 (99%)] Relations accuracy: 97% | Non-relations accuracy: 100%
Train Epoch: 20 [195840/196000 (100%)] Relations accuracy: 95% | Non-relations accuracy: 100%
Test set: Relation accuracy: 89% | Non-relation accuracy: 99%

I have repeat your result, but I wander the result in the paper is "above 94% for both relational
and non-relational questions", different CNNS?

There are several features different from the original paper.

model architecture. Because the model used in original paper for Sort-of-CLEVR task was too big, I used much lighter model which is used in CLEVR task. This change may affect the result, though, this would make more people to test RN faster.

even dataset is not actually equal. Sort-of-CLEVR task is not published to public, so I had to design it by myself. I found no clue of actual size of vector for answer (if you find any, please let me know). Unless the original dataset is published, I suspect it is quite hard to reproduce the result in the paper.

Good job! Thanks your reply.  I'll run it in  CLEVR_v1.0 and CLEVR-CoGenT_v1.0, any suggestions for the model architecture details?

Wow, good luck for CLEVR task!

the image size is bigger for CLEVR task. Featuers after CNN would be bigger, so modification of RN is required.
2.coord_lst is also assumes to use 5 * 5 objects, so it also needs to be modified.

3.First input layer of RN assumes to input questions as a vector of size 11. I forgot size of the question vector of the CLEVR task, but you also need to modify it.
4.Learning rate should be changed to  2.5e-4?
And adopting LSTM for question input would run CLEVR task. That is all that comes across.
I appreciate if you tell me the result of CLEVR! Thank you


XEP 0363: HTTP File Upload support

i have setup kaiwa in local server, for backup i am using ejabberd, when i try to share image in chat its not working as well as call feature also not working

Hello,
Is there any update on this issue ?

Do you have any logs in js console? (try to set localStorage.debug = true to get more verbose output)

While i drag and drop any image in chrome, image open in browser instead of send it to user

I am sending following request for image sharing in one to one chat :
client.use(shareMedia); // plugin created for share media
var message = {
from:me.jid,
id:client.nextId(),
to: 'upload.domainname',
type: 'get',
request: {
filename: file.name,
size: file.size
}
};
client.mediaPushService(message).then(function (err,data) {
if(err)console.log(err);
console.log('image upload');
}).catch(function (err) {
console.log('image not upload');
});
Response i am getting from xampp server(ejabberd i am using ) :
<<in iq xmlns='jabber:client' xml:lang='en' to='8000955974@uploaddomain/2497367150272585652773' from='upload.domain' type='result' id='19b5807f-0b10-46a3-b037-e1c9f46668c0
slot xmlns='urn:xmpp:http:upload:0'
get url='https://uploaddomain/975fb8db938152f973ef26ba56681228d5296634/WgaDXKEx67McKPPnGHMIOGzssRzkalozdK1cRHMQ/boy.png'/
put url='https://uploaddomain/975fb8db938152f973ef26ba56681228d5296634/WgaDXKEx67McKPPnGHMIOGzssRzkalozdK1cRHMQ/boy.png'/
slot
/iq
I could not find image on given slot.
Note : i have removed response xaml "<" and " >" tags because it was not printing here

Hello,
Is there any update on this issue ?

Honestly I don't understand what's going on. Why are you showing us the JS code? Is it Kaiwa code? Are you somehow patching it? I wasn't able to find the code you're referencing in our code base. What is it exactly?

@patelvanita360 if you are trying to implement http upload support in Kaiwa, then you should follow http upload XEP. From my quick view - you are requesting upload slot and receive urls for GET and PUT, now you need to PUT image first, and then it will be available on GET url

Can you please tel me how to put image on given slot pur URL?
On Thu, May 3, 2018, 12:05 PM vitalyster<EMAIL_ADDRESS>wrote:

@patelvanita360 https://github.com/patelvanita360 if you are trying to
implement http upload support in Kaiwa, then you should follow http upload
XEP. From my quick view - you are requesting upload slot and receive urls
for GET and PUT, now you need to PUT image first, and then it will be
available on GET url
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ForNeVeR/Kaiwa/issues/218#issuecomment-386203012, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Aje4zm8efrbudkGjVq69RfHLKLyXQoDJks5tuqU3gaJpZM4S5sO1
.

Just use Fetch API

Can you please share any reference?
On Thu, May 3, 2018, 2:39 PM vitalyster<EMAIL_ADDRESS>wrote:

Just use Fetch API
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ForNeVeR/Kaiwa/issues/218#issuecomment-386234357, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Aje4zgpW8BVc-oWh2UWLDqmv3Gbz5Dwrks5tuslggaJpZM4S5sO1
.

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

Can you please check following :
I got error while use fetch API
Fetch API cannot load 'PUT URL'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'LOCAL SERVER' is therefore not allowed access. The response had HTTP status code 405. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

You must enable CORS header on HTTP URLs on your server side to make HTTP requests from browser applications

i have enabled cors header and i am using POST method to upload data on given put URL
its display error like
405 (Method Not Allowed)

Sure, because it allows only HTTP PUT method

But when i am using PUT methos its display
TypeError: Failed to execute 'fetch' on 'Window': 'PUT' is unsupported in no-cors mode
I am uploading image from local server

As your server supports CORS, you should NOT add no-cors parameter

Ok Thank you so much for your valuable time now it seems like working ....
One more question i have that how can I fetch PUT URL from ejabberd response ?
I am getting log like this :

Not sure I'm understand you question. What is "make it dynamic"?

I want to upload image data on PUT url given by requested slot. For now i just put static put url in fetch api method, but now i want to get that PUT url real time on response given by requested slot.

Yes I got it but still you don't understand my query. Let me raise query from your last replay so i will get my ans
var result = jxt.parse("HOW CAN I GET THIS DATA");

client.sendIQ have second callback parameter (error, response) where response is the reply to your slot request you passed as first parameter

I have tried a lot in a different different way but Not getting luck. not getting a response which I want, can i mail you that file?

client.mediaPushService = function (message) {
return client.sendIq(message);
};

I did not see you are using sendIq callback

i had use like this , but its not working
client.mediaPushService = function (message) {
return client.sendIq(message,function(error,response){
console.log(response);
});

what is in log?

And I didn't see slot urls definition in your shareMedia stanza extension

I had put that code given by as it is but its stop the compilation so I
removed it
On Fri, May 4, 2018, 7:43 PM vitalyster<EMAIL_ADDRESS>wrote:

And I didn't see slot urls definition in your shareMedia stanza extension
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ForNeVeR/Kaiwa/issues/218#issuecomment-386614402, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Aje4zrbZG_sWPpms0XF5mGsb9wwnEveoks5tvGH8gaJpZM4S5sO1
.

i got kaiwa complation error  while i integrate code given by you
[/backup/html/node_modules/jxt-xmpp]
@ ./src/js/helpers/shareMedia.js 7:12-31
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>compile: gulp compile
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

shareMedia.js
`"use strict";
module.exports = function (client, stanzas) {
var types = stanzas.utils;
let jxt = require('jxt').createRegistry();
jxt.use(require('jxt-xmpp-types'));
jxt.use(require('jxt-xmpp'));
let helpers = jxt.utils;
let UPLOAD_NS = 'urn:xmpp:http:upload:0';

var shareMedia = stanzas.define({
    name: 'request',
    element: 'request',
    namespace: 'urn:xmpp:http:upload:0',
    fields: {
       size: types.attribute('size'),
        filename: types.attribute('filename')

    }
});
stanzas.withIq(function (Iq) {
    stanzas.extend(Iq, shareMedia);
});

var uploadMediaData = stanzas.define({
    name: 'uploadMediaData',
    namespace: 'urn:xmpp:push:0',
    element: 'request',
    fields: {
        data: types.text()
    }
});

stanzas.withIq(function (Iq) {
    stanzas.extend(Iq, uploadMediaData);
});

client.uploadMedia = function (message) {
    return client.sendIq(message);
};

let UploadSlot = jxt.define({
    name: 'uploadSlot',
    namespace: UPLOAD_NS,
    element: 'slot',
    fields: {
        get: helpers.subAttribute(UPLOAD_NS, 'get', 'url'),
        put: helpers.subAttribute(UPLOAD_NS, 'put', 'url')
    }
});

jxt.extendIQ(UploadSlot);

client.mediaPushService = function (message) {
    client.sendIq(message,function(error,response){
        console.log("jxt parsing :" + jxt.parse(response));
        var result = jxt.parse("<iq xmlns='jabber:client' xml:lang='en'<EMAIL_ADDRESS>from='upload.domain' type='result' id='19b5807f-0b10-46a3-b037-e1c9f46668c0'><slot xmlns='urn:xmpp:http:upload:0'><get url='https://domain:5444/975fb8db938152f973ef26ba56681228d5296634/WgaDXKEx67McKPPnGHMIOGzssRzkalozdK1cRHMQ/boy.png'/><put url='https://domain:5444/975fb8db938152f973ef26ba56681228d5296634/WgaDXKEx67McKPPnGHMIOGzssRzkalozdK1cRHMQ/boy.png'/></slot></iq>");
        console.log("PUT URL is " + result.uploadSlot.put);
    });
}

};`
chat.js
`   handleMediaClick: function(e){
e.preventDefault();
var self = this;
console.log(this.model.topResource);
var file;
if (e.dataTransfer) {
file = e.dataTransfer.files[0];
} else if (e.target.files) {
file = e.target.files[0];
} else {
return;
}
    if (file.type.match('image.*')) {
        var downloadURL = URL.createObjectURL(file);
        console.log('Offering:', file.name, file.size, file.type, file.lastModifiedDate,  downloadURL);

        var fileTracker = new FileReader();

        fileTracker.onload = function () {
        console.log('file', file.name, file.size, file.type, file.lastModifiedDate);
        var data =  this.result;
        var resampler = new Resample(data, 80, 80, function (data) {
        var b64Data = data.split(',')[1];
        var id = crypto.createHash('sha1').update(atob(b64Data)).digest('hex');
        client.use(shareMedia);

        var message = {
                from:me.jid,
                id:client.nextId(),
                to: 'upload.domain',
                type: 'get',
                request: {
                    filename: file.name,
                    size: file.size
                }
            };
        client.mediaPushService(message).then(function (result) {
             console.log("PUT URL is " + result);

            if (!('fetch' in window)) {
              console.log('Fetch API not found, try including the polyfill');
              return;
            }

            let header = new Headers({
                'Access-Control-Allow-Origin': '*',
                'Access-Control-Allow-Methods': 'GET, POST, PUT,OPTIONS',
                'Access-Control-Allow-Headers': 'Content-Type',
                'Access-Control-Max-Age': '86400',
                'Content-Type': 'multipart/form-data'
            });

            fetch('https://domain:5444/bbe52498d96b7edc6d45cab8575fbf43f4604754/Gyv1fZadeQWnmzLVOgFamnKkDvphH5hVENOLrkH5/app-icon.png', {
              method: 'PUT',
               mode: 'cors',
               header : header,
               body: id
            })
            if(err)console.log(err);

            client.sendMessage({
              id: client.nextId(),
              type:'chat',
              to: self.model.topResource,
              body:b64Data
            });
            console.log('Could enable push notifications');
        }).catch(function (err) {
            console.log('Could not enable push notifications');
        });

        });
    }
     fileTracker.readAsDataURL(file);
    }
},    `

no need to import jxt, as required JXT object is passed to module as stanzas
your mediaPushService is not a Promise, so you can not use then there, that is what console say to you

413 (Request Entity Too Large)

That is your server configuration

i have set headers on server , can you suggest me which other configuration need to change ?

Entity too large means your upload limit too low

that solved but still getting this
Fetch API cannot load https://domain:5444/975fb8db938152f973ef26ba56681228d5296634/kwjCxd9nhAk5KILEavBhR1EcvsCQ57uNixE07qQO/app-icon.png. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<IP_ADDRESS>:8000' is therefore not allowed access. The response had HTTP status code 413. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
:8000/#chat/8000955972%40domain:1 Uncaught (in promise) TypeError: Failed to fetch

Error message clearly states it does not found cors header on server

My server configuration :
 mod_http_upload:
    docroot: "@HOME@/upload"
    put_url: "https://@HOST@:5444"
    max_size: 5000000    #5MB
    custom_headers:
      "Access-Control-Allow-Origin": "*"
      "Access-Control-Allow-Methods": "GET, POST, PUT, OPTIONS, DELETE"
      "Access-Control-Allow-Headers": "Content-Type, Origin, X-Requested-With"
    thumbnail: false # otherwise needs ejabberd to be compiled with libgd support
  mod_http_upload_quota:
    max_days: 30
  mod_last: {}

I did not see any reference to custom_headers in mod_http_upload source code, so I think you need to fix that module first

https://docs.ejabberd.im/admin/configuration/#mod-http-upload
i have setup custom headers from here
is there any reference link to fix this ?

I think you should configure your PUT url as put_url: "https://@HOST@/upload:5444" as module maybe adds headers only to docroot urls

You also miss host configuration which is upload.@HOST@ by default, and your PUT url may should match host url to set custom_headers

still got same error , is there any other method to upload image data ?

That is your server misconfiguration, ask ejabberd support on that

trying to ping @weiss :)

The response had HTTP status code 413.

mod_http_upload will return this code if the size of the file uploaded with the PUT request doesn't match the size specified in the PUT request.  ejabberd will write an [info] message to your ejabberd.log in that case, please always check the logs when running into trouble.

@weiss I think he set upload limits and now only CORS headers are not configured

I think he set upload limits and now only CORS headers are not configured

But the 413 status is mentioned in the last error message he quoted.  The CORS headers are only included in the success case.

@weiss yes, i resolved this limit issue, CORD issue is there
Now i am getting following error:

Fetch API cannot load https://domain:5444/975fb8db938152f973ef26ba56681228d5296634/ACiyS38WrF3EzxyMdUz7W0H9Y9i9yhymivFY42Jm/app-icon__1_.png. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<IP_ADDRESS>:8000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
:8000/#chat/8000955972%40domain:1 Uncaught (in promise) TypeError: Failed to fetch

Response to preflight request
Preflight request is OPTIONS request, need to check is it really handled my mod_http_upload

Preflight request is OPTIONS request, need to check is it really handled my mod_http_upload

Yes mod_http_upload responds to OPTIONS requests.

listener

port: 5444
ip: "::"
module: ejabberd_http
request_handlers:
"": mod_http_upload
tls: true
certfile: 'CERTFILE'
protocol_options: 'TLS_OPTIONS'
http_bind: true

mod_http_upload:

docroot: "@HOME@/upload"
put_url: "https://@HOST@:5444"
max_size: 5000000    #5MB
custom_headers:
  "Access-Control-Allow-Origin": "*"
  "Access-Control-Allow-Methods": "GET, POST, PUT, OPTIONS, DELETE"
  "Access-Control-Allow-Headers": "Content-Type, Origin, X-Requested-With"
thumbnail: false # otherwise needs ejabberd to be compiled with libgd support

mod_http_upload_quota:
max_days: 30

Could you open an ejabberdctl debug shell and copy the output of the following call?
gen_mod:get_module_opt(<<"example.com">>, mod_http_upload, custom_headers).

Replace example.com with your domain, don't forget the trailing ., and press Ctrl+C twice when you're done.

ejabberd@db01)1> gen_mod:get_module_opt(<<"domain.com">>, mod_http_upload, custom_headers).
[{<<"Access-Control-Allow-Origin">>,<<"*">>},
{<<"Access-Control-Allow-Methods">>,
<<"GET, POST, PUT, OPTIONS, DELETE">>},
{<<"Access-Control-Allow-Headers">>,
<<"Content-Type, Origin, X-Requested-With">>}]

Looks good, except that you should remove POST and DELETE from the methods list, and add HEAD.
Your last error message doesn't mention the request type nor the response code.  Maybe the request failed for some reason and the CORS headers are missing from the error response.  There's nothing in your ejabberd.log regarding this request?
You could create a file in your upload directory and check whether the CORS headers are included with a GET request using another client, e.g.:
    mkdir -p ~ejabberd/upload/foo/bar && echo hi > ~ejabberd/upload/foo/bar/test.txt
    curl -i https://example.com:5444/foo/bar/text.txt
    rm -r ~ejabberd/upload/foo

Replace ejabberd with the name of the user running ejabberd (though often this is the name), and of course example.com with your domain name.

@weiss shouldn't mod_http_upload automatically set correct CORS headers without any custom_headers directives?

@vitalyster, not sure you want Access-Control-Allow-Origin: * in all environments, but maybe.

@weiss prosody's module have cross_domain option accepts 'true' or list of domains

@weiss
Here you can see ejabberd log. https://pastebin.com/DADZWZrB
I have doubt in this line:
2018-05-07 08:49:52.008 [info] <0.16110.1>@mod_http_upload:process:409 Rejecting file from ::ffff:123.567.8.321 for domain: Unexpected size (10182)
I have already defined "max_size: 5000000    #5MB" Not sure which size it's taking there.

Rejecting file from ::ffff:123.567.8.321 for domain: Unexpected size (10182)

This is the case where the module returns a status of 413.  As I told you in my very first response, this is not about hitting a limit; the problem is that the size you're specifying in the slot request doesn't match the size of the data you're submitting with the PUT request (the latter is 10182 bytes).
Please always check the logs when running into trouble.

Show latest sending code, please

https://pastebin.com/YdZhQK07
i am doing this process for image data format

how did you read file and create b64data variable? If it is a base64 encoded - it's wrong, you need to send plain octet stream

https://pastebin.com/TwXTVPga

data variable contain data like "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA......."

OK, so you need to decode it first and use correct decoded size in slot request and decoded data in PUT request

@vitalyster , @weiss
Finally its working now. Thank you so much again for your quick support. :)

will you contribute you work back to Kaiwa, or we spend our time for free? :)

:) yes sure. will contribute it

@vitalyster  , merge request sent, please check and accept it. :)

Can you please tell me where can I call sharemedia plugin globally ?
Currently i am calling plugin on media change event.

Not sure I am understand the question, please elaborate?

If I understand correctly, you want to enable plugin, it should be done there: https://github.com/ForNeVeR/Kaiwa/blob/master/src/js/app.ts#L110

Yes exactly but when i initialize in app.ts file its not working ...

Error messages?

sharemedia not defined

shareMedia is the variable where your plugin loaded, you should move var shareMedia = require('../helpers/shareMedia'); line too. Note, you need to change path to be relative to app.ts

now its working , thank you . :)

can you update your pull request?

Thanks! let's discuss it in the PR itself

Wait, was this implemented after all?

@stevenroose work in progress there

@vitalyster is there maybe a MUC where you guys hang out? :)

@vitalyster I have raise one query , can please update me there  so i can work on it further.


Add support for variable types

As of now, no variable defined inside variables.tf supports types.
Reasoning: Adding types for single variable definitions helps to catch errors early on. For e.g. adding a string when a list is expected, returns a clear error message that helps fixing the problem in no time.
# variables.tf
variable "feature_set" {
  default = "ALL"
+ type = string
  description = "Specify ALL (default) or CONSOLIDATED_BILLING"
}

Adding the type results in the following error when a list was used instead of the correct string type:
Error: Invalid default value for variable

  on ../../../modules/aws-org/vars.tf line 14, in variable "feature_set":
  14:   default = "ALL"

This default value is not compatible with the variable's type constraint: list
of string required.

thanks @franz-josef-kaiser ill take a look at these this week.


Add configurations for nexus release

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


diffusers community pipeline based on your repo

Hi @haofanwang
Thanks so much for making this repo!
We just added community pipelines to the diffuser based on your repo - let us know if you have any feedback! 🤗🤗🤗
https://github.com/huggingface/diffusers/pull/2561
YiYi

I'm glad to know it helps! Cheers!


Simplified expression that was potentially unsafe for minification

Current coverage is 100.00%

Merging #258 into master will not affect coverage as of ace475e

@@            master    #258   diff @@
======================================
  Files            1       1
  Stmts          641     641
  Branches         0       0
  Methods          0       0
======================================
  Hit            641     641
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of ace475e

Powered by Codecov. Updated on successful CI builds.

Thanks


Cannot generate types for operations inside TypeScript .tsx files

Describe the bug
Operations that are colocated inside .tsx files are not being parsed by the plugins. However, if the operation is defined directly in the codegen.yaml, it works fine.
To Reproduce
A codesandbox with my package versions and configuration be found here: https://codesandbox.io/s/happy-pasteur-plx2y.
However, the issue is not being replicated in the codesandbox.

My GraphQL schema:

enum EntityType {
  CONTACT
  ORGANISATION
  CONTRACT
  ACTIVITY
  TERMSHEET
}

interface BaseEntity {
  id: ID!
  type: EntityType!
  isDeleted: Boolean
  updatedBy: PartialContact!
  createdBy: PartialContact!
  _ts: Int
}

interface BaseContract {
  borrowers: [Borrower!]!
  amount: Float!
  issueDate: Int!
  maturityDate: Int!
  isinNumber: String
  template: ContractTemplate!
  investors: [Investor!]!
  series: String!
  status: ContractStatus!
  contractId: ID
}

type PartialContact {
  id: ID!
  givenName: String!
  familyName: String!
}

type Borrower {
  id: ID!
  name: String!
}

enum PaymentStructure {
  FIXED
  FLOATING_RATE
}

enum PaymentStructureType {
  INTEREST
  AMORTISING
}

enum ContractTemplate {
  TAMMY
  GLEN
}

type Investor {
  id: ID!
  name: String!
  allocation: Float!
  amount: Float!
  total: Int
  settlementAmount: Float
  settlementDate: Float
  isAccepted: Boolean
  reviewedAt: Float
}

enum LeaseType {
  FIXED
  CPI
  MARKET
}

enum Frequency {
  WEEKLY
  FORTNIGHTLY
  MONTHLY
  QUARTERLY
  YEARLY
}

type Lease {
  paymentFrequency: Frequency!
  value: Float!
  type: LeaseType!
}

enum SplitType {
  GENERAL
  MAINTENANCE
  SPECIAL
  INVESTOR
}

type Split {
  type: SplitType!
  rate: Float!
}

type Property {
  address: String!
  tenant: String!
  lease: Lease!
  splits: [Split!]!
}

enum ContractStatus {
  PROPOSED
  INVESTOR_ADDED
  ACCEPTED
  RATE_SET
  REVIEWED
  SETTLED
  EFFECTIVE
  MATURED
  EARLY_TERMINATION
}

type TAMMYContract implements BaseEntity & BaseContract {
  id: ID!
  contractId: ID
  type: EntityType!
  borrowers: [Borrower!]!
  amount: Float!
  paymentStructure: PaymentStructure
  paymentStructureType: PaymentStructureType
  additionalPaymentFeature: String
  yieldCalculationMechanism: String
  accrualYield: String
  issuePrice: String
  prepaidInterest: Float
  issueDate: Int!
  maturityDate: Int!
  isinNumber: String
  template: ContractTemplate!
  property: Property
  investors: [Investor!]!
  series: String!
  status: ContractStatus!
  isDeleted: Boolean
  updatedBy: PartialContact!
  createdBy: PartialContact!
  _ts: Int
}

type GLENContract implements BaseEntity & BaseContract {
  id: ID!
  contractId: ID
  type: EntityType!
  borrowers: [Borrower!]!
  amount: Float!
  paymentStructure: PaymentStructure
  paymentStructureType: PaymentStructureType
  additionalPaymentFeature: String
  prepaidInterest: Float
  issueDate: Int!
  maturityDate: Int!
  isinNumber: String
  template: ContractTemplate!
  property: Property
  investors: [Investor!]!
  series: String!
  status: ContractStatus!
  isDeleted: Boolean
  updatedBy: PartialContact!
  createdBy: PartialContact!
  _ts: Int
}

union Contract = TAMMYContract | GLENContract

input ReviewContractInput {
  id: ID!
  isAccepted: Boolean!
}

type Mutation {
  reviewContract(input: ReviewContractInput): Contract
}

type Query {
  contract(id: ID!): Contract
  contracts: [Contract!]
}

My GraphQL operations:

export const LIST_CONTRACTS_QUERY = gql`
  query ContractsTableQuery {
    contracts {
      ... on BaseEntity {
        id
        type
      }
      ... on BaseContract {
        series
        issueDate
        maturityDate
        contractId
        amount
        status
        template
        borrowers {
          id
          name
        }
      }
    }
  }
`;

My codegen.yml config file:

schema: http://localhost:7071/api/graphql
generates:
  # Generates types for the useQuery, useMutation etc. apollo hooks
  ./src/graphql/operations.ts:
    documents:
      - src/**/!(*.d).{ts,tsx}
      # - "query TestQuery { contracts { ... on BaseEntity { id type } } }"
    plugins:
      - typescript-operations
      - typescript-react-apollo
      - add:
          content: |
            /** THIS FILE IS AUTO-GENERATED **/
            /** DO NOT EDIT **/
  # Types for the API
  ./src/graphql/types.ts:
    plugins:
      - typescript
      - add:
          content: |
            /** THIS FILE IS AUTO-GENERATED **/
            /** DO NOT EDIT **/
  # Generates the `possibleTypes` field required by apollo-client
  ./src/graphql/fragment-matcher.ts:
    plugins:
      - fragment-matcher
      - add:
          content: |
            /** THIS FILE IS AUTO-GENERATED **/
            /** DO NOT EDIT **/
config:
  addDocBlocks: true
  immutableTypes: true
  namingConvention:
    enumValues: keep

Expected behavior
/src/graphql/operations.ts contains types for the gql tagged operations in my .tsx files, including the LIST_CONTRACTS_QUERY sample given above.
Environment:

OS: macOS Bug Sur 11.4
@graphql-codegen/add: "^3.1.0",
@graphql-codegen/cli: "^2.1.1",
@graphql-codegen/fragment-matcher: "^3.1.0",
@graphql-codegen/typescript: "^2.1.1",
@graphql-codegen/typescript-operations: "^2.1.2",
@graphql-codegen/typescript-react-apollo: "^3.1.2",
@graphql-codegen/visitor-plugin-common: "^2.1.1",
NodeJS: 14.17.0

Additional context
In the above codegen.yaml you can see a query TestQuery { contracts { ... on BaseEntity { id type } } } document that has been commented out. The operation types for this are being successfully generated (when it is not commented), but the operations inside .tsx files give an error:
 Unable to find any GraphQL type definitions for the following pointers:

              - src/**/!(*.d).{ts,tsx}

Turns out the issue was having a caret symbol in the path to my components: ~/Documents/F^o/Bar.tsx 🤷♂.


imagePullSecrets

Description
Volumes are not generated from xml configuration when deployment.yml is present.
Let's say I have src/main/fabric8/deployment.yml
spec:
  template:
    spec:
      imagePullSecrets:
      - name: secret-name

And pom.xml contains:
<configuration>
    <resources>
        <volumes>
            <volume>
                <name>service-account</name>
                <type>secret</type>
                <secretName>codelist-service-account</secretName>
                <mounts>
                    <mount>/etc/google</mount>
                </mounts>
            </volume>
        </volumes>
    </resources>
</configuration>

then kubernetes.yml is generated without volumes. But when I delete deployment.yml then volumes are generated properly:
          volumeMounts:
          - mountPath: /etc/google
            name: service-account
            readOnly: false
        volumes:
        - name: service-account
          secret:
            secretName: codelist-service-account

Info

f-m-p version : 4.4.0
Maven version (mvn -v) :

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache/apache-maven
Java version: 13.0.2, vendor: Oracle Corporation, runtime: /usr/java/jdk-13.0.2
Default locale: sk_SK, platform encoding: UTF-8
OS name: "linux", version: "5.5.2-1-default", arch: "amd64", family: "unix"

@hlavki : Hi, I tried reproducing this and was able to reproduce this issue. I'm not really sure if Resource fragments Configuration and XML configuration can work along with each other. As far as I remembered resource precedence order was Resource Fragments > XML Configuration > Opinionated Defaults.
We probably need to debug to verify if it's a behavior or a bug.


fix: remove BinanceUS from USDCUSD oracle config

Description
Due to the Binance US recent issues the USDCUSD pair is trading at a discounted rate (because of the problems with USD withdrawals), which is causing the clients to stop reporting due to the following error:
"message":"Max price cross-sectional deviation too large (0.02774727286026238157 >= 0.01 )","name":"Error","stack":"Error: Max price cross-sectional deviation too large (0.02774727286026238157 >= 0.01
This removes the exchange from the config until we find a better solution
Other changes

Tested
Already deployed and running
Related issues

Backwards compatibility

Documentation

This will be updated in a different PR where we do a wider oracle config update.


[SPARK-43798][SQL][PYTHON] Support Python user-defined table functions

What changes were proposed in this pull request?

This PR adds the initial support for Python user-defined table functions. It allows users to create UDTFs in PySpark and use them in PySpark and SQL.
Here are examples of creating and using Python UDTFs:
# Implement the UDTF class
class TestUDTF:
  def __init__(self):
    ...

  def eval(self, *args):
    yield "hello", "world"

  def terminate(self):
    ...

# Create the UDTF
from pyspark.sql.functions import udtf

test_udtf = udtf(TestUDTF, returnType="c1: string, c2: string")

# Invoke the UDTF
test_udtf().show()
+-----+-----+
|   c1|   c2|
+-----+-----+
|hello|world|
+-----+-----+

# Register the UDTF
spark.udtf.register(name="test_udtf", f=test_udtf)

# Invoke the UDTF in SQL
spark.sql("SELECT * FROM test_udtf()").show()
+-----+-----+
|   c1|   c2|
+-----+-----+
|hello|world|
+-----+-----+

Please note that this is the initial PR, and there will be subsequent follow-up work to make it more user-friendly and performant.
Why are the changes needed?

To support another type of user-defined function in PySpark.
Does this PR introduce any user-facing change?

Yes. After this PR, users can create Python user-defined table functions.
How was this patch tested?

New unit tests.

Merged to master.

Made a quick PR to address my own comment :-).  https://github.com/apache/spark/pull/41316#discussion_r1224023121


Rethink the schema method?

Currently the Tables.schema of gbif tables are hard-coded in as parameters. All columns are Union{Missing, T} types, but this is unintuitive because some of these rows can be known to be non-missing if they were filtered on, or if hasCoordinate is set to true.
If I type
sp = species_match("Eucalyptus regnans")
all_ocs = occurrence_search(sp; year = (1970,2000), country = "AU", hasCoordinate = true, limit = 2000)

I know that the species, country, year, and geometry columns are non-missing, but this is not reflected in the schema.
Any function that uses the Tables.getcolumn(Tables.Columns(x), column) pattern is affected by this (which for starters is all functions in Rasters.jl that use geometries).
The query is stored in a table object, so maybe we can use that to make the schema more specific without having to look at the data.

Is it just the type that is annoying? I don't totally get the problem

Some methods also just won't work on a union missing type. I ran into it because I want to be able to do
using GBIF2, SpeciesDistributionModels
sp = species_match("Eucalyptus regnans")
occurrences_raw = occurrence_search(sp; year = (1970,2000), country = "AU", hasCoordinate = true, limit = 2000)
occurrences = thin(occurrences_raw, 5000)

And still have a pretty looking GBIF table. (This is why I wrote the subset PR).
This currently fails because Distances.pairwise errors on the the Union{Missing, Tuple} type returned by Tables.getcolumn(Tables.Columns(x), :geometry).

We don't know the element types without looking at every field in every row.

In some cases we do though, because if the query specifies country = "AU", then we know exactly what is in the country column without looking at it at all. Though I suppose the only case where this actually is practically relevant is with geometry.

(Also I had assumed that to do anything like thin with these tables you would just convert it to a DataFrame)

DataFrames is not a dependency in this case, so I'm trying to consistenty use Tables.jl. Of course I could just add a skipmissing option, but if we can fix it here it would also be good. We specifically added the geometry column in order to be able to do call these kind of methods directly on a GBIF table.

I guess some of these things are possible, but it all seems like a lot of work to make it fool-proof compared to just using skipmissing elsewhere when you have to.
The package is like it is because the original write was just one weekend and I explicitly went with simple and robust design choices as much as possible. We should be hesitant in adding complicated and fragile design for small gains. For example, you are saying we "know" the column contains "AU" because we queried for it. But there is a whole web API we don't control in between our query and the result. Allowing missing is just robust to everything because the code just checks for a field and can return missing if it doesn't find anything.

But on the other hand, if I queried and explicitly wrote hascoordinate = true, and something went wrong with the web API and I have missing longitude and latitude values, I would rather something threw an error somewhere than it silently passing missing values to extract or thin or the like.

Maybe, but it would totally break getting anything from the API until they fixed it

Whatever happens you are going to need a bunch of code that ahead of time calculates all the types on table construction.
Then you will need code in vcat to widen the type where needed.
I don't want to maintain that code... but if you are committing to looking after it long term, try a PR

It would break the interfacing with Tables.jl, but not getting an object, I think. But if the API would be so broken it returns things you didn't ask for should you even use it?
Just to be clear, I'm not proposing we change anything about the table construction, just that we tweak the schema method.
Maybe a way to go for now is to just add this check to geometry specifically, and leave the others as they are. I agree there are a whole lot of options and it's really impractical (and not very necessary) to figure out exactly which columns should not be missing types. The geometry column is pretty straightforward (it is non-missing iff hasCoordinate = true) and
I do think it would be nice if we can guarantee like extract(raster, myoccurrences) and extract(raster, myoccurrences.geometry) would return the same types.

With your proposal to change Schema you would have to read the whole table and calculate the schema every time... its the same thing just in a different place


How to build the CUDA extension?

Hi, the CUDA extension should build automatically with pip install torchsort if you have the CUDA toolkit (nvcc) installed.
You can run pip install --force-reinstall --no-cache-dir torchsort to force a rebuild of the extension if necessary.


Intel S1000 support

These patchsets enable the mcubootloader support for Intel S1000 board which is based on Xtensa architecture. Please note that XIP is currently not supported for Xtensa in Zephyr and hence the images in the slot need to be copied to SRAM for this to run.

It looks OK to me, I'll leave it for the Zephyr commiters to approve/merge.


Share output from npm during install

Would be nice to see the output from npm during the pip install both to see what it is doing and aid in diagnosing any build or installation issues.

I totally agree with you. I used the widget-cookiecutter for creating this project, do you mind opening the same issue on this repo instead? I would be happy to port the changes here as well once it is fixed upstream :)

Sure, have added issue ( https://github.com/jupyter-widgets/widget-cookiecutter/issues/46 ). Please feel free to fill in anything I may have missed.

Thanks :)


A test

Codecov Report

Merging #84 (0e0f978) into master (1f271a0) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #84   +/-   ##
=======================================
  Coverage   63.05%   63.05%
=======================================
  Files          26       26
  Lines        3762     3762
  Branches      145      145
=======================================
  Hits         2372     2372
  Misses       1389     1389
  Partials        1        1

Impacted Files
Coverage Δ

src/lib.rs
50.21% <100.00%> (ø)

Codecov Report

Merging #84 (0e0f978) into master (1f271a0) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #84   +/-   ##
=======================================
  Coverage   63.05%   63.05%
=======================================
  Files          26       26
  Lines        3762     3762
  Branches      145      145
=======================================
  Hits         2372     2372
  Misses       1389     1389
  Partials        1        1

Impacted Files
Coverage Δ

src/lib.rs
50.21% <100.00%> (ø)


Three feature requests

Thanks so much for the great extension, it's super useful and I think they should include something similar in quarto proper. A few feature requests:

Consider following the code annotation pattern instead of having the user specify the line numbers
It would be great if this worked on syntactically formatted markdown blocks (the ones that use .r instead of {r} the main benefit of this is that you would be able to generate R code documentation without the R dependency
I modified the css to add a bold-and-blur hover annotation which might be good to include as an option. I think this is a bit more expressive on the web.

/* for source-line-numbers */
div.sourceCode.cell-code:hover
pre
code.has-line-highlights
> span:not(.highlight-line) {
  opacity: 0.4;
}

div.sourceCode.cell-code:hover
pre
code.has-line-highlights
> span.highlight-line {
  font-weight: bold;
}

Hey, thanks for creating this issue with the features request 😀. All of them seem really useful and amazing options to have 🤩. But I have a very busy two weeks ahead. Therefore, I  will try to look into these thereafter.
However, the first suggested feature probably will require lots of thinking, because this extension makes use of line-highlight.js which requires the line numbers 😅. The second and third options should probably be easy to implement.
And also I would appreciate PR with the above CSS changes 😀. Thanks!

@GShotwell, FYI I have implemented your second and third feature ideas in the latest release v1.1.0 of the extension. Check out the rendered output. Thanks for suggesting them.

But as said before,

However, the first suggested feature probably will require lots of thinking, because this extension makes use of line-highlight.js which requires the line numbers 😅.

So implementing the first one would be difficult as per my current knowledge of pandoc lua filter 😅😓😔.
However, I think it would be better to close this issue for now and create a separate one for the first suggested feature specifically 🙂😀.


Fix the abnormal function of sending mobile verification codes

This issue caused the verification code to fail when registering an account. The reason for the analysis is that Tencent Cloud's SMS service was used. It is possible to remove the SMS docking function and add an email registration and login function

I have purchased the corresponding SMS cloud service and now my phone number has been restored to registration.
But he's not a long-term solution, it's best to support email registration and login because he's completely free.


Windows Does Not Accept Colon ":" in File Names

A good number of playlists on TIDAL from the TIDAL staff or similar "official" playlists contain a colon ":" in the playlist name. Windows does not accept these as valid file names, so make sure to swap out colons for " - " in file names.

Fixed in #14


⚠ Bofrost.be has degraded performance

In bffff79, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1029 ms

Resolved: Bofrost.be performance has improved in e139e71.


fix dirpath in log_dir for CSVLogger

What does this PR do?
replace the rather more robust way of obtaining log_dir
see failing legacy testing: https://github.com/Lightning-AI/lightning/actions/runs/3938658456/jobs/6737646117
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃
cc @awaelchli @borda @Blaizzy @tchaton

Underlying inconsistency will get fixed with #14188, but I haven't had the time to complete the work.

this would be great! it comes from creating legacy checkpoints which have not been part of normal CI so adding it here too :otter:


HDDS-7863. Remove OzoneStreamCapabilities

What changes were proposed in this pull request?
OzoneStreamCapabilities was added in HDDS-2750 as a temporary solution to store Hadoop 3.3-specific constants when Ozone was still built using Hadoop 3.2.  Since we have already upgraded to Hadoop 3.3, the Ozone-specific class is no longer needed.
https://issues.apache.org/jira/browse/HDDS-7863
How was this patch tested?
Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/4090709811

Thanks @ayushtkn for the review.


fix error for divu calc for manifold when its not being used with Null mech

Closes #452
@ThomasHowarth: can you verify this works for you?

I can confirm that this fixes the compile problem that I had.


Fail to open dataframe in variable explorer

Problem Description
Fail to open dataframe in variable explorer
What steps reproduce the problem?

To download and install standalone Spyder 4.2, not through Anaconda.
To download and install official python 3.7.6 32bit
To change python interpreter path to "C:\Users\User\AppData\Local\Programs\Python\Python37-32\python.exe" in Spyder preferences
To close the Spyder
To apply "pip install spyder-kernels"、"pip install pandas" in the command prompt.
To open Spyder and apply below python code
import pandas as pd a=[1,2,3] a_pd=pd.DataFrame(a)
After running it, open variable explorer
click a_pd this variable.
It will show the error kernel is dead...
screenshot link: https://upload.cc/i1/2020/11/25/j1ZrDe.png

What is the expected output? What do you see instead?
screenshot link: https://upload.cc/i1/2020/11/26/0WvRa3.png
Versions

Spyder version: Spyder 4.2.0
Python version: 3.7.6 32bit
Qt version: can't find in  pip list
PyQt version: can't find in  pip list
Operating System name/version:  win10 20H2

Dependencies

PASTE DEPENDENCIES HERE

Please read our
http://docs.spyder-ide.org/current/first-steps.html
If you are unable to fix the problem after that, please install Anaconda instead. Unfortunately, we don't have the resources nor the time to help people with custom installations, so it's up to you to figure this one out.
This is because custom installations are for experts or very knowledgeable people who really know what they are doing and are able to easily solve problems like this.

Or if you want Spyder 4.2, please use conda-forge instead. For that, after installing Anaconda, you need to run
conda create -n spyder-42
conda activate spyder-42
conda install -c conda-forge spyder
spyder


invalid fences

Several pieces of blog content use code fences with the invalid language name console. The site's syntax highlighter doesn't know what to do with that. These should all be updated to shell.

Most of the blog content that uses code fences are properly syntax highlighted except for terminal commands so which changes do you intend to do here?

content/2021-03-05-meet-brigade-2.md and content/2021-07-19-brig-init.md both contain numerous occurrences of the invalid code fence.


BLE-MESH generic level server model get response  (IDFGH-3037)

#3443  Environment

Development Kit:      [ESP32-Wrover-Kit]

Kit version (for WroverKit/PicoKit/DevKitC): [v4]

Module or chip used:  [ESP32-WROOM-32|ESP32-WROOM-32D]

IDF version (run git describe --tags to find it):
// v3.2-dev-1148-g96cd3b75c

Build System:         [idf.py]

Operating System:     [macOS]

(Windows only) environment type: [Plain Command Prompt].

Using an IDE?: [NO]

Power Supply:         [USB]

Problem Description
Hi, I wonder how to respond to the ESP_BLE_MESH_MODEL_OP_GEN_LEVEL_GET op-code. From the example, the esp_ble_mesh_model_publish and esp_ble_mesh_server_model_send_msg are used for the generic onoff models. The data type for the "data" parameter is uint8_t for the above two functions, but the data type of the "level" member in the esp_ble_mesh_gen_level_state_t is uint16_t, I tried to convert it to uint8_t but it doesn't work for the phone app. There is nothing shown on the app when I click the "Read" button on the model interface.
Are there any other functions that we can use for sending messages?
Thanks.

Hi @sheldon123z
Sorry for the late reply.
For server model sending messages, only the esp_ble_mesh_server_model_send_msg & esp_ble_mesh_model_publish should be used, no other functions. And the data parameter for the two functions is just a uint8_t * pointer, for responding with a uint16_t data, you can provide the data length and covert the data to a uint8_t * pointer.
BTW, does this issue still exist?
Thanks.

Thanks for reporting, feel free to reopen with more updates.


Pattern Transforms

Hello! First, thanks for this amazing project.
I have a question:
Looking at single example generation, I noticed there are not "transformed" patterns in the generated image.
By transformed I mean, rotation, scale and warping. Of patterns in the example.
Is there a way to achieve this?
Thanks!

Not one of the authors of this repo but: you could add rotated and/or scaled versions of the example image as additional examples.

Yes, thanks. That is the workaround as a last resort.
But first I would like to know if it is possible using a single example.

Hi! As @cfoster0 correctly points out, you can add transformed images as examples. At the moment it is not possible to do with just a single example

Thanks!!